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