1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for cpuminer 2.5.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
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='cpuminer'
579PACKAGE_TARNAME='cpuminer'
580PACKAGE_VERSION='2.5.0'
581PACKAGE_STRING='cpuminer 2.5.0'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="cpu-miner.c"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='am__EXEEXT_FALSE
623am__EXEEXT_TRUE
624LTLIBOBJS
625LIBOBJS
626WS2_LIBS
627PTHREAD_LIBS
628PTHREAD_FLAGS
629JANSSON_LIBS
630LIBCURL
631LIBCURL_CPPFLAGS
632_libcurl_config
633ARCH_PPC_FALSE
634ARCH_PPC_TRUE
635ARCH_ARM_FALSE
636ARCH_ARM_TRUE
637ARCH_x86_64_FALSE
638ARCH_x86_64_TRUE
639ARCH_x86_FALSE
640ARCH_x86_TRUE
641USE_ASM_FALSE
642USE_ASM_TRUE
643HAVE_WINDOWS_FALSE
644HAVE_WINDOWS_TRUE
645WANT_JANSSON_FALSE
646WANT_JANSSON_TRUE
647ALLOCA
648RANLIB
649am__fastdepCCAS_FALSE
650am__fastdepCCAS_TRUE
651CCASDEPMODE
652CCASFLAGS
653CCAS
654EGREP
655GREP
656CPP
657am__fastdepCC_FALSE
658am__fastdepCC_TRUE
659CCDEPMODE
660am__nodep
661AMDEPBACKSLASH
662AMDEP_FALSE
663AMDEP_TRUE
664am__quote
665am__include
666DEPDIR
667OBJEXT
668EXEEXT
669ac_ct_CC
670CPPFLAGS
671LDFLAGS
672CFLAGS
673CC
674MAINT
675MAINTAINER_MODE_FALSE
676MAINTAINER_MODE_TRUE
677AM_BACKSLASH
678AM_DEFAULT_VERBOSITY
679AM_DEFAULT_V
680AM_V
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686AWK
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690STRIP
691install_sh
692MAKEINFO
693AUTOHEADER
694AUTOMAKE
695AUTOCONF
696ACLOCAL
697VERSION
698PACKAGE
699CYGPATH_W
700am__isrc
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704target_os
705target_vendor
706target_cpu
707target
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757enable_silent_rules
758enable_maintainer_mode
759enable_dependency_tracking
760enable_assembly
761with_libcurl
762'
763      ac_precious_vars='build_alias
764host_alias
765target_alias
766CC
767CFLAGS
768LDFLAGS
769LIBS
770CPPFLAGS
771CPP
772CCAS
773CCASFLAGS'
774
775
776# Initialize some variables set by options.
777ac_init_help=
778ac_init_version=false
779ac_unrecognized_opts=
780ac_unrecognized_sep=
781# The variables have the same names as the options, with
782# dashes changed to underlines.
783cache_file=/dev/null
784exec_prefix=NONE
785no_create=
786no_recursion=
787prefix=NONE
788program_prefix=NONE
789program_suffix=NONE
790program_transform_name=s,x,x,
791silent=
792site=
793srcdir=
794verbose=
795x_includes=NONE
796x_libraries=NONE
797
798# Installation directory options.
799# These are left unexpanded so users can "make install exec_prefix=/foo"
800# and all the variables that are supposed to be based on exec_prefix
801# by default will actually change.
802# Use braces instead of parens because sh, perl, etc. also accept them.
803# (The list follows the same order as the GNU Coding Standards.)
804bindir='${exec_prefix}/bin'
805sbindir='${exec_prefix}/sbin'
806libexecdir='${exec_prefix}/libexec'
807datarootdir='${prefix}/share'
808datadir='${datarootdir}'
809sysconfdir='${prefix}/etc'
810sharedstatedir='${prefix}/com'
811localstatedir='${prefix}/var'
812includedir='${prefix}/include'
813oldincludedir='/usr/include'
814docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815infodir='${datarootdir}/info'
816htmldir='${docdir}'
817dvidir='${docdir}'
818pdfdir='${docdir}'
819psdir='${docdir}'
820libdir='${exec_prefix}/lib'
821localedir='${datarootdir}/locale'
822mandir='${datarootdir}/man'
823
824ac_prev=
825ac_dashdash=
826for ac_option
827do
828  # If the previous option needs an argument, assign it.
829  if test -n "$ac_prev"; then
830    eval $ac_prev=\$ac_option
831    ac_prev=
832    continue
833  fi
834
835  case $ac_option in
836  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837  *=)   ac_optarg= ;;
838  *)    ac_optarg=yes ;;
839  esac
840
841  # Accept the important Cygnus configure options, so we can diagnose typos.
842
843  case $ac_dashdash$ac_option in
844  --)
845    ac_dashdash=yes ;;
846
847  -bindir | --bindir | --bindi | --bind | --bin | --bi)
848    ac_prev=bindir ;;
849  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850    bindir=$ac_optarg ;;
851
852  -build | --build | --buil | --bui | --bu)
853    ac_prev=build_alias ;;
854  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855    build_alias=$ac_optarg ;;
856
857  -cache-file | --cache-file | --cache-fil | --cache-fi \
858  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859    ac_prev=cache_file ;;
860  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862    cache_file=$ac_optarg ;;
863
864  --config-cache | -C)
865    cache_file=config.cache ;;
866
867  -datadir | --datadir | --datadi | --datad)
868    ac_prev=datadir ;;
869  -datadir=* | --datadir=* | --datadi=* | --datad=*)
870    datadir=$ac_optarg ;;
871
872  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873  | --dataroo | --dataro | --datar)
874    ac_prev=datarootdir ;;
875  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877    datarootdir=$ac_optarg ;;
878
879  -disable-* | --disable-*)
880    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881    # Reject names that are not valid shell variable names.
882    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883      as_fn_error $? "invalid feature name: $ac_useropt"
884    ac_useropt_orig=$ac_useropt
885    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886    case $ac_user_opts in
887      *"
888"enable_$ac_useropt"
889"*) ;;
890      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891	 ac_unrecognized_sep=', ';;
892    esac
893    eval enable_$ac_useropt=no ;;
894
895  -docdir | --docdir | --docdi | --doc | --do)
896    ac_prev=docdir ;;
897  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898    docdir=$ac_optarg ;;
899
900  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901    ac_prev=dvidir ;;
902  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903    dvidir=$ac_optarg ;;
904
905  -enable-* | --enable-*)
906    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907    # Reject names that are not valid shell variable names.
908    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909      as_fn_error $? "invalid feature name: $ac_useropt"
910    ac_useropt_orig=$ac_useropt
911    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912    case $ac_user_opts in
913      *"
914"enable_$ac_useropt"
915"*) ;;
916      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917	 ac_unrecognized_sep=', ';;
918    esac
919    eval enable_$ac_useropt=\$ac_optarg ;;
920
921  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923  | --exec | --exe | --ex)
924    ac_prev=exec_prefix ;;
925  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927  | --exec=* | --exe=* | --ex=*)
928    exec_prefix=$ac_optarg ;;
929
930  -gas | --gas | --ga | --g)
931    # Obsolete; use --with-gas.
932    with_gas=yes ;;
933
934  -help | --help | --hel | --he | -h)
935    ac_init_help=long ;;
936  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937    ac_init_help=recursive ;;
938  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939    ac_init_help=short ;;
940
941  -host | --host | --hos | --ho)
942    ac_prev=host_alias ;;
943  -host=* | --host=* | --hos=* | --ho=*)
944    host_alias=$ac_optarg ;;
945
946  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947    ac_prev=htmldir ;;
948  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949  | --ht=*)
950    htmldir=$ac_optarg ;;
951
952  -includedir | --includedir | --includedi | --included | --include \
953  | --includ | --inclu | --incl | --inc)
954    ac_prev=includedir ;;
955  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956  | --includ=* | --inclu=* | --incl=* | --inc=*)
957    includedir=$ac_optarg ;;
958
959  -infodir | --infodir | --infodi | --infod | --info | --inf)
960    ac_prev=infodir ;;
961  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962    infodir=$ac_optarg ;;
963
964  -libdir | --libdir | --libdi | --libd)
965    ac_prev=libdir ;;
966  -libdir=* | --libdir=* | --libdi=* | --libd=*)
967    libdir=$ac_optarg ;;
968
969  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970  | --libexe | --libex | --libe)
971    ac_prev=libexecdir ;;
972  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973  | --libexe=* | --libex=* | --libe=*)
974    libexecdir=$ac_optarg ;;
975
976  -localedir | --localedir | --localedi | --localed | --locale)
977    ac_prev=localedir ;;
978  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979    localedir=$ac_optarg ;;
980
981  -localstatedir | --localstatedir | --localstatedi | --localstated \
982  | --localstate | --localstat | --localsta | --localst | --locals)
983    ac_prev=localstatedir ;;
984  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986    localstatedir=$ac_optarg ;;
987
988  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989    ac_prev=mandir ;;
990  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991    mandir=$ac_optarg ;;
992
993  -nfp | --nfp | --nf)
994    # Obsolete; use --without-fp.
995    with_fp=no ;;
996
997  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998  | --no-cr | --no-c | -n)
999    no_create=yes ;;
1000
1001  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003    no_recursion=yes ;;
1004
1005  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007  | --oldin | --oldi | --old | --ol | --o)
1008    ac_prev=oldincludedir ;;
1009  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012    oldincludedir=$ac_optarg ;;
1013
1014  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015    ac_prev=prefix ;;
1016  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017    prefix=$ac_optarg ;;
1018
1019  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020  | --program-pre | --program-pr | --program-p)
1021    ac_prev=program_prefix ;;
1022  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024    program_prefix=$ac_optarg ;;
1025
1026  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027  | --program-suf | --program-su | --program-s)
1028    ac_prev=program_suffix ;;
1029  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031    program_suffix=$ac_optarg ;;
1032
1033  -program-transform-name | --program-transform-name \
1034  | --program-transform-nam | --program-transform-na \
1035  | --program-transform-n | --program-transform- \
1036  | --program-transform | --program-transfor \
1037  | --program-transfo | --program-transf \
1038  | --program-trans | --program-tran \
1039  | --progr-tra | --program-tr | --program-t)
1040    ac_prev=program_transform_name ;;
1041  -program-transform-name=* | --program-transform-name=* \
1042  | --program-transform-nam=* | --program-transform-na=* \
1043  | --program-transform-n=* | --program-transform-=* \
1044  | --program-transform=* | --program-transfor=* \
1045  | --program-transfo=* | --program-transf=* \
1046  | --program-trans=* | --program-tran=* \
1047  | --progr-tra=* | --program-tr=* | --program-t=*)
1048    program_transform_name=$ac_optarg ;;
1049
1050  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051    ac_prev=pdfdir ;;
1052  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053    pdfdir=$ac_optarg ;;
1054
1055  -psdir | --psdir | --psdi | --psd | --ps)
1056    ac_prev=psdir ;;
1057  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058    psdir=$ac_optarg ;;
1059
1060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061  | -silent | --silent | --silen | --sile | --sil)
1062    silent=yes ;;
1063
1064  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065    ac_prev=sbindir ;;
1066  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067  | --sbi=* | --sb=*)
1068    sbindir=$ac_optarg ;;
1069
1070  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072  | --sharedst | --shareds | --shared | --share | --shar \
1073  | --sha | --sh)
1074    ac_prev=sharedstatedir ;;
1075  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078  | --sha=* | --sh=*)
1079    sharedstatedir=$ac_optarg ;;
1080
1081  -site | --site | --sit)
1082    ac_prev=site ;;
1083  -site=* | --site=* | --sit=*)
1084    site=$ac_optarg ;;
1085
1086  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087    ac_prev=srcdir ;;
1088  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089    srcdir=$ac_optarg ;;
1090
1091  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092  | --syscon | --sysco | --sysc | --sys | --sy)
1093    ac_prev=sysconfdir ;;
1094  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096    sysconfdir=$ac_optarg ;;
1097
1098  -target | --target | --targe | --targ | --tar | --ta | --t)
1099    ac_prev=target_alias ;;
1100  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101    target_alias=$ac_optarg ;;
1102
1103  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104    verbose=yes ;;
1105
1106  -version | --version | --versio | --versi | --vers | -V)
1107    ac_init_version=: ;;
1108
1109  -with-* | --with-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=\$ac_optarg ;;
1124
1125  -without-* | --without-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=no ;;
1140
1141  --x)
1142    # Obsolete; use --with-x.
1143    with_x=yes ;;
1144
1145  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146  | --x-incl | --x-inc | --x-in | --x-i)
1147    ac_prev=x_includes ;;
1148  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150    x_includes=$ac_optarg ;;
1151
1152  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154    ac_prev=x_libraries ;;
1155  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157    x_libraries=$ac_optarg ;;
1158
1159  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160Try \`$0 --help' for more information"
1161    ;;
1162
1163  *=*)
1164    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165    # Reject names that are not valid shell variable names.
1166    case $ac_envvar in #(
1167      '' | [0-9]* | *[!_$as_cr_alnum]* )
1168      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169    esac
1170    eval $ac_envvar=\$ac_optarg
1171    export $ac_envvar ;;
1172
1173  *)
1174    # FIXME: should be removed in autoconf 3.0.
1175    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179    ;;
1180
1181  esac
1182done
1183
1184if test -n "$ac_prev"; then
1185  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186  as_fn_error $? "missing argument to $ac_option"
1187fi
1188
1189if test -n "$ac_unrecognized_opts"; then
1190  case $enable_option_checking in
1191    no) ;;
1192    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194  esac
1195fi
1196
1197# Check all directory arguments for consistency.
1198for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199		datadir sysconfdir sharedstatedir localstatedir includedir \
1200		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201		libdir localedir mandir
1202do
1203  eval ac_val=\$$ac_var
1204  # Remove trailing slashes.
1205  case $ac_val in
1206    */ )
1207      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208      eval $ac_var=\$ac_val;;
1209  esac
1210  # Be sure to have absolute directory names.
1211  case $ac_val in
1212    [\\/$]* | ?:[\\/]* )  continue;;
1213    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214  esac
1215  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227  if test "x$build_alias" = x; then
1228    cross_compiling=maybe
1229  elif test "x$build_alias" != "x$host_alias"; then
1230    cross_compiling=yes
1231  fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
1240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243  as_fn_error $? "working directory cannot be determined"
1244test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245  as_fn_error $? "pwd does not report name of working directory"
1246
1247
1248# Find the source files, if location was not specified.
1249if test -z "$srcdir"; then
1250  ac_srcdir_defaulted=yes
1251  # Try the directory containing this script, then the parent directory.
1252  ac_confdir=`$as_dirname -- "$as_myself" ||
1253$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254	 X"$as_myself" : 'X\(//\)[^/]' \| \
1255	 X"$as_myself" : 'X\(//\)$' \| \
1256	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257$as_echo X"$as_myself" |
1258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)[^/].*/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\/\)$/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\).*/{
1271	    s//\1/
1272	    q
1273	  }
1274	  s/.*/./; q'`
1275  srcdir=$ac_confdir
1276  if test ! -r "$srcdir/$ac_unique_file"; then
1277    srcdir=..
1278  fi
1279else
1280  ac_srcdir_defaulted=no
1281fi
1282if test ! -r "$srcdir/$ac_unique_file"; then
1283  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285fi
1286ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287ac_abs_confdir=`(
1288	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289	pwd)`
1290# When building in place, set srcdir=.
1291if test "$ac_abs_confdir" = "$ac_pwd"; then
1292  srcdir=.
1293fi
1294# Remove unnecessary trailing slashes from srcdir.
1295# Double slashes in file names in object file debugging info
1296# mess up M-x gdb in Emacs.
1297case $srcdir in
1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299esac
1300for ac_var in $ac_precious_vars; do
1301  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_env_${ac_var}_value=\$${ac_var}
1303  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305done
1306
1307#
1308# Report the --help message.
1309#
1310if test "$ac_init_help" = "long"; then
1311  # Omit some internal or obsolete options to make the list less imposing.
1312  # This message is too long to be a string in the A/UX 3.1 sh.
1313  cat <<_ACEOF
1314\`configure' configures cpuminer 2.5.0 to adapt to many kinds of systems.
1315
1316Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319VAR=VALUE.  See below for descriptions of some of the useful variables.
1320
1321Defaults for the options are specified in brackets.
1322
1323Configuration:
1324  -h, --help              display this help and exit
1325      --help=short        display options specific to this package
1326      --help=recursive    display the short help of all the included packages
1327  -V, --version           display version information and exit
1328  -q, --quiet, --silent   do not print \`checking ...' messages
1329      --cache-file=FILE   cache test results in FILE [disabled]
1330  -C, --config-cache      alias for \`--cache-file=config.cache'
1331  -n, --no-create         do not create output files
1332      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1333
1334Installation directories:
1335  --prefix=PREFIX         install architecture-independent files in PREFIX
1336                          [$ac_default_prefix]
1337  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1338                          [PREFIX]
1339
1340By default, \`make install' will install all the files in
1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1342an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343for instance \`--prefix=\$HOME'.
1344
1345For better control, use the options below.
1346
1347Fine tuning of the installation directories:
1348  --bindir=DIR            user executables [EPREFIX/bin]
1349  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1350  --libexecdir=DIR        program executables [EPREFIX/libexec]
1351  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1352  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1353  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1354  --libdir=DIR            object code libraries [EPREFIX/lib]
1355  --includedir=DIR        C header files [PREFIX/include]
1356  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1357  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1358  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1359  --infodir=DIR           info documentation [DATAROOTDIR/info]
1360  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1361  --mandir=DIR            man documentation [DATAROOTDIR/man]
1362  --docdir=DIR            documentation root [DATAROOTDIR/doc/cpuminer]
1363  --htmldir=DIR           html documentation [DOCDIR]
1364  --dvidir=DIR            dvi documentation [DOCDIR]
1365  --pdfdir=DIR            pdf documentation [DOCDIR]
1366  --psdir=DIR             ps documentation [DOCDIR]
1367_ACEOF
1368
1369  cat <<\_ACEOF
1370
1371Program names:
1372  --program-prefix=PREFIX            prepend PREFIX to installed program names
1373  --program-suffix=SUFFIX            append SUFFIX to installed program names
1374  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1375
1376System types:
1377  --build=BUILD     configure for building on BUILD [guessed]
1378  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379  --target=TARGET   configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384  case $ac_init_help in
1385     short | recursive ) echo "Configuration of cpuminer 2.5.0:";;
1386   esac
1387  cat <<\_ACEOF
1388
1389Optional Features:
1390  --disable-option-checking  ignore unrecognized --enable/--with options
1391  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393  --enable-silent-rules   less verbose build output (undo: "make V=1")
1394  --disable-silent-rules  verbose build output (undo: "make V=0")
1395  --enable-maintainer-mode
1396                          enable make rules and dependencies not useful (and
1397                          sometimes confusing) to the casual installer
1398  --enable-dependency-tracking
1399                          do not reject slow dependency extractors
1400  --disable-dependency-tracking
1401                          speeds up one-time build
1402  --disable-assembly      disable assembly-language routines
1403
1404Optional Packages:
1405  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1406  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1407  --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
1408                          in PREFIX/include
1409
1410Some influential environment variables:
1411  CC          C compiler command
1412  CFLAGS      C compiler flags
1413  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1414              nonstandard directory <lib dir>
1415  LIBS        libraries to pass to the linker, e.g. -l<library>
1416  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1417              you have headers in a nonstandard directory <include dir>
1418  CPP         C preprocessor
1419  CCAS        assembler compiler command (defaults to CC)
1420  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1421
1422Use these variables to override the choices made by `configure' or to help
1423it to find libraries and programs with nonstandard names/locations.
1424
1425Report bugs to the package provider.
1426_ACEOF
1427ac_status=$?
1428fi
1429
1430if test "$ac_init_help" = "recursive"; then
1431  # If there are subdirs, report their specific --help.
1432  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433    test -d "$ac_dir" ||
1434      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435      continue
1436    ac_builddir=.
1437
1438case "$ac_dir" in
1439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440*)
1441  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442  # A ".." for each directory in $ac_dir_suffix.
1443  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444  case $ac_top_builddir_sub in
1445  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447  esac ;;
1448esac
1449ac_abs_top_builddir=$ac_pwd
1450ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451# for backward compatibility:
1452ac_top_builddir=$ac_top_build_prefix
1453
1454case $srcdir in
1455  .)  # We are building in place.
1456    ac_srcdir=.
1457    ac_top_srcdir=$ac_top_builddir_sub
1458    ac_abs_top_srcdir=$ac_pwd ;;
1459  [\\/]* | ?:[\\/]* )  # Absolute name.
1460    ac_srcdir=$srcdir$ac_dir_suffix;
1461    ac_top_srcdir=$srcdir
1462    ac_abs_top_srcdir=$srcdir ;;
1463  *) # Relative name.
1464    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465    ac_top_srcdir=$ac_top_build_prefix$srcdir
1466    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467esac
1468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469
1470    cd "$ac_dir" || { ac_status=$?; continue; }
1471    # Check for guested configure.
1472    if test -f "$ac_srcdir/configure.gnu"; then
1473      echo &&
1474      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475    elif test -f "$ac_srcdir/configure"; then
1476      echo &&
1477      $SHELL "$ac_srcdir/configure" --help=recursive
1478    else
1479      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1480    fi || ac_status=$?
1481    cd "$ac_pwd" || { ac_status=$?; break; }
1482  done
1483fi
1484
1485test -n "$ac_init_help" && exit $ac_status
1486if $ac_init_version; then
1487  cat <<\_ACEOF
1488cpuminer configure 2.5.0
1489generated by GNU Autoconf 2.69
1490
1491Copyright (C) 2012 Free Software Foundation, Inc.
1492This configure script is free software; the Free Software Foundation
1493gives unlimited permission to copy, distribute and modify it.
1494_ACEOF
1495  exit
1496fi
1497
1498## ------------------------ ##
1499## Autoconf initialization. ##
1500## ------------------------ ##
1501
1502# ac_fn_c_try_compile LINENO
1503# --------------------------
1504# Try to compile conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_compile ()
1506{
1507  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508  rm -f conftest.$ac_objext
1509  if { { ac_try="$ac_compile"
1510case "(($ac_try" in
1511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512  *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516  (eval "$ac_compile") 2>conftest.err
1517  ac_status=$?
1518  if test -s conftest.err; then
1519    grep -v '^ *+' conftest.err >conftest.er1
1520    cat conftest.er1 >&5
1521    mv -f conftest.er1 conftest.err
1522  fi
1523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524  test $ac_status = 0; } && {
1525	 test -z "$ac_c_werror_flag" ||
1526	 test ! -s conftest.err
1527       } && test -s conftest.$ac_objext; then :
1528  ac_retval=0
1529else
1530  $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533	ac_retval=1
1534fi
1535  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536  as_fn_set_status $ac_retval
1537
1538} # ac_fn_c_try_compile
1539
1540# ac_fn_c_try_cpp LINENO
1541# ----------------------
1542# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_cpp ()
1544{
1545  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546  if { { ac_try="$ac_cpp conftest.$ac_ext"
1547case "(($ac_try" in
1548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549  *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552$as_echo "$ac_try_echo"; } >&5
1553  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1554  ac_status=$?
1555  if test -s conftest.err; then
1556    grep -v '^ *+' conftest.err >conftest.er1
1557    cat conftest.er1 >&5
1558    mv -f conftest.er1 conftest.err
1559  fi
1560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561  test $ac_status = 0; } > conftest.i && {
1562	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1563	 test ! -s conftest.err
1564       }; then :
1565  ac_retval=0
1566else
1567  $as_echo "$as_me: failed program was:" >&5
1568sed 's/^/| /' conftest.$ac_ext >&5
1569
1570    ac_retval=1
1571fi
1572  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573  as_fn_set_status $ac_retval
1574
1575} # ac_fn_c_try_cpp
1576
1577# ac_fn_c_try_run LINENO
1578# ----------------------
1579# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580# that executables *can* be run.
1581ac_fn_c_try_run ()
1582{
1583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584  if { { ac_try="$ac_link"
1585case "(($ac_try" in
1586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587  *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591  (eval "$ac_link") 2>&5
1592  ac_status=$?
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595  { { case "(($ac_try" in
1596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597  *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601  (eval "$ac_try") 2>&5
1602  ac_status=$?
1603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; }; }; then :
1605  ac_retval=0
1606else
1607  $as_echo "$as_me: program exited with status $ac_status" >&5
1608       $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611       ac_retval=$ac_status
1612fi
1613  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615  as_fn_set_status $ac_retval
1616
1617} # ac_fn_c_try_run
1618
1619# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1620# -------------------------------------------------------
1621# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1622# the include files in INCLUDES and setting the cache variable VAR
1623# accordingly.
1624ac_fn_c_check_header_mongrel ()
1625{
1626  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627  if eval \${$3+:} false; then :
1628  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629$as_echo_n "checking for $2... " >&6; }
1630if eval \${$3+:} false; then :
1631  $as_echo_n "(cached) " >&6
1632fi
1633eval ac_res=\$$3
1634	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635$as_echo "$ac_res" >&6; }
1636else
1637  # Is the header compilable?
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1639$as_echo_n "checking $2 usability... " >&6; }
1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h.  */
1642$4
1643#include <$2>
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646  ac_header_compiler=yes
1647else
1648  ac_header_compiler=no
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1652$as_echo "$ac_header_compiler" >&6; }
1653
1654# Is the header present?
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1656$as_echo_n "checking $2 presence... " >&6; }
1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_cpp "$LINENO"; then :
1662  ac_header_preproc=yes
1663else
1664  ac_header_preproc=no
1665fi
1666rm -f conftest.err conftest.i conftest.$ac_ext
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1668$as_echo "$ac_header_preproc" >&6; }
1669
1670# So?  What about this header?
1671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672  yes:no: )
1673    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1674$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1675    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677    ;;
1678  no:yes:* )
1679    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1680$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1681    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1682$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1683    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1684$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1685    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1686$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1687    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1689    ;;
1690esac
1691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
1693if eval \${$3+:} false; then :
1694  $as_echo_n "(cached) " >&6
1695else
1696  eval "$3=\$ac_header_compiler"
1697fi
1698eval ac_res=\$$3
1699	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700$as_echo "$ac_res" >&6; }
1701fi
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704} # ac_fn_c_check_header_mongrel
1705
1706# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707# -------------------------------------------------------
1708# Tests whether HEADER exists and can be compiled using the include files in
1709# INCLUDES, setting the cache variable VAR accordingly.
1710ac_fn_c_check_header_compile ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; }
1715if eval \${$3+:} false; then :
1716  $as_echo_n "(cached) " >&6
1717else
1718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h.  */
1720$4
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_compile "$LINENO"; then :
1724  eval "$3=yes"
1725else
1726  eval "$3=no"
1727fi
1728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729fi
1730eval ac_res=\$$3
1731	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735} # ac_fn_c_check_header_compile
1736
1737# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1738# ---------------------------------------------
1739# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1740# accordingly.
1741ac_fn_c_check_decl ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  as_decl_name=`echo $2|sed 's/ *(.*//'`
1745  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1746  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1747$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1748if eval \${$3+:} false; then :
1749  $as_echo_n "(cached) " >&6
1750else
1751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h.  */
1753$4
1754int
1755main ()
1756{
1757#ifndef $as_decl_name
1758#ifdef __cplusplus
1759  (void) $as_decl_use;
1760#else
1761  (void) $as_decl_name;
1762#endif
1763#endif
1764
1765  ;
1766  return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770  eval "$3=yes"
1771else
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_decl
1782
1783# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784# -------------------------------------------
1785# Tests whether TYPE exists after having included INCLUDES, setting cache
1786# variable VAR accordingly.
1787ac_fn_c_check_type ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
1792if eval \${$3+:} false; then :
1793  $as_echo_n "(cached) " >&6
1794else
1795  eval "$3=no"
1796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h.  */
1798$4
1799int
1800main ()
1801{
1802if (sizeof ($2))
1803	 return 0;
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811$4
1812int
1813main ()
1814{
1815if (sizeof (($2)))
1816	    return 0;
1817  ;
1818  return 0;
1819}
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822
1823else
1824  eval "$3=yes"
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} # ac_fn_c_check_type
1836
1837# ac_fn_c_try_link LINENO
1838# -----------------------
1839# Try to link conftest.$ac_ext, and return whether this succeeded.
1840ac_fn_c_try_link ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  rm -f conftest.$ac_objext conftest$ac_exeext
1844  if { { ac_try="$ac_link"
1845case "(($ac_try" in
1846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847  *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851  (eval "$ac_link") 2>conftest.err
1852  ac_status=$?
1853  if test -s conftest.err; then
1854    grep -v '^ *+' conftest.err >conftest.er1
1855    cat conftest.er1 >&5
1856    mv -f conftest.er1 conftest.err
1857  fi
1858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859  test $ac_status = 0; } && {
1860	 test -z "$ac_c_werror_flag" ||
1861	 test ! -s conftest.err
1862       } && test -s conftest$ac_exeext && {
1863	 test "$cross_compiling" = yes ||
1864	 test -x conftest$ac_exeext
1865       }; then :
1866  ac_retval=0
1867else
1868  $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871	ac_retval=1
1872fi
1873  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875  # interfere with the next link command; also delete a directory that is
1876  # left behind by Apple's compiler.  We do this before executing the actions.
1877  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879  as_fn_set_status $ac_retval
1880
1881} # ac_fn_c_try_link
1882
1883# ac_fn_c_check_func LINENO FUNC VAR
1884# ----------------------------------
1885# Tests whether FUNC exists, setting the cache variable VAR accordingly
1886ac_fn_c_check_func ()
1887{
1888  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
1891if eval \${$3+:} false; then :
1892  $as_echo_n "(cached) " >&6
1893else
1894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h.  */
1896/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1898#define $2 innocuous_$2
1899
1900/* System header to define __stub macros and hopefully few prototypes,
1901    which can conflict with char $2 (); below.
1902    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903    <limits.h> exists even on freestanding compilers.  */
1904
1905#ifdef __STDC__
1906# include <limits.h>
1907#else
1908# include <assert.h>
1909#endif
1910
1911#undef $2
1912
1913/* Override any GCC internal prototype to avoid an error.
1914   Use char because int might match the return type of a GCC
1915   builtin and then its argument prototype would still apply.  */
1916#ifdef __cplusplus
1917extern "C"
1918#endif
1919char $2 ();
1920/* The GNU C library defines this for functions which it implements
1921    to always fail with ENOSYS.  Some functions are actually named
1922    something starting with __ and the normal name is an alias.  */
1923#if defined __stub_$2 || defined __stub___$2
1924choke me
1925#endif
1926
1927int
1928main ()
1929{
1930return $2 ();
1931  ;
1932  return 0;
1933}
1934_ACEOF
1935if ac_fn_c_try_link "$LINENO"; then :
1936  eval "$3=yes"
1937else
1938  eval "$3=no"
1939fi
1940rm -f core conftest.err conftest.$ac_objext \
1941    conftest$ac_exeext conftest.$ac_ext
1942fi
1943eval ac_res=\$$3
1944	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
1946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948} # ac_fn_c_check_func
1949cat >config.log <<_ACEOF
1950This file contains any messages produced by compilers while
1951running configure, to aid debugging if configure makes a mistake.
1952
1953It was created by cpuminer $as_me 2.5.0, which was
1954generated by GNU Autoconf 2.69.  Invocation command line was
1955
1956  $ $0 $@
1957
1958_ACEOF
1959exec 5>>config.log
1960{
1961cat <<_ASUNAME
1962## --------- ##
1963## Platform. ##
1964## --------- ##
1965
1966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1974
1975/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1976/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1979/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1980/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1981/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1982
1983_ASUNAME
1984
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988  IFS=$as_save_IFS
1989  test -z "$as_dir" && as_dir=.
1990    $as_echo "PATH: $as_dir"
1991  done
1992IFS=$as_save_IFS
1993
1994} >&5
1995
1996cat >&5 <<_ACEOF
1997
1998
1999## ----------- ##
2000## Core tests. ##
2001## ----------- ##
2002
2003_ACEOF
2004
2005
2006# Keep a trace of the command line.
2007# Strip out --no-create and --no-recursion so they do not pile up.
2008# Strip out --silent because we don't want to record it for future runs.
2009# Also quote any args containing shell meta-characters.
2010# Make two passes to allow for proper duplicate-argument suppression.
2011ac_configure_args=
2012ac_configure_args0=
2013ac_configure_args1=
2014ac_must_keep_next=false
2015for ac_pass in 1 2
2016do
2017  for ac_arg
2018  do
2019    case $ac_arg in
2020    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022    | -silent | --silent | --silen | --sile | --sil)
2023      continue ;;
2024    *\'*)
2025      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026    esac
2027    case $ac_pass in
2028    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029    2)
2030      as_fn_append ac_configure_args1 " '$ac_arg'"
2031      if test $ac_must_keep_next = true; then
2032	ac_must_keep_next=false # Got value, back to normal.
2033      else
2034	case $ac_arg in
2035	  *=* | --config-cache | -C | -disable-* | --disable-* \
2036	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038	  | -with-* | --with-* | -without-* | --without-* | --x)
2039	    case "$ac_configure_args0 " in
2040	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041	    esac
2042	    ;;
2043	  -* ) ac_must_keep_next=true ;;
2044	esac
2045      fi
2046      as_fn_append ac_configure_args " '$ac_arg'"
2047      ;;
2048    esac
2049  done
2050done
2051{ ac_configure_args0=; unset ac_configure_args0;}
2052{ ac_configure_args1=; unset ac_configure_args1;}
2053
2054# When interrupted or exit'd, cleanup temporary files, and complete
2055# config.log.  We remove comments because anyway the quotes in there
2056# would cause problems or look ugly.
2057# WARNING: Use '\'' to represent an apostrophe within the trap.
2058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059trap 'exit_status=$?
2060  # Save into config.log some information that might help in debugging.
2061  {
2062    echo
2063
2064    $as_echo "## ---------------- ##
2065## Cache variables. ##
2066## ---------------- ##"
2067    echo
2068    # The following way of writing the cache mishandles newlines in values,
2069(
2070  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071    eval ac_val=\$$ac_var
2072    case $ac_val in #(
2073    *${as_nl}*)
2074      case $ac_var in #(
2075      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077      esac
2078      case $ac_var in #(
2079      _ | IFS | as_nl) ;; #(
2080      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081      *) { eval $ac_var=; unset $ac_var;} ;;
2082      esac ;;
2083    esac
2084  done
2085  (set) 2>&1 |
2086    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087    *${as_nl}ac_space=\ *)
2088      sed -n \
2089	"s/'\''/'\''\\\\'\'''\''/g;
2090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091      ;; #(
2092    *)
2093      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094      ;;
2095    esac |
2096    sort
2097)
2098    echo
2099
2100    $as_echo "## ----------------- ##
2101## Output variables. ##
2102## ----------------- ##"
2103    echo
2104    for ac_var in $ac_subst_vars
2105    do
2106      eval ac_val=\$$ac_var
2107      case $ac_val in
2108      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109      esac
2110      $as_echo "$ac_var='\''$ac_val'\''"
2111    done | sort
2112    echo
2113
2114    if test -n "$ac_subst_files"; then
2115      $as_echo "## ------------------- ##
2116## File substitutions. ##
2117## ------------------- ##"
2118      echo
2119      for ac_var in $ac_subst_files
2120      do
2121	eval ac_val=\$$ac_var
2122	case $ac_val in
2123	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124	esac
2125	$as_echo "$ac_var='\''$ac_val'\''"
2126      done | sort
2127      echo
2128    fi
2129
2130    if test -s confdefs.h; then
2131      $as_echo "## ----------- ##
2132## confdefs.h. ##
2133## ----------- ##"
2134      echo
2135      cat confdefs.h
2136      echo
2137    fi
2138    test "$ac_signal" != 0 &&
2139      $as_echo "$as_me: caught signal $ac_signal"
2140    $as_echo "$as_me: exit $exit_status"
2141  } >&5
2142  rm -f core *.core core.conftest.* &&
2143    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2144    exit $exit_status
2145' 0
2146for ac_signal in 1 2 13 15; do
2147  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2148done
2149ac_signal=0
2150
2151# confdefs.h avoids OS command line length limits that DEFS can exceed.
2152rm -f -r conftest* confdefs.h
2153
2154$as_echo "/* confdefs.h */" > confdefs.h
2155
2156# Predefined preprocessor variables.
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_NAME "$PACKAGE_NAME"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_VERSION "$PACKAGE_VERSION"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_STRING "$PACKAGE_STRING"
2172_ACEOF
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_URL "$PACKAGE_URL"
2180_ACEOF
2181
2182
2183# Let the site file select an alternate cache file if it wants to.
2184# Prefer an explicitly selected file to automatically selected ones.
2185ac_site_file1=NONE
2186ac_site_file2=NONE
2187if test -n "$CONFIG_SITE"; then
2188  # We do not want a PATH search for config.site.
2189  case $CONFIG_SITE in #((
2190    -*)  ac_site_file1=./$CONFIG_SITE;;
2191    */*) ac_site_file1=$CONFIG_SITE;;
2192    *)   ac_site_file1=./$CONFIG_SITE;;
2193  esac
2194elif test "x$prefix" != xNONE; then
2195  ac_site_file1=$prefix/share/config.site
2196  ac_site_file2=$prefix/etc/config.site
2197else
2198  ac_site_file1=$ac_default_prefix/share/config.site
2199  ac_site_file2=$ac_default_prefix/etc/config.site
2200fi
2201for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2202do
2203  test "x$ac_site_file" = xNONE && continue
2204  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2207    sed 's/^/| /' "$ac_site_file" >&5
2208    . "$ac_site_file" \
2209      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211as_fn_error $? "failed to load site script $ac_site_file
2212See \`config.log' for more details" "$LINENO" 5; }
2213  fi
2214done
2215
2216if test -r "$cache_file"; then
2217  # Some versions of bash will fail to source /dev/null (special files
2218  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2219  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2220    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221$as_echo "$as_me: loading cache $cache_file" >&6;}
2222    case $cache_file in
2223      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224      *)                      . "./$cache_file";;
2225    esac
2226  fi
2227else
2228  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229$as_echo "$as_me: creating cache $cache_file" >&6;}
2230  >$cache_file
2231fi
2232
2233# Check that the precious variables saved in the cache have kept the same
2234# value.
2235ac_cache_corrupted=false
2236for ac_var in $ac_precious_vars; do
2237  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238  eval ac_new_set=\$ac_env_${ac_var}_set
2239  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240  eval ac_new_val=\$ac_env_${ac_var}_value
2241  case $ac_old_set,$ac_new_set in
2242    set,)
2243      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245      ac_cache_corrupted=: ;;
2246    ,set)
2247      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249      ac_cache_corrupted=: ;;
2250    ,);;
2251    *)
2252      if test "x$ac_old_val" != "x$ac_new_val"; then
2253	# differences in whitespace do not lead to failure.
2254	ac_old_val_w=`echo x $ac_old_val`
2255	ac_new_val_w=`echo x $ac_new_val`
2256	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259	  ac_cache_corrupted=:
2260	else
2261	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263	  eval $ac_var=\$ac_old_val
2264	fi
2265	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2266$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2267	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2268$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2269      fi;;
2270  esac
2271  # Pass precious variables to config.status.
2272  if test "$ac_new_set" = set; then
2273    case $ac_new_val in
2274    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275    *) ac_arg=$ac_var=$ac_new_val ;;
2276    esac
2277    case " $ac_configure_args " in
2278      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2279      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2280    esac
2281  fi
2282done
2283if $ac_cache_corrupted; then
2284  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2289fi
2290## -------------------- ##
2291## Main body of script. ##
2292## -------------------- ##
2293
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301
2302
2303ac_aux_dir=
2304for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2305  if test -f "$ac_dir/install-sh"; then
2306    ac_aux_dir=$ac_dir
2307    ac_install_sh="$ac_aux_dir/install-sh -c"
2308    break
2309  elif test -f "$ac_dir/install.sh"; then
2310    ac_aux_dir=$ac_dir
2311    ac_install_sh="$ac_aux_dir/install.sh -c"
2312    break
2313  elif test -f "$ac_dir/shtool"; then
2314    ac_aux_dir=$ac_dir
2315    ac_install_sh="$ac_aux_dir/shtool install -c"
2316    break
2317  fi
2318done
2319if test -z "$ac_aux_dir"; then
2320  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2321fi
2322
2323# These three variables are undocumented and unsupported,
2324# and are intended to be withdrawn in a future Autoconf release.
2325# They can cause serious problems if a builder's source tree is in a directory
2326# whose full name contains unusual characters.
2327ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2328ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2329ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2330
2331
2332# Make sure we can run config.sub.
2333$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2334  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2335
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2337$as_echo_n "checking build system type... " >&6; }
2338if ${ac_cv_build+:} false; then :
2339  $as_echo_n "(cached) " >&6
2340else
2341  ac_build_alias=$build_alias
2342test "x$ac_build_alias" = x &&
2343  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2344test "x$ac_build_alias" = x &&
2345  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2346ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2347  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2348
2349fi
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2351$as_echo "$ac_cv_build" >&6; }
2352case $ac_cv_build in
2353*-*-*) ;;
2354*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2355esac
2356build=$ac_cv_build
2357ac_save_IFS=$IFS; IFS='-'
2358set x $ac_cv_build
2359shift
2360build_cpu=$1
2361build_vendor=$2
2362shift; shift
2363# Remember, the first character of IFS is used to create $*,
2364# except with old shells:
2365build_os=$*
2366IFS=$ac_save_IFS
2367case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2368
2369
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2371$as_echo_n "checking host system type... " >&6; }
2372if ${ac_cv_host+:} false; then :
2373  $as_echo_n "(cached) " >&6
2374else
2375  if test "x$host_alias" = x; then
2376  ac_cv_host=$ac_cv_build
2377else
2378  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2379    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2380fi
2381
2382fi
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2384$as_echo "$ac_cv_host" >&6; }
2385case $ac_cv_host in
2386*-*-*) ;;
2387*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2388esac
2389host=$ac_cv_host
2390ac_save_IFS=$IFS; IFS='-'
2391set x $ac_cv_host
2392shift
2393host_cpu=$1
2394host_vendor=$2
2395shift; shift
2396# Remember, the first character of IFS is used to create $*,
2397# except with old shells:
2398host_os=$*
2399IFS=$ac_save_IFS
2400case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2401
2402
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2404$as_echo_n "checking target system type... " >&6; }
2405if ${ac_cv_target+:} false; then :
2406  $as_echo_n "(cached) " >&6
2407else
2408  if test "x$target_alias" = x; then
2409  ac_cv_target=$ac_cv_host
2410else
2411  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2412    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2413fi
2414
2415fi
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2417$as_echo "$ac_cv_target" >&6; }
2418case $ac_cv_target in
2419*-*-*) ;;
2420*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2421esac
2422target=$ac_cv_target
2423ac_save_IFS=$IFS; IFS='-'
2424set x $ac_cv_target
2425shift
2426target_cpu=$1
2427target_vendor=$2
2428shift; shift
2429# Remember, the first character of IFS is used to create $*,
2430# except with old shells:
2431target_os=$*
2432IFS=$ac_save_IFS
2433case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2434
2435
2436# The aliases save the names the user supplied, while $host etc.
2437# will get canonicalized.
2438test -n "$target_alias" &&
2439  test "$program_prefix$program_suffix$program_transform_name" = \
2440    NONENONEs,x,x, &&
2441  program_prefix=${target_alias}-
2442
2443
2444am__api_version='1.15'
2445
2446# Find a good install program.  We prefer a C program (faster),
2447# so one script is as good as another.  But avoid the broken or
2448# incompatible versions:
2449# SysV /etc/install, /usr/sbin/install
2450# SunOS /usr/etc/install
2451# IRIX /sbin/install
2452# AIX /bin/install
2453# AmigaOS /C/install, which installs bootblocks on floppy discs
2454# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457# OS/2's system install, which has a completely different semantic
2458# ./install, which can be erroneously created by make from ./install.sh.
2459# Reject install programs that cannot install multiple files.
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2461$as_echo_n "checking for a BSD-compatible install... " >&6; }
2462if test -z "$INSTALL"; then
2463if ${ac_cv_path_install+:} false; then :
2464  $as_echo_n "(cached) " >&6
2465else
2466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469  IFS=$as_save_IFS
2470  test -z "$as_dir" && as_dir=.
2471    # Account for people who put trailing slashes in PATH elements.
2472case $as_dir/ in #((
2473  ./ | .// | /[cC]/* | \
2474  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2475  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2476  /usr/ucb/* ) ;;
2477  *)
2478    # OSF1 and SCO ODT 3.0 have their own names for install.
2479    # Don't use installbsd from OSF since it installs stuff as root
2480    # by default.
2481    for ac_prog in ginstall scoinst install; do
2482      for ac_exec_ext in '' $ac_executable_extensions; do
2483	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2484	  if test $ac_prog = install &&
2485	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486	    # AIX install.  It has an incompatible calling convention.
2487	    :
2488	  elif test $ac_prog = install &&
2489	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490	    # program-specific install script used by HP pwplus--don't use.
2491	    :
2492	  else
2493	    rm -rf conftest.one conftest.two conftest.dir
2494	    echo one > conftest.one
2495	    echo two > conftest.two
2496	    mkdir conftest.dir
2497	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2498	      test -s conftest.one && test -s conftest.two &&
2499	      test -s conftest.dir/conftest.one &&
2500	      test -s conftest.dir/conftest.two
2501	    then
2502	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2503	      break 3
2504	    fi
2505	  fi
2506	fi
2507      done
2508    done
2509    ;;
2510esac
2511
2512  done
2513IFS=$as_save_IFS
2514
2515rm -rf conftest.one conftest.two conftest.dir
2516
2517fi
2518  if test "${ac_cv_path_install+set}" = set; then
2519    INSTALL=$ac_cv_path_install
2520  else
2521    # As a last resort, use the slow shell script.  Don't cache a
2522    # value for INSTALL within a source directory, because that will
2523    # break other packages using the cache if that directory is
2524    # removed, or if the value is a relative name.
2525    INSTALL=$ac_install_sh
2526  fi
2527fi
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2529$as_echo "$INSTALL" >&6; }
2530
2531# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2532# It thinks the first close brace ends the variable substitution.
2533test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2534
2535test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2536
2537test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2538
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2540$as_echo_n "checking whether build environment is sane... " >&6; }
2541# Reject unsafe characters in $srcdir or the absolute working directory
2542# name.  Accept space and tab only in the latter.
2543am_lf='
2544'
2545case `pwd` in
2546  *[\\\"\#\$\&\'\`$am_lf]*)
2547    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2548esac
2549case $srcdir in
2550  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2551    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2552esac
2553
2554# Do 'set' in a subshell so we don't clobber the current shell's
2555# arguments.  Must try -L first in case configure is actually a
2556# symlink; some systems play weird games with the mod time of symlinks
2557# (eg FreeBSD returns the mod time of the symlink's containing
2558# directory).
2559if (
2560   am_has_slept=no
2561   for am_try in 1 2; do
2562     echo "timestamp, slept: $am_has_slept" > conftest.file
2563     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2564     if test "$*" = "X"; then
2565	# -L didn't work.
2566	set X `ls -t "$srcdir/configure" conftest.file`
2567     fi
2568     if test "$*" != "X $srcdir/configure conftest.file" \
2569	&& test "$*" != "X conftest.file $srcdir/configure"; then
2570
2571	# If neither matched, then we have a broken ls.  This can happen
2572	# if, for instance, CONFIG_SHELL is bash and it inherits a
2573	# broken ls alias from the environment.  This has actually
2574	# happened.  Such a system could not be considered "sane".
2575	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2576  alias in your environment" "$LINENO" 5
2577     fi
2578     if test "$2" = conftest.file || test $am_try -eq 2; then
2579       break
2580     fi
2581     # Just in case.
2582     sleep 1
2583     am_has_slept=yes
2584   done
2585   test "$2" = conftest.file
2586   )
2587then
2588   # Ok.
2589   :
2590else
2591   as_fn_error $? "newly created file is older than distributed files!
2592Check your system clock" "$LINENO" 5
2593fi
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595$as_echo "yes" >&6; }
2596# If we didn't sleep, we still need to ensure time stamps of config.status and
2597# generated files are strictly newer.
2598am_sleep_pid=
2599if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2600  ( sleep 1 ) &
2601  am_sleep_pid=$!
2602fi
2603
2604rm -f conftest.file
2605
2606test "$program_prefix" != NONE &&
2607  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2608# Use a double $ so make ignores it.
2609test "$program_suffix" != NONE &&
2610  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2611# Double any \ or $.
2612# By default was `s,x,x', remove it if useless.
2613ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2614program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2615
2616# Expand $ac_aux_dir to an absolute path.
2617am_aux_dir=`cd "$ac_aux_dir" && pwd`
2618
2619if test x"${MISSING+set}" != xset; then
2620  case $am_aux_dir in
2621  *\ * | *\	*)
2622    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2623  *)
2624    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2625  esac
2626fi
2627# Use eval to expand $SHELL
2628if eval "$MISSING --is-lightweight"; then
2629  am_missing_run="$MISSING "
2630else
2631  am_missing_run=
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2633$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2634fi
2635
2636if test x"${install_sh+set}" != xset; then
2637  case $am_aux_dir in
2638  *\ * | *\	*)
2639    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2640  *)
2641    install_sh="\${SHELL} $am_aux_dir/install-sh"
2642  esac
2643fi
2644
2645# Installed binaries are usually stripped using 'strip' when the user
2646# run "make install-strip".  However 'strip' might not be the right
2647# tool to use in cross-compilation environments, therefore Automake
2648# will honor the 'STRIP' environment variable to overrule this program.
2649if test "$cross_compiling" != no; then
2650  if test -n "$ac_tool_prefix"; then
2651  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652set dummy ${ac_tool_prefix}strip; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if ${ac_cv_prog_STRIP+:} false; then :
2656  $as_echo_n "(cached) " >&6
2657else
2658  if test -n "$STRIP"; then
2659  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    for ac_exec_ext in '' $ac_executable_extensions; do
2667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670    break 2
2671  fi
2672done
2673  done
2674IFS=$as_save_IFS
2675
2676fi
2677fi
2678STRIP=$ac_cv_prog_STRIP
2679if test -n "$STRIP"; then
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2681$as_echo "$STRIP" >&6; }
2682else
2683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
2685fi
2686
2687
2688fi
2689if test -z "$ac_cv_prog_STRIP"; then
2690  ac_ct_STRIP=$STRIP
2691  # Extract the first word of "strip", so it can be a program name with args.
2692set dummy strip; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2696  $as_echo_n "(cached) " >&6
2697else
2698  if test -n "$ac_ct_STRIP"; then
2699  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704  IFS=$as_save_IFS
2705  test -z "$as_dir" && as_dir=.
2706    for ac_exec_ext in '' $ac_executable_extensions; do
2707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708    ac_cv_prog_ac_ct_STRIP="strip"
2709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710    break 2
2711  fi
2712done
2713  done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719if test -n "$ac_ct_STRIP"; then
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2721$as_echo "$ac_ct_STRIP" >&6; }
2722else
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727  if test "x$ac_ct_STRIP" = x; then
2728    STRIP=":"
2729  else
2730    case $cross_compiling:$ac_tool_warned in
2731yes:)
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734ac_tool_warned=yes ;;
2735esac
2736    STRIP=$ac_ct_STRIP
2737  fi
2738else
2739  STRIP="$ac_cv_prog_STRIP"
2740fi
2741
2742fi
2743INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2746$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2747if test -z "$MKDIR_P"; then
2748  if ${ac_cv_path_mkdir+:} false; then :
2749  $as_echo_n "(cached) " >&6
2750else
2751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2753do
2754  IFS=$as_save_IFS
2755  test -z "$as_dir" && as_dir=.
2756    for ac_prog in mkdir gmkdir; do
2757	 for ac_exec_ext in '' $ac_executable_extensions; do
2758	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2759	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2760	     'mkdir (GNU coreutils) '* | \
2761	     'mkdir (coreutils) '* | \
2762	     'mkdir (fileutils) '4.1*)
2763	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2764	       break 3;;
2765	   esac
2766	 done
2767       done
2768  done
2769IFS=$as_save_IFS
2770
2771fi
2772
2773  test -d ./--version && rmdir ./--version
2774  if test "${ac_cv_path_mkdir+set}" = set; then
2775    MKDIR_P="$ac_cv_path_mkdir -p"
2776  else
2777    # As a last resort, use the slow shell script.  Don't cache a
2778    # value for MKDIR_P within a source directory, because that will
2779    # break other packages using the cache if that directory is
2780    # removed, or if the value is a relative name.
2781    MKDIR_P="$ac_install_sh -d"
2782  fi
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2785$as_echo "$MKDIR_P" >&6; }
2786
2787for ac_prog in gawk mawk nawk awk
2788do
2789  # Extract the first word of "$ac_prog", so it can be a program name with args.
2790set dummy $ac_prog; ac_word=$2
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
2793if ${ac_cv_prog_AWK+:} false; then :
2794  $as_echo_n "(cached) " >&6
2795else
2796  if test -n "$AWK"; then
2797  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804    for ac_exec_ext in '' $ac_executable_extensions; do
2805  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806    ac_cv_prog_AWK="$ac_prog"
2807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808    break 2
2809  fi
2810done
2811  done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816AWK=$ac_cv_prog_AWK
2817if test -n "$AWK"; then
2818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2819$as_echo "$AWK" >&6; }
2820else
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822$as_echo "no" >&6; }
2823fi
2824
2825
2826  test -n "$AWK" && break
2827done
2828
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2830$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2831set x ${MAKE-make}
2832ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2833if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  cat >conftest.make <<\_ACEOF
2837SHELL = /bin/sh
2838all:
2839	@echo '@@@%%%=$(MAKE)=@@@%%%'
2840_ACEOF
2841# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2842case `${MAKE-make} -f conftest.make 2>/dev/null` in
2843  *@@@%%%=?*=@@@%%%*)
2844    eval ac_cv_prog_make_${ac_make}_set=yes;;
2845  *)
2846    eval ac_cv_prog_make_${ac_make}_set=no;;
2847esac
2848rm -f conftest.make
2849fi
2850if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852$as_echo "yes" >&6; }
2853  SET_MAKE=
2854else
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857  SET_MAKE="MAKE=${MAKE-make}"
2858fi
2859
2860rm -rf .tst 2>/dev/null
2861mkdir .tst 2>/dev/null
2862if test -d .tst; then
2863  am__leading_dot=.
2864else
2865  am__leading_dot=_
2866fi
2867rmdir .tst 2>/dev/null
2868
2869# Check whether --enable-silent-rules was given.
2870if test "${enable_silent_rules+set}" = set; then :
2871  enableval=$enable_silent_rules;
2872fi
2873
2874case $enable_silent_rules in # (((
2875  yes) AM_DEFAULT_VERBOSITY=0;;
2876   no) AM_DEFAULT_VERBOSITY=1;;
2877    *) AM_DEFAULT_VERBOSITY=1;;
2878esac
2879am_make=${MAKE-make}
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2881$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2882if ${am_cv_make_support_nested_variables+:} false; then :
2883  $as_echo_n "(cached) " >&6
2884else
2885  if $as_echo 'TRUE=$(BAR$(V))
2886BAR0=false
2887BAR1=true
2888V=1
2889am__doit:
2890	@$(TRUE)
2891.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2892  am_cv_make_support_nested_variables=yes
2893else
2894  am_cv_make_support_nested_variables=no
2895fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2898$as_echo "$am_cv_make_support_nested_variables" >&6; }
2899if test $am_cv_make_support_nested_variables = yes; then
2900    AM_V='$(V)'
2901  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2902else
2903  AM_V=$AM_DEFAULT_VERBOSITY
2904  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2905fi
2906AM_BACKSLASH='\'
2907
2908if test "`cd $srcdir && pwd`" != "`pwd`"; then
2909  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2910  # is not polluted with repeated "-I."
2911  am__isrc=' -I$(srcdir)'
2912  # test to see if srcdir already configured
2913  if test -f $srcdir/config.status; then
2914    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2915  fi
2916fi
2917
2918# test whether we have cygpath
2919if test -z "$CYGPATH_W"; then
2920  if (cygpath --version) >/dev/null 2>/dev/null; then
2921    CYGPATH_W='cygpath -w'
2922  else
2923    CYGPATH_W=echo
2924  fi
2925fi
2926
2927
2928# Define the identity of the package.
2929 PACKAGE='cpuminer'
2930 VERSION='2.5.0'
2931
2932
2933cat >>confdefs.h <<_ACEOF
2934#define PACKAGE "$PACKAGE"
2935_ACEOF
2936
2937
2938cat >>confdefs.h <<_ACEOF
2939#define VERSION "$VERSION"
2940_ACEOF
2941
2942# Some tools Automake needs.
2943
2944ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2945
2946
2947AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2948
2949
2950AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2951
2952
2953AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2954
2955
2956MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2957
2958# For better backward compatibility.  To be removed once Automake 1.9.x
2959# dies out for good.  For more background, see:
2960# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2961# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2962mkdir_p='$(MKDIR_P)'
2963
2964# We need awk for the "check" target (and possibly the TAP driver).  The
2965# system "awk" is bad on some platforms.
2966# Always define AMTAR for backward compatibility.  Yes, it's still used
2967# in the wild :-(  We should find a proper way to deprecate it ...
2968AMTAR='$${TAR-tar}'
2969
2970
2971# We'll loop over all known methods to create a tar archive until one works.
2972_am_tools='gnutar  pax cpio none'
2973
2974am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2975
2976
2977
2978
2979
2980
2981# POSIX will say in a future version that running "rm -f" with no argument
2982# is OK; and we want to be able to make that assumption in our Makefile
2983# recipes.  So use an aggressive probe to check that the usage we want is
2984# actually supported "in the wild" to an acceptable degree.
2985# See automake bug#10828.
2986# To make any issue more visible, cause the running configure to be aborted
2987# by default if the 'rm' program in use doesn't match our expectations; the
2988# user can still override this though.
2989if rm -f && rm -fr && rm -rf; then : OK; else
2990  cat >&2 <<'END'
2991Oops!
2992
2993Your 'rm' program seems unable to run without file operands specified
2994on the command line, even when the '-f' option is present.  This is contrary
2995to the behaviour of most rm programs out there, and not conforming with
2996the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2997
2998Please tell bug-automake@gnu.org about your system, including the value
2999of your $PATH and any error possibly output before this message.  This
3000can help us improve future automake versions.
3001
3002END
3003  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3004    echo 'Configuration will proceed anyway, since you have set the' >&2
3005    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3006    echo >&2
3007  else
3008    cat >&2 <<'END'
3009Aborting the configuration process, to ensure you take notice of the issue.
3010
3011You can download and install GNU coreutils to get an 'rm' implementation
3012that behaves properly: <http://www.gnu.org/software/coreutils/>.
3013
3014If you want to complete the configuration process using your problematic
3015'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3016to "yes", and re-run configure.
3017
3018END
3019    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3020  fi
3021fi
3022
3023ac_config_headers="$ac_config_headers cpuminer-config.h"
3024
3025
3026
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3028$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3029    # Check whether --enable-maintainer-mode was given.
3030if test "${enable_maintainer_mode+set}" = set; then :
3031  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3032else
3033  USE_MAINTAINER_MODE=no
3034fi
3035
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3037$as_echo "$USE_MAINTAINER_MODE" >&6; }
3038   if test $USE_MAINTAINER_MODE = yes; then
3039  MAINTAINER_MODE_TRUE=
3040  MAINTAINER_MODE_FALSE='#'
3041else
3042  MAINTAINER_MODE_TRUE='#'
3043  MAINTAINER_MODE_FALSE=
3044fi
3045
3046  MAINT=$MAINTAINER_MODE_TRUE
3047
3048
3049
3050DEPDIR="${am__leading_dot}deps"
3051
3052ac_config_commands="$ac_config_commands depfiles"
3053
3054
3055am_make=${MAKE-make}
3056cat > confinc << 'END'
3057am__doit:
3058	@echo this is the am__doit target
3059.PHONY: am__doit
3060END
3061# If we don't find an include directive, just comment out the code.
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3063$as_echo_n "checking for style of include used by $am_make... " >&6; }
3064am__include="#"
3065am__quote=
3066_am_result=none
3067# First try GNU make style include.
3068echo "include confinc" > confmf
3069# Ignore all kinds of additional output from 'make'.
3070case `$am_make -s -f confmf 2> /dev/null` in #(
3071*the\ am__doit\ target*)
3072  am__include=include
3073  am__quote=
3074  _am_result=GNU
3075  ;;
3076esac
3077# Now try BSD make style include.
3078if test "$am__include" = "#"; then
3079   echo '.include "confinc"' > confmf
3080   case `$am_make -s -f confmf 2> /dev/null` in #(
3081   *the\ am__doit\ target*)
3082     am__include=.include
3083     am__quote="\""
3084     _am_result=BSD
3085     ;;
3086   esac
3087fi
3088
3089
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3091$as_echo "$_am_result" >&6; }
3092rm -f confinc confmf
3093
3094# Check whether --enable-dependency-tracking was given.
3095if test "${enable_dependency_tracking+set}" = set; then :
3096  enableval=$enable_dependency_tracking;
3097fi
3098
3099if test "x$enable_dependency_tracking" != xno; then
3100  am_depcomp="$ac_aux_dir/depcomp"
3101  AMDEPBACKSLASH='\'
3102  am__nodep='_no'
3103fi
3104 if test "x$enable_dependency_tracking" != xno; then
3105  AMDEP_TRUE=
3106  AMDEP_FALSE='#'
3107else
3108  AMDEP_TRUE='#'
3109  AMDEP_FALSE=
3110fi
3111
3112
3113ac_ext=c
3114ac_cpp='$CPP $CPPFLAGS'
3115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118if test -n "$ac_tool_prefix"; then
3119  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3120set dummy ${ac_tool_prefix}gcc; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if ${ac_cv_prog_CC+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test -n "$CC"; then
3127  ac_cv_prog_CC="$CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  test -z "$as_dir" && as_dir=.
3134    for ac_exec_ext in '' $ac_executable_extensions; do
3135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138    break 2
3139  fi
3140done
3141  done
3142IFS=$as_save_IFS
3143
3144fi
3145fi
3146CC=$ac_cv_prog_CC
3147if test -n "$CC"; then
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149$as_echo "$CC" >&6; }
3150else
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153fi
3154
3155
3156fi
3157if test -z "$ac_cv_prog_CC"; then
3158  ac_ct_CC=$CC
3159  # Extract the first word of "gcc", so it can be a program name with args.
3160set dummy gcc; ac_word=$2
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162$as_echo_n "checking for $ac_word... " >&6; }
3163if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  if test -n "$ac_ct_CC"; then
3167  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174    for ac_exec_ext in '' $ac_executable_extensions; do
3175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176    ac_cv_prog_ac_ct_CC="gcc"
3177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178    break 2
3179  fi
3180done
3181  done
3182IFS=$as_save_IFS
3183
3184fi
3185fi
3186ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187if test -n "$ac_ct_CC"; then
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189$as_echo "$ac_ct_CC" >&6; }
3190else
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195  if test "x$ac_ct_CC" = x; then
3196    CC=""
3197  else
3198    case $cross_compiling:$ac_tool_warned in
3199yes:)
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202ac_tool_warned=yes ;;
3203esac
3204    CC=$ac_ct_CC
3205  fi
3206else
3207  CC="$ac_cv_prog_CC"
3208fi
3209
3210if test -z "$CC"; then
3211          if test -n "$ac_tool_prefix"; then
3212    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3213set dummy ${ac_tool_prefix}cc; ac_word=$2
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215$as_echo_n "checking for $ac_word... " >&6; }
3216if ${ac_cv_prog_CC+:} false; then :
3217  $as_echo_n "(cached) " >&6
3218else
3219  if test -n "$CC"; then
3220  ac_cv_prog_CC="$CC" # Let the user override the test.
3221else
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229    ac_cv_prog_CC="${ac_tool_prefix}cc"
3230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234  done
3235IFS=$as_save_IFS
3236
3237fi
3238fi
3239CC=$ac_cv_prog_CC
3240if test -n "$CC"; then
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242$as_echo "$CC" >&6; }
3243else
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246fi
3247
3248
3249  fi
3250fi
3251if test -z "$CC"; then
3252  # Extract the first word of "cc", so it can be a program name with args.
3253set dummy cc; ac_word=$2
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255$as_echo_n "checking for $ac_word... " >&6; }
3256if ${ac_cv_prog_CC+:} false; then :
3257  $as_echo_n "(cached) " >&6
3258else
3259  if test -n "$CC"; then
3260  ac_cv_prog_CC="$CC" # Let the user override the test.
3261else
3262  ac_prog_rejected=no
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268    for ac_exec_ext in '' $ac_executable_extensions; do
3269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3271       ac_prog_rejected=yes
3272       continue
3273     fi
3274    ac_cv_prog_CC="cc"
3275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279  done
3280IFS=$as_save_IFS
3281
3282if test $ac_prog_rejected = yes; then
3283  # We found a bogon in the path, so make sure we never use it.
3284  set dummy $ac_cv_prog_CC
3285  shift
3286  if test $# != 0; then
3287    # We chose a different compiler from the bogus one.
3288    # However, it has the same basename, so the bogon will be chosen
3289    # first if we set CC to just the basename; use the full file name.
3290    shift
3291    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3292  fi
3293fi
3294fi
3295fi
3296CC=$ac_cv_prog_CC
3297if test -n "$CC"; then
3298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299$as_echo "$CC" >&6; }
3300else
3301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306fi
3307if test -z "$CC"; then
3308  if test -n "$ac_tool_prefix"; then
3309  for ac_prog in cl.exe
3310  do
3311    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if ${ac_cv_prog_CC+:} false; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  if test -n "$CC"; then
3319  ac_cv_prog_CC="$CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326    for ac_exec_ext in '' $ac_executable_extensions; do
3327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333  done
3334IFS=$as_save_IFS
3335
3336fi
3337fi
3338CC=$ac_cv_prog_CC
3339if test -n "$CC"; then
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341$as_echo "$CC" >&6; }
3342else
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345fi
3346
3347
3348    test -n "$CC" && break
3349  done
3350fi
3351if test -z "$CC"; then
3352  ac_ct_CC=$CC
3353  for ac_prog in cl.exe
3354do
3355  # Extract the first word of "$ac_prog", so it can be a program name with args.
3356set dummy $ac_prog; ac_word=$2
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358$as_echo_n "checking for $ac_word... " >&6; }
3359if ${ac_cv_prog_ac_ct_CC+:} false; then :
3360  $as_echo_n "(cached) " >&6
3361else
3362  if test -n "$ac_ct_CC"; then
3363  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368  IFS=$as_save_IFS
3369  test -z "$as_dir" && as_dir=.
3370    for ac_exec_ext in '' $ac_executable_extensions; do
3371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372    ac_cv_prog_ac_ct_CC="$ac_prog"
3373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377  done
3378IFS=$as_save_IFS
3379
3380fi
3381fi
3382ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383if test -n "$ac_ct_CC"; then
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385$as_echo "$ac_ct_CC" >&6; }
3386else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389fi
3390
3391
3392  test -n "$ac_ct_CC" && break
3393done
3394
3395  if test "x$ac_ct_CC" = x; then
3396    CC=""
3397  else
3398    case $cross_compiling:$ac_tool_warned in
3399yes:)
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402ac_tool_warned=yes ;;
3403esac
3404    CC=$ac_ct_CC
3405  fi
3406fi
3407
3408fi
3409
3410
3411test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413as_fn_error $? "no acceptable C compiler found in \$PATH
3414See \`config.log' for more details" "$LINENO" 5; }
3415
3416# Provide some information about the compiler.
3417$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3418set X $ac_compile
3419ac_compiler=$2
3420for ac_option in --version -v -V -qversion; do
3421  { { ac_try="$ac_compiler $ac_option >&5"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3429  ac_status=$?
3430  if test -s conftest.err; then
3431    sed '10a\
3432... rest of stderr output deleted ...
3433         10q' conftest.err >conftest.er1
3434    cat conftest.er1 >&5
3435  fi
3436  rm -f conftest.er1 conftest.err
3437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438  test $ac_status = 0; }
3439done
3440
3441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442/* end confdefs.h.  */
3443
3444int
3445main ()
3446{
3447
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452ac_clean_files_save=$ac_clean_files
3453ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3454# Try to create an executable without -o first, disregard a.out.
3455# It will help us diagnose broken compilers, and finding out an intuition
3456# of exeext.
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3458$as_echo_n "checking whether the C compiler works... " >&6; }
3459ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3460
3461# The possible output files:
3462ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3463
3464ac_rmfiles=
3465for ac_file in $ac_files
3466do
3467  case $ac_file in
3468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3469    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3470  esac
3471done
3472rm -f $ac_rmfiles
3473
3474if { { ac_try="$ac_link_default"
3475case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481  (eval "$ac_link_default") 2>&5
3482  ac_status=$?
3483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484  test $ac_status = 0; }; then :
3485  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3486# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3487# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3488# so that the user can short-circuit this test for compilers unknown to
3489# Autoconf.
3490for ac_file in $ac_files ''
3491do
3492  test -f "$ac_file" || continue
3493  case $ac_file in
3494    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3495	;;
3496    [ab].out )
3497	# We found the default executable, but exeext='' is most
3498	# certainly right.
3499	break;;
3500    *.* )
3501	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3502	then :; else
3503	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3504	fi
3505	# We set ac_cv_exeext here because the later test for it is not
3506	# safe: cross compilers may not add the suffix if given an `-o'
3507	# argument, so we may need to know it at that point already.
3508	# Even if this section looks crufty: it has the advantage of
3509	# actually working.
3510	break;;
3511    * )
3512	break;;
3513  esac
3514done
3515test "$ac_cv_exeext" = no && ac_cv_exeext=
3516
3517else
3518  ac_file=''
3519fi
3520if test -z "$ac_file"; then :
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522$as_echo "no" >&6; }
3523$as_echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3526{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528as_fn_error 77 "C compiler cannot create executables
3529See \`config.log' for more details" "$LINENO" 5; }
3530else
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532$as_echo "yes" >&6; }
3533fi
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3535$as_echo_n "checking for C compiler default output file name... " >&6; }
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3537$as_echo "$ac_file" >&6; }
3538ac_exeext=$ac_cv_exeext
3539
3540rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3541ac_clean_files=$ac_clean_files_save
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3543$as_echo_n "checking for suffix of executables... " >&6; }
3544if { { ac_try="$ac_link"
3545case "(($ac_try" in
3546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547  *) ac_try_echo=$ac_try;;
3548esac
3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550$as_echo "$ac_try_echo"; } >&5
3551  (eval "$ac_link") 2>&5
3552  ac_status=$?
3553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3554  test $ac_status = 0; }; then :
3555  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3556# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3557# work properly (i.e., refer to `conftest.exe'), while it won't with
3558# `rm'.
3559for ac_file in conftest.exe conftest conftest.*; do
3560  test -f "$ac_file" || continue
3561  case $ac_file in
3562    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564	  break;;
3565    * ) break;;
3566  esac
3567done
3568else
3569  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3572See \`config.log' for more details" "$LINENO" 5; }
3573fi
3574rm -f conftest conftest$ac_cv_exeext
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3576$as_echo "$ac_cv_exeext" >&6; }
3577
3578rm -f conftest.$ac_ext
3579EXEEXT=$ac_cv_exeext
3580ac_exeext=$EXEEXT
3581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583#include <stdio.h>
3584int
3585main ()
3586{
3587FILE *f = fopen ("conftest.out", "w");
3588 return ferror (f) || fclose (f) != 0;
3589
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594ac_clean_files="$ac_clean_files conftest.out"
3595# Check that the compiler produces executables we can run.  If not, either
3596# the compiler is broken, or we cross compile.
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3598$as_echo_n "checking whether we are cross compiling... " >&6; }
3599if test "$cross_compiling" != yes; then
3600  { { ac_try="$ac_link"
3601case "(($ac_try" in
3602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603  *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607  (eval "$ac_link") 2>&5
3608  ac_status=$?
3609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610  test $ac_status = 0; }
3611  if { ac_try='./conftest$ac_cv_exeext'
3612  { { case "(($ac_try" in
3613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614  *) ac_try_echo=$ac_try;;
3615esac
3616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617$as_echo "$ac_try_echo"; } >&5
3618  (eval "$ac_try") 2>&5
3619  ac_status=$?
3620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621  test $ac_status = 0; }; }; then
3622    cross_compiling=no
3623  else
3624    if test "$cross_compiling" = maybe; then
3625	cross_compiling=yes
3626    else
3627	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629as_fn_error $? "cannot run C compiled programs.
3630If you meant to cross compile, use \`--host'.
3631See \`config.log' for more details" "$LINENO" 5; }
3632    fi
3633  fi
3634fi
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3636$as_echo "$cross_compiling" >&6; }
3637
3638rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3639ac_clean_files=$ac_clean_files_save
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3641$as_echo_n "checking for suffix of object files... " >&6; }
3642if ${ac_cv_objext+:} false; then :
3643  $as_echo_n "(cached) " >&6
3644else
3645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h.  */
3647
3648int
3649main ()
3650{
3651
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656rm -f conftest.o conftest.obj
3657if { { ac_try="$ac_compile"
3658case "(($ac_try" in
3659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660  *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663$as_echo "$ac_try_echo"; } >&5
3664  (eval "$ac_compile") 2>&5
3665  ac_status=$?
3666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667  test $ac_status = 0; }; then :
3668  for ac_file in conftest.o conftest.obj conftest.*; do
3669  test -f "$ac_file" || continue;
3670  case $ac_file in
3671    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3673       break;;
3674  esac
3675done
3676else
3677  $as_echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682as_fn_error $? "cannot compute suffix of object files: cannot compile
3683See \`config.log' for more details" "$LINENO" 5; }
3684fi
3685rm -f conftest.$ac_cv_objext conftest.$ac_ext
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3688$as_echo "$ac_cv_objext" >&6; }
3689OBJEXT=$ac_cv_objext
3690ac_objext=$OBJEXT
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3692$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3693if ${ac_cv_c_compiler_gnu+:} false; then :
3694  $as_echo_n "(cached) " >&6
3695else
3696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698
3699int
3700main ()
3701{
3702#ifndef __GNUC__
3703       choke me
3704#endif
3705
3706  ;
3707  return 0;
3708}
3709_ACEOF
3710if ac_fn_c_try_compile "$LINENO"; then :
3711  ac_compiler_gnu=yes
3712else
3713  ac_compiler_gnu=no
3714fi
3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716ac_cv_c_compiler_gnu=$ac_compiler_gnu
3717
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3720$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3721if test $ac_compiler_gnu = yes; then
3722  GCC=yes
3723else
3724  GCC=
3725fi
3726ac_test_CFLAGS=${CFLAGS+set}
3727ac_save_CFLAGS=$CFLAGS
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3729$as_echo_n "checking whether $CC accepts -g... " >&6; }
3730if ${ac_cv_prog_cc_g+:} false; then :
3731  $as_echo_n "(cached) " >&6
3732else
3733  ac_save_c_werror_flag=$ac_c_werror_flag
3734   ac_c_werror_flag=yes
3735   ac_cv_prog_cc_g=no
3736   CFLAGS="-g"
3737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h.  */
3739
3740int
3741main ()
3742{
3743
3744  ;
3745  return 0;
3746}
3747_ACEOF
3748if ac_fn_c_try_compile "$LINENO"; then :
3749  ac_cv_prog_cc_g=yes
3750else
3751  CFLAGS=""
3752      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754
3755int
3756main ()
3757{
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763if ac_fn_c_try_compile "$LINENO"; then :
3764
3765else
3766  ac_c_werror_flag=$ac_save_c_werror_flag
3767	 CFLAGS="-g"
3768	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h.  */
3770
3771int
3772main ()
3773{
3774
3775  ;
3776  return 0;
3777}
3778_ACEOF
3779if ac_fn_c_try_compile "$LINENO"; then :
3780  ac_cv_prog_cc_g=yes
3781fi
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787   ac_c_werror_flag=$ac_save_c_werror_flag
3788fi
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3790$as_echo "$ac_cv_prog_cc_g" >&6; }
3791if test "$ac_test_CFLAGS" = set; then
3792  CFLAGS=$ac_save_CFLAGS
3793elif test $ac_cv_prog_cc_g = yes; then
3794  if test "$GCC" = yes; then
3795    CFLAGS="-g -O2"
3796  else
3797    CFLAGS="-g"
3798  fi
3799else
3800  if test "$GCC" = yes; then
3801    CFLAGS="-O2"
3802  else
3803    CFLAGS=
3804  fi
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3807$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3808if ${ac_cv_prog_cc_c89+:} false; then :
3809  $as_echo_n "(cached) " >&6
3810else
3811  ac_cv_prog_cc_c89=no
3812ac_save_CC=$CC
3813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h.  */
3815#include <stdarg.h>
3816#include <stdio.h>
3817struct stat;
3818/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3819struct buf { int x; };
3820FILE * (*rcsopen) (struct buf *, struct stat *, int);
3821static char *e (p, i)
3822     char **p;
3823     int i;
3824{
3825  return p[i];
3826}
3827static char *f (char * (*g) (char **, int), char **p, ...)
3828{
3829  char *s;
3830  va_list v;
3831  va_start (v,p);
3832  s = g (p, va_arg (v,int));
3833  va_end (v);
3834  return s;
3835}
3836
3837/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3838   function prototypes and stuff, but not '\xHH' hex character constants.
3839   These don't provoke an error unfortunately, instead are silently treated
3840   as 'x'.  The following induces an error, until -std is added to get
3841   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3842   array size at least.  It's necessary to write '\x00'==0 to get something
3843   that's true only with -std.  */
3844int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3845
3846/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3847   inside strings and character constants.  */
3848#define FOO(x) 'x'
3849int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3850
3851int test (int i, double x);
3852struct s1 {int (*f) (int a);};
3853struct s2 {int (*f) (double a);};
3854int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3855int argc;
3856char **argv;
3857int
3858main ()
3859{
3860return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3861  ;
3862  return 0;
3863}
3864_ACEOF
3865for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3866	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3867do
3868  CC="$ac_save_CC $ac_arg"
3869  if ac_fn_c_try_compile "$LINENO"; then :
3870  ac_cv_prog_cc_c89=$ac_arg
3871fi
3872rm -f core conftest.err conftest.$ac_objext
3873  test "x$ac_cv_prog_cc_c89" != "xno" && break
3874done
3875rm -f conftest.$ac_ext
3876CC=$ac_save_CC
3877
3878fi
3879# AC_CACHE_VAL
3880case "x$ac_cv_prog_cc_c89" in
3881  x)
3882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3883$as_echo "none needed" >&6; } ;;
3884  xno)
3885    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3886$as_echo "unsupported" >&6; } ;;
3887  *)
3888    CC="$CC $ac_cv_prog_cc_c89"
3889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3890$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3891esac
3892if test "x$ac_cv_prog_cc_c89" != xno; then :
3893
3894fi
3895
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902ac_ext=c
3903ac_cpp='$CPP $CPPFLAGS'
3904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3908$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3909if ${am_cv_prog_cc_c_o+:} false; then :
3910  $as_echo_n "(cached) " >&6
3911else
3912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914
3915int
3916main ()
3917{
3918
3919  ;
3920  return 0;
3921}
3922_ACEOF
3923  # Make sure it works both with $CC and with simple cc.
3924  # Following AC_PROG_CC_C_O, we do the test twice because some
3925  # compilers refuse to overwrite an existing .o file with -o,
3926  # though they will create one.
3927  am_cv_prog_cc_c_o=yes
3928  for am_i in 1 2; do
3929    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3930   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); } \
3934         && test -f conftest2.$ac_objext; then
3935      : OK
3936    else
3937      am_cv_prog_cc_c_o=no
3938      break
3939    fi
3940  done
3941  rm -f core conftest*
3942  unset am_i
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3945$as_echo "$am_cv_prog_cc_c_o" >&6; }
3946if test "$am_cv_prog_cc_c_o" != yes; then
3947   # Losing compiler, so override with the script.
3948   # FIXME: It is wrong to rewrite CC.
3949   # But if we don't then we get into trouble of one sort or another.
3950   # A longer-term fix would be to have automake use am__CC in this case,
3951   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3952   CC="$am_aux_dir/compile $CC"
3953fi
3954ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
3960
3961depcc="$CC"   am_compiler_list=
3962
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3964$as_echo_n "checking dependency style of $depcc... " >&6; }
3965if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3966  $as_echo_n "(cached) " >&6
3967else
3968  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3969  # We make a subdir and do the tests there.  Otherwise we can end up
3970  # making bogus files that we don't know about and never remove.  For
3971  # instance it was reported that on HP-UX the gcc test will end up
3972  # making a dummy file named 'D' -- because '-MD' means "put the output
3973  # in D".
3974  rm -rf conftest.dir
3975  mkdir conftest.dir
3976  # Copy depcomp to subdir because otherwise we won't find it if we're
3977  # using a relative directory.
3978  cp "$am_depcomp" conftest.dir
3979  cd conftest.dir
3980  # We will build objects and dependencies in a subdirectory because
3981  # it helps to detect inapplicable dependency modes.  For instance
3982  # both Tru64's cc and ICC support -MD to output dependencies as a
3983  # side effect of compilation, but ICC will put the dependencies in
3984  # the current directory while Tru64 will put them in the object
3985  # directory.
3986  mkdir sub
3987
3988  am_cv_CC_dependencies_compiler_type=none
3989  if test "$am_compiler_list" = ""; then
3990     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3991  fi
3992  am__universal=false
3993  case " $depcc " in #(
3994     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3995     esac
3996
3997  for depmode in $am_compiler_list; do
3998    # Setup a source with many dependencies, because some compilers
3999    # like to wrap large dependency lists on column 80 (with \), and
4000    # we should not choose a depcomp mode which is confused by this.
4001    #
4002    # We need to recreate these files for each test, as the compiler may
4003    # overwrite some of them when testing with obscure command lines.
4004    # This happens at least with the AIX C compiler.
4005    : > sub/conftest.c
4006    for i in 1 2 3 4 5 6; do
4007      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4008      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4009      # Solaris 10 /bin/sh.
4010      echo '/* dummy */' > sub/conftst$i.h
4011    done
4012    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4013
4014    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4015    # mode.  It turns out that the SunPro C++ compiler does not properly
4016    # handle '-M -o', and we need to detect this.  Also, some Intel
4017    # versions had trouble with output in subdirs.
4018    am__obj=sub/conftest.${OBJEXT-o}
4019    am__minus_obj="-o $am__obj"
4020    case $depmode in
4021    gcc)
4022      # This depmode causes a compiler race in universal mode.
4023      test "$am__universal" = false || continue
4024      ;;
4025    nosideeffect)
4026      # After this tag, mechanisms are not by side-effect, so they'll
4027      # only be used when explicitly requested.
4028      if test "x$enable_dependency_tracking" = xyes; then
4029	continue
4030      else
4031	break
4032      fi
4033      ;;
4034    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4035      # This compiler won't grok '-c -o', but also, the minuso test has
4036      # not run yet.  These depmodes are late enough in the game, and
4037      # so weak that their functioning should not be impacted.
4038      am__obj=conftest.${OBJEXT-o}
4039      am__minus_obj=
4040      ;;
4041    none) break ;;
4042    esac
4043    if depmode=$depmode \
4044       source=sub/conftest.c object=$am__obj \
4045       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4046       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4047         >/dev/null 2>conftest.err &&
4048       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4049       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4050       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4051       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4052      # icc doesn't choke on unknown options, it will just issue warnings
4053      # or remarks (even with -Werror).  So we grep stderr for any message
4054      # that says an option was ignored or not supported.
4055      # When given -MP, icc 7.0 and 7.1 complain thusly:
4056      #   icc: Command line warning: ignoring option '-M'; no argument required
4057      # The diagnosis changed in icc 8.0:
4058      #   icc: Command line remark: option '-MP' not supported
4059      if (grep 'ignoring option' conftest.err ||
4060          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4061        am_cv_CC_dependencies_compiler_type=$depmode
4062        break
4063      fi
4064    fi
4065  done
4066
4067  cd ..
4068  rm -rf conftest.dir
4069else
4070  am_cv_CC_dependencies_compiler_type=none
4071fi
4072
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4075$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4076CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4077
4078 if
4079  test "x$enable_dependency_tracking" != xno \
4080  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4081  am__fastdepCC_TRUE=
4082  am__fastdepCC_FALSE='#'
4083else
4084  am__fastdepCC_TRUE='#'
4085  am__fastdepCC_FALSE=
4086fi
4087
4088
4089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4090$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4091if ${ac_cv_prog_cc_c99+:} false; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094  ac_cv_prog_cc_c99=no
4095ac_save_CC=$CC
4096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098#include <stdarg.h>
4099#include <stdbool.h>
4100#include <stdlib.h>
4101#include <wchar.h>
4102#include <stdio.h>
4103
4104// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4105#define debug(...) fprintf (stderr, __VA_ARGS__)
4106#define showlist(...) puts (#__VA_ARGS__)
4107#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4108static void
4109test_varargs_macros (void)
4110{
4111  int x = 1234;
4112  int y = 5678;
4113  debug ("Flag");
4114  debug ("X = %d\n", x);
4115  showlist (The first, second, and third items.);
4116  report (x>y, "x is %d but y is %d", x, y);
4117}
4118
4119// Check long long types.
4120#define BIG64 18446744073709551615ull
4121#define BIG32 4294967295ul
4122#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4123#if !BIG_OK
4124  your preprocessor is broken;
4125#endif
4126#if BIG_OK
4127#else
4128  your preprocessor is broken;
4129#endif
4130static long long int bignum = -9223372036854775807LL;
4131static unsigned long long int ubignum = BIG64;
4132
4133struct incomplete_array
4134{
4135  int datasize;
4136  double data[];
4137};
4138
4139struct named_init {
4140  int number;
4141  const wchar_t *name;
4142  double average;
4143};
4144
4145typedef const char *ccp;
4146
4147static inline int
4148test_restrict (ccp restrict text)
4149{
4150  // See if C++-style comments work.
4151  // Iterate through items via the restricted pointer.
4152  // Also check for declarations in for loops.
4153  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4154    continue;
4155  return 0;
4156}
4157
4158// Check varargs and va_copy.
4159static void
4160test_varargs (const char *format, ...)
4161{
4162  va_list args;
4163  va_start (args, format);
4164  va_list args_copy;
4165  va_copy (args_copy, args);
4166
4167  const char *str;
4168  int number;
4169  float fnumber;
4170
4171  while (*format)
4172    {
4173      switch (*format++)
4174	{
4175	case 's': // string
4176	  str = va_arg (args_copy, const char *);
4177	  break;
4178	case 'd': // int
4179	  number = va_arg (args_copy, int);
4180	  break;
4181	case 'f': // float
4182	  fnumber = va_arg (args_copy, double);
4183	  break;
4184	default:
4185	  break;
4186	}
4187    }
4188  va_end (args_copy);
4189  va_end (args);
4190}
4191
4192int
4193main ()
4194{
4195
4196  // Check bool.
4197  _Bool success = false;
4198
4199  // Check restrict.
4200  if (test_restrict ("String literal") == 0)
4201    success = true;
4202  char *restrict newvar = "Another string";
4203
4204  // Check varargs.
4205  test_varargs ("s, d' f .", "string", 65, 34.234);
4206  test_varargs_macros ();
4207
4208  // Check flexible array members.
4209  struct incomplete_array *ia =
4210    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4211  ia->datasize = 10;
4212  for (int i = 0; i < ia->datasize; ++i)
4213    ia->data[i] = i * 1.234;
4214
4215  // Check named initializers.
4216  struct named_init ni = {
4217    .number = 34,
4218    .name = L"Test wide string",
4219    .average = 543.34343,
4220  };
4221
4222  ni.number = 58;
4223
4224  int dynamic_array[ni.number];
4225  dynamic_array[ni.number - 1] = 543;
4226
4227  // work around unused variable warnings
4228  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4229	  || dynamic_array[ni.number - 1] != 543);
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4236do
4237  CC="$ac_save_CC $ac_arg"
4238  if ac_fn_c_try_compile "$LINENO"; then :
4239  ac_cv_prog_cc_c99=$ac_arg
4240fi
4241rm -f core conftest.err conftest.$ac_objext
4242  test "x$ac_cv_prog_cc_c99" != "xno" && break
4243done
4244rm -f conftest.$ac_ext
4245CC=$ac_save_CC
4246
4247fi
4248# AC_CACHE_VAL
4249case "x$ac_cv_prog_cc_c99" in
4250  x)
4251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4252$as_echo "none needed" >&6; } ;;
4253  xno)
4254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4255$as_echo "unsupported" >&6; } ;;
4256  *)
4257    CC="$CC $ac_cv_prog_cc_c99"
4258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4259$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4260esac
4261if test "x$ac_cv_prog_cc_c99" != xno; then :
4262
4263fi
4264
4265
4266
4267ac_ext=c
4268ac_cpp='$CPP $CPPFLAGS'
4269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4273$as_echo_n "checking how to run the C preprocessor... " >&6; }
4274# On Suns, sometimes $CPP names a directory.
4275if test -n "$CPP" && test -d "$CPP"; then
4276  CPP=
4277fi
4278if test -z "$CPP"; then
4279  if ${ac_cv_prog_CPP+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282      # Double quotes because CPP needs to be expanded
4283    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4284    do
4285      ac_preproc_ok=false
4286for ac_c_preproc_warn_flag in '' yes
4287do
4288  # Use a header file that comes with gcc, so configuring glibc
4289  # with a fresh cross-compiler works.
4290  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291  # <limits.h> exists even on freestanding compilers.
4292  # On the NeXT, cc -E runs the code through the compiler's parser,
4293  # not just through cpp. "Syntax error" is here to catch this case.
4294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295/* end confdefs.h.  */
4296#ifdef __STDC__
4297# include <limits.h>
4298#else
4299# include <assert.h>
4300#endif
4301		     Syntax error
4302_ACEOF
4303if ac_fn_c_try_cpp "$LINENO"; then :
4304
4305else
4306  # Broken: fails on valid input.
4307continue
4308fi
4309rm -f conftest.err conftest.i conftest.$ac_ext
4310
4311  # OK, works on sane cases.  Now check whether nonexistent headers
4312  # can be detected and how.
4313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h.  */
4315#include <ac_nonexistent.h>
4316_ACEOF
4317if ac_fn_c_try_cpp "$LINENO"; then :
4318  # Broken: success on invalid input.
4319continue
4320else
4321  # Passes both tests.
4322ac_preproc_ok=:
4323break
4324fi
4325rm -f conftest.err conftest.i conftest.$ac_ext
4326
4327done
4328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329rm -f conftest.i conftest.err conftest.$ac_ext
4330if $ac_preproc_ok; then :
4331  break
4332fi
4333
4334    done
4335    ac_cv_prog_CPP=$CPP
4336
4337fi
4338  CPP=$ac_cv_prog_CPP
4339else
4340  ac_cv_prog_CPP=$CPP
4341fi
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4343$as_echo "$CPP" >&6; }
4344ac_preproc_ok=false
4345for ac_c_preproc_warn_flag in '' yes
4346do
4347  # Use a header file that comes with gcc, so configuring glibc
4348  # with a fresh cross-compiler works.
4349  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350  # <limits.h> exists even on freestanding compilers.
4351  # On the NeXT, cc -E runs the code through the compiler's parser,
4352  # not just through cpp. "Syntax error" is here to catch this case.
4353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354/* end confdefs.h.  */
4355#ifdef __STDC__
4356# include <limits.h>
4357#else
4358# include <assert.h>
4359#endif
4360		     Syntax error
4361_ACEOF
4362if ac_fn_c_try_cpp "$LINENO"; then :
4363
4364else
4365  # Broken: fails on valid input.
4366continue
4367fi
4368rm -f conftest.err conftest.i conftest.$ac_ext
4369
4370  # OK, works on sane cases.  Now check whether nonexistent headers
4371  # can be detected and how.
4372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373/* end confdefs.h.  */
4374#include <ac_nonexistent.h>
4375_ACEOF
4376if ac_fn_c_try_cpp "$LINENO"; then :
4377  # Broken: success on invalid input.
4378continue
4379else
4380  # Passes both tests.
4381ac_preproc_ok=:
4382break
4383fi
4384rm -f conftest.err conftest.i conftest.$ac_ext
4385
4386done
4387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388rm -f conftest.i conftest.err conftest.$ac_ext
4389if $ac_preproc_ok; then :
4390
4391else
4392  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4394as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4395See \`config.log' for more details" "$LINENO" 5; }
4396fi
4397
4398ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4406$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4407if ${ac_cv_path_GREP+:} false; then :
4408  $as_echo_n "(cached) " >&6
4409else
4410  if test -z "$GREP"; then
4411  ac_path_GREP_found=false
4412  # Loop through the user's path and test for each of PROGNAME-LIST
4413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_prog in grep ggrep; do
4419    for ac_exec_ext in '' $ac_executable_extensions; do
4420      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4421      as_fn_executable_p "$ac_path_GREP" || continue
4422# Check for GNU ac_path_GREP and select it if it is found.
4423  # Check for GNU $ac_path_GREP
4424case `"$ac_path_GREP" --version 2>&1` in
4425*GNU*)
4426  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4427*)
4428  ac_count=0
4429  $as_echo_n 0123456789 >"conftest.in"
4430  while :
4431  do
4432    cat "conftest.in" "conftest.in" >"conftest.tmp"
4433    mv "conftest.tmp" "conftest.in"
4434    cp "conftest.in" "conftest.nl"
4435    $as_echo 'GREP' >> "conftest.nl"
4436    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438    as_fn_arith $ac_count + 1 && ac_count=$as_val
4439    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4440      # Best one so far, save it but keep looking for a better one
4441      ac_cv_path_GREP="$ac_path_GREP"
4442      ac_path_GREP_max=$ac_count
4443    fi
4444    # 10*(2^10) chars as input seems more than enough
4445    test $ac_count -gt 10 && break
4446  done
4447  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448esac
4449
4450      $ac_path_GREP_found && break 3
4451    done
4452  done
4453  done
4454IFS=$as_save_IFS
4455  if test -z "$ac_cv_path_GREP"; then
4456    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4457  fi
4458else
4459  ac_cv_path_GREP=$GREP
4460fi
4461
4462fi
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4464$as_echo "$ac_cv_path_GREP" >&6; }
4465 GREP="$ac_cv_path_GREP"
4466
4467
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4469$as_echo_n "checking for egrep... " >&6; }
4470if ${ac_cv_path_EGREP+:} false; then :
4471  $as_echo_n "(cached) " >&6
4472else
4473  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4474   then ac_cv_path_EGREP="$GREP -E"
4475   else
4476     if test -z "$EGREP"; then
4477  ac_path_EGREP_found=false
4478  # Loop through the user's path and test for each of PROGNAME-LIST
4479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481do
4482  IFS=$as_save_IFS
4483  test -z "$as_dir" && as_dir=.
4484    for ac_prog in egrep; do
4485    for ac_exec_ext in '' $ac_executable_extensions; do
4486      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4487      as_fn_executable_p "$ac_path_EGREP" || continue
4488# Check for GNU ac_path_EGREP and select it if it is found.
4489  # Check for GNU $ac_path_EGREP
4490case `"$ac_path_EGREP" --version 2>&1` in
4491*GNU*)
4492  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4493*)
4494  ac_count=0
4495  $as_echo_n 0123456789 >"conftest.in"
4496  while :
4497  do
4498    cat "conftest.in" "conftest.in" >"conftest.tmp"
4499    mv "conftest.tmp" "conftest.in"
4500    cp "conftest.in" "conftest.nl"
4501    $as_echo 'EGREP' >> "conftest.nl"
4502    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504    as_fn_arith $ac_count + 1 && ac_count=$as_val
4505    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4506      # Best one so far, save it but keep looking for a better one
4507      ac_cv_path_EGREP="$ac_path_EGREP"
4508      ac_path_EGREP_max=$ac_count
4509    fi
4510    # 10*(2^10) chars as input seems more than enough
4511    test $ac_count -gt 10 && break
4512  done
4513  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514esac
4515
4516      $ac_path_EGREP_found && break 3
4517    done
4518  done
4519  done
4520IFS=$as_save_IFS
4521  if test -z "$ac_cv_path_EGREP"; then
4522    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523  fi
4524else
4525  ac_cv_path_EGREP=$EGREP
4526fi
4527
4528   fi
4529fi
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4531$as_echo "$ac_cv_path_EGREP" >&6; }
4532 EGREP="$ac_cv_path_EGREP"
4533
4534
4535if test $ac_cv_c_compiler_gnu = yes; then
4536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4537$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4538if ${ac_cv_prog_gcc_traditional+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541    ac_pattern="Autoconf.*'x'"
4542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h.  */
4544#include <sgtty.h>
4545Autoconf TIOCGETP
4546_ACEOF
4547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4549  ac_cv_prog_gcc_traditional=yes
4550else
4551  ac_cv_prog_gcc_traditional=no
4552fi
4553rm -f conftest*
4554
4555
4556  if test $ac_cv_prog_gcc_traditional = no; then
4557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h.  */
4559#include <termio.h>
4560Autoconf TCGETA
4561_ACEOF
4562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4563  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4564  ac_cv_prog_gcc_traditional=yes
4565fi
4566rm -f conftest*
4567
4568  fi
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4571$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4572  if test $ac_cv_prog_gcc_traditional = yes; then
4573    CC="$CC -traditional"
4574  fi
4575fi
4576
4577
4578# By default we simply use the C compiler to build assembly code.
4579
4580test "${CCAS+set}" = set || CCAS=$CC
4581test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4582
4583
4584
4585depcc="$CCAS"   am_compiler_list=
4586
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4588$as_echo_n "checking dependency style of $depcc... " >&6; }
4589if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4593  # We make a subdir and do the tests there.  Otherwise we can end up
4594  # making bogus files that we don't know about and never remove.  For
4595  # instance it was reported that on HP-UX the gcc test will end up
4596  # making a dummy file named 'D' -- because '-MD' means "put the output
4597  # in D".
4598  rm -rf conftest.dir
4599  mkdir conftest.dir
4600  # Copy depcomp to subdir because otherwise we won't find it if we're
4601  # using a relative directory.
4602  cp "$am_depcomp" conftest.dir
4603  cd conftest.dir
4604  # We will build objects and dependencies in a subdirectory because
4605  # it helps to detect inapplicable dependency modes.  For instance
4606  # both Tru64's cc and ICC support -MD to output dependencies as a
4607  # side effect of compilation, but ICC will put the dependencies in
4608  # the current directory while Tru64 will put them in the object
4609  # directory.
4610  mkdir sub
4611
4612  am_cv_CCAS_dependencies_compiler_type=none
4613  if test "$am_compiler_list" = ""; then
4614     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4615  fi
4616  am__universal=false
4617
4618
4619  for depmode in $am_compiler_list; do
4620    # Setup a source with many dependencies, because some compilers
4621    # like to wrap large dependency lists on column 80 (with \), and
4622    # we should not choose a depcomp mode which is confused by this.
4623    #
4624    # We need to recreate these files for each test, as the compiler may
4625    # overwrite some of them when testing with obscure command lines.
4626    # This happens at least with the AIX C compiler.
4627    : > sub/conftest.c
4628    for i in 1 2 3 4 5 6; do
4629      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4630      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4631      # Solaris 10 /bin/sh.
4632      echo '/* dummy */' > sub/conftst$i.h
4633    done
4634    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4635
4636    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4637    # mode.  It turns out that the SunPro C++ compiler does not properly
4638    # handle '-M -o', and we need to detect this.  Also, some Intel
4639    # versions had trouble with output in subdirs.
4640    am__obj=sub/conftest.${OBJEXT-o}
4641    am__minus_obj="-o $am__obj"
4642    case $depmode in
4643    gcc)
4644      # This depmode causes a compiler race in universal mode.
4645      test "$am__universal" = false || continue
4646      ;;
4647    nosideeffect)
4648      # After this tag, mechanisms are not by side-effect, so they'll
4649      # only be used when explicitly requested.
4650      if test "x$enable_dependency_tracking" = xyes; then
4651	continue
4652      else
4653	break
4654      fi
4655      ;;
4656    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4657      # This compiler won't grok '-c -o', but also, the minuso test has
4658      # not run yet.  These depmodes are late enough in the game, and
4659      # so weak that their functioning should not be impacted.
4660      am__obj=conftest.${OBJEXT-o}
4661      am__minus_obj=
4662      ;;
4663    none) break ;;
4664    esac
4665    if depmode=$depmode \
4666       source=sub/conftest.c object=$am__obj \
4667       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4668       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4669         >/dev/null 2>conftest.err &&
4670       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4671       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4672       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4673       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4674      # icc doesn't choke on unknown options, it will just issue warnings
4675      # or remarks (even with -Werror).  So we grep stderr for any message
4676      # that says an option was ignored or not supported.
4677      # When given -MP, icc 7.0 and 7.1 complain thusly:
4678      #   icc: Command line warning: ignoring option '-M'; no argument required
4679      # The diagnosis changed in icc 8.0:
4680      #   icc: Command line remark: option '-MP' not supported
4681      if (grep 'ignoring option' conftest.err ||
4682          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4683        am_cv_CCAS_dependencies_compiler_type=$depmode
4684        break
4685      fi
4686    fi
4687  done
4688
4689  cd ..
4690  rm -rf conftest.dir
4691else
4692  am_cv_CCAS_dependencies_compiler_type=none
4693fi
4694
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4697$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4698CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4699
4700 if
4701  test "x$enable_dependency_tracking" != xno \
4702  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4703  am__fastdepCCAS_TRUE=
4704  am__fastdepCCAS_FALSE='#'
4705else
4706  am__fastdepCCAS_TRUE='#'
4707  am__fastdepCCAS_FALSE=
4708fi
4709
4710
4711if test -n "$ac_tool_prefix"; then
4712  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4713set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715$as_echo_n "checking for $ac_word... " >&6; }
4716if ${ac_cv_prog_RANLIB+:} false; then :
4717  $as_echo_n "(cached) " >&6
4718else
4719  if test -n "$RANLIB"; then
4720  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725  IFS=$as_save_IFS
4726  test -z "$as_dir" && as_dir=.
4727    for ac_exec_ext in '' $ac_executable_extensions; do
4728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731    break 2
4732  fi
4733done
4734  done
4735IFS=$as_save_IFS
4736
4737fi
4738fi
4739RANLIB=$ac_cv_prog_RANLIB
4740if test -n "$RANLIB"; then
4741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4742$as_echo "$RANLIB" >&6; }
4743else
4744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745$as_echo "no" >&6; }
4746fi
4747
4748
4749fi
4750if test -z "$ac_cv_prog_RANLIB"; then
4751  ac_ct_RANLIB=$RANLIB
4752  # Extract the first word of "ranlib", so it can be a program name with args.
4753set dummy ranlib; ac_word=$2
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755$as_echo_n "checking for $ac_word... " >&6; }
4756if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  if test -n "$ac_ct_RANLIB"; then
4760  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4761else
4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765  IFS=$as_save_IFS
4766  test -z "$as_dir" && as_dir=.
4767    for ac_exec_ext in '' $ac_executable_extensions; do
4768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769    ac_cv_prog_ac_ct_RANLIB="ranlib"
4770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771    break 2
4772  fi
4773done
4774  done
4775IFS=$as_save_IFS
4776
4777fi
4778fi
4779ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4780if test -n "$ac_ct_RANLIB"; then
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4782$as_echo "$ac_ct_RANLIB" >&6; }
4783else
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786fi
4787
4788  if test "x$ac_ct_RANLIB" = x; then
4789    RANLIB=":"
4790  else
4791    case $cross_compiling:$ac_tool_warned in
4792yes:)
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795ac_tool_warned=yes ;;
4796esac
4797    RANLIB=$ac_ct_RANLIB
4798  fi
4799else
4800  RANLIB="$ac_cv_prog_RANLIB"
4801fi
4802
4803
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4805$as_echo_n "checking for ANSI C header files... " >&6; }
4806if ${ac_cv_header_stdc+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811#include <stdlib.h>
4812#include <stdarg.h>
4813#include <string.h>
4814#include <float.h>
4815
4816int
4817main ()
4818{
4819
4820  ;
4821  return 0;
4822}
4823_ACEOF
4824if ac_fn_c_try_compile "$LINENO"; then :
4825  ac_cv_header_stdc=yes
4826else
4827  ac_cv_header_stdc=no
4828fi
4829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830
4831if test $ac_cv_header_stdc = yes; then
4832  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h.  */
4835#include <string.h>
4836
4837_ACEOF
4838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4839  $EGREP "memchr" >/dev/null 2>&1; then :
4840
4841else
4842  ac_cv_header_stdc=no
4843fi
4844rm -f conftest*
4845
4846fi
4847
4848if test $ac_cv_header_stdc = yes; then
4849  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h.  */
4852#include <stdlib.h>
4853
4854_ACEOF
4855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856  $EGREP "free" >/dev/null 2>&1; then :
4857
4858else
4859  ac_cv_header_stdc=no
4860fi
4861rm -f conftest*
4862
4863fi
4864
4865if test $ac_cv_header_stdc = yes; then
4866  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4867  if test "$cross_compiling" = yes; then :
4868  :
4869else
4870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871/* end confdefs.h.  */
4872#include <ctype.h>
4873#include <stdlib.h>
4874#if ((' ' & 0x0FF) == 0x020)
4875# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4876# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4877#else
4878# define ISLOWER(c) \
4879		   (('a' <= (c) && (c) <= 'i') \
4880		     || ('j' <= (c) && (c) <= 'r') \
4881		     || ('s' <= (c) && (c) <= 'z'))
4882# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4883#endif
4884
4885#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4886int
4887main ()
4888{
4889  int i;
4890  for (i = 0; i < 256; i++)
4891    if (XOR (islower (i), ISLOWER (i))
4892	|| toupper (i) != TOUPPER (i))
4893      return 2;
4894  return 0;
4895}
4896_ACEOF
4897if ac_fn_c_try_run "$LINENO"; then :
4898
4899else
4900  ac_cv_header_stdc=no
4901fi
4902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4903  conftest.$ac_objext conftest.beam conftest.$ac_ext
4904fi
4905
4906fi
4907fi
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4909$as_echo "$ac_cv_header_stdc" >&6; }
4910if test $ac_cv_header_stdc = yes; then
4911
4912$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4913
4914fi
4915
4916# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4917for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4918		  inttypes.h stdint.h unistd.h
4919do :
4920  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4921ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4922"
4923if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4924  cat >>confdefs.h <<_ACEOF
4925#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926_ACEOF
4927
4928fi
4929
4930done
4931
4932
4933for ac_header in sys/endian.h sys/param.h syslog.h
4934do :
4935  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4936ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4938  cat >>confdefs.h <<_ACEOF
4939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4940_ACEOF
4941
4942fi
4943
4944done
4945
4946# sys/sysctl.h requires sys/types.h on FreeBSD
4947# sys/sysctl.h requires sys/param.h on OpenBSD
4948for ac_header in sys/sysctl.h
4949do :
4950  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#include <sys/types.h>
4951#ifdef HAVE_SYS_PARAM_H
4952#include <sys/param.h>
4953#endif
4954
4955"
4956if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
4957  cat >>confdefs.h <<_ACEOF
4958#define HAVE_SYS_SYSCTL_H 1
4959_ACEOF
4960
4961fi
4962
4963done
4964
4965
4966ac_fn_c_check_decl "$LINENO" "be32dec" "ac_cv_have_decl_be32dec" "$ac_includes_default
4967#ifdef HAVE_SYS_ENDIAN_H
4968#include <sys/endian.h>
4969#endif
4970
4971"
4972if test "x$ac_cv_have_decl_be32dec" = xyes; then :
4973  ac_have_decl=1
4974else
4975  ac_have_decl=0
4976fi
4977
4978cat >>confdefs.h <<_ACEOF
4979#define HAVE_DECL_BE32DEC $ac_have_decl
4980_ACEOF
4981ac_fn_c_check_decl "$LINENO" "le32dec" "ac_cv_have_decl_le32dec" "$ac_includes_default
4982#ifdef HAVE_SYS_ENDIAN_H
4983#include <sys/endian.h>
4984#endif
4985
4986"
4987if test "x$ac_cv_have_decl_le32dec" = xyes; then :
4988  ac_have_decl=1
4989else
4990  ac_have_decl=0
4991fi
4992
4993cat >>confdefs.h <<_ACEOF
4994#define HAVE_DECL_LE32DEC $ac_have_decl
4995_ACEOF
4996ac_fn_c_check_decl "$LINENO" "be32enc" "ac_cv_have_decl_be32enc" "$ac_includes_default
4997#ifdef HAVE_SYS_ENDIAN_H
4998#include <sys/endian.h>
4999#endif
5000
5001"
5002if test "x$ac_cv_have_decl_be32enc" = xyes; then :
5003  ac_have_decl=1
5004else
5005  ac_have_decl=0
5006fi
5007
5008cat >>confdefs.h <<_ACEOF
5009#define HAVE_DECL_BE32ENC $ac_have_decl
5010_ACEOF
5011ac_fn_c_check_decl "$LINENO" "le32enc" "ac_cv_have_decl_le32enc" "$ac_includes_default
5012#ifdef HAVE_SYS_ENDIAN_H
5013#include <sys/endian.h>
5014#endif
5015
5016"
5017if test "x$ac_cv_have_decl_le32enc" = xyes; then :
5018  ac_have_decl=1
5019else
5020  ac_have_decl=0
5021fi
5022
5023cat >>confdefs.h <<_ACEOF
5024#define HAVE_DECL_LE32ENC $ac_have_decl
5025_ACEOF
5026
5027
5028ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5029if test "x$ac_cv_type_size_t" = xyes; then :
5030
5031else
5032
5033cat >>confdefs.h <<_ACEOF
5034#define size_t unsigned int
5035_ACEOF
5036
5037fi
5038
5039# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5040# for constant arguments.  Useless!
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5042$as_echo_n "checking for working alloca.h... " >&6; }
5043if ${ac_cv_working_alloca_h+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048#include <alloca.h>
5049int
5050main ()
5051{
5052char *p = (char *) alloca (2 * sizeof (int));
5053			  if (p) return 0;
5054  ;
5055  return 0;
5056}
5057_ACEOF
5058if ac_fn_c_try_link "$LINENO"; then :
5059  ac_cv_working_alloca_h=yes
5060else
5061  ac_cv_working_alloca_h=no
5062fi
5063rm -f core conftest.err conftest.$ac_objext \
5064    conftest$ac_exeext conftest.$ac_ext
5065fi
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5067$as_echo "$ac_cv_working_alloca_h" >&6; }
5068if test $ac_cv_working_alloca_h = yes; then
5069
5070$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5071
5072fi
5073
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5075$as_echo_n "checking for alloca... " >&6; }
5076if ${ac_cv_func_alloca_works+:} false; then :
5077  $as_echo_n "(cached) " >&6
5078else
5079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h.  */
5081#ifdef __GNUC__
5082# define alloca __builtin_alloca
5083#else
5084# ifdef _MSC_VER
5085#  include <malloc.h>
5086#  define alloca _alloca
5087# else
5088#  ifdef HAVE_ALLOCA_H
5089#   include <alloca.h>
5090#  else
5091#   ifdef _AIX
5092 #pragma alloca
5093#   else
5094#    ifndef alloca /* predefined by HP cc +Olibcalls */
5095void *alloca (size_t);
5096#    endif
5097#   endif
5098#  endif
5099# endif
5100#endif
5101
5102int
5103main ()
5104{
5105char *p = (char *) alloca (1);
5106				    if (p) return 0;
5107  ;
5108  return 0;
5109}
5110_ACEOF
5111if ac_fn_c_try_link "$LINENO"; then :
5112  ac_cv_func_alloca_works=yes
5113else
5114  ac_cv_func_alloca_works=no
5115fi
5116rm -f core conftest.err conftest.$ac_objext \
5117    conftest$ac_exeext conftest.$ac_ext
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5120$as_echo "$ac_cv_func_alloca_works" >&6; }
5121
5122if test $ac_cv_func_alloca_works = yes; then
5123
5124$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5125
5126else
5127  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5128# that cause trouble.  Some versions do not even contain alloca or
5129# contain a buggy version.  If you still want to use their alloca,
5130# use ar to extract alloca.o from them instead of compiling alloca.c.
5131
5132ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5133
5134$as_echo "#define C_ALLOCA 1" >>confdefs.h
5135
5136
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5138$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5139if ${ac_cv_os_cray+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h.  */
5144#if defined CRAY && ! defined CRAY2
5145webecray
5146#else
5147wenotbecray
5148#endif
5149
5150_ACEOF
5151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152  $EGREP "webecray" >/dev/null 2>&1; then :
5153  ac_cv_os_cray=yes
5154else
5155  ac_cv_os_cray=no
5156fi
5157rm -f conftest*
5158
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5161$as_echo "$ac_cv_os_cray" >&6; }
5162if test $ac_cv_os_cray = yes; then
5163  for ac_func in _getb67 GETB67 getb67; do
5164    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5165ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5166if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5167
5168cat >>confdefs.h <<_ACEOF
5169#define CRAY_STACKSEG_END $ac_func
5170_ACEOF
5171
5172    break
5173fi
5174
5175  done
5176fi
5177
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5179$as_echo_n "checking stack direction for C alloca... " >&6; }
5180if ${ac_cv_c_stack_direction+:} false; then :
5181  $as_echo_n "(cached) " >&6
5182else
5183  if test "$cross_compiling" = yes; then :
5184  ac_cv_c_stack_direction=0
5185else
5186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188$ac_includes_default
5189int
5190find_stack_direction (int *addr, int depth)
5191{
5192  int dir, dummy = 0;
5193  if (! addr)
5194    addr = &dummy;
5195  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5196  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5197  return dir + dummy;
5198}
5199
5200int
5201main (int argc, char **argv)
5202{
5203  return find_stack_direction (0, argc + !argv + 20) < 0;
5204}
5205_ACEOF
5206if ac_fn_c_try_run "$LINENO"; then :
5207  ac_cv_c_stack_direction=1
5208else
5209  ac_cv_c_stack_direction=-1
5210fi
5211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212  conftest.$ac_objext conftest.beam conftest.$ac_ext
5213fi
5214
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5217$as_echo "$ac_cv_c_stack_direction" >&6; }
5218cat >>confdefs.h <<_ACEOF
5219#define STACK_DIRECTION $ac_cv_c_stack_direction
5220_ACEOF
5221
5222
5223fi
5224
5225for ac_func in getopt_long
5226do :
5227  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5228if test "x$ac_cv_func_getopt_long" = xyes; then :
5229  cat >>confdefs.h <<_ACEOF
5230#define HAVE_GETOPT_LONG 1
5231_ACEOF
5232
5233fi
5234done
5235
5236
5237case $target in
5238  i*86-*-*)
5239    have_x86=true
5240    ;;
5241  x86_64-*-*|amd64-*-*)
5242    have_x86_64=true
5243    ;;
5244  arm*-*-*)
5245    have_arm=true
5246    ;;
5247  powerpc*-*-*)
5248    have_ppc=true
5249    ;;
5250esac
5251
5252PTHREAD_FLAGS="-pthread"
5253WS2_LIBS=""
5254
5255case $target in
5256  *-*-mingw*)
5257    have_win32=true
5258    PTHREAD_FLAGS=""
5259    WS2_LIBS="-lws2_32"
5260    ;;
5261esac
5262
5263# Check whether --enable-assembly was given.
5264if test "${enable_assembly+set}" = set; then :
5265  enableval=$enable_assembly;
5266fi
5267
5268if test x$enable_assembly != xno; then
5269
5270$as_echo "#define USE_ASM 1" >>confdefs.h
5271
5272fi
5273
5274if test x$enable_assembly != xno -a x$have_x86_64 = xtrue
5275then
5276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile AVX code" >&5
5277$as_echo_n "checking whether we can compile AVX code... " >&6; }
5278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h.  */
5280
5281int
5282main ()
5283{
5284asm ("vmovdqa %ymm0, %ymm1");
5285  ;
5286  return 0;
5287}
5288_ACEOF
5289if ac_fn_c_try_compile "$LINENO"; then :
5290
5291$as_echo "#define USE_AVX 1" >>confdefs.h
5292
5293    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5294$as_echo "yes" >&6; }
5295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile XOP code" >&5
5296$as_echo_n "checking whether we can compile XOP code... " >&6; }
5297    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h.  */
5299
5300int
5301main ()
5302{
5303asm ("vprotd \$7, %xmm0, %xmm1");
5304  ;
5305  return 0;
5306}
5307_ACEOF
5308if ac_fn_c_try_compile "$LINENO"; then :
5309
5310$as_echo "#define USE_XOP 1" >>confdefs.h
5311
5312      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313$as_echo "yes" >&6; }
5314
5315else
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
5318      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The assembler does not support the XOP instruction set." >&5
5319$as_echo "$as_me: WARNING: The assembler does not support the XOP instruction set." >&2;}
5320
5321fi
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compile AVX2 code" >&5
5324$as_echo_n "checking whether we can compile AVX2 code... " >&6; }
5325    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h.  */
5327
5328int
5329main ()
5330{
5331asm ("vpaddd %ymm0, %ymm1, %ymm2");
5332  ;
5333  return 0;
5334}
5335_ACEOF
5336if ac_fn_c_try_compile "$LINENO"; then :
5337
5338$as_echo "#define USE_AVX2 1" >>confdefs.h
5339
5340      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5341$as_echo "yes" >&6; }
5342
5343else
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345$as_echo "no" >&6; }
5346      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The assembler does not support the AVX2 instruction set." >&5
5347$as_echo "$as_me: WARNING: The assembler does not support the AVX2 instruction set." >&2;}
5348
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351
5352else
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The assembler does not support the AVX instruction set." >&5
5356$as_echo "$as_me: WARNING: The assembler does not support the AVX instruction set." >&2;}
5357
5358fi
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360fi
5361
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_loads in -ljansson" >&5
5363$as_echo_n "checking for json_loads in -ljansson... " >&6; }
5364if ${ac_cv_lib_jansson_json_loads+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  ac_check_lib_save_LIBS=$LIBS
5368LIBS="-ljansson  $LIBS"
5369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h.  */
5371
5372/* Override any GCC internal prototype to avoid an error.
5373   Use char because int might match the return type of a GCC
5374   builtin and then its argument prototype would still apply.  */
5375#ifdef __cplusplus
5376extern "C"
5377#endif
5378char json_loads ();
5379int
5380main ()
5381{
5382return json_loads ();
5383  ;
5384  return 0;
5385}
5386_ACEOF
5387if ac_fn_c_try_link "$LINENO"; then :
5388  ac_cv_lib_jansson_json_loads=yes
5389else
5390  ac_cv_lib_jansson_json_loads=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext \
5393    conftest$ac_exeext conftest.$ac_ext
5394LIBS=$ac_check_lib_save_LIBS
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_loads" >&5
5397$as_echo "$ac_cv_lib_jansson_json_loads" >&6; }
5398if test "x$ac_cv_lib_jansson_json_loads" = xyes; then :
5399  request_jansson=false
5400else
5401  request_jansson=true
5402fi
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
5405$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5406if ${ac_cv_lib_pthread_pthread_create+:} false; then :
5407  $as_echo_n "(cached) " >&6
5408else
5409  ac_check_lib_save_LIBS=$LIBS
5410LIBS="-lpthread  $LIBS"
5411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h.  */
5413
5414/* Override any GCC internal prototype to avoid an error.
5415   Use char because int might match the return type of a GCC
5416   builtin and then its argument prototype would still apply.  */
5417#ifdef __cplusplus
5418extern "C"
5419#endif
5420char pthread_create ();
5421int
5422main ()
5423{
5424return pthread_create ();
5425  ;
5426  return 0;
5427}
5428_ACEOF
5429if ac_fn_c_try_link "$LINENO"; then :
5430  ac_cv_lib_pthread_pthread_create=yes
5431else
5432  ac_cv_lib_pthread_pthread_create=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext \
5435    conftest$ac_exeext conftest.$ac_ext
5436LIBS=$ac_check_lib_save_LIBS
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
5439$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5440if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
5441  PTHREAD_LIBS="-lpthread"
5442else
5443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreadGC2" >&5
5444$as_echo_n "checking for pthread_create in -lpthreadGC2... " >&6; }
5445if ${ac_cv_lib_pthreadGC2_pthread_create+:} false; then :
5446  $as_echo_n "(cached) " >&6
5447else
5448  ac_check_lib_save_LIBS=$LIBS
5449LIBS="-lpthreadGC2  $LIBS"
5450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452
5453/* Override any GCC internal prototype to avoid an error.
5454   Use char because int might match the return type of a GCC
5455   builtin and then its argument prototype would still apply.  */
5456#ifdef __cplusplus
5457extern "C"
5458#endif
5459char pthread_create ();
5460int
5461main ()
5462{
5463return pthread_create ();
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_link "$LINENO"; then :
5469  ac_cv_lib_pthreadGC2_pthread_create=yes
5470else
5471  ac_cv_lib_pthreadGC2_pthread_create=no
5472fi
5473rm -f core conftest.err conftest.$ac_objext \
5474    conftest$ac_exeext conftest.$ac_ext
5475LIBS=$ac_check_lib_save_LIBS
5476fi
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC2_pthread_create" >&5
5478$as_echo "$ac_cv_lib_pthreadGC2_pthread_create" >&6; }
5479if test "x$ac_cv_lib_pthreadGC2_pthread_create" = xyes; then :
5480  PTHREAD_LIBS="-lpthreadGC2"
5481else
5482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreadGC1" >&5
5483$as_echo_n "checking for pthread_create in -lpthreadGC1... " >&6; }
5484if ${ac_cv_lib_pthreadGC1_pthread_create+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  ac_check_lib_save_LIBS=$LIBS
5488LIBS="-lpthreadGC1  $LIBS"
5489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h.  */
5491
5492/* Override any GCC internal prototype to avoid an error.
5493   Use char because int might match the return type of a GCC
5494   builtin and then its argument prototype would still apply.  */
5495#ifdef __cplusplus
5496extern "C"
5497#endif
5498char pthread_create ();
5499int
5500main ()
5501{
5502return pthread_create ();
5503  ;
5504  return 0;
5505}
5506_ACEOF
5507if ac_fn_c_try_link "$LINENO"; then :
5508  ac_cv_lib_pthreadGC1_pthread_create=yes
5509else
5510  ac_cv_lib_pthreadGC1_pthread_create=no
5511fi
5512rm -f core conftest.err conftest.$ac_objext \
5513    conftest$ac_exeext conftest.$ac_ext
5514LIBS=$ac_check_lib_save_LIBS
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC1_pthread_create" >&5
5517$as_echo "$ac_cv_lib_pthreadGC1_pthread_create" >&6; }
5518if test "x$ac_cv_lib_pthreadGC1_pthread_create" = xyes; then :
5519  PTHREAD_LIBS="-lpthreadGC1"
5520else
5521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreadGC" >&5
5522$as_echo_n "checking for pthread_create in -lpthreadGC... " >&6; }
5523if ${ac_cv_lib_pthreadGC_pthread_create+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  ac_check_lib_save_LIBS=$LIBS
5527LIBS="-lpthreadGC  $LIBS"
5528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h.  */
5530
5531/* Override any GCC internal prototype to avoid an error.
5532   Use char because int might match the return type of a GCC
5533   builtin and then its argument prototype would still apply.  */
5534#ifdef __cplusplus
5535extern "C"
5536#endif
5537char pthread_create ();
5538int
5539main ()
5540{
5541return pthread_create ();
5542  ;
5543  return 0;
5544}
5545_ACEOF
5546if ac_fn_c_try_link "$LINENO"; then :
5547  ac_cv_lib_pthreadGC_pthread_create=yes
5548else
5549  ac_cv_lib_pthreadGC_pthread_create=no
5550fi
5551rm -f core conftest.err conftest.$ac_objext \
5552    conftest$ac_exeext conftest.$ac_ext
5553LIBS=$ac_check_lib_save_LIBS
5554fi
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC_pthread_create" >&5
5556$as_echo "$ac_cv_lib_pthreadGC_pthread_create" >&6; }
5557if test "x$ac_cv_lib_pthreadGC_pthread_create" = xyes; then :
5558  PTHREAD_LIBS="-lpthreadGC"
5559
5560fi
5561
5562fi
5563
5564fi
5565
5566fi
5567
5568
5569 if test x$request_jansson = xtrue; then
5570  WANT_JANSSON_TRUE=
5571  WANT_JANSSON_FALSE='#'
5572else
5573  WANT_JANSSON_TRUE='#'
5574  WANT_JANSSON_FALSE=
5575fi
5576
5577 if test x$have_win32 = xtrue; then
5578  HAVE_WINDOWS_TRUE=
5579  HAVE_WINDOWS_FALSE='#'
5580else
5581  HAVE_WINDOWS_TRUE='#'
5582  HAVE_WINDOWS_FALSE=
5583fi
5584
5585 if test x$enable_assembly != xno; then
5586  USE_ASM_TRUE=
5587  USE_ASM_FALSE='#'
5588else
5589  USE_ASM_TRUE='#'
5590  USE_ASM_FALSE=
5591fi
5592
5593 if test x$have_x86 = xtrue; then
5594  ARCH_x86_TRUE=
5595  ARCH_x86_FALSE='#'
5596else
5597  ARCH_x86_TRUE='#'
5598  ARCH_x86_FALSE=
5599fi
5600
5601 if test x$have_x86_64 = xtrue; then
5602  ARCH_x86_64_TRUE=
5603  ARCH_x86_64_FALSE='#'
5604else
5605  ARCH_x86_64_TRUE='#'
5606  ARCH_x86_64_FALSE=
5607fi
5608
5609 if test x$have_arm = xtrue; then
5610  ARCH_ARM_TRUE=
5611  ARCH_ARM_FALSE='#'
5612else
5613  ARCH_ARM_TRUE='#'
5614  ARCH_ARM_FALSE=
5615fi
5616
5617 if test x$have_ppc = xtrue; then
5618  ARCH_PPC_TRUE=
5619  ARCH_PPC_FALSE='#'
5620else
5621  ARCH_PPC_TRUE='#'
5622  ARCH_PPC_FALSE=
5623fi
5624
5625
5626if test x$request_jansson = xtrue
5627then
5628	JANSSON_LIBS="compat/jansson/libjansson.a"
5629else
5630	JANSSON_LIBS=-ljansson
5631fi
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658# Check whether --with-libcurl was given.
5659if test "${with_libcurl+set}" = set; then :
5660  withval=$with_libcurl; _libcurl_with=$withval
5661else
5662  _libcurl_with=yes
5663fi
5664
5665
5666  if test "$_libcurl_with" != "no" ; then
5667
5668     for ac_prog in gawk mawk nawk awk
5669do
5670  # Extract the first word of "$ac_prog", so it can be a program name with args.
5671set dummy $ac_prog; ac_word=$2
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673$as_echo_n "checking for $ac_word... " >&6; }
5674if ${ac_cv_prog_AWK+:} false; then :
5675  $as_echo_n "(cached) " >&6
5676else
5677  if test -n "$AWK"; then
5678  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5679else
5680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683  IFS=$as_save_IFS
5684  test -z "$as_dir" && as_dir=.
5685    for ac_exec_ext in '' $ac_executable_extensions; do
5686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687    ac_cv_prog_AWK="$ac_prog"
5688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689    break 2
5690  fi
5691done
5692  done
5693IFS=$as_save_IFS
5694
5695fi
5696fi
5697AWK=$ac_cv_prog_AWK
5698if test -n "$AWK"; then
5699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5700$as_echo "$AWK" >&6; }
5701else
5702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703$as_echo "no" >&6; }
5704fi
5705
5706
5707  test -n "$AWK" && break
5708done
5709
5710
5711     _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
5712
5713     _libcurl_try_link=yes
5714
5715     if test -d "$_libcurl_with" ; then
5716        LIBCURL_CPPFLAGS="-I$withval/include"
5717        _libcurl_ldflags="-L$withval/lib"
5718        # Extract the first word of "curl-config", so it can be a program name with args.
5719set dummy curl-config; ac_word=$2
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721$as_echo_n "checking for $ac_word... " >&6; }
5722if ${ac_cv_path__libcurl_config+:} false; then :
5723  $as_echo_n "(cached) " >&6
5724else
5725  case $_libcurl_config in
5726  [\\/]* | ?:[\\/]*)
5727  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
5728  ;;
5729  *)
5730  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in "$withval/bin"
5732do
5733  IFS=$as_save_IFS
5734  test -z "$as_dir" && as_dir=.
5735    for ac_exec_ext in '' $ac_executable_extensions; do
5736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
5738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739    break 2
5740  fi
5741done
5742  done
5743IFS=$as_save_IFS
5744
5745  ;;
5746esac
5747fi
5748_libcurl_config=$ac_cv_path__libcurl_config
5749if test -n "$_libcurl_config"; then
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
5751$as_echo "$_libcurl_config" >&6; }
5752else
5753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754$as_echo "no" >&6; }
5755fi
5756
5757
5758     else
5759        # Extract the first word of "curl-config", so it can be a program name with args.
5760set dummy curl-config; ac_word=$2
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if ${ac_cv_path__libcurl_config+:} false; then :
5764  $as_echo_n "(cached) " >&6
5765else
5766  case $_libcurl_config in
5767  [\\/]* | ?:[\\/]*)
5768  ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
5769  ;;
5770  *)
5771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774  IFS=$as_save_IFS
5775  test -z "$as_dir" && as_dir=.
5776    for ac_exec_ext in '' $ac_executable_extensions; do
5777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778    ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
5779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780    break 2
5781  fi
5782done
5783  done
5784IFS=$as_save_IFS
5785
5786  ;;
5787esac
5788fi
5789_libcurl_config=$ac_cv_path__libcurl_config
5790if test -n "$_libcurl_config"; then
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
5792$as_echo "$_libcurl_config" >&6; }
5793else
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795$as_echo "no" >&6; }
5796fi
5797
5798
5799     fi
5800
5801     if test x$_libcurl_config != "x" ; then
5802        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
5803$as_echo_n "checking for the version of libcurl... " >&6; }
5804if ${libcurl_cv_lib_curl_version+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
5810$as_echo "$libcurl_cv_lib_curl_version" >&6; }
5811
5812        _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
5813        _libcurl_wanted=`echo 7.15.2 | $_libcurl_version_parse`
5814
5815        if test $_libcurl_wanted -gt 0 ; then
5816           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.15.2" >&5
5817$as_echo_n "checking for libcurl >= version 7.15.2... " >&6; }
5818if ${libcurl_cv_lib_version_ok+:} false; then :
5819  $as_echo_n "(cached) " >&6
5820else
5821
5822              if test $_libcurl_version -ge $_libcurl_wanted ; then
5823                 libcurl_cv_lib_version_ok=yes
5824              else
5825                 libcurl_cv_lib_version_ok=no
5826              fi
5827
5828fi
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
5830$as_echo "$libcurl_cv_lib_version_ok" >&6; }
5831        fi
5832
5833        if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
5834           if test x"$LIBCURL_CPPFLAGS" = "x" ; then
5835              LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
5836           fi
5837           if test x"$LIBCURL" = "x" ; then
5838              LIBCURL=`$_libcurl_config --libs`
5839
5840              # This is so silly, but Apple actually has a bug in their
5841              # curl-config script.  Fixed in Tiger, but there are still
5842              # lots of Panther installs around.
5843              case "${host}" in
5844                 powerpc-apple-darwin7*)
5845                    LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
5846                 ;;
5847              esac
5848           fi
5849
5850           # All curl-config scripts support --feature
5851           _libcurl_features=`$_libcurl_config --feature`
5852
5853           # Is it modern enough to have --protocols? (7.12.4)
5854           if test $_libcurl_version -ge 461828 ; then
5855              _libcurl_protocols=`$_libcurl_config --protocols`
5856           fi
5857        else
5858           _libcurl_try_link=no
5859        fi
5860
5861        unset _libcurl_wanted
5862     fi
5863
5864     if test $_libcurl_try_link = yes ; then
5865
5866        # we didn't find curl-config, so let's see if the user-supplied
5867        # link line (or failing that, "-lcurl") is enough.
5868        LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
5869
5870        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
5871$as_echo_n "checking whether libcurl is usable... " >&6; }
5872if ${libcurl_cv_lib_curl_usable+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875
5876           _libcurl_save_cppflags=$CPPFLAGS
5877           CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
5878           _libcurl_save_libs=$LIBS
5879           LIBS="$LIBCURL $LIBS"
5880
5881           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882/* end confdefs.h.  */
5883#include <curl/curl.h>
5884int
5885main ()
5886{
5887
5888/* Try and use a few common options to force a failure if we are
5889   missing symbols or can't link. */
5890int x;
5891curl_easy_setopt(NULL,CURLOPT_URL,NULL);
5892x=CURL_ERROR_SIZE;
5893x=CURLOPT_WRITEFUNCTION;
5894x=CURLOPT_WRITEDATA;
5895x=CURLOPT_ERRORBUFFER;
5896x=CURLOPT_STDERR;
5897x=CURLOPT_VERBOSE;
5898if (x) {;}
5899
5900  ;
5901  return 0;
5902}
5903_ACEOF
5904if ac_fn_c_try_link "$LINENO"; then :
5905  libcurl_cv_lib_curl_usable=yes
5906else
5907  libcurl_cv_lib_curl_usable=no
5908fi
5909rm -f core conftest.err conftest.$ac_objext \
5910    conftest$ac_exeext conftest.$ac_ext
5911
5912           CPPFLAGS=$_libcurl_save_cppflags
5913           LIBS=$_libcurl_save_libs
5914           unset _libcurl_save_cppflags
5915           unset _libcurl_save_libs
5916
5917fi
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
5919$as_echo "$libcurl_cv_lib_curl_usable" >&6; }
5920
5921        if test $libcurl_cv_lib_curl_usable = yes ; then
5922
5923           # Does curl_free() exist in this version of libcurl?
5924           # If not, fake it with free()
5925
5926           _libcurl_save_cppflags=$CPPFLAGS
5927           CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
5928           _libcurl_save_libs=$LIBS
5929           LIBS="$LIBS $LIBCURL"
5930
5931           ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
5932if test "x$ac_cv_func_curl_free" = xyes; then :
5933
5934else
5935
5936$as_echo "#define curl_free free" >>confdefs.h
5937
5938fi
5939
5940
5941           CPPFLAGS=$_libcurl_save_cppflags
5942           LIBS=$_libcurl_save_libs
5943           unset _libcurl_save_cppflags
5944           unset _libcurl_save_libs
5945
5946
5947$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
5948
5949
5950
5951
5952           for _libcurl_feature in $_libcurl_features ; do
5953              cat >>confdefs.h <<_ACEOF
5954#define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
5955_ACEOF
5956
5957              eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
5958           done
5959
5960           if test "x$_libcurl_protocols" = "x" ; then
5961
5962              # We don't have --protocols, so just assume that all
5963              # protocols are available
5964              _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
5965
5966              if test x$libcurl_feature_SSL = xyes ; then
5967                 _libcurl_protocols="$_libcurl_protocols HTTPS"
5968
5969                 # FTPS wasn't standards-compliant until version
5970                 # 7.11.0 (0x070b00 == 461568)
5971                 if test $_libcurl_version -ge 461568; then
5972                    _libcurl_protocols="$_libcurl_protocols FTPS"
5973                 fi
5974              fi
5975
5976              # RTSP, IMAP, POP3 and SMTP were added in
5977              # 7.20.0 (0x071400 == 463872)
5978              if test $_libcurl_version -ge 463872; then
5979                 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
5980              fi
5981           fi
5982
5983           for _libcurl_protocol in $_libcurl_protocols ; do
5984              cat >>confdefs.h <<_ACEOF
5985#define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
5986_ACEOF
5987
5988              eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
5989           done
5990        else
5991           unset LIBCURL
5992           unset LIBCURL_CPPFLAGS
5993        fi
5994     fi
5995
5996     unset _libcurl_try_link
5997     unset _libcurl_version_parse
5998     unset _libcurl_config
5999     unset _libcurl_feature
6000     unset _libcurl_features
6001     unset _libcurl_protocol
6002     unset _libcurl_protocols
6003     unset _libcurl_version
6004     unset _libcurl_ldflags
6005  fi
6006
6007  if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
6008     # This is the IF-NO path
6009     as_fn_error $? "Missing required libcurl >= 7.15.2" "$LINENO" 5
6010  else
6011     # This is the IF-YES path
6012     :
6013  fi
6014
6015  unset _libcurl_with
6016
6017
6018
6019
6020
6021
6022
6023ac_config_files="$ac_config_files Makefile compat/Makefile compat/jansson/Makefile"
6024
6025cat >confcache <<\_ACEOF
6026# This file is a shell script that caches the results of configure
6027# tests run on this system so they can be shared between configure
6028# scripts and configure runs, see configure's option --config-cache.
6029# It is not useful on other systems.  If it contains results you don't
6030# want to keep, you may remove or edit it.
6031#
6032# config.status only pays attention to the cache file if you give it
6033# the --recheck option to rerun configure.
6034#
6035# `ac_cv_env_foo' variables (set or unset) will be overridden when
6036# loading this file, other *unset* `ac_cv_foo' will be assigned the
6037# following values.
6038
6039_ACEOF
6040
6041# The following way of writing the cache mishandles newlines in values,
6042# but we know of no workaround that is simple, portable, and efficient.
6043# So, we kill variables containing newlines.
6044# Ultrix sh set writes to stderr and can't be redirected directly,
6045# and sets the high bit in the cache file unless we assign to the vars.
6046(
6047  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6048    eval ac_val=\$$ac_var
6049    case $ac_val in #(
6050    *${as_nl}*)
6051      case $ac_var in #(
6052      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6053$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6054      esac
6055      case $ac_var in #(
6056      _ | IFS | as_nl) ;; #(
6057      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6058      *) { eval $ac_var=; unset $ac_var;} ;;
6059      esac ;;
6060    esac
6061  done
6062
6063  (set) 2>&1 |
6064    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6065    *${as_nl}ac_space=\ *)
6066      # `set' does not quote correctly, so add quotes: double-quote
6067      # substitution turns \\\\ into \\, and sed turns \\ into \.
6068      sed -n \
6069	"s/'/'\\\\''/g;
6070	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6071      ;; #(
6072    *)
6073      # `set' quotes correctly as required by POSIX, so do not add quotes.
6074      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6075      ;;
6076    esac |
6077    sort
6078) |
6079  sed '
6080     /^ac_cv_env_/b end
6081     t clear
6082     :clear
6083     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6084     t end
6085     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6086     :end' >>confcache
6087if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6088  if test -w "$cache_file"; then
6089    if test "x$cache_file" != "x/dev/null"; then
6090      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6091$as_echo "$as_me: updating cache $cache_file" >&6;}
6092      if test ! -f "$cache_file" || test -h "$cache_file"; then
6093	cat confcache >"$cache_file"
6094      else
6095        case $cache_file in #(
6096        */* | ?:*)
6097	  mv -f confcache "$cache_file"$$ &&
6098	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6099        *)
6100	  mv -f confcache "$cache_file" ;;
6101	esac
6102      fi
6103    fi
6104  else
6105    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6106$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6107  fi
6108fi
6109rm -f confcache
6110
6111test "x$prefix" = xNONE && prefix=$ac_default_prefix
6112# Let make expand exec_prefix.
6113test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6114
6115DEFS=-DHAVE_CONFIG_H
6116
6117ac_libobjs=
6118ac_ltlibobjs=
6119U=
6120for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6121  # 1. Remove the extension, and $U if already installed.
6122  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6123  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6124  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6125  #    will be set to the directory where LIBOBJS objects are built.
6126  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6127  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6128done
6129LIBOBJS=$ac_libobjs
6130
6131LTLIBOBJS=$ac_ltlibobjs
6132
6133
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6135$as_echo_n "checking that generated files are newer than configure... " >&6; }
6136   if test -n "$am_sleep_pid"; then
6137     # Hide warnings about reused PIDs.
6138     wait $am_sleep_pid 2>/dev/null
6139   fi
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6141$as_echo "done" >&6; }
6142 if test -n "$EXEEXT"; then
6143  am__EXEEXT_TRUE=
6144  am__EXEEXT_FALSE='#'
6145else
6146  am__EXEEXT_TRUE='#'
6147  am__EXEEXT_FALSE=
6148fi
6149
6150if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6151  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6152Usually this means the macro was only invoked conditionally." "$LINENO" 5
6153fi
6154if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6155  as_fn_error $? "conditional \"AMDEP\" was never defined.
6156Usually this means the macro was only invoked conditionally." "$LINENO" 5
6157fi
6158if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6159  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6160Usually this means the macro was only invoked conditionally." "$LINENO" 5
6161fi
6162if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
6163  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
6164Usually this means the macro was only invoked conditionally." "$LINENO" 5
6165fi
6166if test -z "${WANT_JANSSON_TRUE}" && test -z "${WANT_JANSSON_FALSE}"; then
6167  as_fn_error $? "conditional \"WANT_JANSSON\" was never defined.
6168Usually this means the macro was only invoked conditionally." "$LINENO" 5
6169fi
6170if test -z "${HAVE_WINDOWS_TRUE}" && test -z "${HAVE_WINDOWS_FALSE}"; then
6171  as_fn_error $? "conditional \"HAVE_WINDOWS\" was never defined.
6172Usually this means the macro was only invoked conditionally." "$LINENO" 5
6173fi
6174if test -z "${USE_ASM_TRUE}" && test -z "${USE_ASM_FALSE}"; then
6175  as_fn_error $? "conditional \"USE_ASM\" was never defined.
6176Usually this means the macro was only invoked conditionally." "$LINENO" 5
6177fi
6178if test -z "${ARCH_x86_TRUE}" && test -z "${ARCH_x86_FALSE}"; then
6179  as_fn_error $? "conditional \"ARCH_x86\" was never defined.
6180Usually this means the macro was only invoked conditionally." "$LINENO" 5
6181fi
6182if test -z "${ARCH_x86_64_TRUE}" && test -z "${ARCH_x86_64_FALSE}"; then
6183  as_fn_error $? "conditional \"ARCH_x86_64\" was never defined.
6184Usually this means the macro was only invoked conditionally." "$LINENO" 5
6185fi
6186if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
6187  as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
6188Usually this means the macro was only invoked conditionally." "$LINENO" 5
6189fi
6190if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
6191  as_fn_error $? "conditional \"ARCH_PPC\" was never defined.
6192Usually this means the macro was only invoked conditionally." "$LINENO" 5
6193fi
6194
6195: "${CONFIG_STATUS=./config.status}"
6196ac_write_fail=0
6197ac_clean_files_save=$ac_clean_files
6198ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6200$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6201as_write_fail=0
6202cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6203#! $SHELL
6204# Generated by $as_me.
6205# Run this file to recreate the current configuration.
6206# Compiler output produced by configure, useful for debugging
6207# configure, is in config.log if it exists.
6208
6209debug=false
6210ac_cs_recheck=false
6211ac_cs_silent=false
6212
6213SHELL=\${CONFIG_SHELL-$SHELL}
6214export SHELL
6215_ASEOF
6216cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6217## -------------------- ##
6218## M4sh Initialization. ##
6219## -------------------- ##
6220
6221# Be more Bourne compatible
6222DUALCASE=1; export DUALCASE # for MKS sh
6223if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6224  emulate sh
6225  NULLCMD=:
6226  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6227  # is contrary to our usage.  Disable this feature.
6228  alias -g '${1+"$@"}'='"$@"'
6229  setopt NO_GLOB_SUBST
6230else
6231  case `(set -o) 2>/dev/null` in #(
6232  *posix*) :
6233    set -o posix ;; #(
6234  *) :
6235     ;;
6236esac
6237fi
6238
6239
6240as_nl='
6241'
6242export as_nl
6243# Printing a long string crashes Solaris 7 /usr/bin/printf.
6244as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6245as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6246as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6247# Prefer a ksh shell builtin over an external printf program on Solaris,
6248# but without wasting forks for bash or zsh.
6249if test -z "$BASH_VERSION$ZSH_VERSION" \
6250    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6251  as_echo='print -r --'
6252  as_echo_n='print -rn --'
6253elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6254  as_echo='printf %s\n'
6255  as_echo_n='printf %s'
6256else
6257  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6258    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6259    as_echo_n='/usr/ucb/echo -n'
6260  else
6261    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6262    as_echo_n_body='eval
6263      arg=$1;
6264      case $arg in #(
6265      *"$as_nl"*)
6266	expr "X$arg" : "X\\(.*\\)$as_nl";
6267	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6268      esac;
6269      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6270    '
6271    export as_echo_n_body
6272    as_echo_n='sh -c $as_echo_n_body as_echo'
6273  fi
6274  export as_echo_body
6275  as_echo='sh -c $as_echo_body as_echo'
6276fi
6277
6278# The user is always right.
6279if test "${PATH_SEPARATOR+set}" != set; then
6280  PATH_SEPARATOR=:
6281  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6282    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6283      PATH_SEPARATOR=';'
6284  }
6285fi
6286
6287
6288# IFS
6289# We need space, tab and new line, in precisely that order.  Quoting is
6290# there to prevent editors from complaining about space-tab.
6291# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6292# splitting by setting IFS to empty value.)
6293IFS=" ""	$as_nl"
6294
6295# Find who we are.  Look in the path if we contain no directory separator.
6296as_myself=
6297case $0 in #((
6298  *[\\/]* ) as_myself=$0 ;;
6299  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300for as_dir in $PATH
6301do
6302  IFS=$as_save_IFS
6303  test -z "$as_dir" && as_dir=.
6304    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6305  done
6306IFS=$as_save_IFS
6307
6308     ;;
6309esac
6310# We did not find ourselves, most probably we were run as `sh COMMAND'
6311# in which case we are not to be found in the path.
6312if test "x$as_myself" = x; then
6313  as_myself=$0
6314fi
6315if test ! -f "$as_myself"; then
6316  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6317  exit 1
6318fi
6319
6320# Unset variables that we do not need and which cause bugs (e.g. in
6321# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6322# suppresses any "Segmentation fault" message there.  '((' could
6323# trigger a bug in pdksh 5.2.14.
6324for as_var in BASH_ENV ENV MAIL MAILPATH
6325do eval test x\${$as_var+set} = xset \
6326  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6327done
6328PS1='$ '
6329PS2='> '
6330PS4='+ '
6331
6332# NLS nuisances.
6333LC_ALL=C
6334export LC_ALL
6335LANGUAGE=C
6336export LANGUAGE
6337
6338# CDPATH.
6339(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6340
6341
6342# as_fn_error STATUS ERROR [LINENO LOG_FD]
6343# ----------------------------------------
6344# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6345# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6346# script with STATUS, using 1 if that was 0.
6347as_fn_error ()
6348{
6349  as_status=$1; test $as_status -eq 0 && as_status=1
6350  if test "$4"; then
6351    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6352    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6353  fi
6354  $as_echo "$as_me: error: $2" >&2
6355  as_fn_exit $as_status
6356} # as_fn_error
6357
6358
6359# as_fn_set_status STATUS
6360# -----------------------
6361# Set $? to STATUS, without forking.
6362as_fn_set_status ()
6363{
6364  return $1
6365} # as_fn_set_status
6366
6367# as_fn_exit STATUS
6368# -----------------
6369# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6370as_fn_exit ()
6371{
6372  set +e
6373  as_fn_set_status $1
6374  exit $1
6375} # as_fn_exit
6376
6377# as_fn_unset VAR
6378# ---------------
6379# Portably unset VAR.
6380as_fn_unset ()
6381{
6382  { eval $1=; unset $1;}
6383}
6384as_unset=as_fn_unset
6385# as_fn_append VAR VALUE
6386# ----------------------
6387# Append the text in VALUE to the end of the definition contained in VAR. Take
6388# advantage of any shell optimizations that allow amortized linear growth over
6389# repeated appends, instead of the typical quadratic growth present in naive
6390# implementations.
6391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6392  eval 'as_fn_append ()
6393  {
6394    eval $1+=\$2
6395  }'
6396else
6397  as_fn_append ()
6398  {
6399    eval $1=\$$1\$2
6400  }
6401fi # as_fn_append
6402
6403# as_fn_arith ARG...
6404# ------------------
6405# Perform arithmetic evaluation on the ARGs, and store the result in the
6406# global $as_val. Take advantage of shells that can avoid forks. The arguments
6407# must be portable across $(()) and expr.
6408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6409  eval 'as_fn_arith ()
6410  {
6411    as_val=$(( $* ))
6412  }'
6413else
6414  as_fn_arith ()
6415  {
6416    as_val=`expr "$@" || test $? -eq 1`
6417  }
6418fi # as_fn_arith
6419
6420
6421if expr a : '\(a\)' >/dev/null 2>&1 &&
6422   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6423  as_expr=expr
6424else
6425  as_expr=false
6426fi
6427
6428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6429  as_basename=basename
6430else
6431  as_basename=false
6432fi
6433
6434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6435  as_dirname=dirname
6436else
6437  as_dirname=false
6438fi
6439
6440as_me=`$as_basename -- "$0" ||
6441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6442	 X"$0" : 'X\(//\)$' \| \
6443	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6444$as_echo X/"$0" |
6445    sed '/^.*\/\([^/][^/]*\)\/*$/{
6446	    s//\1/
6447	    q
6448	  }
6449	  /^X\/\(\/\/\)$/{
6450	    s//\1/
6451	    q
6452	  }
6453	  /^X\/\(\/\).*/{
6454	    s//\1/
6455	    q
6456	  }
6457	  s/.*/./; q'`
6458
6459# Avoid depending upon Character Ranges.
6460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6463as_cr_digits='0123456789'
6464as_cr_alnum=$as_cr_Letters$as_cr_digits
6465
6466ECHO_C= ECHO_N= ECHO_T=
6467case `echo -n x` in #(((((
6468-n*)
6469  case `echo 'xy\c'` in
6470  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6471  xy)  ECHO_C='\c';;
6472  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6473       ECHO_T='	';;
6474  esac;;
6475*)
6476  ECHO_N='-n';;
6477esac
6478
6479rm -f conf$$ conf$$.exe conf$$.file
6480if test -d conf$$.dir; then
6481  rm -f conf$$.dir/conf$$.file
6482else
6483  rm -f conf$$.dir
6484  mkdir conf$$.dir 2>/dev/null
6485fi
6486if (echo >conf$$.file) 2>/dev/null; then
6487  if ln -s conf$$.file conf$$ 2>/dev/null; then
6488    as_ln_s='ln -s'
6489    # ... but there are two gotchas:
6490    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6491    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6492    # In both cases, we have to default to `cp -pR'.
6493    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6494      as_ln_s='cp -pR'
6495  elif ln conf$$.file conf$$ 2>/dev/null; then
6496    as_ln_s=ln
6497  else
6498    as_ln_s='cp -pR'
6499  fi
6500else
6501  as_ln_s='cp -pR'
6502fi
6503rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6504rmdir conf$$.dir 2>/dev/null
6505
6506
6507# as_fn_mkdir_p
6508# -------------
6509# Create "$as_dir" as a directory, including parents if necessary.
6510as_fn_mkdir_p ()
6511{
6512
6513  case $as_dir in #(
6514  -*) as_dir=./$as_dir;;
6515  esac
6516  test -d "$as_dir" || eval $as_mkdir_p || {
6517    as_dirs=
6518    while :; do
6519      case $as_dir in #(
6520      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6521      *) as_qdir=$as_dir;;
6522      esac
6523      as_dirs="'$as_qdir' $as_dirs"
6524      as_dir=`$as_dirname -- "$as_dir" ||
6525$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6526	 X"$as_dir" : 'X\(//\)[^/]' \| \
6527	 X"$as_dir" : 'X\(//\)$' \| \
6528	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6529$as_echo X"$as_dir" |
6530    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6531	    s//\1/
6532	    q
6533	  }
6534	  /^X\(\/\/\)[^/].*/{
6535	    s//\1/
6536	    q
6537	  }
6538	  /^X\(\/\/\)$/{
6539	    s//\1/
6540	    q
6541	  }
6542	  /^X\(\/\).*/{
6543	    s//\1/
6544	    q
6545	  }
6546	  s/.*/./; q'`
6547      test -d "$as_dir" && break
6548    done
6549    test -z "$as_dirs" || eval "mkdir $as_dirs"
6550  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6551
6552
6553} # as_fn_mkdir_p
6554if mkdir -p . 2>/dev/null; then
6555  as_mkdir_p='mkdir -p "$as_dir"'
6556else
6557  test -d ./-p && rmdir ./-p
6558  as_mkdir_p=false
6559fi
6560
6561
6562# as_fn_executable_p FILE
6563# -----------------------
6564# Test if FILE is an executable regular file.
6565as_fn_executable_p ()
6566{
6567  test -f "$1" && test -x "$1"
6568} # as_fn_executable_p
6569as_test_x='test -x'
6570as_executable_p=as_fn_executable_p
6571
6572# Sed expression to map a string onto a valid CPP name.
6573as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6574
6575# Sed expression to map a string onto a valid variable name.
6576as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6577
6578
6579exec 6>&1
6580## ----------------------------------- ##
6581## Main body of $CONFIG_STATUS script. ##
6582## ----------------------------------- ##
6583_ASEOF
6584test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6585
6586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6587# Save the log message, to keep $0 and so on meaningful, and to
6588# report actual input values of CONFIG_FILES etc. instead of their
6589# values after options handling.
6590ac_log="
6591This file was extended by cpuminer $as_me 2.5.0, which was
6592generated by GNU Autoconf 2.69.  Invocation command line was
6593
6594  CONFIG_FILES    = $CONFIG_FILES
6595  CONFIG_HEADERS  = $CONFIG_HEADERS
6596  CONFIG_LINKS    = $CONFIG_LINKS
6597  CONFIG_COMMANDS = $CONFIG_COMMANDS
6598  $ $0 $@
6599
6600on `(hostname || uname -n) 2>/dev/null | sed 1q`
6601"
6602
6603_ACEOF
6604
6605case $ac_config_files in *"
6606"*) set x $ac_config_files; shift; ac_config_files=$*;;
6607esac
6608
6609case $ac_config_headers in *"
6610"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6611esac
6612
6613
6614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6615# Files that config.status was made for.
6616config_files="$ac_config_files"
6617config_headers="$ac_config_headers"
6618config_commands="$ac_config_commands"
6619
6620_ACEOF
6621
6622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6623ac_cs_usage="\
6624\`$as_me' instantiates files and other configuration actions
6625from templates according to the current configuration.  Unless the files
6626and actions are specified as TAGs, all are instantiated by default.
6627
6628Usage: $0 [OPTION]... [TAG]...
6629
6630  -h, --help       print this help, then exit
6631  -V, --version    print version number and configuration settings, then exit
6632      --config     print configuration, then exit
6633  -q, --quiet, --silent
6634                   do not print progress messages
6635  -d, --debug      don't remove temporary files
6636      --recheck    update $as_me by reconfiguring in the same conditions
6637      --file=FILE[:TEMPLATE]
6638                   instantiate the configuration file FILE
6639      --header=FILE[:TEMPLATE]
6640                   instantiate the configuration header FILE
6641
6642Configuration files:
6643$config_files
6644
6645Configuration headers:
6646$config_headers
6647
6648Configuration commands:
6649$config_commands
6650
6651Report bugs to the package provider."
6652
6653_ACEOF
6654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6655ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6656ac_cs_version="\\
6657cpuminer config.status 2.5.0
6658configured by $0, generated by GNU Autoconf 2.69,
6659  with options \\"\$ac_cs_config\\"
6660
6661Copyright (C) 2012 Free Software Foundation, Inc.
6662This config.status script is free software; the Free Software Foundation
6663gives unlimited permission to copy, distribute and modify it."
6664
6665ac_pwd='$ac_pwd'
6666srcdir='$srcdir'
6667INSTALL='$INSTALL'
6668MKDIR_P='$MKDIR_P'
6669AWK='$AWK'
6670test -n "\$AWK" || AWK=awk
6671_ACEOF
6672
6673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6674# The default lists apply if the user does not specify any file.
6675ac_need_defaults=:
6676while test $# != 0
6677do
6678  case $1 in
6679  --*=?*)
6680    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6681    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6682    ac_shift=:
6683    ;;
6684  --*=)
6685    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6686    ac_optarg=
6687    ac_shift=:
6688    ;;
6689  *)
6690    ac_option=$1
6691    ac_optarg=$2
6692    ac_shift=shift
6693    ;;
6694  esac
6695
6696  case $ac_option in
6697  # Handling of the options.
6698  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6699    ac_cs_recheck=: ;;
6700  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6701    $as_echo "$ac_cs_version"; exit ;;
6702  --config | --confi | --conf | --con | --co | --c )
6703    $as_echo "$ac_cs_config"; exit ;;
6704  --debug | --debu | --deb | --de | --d | -d )
6705    debug=: ;;
6706  --file | --fil | --fi | --f )
6707    $ac_shift
6708    case $ac_optarg in
6709    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6710    '') as_fn_error $? "missing file argument" ;;
6711    esac
6712    as_fn_append CONFIG_FILES " '$ac_optarg'"
6713    ac_need_defaults=false;;
6714  --header | --heade | --head | --hea )
6715    $ac_shift
6716    case $ac_optarg in
6717    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6718    esac
6719    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6720    ac_need_defaults=false;;
6721  --he | --h)
6722    # Conflict between --help and --header
6723    as_fn_error $? "ambiguous option: \`$1'
6724Try \`$0 --help' for more information.";;
6725  --help | --hel | -h )
6726    $as_echo "$ac_cs_usage"; exit ;;
6727  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6728  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6729    ac_cs_silent=: ;;
6730
6731  # This is an error.
6732  -*) as_fn_error $? "unrecognized option: \`$1'
6733Try \`$0 --help' for more information." ;;
6734
6735  *) as_fn_append ac_config_targets " $1"
6736     ac_need_defaults=false ;;
6737
6738  esac
6739  shift
6740done
6741
6742ac_configure_extra_args=
6743
6744if $ac_cs_silent; then
6745  exec 6>/dev/null
6746  ac_configure_extra_args="$ac_configure_extra_args --silent"
6747fi
6748
6749_ACEOF
6750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6751if \$ac_cs_recheck; then
6752  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6753  shift
6754  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6755  CONFIG_SHELL='$SHELL'
6756  export CONFIG_SHELL
6757  exec "\$@"
6758fi
6759
6760_ACEOF
6761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6762exec 5>>config.log
6763{
6764  echo
6765  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6766## Running $as_me. ##
6767_ASBOX
6768  $as_echo "$ac_log"
6769} >&5
6770
6771_ACEOF
6772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6773#
6774# INIT-COMMANDS
6775#
6776AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6777
6778_ACEOF
6779
6780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6781
6782# Handling of arguments.
6783for ac_config_target in $ac_config_targets
6784do
6785  case $ac_config_target in
6786    "cpuminer-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cpuminer-config.h" ;;
6787    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6788    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6789    "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
6790    "compat/jansson/Makefile") CONFIG_FILES="$CONFIG_FILES compat/jansson/Makefile" ;;
6791
6792  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6793  esac
6794done
6795
6796
6797# If the user did not use the arguments to specify the items to instantiate,
6798# then the envvar interface is used.  Set only those that are not.
6799# We use the long form for the default assignment because of an extremely
6800# bizarre bug on SunOS 4.1.3.
6801if $ac_need_defaults; then
6802  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6803  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6804  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6805fi
6806
6807# Have a temporary directory for convenience.  Make it in the build tree
6808# simply because there is no reason against having it here, and in addition,
6809# creating and moving files from /tmp can sometimes cause problems.
6810# Hook for its removal unless debugging.
6811# Note that there is a small window in which the directory will not be cleaned:
6812# after its creation but before its name has been assigned to `$tmp'.
6813$debug ||
6814{
6815  tmp= ac_tmp=
6816  trap 'exit_status=$?
6817  : "${ac_tmp:=$tmp}"
6818  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6819' 0
6820  trap 'as_fn_exit 1' 1 2 13 15
6821}
6822# Create a (secure) tmp directory for tmp files.
6823
6824{
6825  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6826  test -d "$tmp"
6827}  ||
6828{
6829  tmp=./conf$$-$RANDOM
6830  (umask 077 && mkdir "$tmp")
6831} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6832ac_tmp=$tmp
6833
6834# Set up the scripts for CONFIG_FILES section.
6835# No need to generate them if there are no CONFIG_FILES.
6836# This happens for instance with `./config.status config.h'.
6837if test -n "$CONFIG_FILES"; then
6838
6839
6840ac_cr=`echo X | tr X '\015'`
6841# On cygwin, bash can eat \r inside `` if the user requested igncr.
6842# But we know of no other shell where ac_cr would be empty at this
6843# point, so we can use a bashism as a fallback.
6844if test "x$ac_cr" = x; then
6845  eval ac_cr=\$\'\\r\'
6846fi
6847ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6848if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6849  ac_cs_awk_cr='\\r'
6850else
6851  ac_cs_awk_cr=$ac_cr
6852fi
6853
6854echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6855_ACEOF
6856
6857
6858{
6859  echo "cat >conf$$subs.awk <<_ACEOF" &&
6860  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6861  echo "_ACEOF"
6862} >conf$$subs.sh ||
6863  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6864ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6865ac_delim='%!_!# '
6866for ac_last_try in false false false false false :; do
6867  . ./conf$$subs.sh ||
6868    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6869
6870  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6871  if test $ac_delim_n = $ac_delim_num; then
6872    break
6873  elif $ac_last_try; then
6874    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6875  else
6876    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6877  fi
6878done
6879rm -f conf$$subs.sh
6880
6881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6882cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6883_ACEOF
6884sed -n '
6885h
6886s/^/S["/; s/!.*/"]=/
6887p
6888g
6889s/^[^!]*!//
6890:repl
6891t repl
6892s/'"$ac_delim"'$//
6893t delim
6894:nl
6895h
6896s/\(.\{148\}\)..*/\1/
6897t more1
6898s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6899p
6900n
6901b repl
6902:more1
6903s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6904p
6905g
6906s/.\{148\}//
6907t nl
6908:delim
6909h
6910s/\(.\{148\}\)..*/\1/
6911t more2
6912s/["\\]/\\&/g; s/^/"/; s/$/"/
6913p
6914b
6915:more2
6916s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6917p
6918g
6919s/.\{148\}//
6920t delim
6921' <conf$$subs.awk | sed '
6922/^[^""]/{
6923  N
6924  s/\n//
6925}
6926' >>$CONFIG_STATUS || ac_write_fail=1
6927rm -f conf$$subs.awk
6928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6929_ACAWK
6930cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6931  for (key in S) S_is_set[key] = 1
6932  FS = ""
6933
6934}
6935{
6936  line = $ 0
6937  nfields = split(line, field, "@")
6938  substed = 0
6939  len = length(field[1])
6940  for (i = 2; i < nfields; i++) {
6941    key = field[i]
6942    keylen = length(key)
6943    if (S_is_set[key]) {
6944      value = S[key]
6945      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6946      len += length(value) + length(field[++i])
6947      substed = 1
6948    } else
6949      len += 1 + keylen
6950  }
6951
6952  print line
6953}
6954
6955_ACAWK
6956_ACEOF
6957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6958if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6959  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6960else
6961  cat
6962fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6963  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6964_ACEOF
6965
6966# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6967# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6968# trailing colons and then remove the whole line if VPATH becomes empty
6969# (actually we leave an empty line to preserve line numbers).
6970if test "x$srcdir" = x.; then
6971  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6972h
6973s///
6974s/^/:/
6975s/[	 ]*$/:/
6976s/:\$(srcdir):/:/g
6977s/:\${srcdir}:/:/g
6978s/:@srcdir@:/:/g
6979s/^:*//
6980s/:*$//
6981x
6982s/\(=[	 ]*\).*/\1/
6983G
6984s/\n//
6985s/^[^=]*=[	 ]*$//
6986}'
6987fi
6988
6989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6990fi # test -n "$CONFIG_FILES"
6991
6992# Set up the scripts for CONFIG_HEADERS section.
6993# No need to generate them if there are no CONFIG_HEADERS.
6994# This happens for instance with `./config.status Makefile'.
6995if test -n "$CONFIG_HEADERS"; then
6996cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6997BEGIN {
6998_ACEOF
6999
7000# Transform confdefs.h into an awk script `defines.awk', embedded as
7001# here-document in config.status, that substitutes the proper values into
7002# config.h.in to produce config.h.
7003
7004# Create a delimiter string that does not exist in confdefs.h, to ease
7005# handling of long lines.
7006ac_delim='%!_!# '
7007for ac_last_try in false false :; do
7008  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7009  if test -z "$ac_tt"; then
7010    break
7011  elif $ac_last_try; then
7012    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7013  else
7014    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7015  fi
7016done
7017
7018# For the awk script, D is an array of macro values keyed by name,
7019# likewise P contains macro parameters if any.  Preserve backslash
7020# newline sequences.
7021
7022ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7023sed -n '
7024s/.\{148\}/&'"$ac_delim"'/g
7025t rset
7026:rset
7027s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7028t def
7029d
7030:def
7031s/\\$//
7032t bsnl
7033s/["\\]/\\&/g
7034s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7035D["\1"]=" \3"/p
7036s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7037d
7038:bsnl
7039s/["\\]/\\&/g
7040s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7041D["\1"]=" \3\\\\\\n"\\/p
7042t cont
7043s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7044t cont
7045d
7046:cont
7047n
7048s/.\{148\}/&'"$ac_delim"'/g
7049t clear
7050:clear
7051s/\\$//
7052t bsnlc
7053s/["\\]/\\&/g; s/^/"/; s/$/"/p
7054d
7055:bsnlc
7056s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7057b cont
7058' <confdefs.h | sed '
7059s/'"$ac_delim"'/"\\\
7060"/g' >>$CONFIG_STATUS || ac_write_fail=1
7061
7062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7063  for (key in D) D_is_set[key] = 1
7064  FS = ""
7065}
7066/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7067  line = \$ 0
7068  split(line, arg, " ")
7069  if (arg[1] == "#") {
7070    defundef = arg[2]
7071    mac1 = arg[3]
7072  } else {
7073    defundef = substr(arg[1], 2)
7074    mac1 = arg[2]
7075  }
7076  split(mac1, mac2, "(") #)
7077  macro = mac2[1]
7078  prefix = substr(line, 1, index(line, defundef) - 1)
7079  if (D_is_set[macro]) {
7080    # Preserve the white space surrounding the "#".
7081    print prefix "define", macro P[macro] D[macro]
7082    next
7083  } else {
7084    # Replace #undef with comments.  This is necessary, for example,
7085    # in the case of _POSIX_SOURCE, which is predefined and required
7086    # on some systems where configure will not decide to define it.
7087    if (defundef == "undef") {
7088      print "/*", prefix defundef, macro, "*/"
7089      next
7090    }
7091  }
7092}
7093{ print }
7094_ACAWK
7095_ACEOF
7096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7097  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7098fi # test -n "$CONFIG_HEADERS"
7099
7100
7101eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7102shift
7103for ac_tag
7104do
7105  case $ac_tag in
7106  :[FHLC]) ac_mode=$ac_tag; continue;;
7107  esac
7108  case $ac_mode$ac_tag in
7109  :[FHL]*:*);;
7110  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7111  :[FH]-) ac_tag=-:-;;
7112  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7113  esac
7114  ac_save_IFS=$IFS
7115  IFS=:
7116  set x $ac_tag
7117  IFS=$ac_save_IFS
7118  shift
7119  ac_file=$1
7120  shift
7121
7122  case $ac_mode in
7123  :L) ac_source=$1;;
7124  :[FH])
7125    ac_file_inputs=
7126    for ac_f
7127    do
7128      case $ac_f in
7129      -) ac_f="$ac_tmp/stdin";;
7130      *) # Look for the file first in the build tree, then in the source tree
7131	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7132	 # because $ac_f cannot contain `:'.
7133	 test -f "$ac_f" ||
7134	   case $ac_f in
7135	   [\\/$]*) false;;
7136	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7137	   esac ||
7138	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7139      esac
7140      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7141      as_fn_append ac_file_inputs " '$ac_f'"
7142    done
7143
7144    # Let's still pretend it is `configure' which instantiates (i.e., don't
7145    # use $as_me), people would be surprised to read:
7146    #    /* config.h.  Generated by config.status.  */
7147    configure_input='Generated from '`
7148	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7149	`' by configure.'
7150    if test x"$ac_file" != x-; then
7151      configure_input="$ac_file.  $configure_input"
7152      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7153$as_echo "$as_me: creating $ac_file" >&6;}
7154    fi
7155    # Neutralize special characters interpreted by sed in replacement strings.
7156    case $configure_input in #(
7157    *\&* | *\|* | *\\* )
7158       ac_sed_conf_input=`$as_echo "$configure_input" |
7159       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7160    *) ac_sed_conf_input=$configure_input;;
7161    esac
7162
7163    case $ac_tag in
7164    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7165      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7166    esac
7167    ;;
7168  esac
7169
7170  ac_dir=`$as_dirname -- "$ac_file" ||
7171$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7172	 X"$ac_file" : 'X\(//\)[^/]' \| \
7173	 X"$ac_file" : 'X\(//\)$' \| \
7174	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7175$as_echo X"$ac_file" |
7176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7177	    s//\1/
7178	    q
7179	  }
7180	  /^X\(\/\/\)[^/].*/{
7181	    s//\1/
7182	    q
7183	  }
7184	  /^X\(\/\/\)$/{
7185	    s//\1/
7186	    q
7187	  }
7188	  /^X\(\/\).*/{
7189	    s//\1/
7190	    q
7191	  }
7192	  s/.*/./; q'`
7193  as_dir="$ac_dir"; as_fn_mkdir_p
7194  ac_builddir=.
7195
7196case "$ac_dir" in
7197.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7198*)
7199  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7200  # A ".." for each directory in $ac_dir_suffix.
7201  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7202  case $ac_top_builddir_sub in
7203  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7204  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7205  esac ;;
7206esac
7207ac_abs_top_builddir=$ac_pwd
7208ac_abs_builddir=$ac_pwd$ac_dir_suffix
7209# for backward compatibility:
7210ac_top_builddir=$ac_top_build_prefix
7211
7212case $srcdir in
7213  .)  # We are building in place.
7214    ac_srcdir=.
7215    ac_top_srcdir=$ac_top_builddir_sub
7216    ac_abs_top_srcdir=$ac_pwd ;;
7217  [\\/]* | ?:[\\/]* )  # Absolute name.
7218    ac_srcdir=$srcdir$ac_dir_suffix;
7219    ac_top_srcdir=$srcdir
7220    ac_abs_top_srcdir=$srcdir ;;
7221  *) # Relative name.
7222    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7223    ac_top_srcdir=$ac_top_build_prefix$srcdir
7224    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7225esac
7226ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7227
7228
7229  case $ac_mode in
7230  :F)
7231  #
7232  # CONFIG_FILE
7233  #
7234
7235  case $INSTALL in
7236  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7237  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7238  esac
7239  ac_MKDIR_P=$MKDIR_P
7240  case $MKDIR_P in
7241  [\\/$]* | ?:[\\/]* ) ;;
7242  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7243  esac
7244_ACEOF
7245
7246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7247# If the template does not know about datarootdir, expand it.
7248# FIXME: This hack should be removed a few years after 2.60.
7249ac_datarootdir_hack=; ac_datarootdir_seen=
7250ac_sed_dataroot='
7251/datarootdir/ {
7252  p
7253  q
7254}
7255/@datadir@/p
7256/@docdir@/p
7257/@infodir@/p
7258/@localedir@/p
7259/@mandir@/p'
7260case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7261*datarootdir*) ac_datarootdir_seen=yes;;
7262*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7263  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7264$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7265_ACEOF
7266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7267  ac_datarootdir_hack='
7268  s&@datadir@&$datadir&g
7269  s&@docdir@&$docdir&g
7270  s&@infodir@&$infodir&g
7271  s&@localedir@&$localedir&g
7272  s&@mandir@&$mandir&g
7273  s&\\\${datarootdir}&$datarootdir&g' ;;
7274esac
7275_ACEOF
7276
7277# Neutralize VPATH when `$srcdir' = `.'.
7278# Shell code in configure.ac might set extrasub.
7279# FIXME: do we really want to maintain this feature?
7280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7281ac_sed_extra="$ac_vpsub
7282$extrasub
7283_ACEOF
7284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7285:t
7286/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7287s|@configure_input@|$ac_sed_conf_input|;t t
7288s&@top_builddir@&$ac_top_builddir_sub&;t t
7289s&@top_build_prefix@&$ac_top_build_prefix&;t t
7290s&@srcdir@&$ac_srcdir&;t t
7291s&@abs_srcdir@&$ac_abs_srcdir&;t t
7292s&@top_srcdir@&$ac_top_srcdir&;t t
7293s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7294s&@builddir@&$ac_builddir&;t t
7295s&@abs_builddir@&$ac_abs_builddir&;t t
7296s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7297s&@INSTALL@&$ac_INSTALL&;t t
7298s&@MKDIR_P@&$ac_MKDIR_P&;t t
7299$ac_datarootdir_hack
7300"
7301eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7302  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7303
7304test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7305  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7306  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
7307      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7309which seems to be undefined.  Please make sure it is defined" >&5
7310$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7311which seems to be undefined.  Please make sure it is defined" >&2;}
7312
7313  rm -f "$ac_tmp/stdin"
7314  case $ac_file in
7315  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7316  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7317  esac \
7318  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7319 ;;
7320  :H)
7321  #
7322  # CONFIG_HEADER
7323  #
7324  if test x"$ac_file" != x-; then
7325    {
7326      $as_echo "/* $configure_input  */" \
7327      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7328    } >"$ac_tmp/config.h" \
7329      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7330    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7331      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7332$as_echo "$as_me: $ac_file is unchanged" >&6;}
7333    else
7334      rm -f "$ac_file"
7335      mv "$ac_tmp/config.h" "$ac_file" \
7336	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
7337    fi
7338  else
7339    $as_echo "/* $configure_input  */" \
7340      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7341      || as_fn_error $? "could not create -" "$LINENO" 5
7342  fi
7343# Compute "$ac_file"'s index in $config_headers.
7344_am_arg="$ac_file"
7345_am_stamp_count=1
7346for _am_header in $config_headers :; do
7347  case $_am_header in
7348    $_am_arg | $_am_arg:* )
7349      break ;;
7350    * )
7351      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7352  esac
7353done
7354echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7355$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7356	 X"$_am_arg" : 'X\(//\)[^/]' \| \
7357	 X"$_am_arg" : 'X\(//\)$' \| \
7358	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7359$as_echo X"$_am_arg" |
7360    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7361	    s//\1/
7362	    q
7363	  }
7364	  /^X\(\/\/\)[^/].*/{
7365	    s//\1/
7366	    q
7367	  }
7368	  /^X\(\/\/\)$/{
7369	    s//\1/
7370	    q
7371	  }
7372	  /^X\(\/\).*/{
7373	    s//\1/
7374	    q
7375	  }
7376	  s/.*/./; q'`/stamp-h$_am_stamp_count
7377 ;;
7378
7379  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7380$as_echo "$as_me: executing $ac_file commands" >&6;}
7381 ;;
7382  esac
7383
7384
7385  case $ac_file$ac_mode in
7386    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7387  # Older Autoconf quotes --file arguments for eval, but not when files
7388  # are listed without --file.  Let's play safe and only enable the eval
7389  # if we detect the quoting.
7390  case $CONFIG_FILES in
7391  *\'*) eval set x "$CONFIG_FILES" ;;
7392  *)   set x $CONFIG_FILES ;;
7393  esac
7394  shift
7395  for mf
7396  do
7397    # Strip MF so we end up with the name of the file.
7398    mf=`echo "$mf" | sed -e 's/:.*$//'`
7399    # Check whether this is an Automake generated Makefile or not.
7400    # We used to match only the files named 'Makefile.in', but
7401    # some people rename them; so instead we look at the file content.
7402    # Grep'ing the first line is not enough: some people post-process
7403    # each Makefile.in and add a new line on top of each file to say so.
7404    # Grep'ing the whole file is not good either: AIX grep has a line
7405    # limit of 2048, but all sed's we know have understand at least 4000.
7406    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7407      dirpart=`$as_dirname -- "$mf" ||
7408$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7409	 X"$mf" : 'X\(//\)[^/]' \| \
7410	 X"$mf" : 'X\(//\)$' \| \
7411	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7412$as_echo X"$mf" |
7413    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7414	    s//\1/
7415	    q
7416	  }
7417	  /^X\(\/\/\)[^/].*/{
7418	    s//\1/
7419	    q
7420	  }
7421	  /^X\(\/\/\)$/{
7422	    s//\1/
7423	    q
7424	  }
7425	  /^X\(\/\).*/{
7426	    s//\1/
7427	    q
7428	  }
7429	  s/.*/./; q'`
7430    else
7431      continue
7432    fi
7433    # Extract the definition of DEPDIR, am__include, and am__quote
7434    # from the Makefile without running 'make'.
7435    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7436    test -z "$DEPDIR" && continue
7437    am__include=`sed -n 's/^am__include = //p' < "$mf"`
7438    test -z "$am__include" && continue
7439    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7440    # Find all dependency output files, they are included files with
7441    # $(DEPDIR) in their names.  We invoke sed twice because it is the
7442    # simplest approach to changing $(DEPDIR) to its actual value in the
7443    # expansion.
7444    for file in `sed -n "
7445      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7446	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7447      # Make sure the directory exists.
7448      test -f "$dirpart/$file" && continue
7449      fdir=`$as_dirname -- "$file" ||
7450$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7451	 X"$file" : 'X\(//\)[^/]' \| \
7452	 X"$file" : 'X\(//\)$' \| \
7453	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7454$as_echo X"$file" |
7455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7456	    s//\1/
7457	    q
7458	  }
7459	  /^X\(\/\/\)[^/].*/{
7460	    s//\1/
7461	    q
7462	  }
7463	  /^X\(\/\/\)$/{
7464	    s//\1/
7465	    q
7466	  }
7467	  /^X\(\/\).*/{
7468	    s//\1/
7469	    q
7470	  }
7471	  s/.*/./; q'`
7472      as_dir=$dirpart/$fdir; as_fn_mkdir_p
7473      # echo "creating $dirpart/$file"
7474      echo '# dummy' > "$dirpart/$file"
7475    done
7476  done
7477}
7478 ;;
7479
7480  esac
7481done # for ac_tag
7482
7483
7484as_fn_exit 0
7485_ACEOF
7486ac_clean_files=$ac_clean_files_save
7487
7488test $ac_write_fail = 0 ||
7489  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7490
7491
7492# configure is writing to config.log, and then calls config.status.
7493# config.status does its own redirection, appending to config.log.
7494# Unfortunately, on DOS this fails, as config.log is still kept open
7495# by configure, so config.status won't be able to write to it; its
7496# output is simply discarded.  So we exec the FD to /dev/null,
7497# effectively closing config.log, so it can be properly (re)opened and
7498# appended to by config.status.  When coming back to configure, we
7499# need to make the FD available again.
7500if test "$no_create" != yes; then
7501  ac_cs_success=:
7502  ac_config_status_args=
7503  test "$silent" = yes &&
7504    ac_config_status_args="$ac_config_status_args --quiet"
7505  exec 5>/dev/null
7506  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7507  exec 5>>config.log
7508  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7509  # would make configure fail if this is the last instruction.
7510  $ac_cs_success || as_fn_exit 1
7511fi
7512if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7513  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7514$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7515fi
7516
7517