1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for megatools 1.10.3.
4#
5# Report bugs to <megous@megous.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and megous@megous.com
270$0: about your system, including any error possibly output
271$0: before this message. Then install a modern shell, or
272$0: manually run the script under such a shell if you do
273$0: have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='megatools'
582PACKAGE_TARNAME='megatools'
583PACKAGE_VERSION='1.10.3'
584PACKAGE_STRING='megatools 1.10.3'
585PACKAGE_BUGREPORT='megous@megous.com'
586PACKAGE_URL=''
587
588ac_unique_file="Makefile.am"
589ac_subst_vars='am__EXEEXT_FALSE
590am__EXEEXT_TRUE
591LTLIBOBJS
592LIBOBJS
593A2X
594ENABLE_DOCS_FALSE
595ENABLE_DOCS_TRUE
596LIBCURL_LIBS
597LIBCURL_CFLAGS
598OPENSSL_LIBS
599OPENSSL_CFLAGS
600GLIB_LIBS
601GLIB_CFLAGS
602PKG_CONFIG_LIBDIR
603PKG_CONFIG_PATH
604PKG_CONFIG
605MEGA_REQUIRES
606EGREP
607GREP
608CPP
609RANLIB
610am__fastdepCC_FALSE
611am__fastdepCC_TRUE
612CCDEPMODE
613am__nodep
614AMDEPBACKSLASH
615AMDEP_FALSE
616AMDEP_TRUE
617am__include
618DEPDIR
619OBJEXT
620EXEEXT
621ac_ct_CC
622CPPFLAGS
623LDFLAGS
624CFLAGS
625CC
626MAINT
627MAINTAINER_MODE_FALSE
628MAINTAINER_MODE_TRUE
629AM_BACKSLASH
630AM_DEFAULT_VERBOSITY
631AM_DEFAULT_V
632AM_V
633am__untar
634am__tar
635AMTAR
636am__leading_dot
637SET_MAKE
638AWK
639mkdir_p
640MKDIR_P
641INSTALL_STRIP_PROGRAM
642STRIP
643install_sh
644MAKEINFO
645AUTOHEADER
646AUTOMAKE
647AUTOCONF
648ACLOCAL
649VERSION
650PACKAGE
651CYGPATH_W
652am__isrc
653INSTALL_DATA
654INSTALL_SCRIPT
655INSTALL_PROGRAM
656target_alias
657host_alias
658build_alias
659LIBS
660ECHO_T
661ECHO_N
662ECHO_C
663DEFS
664mandir
665localedir
666libdir
667psdir
668pdfdir
669dvidir
670htmldir
671infodir
672docdir
673oldincludedir
674includedir
675localstatedir
676sharedstatedir
677sysconfdir
678datadir
679datarootdir
680libexecdir
681sbindir
682bindir
683program_transform_name
684prefix
685exec_prefix
686PACKAGE_URL
687PACKAGE_BUGREPORT
688PACKAGE_STRING
689PACKAGE_VERSION
690PACKAGE_TARNAME
691PACKAGE_NAME
692PATH_SEPARATOR
693SHELL
694am__quote'
695ac_subst_files=''
696ac_user_opts='
697enable_option_checking
698enable_silent_rules
699enable_maintainer_mode
700enable_dependency_tracking
701enable_warnings
702enable_docs
703'
704      ac_precious_vars='build_alias
705host_alias
706target_alias
707CC
708CFLAGS
709LDFLAGS
710LIBS
711CPPFLAGS
712CPP
713PKG_CONFIG
714PKG_CONFIG_PATH
715PKG_CONFIG_LIBDIR
716GLIB_CFLAGS
717GLIB_LIBS
718OPENSSL_CFLAGS
719OPENSSL_LIBS
720LIBCURL_CFLAGS
721LIBCURL_LIBS'
722
723
724# Initialize some variables set by options.
725ac_init_help=
726ac_init_version=false
727ac_unrecognized_opts=
728ac_unrecognized_sep=
729# The variables have the same names as the options, with
730# dashes changed to underlines.
731cache_file=/dev/null
732exec_prefix=NONE
733no_create=
734no_recursion=
735prefix=NONE
736program_prefix=NONE
737program_suffix=NONE
738program_transform_name=s,x,x,
739silent=
740site=
741srcdir=
742verbose=
743x_includes=NONE
744x_libraries=NONE
745
746# Installation directory options.
747# These are left unexpanded so users can "make install exec_prefix=/foo"
748# and all the variables that are supposed to be based on exec_prefix
749# by default will actually change.
750# Use braces instead of parens because sh, perl, etc. also accept them.
751# (The list follows the same order as the GNU Coding Standards.)
752bindir='${exec_prefix}/bin'
753sbindir='${exec_prefix}/sbin'
754libexecdir='${exec_prefix}/libexec'
755datarootdir='${prefix}/share'
756datadir='${datarootdir}'
757sysconfdir='${prefix}/etc'
758sharedstatedir='${prefix}/com'
759localstatedir='${prefix}/var'
760includedir='${prefix}/include'
761oldincludedir='/usr/include'
762docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
763infodir='${datarootdir}/info'
764htmldir='${docdir}'
765dvidir='${docdir}'
766pdfdir='${docdir}'
767psdir='${docdir}'
768libdir='${exec_prefix}/lib'
769localedir='${datarootdir}/locale'
770mandir='${datarootdir}/man'
771
772ac_prev=
773ac_dashdash=
774for ac_option
775do
776  # If the previous option needs an argument, assign it.
777  if test -n "$ac_prev"; then
778    eval $ac_prev=\$ac_option
779    ac_prev=
780    continue
781  fi
782
783  case $ac_option in
784  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785  *=)   ac_optarg= ;;
786  *)    ac_optarg=yes ;;
787  esac
788
789  # Accept the important Cygnus configure options, so we can diagnose typos.
790
791  case $ac_dashdash$ac_option in
792  --)
793    ac_dashdash=yes ;;
794
795  -bindir | --bindir | --bindi | --bind | --bin | --bi)
796    ac_prev=bindir ;;
797  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798    bindir=$ac_optarg ;;
799
800  -build | --build | --buil | --bui | --bu)
801    ac_prev=build_alias ;;
802  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803    build_alias=$ac_optarg ;;
804
805  -cache-file | --cache-file | --cache-fil | --cache-fi \
806  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807    ac_prev=cache_file ;;
808  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810    cache_file=$ac_optarg ;;
811
812  --config-cache | -C)
813    cache_file=config.cache ;;
814
815  -datadir | --datadir | --datadi | --datad)
816    ac_prev=datadir ;;
817  -datadir=* | --datadir=* | --datadi=* | --datad=*)
818    datadir=$ac_optarg ;;
819
820  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821  | --dataroo | --dataro | --datar)
822    ac_prev=datarootdir ;;
823  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825    datarootdir=$ac_optarg ;;
826
827  -disable-* | --disable-*)
828    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829    # Reject names that are not valid shell variable names.
830    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831      as_fn_error $? "invalid feature name: $ac_useropt"
832    ac_useropt_orig=$ac_useropt
833    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834    case $ac_user_opts in
835      *"
836"enable_$ac_useropt"
837"*) ;;
838      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
839	 ac_unrecognized_sep=', ';;
840    esac
841    eval enable_$ac_useropt=no ;;
842
843  -docdir | --docdir | --docdi | --doc | --do)
844    ac_prev=docdir ;;
845  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846    docdir=$ac_optarg ;;
847
848  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849    ac_prev=dvidir ;;
850  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851    dvidir=$ac_optarg ;;
852
853  -enable-* | --enable-*)
854    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855    # Reject names that are not valid shell variable names.
856    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857      as_fn_error $? "invalid feature name: $ac_useropt"
858    ac_useropt_orig=$ac_useropt
859    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860    case $ac_user_opts in
861      *"
862"enable_$ac_useropt"
863"*) ;;
864      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
865	 ac_unrecognized_sep=', ';;
866    esac
867    eval enable_$ac_useropt=\$ac_optarg ;;
868
869  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871  | --exec | --exe | --ex)
872    ac_prev=exec_prefix ;;
873  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875  | --exec=* | --exe=* | --ex=*)
876    exec_prefix=$ac_optarg ;;
877
878  -gas | --gas | --ga | --g)
879    # Obsolete; use --with-gas.
880    with_gas=yes ;;
881
882  -help | --help | --hel | --he | -h)
883    ac_init_help=long ;;
884  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885    ac_init_help=recursive ;;
886  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887    ac_init_help=short ;;
888
889  -host | --host | --hos | --ho)
890    ac_prev=host_alias ;;
891  -host=* | --host=* | --hos=* | --ho=*)
892    host_alias=$ac_optarg ;;
893
894  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895    ac_prev=htmldir ;;
896  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897  | --ht=*)
898    htmldir=$ac_optarg ;;
899
900  -includedir | --includedir | --includedi | --included | --include \
901  | --includ | --inclu | --incl | --inc)
902    ac_prev=includedir ;;
903  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904  | --includ=* | --inclu=* | --incl=* | --inc=*)
905    includedir=$ac_optarg ;;
906
907  -infodir | --infodir | --infodi | --infod | --info | --inf)
908    ac_prev=infodir ;;
909  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910    infodir=$ac_optarg ;;
911
912  -libdir | --libdir | --libdi | --libd)
913    ac_prev=libdir ;;
914  -libdir=* | --libdir=* | --libdi=* | --libd=*)
915    libdir=$ac_optarg ;;
916
917  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918  | --libexe | --libex | --libe)
919    ac_prev=libexecdir ;;
920  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921  | --libexe=* | --libex=* | --libe=*)
922    libexecdir=$ac_optarg ;;
923
924  -localedir | --localedir | --localedi | --localed | --locale)
925    ac_prev=localedir ;;
926  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927    localedir=$ac_optarg ;;
928
929  -localstatedir | --localstatedir | --localstatedi | --localstated \
930  | --localstate | --localstat | --localsta | --localst | --locals)
931    ac_prev=localstatedir ;;
932  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934    localstatedir=$ac_optarg ;;
935
936  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937    ac_prev=mandir ;;
938  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939    mandir=$ac_optarg ;;
940
941  -nfp | --nfp | --nf)
942    # Obsolete; use --without-fp.
943    with_fp=no ;;
944
945  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946  | --no-cr | --no-c | -n)
947    no_create=yes ;;
948
949  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951    no_recursion=yes ;;
952
953  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955  | --oldin | --oldi | --old | --ol | --o)
956    ac_prev=oldincludedir ;;
957  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960    oldincludedir=$ac_optarg ;;
961
962  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963    ac_prev=prefix ;;
964  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965    prefix=$ac_optarg ;;
966
967  -program-prefix | --program-prefix | --program-prefi | --program-pref \
968  | --program-pre | --program-pr | --program-p)
969    ac_prev=program_prefix ;;
970  -program-prefix=* | --program-prefix=* | --program-prefi=* \
971  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972    program_prefix=$ac_optarg ;;
973
974  -program-suffix | --program-suffix | --program-suffi | --program-suff \
975  | --program-suf | --program-su | --program-s)
976    ac_prev=program_suffix ;;
977  -program-suffix=* | --program-suffix=* | --program-suffi=* \
978  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979    program_suffix=$ac_optarg ;;
980
981  -program-transform-name | --program-transform-name \
982  | --program-transform-nam | --program-transform-na \
983  | --program-transform-n | --program-transform- \
984  | --program-transform | --program-transfor \
985  | --program-transfo | --program-transf \
986  | --program-trans | --program-tran \
987  | --progr-tra | --program-tr | --program-t)
988    ac_prev=program_transform_name ;;
989  -program-transform-name=* | --program-transform-name=* \
990  | --program-transform-nam=* | --program-transform-na=* \
991  | --program-transform-n=* | --program-transform-=* \
992  | --program-transform=* | --program-transfor=* \
993  | --program-transfo=* | --program-transf=* \
994  | --program-trans=* | --program-tran=* \
995  | --progr-tra=* | --program-tr=* | --program-t=*)
996    program_transform_name=$ac_optarg ;;
997
998  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999    ac_prev=pdfdir ;;
1000  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001    pdfdir=$ac_optarg ;;
1002
1003  -psdir | --psdir | --psdi | --psd | --ps)
1004    ac_prev=psdir ;;
1005  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006    psdir=$ac_optarg ;;
1007
1008  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009  | -silent | --silent | --silen | --sile | --sil)
1010    silent=yes ;;
1011
1012  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013    ac_prev=sbindir ;;
1014  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015  | --sbi=* | --sb=*)
1016    sbindir=$ac_optarg ;;
1017
1018  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020  | --sharedst | --shareds | --shared | --share | --shar \
1021  | --sha | --sh)
1022    ac_prev=sharedstatedir ;;
1023  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026  | --sha=* | --sh=*)
1027    sharedstatedir=$ac_optarg ;;
1028
1029  -site | --site | --sit)
1030    ac_prev=site ;;
1031  -site=* | --site=* | --sit=*)
1032    site=$ac_optarg ;;
1033
1034  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035    ac_prev=srcdir ;;
1036  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037    srcdir=$ac_optarg ;;
1038
1039  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040  | --syscon | --sysco | --sysc | --sys | --sy)
1041    ac_prev=sysconfdir ;;
1042  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044    sysconfdir=$ac_optarg ;;
1045
1046  -target | --target | --targe | --targ | --tar | --ta | --t)
1047    ac_prev=target_alias ;;
1048  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049    target_alias=$ac_optarg ;;
1050
1051  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052    verbose=yes ;;
1053
1054  -version | --version | --versio | --versi | --vers | -V)
1055    ac_init_version=: ;;
1056
1057  -with-* | --with-*)
1058    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059    # Reject names that are not valid shell variable names.
1060    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061      as_fn_error $? "invalid package name: $ac_useropt"
1062    ac_useropt_orig=$ac_useropt
1063    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064    case $ac_user_opts in
1065      *"
1066"with_$ac_useropt"
1067"*) ;;
1068      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1069	 ac_unrecognized_sep=', ';;
1070    esac
1071    eval with_$ac_useropt=\$ac_optarg ;;
1072
1073  -without-* | --without-*)
1074    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075    # Reject names that are not valid shell variable names.
1076    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077      as_fn_error $? "invalid package name: $ac_useropt"
1078    ac_useropt_orig=$ac_useropt
1079    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080    case $ac_user_opts in
1081      *"
1082"with_$ac_useropt"
1083"*) ;;
1084      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1085	 ac_unrecognized_sep=', ';;
1086    esac
1087    eval with_$ac_useropt=no ;;
1088
1089  --x)
1090    # Obsolete; use --with-x.
1091    with_x=yes ;;
1092
1093  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094  | --x-incl | --x-inc | --x-in | --x-i)
1095    ac_prev=x_includes ;;
1096  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098    x_includes=$ac_optarg ;;
1099
1100  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102    ac_prev=x_libraries ;;
1103  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105    x_libraries=$ac_optarg ;;
1106
1107  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1108Try \`$0 --help' for more information"
1109    ;;
1110
1111  *=*)
1112    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113    # Reject names that are not valid shell variable names.
1114    case $ac_envvar in #(
1115      '' | [0-9]* | *[!_$as_cr_alnum]* )
1116      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1117    esac
1118    eval $ac_envvar=\$ac_optarg
1119    export $ac_envvar ;;
1120
1121  *)
1122    # FIXME: should be removed in autoconf 3.0.
1123    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1127    ;;
1128
1129  esac
1130done
1131
1132if test -n "$ac_prev"; then
1133  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134  as_fn_error $? "missing argument to $ac_option"
1135fi
1136
1137if test -n "$ac_unrecognized_opts"; then
1138  case $enable_option_checking in
1139    no) ;;
1140    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1141    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142  esac
1143fi
1144
1145# Check all directory arguments for consistency.
1146for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1147		datadir sysconfdir sharedstatedir localstatedir includedir \
1148		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1149		libdir localedir mandir
1150do
1151  eval ac_val=\$$ac_var
1152  # Remove trailing slashes.
1153  case $ac_val in
1154    */ )
1155      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1156      eval $ac_var=\$ac_val;;
1157  esac
1158  # Be sure to have absolute directory names.
1159  case $ac_val in
1160    [\\/$]* | ?:[\\/]* )  continue;;
1161    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1162  esac
1163  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1164done
1165
1166# There might be people who depend on the old broken behavior: `$host'
1167# used to hold the argument of --host etc.
1168# FIXME: To remove some day.
1169build=$build_alias
1170host=$host_alias
1171target=$target_alias
1172
1173# FIXME: To remove some day.
1174if test "x$host_alias" != x; then
1175  if test "x$build_alias" = x; then
1176    cross_compiling=maybe
1177  elif test "x$build_alias" != "x$host_alias"; then
1178    cross_compiling=yes
1179  fi
1180fi
1181
1182ac_tool_prefix=
1183test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184
1185test "$silent" = yes && exec 6>/dev/null
1186
1187
1188ac_pwd=`pwd` && test -n "$ac_pwd" &&
1189ac_ls_di=`ls -di .` &&
1190ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1191  as_fn_error $? "working directory cannot be determined"
1192test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193  as_fn_error $? "pwd does not report name of working directory"
1194
1195
1196# Find the source files, if location was not specified.
1197if test -z "$srcdir"; then
1198  ac_srcdir_defaulted=yes
1199  # Try the directory containing this script, then the parent directory.
1200  ac_confdir=`$as_dirname -- "$as_myself" ||
1201$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202	 X"$as_myself" : 'X\(//\)[^/]' \| \
1203	 X"$as_myself" : 'X\(//\)$' \| \
1204	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1205$as_echo X"$as_myself" |
1206    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207	    s//\1/
1208	    q
1209	  }
1210	  /^X\(\/\/\)[^/].*/{
1211	    s//\1/
1212	    q
1213	  }
1214	  /^X\(\/\/\)$/{
1215	    s//\1/
1216	    q
1217	  }
1218	  /^X\(\/\).*/{
1219	    s//\1/
1220	    q
1221	  }
1222	  s/.*/./; q'`
1223  srcdir=$ac_confdir
1224  if test ! -r "$srcdir/$ac_unique_file"; then
1225    srcdir=..
1226  fi
1227else
1228  ac_srcdir_defaulted=no
1229fi
1230if test ! -r "$srcdir/$ac_unique_file"; then
1231  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1233fi
1234ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1235ac_abs_confdir=`(
1236	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1237	pwd)`
1238# When building in place, set srcdir=.
1239if test "$ac_abs_confdir" = "$ac_pwd"; then
1240  srcdir=.
1241fi
1242# Remove unnecessary trailing slashes from srcdir.
1243# Double slashes in file names in object file debugging info
1244# mess up M-x gdb in Emacs.
1245case $srcdir in
1246*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1247esac
1248for ac_var in $ac_precious_vars; do
1249  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1250  eval ac_env_${ac_var}_value=\$${ac_var}
1251  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1252  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1253done
1254
1255#
1256# Report the --help message.
1257#
1258if test "$ac_init_help" = "long"; then
1259  # Omit some internal or obsolete options to make the list less imposing.
1260  # This message is too long to be a string in the A/UX 3.1 sh.
1261  cat <<_ACEOF
1262\`configure' configures megatools 1.10.3 to adapt to many kinds of systems.
1263
1264Usage: $0 [OPTION]... [VAR=VALUE]...
1265
1266To assign environment variables (e.g., CC, CFLAGS...), specify them as
1267VAR=VALUE.  See below for descriptions of some of the useful variables.
1268
1269Defaults for the options are specified in brackets.
1270
1271Configuration:
1272  -h, --help              display this help and exit
1273      --help=short        display options specific to this package
1274      --help=recursive    display the short help of all the included packages
1275  -V, --version           display version information and exit
1276  -q, --quiet, --silent   do not print \`checking ...' messages
1277      --cache-file=FILE   cache test results in FILE [disabled]
1278  -C, --config-cache      alias for \`--cache-file=config.cache'
1279  -n, --no-create         do not create output files
1280      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1281
1282Installation directories:
1283  --prefix=PREFIX         install architecture-independent files in PREFIX
1284                          [$ac_default_prefix]
1285  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1286                          [PREFIX]
1287
1288By default, \`make install' will install all the files in
1289\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1290an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1291for instance \`--prefix=\$HOME'.
1292
1293For better control, use the options below.
1294
1295Fine tuning of the installation directories:
1296  --bindir=DIR            user executables [EPREFIX/bin]
1297  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1298  --libexecdir=DIR        program executables [EPREFIX/libexec]
1299  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1300  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1301  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1302  --libdir=DIR            object code libraries [EPREFIX/lib]
1303  --includedir=DIR        C header files [PREFIX/include]
1304  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1305  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1306  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1307  --infodir=DIR           info documentation [DATAROOTDIR/info]
1308  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1309  --mandir=DIR            man documentation [DATAROOTDIR/man]
1310  --docdir=DIR            documentation root [DATAROOTDIR/doc/megatools]
1311  --htmldir=DIR           html documentation [DOCDIR]
1312  --dvidir=DIR            dvi documentation [DOCDIR]
1313  --pdfdir=DIR            pdf documentation [DOCDIR]
1314  --psdir=DIR             ps documentation [DOCDIR]
1315_ACEOF
1316
1317  cat <<\_ACEOF
1318
1319Program names:
1320  --program-prefix=PREFIX            prepend PREFIX to installed program names
1321  --program-suffix=SUFFIX            append SUFFIX to installed program names
1322  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1323_ACEOF
1324fi
1325
1326if test -n "$ac_init_help"; then
1327  case $ac_init_help in
1328     short | recursive ) echo "Configuration of megatools 1.10.3:";;
1329   esac
1330  cat <<\_ACEOF
1331
1332Optional Features:
1333  --disable-option-checking  ignore unrecognized --enable/--with options
1334  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1335  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1336  --enable-silent-rules   less verbose build output (undo: "make V=1")
1337  --disable-silent-rules  verbose build output (undo: "make V=0")
1338  --enable-maintainer-mode
1339                          enable make rules and dependencies not useful (and
1340                          sometimes confusing) to the casual installer
1341  --enable-dependency-tracking
1342                          do not reject slow dependency extractors
1343  --disable-dependency-tracking
1344                          speeds up one-time build
1345  --enable-warnings       Build with compiler warnings enabled.
1346  --disable-docs          Don't build and install man pages.
1347
1348Some influential environment variables:
1349  CC          C compiler command
1350  CFLAGS      C compiler flags
1351  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1352              nonstandard directory <lib dir>
1353  LIBS        libraries to pass to the linker, e.g. -l<library>
1354  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1355              you have headers in a nonstandard directory <include dir>
1356  CPP         C preprocessor
1357  PKG_CONFIG  path to pkg-config utility
1358  PKG_CONFIG_PATH
1359              directories to add to pkg-config's search path
1360  PKG_CONFIG_LIBDIR
1361              path overriding pkg-config's built-in search path
1362  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1363  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1364  OPENSSL_CFLAGS
1365              C compiler flags for OPENSSL, overriding pkg-config
1366  OPENSSL_LIBS
1367              linker flags for OPENSSL, overriding pkg-config
1368  LIBCURL_CFLAGS
1369              C compiler flags for LIBCURL, overriding pkg-config
1370  LIBCURL_LIBS
1371              linker flags for LIBCURL, overriding pkg-config
1372
1373Use these variables to override the choices made by `configure' or to help
1374it to find libraries and programs with nonstandard names/locations.
1375
1376Report bugs to <megous@megous.com>.
1377_ACEOF
1378ac_status=$?
1379fi
1380
1381if test "$ac_init_help" = "recursive"; then
1382  # If there are subdirs, report their specific --help.
1383  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384    test -d "$ac_dir" ||
1385      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1386      continue
1387    ac_builddir=.
1388
1389case "$ac_dir" in
1390.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391*)
1392  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1393  # A ".." for each directory in $ac_dir_suffix.
1394  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1395  case $ac_top_builddir_sub in
1396  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398  esac ;;
1399esac
1400ac_abs_top_builddir=$ac_pwd
1401ac_abs_builddir=$ac_pwd$ac_dir_suffix
1402# for backward compatibility:
1403ac_top_builddir=$ac_top_build_prefix
1404
1405case $srcdir in
1406  .)  # We are building in place.
1407    ac_srcdir=.
1408    ac_top_srcdir=$ac_top_builddir_sub
1409    ac_abs_top_srcdir=$ac_pwd ;;
1410  [\\/]* | ?:[\\/]* )  # Absolute name.
1411    ac_srcdir=$srcdir$ac_dir_suffix;
1412    ac_top_srcdir=$srcdir
1413    ac_abs_top_srcdir=$srcdir ;;
1414  *) # Relative name.
1415    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1416    ac_top_srcdir=$ac_top_build_prefix$srcdir
1417    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418esac
1419ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420
1421    cd "$ac_dir" || { ac_status=$?; continue; }
1422    # Check for guested configure.
1423    if test -f "$ac_srcdir/configure.gnu"; then
1424      echo &&
1425      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1426    elif test -f "$ac_srcdir/configure"; then
1427      echo &&
1428      $SHELL "$ac_srcdir/configure" --help=recursive
1429    else
1430      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431    fi || ac_status=$?
1432    cd "$ac_pwd" || { ac_status=$?; break; }
1433  done
1434fi
1435
1436test -n "$ac_init_help" && exit $ac_status
1437if $ac_init_version; then
1438  cat <<\_ACEOF
1439megatools configure 1.10.3
1440generated by GNU Autoconf 2.69
1441
1442Copyright (C) 2012 Free Software Foundation, Inc.
1443This configure script is free software; the Free Software Foundation
1444gives unlimited permission to copy, distribute and modify it.
1445_ACEOF
1446  exit
1447fi
1448
1449## ------------------------ ##
1450## Autoconf initialization. ##
1451## ------------------------ ##
1452
1453# ac_fn_c_try_compile LINENO
1454# --------------------------
1455# Try to compile conftest.$ac_ext, and return whether this succeeded.
1456ac_fn_c_try_compile ()
1457{
1458  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459  rm -f conftest.$ac_objext
1460  if { { ac_try="$ac_compile"
1461case "(($ac_try" in
1462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1463  *) ac_try_echo=$ac_try;;
1464esac
1465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466$as_echo "$ac_try_echo"; } >&5
1467  (eval "$ac_compile") 2>conftest.err
1468  ac_status=$?
1469  if test -s conftest.err; then
1470    grep -v '^ *+' conftest.err >conftest.er1
1471    cat conftest.er1 >&5
1472    mv -f conftest.er1 conftest.err
1473  fi
1474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475  test $ac_status = 0; } && {
1476	 test -z "$ac_c_werror_flag" ||
1477	 test ! -s conftest.err
1478       } && test -s conftest.$ac_objext; then :
1479  ac_retval=0
1480else
1481  $as_echo "$as_me: failed program was:" >&5
1482sed 's/^/| /' conftest.$ac_ext >&5
1483
1484	ac_retval=1
1485fi
1486  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1487  as_fn_set_status $ac_retval
1488
1489} # ac_fn_c_try_compile
1490
1491# ac_fn_c_try_cpp LINENO
1492# ----------------------
1493# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1494ac_fn_c_try_cpp ()
1495{
1496  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497  if { { ac_try="$ac_cpp conftest.$ac_ext"
1498case "(($ac_try" in
1499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500  *) ac_try_echo=$ac_try;;
1501esac
1502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503$as_echo "$ac_try_echo"; } >&5
1504  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1505  ac_status=$?
1506  if test -s conftest.err; then
1507    grep -v '^ *+' conftest.err >conftest.er1
1508    cat conftest.er1 >&5
1509    mv -f conftest.er1 conftest.err
1510  fi
1511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512  test $ac_status = 0; } > conftest.i && {
1513	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1514	 test ! -s conftest.err
1515       }; then :
1516  ac_retval=0
1517else
1518  $as_echo "$as_me: failed program was:" >&5
1519sed 's/^/| /' conftest.$ac_ext >&5
1520
1521    ac_retval=1
1522fi
1523  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524  as_fn_set_status $ac_retval
1525
1526} # ac_fn_c_try_cpp
1527
1528# ac_fn_c_try_run LINENO
1529# ----------------------
1530# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1531# that executables *can* be run.
1532ac_fn_c_try_run ()
1533{
1534  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535  if { { ac_try="$ac_link"
1536case "(($ac_try" in
1537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538  *) ac_try_echo=$ac_try;;
1539esac
1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541$as_echo "$ac_try_echo"; } >&5
1542  (eval "$ac_link") 2>&5
1543  ac_status=$?
1544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1546  { { case "(($ac_try" in
1547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548  *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552  (eval "$ac_try") 2>&5
1553  ac_status=$?
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; }; }; then :
1556  ac_retval=0
1557else
1558  $as_echo "$as_me: program exited with status $ac_status" >&5
1559       $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562       ac_retval=$ac_status
1563fi
1564  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1565  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566  as_fn_set_status $ac_retval
1567
1568} # ac_fn_c_try_run
1569cat >config.log <<_ACEOF
1570This file contains any messages produced by compilers while
1571running configure, to aid debugging if configure makes a mistake.
1572
1573It was created by megatools $as_me 1.10.3, which was
1574generated by GNU Autoconf 2.69.  Invocation command line was
1575
1576  $ $0 $@
1577
1578_ACEOF
1579exec 5>>config.log
1580{
1581cat <<_ASUNAME
1582## --------- ##
1583## Platform. ##
1584## --------- ##
1585
1586hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1587uname -m = `(uname -m) 2>/dev/null || echo unknown`
1588uname -r = `(uname -r) 2>/dev/null || echo unknown`
1589uname -s = `(uname -s) 2>/dev/null || echo unknown`
1590uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591
1592/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1593/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1594
1595/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1596/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1597/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1598/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1599/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1600/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1601/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1602
1603_ASUNAME
1604
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608  IFS=$as_save_IFS
1609  test -z "$as_dir" && as_dir=.
1610    $as_echo "PATH: $as_dir"
1611  done
1612IFS=$as_save_IFS
1613
1614} >&5
1615
1616cat >&5 <<_ACEOF
1617
1618
1619## ----------- ##
1620## Core tests. ##
1621## ----------- ##
1622
1623_ACEOF
1624
1625
1626# Keep a trace of the command line.
1627# Strip out --no-create and --no-recursion so they do not pile up.
1628# Strip out --silent because we don't want to record it for future runs.
1629# Also quote any args containing shell meta-characters.
1630# Make two passes to allow for proper duplicate-argument suppression.
1631ac_configure_args=
1632ac_configure_args0=
1633ac_configure_args1=
1634ac_must_keep_next=false
1635for ac_pass in 1 2
1636do
1637  for ac_arg
1638  do
1639    case $ac_arg in
1640    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642    | -silent | --silent | --silen | --sile | --sil)
1643      continue ;;
1644    *\'*)
1645      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646    esac
1647    case $ac_pass in
1648    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1649    2)
1650      as_fn_append ac_configure_args1 " '$ac_arg'"
1651      if test $ac_must_keep_next = true; then
1652	ac_must_keep_next=false # Got value, back to normal.
1653      else
1654	case $ac_arg in
1655	  *=* | --config-cache | -C | -disable-* | --disable-* \
1656	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658	  | -with-* | --with-* | -without-* | --without-* | --x)
1659	    case "$ac_configure_args0 " in
1660	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661	    esac
1662	    ;;
1663	  -* ) ac_must_keep_next=true ;;
1664	esac
1665      fi
1666      as_fn_append ac_configure_args " '$ac_arg'"
1667      ;;
1668    esac
1669  done
1670done
1671{ ac_configure_args0=; unset ac_configure_args0;}
1672{ ac_configure_args1=; unset ac_configure_args1;}
1673
1674# When interrupted or exit'd, cleanup temporary files, and complete
1675# config.log.  We remove comments because anyway the quotes in there
1676# would cause problems or look ugly.
1677# WARNING: Use '\'' to represent an apostrophe within the trap.
1678# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679trap 'exit_status=$?
1680  # Save into config.log some information that might help in debugging.
1681  {
1682    echo
1683
1684    $as_echo "## ---------------- ##
1685## Cache variables. ##
1686## ---------------- ##"
1687    echo
1688    # The following way of writing the cache mishandles newlines in values,
1689(
1690  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691    eval ac_val=\$$ac_var
1692    case $ac_val in #(
1693    *${as_nl}*)
1694      case $ac_var in #(
1695      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1696$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1697      esac
1698      case $ac_var in #(
1699      _ | IFS | as_nl) ;; #(
1700      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1701      *) { eval $ac_var=; unset $ac_var;} ;;
1702      esac ;;
1703    esac
1704  done
1705  (set) 2>&1 |
1706    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707    *${as_nl}ac_space=\ *)
1708      sed -n \
1709	"s/'\''/'\''\\\\'\'''\''/g;
1710	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711      ;; #(
1712    *)
1713      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1714      ;;
1715    esac |
1716    sort
1717)
1718    echo
1719
1720    $as_echo "## ----------------- ##
1721## Output variables. ##
1722## ----------------- ##"
1723    echo
1724    for ac_var in $ac_subst_vars
1725    do
1726      eval ac_val=\$$ac_var
1727      case $ac_val in
1728      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729      esac
1730      $as_echo "$ac_var='\''$ac_val'\''"
1731    done | sort
1732    echo
1733
1734    if test -n "$ac_subst_files"; then
1735      $as_echo "## ------------------- ##
1736## File substitutions. ##
1737## ------------------- ##"
1738      echo
1739      for ac_var in $ac_subst_files
1740      do
1741	eval ac_val=\$$ac_var
1742	case $ac_val in
1743	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744	esac
1745	$as_echo "$ac_var='\''$ac_val'\''"
1746      done | sort
1747      echo
1748    fi
1749
1750    if test -s confdefs.h; then
1751      $as_echo "## ----------- ##
1752## confdefs.h. ##
1753## ----------- ##"
1754      echo
1755      cat confdefs.h
1756      echo
1757    fi
1758    test "$ac_signal" != 0 &&
1759      $as_echo "$as_me: caught signal $ac_signal"
1760    $as_echo "$as_me: exit $exit_status"
1761  } >&5
1762  rm -f core *.core core.conftest.* &&
1763    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1764    exit $exit_status
1765' 0
1766for ac_signal in 1 2 13 15; do
1767  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1768done
1769ac_signal=0
1770
1771# confdefs.h avoids OS command line length limits that DEFS can exceed.
1772rm -f -r conftest* confdefs.h
1773
1774$as_echo "/* confdefs.h */" > confdefs.h
1775
1776# Predefined preprocessor variables.
1777
1778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_NAME "$PACKAGE_NAME"
1780_ACEOF
1781
1782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784_ACEOF
1785
1786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_VERSION "$PACKAGE_VERSION"
1788_ACEOF
1789
1790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_STRING "$PACKAGE_STRING"
1792_ACEOF
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796_ACEOF
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_URL "$PACKAGE_URL"
1800_ACEOF
1801
1802
1803# Let the site file select an alternate cache file if it wants to.
1804# Prefer an explicitly selected file to automatically selected ones.
1805ac_site_file1=NONE
1806ac_site_file2=NONE
1807if test -n "$CONFIG_SITE"; then
1808  # We do not want a PATH search for config.site.
1809  case $CONFIG_SITE in #((
1810    -*)  ac_site_file1=./$CONFIG_SITE;;
1811    */*) ac_site_file1=$CONFIG_SITE;;
1812    *)   ac_site_file1=./$CONFIG_SITE;;
1813  esac
1814elif test "x$prefix" != xNONE; then
1815  ac_site_file1=$prefix/share/config.site
1816  ac_site_file2=$prefix/etc/config.site
1817else
1818  ac_site_file1=$ac_default_prefix/share/config.site
1819  ac_site_file2=$ac_default_prefix/etc/config.site
1820fi
1821for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1822do
1823  test "x$ac_site_file" = xNONE && continue
1824  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1826$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1827    sed 's/^/| /' "$ac_site_file" >&5
1828    . "$ac_site_file" \
1829      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831as_fn_error $? "failed to load site script $ac_site_file
1832See \`config.log' for more details" "$LINENO" 5; }
1833  fi
1834done
1835
1836if test -r "$cache_file"; then
1837  # Some versions of bash will fail to source /dev/null (special files
1838  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1839  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1841$as_echo "$as_me: loading cache $cache_file" >&6;}
1842    case $cache_file in
1843      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844      *)                      . "./$cache_file";;
1845    esac
1846  fi
1847else
1848  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1849$as_echo "$as_me: creating cache $cache_file" >&6;}
1850  >$cache_file
1851fi
1852
1853# Check that the precious variables saved in the cache have kept the same
1854# value.
1855ac_cache_corrupted=false
1856for ac_var in $ac_precious_vars; do
1857  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858  eval ac_new_set=\$ac_env_${ac_var}_set
1859  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860  eval ac_new_val=\$ac_env_${ac_var}_value
1861  case $ac_old_set,$ac_new_set in
1862    set,)
1863      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865      ac_cache_corrupted=: ;;
1866    ,set)
1867      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1868$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869      ac_cache_corrupted=: ;;
1870    ,);;
1871    *)
1872      if test "x$ac_old_val" != "x$ac_new_val"; then
1873	# differences in whitespace do not lead to failure.
1874	ac_old_val_w=`echo x $ac_old_val`
1875	ac_new_val_w=`echo x $ac_new_val`
1876	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1877	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1878$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879	  ac_cache_corrupted=:
1880	else
1881	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1882$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1883	  eval $ac_var=\$ac_old_val
1884	fi
1885	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1886$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1887	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1888$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1889      fi;;
1890  esac
1891  # Pass precious variables to config.status.
1892  if test "$ac_new_set" = set; then
1893    case $ac_new_val in
1894    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895    *) ac_arg=$ac_var=$ac_new_val ;;
1896    esac
1897    case " $ac_configure_args " in
1898      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1899      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1900    esac
1901  fi
1902done
1903if $ac_cache_corrupted; then
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1906  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1907$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1908  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1909fi
1910## -------------------- ##
1911## Main body of script. ##
1912## -------------------- ##
1913
1914ac_ext=c
1915ac_cpp='$CPP $CPPFLAGS'
1916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919
1920
1921
1922
1923ac_config_headers="$ac_config_headers config.h"
1924
1925am__api_version='1.16'
1926
1927ac_aux_dir=
1928for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1929  if test -f "$ac_dir/install-sh"; then
1930    ac_aux_dir=$ac_dir
1931    ac_install_sh="$ac_aux_dir/install-sh -c"
1932    break
1933  elif test -f "$ac_dir/install.sh"; then
1934    ac_aux_dir=$ac_dir
1935    ac_install_sh="$ac_aux_dir/install.sh -c"
1936    break
1937  elif test -f "$ac_dir/shtool"; then
1938    ac_aux_dir=$ac_dir
1939    ac_install_sh="$ac_aux_dir/shtool install -c"
1940    break
1941  fi
1942done
1943if test -z "$ac_aux_dir"; then
1944  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1945fi
1946
1947# These three variables are undocumented and unsupported,
1948# and are intended to be withdrawn in a future Autoconf release.
1949# They can cause serious problems if a builder's source tree is in a directory
1950# whose full name contains unusual characters.
1951ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1952ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1953ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1954
1955
1956# Find a good install program.  We prefer a C program (faster),
1957# so one script is as good as another.  But avoid the broken or
1958# incompatible versions:
1959# SysV /etc/install, /usr/sbin/install
1960# SunOS /usr/etc/install
1961# IRIX /sbin/install
1962# AIX /bin/install
1963# AmigaOS /C/install, which installs bootblocks on floppy discs
1964# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967# OS/2's system install, which has a completely different semantic
1968# ./install, which can be erroneously created by make from ./install.sh.
1969# Reject install programs that cannot install multiple files.
1970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1971$as_echo_n "checking for a BSD-compatible install... " >&6; }
1972if test -z "$INSTALL"; then
1973if ${ac_cv_path_install+:} false; then :
1974  $as_echo_n "(cached) " >&6
1975else
1976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981    # Account for people who put trailing slashes in PATH elements.
1982case $as_dir/ in #((
1983  ./ | .// | /[cC]/* | \
1984  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1985  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1986  /usr/ucb/* ) ;;
1987  *)
1988    # OSF1 and SCO ODT 3.0 have their own names for install.
1989    # Don't use installbsd from OSF since it installs stuff as root
1990    # by default.
1991    for ac_prog in ginstall scoinst install; do
1992      for ac_exec_ext in '' $ac_executable_extensions; do
1993	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1994	  if test $ac_prog = install &&
1995	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996	    # AIX install.  It has an incompatible calling convention.
1997	    :
1998	  elif test $ac_prog = install &&
1999	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000	    # program-specific install script used by HP pwplus--don't use.
2001	    :
2002	  else
2003	    rm -rf conftest.one conftest.two conftest.dir
2004	    echo one > conftest.one
2005	    echo two > conftest.two
2006	    mkdir conftest.dir
2007	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2008	      test -s conftest.one && test -s conftest.two &&
2009	      test -s conftest.dir/conftest.one &&
2010	      test -s conftest.dir/conftest.two
2011	    then
2012	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2013	      break 3
2014	    fi
2015	  fi
2016	fi
2017      done
2018    done
2019    ;;
2020esac
2021
2022  done
2023IFS=$as_save_IFS
2024
2025rm -rf conftest.one conftest.two conftest.dir
2026
2027fi
2028  if test "${ac_cv_path_install+set}" = set; then
2029    INSTALL=$ac_cv_path_install
2030  else
2031    # As a last resort, use the slow shell script.  Don't cache a
2032    # value for INSTALL within a source directory, because that will
2033    # break other packages using the cache if that directory is
2034    # removed, or if the value is a relative name.
2035    INSTALL=$ac_install_sh
2036  fi
2037fi
2038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2039$as_echo "$INSTALL" >&6; }
2040
2041# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2042# It thinks the first close brace ends the variable substitution.
2043test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044
2045test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046
2047test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048
2049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2050$as_echo_n "checking whether build environment is sane... " >&6; }
2051# Reject unsafe characters in $srcdir or the absolute working directory
2052# name.  Accept space and tab only in the latter.
2053am_lf='
2054'
2055case `pwd` in
2056  *[\\\"\#\$\&\'\`$am_lf]*)
2057    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2058esac
2059case $srcdir in
2060  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2061    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2062esac
2063
2064# Do 'set' in a subshell so we don't clobber the current shell's
2065# arguments.  Must try -L first in case configure is actually a
2066# symlink; some systems play weird games with the mod time of symlinks
2067# (eg FreeBSD returns the mod time of the symlink's containing
2068# directory).
2069if (
2070   am_has_slept=no
2071   for am_try in 1 2; do
2072     echo "timestamp, slept: $am_has_slept" > conftest.file
2073     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2074     if test "$*" = "X"; then
2075	# -L didn't work.
2076	set X `ls -t "$srcdir/configure" conftest.file`
2077     fi
2078     if test "$*" != "X $srcdir/configure conftest.file" \
2079	&& test "$*" != "X conftest.file $srcdir/configure"; then
2080
2081	# If neither matched, then we have a broken ls.  This can happen
2082	# if, for instance, CONFIG_SHELL is bash and it inherits a
2083	# broken ls alias from the environment.  This has actually
2084	# happened.  Such a system could not be considered "sane".
2085	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2086  alias in your environment" "$LINENO" 5
2087     fi
2088     if test "$2" = conftest.file || test $am_try -eq 2; then
2089       break
2090     fi
2091     # Just in case.
2092     sleep 1
2093     am_has_slept=yes
2094   done
2095   test "$2" = conftest.file
2096   )
2097then
2098   # Ok.
2099   :
2100else
2101   as_fn_error $? "newly created file is older than distributed files!
2102Check your system clock" "$LINENO" 5
2103fi
2104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2105$as_echo "yes" >&6; }
2106# If we didn't sleep, we still need to ensure time stamps of config.status and
2107# generated files are strictly newer.
2108am_sleep_pid=
2109if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2110  ( sleep 1 ) &
2111  am_sleep_pid=$!
2112fi
2113
2114rm -f conftest.file
2115
2116test "$program_prefix" != NONE &&
2117  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2118# Use a double $ so make ignores it.
2119test "$program_suffix" != NONE &&
2120  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2121# Double any \ or $.
2122# By default was `s,x,x', remove it if useless.
2123ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2124program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2125
2126# Expand $ac_aux_dir to an absolute path.
2127am_aux_dir=`cd "$ac_aux_dir" && pwd`
2128
2129if test x"${MISSING+set}" != xset; then
2130  case $am_aux_dir in
2131  *\ * | *\	*)
2132    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2133  *)
2134    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2135  esac
2136fi
2137# Use eval to expand $SHELL
2138if eval "$MISSING --is-lightweight"; then
2139  am_missing_run="$MISSING "
2140else
2141  am_missing_run=
2142  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2143$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2144fi
2145
2146if test x"${install_sh+set}" != xset; then
2147  case $am_aux_dir in
2148  *\ * | *\	*)
2149    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2150  *)
2151    install_sh="\${SHELL} $am_aux_dir/install-sh"
2152  esac
2153fi
2154
2155# Installed binaries are usually stripped using 'strip' when the user
2156# run "make install-strip".  However 'strip' might not be the right
2157# tool to use in cross-compilation environments, therefore Automake
2158# will honor the 'STRIP' environment variable to overrule this program.
2159if test "$cross_compiling" != no; then
2160  if test -n "$ac_tool_prefix"; then
2161  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2162set dummy ${ac_tool_prefix}strip; ac_word=$2
2163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2164$as_echo_n "checking for $ac_word... " >&6; }
2165if ${ac_cv_prog_STRIP+:} false; then :
2166  $as_echo_n "(cached) " >&6
2167else
2168  if test -n "$STRIP"; then
2169  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2170else
2171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172for as_dir in $PATH
2173do
2174  IFS=$as_save_IFS
2175  test -z "$as_dir" && as_dir=.
2176    for ac_exec_ext in '' $ac_executable_extensions; do
2177  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2180    break 2
2181  fi
2182done
2183  done
2184IFS=$as_save_IFS
2185
2186fi
2187fi
2188STRIP=$ac_cv_prog_STRIP
2189if test -n "$STRIP"; then
2190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2191$as_echo "$STRIP" >&6; }
2192else
2193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2194$as_echo "no" >&6; }
2195fi
2196
2197
2198fi
2199if test -z "$ac_cv_prog_STRIP"; then
2200  ac_ct_STRIP=$STRIP
2201  # Extract the first word of "strip", so it can be a program name with args.
2202set dummy strip; ac_word=$2
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2204$as_echo_n "checking for $ac_word... " >&6; }
2205if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2206  $as_echo_n "(cached) " >&6
2207else
2208  if test -n "$ac_ct_STRIP"; then
2209  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2210else
2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212for as_dir in $PATH
2213do
2214  IFS=$as_save_IFS
2215  test -z "$as_dir" && as_dir=.
2216    for ac_exec_ext in '' $ac_executable_extensions; do
2217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218    ac_cv_prog_ac_ct_STRIP="strip"
2219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2220    break 2
2221  fi
2222done
2223  done
2224IFS=$as_save_IFS
2225
2226fi
2227fi
2228ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2229if test -n "$ac_ct_STRIP"; then
2230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2231$as_echo "$ac_ct_STRIP" >&6; }
2232else
2233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2234$as_echo "no" >&6; }
2235fi
2236
2237  if test "x$ac_ct_STRIP" = x; then
2238    STRIP=":"
2239  else
2240    case $cross_compiling:$ac_tool_warned in
2241yes:)
2242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2244ac_tool_warned=yes ;;
2245esac
2246    STRIP=$ac_ct_STRIP
2247  fi
2248else
2249  STRIP="$ac_cv_prog_STRIP"
2250fi
2251
2252fi
2253INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2254
2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2256$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2257if test -z "$MKDIR_P"; then
2258  if ${ac_cv_path_mkdir+:} false; then :
2259  $as_echo_n "(cached) " >&6
2260else
2261  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2263do
2264  IFS=$as_save_IFS
2265  test -z "$as_dir" && as_dir=.
2266    for ac_prog in mkdir gmkdir; do
2267	 for ac_exec_ext in '' $ac_executable_extensions; do
2268	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2269	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2270	     'mkdir (GNU coreutils) '* | \
2271	     'mkdir (coreutils) '* | \
2272	     'mkdir (fileutils) '4.1*)
2273	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2274	       break 3;;
2275	   esac
2276	 done
2277       done
2278  done
2279IFS=$as_save_IFS
2280
2281fi
2282
2283  test -d ./--version && rmdir ./--version
2284  if test "${ac_cv_path_mkdir+set}" = set; then
2285    MKDIR_P="$ac_cv_path_mkdir -p"
2286  else
2287    # As a last resort, use the slow shell script.  Don't cache a
2288    # value for MKDIR_P within a source directory, because that will
2289    # break other packages using the cache if that directory is
2290    # removed, or if the value is a relative name.
2291    MKDIR_P="$ac_install_sh -d"
2292  fi
2293fi
2294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2295$as_echo "$MKDIR_P" >&6; }
2296
2297for ac_prog in gawk mawk nawk awk
2298do
2299  # Extract the first word of "$ac_prog", so it can be a program name with args.
2300set dummy $ac_prog; ac_word=$2
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2302$as_echo_n "checking for $ac_word... " >&6; }
2303if ${ac_cv_prog_AWK+:} false; then :
2304  $as_echo_n "(cached) " >&6
2305else
2306  if test -n "$AWK"; then
2307  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312  IFS=$as_save_IFS
2313  test -z "$as_dir" && as_dir=.
2314    for ac_exec_ext in '' $ac_executable_extensions; do
2315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316    ac_cv_prog_AWK="$ac_prog"
2317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2318    break 2
2319  fi
2320done
2321  done
2322IFS=$as_save_IFS
2323
2324fi
2325fi
2326AWK=$ac_cv_prog_AWK
2327if test -n "$AWK"; then
2328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2329$as_echo "$AWK" >&6; }
2330else
2331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2332$as_echo "no" >&6; }
2333fi
2334
2335
2336  test -n "$AWK" && break
2337done
2338
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2340$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2341set x ${MAKE-make}
2342ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2343if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2344  $as_echo_n "(cached) " >&6
2345else
2346  cat >conftest.make <<\_ACEOF
2347SHELL = /bin/sh
2348all:
2349	@echo '@@@%%%=$(MAKE)=@@@%%%'
2350_ACEOF
2351# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2352case `${MAKE-make} -f conftest.make 2>/dev/null` in
2353  *@@@%%%=?*=@@@%%%*)
2354    eval ac_cv_prog_make_${ac_make}_set=yes;;
2355  *)
2356    eval ac_cv_prog_make_${ac_make}_set=no;;
2357esac
2358rm -f conftest.make
2359fi
2360if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2362$as_echo "yes" >&6; }
2363  SET_MAKE=
2364else
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366$as_echo "no" >&6; }
2367  SET_MAKE="MAKE=${MAKE-make}"
2368fi
2369
2370rm -rf .tst 2>/dev/null
2371mkdir .tst 2>/dev/null
2372if test -d .tst; then
2373  am__leading_dot=.
2374else
2375  am__leading_dot=_
2376fi
2377rmdir .tst 2>/dev/null
2378
2379# Check whether --enable-silent-rules was given.
2380if test "${enable_silent_rules+set}" = set; then :
2381  enableval=$enable_silent_rules;
2382fi
2383
2384case $enable_silent_rules in # (((
2385  yes) AM_DEFAULT_VERBOSITY=0;;
2386   no) AM_DEFAULT_VERBOSITY=1;;
2387    *) AM_DEFAULT_VERBOSITY=1;;
2388esac
2389am_make=${MAKE-make}
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2391$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2392if ${am_cv_make_support_nested_variables+:} false; then :
2393  $as_echo_n "(cached) " >&6
2394else
2395  if $as_echo 'TRUE=$(BAR$(V))
2396BAR0=false
2397BAR1=true
2398V=1
2399am__doit:
2400	@$(TRUE)
2401.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2402  am_cv_make_support_nested_variables=yes
2403else
2404  am_cv_make_support_nested_variables=no
2405fi
2406fi
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2408$as_echo "$am_cv_make_support_nested_variables" >&6; }
2409if test $am_cv_make_support_nested_variables = yes; then
2410    AM_V='$(V)'
2411  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2412else
2413  AM_V=$AM_DEFAULT_VERBOSITY
2414  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2415fi
2416AM_BACKSLASH='\'
2417
2418if test "`cd $srcdir && pwd`" != "`pwd`"; then
2419  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2420  # is not polluted with repeated "-I."
2421  am__isrc=' -I$(srcdir)'
2422  # test to see if srcdir already configured
2423  if test -f $srcdir/config.status; then
2424    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2425  fi
2426fi
2427
2428# test whether we have cygpath
2429if test -z "$CYGPATH_W"; then
2430  if (cygpath --version) >/dev/null 2>/dev/null; then
2431    CYGPATH_W='cygpath -w'
2432  else
2433    CYGPATH_W=echo
2434  fi
2435fi
2436
2437
2438# Define the identity of the package.
2439 PACKAGE='megatools'
2440 VERSION='1.10.3'
2441
2442
2443cat >>confdefs.h <<_ACEOF
2444#define PACKAGE "$PACKAGE"
2445_ACEOF
2446
2447
2448cat >>confdefs.h <<_ACEOF
2449#define VERSION "$VERSION"
2450_ACEOF
2451
2452# Some tools Automake needs.
2453
2454ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2455
2456
2457AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2458
2459
2460AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2461
2462
2463AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2464
2465
2466MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2467
2468# For better backward compatibility.  To be removed once Automake 1.9.x
2469# dies out for good.  For more background, see:
2470# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2471# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2472mkdir_p='$(MKDIR_P)'
2473
2474# We need awk for the "check" target (and possibly the TAP driver).  The
2475# system "awk" is bad on some platforms.
2476# Always define AMTAR for backward compatibility.  Yes, it's still used
2477# in the wild :-(  We should find a proper way to deprecate it ...
2478AMTAR='$${TAR-tar}'
2479
2480
2481# We'll loop over all known methods to create a tar archive until one works.
2482_am_tools='gnutar  pax cpio none'
2483
2484am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2485
2486
2487
2488
2489
2490
2491# POSIX will say in a future version that running "rm -f" with no argument
2492# is OK; and we want to be able to make that assumption in our Makefile
2493# recipes.  So use an aggressive probe to check that the usage we want is
2494# actually supported "in the wild" to an acceptable degree.
2495# See automake bug#10828.
2496# To make any issue more visible, cause the running configure to be aborted
2497# by default if the 'rm' program in use doesn't match our expectations; the
2498# user can still override this though.
2499if rm -f && rm -fr && rm -rf; then : OK; else
2500  cat >&2 <<'END'
2501Oops!
2502
2503Your 'rm' program seems unable to run without file operands specified
2504on the command line, even when the '-f' option is present.  This is contrary
2505to the behaviour of most rm programs out there, and not conforming with
2506the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2507
2508Please tell bug-automake@gnu.org about your system, including the value
2509of your $PATH and any error possibly output before this message.  This
2510can help us improve future automake versions.
2511
2512END
2513  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2514    echo 'Configuration will proceed anyway, since you have set the' >&2
2515    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2516    echo >&2
2517  else
2518    cat >&2 <<'END'
2519Aborting the configuration process, to ensure you take notice of the issue.
2520
2521You can download and install GNU coreutils to get an 'rm' implementation
2522that behaves properly: <https://www.gnu.org/software/coreutils/>.
2523
2524If you want to complete the configuration process using your problematic
2525'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2526to "yes", and re-run configure.
2527
2528END
2529    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2530  fi
2531fi
2532
2533
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2535$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2536    # Check whether --enable-maintainer-mode was given.
2537if test "${enable_maintainer_mode+set}" = set; then :
2538  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2539else
2540  USE_MAINTAINER_MODE=no
2541fi
2542
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2544$as_echo "$USE_MAINTAINER_MODE" >&6; }
2545   if test $USE_MAINTAINER_MODE = yes; then
2546  MAINTAINER_MODE_TRUE=
2547  MAINTAINER_MODE_FALSE='#'
2548else
2549  MAINTAINER_MODE_TRUE='#'
2550  MAINTAINER_MODE_FALSE=
2551fi
2552
2553  MAINT=$MAINTAINER_MODE_TRUE
2554
2555
2556# Check whether --enable-silent-rules was given.
2557if test "${enable_silent_rules+set}" = set; then :
2558  enableval=$enable_silent_rules;
2559fi
2560
2561case $enable_silent_rules in # (((
2562  yes) AM_DEFAULT_VERBOSITY=0;;
2563   no) AM_DEFAULT_VERBOSITY=1;;
2564    *) AM_DEFAULT_VERBOSITY=0;;
2565esac
2566am_make=${MAKE-make}
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2568$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2569if ${am_cv_make_support_nested_variables+:} false; then :
2570  $as_echo_n "(cached) " >&6
2571else
2572  if $as_echo 'TRUE=$(BAR$(V))
2573BAR0=false
2574BAR1=true
2575V=1
2576am__doit:
2577	@$(TRUE)
2578.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2579  am_cv_make_support_nested_variables=yes
2580else
2581  am_cv_make_support_nested_variables=no
2582fi
2583fi
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2585$as_echo "$am_cv_make_support_nested_variables" >&6; }
2586if test $am_cv_make_support_nested_variables = yes; then
2587    AM_V='$(V)'
2588  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2589else
2590  AM_V=$AM_DEFAULT_VERBOSITY
2591  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2592fi
2593AM_BACKSLASH='\'
2594
2595
2596ac_ext=c
2597ac_cpp='$CPP $CPPFLAGS'
2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601if test -n "$ac_tool_prefix"; then
2602  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2603set dummy ${ac_tool_prefix}gcc; ac_word=$2
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605$as_echo_n "checking for $ac_word... " >&6; }
2606if ${ac_cv_prog_CC+:} false; then :
2607  $as_echo_n "(cached) " >&6
2608else
2609  if test -n "$CC"; then
2610  ac_cv_prog_CC="$CC" # Let the user override the test.
2611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615  IFS=$as_save_IFS
2616  test -z "$as_dir" && as_dir=.
2617    for ac_exec_ext in '' $ac_executable_extensions; do
2618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621    break 2
2622  fi
2623done
2624  done
2625IFS=$as_save_IFS
2626
2627fi
2628fi
2629CC=$ac_cv_prog_CC
2630if test -n "$CC"; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632$as_echo "$CC" >&6; }
2633else
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635$as_echo "no" >&6; }
2636fi
2637
2638
2639fi
2640if test -z "$ac_cv_prog_CC"; then
2641  ac_ct_CC=$CC
2642  # Extract the first word of "gcc", so it can be a program name with args.
2643set dummy gcc; ac_word=$2
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645$as_echo_n "checking for $ac_word... " >&6; }
2646if ${ac_cv_prog_ac_ct_CC+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  if test -n "$ac_ct_CC"; then
2650  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655  IFS=$as_save_IFS
2656  test -z "$as_dir" && as_dir=.
2657    for ac_exec_ext in '' $ac_executable_extensions; do
2658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659    ac_cv_prog_ac_ct_CC="gcc"
2660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661    break 2
2662  fi
2663done
2664  done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669ac_ct_CC=$ac_cv_prog_ac_ct_CC
2670if test -n "$ac_ct_CC"; then
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2672$as_echo "$ac_ct_CC" >&6; }
2673else
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678  if test "x$ac_ct_CC" = x; then
2679    CC=""
2680  else
2681    case $cross_compiling:$ac_tool_warned in
2682yes:)
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685ac_tool_warned=yes ;;
2686esac
2687    CC=$ac_ct_CC
2688  fi
2689else
2690  CC="$ac_cv_prog_CC"
2691fi
2692
2693if test -z "$CC"; then
2694          if test -n "$ac_tool_prefix"; then
2695    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2696set dummy ${ac_tool_prefix}cc; ac_word=$2
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698$as_echo_n "checking for $ac_word... " >&6; }
2699if ${ac_cv_prog_CC+:} false; then :
2700  $as_echo_n "(cached) " >&6
2701else
2702  if test -n "$CC"; then
2703  ac_cv_prog_CC="$CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  test -z "$as_dir" && as_dir=.
2710    for ac_exec_ext in '' $ac_executable_extensions; do
2711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712    ac_cv_prog_CC="${ac_tool_prefix}cc"
2713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714    break 2
2715  fi
2716done
2717  done
2718IFS=$as_save_IFS
2719
2720fi
2721fi
2722CC=$ac_cv_prog_CC
2723if test -n "$CC"; then
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725$as_echo "$CC" >&6; }
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728$as_echo "no" >&6; }
2729fi
2730
2731
2732  fi
2733fi
2734if test -z "$CC"; then
2735  # Extract the first word of "cc", so it can be a program name with args.
2736set dummy cc; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
2739if ${ac_cv_prog_CC+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  if test -n "$CC"; then
2743  ac_cv_prog_CC="$CC" # Let the user override the test.
2744else
2745  ac_prog_rejected=no
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  test -z "$as_dir" && as_dir=.
2751    for ac_exec_ext in '' $ac_executable_extensions; do
2752  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2754       ac_prog_rejected=yes
2755       continue
2756     fi
2757    ac_cv_prog_CC="cc"
2758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762  done
2763IFS=$as_save_IFS
2764
2765if test $ac_prog_rejected = yes; then
2766  # We found a bogon in the path, so make sure we never use it.
2767  set dummy $ac_cv_prog_CC
2768  shift
2769  if test $# != 0; then
2770    # We chose a different compiler from the bogus one.
2771    # However, it has the same basename, so the bogon will be chosen
2772    # first if we set CC to just the basename; use the full file name.
2773    shift
2774    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2775  fi
2776fi
2777fi
2778fi
2779CC=$ac_cv_prog_CC
2780if test -n "$CC"; then
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782$as_echo "$CC" >&6; }
2783else
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785$as_echo "no" >&6; }
2786fi
2787
2788
2789fi
2790if test -z "$CC"; then
2791  if test -n "$ac_tool_prefix"; then
2792  for ac_prog in cl.exe
2793  do
2794    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797$as_echo_n "checking for $ac_word... " >&6; }
2798if ${ac_cv_prog_CC+:} false; then :
2799  $as_echo_n "(cached) " >&6
2800else
2801  if test -n "$CC"; then
2802  ac_cv_prog_CC="$CC" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807  IFS=$as_save_IFS
2808  test -z "$as_dir" && as_dir=.
2809    for ac_exec_ext in '' $ac_executable_extensions; do
2810  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2812    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816  done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824$as_echo "$CC" >&6; }
2825else
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827$as_echo "no" >&6; }
2828fi
2829
2830
2831    test -n "$CC" && break
2832  done
2833fi
2834if test -z "$CC"; then
2835  ac_ct_CC=$CC
2836  for ac_prog in cl.exe
2837do
2838  # Extract the first word of "$ac_prog", so it can be a program name with args.
2839set dummy $ac_prog; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if ${ac_cv_prog_ac_ct_CC+:} false; then :
2843  $as_echo_n "(cached) " >&6
2844else
2845  if test -n "$ac_ct_CC"; then
2846  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851  IFS=$as_save_IFS
2852  test -z "$as_dir" && as_dir=.
2853    for ac_exec_ext in '' $ac_executable_extensions; do
2854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855    ac_cv_prog_ac_ct_CC="$ac_prog"
2856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857    break 2
2858  fi
2859done
2860  done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865ac_ct_CC=$ac_cv_prog_ac_ct_CC
2866if test -n "$ac_ct_CC"; then
2867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2868$as_echo "$ac_ct_CC" >&6; }
2869else
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872fi
2873
2874
2875  test -n "$ac_ct_CC" && break
2876done
2877
2878  if test "x$ac_ct_CC" = x; then
2879    CC=""
2880  else
2881    case $cross_compiling:$ac_tool_warned in
2882yes:)
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887    CC=$ac_ct_CC
2888  fi
2889fi
2890
2891fi
2892
2893
2894test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896as_fn_error $? "no acceptable C compiler found in \$PATH
2897See \`config.log' for more details" "$LINENO" 5; }
2898
2899# Provide some information about the compiler.
2900$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2901set X $ac_compile
2902ac_compiler=$2
2903for ac_option in --version -v -V -qversion; do
2904  { { ac_try="$ac_compiler $ac_option >&5"
2905case "(($ac_try" in
2906  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907  *) ac_try_echo=$ac_try;;
2908esac
2909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910$as_echo "$ac_try_echo"; } >&5
2911  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2912  ac_status=$?
2913  if test -s conftest.err; then
2914    sed '10a\
2915... rest of stderr output deleted ...
2916         10q' conftest.err >conftest.er1
2917    cat conftest.er1 >&5
2918  fi
2919  rm -f conftest.er1 conftest.err
2920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921  test $ac_status = 0; }
2922done
2923
2924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925/* end confdefs.h.  */
2926
2927int
2928main ()
2929{
2930
2931  ;
2932  return 0;
2933}
2934_ACEOF
2935ac_clean_files_save=$ac_clean_files
2936ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2937# Try to create an executable without -o first, disregard a.out.
2938# It will help us diagnose broken compilers, and finding out an intuition
2939# of exeext.
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2941$as_echo_n "checking whether the C compiler works... " >&6; }
2942ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2943
2944# The possible output files:
2945ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2946
2947ac_rmfiles=
2948for ac_file in $ac_files
2949do
2950  case $ac_file in
2951    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2952    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2953  esac
2954done
2955rm -f $ac_rmfiles
2956
2957if { { ac_try="$ac_link_default"
2958case "(($ac_try" in
2959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960  *) ac_try_echo=$ac_try;;
2961esac
2962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963$as_echo "$ac_try_echo"; } >&5
2964  (eval "$ac_link_default") 2>&5
2965  ac_status=$?
2966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967  test $ac_status = 0; }; then :
2968  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2969# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2970# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2971# so that the user can short-circuit this test for compilers unknown to
2972# Autoconf.
2973for ac_file in $ac_files ''
2974do
2975  test -f "$ac_file" || continue
2976  case $ac_file in
2977    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2978	;;
2979    [ab].out )
2980	# We found the default executable, but exeext='' is most
2981	# certainly right.
2982	break;;
2983    *.* )
2984	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2985	then :; else
2986	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2987	fi
2988	# We set ac_cv_exeext here because the later test for it is not
2989	# safe: cross compilers may not add the suffix if given an `-o'
2990	# argument, so we may need to know it at that point already.
2991	# Even if this section looks crufty: it has the advantage of
2992	# actually working.
2993	break;;
2994    * )
2995	break;;
2996  esac
2997done
2998test "$ac_cv_exeext" = no && ac_cv_exeext=
2999
3000else
3001  ac_file=''
3002fi
3003if test -z "$ac_file"; then :
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006$as_echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
3008
3009{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011as_fn_error 77 "C compiler cannot create executables
3012See \`config.log' for more details" "$LINENO" 5; }
3013else
3014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015$as_echo "yes" >&6; }
3016fi
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3018$as_echo_n "checking for C compiler default output file name... " >&6; }
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3020$as_echo "$ac_file" >&6; }
3021ac_exeext=$ac_cv_exeext
3022
3023rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3024ac_clean_files=$ac_clean_files_save
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3026$as_echo_n "checking for suffix of executables... " >&6; }
3027if { { ac_try="$ac_link"
3028case "(($ac_try" in
3029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030  *) ac_try_echo=$ac_try;;
3031esac
3032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033$as_echo "$ac_try_echo"; } >&5
3034  (eval "$ac_link") 2>&5
3035  ac_status=$?
3036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037  test $ac_status = 0; }; then :
3038  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3039# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3040# work properly (i.e., refer to `conftest.exe'), while it won't with
3041# `rm'.
3042for ac_file in conftest.exe conftest conftest.*; do
3043  test -f "$ac_file" || continue
3044  case $ac_file in
3045    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3046    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047	  break;;
3048    * ) break;;
3049  esac
3050done
3051else
3052  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3055See \`config.log' for more details" "$LINENO" 5; }
3056fi
3057rm -f conftest conftest$ac_cv_exeext
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3059$as_echo "$ac_cv_exeext" >&6; }
3060
3061rm -f conftest.$ac_ext
3062EXEEXT=$ac_cv_exeext
3063ac_exeext=$EXEEXT
3064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065/* end confdefs.h.  */
3066#include <stdio.h>
3067int
3068main ()
3069{
3070FILE *f = fopen ("conftest.out", "w");
3071 return ferror (f) || fclose (f) != 0;
3072
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077ac_clean_files="$ac_clean_files conftest.out"
3078# Check that the compiler produces executables we can run.  If not, either
3079# the compiler is broken, or we cross compile.
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3081$as_echo_n "checking whether we are cross compiling... " >&6; }
3082if test "$cross_compiling" != yes; then
3083  { { ac_try="$ac_link"
3084case "(($ac_try" in
3085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086  *) ac_try_echo=$ac_try;;
3087esac
3088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089$as_echo "$ac_try_echo"; } >&5
3090  (eval "$ac_link") 2>&5
3091  ac_status=$?
3092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093  test $ac_status = 0; }
3094  if { ac_try='./conftest$ac_cv_exeext'
3095  { { case "(($ac_try" in
3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097  *) ac_try_echo=$ac_try;;
3098esac
3099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100$as_echo "$ac_try_echo"; } >&5
3101  (eval "$ac_try") 2>&5
3102  ac_status=$?
3103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104  test $ac_status = 0; }; }; then
3105    cross_compiling=no
3106  else
3107    if test "$cross_compiling" = maybe; then
3108	cross_compiling=yes
3109    else
3110	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112as_fn_error $? "cannot run C compiled programs.
3113If you meant to cross compile, use \`--host'.
3114See \`config.log' for more details" "$LINENO" 5; }
3115    fi
3116  fi
3117fi
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3119$as_echo "$cross_compiling" >&6; }
3120
3121rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3122ac_clean_files=$ac_clean_files_save
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3124$as_echo_n "checking for suffix of object files... " >&6; }
3125if ${ac_cv_objext+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129/* end confdefs.h.  */
3130
3131int
3132main ()
3133{
3134
3135  ;
3136  return 0;
3137}
3138_ACEOF
3139rm -f conftest.o conftest.obj
3140if { { ac_try="$ac_compile"
3141case "(($ac_try" in
3142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143  *) ac_try_echo=$ac_try;;
3144esac
3145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146$as_echo "$ac_try_echo"; } >&5
3147  (eval "$ac_compile") 2>&5
3148  ac_status=$?
3149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150  test $ac_status = 0; }; then :
3151  for ac_file in conftest.o conftest.obj conftest.*; do
3152  test -f "$ac_file" || continue;
3153  case $ac_file in
3154    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3155    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3156       break;;
3157  esac
3158done
3159else
3160  $as_echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165as_fn_error $? "cannot compute suffix of object files: cannot compile
3166See \`config.log' for more details" "$LINENO" 5; }
3167fi
3168rm -f conftest.$ac_cv_objext conftest.$ac_ext
3169fi
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3171$as_echo "$ac_cv_objext" >&6; }
3172OBJEXT=$ac_cv_objext
3173ac_objext=$OBJEXT
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3175$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3176if ${ac_cv_c_compiler_gnu+:} false; then :
3177  $as_echo_n "(cached) " >&6
3178else
3179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185#ifndef __GNUC__
3186       choke me
3187#endif
3188
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193if ac_fn_c_try_compile "$LINENO"; then :
3194  ac_compiler_gnu=yes
3195else
3196  ac_compiler_gnu=no
3197fi
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199ac_cv_c_compiler_gnu=$ac_compiler_gnu
3200
3201fi
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3203$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3204if test $ac_compiler_gnu = yes; then
3205  GCC=yes
3206else
3207  GCC=
3208fi
3209ac_test_CFLAGS=${CFLAGS+set}
3210ac_save_CFLAGS=$CFLAGS
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3212$as_echo_n "checking whether $CC accepts -g... " >&6; }
3213if ${ac_cv_prog_cc_g+:} false; then :
3214  $as_echo_n "(cached) " >&6
3215else
3216  ac_save_c_werror_flag=$ac_c_werror_flag
3217   ac_c_werror_flag=yes
3218   ac_cv_prog_cc_g=no
3219   CFLAGS="-g"
3220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h.  */
3222
3223int
3224main ()
3225{
3226
3227  ;
3228  return 0;
3229}
3230_ACEOF
3231if ac_fn_c_try_compile "$LINENO"; then :
3232  ac_cv_prog_cc_g=yes
3233else
3234  CFLAGS=""
3235      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236/* end confdefs.h.  */
3237
3238int
3239main ()
3240{
3241
3242  ;
3243  return 0;
3244}
3245_ACEOF
3246if ac_fn_c_try_compile "$LINENO"; then :
3247
3248else
3249  ac_c_werror_flag=$ac_save_c_werror_flag
3250	 CFLAGS="-g"
3251	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253
3254int
3255main ()
3256{
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262if ac_fn_c_try_compile "$LINENO"; then :
3263  ac_cv_prog_cc_g=yes
3264fi
3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266fi
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268fi
3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270   ac_c_werror_flag=$ac_save_c_werror_flag
3271fi
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3273$as_echo "$ac_cv_prog_cc_g" >&6; }
3274if test "$ac_test_CFLAGS" = set; then
3275  CFLAGS=$ac_save_CFLAGS
3276elif test $ac_cv_prog_cc_g = yes; then
3277  if test "$GCC" = yes; then
3278    CFLAGS="-g -O2"
3279  else
3280    CFLAGS="-g"
3281  fi
3282else
3283  if test "$GCC" = yes; then
3284    CFLAGS="-O2"
3285  else
3286    CFLAGS=
3287  fi
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3290$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3291if ${ac_cv_prog_cc_c89+:} false; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  ac_cv_prog_cc_c89=no
3295ac_save_CC=$CC
3296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297/* end confdefs.h.  */
3298#include <stdarg.h>
3299#include <stdio.h>
3300struct stat;
3301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3302struct buf { int x; };
3303FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304static char *e (p, i)
3305     char **p;
3306     int i;
3307{
3308  return p[i];
3309}
3310static char *f (char * (*g) (char **, int), char **p, ...)
3311{
3312  char *s;
3313  va_list v;
3314  va_start (v,p);
3315  s = g (p, va_arg (v,int));
3316  va_end (v);
3317  return s;
3318}
3319
3320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3321   function prototypes and stuff, but not '\xHH' hex character constants.
3322   These don't provoke an error unfortunately, instead are silently treated
3323   as 'x'.  The following induces an error, until -std is added to get
3324   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3325   array size at least.  It's necessary to write '\x00'==0 to get something
3326   that's true only with -std.  */
3327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3328
3329/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3330   inside strings and character constants.  */
3331#define FOO(x) 'x'
3332int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3333
3334int test (int i, double x);
3335struct s1 {int (*f) (int a);};
3336struct s2 {int (*f) (double a);};
3337int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3338int argc;
3339char **argv;
3340int
3341main ()
3342{
3343return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3344  ;
3345  return 0;
3346}
3347_ACEOF
3348for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3349	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3350do
3351  CC="$ac_save_CC $ac_arg"
3352  if ac_fn_c_try_compile "$LINENO"; then :
3353  ac_cv_prog_cc_c89=$ac_arg
3354fi
3355rm -f core conftest.err conftest.$ac_objext
3356  test "x$ac_cv_prog_cc_c89" != "xno" && break
3357done
3358rm -f conftest.$ac_ext
3359CC=$ac_save_CC
3360
3361fi
3362# AC_CACHE_VAL
3363case "x$ac_cv_prog_cc_c89" in
3364  x)
3365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3366$as_echo "none needed" >&6; } ;;
3367  xno)
3368    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3369$as_echo "unsupported" >&6; } ;;
3370  *)
3371    CC="$CC $ac_cv_prog_cc_c89"
3372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3373$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3374esac
3375if test "x$ac_cv_prog_cc_c89" != xno; then :
3376
3377fi
3378
3379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384
3385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3391$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3392if ${am_cv_prog_cc_c_o+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406  # Make sure it works both with $CC and with simple cc.
3407  # Following AC_PROG_CC_C_O, we do the test twice because some
3408  # compilers refuse to overwrite an existing .o file with -o,
3409  # though they will create one.
3410  am_cv_prog_cc_c_o=yes
3411  for am_i in 1 2; do
3412    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3413   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } \
3417         && test -f conftest2.$ac_objext; then
3418      : OK
3419    else
3420      am_cv_prog_cc_c_o=no
3421      break
3422    fi
3423  done
3424  rm -f core conftest*
3425  unset am_i
3426fi
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3428$as_echo "$am_cv_prog_cc_c_o" >&6; }
3429if test "$am_cv_prog_cc_c_o" != yes; then
3430   # Losing compiler, so override with the script.
3431   # FIXME: It is wrong to rewrite CC.
3432   # But if we don't then we get into trouble of one sort or another.
3433   # A longer-term fix would be to have automake use am__CC in this case,
3434   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3435   CC="$am_aux_dir/compile $CC"
3436fi
3437ac_ext=c
3438ac_cpp='$CPP $CPPFLAGS'
3439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442
3443DEPDIR="${am__leading_dot}deps"
3444
3445ac_config_commands="$ac_config_commands depfiles"
3446
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3448$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3449cat > confinc.mk << 'END'
3450am__doit:
3451	@echo this is the am__doit target >confinc.out
3452.PHONY: am__doit
3453END
3454am__include="#"
3455am__quote=
3456# BSD make does it like this.
3457echo '.include "confinc.mk" # ignored' > confmf.BSD
3458# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3459echo 'include confinc.mk # ignored' > confmf.GNU
3460_am_result=no
3461for s in GNU BSD; do
3462  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3463   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }
3467  case $?:`cat confinc.out 2>/dev/null` in #(
3468  '0:this is the am__doit target') :
3469    case $s in #(
3470  BSD) :
3471    am__include='.include' am__quote='"' ;; #(
3472  *) :
3473    am__include='include' am__quote='' ;;
3474esac ;; #(
3475  *) :
3476     ;;
3477esac
3478  if test "$am__include" != "#"; then
3479    _am_result="yes ($s style)"
3480    break
3481  fi
3482done
3483rm -f confinc.* confmf.*
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3485$as_echo "${_am_result}" >&6; }
3486
3487# Check whether --enable-dependency-tracking was given.
3488if test "${enable_dependency_tracking+set}" = set; then :
3489  enableval=$enable_dependency_tracking;
3490fi
3491
3492if test "x$enable_dependency_tracking" != xno; then
3493  am_depcomp="$ac_aux_dir/depcomp"
3494  AMDEPBACKSLASH='\'
3495  am__nodep='_no'
3496fi
3497 if test "x$enable_dependency_tracking" != xno; then
3498  AMDEP_TRUE=
3499  AMDEP_FALSE='#'
3500else
3501  AMDEP_TRUE='#'
3502  AMDEP_FALSE=
3503fi
3504
3505
3506
3507depcc="$CC"   am_compiler_list=
3508
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3510$as_echo_n "checking dependency style of $depcc... " >&6; }
3511if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3515  # We make a subdir and do the tests there.  Otherwise we can end up
3516  # making bogus files that we don't know about and never remove.  For
3517  # instance it was reported that on HP-UX the gcc test will end up
3518  # making a dummy file named 'D' -- because '-MD' means "put the output
3519  # in D".
3520  rm -rf conftest.dir
3521  mkdir conftest.dir
3522  # Copy depcomp to subdir because otherwise we won't find it if we're
3523  # using a relative directory.
3524  cp "$am_depcomp" conftest.dir
3525  cd conftest.dir
3526  # We will build objects and dependencies in a subdirectory because
3527  # it helps to detect inapplicable dependency modes.  For instance
3528  # both Tru64's cc and ICC support -MD to output dependencies as a
3529  # side effect of compilation, but ICC will put the dependencies in
3530  # the current directory while Tru64 will put them in the object
3531  # directory.
3532  mkdir sub
3533
3534  am_cv_CC_dependencies_compiler_type=none
3535  if test "$am_compiler_list" = ""; then
3536     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3537  fi
3538  am__universal=false
3539  case " $depcc " in #(
3540     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3541     esac
3542
3543  for depmode in $am_compiler_list; do
3544    # Setup a source with many dependencies, because some compilers
3545    # like to wrap large dependency lists on column 80 (with \), and
3546    # we should not choose a depcomp mode which is confused by this.
3547    #
3548    # We need to recreate these files for each test, as the compiler may
3549    # overwrite some of them when testing with obscure command lines.
3550    # This happens at least with the AIX C compiler.
3551    : > sub/conftest.c
3552    for i in 1 2 3 4 5 6; do
3553      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3554      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3555      # Solaris 10 /bin/sh.
3556      echo '/* dummy */' > sub/conftst$i.h
3557    done
3558    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3559
3560    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3561    # mode.  It turns out that the SunPro C++ compiler does not properly
3562    # handle '-M -o', and we need to detect this.  Also, some Intel
3563    # versions had trouble with output in subdirs.
3564    am__obj=sub/conftest.${OBJEXT-o}
3565    am__minus_obj="-o $am__obj"
3566    case $depmode in
3567    gcc)
3568      # This depmode causes a compiler race in universal mode.
3569      test "$am__universal" = false || continue
3570      ;;
3571    nosideeffect)
3572      # After this tag, mechanisms are not by side-effect, so they'll
3573      # only be used when explicitly requested.
3574      if test "x$enable_dependency_tracking" = xyes; then
3575	continue
3576      else
3577	break
3578      fi
3579      ;;
3580    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3581      # This compiler won't grok '-c -o', but also, the minuso test has
3582      # not run yet.  These depmodes are late enough in the game, and
3583      # so weak that their functioning should not be impacted.
3584      am__obj=conftest.${OBJEXT-o}
3585      am__minus_obj=
3586      ;;
3587    none) break ;;
3588    esac
3589    if depmode=$depmode \
3590       source=sub/conftest.c object=$am__obj \
3591       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3592       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3593         >/dev/null 2>conftest.err &&
3594       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3595       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3596       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3597       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3598      # icc doesn't choke on unknown options, it will just issue warnings
3599      # or remarks (even with -Werror).  So we grep stderr for any message
3600      # that says an option was ignored or not supported.
3601      # When given -MP, icc 7.0 and 7.1 complain thusly:
3602      #   icc: Command line warning: ignoring option '-M'; no argument required
3603      # The diagnosis changed in icc 8.0:
3604      #   icc: Command line remark: option '-MP' not supported
3605      if (grep 'ignoring option' conftest.err ||
3606          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3607        am_cv_CC_dependencies_compiler_type=$depmode
3608        break
3609      fi
3610    fi
3611  done
3612
3613  cd ..
3614  rm -rf conftest.dir
3615else
3616  am_cv_CC_dependencies_compiler_type=none
3617fi
3618
3619fi
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3621$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3622CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3623
3624 if
3625  test "x$enable_dependency_tracking" != xno \
3626  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3627  am__fastdepCC_TRUE=
3628  am__fastdepCC_FALSE='#'
3629else
3630  am__fastdepCC_TRUE='#'
3631  am__fastdepCC_FALSE=
3632fi
3633
3634
3635if test -n "$ac_tool_prefix"; then
3636  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3637set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639$as_echo_n "checking for $ac_word... " >&6; }
3640if ${ac_cv_prog_RANLIB+:} false; then :
3641  $as_echo_n "(cached) " >&6
3642else
3643  if test -n "$RANLIB"; then
3644  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3645else
3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH
3648do
3649  IFS=$as_save_IFS
3650  test -z "$as_dir" && as_dir=.
3651    for ac_exec_ext in '' $ac_executable_extensions; do
3652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655    break 2
3656  fi
3657done
3658  done
3659IFS=$as_save_IFS
3660
3661fi
3662fi
3663RANLIB=$ac_cv_prog_RANLIB
3664if test -n "$RANLIB"; then
3665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3666$as_echo "$RANLIB" >&6; }
3667else
3668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669$as_echo "no" >&6; }
3670fi
3671
3672
3673fi
3674if test -z "$ac_cv_prog_RANLIB"; then
3675  ac_ct_RANLIB=$RANLIB
3676  # Extract the first word of "ranlib", so it can be a program name with args.
3677set dummy ranlib; ac_word=$2
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679$as_echo_n "checking for $ac_word... " >&6; }
3680if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3681  $as_echo_n "(cached) " >&6
3682else
3683  if test -n "$ac_ct_RANLIB"; then
3684  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3685else
3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687for as_dir in $PATH
3688do
3689  IFS=$as_save_IFS
3690  test -z "$as_dir" && as_dir=.
3691    for ac_exec_ext in '' $ac_executable_extensions; do
3692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693    ac_cv_prog_ac_ct_RANLIB="ranlib"
3694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695    break 2
3696  fi
3697done
3698  done
3699IFS=$as_save_IFS
3700
3701fi
3702fi
3703ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3704if test -n "$ac_ct_RANLIB"; then
3705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3706$as_echo "$ac_ct_RANLIB" >&6; }
3707else
3708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709$as_echo "no" >&6; }
3710fi
3711
3712  if test "x$ac_ct_RANLIB" = x; then
3713    RANLIB=":"
3714  else
3715    case $cross_compiling:$ac_tool_warned in
3716yes:)
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3719ac_tool_warned=yes ;;
3720esac
3721    RANLIB=$ac_ct_RANLIB
3722  fi
3723else
3724  RANLIB="$ac_cv_prog_RANLIB"
3725fi
3726
3727
3728#AC_LIBTOOL_WIN32_DLL
3729#AM_PROG_LIBTOOL
3730
3731ac_ext=c
3732ac_cpp='$CPP $CPPFLAGS'
3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3737$as_echo_n "checking how to run the C preprocessor... " >&6; }
3738# On Suns, sometimes $CPP names a directory.
3739if test -n "$CPP" && test -d "$CPP"; then
3740  CPP=
3741fi
3742if test -z "$CPP"; then
3743  if ${ac_cv_prog_CPP+:} false; then :
3744  $as_echo_n "(cached) " >&6
3745else
3746      # Double quotes because CPP needs to be expanded
3747    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3748    do
3749      ac_preproc_ok=false
3750for ac_c_preproc_warn_flag in '' yes
3751do
3752  # Use a header file that comes with gcc, so configuring glibc
3753  # with a fresh cross-compiler works.
3754  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755  # <limits.h> exists even on freestanding compilers.
3756  # On the NeXT, cc -E runs the code through the compiler's parser,
3757  # not just through cpp. "Syntax error" is here to catch this case.
3758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760#ifdef __STDC__
3761# include <limits.h>
3762#else
3763# include <assert.h>
3764#endif
3765		     Syntax error
3766_ACEOF
3767if ac_fn_c_try_cpp "$LINENO"; then :
3768
3769else
3770  # Broken: fails on valid input.
3771continue
3772fi
3773rm -f conftest.err conftest.i conftest.$ac_ext
3774
3775  # OK, works on sane cases.  Now check whether nonexistent headers
3776  # can be detected and how.
3777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h.  */
3779#include <ac_nonexistent.h>
3780_ACEOF
3781if ac_fn_c_try_cpp "$LINENO"; then :
3782  # Broken: success on invalid input.
3783continue
3784else
3785  # Passes both tests.
3786ac_preproc_ok=:
3787break
3788fi
3789rm -f conftest.err conftest.i conftest.$ac_ext
3790
3791done
3792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793rm -f conftest.i conftest.err conftest.$ac_ext
3794if $ac_preproc_ok; then :
3795  break
3796fi
3797
3798    done
3799    ac_cv_prog_CPP=$CPP
3800
3801fi
3802  CPP=$ac_cv_prog_CPP
3803else
3804  ac_cv_prog_CPP=$CPP
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3807$as_echo "$CPP" >&6; }
3808ac_preproc_ok=false
3809for ac_c_preproc_warn_flag in '' yes
3810do
3811  # Use a header file that comes with gcc, so configuring glibc
3812  # with a fresh cross-compiler works.
3813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3814  # <limits.h> exists even on freestanding compilers.
3815  # On the NeXT, cc -E runs the code through the compiler's parser,
3816  # not just through cpp. "Syntax error" is here to catch this case.
3817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819#ifdef __STDC__
3820# include <limits.h>
3821#else
3822# include <assert.h>
3823#endif
3824		     Syntax error
3825_ACEOF
3826if ac_fn_c_try_cpp "$LINENO"; then :
3827
3828else
3829  # Broken: fails on valid input.
3830continue
3831fi
3832rm -f conftest.err conftest.i conftest.$ac_ext
3833
3834  # OK, works on sane cases.  Now check whether nonexistent headers
3835  # can be detected and how.
3836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837/* end confdefs.h.  */
3838#include <ac_nonexistent.h>
3839_ACEOF
3840if ac_fn_c_try_cpp "$LINENO"; then :
3841  # Broken: success on invalid input.
3842continue
3843else
3844  # Passes both tests.
3845ac_preproc_ok=:
3846break
3847fi
3848rm -f conftest.err conftest.i conftest.$ac_ext
3849
3850done
3851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3852rm -f conftest.i conftest.err conftest.$ac_ext
3853if $ac_preproc_ok; then :
3854
3855else
3856  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3859See \`config.log' for more details" "$LINENO" 5; }
3860fi
3861
3862ac_ext=c
3863ac_cpp='$CPP $CPPFLAGS'
3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3870$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3871if ${ac_cv_path_GREP+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -z "$GREP"; then
3875  ac_path_GREP_found=false
3876  # Loop through the user's path and test for each of PROGNAME-LIST
3877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882    for ac_prog in grep ggrep; do
3883    for ac_exec_ext in '' $ac_executable_extensions; do
3884      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3885      as_fn_executable_p "$ac_path_GREP" || continue
3886# Check for GNU ac_path_GREP and select it if it is found.
3887  # Check for GNU $ac_path_GREP
3888case `"$ac_path_GREP" --version 2>&1` in
3889*GNU*)
3890  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3891*)
3892  ac_count=0
3893  $as_echo_n 0123456789 >"conftest.in"
3894  while :
3895  do
3896    cat "conftest.in" "conftest.in" >"conftest.tmp"
3897    mv "conftest.tmp" "conftest.in"
3898    cp "conftest.in" "conftest.nl"
3899    $as_echo 'GREP' >> "conftest.nl"
3900    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902    as_fn_arith $ac_count + 1 && ac_count=$as_val
3903    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3904      # Best one so far, save it but keep looking for a better one
3905      ac_cv_path_GREP="$ac_path_GREP"
3906      ac_path_GREP_max=$ac_count
3907    fi
3908    # 10*(2^10) chars as input seems more than enough
3909    test $ac_count -gt 10 && break
3910  done
3911  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3912esac
3913
3914      $ac_path_GREP_found && break 3
3915    done
3916  done
3917  done
3918IFS=$as_save_IFS
3919  if test -z "$ac_cv_path_GREP"; then
3920    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3921  fi
3922else
3923  ac_cv_path_GREP=$GREP
3924fi
3925
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3928$as_echo "$ac_cv_path_GREP" >&6; }
3929 GREP="$ac_cv_path_GREP"
3930
3931
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3933$as_echo_n "checking for egrep... " >&6; }
3934if ${ac_cv_path_EGREP+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3938   then ac_cv_path_EGREP="$GREP -E"
3939   else
3940     if test -z "$EGREP"; then
3941  ac_path_EGREP_found=false
3942  # Loop through the user's path and test for each of PROGNAME-LIST
3943  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3945do
3946  IFS=$as_save_IFS
3947  test -z "$as_dir" && as_dir=.
3948    for ac_prog in egrep; do
3949    for ac_exec_ext in '' $ac_executable_extensions; do
3950      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3951      as_fn_executable_p "$ac_path_EGREP" || continue
3952# Check for GNU ac_path_EGREP and select it if it is found.
3953  # Check for GNU $ac_path_EGREP
3954case `"$ac_path_EGREP" --version 2>&1` in
3955*GNU*)
3956  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3957*)
3958  ac_count=0
3959  $as_echo_n 0123456789 >"conftest.in"
3960  while :
3961  do
3962    cat "conftest.in" "conftest.in" >"conftest.tmp"
3963    mv "conftest.tmp" "conftest.in"
3964    cp "conftest.in" "conftest.nl"
3965    $as_echo 'EGREP' >> "conftest.nl"
3966    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3967    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3968    as_fn_arith $ac_count + 1 && ac_count=$as_val
3969    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3970      # Best one so far, save it but keep looking for a better one
3971      ac_cv_path_EGREP="$ac_path_EGREP"
3972      ac_path_EGREP_max=$ac_count
3973    fi
3974    # 10*(2^10) chars as input seems more than enough
3975    test $ac_count -gt 10 && break
3976  done
3977  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978esac
3979
3980      $ac_path_EGREP_found && break 3
3981    done
3982  done
3983  done
3984IFS=$as_save_IFS
3985  if test -z "$ac_cv_path_EGREP"; then
3986    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3987  fi
3988else
3989  ac_cv_path_EGREP=$EGREP
3990fi
3991
3992   fi
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3995$as_echo "$ac_cv_path_EGREP" >&6; }
3996 EGREP="$ac_cv_path_EGREP"
3997
3998
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4000$as_echo_n "checking for ANSI C header files... " >&6; }
4001if ${ac_cv_header_stdc+:} false; then :
4002  $as_echo_n "(cached) " >&6
4003else
4004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006#include <stdlib.h>
4007#include <stdarg.h>
4008#include <string.h>
4009#include <float.h>
4010
4011int
4012main ()
4013{
4014
4015  ;
4016  return 0;
4017}
4018_ACEOF
4019if ac_fn_c_try_compile "$LINENO"; then :
4020  ac_cv_header_stdc=yes
4021else
4022  ac_cv_header_stdc=no
4023fi
4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025
4026if test $ac_cv_header_stdc = yes; then
4027  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h.  */
4030#include <string.h>
4031
4032_ACEOF
4033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4034  $EGREP "memchr" >/dev/null 2>&1; then :
4035
4036else
4037  ac_cv_header_stdc=no
4038fi
4039rm -f conftest*
4040
4041fi
4042
4043if test $ac_cv_header_stdc = yes; then
4044  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047#include <stdlib.h>
4048
4049_ACEOF
4050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4051  $EGREP "free" >/dev/null 2>&1; then :
4052
4053else
4054  ac_cv_header_stdc=no
4055fi
4056rm -f conftest*
4057
4058fi
4059
4060if test $ac_cv_header_stdc = yes; then
4061  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4062  if test "$cross_compiling" = yes; then :
4063  :
4064else
4065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067#include <ctype.h>
4068#include <stdlib.h>
4069#if ((' ' & 0x0FF) == 0x020)
4070# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4071# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4072#else
4073# define ISLOWER(c) \
4074		   (('a' <= (c) && (c) <= 'i') \
4075		     || ('j' <= (c) && (c) <= 'r') \
4076		     || ('s' <= (c) && (c) <= 'z'))
4077# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4078#endif
4079
4080#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4081int
4082main ()
4083{
4084  int i;
4085  for (i = 0; i < 256; i++)
4086    if (XOR (islower (i), ISLOWER (i))
4087	|| toupper (i) != TOUPPER (i))
4088      return 2;
4089  return 0;
4090}
4091_ACEOF
4092if ac_fn_c_try_run "$LINENO"; then :
4093
4094else
4095  ac_cv_header_stdc=no
4096fi
4097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4098  conftest.$ac_objext conftest.beam conftest.$ac_ext
4099fi
4100
4101fi
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4104$as_echo "$ac_cv_header_stdc" >&6; }
4105if test $ac_cv_header_stdc = yes; then
4106
4107$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4108
4109fi
4110
4111
4112# Define requirements
4113
4114GLIB_VERSION="2.32.0"
4115LIBCURL_REQUIRES="libcurl"
4116OPENSSL_REQUIRES="openssl"
4117MEGA_REQUIRES="gio-2.0 >= $GLIB_VERSION $LIBCURL_REQUIRES $OPENSSL_REQUIRES"
4118
4119# for libmega.pc
4120
4121
4122# check for glib/gio
4123
4124
4125
4126
4127
4128
4129
4130if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4131	if test -n "$ac_tool_prefix"; then
4132  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4133set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135$as_echo_n "checking for $ac_word... " >&6; }
4136if ${ac_cv_path_PKG_CONFIG+:} false; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  case $PKG_CONFIG in
4140  [\\/]* | ?:[\\/]*)
4141  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4142  ;;
4143  *)
4144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH
4146do
4147  IFS=$as_save_IFS
4148  test -z "$as_dir" && as_dir=.
4149    for ac_exec_ext in '' $ac_executable_extensions; do
4150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153    break 2
4154  fi
4155done
4156  done
4157IFS=$as_save_IFS
4158
4159  ;;
4160esac
4161fi
4162PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4163if test -n "$PKG_CONFIG"; then
4164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4165$as_echo "$PKG_CONFIG" >&6; }
4166else
4167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168$as_echo "no" >&6; }
4169fi
4170
4171
4172fi
4173if test -z "$ac_cv_path_PKG_CONFIG"; then
4174  ac_pt_PKG_CONFIG=$PKG_CONFIG
4175  # Extract the first word of "pkg-config", so it can be a program name with args.
4176set dummy pkg-config; ac_word=$2
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178$as_echo_n "checking for $ac_word... " >&6; }
4179if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4180  $as_echo_n "(cached) " >&6
4181else
4182  case $ac_pt_PKG_CONFIG in
4183  [\\/]* | ?:[\\/]*)
4184  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4185  ;;
4186  *)
4187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190  IFS=$as_save_IFS
4191  test -z "$as_dir" && as_dir=.
4192    for ac_exec_ext in '' $ac_executable_extensions; do
4193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196    break 2
4197  fi
4198done
4199  done
4200IFS=$as_save_IFS
4201
4202  ;;
4203esac
4204fi
4205ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4206if test -n "$ac_pt_PKG_CONFIG"; then
4207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4208$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4209else
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
4212fi
4213
4214  if test "x$ac_pt_PKG_CONFIG" = x; then
4215    PKG_CONFIG=""
4216  else
4217    case $cross_compiling:$ac_tool_warned in
4218yes:)
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221ac_tool_warned=yes ;;
4222esac
4223    PKG_CONFIG=$ac_pt_PKG_CONFIG
4224  fi
4225else
4226  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4227fi
4228
4229fi
4230if test -n "$PKG_CONFIG"; then
4231	_pkg_min_version=0.9.0
4232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4233$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4234	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4235		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4236$as_echo "yes" >&6; }
4237	else
4238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239$as_echo "no" >&6; }
4240		PKG_CONFIG=""
4241	fi
4242fi
4243
4244pkg_failed=no
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
4246$as_echo_n "checking for GLIB... " >&6; }
4247
4248if test -n "$GLIB_CFLAGS"; then
4249    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
4250 elif test -n "$PKG_CONFIG"; then
4251    if test -n "$PKG_CONFIG" && \
4252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB_VERSION\""; } >&5
4253  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB_VERSION") 2>&5
4254  ac_status=$?
4255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256  test $ac_status = 0; }; then
4257  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= $GLIB_VERSION" 2>/dev/null`
4258		      test "x$?" != "x0" && pkg_failed=yes
4259else
4260  pkg_failed=yes
4261fi
4262 else
4263    pkg_failed=untried
4264fi
4265if test -n "$GLIB_LIBS"; then
4266    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
4267 elif test -n "$PKG_CONFIG"; then
4268    if test -n "$PKG_CONFIG" && \
4269    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB_VERSION\""; } >&5
4270  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB_VERSION") 2>&5
4271  ac_status=$?
4272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273  test $ac_status = 0; }; then
4274  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= $GLIB_VERSION" 2>/dev/null`
4275		      test "x$?" != "x0" && pkg_failed=yes
4276else
4277  pkg_failed=yes
4278fi
4279 else
4280    pkg_failed=untried
4281fi
4282
4283
4284
4285if test $pkg_failed = yes; then
4286   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287$as_echo "no" >&6; }
4288
4289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4290        _pkg_short_errors_supported=yes
4291else
4292        _pkg_short_errors_supported=no
4293fi
4294        if test $_pkg_short_errors_supported = yes; then
4295	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= $GLIB_VERSION" 2>&1`
4296        else
4297	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= $GLIB_VERSION" 2>&1`
4298        fi
4299	# Put the nasty error message in config.log where it belongs
4300	echo "$GLIB_PKG_ERRORS" >&5
4301
4302	as_fn_error $? "Package requirements (gio-2.0 >= $GLIB_VERSION) were not met:
4303
4304$GLIB_PKG_ERRORS
4305
4306Consider adjusting the PKG_CONFIG_PATH environment variable if you
4307installed software in a non-standard prefix.
4308
4309Alternatively, you may set the environment variables GLIB_CFLAGS
4310and GLIB_LIBS to avoid the need to call pkg-config.
4311See the pkg-config man page for more details." "$LINENO" 5
4312elif test $pkg_failed = untried; then
4313     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314$as_echo "no" >&6; }
4315	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4318is in your PATH or set the PKG_CONFIG environment variable to the full
4319path to pkg-config.
4320
4321Alternatively, you may set the environment variables GLIB_CFLAGS
4322and GLIB_LIBS to avoid the need to call pkg-config.
4323See the pkg-config man page for more details.
4324
4325To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4326See \`config.log' for more details" "$LINENO" 5; }
4327else
4328	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
4329	GLIB_LIBS=$pkg_cv_GLIB_LIBS
4330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4331$as_echo "yes" >&6; }
4332
4333fi
4334
4335
4336
4337# check openssl
4338
4339pkg_failed=no
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
4341$as_echo_n "checking for OPENSSL... " >&6; }
4342
4343if test -n "$OPENSSL_CFLAGS"; then
4344    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
4345 elif test -n "$PKG_CONFIG"; then
4346    if test -n "$PKG_CONFIG" && \
4347    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$OPENSSL_REQUIRES\""; } >&5
4348  ($PKG_CONFIG --exists --print-errors "$OPENSSL_REQUIRES") 2>&5
4349  ac_status=$?
4350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351  test $ac_status = 0; }; then
4352  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "$OPENSSL_REQUIRES" 2>/dev/null`
4353		      test "x$?" != "x0" && pkg_failed=yes
4354else
4355  pkg_failed=yes
4356fi
4357 else
4358    pkg_failed=untried
4359fi
4360if test -n "$OPENSSL_LIBS"; then
4361    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
4362 elif test -n "$PKG_CONFIG"; then
4363    if test -n "$PKG_CONFIG" && \
4364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$OPENSSL_REQUIRES\""; } >&5
4365  ($PKG_CONFIG --exists --print-errors "$OPENSSL_REQUIRES") 2>&5
4366  ac_status=$?
4367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368  test $ac_status = 0; }; then
4369  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "$OPENSSL_REQUIRES" 2>/dev/null`
4370		      test "x$?" != "x0" && pkg_failed=yes
4371else
4372  pkg_failed=yes
4373fi
4374 else
4375    pkg_failed=untried
4376fi
4377
4378
4379
4380if test $pkg_failed = yes; then
4381   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382$as_echo "no" >&6; }
4383
4384if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4385        _pkg_short_errors_supported=yes
4386else
4387        _pkg_short_errors_supported=no
4388fi
4389        if test $_pkg_short_errors_supported = yes; then
4390	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$OPENSSL_REQUIRES" 2>&1`
4391        else
4392	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$OPENSSL_REQUIRES" 2>&1`
4393        fi
4394	# Put the nasty error message in config.log where it belongs
4395	echo "$OPENSSL_PKG_ERRORS" >&5
4396
4397	as_fn_error $? "Package requirements ($OPENSSL_REQUIRES) were not met:
4398
4399$OPENSSL_PKG_ERRORS
4400
4401Consider adjusting the PKG_CONFIG_PATH environment variable if you
4402installed software in a non-standard prefix.
4403
4404Alternatively, you may set the environment variables OPENSSL_CFLAGS
4405and OPENSSL_LIBS to avoid the need to call pkg-config.
4406See the pkg-config man page for more details." "$LINENO" 5
4407elif test $pkg_failed = untried; then
4408     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409$as_echo "no" >&6; }
4410	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4413is in your PATH or set the PKG_CONFIG environment variable to the full
4414path to pkg-config.
4415
4416Alternatively, you may set the environment variables OPENSSL_CFLAGS
4417and OPENSSL_LIBS to avoid the need to call pkg-config.
4418See the pkg-config man page for more details.
4419
4420To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4421See \`config.log' for more details" "$LINENO" 5; }
4422else
4423	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
4424	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
4425        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426$as_echo "yes" >&6; }
4427
4428fi
4429
4430
4431
4432# check libcurl
4433
4434pkg_failed=no
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
4436$as_echo_n "checking for LIBCURL... " >&6; }
4437
4438if test -n "$LIBCURL_CFLAGS"; then
4439    pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
4440 elif test -n "$PKG_CONFIG"; then
4441    if test -n "$PKG_CONFIG" && \
4442    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBCURL_REQUIRES\""; } >&5
4443  ($PKG_CONFIG --exists --print-errors "$LIBCURL_REQUIRES") 2>&5
4444  ac_status=$?
4445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446  test $ac_status = 0; }; then
4447  pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "$LIBCURL_REQUIRES" 2>/dev/null`
4448		      test "x$?" != "x0" && pkg_failed=yes
4449else
4450  pkg_failed=yes
4451fi
4452 else
4453    pkg_failed=untried
4454fi
4455if test -n "$LIBCURL_LIBS"; then
4456    pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
4457 elif test -n "$PKG_CONFIG"; then
4458    if test -n "$PKG_CONFIG" && \
4459    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBCURL_REQUIRES\""; } >&5
4460  ($PKG_CONFIG --exists --print-errors "$LIBCURL_REQUIRES") 2>&5
4461  ac_status=$?
4462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463  test $ac_status = 0; }; then
4464  pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "$LIBCURL_REQUIRES" 2>/dev/null`
4465		      test "x$?" != "x0" && pkg_failed=yes
4466else
4467  pkg_failed=yes
4468fi
4469 else
4470    pkg_failed=untried
4471fi
4472
4473
4474
4475if test $pkg_failed = yes; then
4476   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478
4479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4480        _pkg_short_errors_supported=yes
4481else
4482        _pkg_short_errors_supported=no
4483fi
4484        if test $_pkg_short_errors_supported = yes; then
4485	        LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBCURL_REQUIRES" 2>&1`
4486        else
4487	        LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBCURL_REQUIRES" 2>&1`
4488        fi
4489	# Put the nasty error message in config.log where it belongs
4490	echo "$LIBCURL_PKG_ERRORS" >&5
4491
4492	as_fn_error $? "Package requirements ($LIBCURL_REQUIRES) were not met:
4493
4494$LIBCURL_PKG_ERRORS
4495
4496Consider adjusting the PKG_CONFIG_PATH environment variable if you
4497installed software in a non-standard prefix.
4498
4499Alternatively, you may set the environment variables LIBCURL_CFLAGS
4500and LIBCURL_LIBS to avoid the need to call pkg-config.
4501See the pkg-config man page for more details." "$LINENO" 5
4502elif test $pkg_failed = untried; then
4503     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
4505	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4507as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4508is in your PATH or set the PKG_CONFIG environment variable to the full
4509path to pkg-config.
4510
4511Alternatively, you may set the environment variables LIBCURL_CFLAGS
4512and LIBCURL_LIBS to avoid the need to call pkg-config.
4513See the pkg-config man page for more details.
4514
4515To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4516See \`config.log' for more details" "$LINENO" 5; }
4517else
4518	LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
4519	LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
4520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521$as_echo "yes" >&6; }
4522
4523fi
4524
4525
4526
4527# enable dev compiler warnings
4528# Check whether --enable-warnings was given.
4529if test "${enable_warnings+set}" = set; then :
4530  enableval=$enable_warnings;
4531fi
4532
4533if test "x$enable_warnings" = "xyes"; then :
4534
4535  CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -Wno-unused-local-typedefs -Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-initializers"
4536
4537  if $CC --version | head -n1 | grep '(GCC) 4\.8' &>/dev/null; then :
4538  CFLAGS="$CFLAGS -Wno-unused-local-typedefs"
4539fi
4540
4541else
4542
4543  CFLAGS="$CFLAGS -Wno-pointer-sign -Wno-unused-variable"
4544  enable_warnings=no
4545
4546fi
4547
4548# enable docs building
4549# Check whether --enable-docs was given.
4550if test "${enable_docs+set}" = set; then :
4551  enableval=$enable_docs;
4552fi
4553
4554 if test "x$enable_docs" != xno; then
4555  ENABLE_DOCS_TRUE=
4556  ENABLE_DOCS_FALSE='#'
4557else
4558  ENABLE_DOCS_TRUE='#'
4559  ENABLE_DOCS_FALSE=
4560fi
4561
4562if test "x$enable_docs" != "xno"; then :
4563
4564  # Extract the first word of "a2x", so it can be a program name with args.
4565set dummy a2x; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if ${ac_cv_path_A2X+:} false; then :
4569  $as_echo_n "(cached) " >&6
4570else
4571  case $A2X in
4572  [\\/]* | ?:[\\/]*)
4573  ac_cv_path_A2X="$A2X" # Let the user override the test with a path.
4574  ;;
4575  *)
4576  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581    for ac_exec_ext in '' $ac_executable_extensions; do
4582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583    ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext"
4584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585    break 2
4586  fi
4587done
4588  done
4589IFS=$as_save_IFS
4590
4591  test -z "$ac_cv_path_A2X" && ac_cv_path_A2X="no"
4592  ;;
4593esac
4594fi
4595A2X=$ac_cv_path_A2X
4596if test -n "$A2X"; then
4597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
4598$as_echo "$A2X" >&6; }
4599else
4600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
4602fi
4603
4604
4605  if test "x$A2X" = xno; then :
4606
4607    as_fn_error $? "a2x is required to build docs, install asciidoc" "$LINENO" 5
4608
4609fi
4610  enable_docs=yes
4611
4612fi
4613
4614ac_config_files="$ac_config_files Makefile"
4615
4616
4617cat >confcache <<\_ACEOF
4618# This file is a shell script that caches the results of configure
4619# tests run on this system so they can be shared between configure
4620# scripts and configure runs, see configure's option --config-cache.
4621# It is not useful on other systems.  If it contains results you don't
4622# want to keep, you may remove or edit it.
4623#
4624# config.status only pays attention to the cache file if you give it
4625# the --recheck option to rerun configure.
4626#
4627# `ac_cv_env_foo' variables (set or unset) will be overridden when
4628# loading this file, other *unset* `ac_cv_foo' will be assigned the
4629# following values.
4630
4631_ACEOF
4632
4633# The following way of writing the cache mishandles newlines in values,
4634# but we know of no workaround that is simple, portable, and efficient.
4635# So, we kill variables containing newlines.
4636# Ultrix sh set writes to stderr and can't be redirected directly,
4637# and sets the high bit in the cache file unless we assign to the vars.
4638(
4639  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4640    eval ac_val=\$$ac_var
4641    case $ac_val in #(
4642    *${as_nl}*)
4643      case $ac_var in #(
4644      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4645$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4646      esac
4647      case $ac_var in #(
4648      _ | IFS | as_nl) ;; #(
4649      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4650      *) { eval $ac_var=; unset $ac_var;} ;;
4651      esac ;;
4652    esac
4653  done
4654
4655  (set) 2>&1 |
4656    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4657    *${as_nl}ac_space=\ *)
4658      # `set' does not quote correctly, so add quotes: double-quote
4659      # substitution turns \\\\ into \\, and sed turns \\ into \.
4660      sed -n \
4661	"s/'/'\\\\''/g;
4662	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4663      ;; #(
4664    *)
4665      # `set' quotes correctly as required by POSIX, so do not add quotes.
4666      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4667      ;;
4668    esac |
4669    sort
4670) |
4671  sed '
4672     /^ac_cv_env_/b end
4673     t clear
4674     :clear
4675     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4676     t end
4677     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4678     :end' >>confcache
4679if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4680  if test -w "$cache_file"; then
4681    if test "x$cache_file" != "x/dev/null"; then
4682      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4683$as_echo "$as_me: updating cache $cache_file" >&6;}
4684      if test ! -f "$cache_file" || test -h "$cache_file"; then
4685	cat confcache >"$cache_file"
4686      else
4687        case $cache_file in #(
4688        */* | ?:*)
4689	  mv -f confcache "$cache_file"$$ &&
4690	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4691        *)
4692	  mv -f confcache "$cache_file" ;;
4693	esac
4694      fi
4695    fi
4696  else
4697    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4698$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4699  fi
4700fi
4701rm -f confcache
4702
4703test "x$prefix" = xNONE && prefix=$ac_default_prefix
4704# Let make expand exec_prefix.
4705test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4706
4707DEFS=-DHAVE_CONFIG_H
4708
4709ac_libobjs=
4710ac_ltlibobjs=
4711U=
4712for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4713  # 1. Remove the extension, and $U if already installed.
4714  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4715  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4716  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4717  #    will be set to the directory where LIBOBJS objects are built.
4718  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4719  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4720done
4721LIBOBJS=$ac_libobjs
4722
4723LTLIBOBJS=$ac_ltlibobjs
4724
4725
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4727$as_echo_n "checking that generated files are newer than configure... " >&6; }
4728   if test -n "$am_sleep_pid"; then
4729     # Hide warnings about reused PIDs.
4730     wait $am_sleep_pid 2>/dev/null
4731   fi
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4733$as_echo "done" >&6; }
4734 if test -n "$EXEEXT"; then
4735  am__EXEEXT_TRUE=
4736  am__EXEEXT_FALSE='#'
4737else
4738  am__EXEEXT_TRUE='#'
4739  am__EXEEXT_FALSE=
4740fi
4741
4742if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4743  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
4744Usually this means the macro was only invoked conditionally." "$LINENO" 5
4745fi
4746if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4747  as_fn_error $? "conditional \"AMDEP\" was never defined.
4748Usually this means the macro was only invoked conditionally." "$LINENO" 5
4749fi
4750if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4751  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4752Usually this means the macro was only invoked conditionally." "$LINENO" 5
4753fi
4754if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
4755  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
4756Usually this means the macro was only invoked conditionally." "$LINENO" 5
4757fi
4758
4759: "${CONFIG_STATUS=./config.status}"
4760ac_write_fail=0
4761ac_clean_files_save=$ac_clean_files
4762ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4764$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4765as_write_fail=0
4766cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4767#! $SHELL
4768# Generated by $as_me.
4769# Run this file to recreate the current configuration.
4770# Compiler output produced by configure, useful for debugging
4771# configure, is in config.log if it exists.
4772
4773debug=false
4774ac_cs_recheck=false
4775ac_cs_silent=false
4776
4777SHELL=\${CONFIG_SHELL-$SHELL}
4778export SHELL
4779_ASEOF
4780cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4781## -------------------- ##
4782## M4sh Initialization. ##
4783## -------------------- ##
4784
4785# Be more Bourne compatible
4786DUALCASE=1; export DUALCASE # for MKS sh
4787if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4788  emulate sh
4789  NULLCMD=:
4790  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4791  # is contrary to our usage.  Disable this feature.
4792  alias -g '${1+"$@"}'='"$@"'
4793  setopt NO_GLOB_SUBST
4794else
4795  case `(set -o) 2>/dev/null` in #(
4796  *posix*) :
4797    set -o posix ;; #(
4798  *) :
4799     ;;
4800esac
4801fi
4802
4803
4804as_nl='
4805'
4806export as_nl
4807# Printing a long string crashes Solaris 7 /usr/bin/printf.
4808as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4809as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4810as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4811# Prefer a ksh shell builtin over an external printf program on Solaris,
4812# but without wasting forks for bash or zsh.
4813if test -z "$BASH_VERSION$ZSH_VERSION" \
4814    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4815  as_echo='print -r --'
4816  as_echo_n='print -rn --'
4817elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4818  as_echo='printf %s\n'
4819  as_echo_n='printf %s'
4820else
4821  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4822    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4823    as_echo_n='/usr/ucb/echo -n'
4824  else
4825    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4826    as_echo_n_body='eval
4827      arg=$1;
4828      case $arg in #(
4829      *"$as_nl"*)
4830	expr "X$arg" : "X\\(.*\\)$as_nl";
4831	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4832      esac;
4833      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4834    '
4835    export as_echo_n_body
4836    as_echo_n='sh -c $as_echo_n_body as_echo'
4837  fi
4838  export as_echo_body
4839  as_echo='sh -c $as_echo_body as_echo'
4840fi
4841
4842# The user is always right.
4843if test "${PATH_SEPARATOR+set}" != set; then
4844  PATH_SEPARATOR=:
4845  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4846    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4847      PATH_SEPARATOR=';'
4848  }
4849fi
4850
4851
4852# IFS
4853# We need space, tab and new line, in precisely that order.  Quoting is
4854# there to prevent editors from complaining about space-tab.
4855# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4856# splitting by setting IFS to empty value.)
4857IFS=" ""	$as_nl"
4858
4859# Find who we are.  Look in the path if we contain no directory separator.
4860as_myself=
4861case $0 in #((
4862  *[\\/]* ) as_myself=$0 ;;
4863  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866  IFS=$as_save_IFS
4867  test -z "$as_dir" && as_dir=.
4868    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4869  done
4870IFS=$as_save_IFS
4871
4872     ;;
4873esac
4874# We did not find ourselves, most probably we were run as `sh COMMAND'
4875# in which case we are not to be found in the path.
4876if test "x$as_myself" = x; then
4877  as_myself=$0
4878fi
4879if test ! -f "$as_myself"; then
4880  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4881  exit 1
4882fi
4883
4884# Unset variables that we do not need and which cause bugs (e.g. in
4885# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4886# suppresses any "Segmentation fault" message there.  '((' could
4887# trigger a bug in pdksh 5.2.14.
4888for as_var in BASH_ENV ENV MAIL MAILPATH
4889do eval test x\${$as_var+set} = xset \
4890  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4891done
4892PS1='$ '
4893PS2='> '
4894PS4='+ '
4895
4896# NLS nuisances.
4897LC_ALL=C
4898export LC_ALL
4899LANGUAGE=C
4900export LANGUAGE
4901
4902# CDPATH.
4903(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4904
4905
4906# as_fn_error STATUS ERROR [LINENO LOG_FD]
4907# ----------------------------------------
4908# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4909# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4910# script with STATUS, using 1 if that was 0.
4911as_fn_error ()
4912{
4913  as_status=$1; test $as_status -eq 0 && as_status=1
4914  if test "$4"; then
4915    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4916    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4917  fi
4918  $as_echo "$as_me: error: $2" >&2
4919  as_fn_exit $as_status
4920} # as_fn_error
4921
4922
4923# as_fn_set_status STATUS
4924# -----------------------
4925# Set $? to STATUS, without forking.
4926as_fn_set_status ()
4927{
4928  return $1
4929} # as_fn_set_status
4930
4931# as_fn_exit STATUS
4932# -----------------
4933# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4934as_fn_exit ()
4935{
4936  set +e
4937  as_fn_set_status $1
4938  exit $1
4939} # as_fn_exit
4940
4941# as_fn_unset VAR
4942# ---------------
4943# Portably unset VAR.
4944as_fn_unset ()
4945{
4946  { eval $1=; unset $1;}
4947}
4948as_unset=as_fn_unset
4949# as_fn_append VAR VALUE
4950# ----------------------
4951# Append the text in VALUE to the end of the definition contained in VAR. Take
4952# advantage of any shell optimizations that allow amortized linear growth over
4953# repeated appends, instead of the typical quadratic growth present in naive
4954# implementations.
4955if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4956  eval 'as_fn_append ()
4957  {
4958    eval $1+=\$2
4959  }'
4960else
4961  as_fn_append ()
4962  {
4963    eval $1=\$$1\$2
4964  }
4965fi # as_fn_append
4966
4967# as_fn_arith ARG...
4968# ------------------
4969# Perform arithmetic evaluation on the ARGs, and store the result in the
4970# global $as_val. Take advantage of shells that can avoid forks. The arguments
4971# must be portable across $(()) and expr.
4972if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4973  eval 'as_fn_arith ()
4974  {
4975    as_val=$(( $* ))
4976  }'
4977else
4978  as_fn_arith ()
4979  {
4980    as_val=`expr "$@" || test $? -eq 1`
4981  }
4982fi # as_fn_arith
4983
4984
4985if expr a : '\(a\)' >/dev/null 2>&1 &&
4986   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4987  as_expr=expr
4988else
4989  as_expr=false
4990fi
4991
4992if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4993  as_basename=basename
4994else
4995  as_basename=false
4996fi
4997
4998if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4999  as_dirname=dirname
5000else
5001  as_dirname=false
5002fi
5003
5004as_me=`$as_basename -- "$0" ||
5005$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5006	 X"$0" : 'X\(//\)$' \| \
5007	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5008$as_echo X/"$0" |
5009    sed '/^.*\/\([^/][^/]*\)\/*$/{
5010	    s//\1/
5011	    q
5012	  }
5013	  /^X\/\(\/\/\)$/{
5014	    s//\1/
5015	    q
5016	  }
5017	  /^X\/\(\/\).*/{
5018	    s//\1/
5019	    q
5020	  }
5021	  s/.*/./; q'`
5022
5023# Avoid depending upon Character Ranges.
5024as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5025as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5026as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5027as_cr_digits='0123456789'
5028as_cr_alnum=$as_cr_Letters$as_cr_digits
5029
5030ECHO_C= ECHO_N= ECHO_T=
5031case `echo -n x` in #(((((
5032-n*)
5033  case `echo 'xy\c'` in
5034  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5035  xy)  ECHO_C='\c';;
5036  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5037       ECHO_T='	';;
5038  esac;;
5039*)
5040  ECHO_N='-n';;
5041esac
5042
5043rm -f conf$$ conf$$.exe conf$$.file
5044if test -d conf$$.dir; then
5045  rm -f conf$$.dir/conf$$.file
5046else
5047  rm -f conf$$.dir
5048  mkdir conf$$.dir 2>/dev/null
5049fi
5050if (echo >conf$$.file) 2>/dev/null; then
5051  if ln -s conf$$.file conf$$ 2>/dev/null; then
5052    as_ln_s='ln -s'
5053    # ... but there are two gotchas:
5054    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5055    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5056    # In both cases, we have to default to `cp -pR'.
5057    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5058      as_ln_s='cp -pR'
5059  elif ln conf$$.file conf$$ 2>/dev/null; then
5060    as_ln_s=ln
5061  else
5062    as_ln_s='cp -pR'
5063  fi
5064else
5065  as_ln_s='cp -pR'
5066fi
5067rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5068rmdir conf$$.dir 2>/dev/null
5069
5070
5071# as_fn_mkdir_p
5072# -------------
5073# Create "$as_dir" as a directory, including parents if necessary.
5074as_fn_mkdir_p ()
5075{
5076
5077  case $as_dir in #(
5078  -*) as_dir=./$as_dir;;
5079  esac
5080  test -d "$as_dir" || eval $as_mkdir_p || {
5081    as_dirs=
5082    while :; do
5083      case $as_dir in #(
5084      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5085      *) as_qdir=$as_dir;;
5086      esac
5087      as_dirs="'$as_qdir' $as_dirs"
5088      as_dir=`$as_dirname -- "$as_dir" ||
5089$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5090	 X"$as_dir" : 'X\(//\)[^/]' \| \
5091	 X"$as_dir" : 'X\(//\)$' \| \
5092	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5093$as_echo X"$as_dir" |
5094    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5095	    s//\1/
5096	    q
5097	  }
5098	  /^X\(\/\/\)[^/].*/{
5099	    s//\1/
5100	    q
5101	  }
5102	  /^X\(\/\/\)$/{
5103	    s//\1/
5104	    q
5105	  }
5106	  /^X\(\/\).*/{
5107	    s//\1/
5108	    q
5109	  }
5110	  s/.*/./; q'`
5111      test -d "$as_dir" && break
5112    done
5113    test -z "$as_dirs" || eval "mkdir $as_dirs"
5114  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5115
5116
5117} # as_fn_mkdir_p
5118if mkdir -p . 2>/dev/null; then
5119  as_mkdir_p='mkdir -p "$as_dir"'
5120else
5121  test -d ./-p && rmdir ./-p
5122  as_mkdir_p=false
5123fi
5124
5125
5126# as_fn_executable_p FILE
5127# -----------------------
5128# Test if FILE is an executable regular file.
5129as_fn_executable_p ()
5130{
5131  test -f "$1" && test -x "$1"
5132} # as_fn_executable_p
5133as_test_x='test -x'
5134as_executable_p=as_fn_executable_p
5135
5136# Sed expression to map a string onto a valid CPP name.
5137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5138
5139# Sed expression to map a string onto a valid variable name.
5140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5141
5142
5143exec 6>&1
5144## ----------------------------------- ##
5145## Main body of $CONFIG_STATUS script. ##
5146## ----------------------------------- ##
5147_ASEOF
5148test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5149
5150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5151# Save the log message, to keep $0 and so on meaningful, and to
5152# report actual input values of CONFIG_FILES etc. instead of their
5153# values after options handling.
5154ac_log="
5155This file was extended by megatools $as_me 1.10.3, which was
5156generated by GNU Autoconf 2.69.  Invocation command line was
5157
5158  CONFIG_FILES    = $CONFIG_FILES
5159  CONFIG_HEADERS  = $CONFIG_HEADERS
5160  CONFIG_LINKS    = $CONFIG_LINKS
5161  CONFIG_COMMANDS = $CONFIG_COMMANDS
5162  $ $0 $@
5163
5164on `(hostname || uname -n) 2>/dev/null | sed 1q`
5165"
5166
5167_ACEOF
5168
5169case $ac_config_files in *"
5170"*) set x $ac_config_files; shift; ac_config_files=$*;;
5171esac
5172
5173case $ac_config_headers in *"
5174"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5175esac
5176
5177
5178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5179# Files that config.status was made for.
5180config_files="$ac_config_files"
5181config_headers="$ac_config_headers"
5182config_commands="$ac_config_commands"
5183
5184_ACEOF
5185
5186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5187ac_cs_usage="\
5188\`$as_me' instantiates files and other configuration actions
5189from templates according to the current configuration.  Unless the files
5190and actions are specified as TAGs, all are instantiated by default.
5191
5192Usage: $0 [OPTION]... [TAG]...
5193
5194  -h, --help       print this help, then exit
5195  -V, --version    print version number and configuration settings, then exit
5196      --config     print configuration, then exit
5197  -q, --quiet, --silent
5198                   do not print progress messages
5199  -d, --debug      don't remove temporary files
5200      --recheck    update $as_me by reconfiguring in the same conditions
5201      --file=FILE[:TEMPLATE]
5202                   instantiate the configuration file FILE
5203      --header=FILE[:TEMPLATE]
5204                   instantiate the configuration header FILE
5205
5206Configuration files:
5207$config_files
5208
5209Configuration headers:
5210$config_headers
5211
5212Configuration commands:
5213$config_commands
5214
5215Report bugs to <megous@megous.com>."
5216
5217_ACEOF
5218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5219ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5220ac_cs_version="\\
5221megatools config.status 1.10.3
5222configured by $0, generated by GNU Autoconf 2.69,
5223  with options \\"\$ac_cs_config\\"
5224
5225Copyright (C) 2012 Free Software Foundation, Inc.
5226This config.status script is free software; the Free Software Foundation
5227gives unlimited permission to copy, distribute and modify it."
5228
5229ac_pwd='$ac_pwd'
5230srcdir='$srcdir'
5231INSTALL='$INSTALL'
5232MKDIR_P='$MKDIR_P'
5233AWK='$AWK'
5234test -n "\$AWK" || AWK=awk
5235_ACEOF
5236
5237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5238# The default lists apply if the user does not specify any file.
5239ac_need_defaults=:
5240while test $# != 0
5241do
5242  case $1 in
5243  --*=?*)
5244    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5245    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5246    ac_shift=:
5247    ;;
5248  --*=)
5249    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5250    ac_optarg=
5251    ac_shift=:
5252    ;;
5253  *)
5254    ac_option=$1
5255    ac_optarg=$2
5256    ac_shift=shift
5257    ;;
5258  esac
5259
5260  case $ac_option in
5261  # Handling of the options.
5262  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5263    ac_cs_recheck=: ;;
5264  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5265    $as_echo "$ac_cs_version"; exit ;;
5266  --config | --confi | --conf | --con | --co | --c )
5267    $as_echo "$ac_cs_config"; exit ;;
5268  --debug | --debu | --deb | --de | --d | -d )
5269    debug=: ;;
5270  --file | --fil | --fi | --f )
5271    $ac_shift
5272    case $ac_optarg in
5273    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5274    '') as_fn_error $? "missing file argument" ;;
5275    esac
5276    as_fn_append CONFIG_FILES " '$ac_optarg'"
5277    ac_need_defaults=false;;
5278  --header | --heade | --head | --hea )
5279    $ac_shift
5280    case $ac_optarg in
5281    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5282    esac
5283    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5284    ac_need_defaults=false;;
5285  --he | --h)
5286    # Conflict between --help and --header
5287    as_fn_error $? "ambiguous option: \`$1'
5288Try \`$0 --help' for more information.";;
5289  --help | --hel | -h )
5290    $as_echo "$ac_cs_usage"; exit ;;
5291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5292  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5293    ac_cs_silent=: ;;
5294
5295  # This is an error.
5296  -*) as_fn_error $? "unrecognized option: \`$1'
5297Try \`$0 --help' for more information." ;;
5298
5299  *) as_fn_append ac_config_targets " $1"
5300     ac_need_defaults=false ;;
5301
5302  esac
5303  shift
5304done
5305
5306ac_configure_extra_args=
5307
5308if $ac_cs_silent; then
5309  exec 6>/dev/null
5310  ac_configure_extra_args="$ac_configure_extra_args --silent"
5311fi
5312
5313_ACEOF
5314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5315if \$ac_cs_recheck; then
5316  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5317  shift
5318  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5319  CONFIG_SHELL='$SHELL'
5320  export CONFIG_SHELL
5321  exec "\$@"
5322fi
5323
5324_ACEOF
5325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5326exec 5>>config.log
5327{
5328  echo
5329  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5330## Running $as_me. ##
5331_ASBOX
5332  $as_echo "$ac_log"
5333} >&5
5334
5335_ACEOF
5336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5337#
5338# INIT-COMMANDS
5339#
5340AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5341
5342_ACEOF
5343
5344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5345
5346# Handling of arguments.
5347for ac_config_target in $ac_config_targets
5348do
5349  case $ac_config_target in
5350    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5351    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5352    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5353
5354  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5355  esac
5356done
5357
5358
5359# If the user did not use the arguments to specify the items to instantiate,
5360# then the envvar interface is used.  Set only those that are not.
5361# We use the long form for the default assignment because of an extremely
5362# bizarre bug on SunOS 4.1.3.
5363if $ac_need_defaults; then
5364  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5365  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5366  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5367fi
5368
5369# Have a temporary directory for convenience.  Make it in the build tree
5370# simply because there is no reason against having it here, and in addition,
5371# creating and moving files from /tmp can sometimes cause problems.
5372# Hook for its removal unless debugging.
5373# Note that there is a small window in which the directory will not be cleaned:
5374# after its creation but before its name has been assigned to `$tmp'.
5375$debug ||
5376{
5377  tmp= ac_tmp=
5378  trap 'exit_status=$?
5379  : "${ac_tmp:=$tmp}"
5380  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5381' 0
5382  trap 'as_fn_exit 1' 1 2 13 15
5383}
5384# Create a (secure) tmp directory for tmp files.
5385
5386{
5387  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5388  test -d "$tmp"
5389}  ||
5390{
5391  tmp=./conf$$-$RANDOM
5392  (umask 077 && mkdir "$tmp")
5393} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5394ac_tmp=$tmp
5395
5396# Set up the scripts for CONFIG_FILES section.
5397# No need to generate them if there are no CONFIG_FILES.
5398# This happens for instance with `./config.status config.h'.
5399if test -n "$CONFIG_FILES"; then
5400
5401
5402ac_cr=`echo X | tr X '\015'`
5403# On cygwin, bash can eat \r inside `` if the user requested igncr.
5404# But we know of no other shell where ac_cr would be empty at this
5405# point, so we can use a bashism as a fallback.
5406if test "x$ac_cr" = x; then
5407  eval ac_cr=\$\'\\r\'
5408fi
5409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5411  ac_cs_awk_cr='\\r'
5412else
5413  ac_cs_awk_cr=$ac_cr
5414fi
5415
5416echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5417_ACEOF
5418
5419
5420{
5421  echo "cat >conf$$subs.awk <<_ACEOF" &&
5422  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5423  echo "_ACEOF"
5424} >conf$$subs.sh ||
5425  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5426ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5427ac_delim='%!_!# '
5428for ac_last_try in false false false false false :; do
5429  . ./conf$$subs.sh ||
5430    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5431
5432  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5433  if test $ac_delim_n = $ac_delim_num; then
5434    break
5435  elif $ac_last_try; then
5436    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5437  else
5438    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5439  fi
5440done
5441rm -f conf$$subs.sh
5442
5443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5444cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5445_ACEOF
5446sed -n '
5447h
5448s/^/S["/; s/!.*/"]=/
5449p
5450g
5451s/^[^!]*!//
5452:repl
5453t repl
5454s/'"$ac_delim"'$//
5455t delim
5456:nl
5457h
5458s/\(.\{148\}\)..*/\1/
5459t more1
5460s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5461p
5462n
5463b repl
5464:more1
5465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5466p
5467g
5468s/.\{148\}//
5469t nl
5470:delim
5471h
5472s/\(.\{148\}\)..*/\1/
5473t more2
5474s/["\\]/\\&/g; s/^/"/; s/$/"/
5475p
5476b
5477:more2
5478s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5479p
5480g
5481s/.\{148\}//
5482t delim
5483' <conf$$subs.awk | sed '
5484/^[^""]/{
5485  N
5486  s/\n//
5487}
5488' >>$CONFIG_STATUS || ac_write_fail=1
5489rm -f conf$$subs.awk
5490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5491_ACAWK
5492cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5493  for (key in S) S_is_set[key] = 1
5494  FS = ""
5495
5496}
5497{
5498  line = $ 0
5499  nfields = split(line, field, "@")
5500  substed = 0
5501  len = length(field[1])
5502  for (i = 2; i < nfields; i++) {
5503    key = field[i]
5504    keylen = length(key)
5505    if (S_is_set[key]) {
5506      value = S[key]
5507      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5508      len += length(value) + length(field[++i])
5509      substed = 1
5510    } else
5511      len += 1 + keylen
5512  }
5513
5514  print line
5515}
5516
5517_ACAWK
5518_ACEOF
5519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5520if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5521  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5522else
5523  cat
5524fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5525  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5526_ACEOF
5527
5528# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5529# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5530# trailing colons and then remove the whole line if VPATH becomes empty
5531# (actually we leave an empty line to preserve line numbers).
5532if test "x$srcdir" = x.; then
5533  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5534h
5535s///
5536s/^/:/
5537s/[	 ]*$/:/
5538s/:\$(srcdir):/:/g
5539s/:\${srcdir}:/:/g
5540s/:@srcdir@:/:/g
5541s/^:*//
5542s/:*$//
5543x
5544s/\(=[	 ]*\).*/\1/
5545G
5546s/\n//
5547s/^[^=]*=[	 ]*$//
5548}'
5549fi
5550
5551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5552fi # test -n "$CONFIG_FILES"
5553
5554# Set up the scripts for CONFIG_HEADERS section.
5555# No need to generate them if there are no CONFIG_HEADERS.
5556# This happens for instance with `./config.status Makefile'.
5557if test -n "$CONFIG_HEADERS"; then
5558cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5559BEGIN {
5560_ACEOF
5561
5562# Transform confdefs.h into an awk script `defines.awk', embedded as
5563# here-document in config.status, that substitutes the proper values into
5564# config.h.in to produce config.h.
5565
5566# Create a delimiter string that does not exist in confdefs.h, to ease
5567# handling of long lines.
5568ac_delim='%!_!# '
5569for ac_last_try in false false :; do
5570  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5571  if test -z "$ac_tt"; then
5572    break
5573  elif $ac_last_try; then
5574    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5575  else
5576    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5577  fi
5578done
5579
5580# For the awk script, D is an array of macro values keyed by name,
5581# likewise P contains macro parameters if any.  Preserve backslash
5582# newline sequences.
5583
5584ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5585sed -n '
5586s/.\{148\}/&'"$ac_delim"'/g
5587t rset
5588:rset
5589s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5590t def
5591d
5592:def
5593s/\\$//
5594t bsnl
5595s/["\\]/\\&/g
5596s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5597D["\1"]=" \3"/p
5598s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5599d
5600:bsnl
5601s/["\\]/\\&/g
5602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5603D["\1"]=" \3\\\\\\n"\\/p
5604t cont
5605s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5606t cont
5607d
5608:cont
5609n
5610s/.\{148\}/&'"$ac_delim"'/g
5611t clear
5612:clear
5613s/\\$//
5614t bsnlc
5615s/["\\]/\\&/g; s/^/"/; s/$/"/p
5616d
5617:bsnlc
5618s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5619b cont
5620' <confdefs.h | sed '
5621s/'"$ac_delim"'/"\\\
5622"/g' >>$CONFIG_STATUS || ac_write_fail=1
5623
5624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5625  for (key in D) D_is_set[key] = 1
5626  FS = ""
5627}
5628/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5629  line = \$ 0
5630  split(line, arg, " ")
5631  if (arg[1] == "#") {
5632    defundef = arg[2]
5633    mac1 = arg[3]
5634  } else {
5635    defundef = substr(arg[1], 2)
5636    mac1 = arg[2]
5637  }
5638  split(mac1, mac2, "(") #)
5639  macro = mac2[1]
5640  prefix = substr(line, 1, index(line, defundef) - 1)
5641  if (D_is_set[macro]) {
5642    # Preserve the white space surrounding the "#".
5643    print prefix "define", macro P[macro] D[macro]
5644    next
5645  } else {
5646    # Replace #undef with comments.  This is necessary, for example,
5647    # in the case of _POSIX_SOURCE, which is predefined and required
5648    # on some systems where configure will not decide to define it.
5649    if (defundef == "undef") {
5650      print "/*", prefix defundef, macro, "*/"
5651      next
5652    }
5653  }
5654}
5655{ print }
5656_ACAWK
5657_ACEOF
5658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5659  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5660fi # test -n "$CONFIG_HEADERS"
5661
5662
5663eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5664shift
5665for ac_tag
5666do
5667  case $ac_tag in
5668  :[FHLC]) ac_mode=$ac_tag; continue;;
5669  esac
5670  case $ac_mode$ac_tag in
5671  :[FHL]*:*);;
5672  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5673  :[FH]-) ac_tag=-:-;;
5674  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5675  esac
5676  ac_save_IFS=$IFS
5677  IFS=:
5678  set x $ac_tag
5679  IFS=$ac_save_IFS
5680  shift
5681  ac_file=$1
5682  shift
5683
5684  case $ac_mode in
5685  :L) ac_source=$1;;
5686  :[FH])
5687    ac_file_inputs=
5688    for ac_f
5689    do
5690      case $ac_f in
5691      -) ac_f="$ac_tmp/stdin";;
5692      *) # Look for the file first in the build tree, then in the source tree
5693	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5694	 # because $ac_f cannot contain `:'.
5695	 test -f "$ac_f" ||
5696	   case $ac_f in
5697	   [\\/$]*) false;;
5698	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5699	   esac ||
5700	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5701      esac
5702      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5703      as_fn_append ac_file_inputs " '$ac_f'"
5704    done
5705
5706    # Let's still pretend it is `configure' which instantiates (i.e., don't
5707    # use $as_me), people would be surprised to read:
5708    #    /* config.h.  Generated by config.status.  */
5709    configure_input='Generated from '`
5710	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5711	`' by configure.'
5712    if test x"$ac_file" != x-; then
5713      configure_input="$ac_file.  $configure_input"
5714      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5715$as_echo "$as_me: creating $ac_file" >&6;}
5716    fi
5717    # Neutralize special characters interpreted by sed in replacement strings.
5718    case $configure_input in #(
5719    *\&* | *\|* | *\\* )
5720       ac_sed_conf_input=`$as_echo "$configure_input" |
5721       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5722    *) ac_sed_conf_input=$configure_input;;
5723    esac
5724
5725    case $ac_tag in
5726    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5727      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5728    esac
5729    ;;
5730  esac
5731
5732  ac_dir=`$as_dirname -- "$ac_file" ||
5733$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5734	 X"$ac_file" : 'X\(//\)[^/]' \| \
5735	 X"$ac_file" : 'X\(//\)$' \| \
5736	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5737$as_echo X"$ac_file" |
5738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5739	    s//\1/
5740	    q
5741	  }
5742	  /^X\(\/\/\)[^/].*/{
5743	    s//\1/
5744	    q
5745	  }
5746	  /^X\(\/\/\)$/{
5747	    s//\1/
5748	    q
5749	  }
5750	  /^X\(\/\).*/{
5751	    s//\1/
5752	    q
5753	  }
5754	  s/.*/./; q'`
5755  as_dir="$ac_dir"; as_fn_mkdir_p
5756  ac_builddir=.
5757
5758case "$ac_dir" in
5759.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5760*)
5761  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5762  # A ".." for each directory in $ac_dir_suffix.
5763  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5764  case $ac_top_builddir_sub in
5765  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5766  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5767  esac ;;
5768esac
5769ac_abs_top_builddir=$ac_pwd
5770ac_abs_builddir=$ac_pwd$ac_dir_suffix
5771# for backward compatibility:
5772ac_top_builddir=$ac_top_build_prefix
5773
5774case $srcdir in
5775  .)  # We are building in place.
5776    ac_srcdir=.
5777    ac_top_srcdir=$ac_top_builddir_sub
5778    ac_abs_top_srcdir=$ac_pwd ;;
5779  [\\/]* | ?:[\\/]* )  # Absolute name.
5780    ac_srcdir=$srcdir$ac_dir_suffix;
5781    ac_top_srcdir=$srcdir
5782    ac_abs_top_srcdir=$srcdir ;;
5783  *) # Relative name.
5784    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5785    ac_top_srcdir=$ac_top_build_prefix$srcdir
5786    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5787esac
5788ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5789
5790
5791  case $ac_mode in
5792  :F)
5793  #
5794  # CONFIG_FILE
5795  #
5796
5797  case $INSTALL in
5798  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5799  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5800  esac
5801  ac_MKDIR_P=$MKDIR_P
5802  case $MKDIR_P in
5803  [\\/$]* | ?:[\\/]* ) ;;
5804  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5805  esac
5806_ACEOF
5807
5808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5809# If the template does not know about datarootdir, expand it.
5810# FIXME: This hack should be removed a few years after 2.60.
5811ac_datarootdir_hack=; ac_datarootdir_seen=
5812ac_sed_dataroot='
5813/datarootdir/ {
5814  p
5815  q
5816}
5817/@datadir@/p
5818/@docdir@/p
5819/@infodir@/p
5820/@localedir@/p
5821/@mandir@/p'
5822case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5823*datarootdir*) ac_datarootdir_seen=yes;;
5824*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5826$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5827_ACEOF
5828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5829  ac_datarootdir_hack='
5830  s&@datadir@&$datadir&g
5831  s&@docdir@&$docdir&g
5832  s&@infodir@&$infodir&g
5833  s&@localedir@&$localedir&g
5834  s&@mandir@&$mandir&g
5835  s&\\\${datarootdir}&$datarootdir&g' ;;
5836esac
5837_ACEOF
5838
5839# Neutralize VPATH when `$srcdir' = `.'.
5840# Shell code in configure.ac might set extrasub.
5841# FIXME: do we really want to maintain this feature?
5842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5843ac_sed_extra="$ac_vpsub
5844$extrasub
5845_ACEOF
5846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5847:t
5848/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5849s|@configure_input@|$ac_sed_conf_input|;t t
5850s&@top_builddir@&$ac_top_builddir_sub&;t t
5851s&@top_build_prefix@&$ac_top_build_prefix&;t t
5852s&@srcdir@&$ac_srcdir&;t t
5853s&@abs_srcdir@&$ac_abs_srcdir&;t t
5854s&@top_srcdir@&$ac_top_srcdir&;t t
5855s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5856s&@builddir@&$ac_builddir&;t t
5857s&@abs_builddir@&$ac_abs_builddir&;t t
5858s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5859s&@INSTALL@&$ac_INSTALL&;t t
5860s&@MKDIR_P@&$ac_MKDIR_P&;t t
5861$ac_datarootdir_hack
5862"
5863eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5864  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5865
5866test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5867  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5868  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5869      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5871which seems to be undefined.  Please make sure it is defined" >&5
5872$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5873which seems to be undefined.  Please make sure it is defined" >&2;}
5874
5875  rm -f "$ac_tmp/stdin"
5876  case $ac_file in
5877  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5878  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5879  esac \
5880  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5881 ;;
5882  :H)
5883  #
5884  # CONFIG_HEADER
5885  #
5886  if test x"$ac_file" != x-; then
5887    {
5888      $as_echo "/* $configure_input  */" \
5889      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5890    } >"$ac_tmp/config.h" \
5891      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5892    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5893      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5894$as_echo "$as_me: $ac_file is unchanged" >&6;}
5895    else
5896      rm -f "$ac_file"
5897      mv "$ac_tmp/config.h" "$ac_file" \
5898	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5899    fi
5900  else
5901    $as_echo "/* $configure_input  */" \
5902      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5903      || as_fn_error $? "could not create -" "$LINENO" 5
5904  fi
5905# Compute "$ac_file"'s index in $config_headers.
5906_am_arg="$ac_file"
5907_am_stamp_count=1
5908for _am_header in $config_headers :; do
5909  case $_am_header in
5910    $_am_arg | $_am_arg:* )
5911      break ;;
5912    * )
5913      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5914  esac
5915done
5916echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5917$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5918	 X"$_am_arg" : 'X\(//\)[^/]' \| \
5919	 X"$_am_arg" : 'X\(//\)$' \| \
5920	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5921$as_echo X"$_am_arg" |
5922    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5923	    s//\1/
5924	    q
5925	  }
5926	  /^X\(\/\/\)[^/].*/{
5927	    s//\1/
5928	    q
5929	  }
5930	  /^X\(\/\/\)$/{
5931	    s//\1/
5932	    q
5933	  }
5934	  /^X\(\/\).*/{
5935	    s//\1/
5936	    q
5937	  }
5938	  s/.*/./; q'`/stamp-h$_am_stamp_count
5939 ;;
5940
5941  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5942$as_echo "$as_me: executing $ac_file commands" >&6;}
5943 ;;
5944  esac
5945
5946
5947  case $ac_file$ac_mode in
5948    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5949  # Older Autoconf quotes --file arguments for eval, but not when files
5950  # are listed without --file.  Let's play safe and only enable the eval
5951  # if we detect the quoting.
5952  # TODO: see whether this extra hack can be removed once we start
5953  # requiring Autoconf 2.70 or later.
5954  case $CONFIG_FILES in #(
5955  *\'*) :
5956    eval set x "$CONFIG_FILES" ;; #(
5957  *) :
5958    set x $CONFIG_FILES ;; #(
5959  *) :
5960     ;;
5961esac
5962  shift
5963  # Used to flag and report bootstrapping failures.
5964  am_rc=0
5965  for am_mf
5966  do
5967    # Strip MF so we end up with the name of the file.
5968    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
5969    # Check whether this is an Automake generated Makefile which includes
5970    # dependency-tracking related rules and includes.
5971    # Grep'ing the whole file directly is not great: AIX grep has a line
5972    # limit of 2048, but all sed's we know have understand at least 4000.
5973    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
5974      || continue
5975    am_dirpart=`$as_dirname -- "$am_mf" ||
5976$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5977	 X"$am_mf" : 'X\(//\)[^/]' \| \
5978	 X"$am_mf" : 'X\(//\)$' \| \
5979	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5980$as_echo X"$am_mf" |
5981    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5982	    s//\1/
5983	    q
5984	  }
5985	  /^X\(\/\/\)[^/].*/{
5986	    s//\1/
5987	    q
5988	  }
5989	  /^X\(\/\/\)$/{
5990	    s//\1/
5991	    q
5992	  }
5993	  /^X\(\/\).*/{
5994	    s//\1/
5995	    q
5996	  }
5997	  s/.*/./; q'`
5998    am_filepart=`$as_basename -- "$am_mf" ||
5999$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
6000	 X"$am_mf" : 'X\(//\)$' \| \
6001	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
6002$as_echo X/"$am_mf" |
6003    sed '/^.*\/\([^/][^/]*\)\/*$/{
6004	    s//\1/
6005	    q
6006	  }
6007	  /^X\/\(\/\/\)$/{
6008	    s//\1/
6009	    q
6010	  }
6011	  /^X\/\(\/\).*/{
6012	    s//\1/
6013	    q
6014	  }
6015	  s/.*/./; q'`
6016    { echo "$as_me:$LINENO: cd "$am_dirpart" \
6017      && sed -e '/# am--include-marker/d' "$am_filepart" \
6018        | $MAKE -f - am--depfiles" >&5
6019   (cd "$am_dirpart" \
6020      && sed -e '/# am--include-marker/d' "$am_filepart" \
6021        | $MAKE -f - am--depfiles) >&5 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); } || am_rc=$?
6025  done
6026  if test $am_rc -ne 0; then
6027    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6029as_fn_error $? "Something went wrong bootstrapping makefile fragments
6030    for automatic dependency tracking.  If GNU make was not used, consider
6031    re-running the configure script with MAKE=\"gmake\" (or whatever is
6032    necessary).  You can also try re-running configure with the
6033    '--disable-dependency-tracking' option to at least be able to build
6034    the package (albeit without support for automatic dependency tracking).
6035See \`config.log' for more details" "$LINENO" 5; }
6036  fi
6037  { am_dirpart=; unset am_dirpart;}
6038  { am_filepart=; unset am_filepart;}
6039  { am_mf=; unset am_mf;}
6040  { am_rc=; unset am_rc;}
6041  rm -f conftest-deps.mk
6042}
6043 ;;
6044
6045  esac
6046done # for ac_tag
6047
6048
6049as_fn_exit 0
6050_ACEOF
6051ac_clean_files=$ac_clean_files_save
6052
6053test $ac_write_fail = 0 ||
6054  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6055
6056
6057# configure is writing to config.log, and then calls config.status.
6058# config.status does its own redirection, appending to config.log.
6059# Unfortunately, on DOS this fails, as config.log is still kept open
6060# by configure, so config.status won't be able to write to it; its
6061# output is simply discarded.  So we exec the FD to /dev/null,
6062# effectively closing config.log, so it can be properly (re)opened and
6063# appended to by config.status.  When coming back to configure, we
6064# need to make the FD available again.
6065if test "$no_create" != yes; then
6066  ac_cs_success=:
6067  ac_config_status_args=
6068  test "$silent" = yes &&
6069    ac_config_status_args="$ac_config_status_args --quiet"
6070  exec 5>/dev/null
6071  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6072  exec 5>>config.log
6073  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6074  # would make configure fail if this is the last instruction.
6075  $ac_cs_success || as_fn_exit 1
6076fi
6077if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6079$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6080fi
6081
6082
6083cat << EOF
6084
6085Configured features:
6086
6087  docs build: $enable_docs
6088  warnings: $enable_warnings
6089
6090Run make now.
6091
6092NOTE: On FreeBSD, you need to use GNU make (gmake)
6093
6094EOF
6095