add Makefile.in
[mediagoblin.git] / configure
CommitLineData
68a576e1
BI
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for mediagoblin 0.4.0.dev.
4#
5# Report bugs to <cwebber@gnu.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203else
204 as_have_required=no
205fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
232$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235fi; }
236IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242# neutralization value for shells without unset; and this also
243# works around shells that cannot unset nonexistent variables.
244# Preserve -v and -x to the replacement shell.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255# Admittedly, this is quite paranoid, since all the known shells bail
256# out after a failed `exec'.
257$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258exit 255
259fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and cwebber@gnu.org
269$0: about your system, including any error possibly output
270$0: before this message. Then install a modern shell, or
271$0: manually run the script under such a shell if you do
272$0: have one."
273 fi
274 exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360} # as_fn_mkdir_p
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # as_fn_arith
403
404
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409# script with STATUS, using 1 if that was 0.
410as_fn_error ()
411{
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419} # as_fn_error
420
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424else
425 as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430else
431 as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
439
440as_me=`$as_basename -- "$0" ||
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444$as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500}
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511*)
512 ECHO_N='-n';;
513esac
514
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536else
537 as_ln_s='cp -pR'
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
541
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547fi
548
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
551
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
561
562# Name of the host.
563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
578
579# Identity of this package.
580PACKAGE_NAME='mediagoblin'
581PACKAGE_TARNAME='mediagoblin'
582PACKAGE_VERSION='0.4.0.dev'
583PACKAGE_STRING='mediagoblin 0.4.0.dev'
584PACKAGE_BUGREPORT='cwebber@gnu.org'
585PACKAGE_URL=''
586
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589pkgpyexecdir
590pyexecdir
591PYTHON_EXEC_PREFIX
592pkgpythondir
593pythondir
594PYTHON_PREFIX
595POSTGRES
596SQLITE
597INSTALL_DATA
598INSTALL_SCRIPT
599INSTALL_PROGRAM
600MKDIR_P
601SPHINXBUILD
602VIRTUALENV_FLAGS
603VIRTUALENV
604PYTHON_CONFIG
605PYTHON
606target_alias
607host_alias
608build_alias
609LIBS
610ECHO_T
611ECHO_N
612ECHO_C
613DEFS
614mandir
615localedir
616libdir
617psdir
618pdfdir
619dvidir
620htmldir
621infodir
622docdir
623oldincludedir
624includedir
625localstatedir
626sharedstatedir
627sysconfdir
628datadir
629datarootdir
630libexecdir
631sbindir
632bindir
633program_transform_name
634prefix
635exec_prefix
636PACKAGE_URL
637PACKAGE_BUGREPORT
638PACKAGE_STRING
639PACKAGE_VERSION
640PACKAGE_TARNAME
641PACKAGE_NAME
642PATH_SEPARATOR
643SHELL'
644ac_subst_files=''
645ac_user_opts='
646enable_option_checking
647with_virtualenv
648'
649 ac_precious_vars='build_alias
650host_alias
651target_alias
652PYTHON
653PYTHON_CONFIG
654VIRTUALENV_FLAGS'
655
656
657# Initialize some variables set by options.
658ac_init_help=
659ac_init_version=false
660ac_unrecognized_opts=
661ac_unrecognized_sep=
662# The variables have the same names as the options, with
663# dashes changed to underlines.
664cache_file=/dev/null
665exec_prefix=NONE
666no_create=
667no_recursion=
668prefix=NONE
669program_prefix=NONE
670program_suffix=NONE
671program_transform_name=s,x,x,
672silent=
673site=
674srcdir=
675verbose=
676x_includes=NONE
677x_libraries=NONE
678
679# Installation directory options.
680# These are left unexpanded so users can "make install exec_prefix=/foo"
681# and all the variables that are supposed to be based on exec_prefix
682# by default will actually change.
683# Use braces instead of parens because sh, perl, etc. also accept them.
684# (The list follows the same order as the GNU Coding Standards.)
685bindir='${exec_prefix}/bin'
686sbindir='${exec_prefix}/sbin'
687libexecdir='${exec_prefix}/libexec'
688datarootdir='${prefix}/share'
689datadir='${datarootdir}'
690sysconfdir='${prefix}/etc'
691sharedstatedir='${prefix}/com'
692localstatedir='${prefix}/var'
693includedir='${prefix}/include'
694oldincludedir='/usr/include'
695docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
696infodir='${datarootdir}/info'
697htmldir='${docdir}'
698dvidir='${docdir}'
699pdfdir='${docdir}'
700psdir='${docdir}'
701libdir='${exec_prefix}/lib'
702localedir='${datarootdir}/locale'
703mandir='${datarootdir}/man'
704
705ac_prev=
706ac_dashdash=
707for ac_option
708do
709 # If the previous option needs an argument, assign it.
710 if test -n "$ac_prev"; then
711 eval $ac_prev=\$ac_option
712 ac_prev=
713 continue
714 fi
715
716 case $ac_option in
717 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
718 *=) ac_optarg= ;;
719 *) ac_optarg=yes ;;
720 esac
721
722 # Accept the important Cygnus configure options, so we can diagnose typos.
723
724 case $ac_dashdash$ac_option in
725 --)
726 ac_dashdash=yes ;;
727
728 -bindir | --bindir | --bindi | --bind | --bin | --bi)
729 ac_prev=bindir ;;
730 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
731 bindir=$ac_optarg ;;
732
733 -build | --build | --buil | --bui | --bu)
734 ac_prev=build_alias ;;
735 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
736 build_alias=$ac_optarg ;;
737
738 -cache-file | --cache-file | --cache-fil | --cache-fi \
739 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
740 ac_prev=cache_file ;;
741 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
742 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
743 cache_file=$ac_optarg ;;
744
745 --config-cache | -C)
746 cache_file=config.cache ;;
747
748 -datadir | --datadir | --datadi | --datad)
749 ac_prev=datadir ;;
750 -datadir=* | --datadir=* | --datadi=* | --datad=*)
751 datadir=$ac_optarg ;;
752
753 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
754 | --dataroo | --dataro | --datar)
755 ac_prev=datarootdir ;;
756 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
757 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
758 datarootdir=$ac_optarg ;;
759
760 -disable-* | --disable-*)
761 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
762 # Reject names that are not valid shell variable names.
763 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
764 as_fn_error $? "invalid feature name: $ac_useropt"
765 ac_useropt_orig=$ac_useropt
766 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
767 case $ac_user_opts in
768 *"
769"enable_$ac_useropt"
770"*) ;;
771 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
772 ac_unrecognized_sep=', ';;
773 esac
774 eval enable_$ac_useropt=no ;;
775
776 -docdir | --docdir | --docdi | --doc | --do)
777 ac_prev=docdir ;;
778 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
779 docdir=$ac_optarg ;;
780
781 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
782 ac_prev=dvidir ;;
783 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
784 dvidir=$ac_optarg ;;
785
786 -enable-* | --enable-*)
787 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
790 as_fn_error $? "invalid feature name: $ac_useropt"
791 ac_useropt_orig=$ac_useropt
792 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
793 case $ac_user_opts in
794 *"
795"enable_$ac_useropt"
796"*) ;;
797 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
798 ac_unrecognized_sep=', ';;
799 esac
800 eval enable_$ac_useropt=\$ac_optarg ;;
801
802 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
803 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
804 | --exec | --exe | --ex)
805 ac_prev=exec_prefix ;;
806 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
807 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
808 | --exec=* | --exe=* | --ex=*)
809 exec_prefix=$ac_optarg ;;
810
811 -gas | --gas | --ga | --g)
812 # Obsolete; use --with-gas.
813 with_gas=yes ;;
814
815 -help | --help | --hel | --he | -h)
816 ac_init_help=long ;;
817 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
818 ac_init_help=recursive ;;
819 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
820 ac_init_help=short ;;
821
822 -host | --host | --hos | --ho)
823 ac_prev=host_alias ;;
824 -host=* | --host=* | --hos=* | --ho=*)
825 host_alias=$ac_optarg ;;
826
827 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
828 ac_prev=htmldir ;;
829 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
830 | --ht=*)
831 htmldir=$ac_optarg ;;
832
833 -includedir | --includedir | --includedi | --included | --include \
834 | --includ | --inclu | --incl | --inc)
835 ac_prev=includedir ;;
836 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
837 | --includ=* | --inclu=* | --incl=* | --inc=*)
838 includedir=$ac_optarg ;;
839
840 -infodir | --infodir | --infodi | --infod | --info | --inf)
841 ac_prev=infodir ;;
842 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
843 infodir=$ac_optarg ;;
844
845 -libdir | --libdir | --libdi | --libd)
846 ac_prev=libdir ;;
847 -libdir=* | --libdir=* | --libdi=* | --libd=*)
848 libdir=$ac_optarg ;;
849
850 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
851 | --libexe | --libex | --libe)
852 ac_prev=libexecdir ;;
853 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
854 | --libexe=* | --libex=* | --libe=*)
855 libexecdir=$ac_optarg ;;
856
857 -localedir | --localedir | --localedi | --localed | --locale)
858 ac_prev=localedir ;;
859 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
860 localedir=$ac_optarg ;;
861
862 -localstatedir | --localstatedir | --localstatedi | --localstated \
863 | --localstate | --localstat | --localsta | --localst | --locals)
864 ac_prev=localstatedir ;;
865 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
866 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
867 localstatedir=$ac_optarg ;;
868
869 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
870 ac_prev=mandir ;;
871 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
872 mandir=$ac_optarg ;;
873
874 -nfp | --nfp | --nf)
875 # Obsolete; use --without-fp.
876 with_fp=no ;;
877
878 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
879 | --no-cr | --no-c | -n)
880 no_create=yes ;;
881
882 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
883 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
884 no_recursion=yes ;;
885
886 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
887 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
888 | --oldin | --oldi | --old | --ol | --o)
889 ac_prev=oldincludedir ;;
890 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
891 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
892 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
893 oldincludedir=$ac_optarg ;;
894
895 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
896 ac_prev=prefix ;;
897 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
898 prefix=$ac_optarg ;;
899
900 -program-prefix | --program-prefix | --program-prefi | --program-pref \
901 | --program-pre | --program-pr | --program-p)
902 ac_prev=program_prefix ;;
903 -program-prefix=* | --program-prefix=* | --program-prefi=* \
904 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
905 program_prefix=$ac_optarg ;;
906
907 -program-suffix | --program-suffix | --program-suffi | --program-suff \
908 | --program-suf | --program-su | --program-s)
909 ac_prev=program_suffix ;;
910 -program-suffix=* | --program-suffix=* | --program-suffi=* \
911 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
912 program_suffix=$ac_optarg ;;
913
914 -program-transform-name | --program-transform-name \
915 | --program-transform-nam | --program-transform-na \
916 | --program-transform-n | --program-transform- \
917 | --program-transform | --program-transfor \
918 | --program-transfo | --program-transf \
919 | --program-trans | --program-tran \
920 | --progr-tra | --program-tr | --program-t)
921 ac_prev=program_transform_name ;;
922 -program-transform-name=* | --program-transform-name=* \
923 | --program-transform-nam=* | --program-transform-na=* \
924 | --program-transform-n=* | --program-transform-=* \
925 | --program-transform=* | --program-transfor=* \
926 | --program-transfo=* | --program-transf=* \
927 | --program-trans=* | --program-tran=* \
928 | --progr-tra=* | --program-tr=* | --program-t=*)
929 program_transform_name=$ac_optarg ;;
930
931 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
932 ac_prev=pdfdir ;;
933 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
934 pdfdir=$ac_optarg ;;
935
936 -psdir | --psdir | --psdi | --psd | --ps)
937 ac_prev=psdir ;;
938 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
939 psdir=$ac_optarg ;;
940
941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
942 | -silent | --silent | --silen | --sile | --sil)
943 silent=yes ;;
944
945 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
946 ac_prev=sbindir ;;
947 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
948 | --sbi=* | --sb=*)
949 sbindir=$ac_optarg ;;
950
951 -sharedstatedir | --sharedstatedir | --sharedstatedi \
952 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
953 | --sharedst | --shareds | --shared | --share | --shar \
954 | --sha | --sh)
955 ac_prev=sharedstatedir ;;
956 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
957 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
958 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
959 | --sha=* | --sh=*)
960 sharedstatedir=$ac_optarg ;;
961
962 -site | --site | --sit)
963 ac_prev=site ;;
964 -site=* | --site=* | --sit=*)
965 site=$ac_optarg ;;
966
967 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
968 ac_prev=srcdir ;;
969 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
970 srcdir=$ac_optarg ;;
971
972 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
973 | --syscon | --sysco | --sysc | --sys | --sy)
974 ac_prev=sysconfdir ;;
975 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
976 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
977 sysconfdir=$ac_optarg ;;
978
979 -target | --target | --targe | --targ | --tar | --ta | --t)
980 ac_prev=target_alias ;;
981 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
982 target_alias=$ac_optarg ;;
983
984 -v | -verbose | --verbose | --verbos | --verbo | --verb)
985 verbose=yes ;;
986
987 -version | --version | --versio | --versi | --vers | -V)
988 ac_init_version=: ;;
989
990 -with-* | --with-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid package name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999"with_$ac_useropt"
1000"*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval with_$ac_useropt=\$ac_optarg ;;
1005
1006 -without-* | --without-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid package name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"with_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval with_$ac_useropt=no ;;
1021
1022 --x)
1023 # Obsolete; use --with-x.
1024 with_x=yes ;;
1025
1026 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1027 | --x-incl | --x-inc | --x-in | --x-i)
1028 ac_prev=x_includes ;;
1029 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1030 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1031 x_includes=$ac_optarg ;;
1032
1033 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1034 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1035 ac_prev=x_libraries ;;
1036 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1037 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1038 x_libraries=$ac_optarg ;;
1039
1040 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1041Try \`$0 --help' for more information"
1042 ;;
1043
1044 *=*)
1045 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1046 # Reject names that are not valid shell variable names.
1047 case $ac_envvar in #(
1048 '' | [0-9]* | *[!_$as_cr_alnum]* )
1049 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1050 esac
1051 eval $ac_envvar=\$ac_optarg
1052 export $ac_envvar ;;
1053
1054 *)
1055 # FIXME: should be removed in autoconf 3.0.
1056 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1057 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1059 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1060 ;;
1061
1062 esac
1063done
1064
1065if test -n "$ac_prev"; then
1066 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1067 as_fn_error $? "missing argument to $ac_option"
1068fi
1069
1070if test -n "$ac_unrecognized_opts"; then
1071 case $enable_option_checking in
1072 no) ;;
1073 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1074 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1075 esac
1076fi
1077
1078# Check all directory arguments for consistency.
1079for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1080 datadir sysconfdir sharedstatedir localstatedir includedir \
1081 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1082 libdir localedir mandir
1083do
1084 eval ac_val=\$$ac_var
1085 # Remove trailing slashes.
1086 case $ac_val in
1087 */ )
1088 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1089 eval $ac_var=\$ac_val;;
1090 esac
1091 # Be sure to have absolute directory names.
1092 case $ac_val in
1093 [\\/$]* | ?:[\\/]* ) continue;;
1094 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1095 esac
1096 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1097done
1098
1099# There might be people who depend on the old broken behavior: `$host'
1100# used to hold the argument of --host etc.
1101# FIXME: To remove some day.
1102build=$build_alias
1103host=$host_alias
1104target=$target_alias
1105
1106# FIXME: To remove some day.
1107if test "x$host_alias" != x; then
1108 if test "x$build_alias" = x; then
1109 cross_compiling=maybe
1110 elif test "x$build_alias" != "x$host_alias"; then
1111 cross_compiling=yes
1112 fi
1113fi
1114
1115ac_tool_prefix=
1116test -n "$host_alias" && ac_tool_prefix=$host_alias-
1117
1118test "$silent" = yes && exec 6>/dev/null
1119
1120
1121ac_pwd=`pwd` && test -n "$ac_pwd" &&
1122ac_ls_di=`ls -di .` &&
1123ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1124 as_fn_error $? "working directory cannot be determined"
1125test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1126 as_fn_error $? "pwd does not report name of working directory"
1127
1128
1129# Find the source files, if location was not specified.
1130if test -z "$srcdir"; then
1131 ac_srcdir_defaulted=yes
1132 # Try the directory containing this script, then the parent directory.
1133 ac_confdir=`$as_dirname -- "$as_myself" ||
1134$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1135 X"$as_myself" : 'X\(//\)[^/]' \| \
1136 X"$as_myself" : 'X\(//\)$' \| \
1137 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1138$as_echo X"$as_myself" |
1139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1140 s//\1/
1141 q
1142 }
1143 /^X\(\/\/\)[^/].*/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\/\)$/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\).*/{
1152 s//\1/
1153 q
1154 }
1155 s/.*/./; q'`
1156 srcdir=$ac_confdir
1157 if test ! -r "$srcdir/$ac_unique_file"; then
1158 srcdir=..
1159 fi
1160else
1161 ac_srcdir_defaulted=no
1162fi
1163if test ! -r "$srcdir/$ac_unique_file"; then
1164 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1165 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1166fi
1167ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1168ac_abs_confdir=`(
1169 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1170 pwd)`
1171# When building in place, set srcdir=.
1172if test "$ac_abs_confdir" = "$ac_pwd"; then
1173 srcdir=.
1174fi
1175# Remove unnecessary trailing slashes from srcdir.
1176# Double slashes in file names in object file debugging info
1177# mess up M-x gdb in Emacs.
1178case $srcdir in
1179*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1180esac
1181for ac_var in $ac_precious_vars; do
1182 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1183 eval ac_env_${ac_var}_value=\$${ac_var}
1184 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1185 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1186done
1187
1188#
1189# Report the --help message.
1190#
1191if test "$ac_init_help" = "long"; then
1192 # Omit some internal or obsolete options to make the list less imposing.
1193 # This message is too long to be a string in the A/UX 3.1 sh.
1194 cat <<_ACEOF
1195\`configure' configures mediagoblin 0.4.0.dev to adapt to many kinds of systems.
1196
1197Usage: $0 [OPTION]... [VAR=VALUE]...
1198
1199To assign environment variables (e.g., CC, CFLAGS...), specify them as
1200VAR=VALUE. See below for descriptions of some of the useful variables.
1201
1202Defaults for the options are specified in brackets.
1203
1204Configuration:
1205 -h, --help display this help and exit
1206 --help=short display options specific to this package
1207 --help=recursive display the short help of all the included packages
1208 -V, --version display version information and exit
1209 -q, --quiet, --silent do not print \`checking ...' messages
1210 --cache-file=FILE cache test results in FILE [disabled]
1211 -C, --config-cache alias for \`--cache-file=config.cache'
1212 -n, --no-create do not create output files
1213 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1214
1215Installation directories:
1216 --prefix=PREFIX install architecture-independent files in PREFIX
1217 [$ac_default_prefix]
1218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1219 [PREFIX]
1220
1221By default, \`make install' will install all the files in
1222\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1223an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1224for instance \`--prefix=\$HOME'.
1225
1226For better control, use the options below.
1227
1228Fine tuning of the installation directories:
1229 --bindir=DIR user executables [EPREFIX/bin]
1230 --sbindir=DIR system admin executables [EPREFIX/sbin]
1231 --libexecdir=DIR program executables [EPREFIX/libexec]
1232 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1233 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1234 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1235 --libdir=DIR object code libraries [EPREFIX/lib]
1236 --includedir=DIR C header files [PREFIX/include]
1237 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1238 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1239 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1240 --infodir=DIR info documentation [DATAROOTDIR/info]
1241 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1242 --mandir=DIR man documentation [DATAROOTDIR/man]
1243 --docdir=DIR documentation root [DATAROOTDIR/doc/mediagoblin]
1244 --htmldir=DIR html documentation [DOCDIR]
1245 --dvidir=DIR dvi documentation [DOCDIR]
1246 --pdfdir=DIR pdf documentation [DOCDIR]
1247 --psdir=DIR ps documentation [DOCDIR]
1248_ACEOF
1249
1250 cat <<\_ACEOF
1251_ACEOF
1252fi
1253
1254if test -n "$ac_init_help"; then
1255 case $ac_init_help in
1256 short | recursive ) echo "Configuration of mediagoblin 0.4.0.dev:";;
1257 esac
1258 cat <<\_ACEOF
1259
1260Optional Packages:
1261 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1262 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1263 --with-virtualenv install to a Python virtualenv
1264
1265Some influential environment variables:
1266 PYTHON the Python interpreter
1267 PYTHON_CONFIG
1268 the Python-config program
1269 VIRTUALENV_FLAGS
1270 flags to pass to the virtualenv command
1271
1272Use these variables to override the choices made by `configure' or to help
1273it to find libraries and programs with nonstandard names/locations.
1274
1275Report bugs to <cwebber@gnu.org>.
1276_ACEOF
1277ac_status=$?
1278fi
1279
1280if test "$ac_init_help" = "recursive"; then
1281 # If there are subdirs, report their specific --help.
1282 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1283 test -d "$ac_dir" ||
1284 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1285 continue
1286 ac_builddir=.
1287
1288case "$ac_dir" in
1289.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1290*)
1291 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1292 # A ".." for each directory in $ac_dir_suffix.
1293 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1294 case $ac_top_builddir_sub in
1295 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1296 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1297 esac ;;
1298esac
1299ac_abs_top_builddir=$ac_pwd
1300ac_abs_builddir=$ac_pwd$ac_dir_suffix
1301# for backward compatibility:
1302ac_top_builddir=$ac_top_build_prefix
1303
1304case $srcdir in
1305 .) # We are building in place.
1306 ac_srcdir=.
1307 ac_top_srcdir=$ac_top_builddir_sub
1308 ac_abs_top_srcdir=$ac_pwd ;;
1309 [\\/]* | ?:[\\/]* ) # Absolute name.
1310 ac_srcdir=$srcdir$ac_dir_suffix;
1311 ac_top_srcdir=$srcdir
1312 ac_abs_top_srcdir=$srcdir ;;
1313 *) # Relative name.
1314 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1315 ac_top_srcdir=$ac_top_build_prefix$srcdir
1316 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1317esac
1318ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1319
1320 cd "$ac_dir" || { ac_status=$?; continue; }
1321 # Check for guested configure.
1322 if test -f "$ac_srcdir/configure.gnu"; then
1323 echo &&
1324 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1325 elif test -f "$ac_srcdir/configure"; then
1326 echo &&
1327 $SHELL "$ac_srcdir/configure" --help=recursive
1328 else
1329 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1330 fi || ac_status=$?
1331 cd "$ac_pwd" || { ac_status=$?; break; }
1332 done
1333fi
1334
1335test -n "$ac_init_help" && exit $ac_status
1336if $ac_init_version; then
1337 cat <<\_ACEOF
1338mediagoblin configure 0.4.0.dev
1339generated by GNU Autoconf 2.69
1340
1341Copyright (C) 2012 Free Software Foundation, Inc.
1342This configure script is free software; the Free Software Foundation
1343gives unlimited permission to copy, distribute and modify it.
1344_ACEOF
1345 exit
1346fi
1347
1348## ------------------------ ##
1349## Autoconf initialization. ##
1350## ------------------------ ##
1351
1352# ac_fn_py_try_run LINENO
1353# -----------------------
1354# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1355# that executables *can* be run.
1356ac_fn_py_try_run ()
1357{
1358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1359 if { { ac_try="$ac_link"
1360case "(($ac_try" in
1361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1362 *) ac_try_echo=$ac_try;;
1363esac
1364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1365$as_echo "$ac_try_echo"; } >&5
1366 (eval "$ac_link") 2>&5
1367 ac_status=$?
1368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1369 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1370 { { case "(($ac_try" in
1371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1372 *) ac_try_echo=$ac_try;;
1373esac
1374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1375$as_echo "$ac_try_echo"; } >&5
1376 (eval "$ac_try") 2>&5
1377 ac_status=$?
1378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1379 test $ac_status = 0; }; }; then :
1380 ac_retval=0
1381else
1382 $as_echo "$as_me: program exited with status $ac_status" >&5
1383 $as_echo "$as_me: failed program was:" >&5
1384sed 's/^/| /' conftest.$ac_ext >&5
1385
1386 ac_retval=$ac_status
1387fi
1388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1390 as_fn_set_status $ac_retval
1391
1392} # ac_fn_py_try_run
1393cat >config.log <<_ACEOF
1394This file contains any messages produced by compilers while
1395running configure, to aid debugging if configure makes a mistake.
1396
1397It was created by mediagoblin $as_me 0.4.0.dev, which was
1398generated by GNU Autoconf 2.69. Invocation command line was
1399
1400 $ $0 $@
1401
1402_ACEOF
1403exec 5>>config.log
1404{
1405cat <<_ASUNAME
1406## --------- ##
1407## Platform. ##
1408## --------- ##
1409
1410hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1411uname -m = `(uname -m) 2>/dev/null || echo unknown`
1412uname -r = `(uname -r) 2>/dev/null || echo unknown`
1413uname -s = `(uname -s) 2>/dev/null || echo unknown`
1414uname -v = `(uname -v) 2>/dev/null || echo unknown`
1415
1416/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1417/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1418
1419/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1420/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1421/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1422/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1423/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1424/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1425/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1426
1427_ASUNAME
1428
1429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430for as_dir in $PATH
1431do
1432 IFS=$as_save_IFS
1433 test -z "$as_dir" && as_dir=.
1434 $as_echo "PATH: $as_dir"
1435 done
1436IFS=$as_save_IFS
1437
1438} >&5
1439
1440cat >&5 <<_ACEOF
1441
1442
1443## ----------- ##
1444## Core tests. ##
1445## ----------- ##
1446
1447_ACEOF
1448
1449
1450# Keep a trace of the command line.
1451# Strip out --no-create and --no-recursion so they do not pile up.
1452# Strip out --silent because we don't want to record it for future runs.
1453# Also quote any args containing shell meta-characters.
1454# Make two passes to allow for proper duplicate-argument suppression.
1455ac_configure_args=
1456ac_configure_args0=
1457ac_configure_args1=
1458ac_must_keep_next=false
1459for ac_pass in 1 2
1460do
1461 for ac_arg
1462 do
1463 case $ac_arg in
1464 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1466 | -silent | --silent | --silen | --sile | --sil)
1467 continue ;;
1468 *\'*)
1469 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 esac
1471 case $ac_pass in
1472 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1473 2)
1474 as_fn_append ac_configure_args1 " '$ac_arg'"
1475 if test $ac_must_keep_next = true; then
1476 ac_must_keep_next=false # Got value, back to normal.
1477 else
1478 case $ac_arg in
1479 *=* | --config-cache | -C | -disable-* | --disable-* \
1480 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1481 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1482 | -with-* | --with-* | -without-* | --without-* | --x)
1483 case "$ac_configure_args0 " in
1484 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1485 esac
1486 ;;
1487 -* ) ac_must_keep_next=true ;;
1488 esac
1489 fi
1490 as_fn_append ac_configure_args " '$ac_arg'"
1491 ;;
1492 esac
1493 done
1494done
1495{ ac_configure_args0=; unset ac_configure_args0;}
1496{ ac_configure_args1=; unset ac_configure_args1;}
1497
1498# When interrupted or exit'd, cleanup temporary files, and complete
1499# config.log. We remove comments because anyway the quotes in there
1500# would cause problems or look ugly.
1501# WARNING: Use '\'' to represent an apostrophe within the trap.
1502# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1503trap 'exit_status=$?
1504 # Save into config.log some information that might help in debugging.
1505 {
1506 echo
1507
1508 $as_echo "## ---------------- ##
1509## Cache variables. ##
1510## ---------------- ##"
1511 echo
1512 # The following way of writing the cache mishandles newlines in values,
1513(
1514 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1515 eval ac_val=\$$ac_var
1516 case $ac_val in #(
1517 *${as_nl}*)
1518 case $ac_var in #(
1519 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1520$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1521 esac
1522 case $ac_var in #(
1523 _ | IFS | as_nl) ;; #(
1524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1525 *) { eval $ac_var=; unset $ac_var;} ;;
1526 esac ;;
1527 esac
1528 done
1529 (set) 2>&1 |
1530 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1531 *${as_nl}ac_space=\ *)
1532 sed -n \
1533 "s/'\''/'\''\\\\'\'''\''/g;
1534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1535 ;; #(
1536 *)
1537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1538 ;;
1539 esac |
1540 sort
1541)
1542 echo
1543
1544 $as_echo "## ----------------- ##
1545## Output variables. ##
1546## ----------------- ##"
1547 echo
1548 for ac_var in $ac_subst_vars
1549 do
1550 eval ac_val=\$$ac_var
1551 case $ac_val in
1552 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1553 esac
1554 $as_echo "$ac_var='\''$ac_val'\''"
1555 done | sort
1556 echo
1557
1558 if test -n "$ac_subst_files"; then
1559 $as_echo "## ------------------- ##
1560## File substitutions. ##
1561## ------------------- ##"
1562 echo
1563 for ac_var in $ac_subst_files
1564 do
1565 eval ac_val=\$$ac_var
1566 case $ac_val in
1567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1568 esac
1569 $as_echo "$ac_var='\''$ac_val'\''"
1570 done | sort
1571 echo
1572 fi
1573
1574 if test -s confdefs.h; then
1575 $as_echo "## ----------- ##
1576## confdefs.h. ##
1577## ----------- ##"
1578 echo
1579 cat confdefs.h
1580 echo
1581 fi
1582 test "$ac_signal" != 0 &&
1583 $as_echo "$as_me: caught signal $ac_signal"
1584 $as_echo "$as_me: exit $exit_status"
1585 } >&5
1586 rm -f core *.core core.conftest.* &&
1587 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1588 exit $exit_status
1589' 0
1590for ac_signal in 1 2 13 15; do
1591 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1592done
1593ac_signal=0
1594
1595# confdefs.h avoids OS command line length limits that DEFS can exceed.
1596rm -f -r conftest* confdefs.h
1597
1598$as_echo "/* confdefs.h */" > confdefs.h
1599
1600# Predefined preprocessor variables.
1601
1602cat >>confdefs.h <<_ACEOF
1603#define PACKAGE_NAME "$PACKAGE_NAME"
1604_ACEOF
1605
1606cat >>confdefs.h <<_ACEOF
1607#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1608_ACEOF
1609
1610cat >>confdefs.h <<_ACEOF
1611#define PACKAGE_VERSION "$PACKAGE_VERSION"
1612_ACEOF
1613
1614cat >>confdefs.h <<_ACEOF
1615#define PACKAGE_STRING "$PACKAGE_STRING"
1616_ACEOF
1617
1618cat >>confdefs.h <<_ACEOF
1619#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1620_ACEOF
1621
1622cat >>confdefs.h <<_ACEOF
1623#define PACKAGE_URL "$PACKAGE_URL"
1624_ACEOF
1625
1626
1627# Let the site file select an alternate cache file if it wants to.
1628# Prefer an explicitly selected file to automatically selected ones.
1629ac_site_file1=NONE
1630ac_site_file2=NONE
1631if test -n "$CONFIG_SITE"; then
1632 # We do not want a PATH search for config.site.
1633 case $CONFIG_SITE in #((
1634 -*) ac_site_file1=./$CONFIG_SITE;;
1635 */*) ac_site_file1=$CONFIG_SITE;;
1636 *) ac_site_file1=./$CONFIG_SITE;;
1637 esac
1638elif test "x$prefix" != xNONE; then
1639 ac_site_file1=$prefix/share/config.site
1640 ac_site_file2=$prefix/etc/config.site
1641else
1642 ac_site_file1=$ac_default_prefix/share/config.site
1643 ac_site_file2=$ac_default_prefix/etc/config.site
1644fi
1645for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1646do
1647 test "x$ac_site_file" = xNONE && continue
1648 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1650$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1651 sed 's/^/| /' "$ac_site_file" >&5
1652 . "$ac_site_file" \
1653 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1655as_fn_error $? "failed to load site script $ac_site_file
1656See \`config.log' for more details" "$LINENO" 5; }
1657 fi
1658done
1659
1660if test -r "$cache_file"; then
1661 # Some versions of bash will fail to source /dev/null (special files
1662 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1663 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1665$as_echo "$as_me: loading cache $cache_file" >&6;}
1666 case $cache_file in
1667 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1668 *) . "./$cache_file";;
1669 esac
1670 fi
1671else
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1673$as_echo "$as_me: creating cache $cache_file" >&6;}
1674 >$cache_file
1675fi
1676
1677# Check that the precious variables saved in the cache have kept the same
1678# value.
1679ac_cache_corrupted=false
1680for ac_var in $ac_precious_vars; do
1681 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1682 eval ac_new_set=\$ac_env_${ac_var}_set
1683 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1684 eval ac_new_val=\$ac_env_${ac_var}_value
1685 case $ac_old_set,$ac_new_set in
1686 set,)
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1688$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1689 ac_cache_corrupted=: ;;
1690 ,set)
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1692$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1693 ac_cache_corrupted=: ;;
1694 ,);;
1695 *)
1696 if test "x$ac_old_val" != "x$ac_new_val"; then
1697 # differences in whitespace do not lead to failure.
1698 ac_old_val_w=`echo x $ac_old_val`
1699 ac_new_val_w=`echo x $ac_new_val`
1700 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1702$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1703 ac_cache_corrupted=:
1704 else
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1706$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1707 eval $ac_var=\$ac_old_val
1708 fi
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1710$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1712$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1713 fi;;
1714 esac
1715 # Pass precious variables to config.status.
1716 if test "$ac_new_set" = set; then
1717 case $ac_new_val in
1718 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 *) ac_arg=$ac_var=$ac_new_val ;;
1720 esac
1721 case " $ac_configure_args " in
1722 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1723 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1724 esac
1725 fi
1726done
1727if $ac_cache_corrupted; then
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1731$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1732 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1733fi
1734## -------------------- ##
1735## Main body of script. ##
1736## -------------------- ##
1737
1738ac_ext=c
1739ac_cpp='$CPP $CPPFLAGS'
1740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1742ac_compiler_gnu=$ac_cv_c_compiler_gnu
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752for ac_prog in python2.7 python2.6 \
1753 \
1754python2 python
1755do
1756 # Extract the first word of "$ac_prog", so it can be a program name with args.
1757set dummy $ac_prog; ac_word=$2
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1759$as_echo_n "checking for $ac_word... " >&6; }
1760if ${ac_cv_path_PYTHON+:} false; then :
1761 $as_echo_n "(cached) " >&6
1762else
1763 case $PYTHON in
1764 [\\/]* | ?:[\\/]*)
1765 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1766 ;;
1767 *)
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769for as_dir in $PATH
1770do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779done
1780 done
1781IFS=$as_save_IFS
1782
1783 ;;
1784esac
1785fi
1786PYTHON=$ac_cv_path_PYTHON
1787if test -n "$PYTHON"; then
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1789$as_echo "$PYTHON" >&6; }
1790else
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1792$as_echo "no" >&6; }
1793fi
1794
1795
1796 test -n "$PYTHON" && break
1797done
1798
1799
1800
1801
1802
1803
1804
1805for ac_prog in python2.7 python2.6 \
1806 \
1807python2 python
1808do
1809 # Extract the first word of "$ac_prog", so it can be a program name with args.
1810set dummy $ac_prog; ac_word=$2
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1812$as_echo_n "checking for $ac_word... " >&6; }
1813if ${ac_cv_path_PYTHON+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815else
1816 case $PYTHON in
1817 [\\/]* | ?:[\\/]*)
1818 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1819 ;;
1820 *)
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 break 2
1831 fi
1832done
1833 done
1834IFS=$as_save_IFS
1835
1836 ;;
1837esac
1838fi
1839PYTHON=$ac_cv_path_PYTHON
1840if test -n "$PYTHON"; then
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1842$as_echo "$PYTHON" >&6; }
1843else
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1845$as_echo "no" >&6; }
1846fi
1847
1848
1849 test -n "$PYTHON" && break
1850done
1851
1852
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Python >= '2.6'" >&5
1854$as_echo_n "checking if Python >= '2.6'... " >&6; }
1855if ${pc_cv_python_min_version_2_6+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 ac_ext=py
1859ac_compile='chmod +x conftest.$ac_ext >&5'
1860ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
1861 if test "$cross_compiling" = yes; then :
1862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1864as_fn_error $? "cannot run test program while cross compiling
1865See \`config.log' for more details" "$LINENO" 5; }
1866else
1867 cat > conftest.$ac_ext <<_ACEOF
1868#!$PYTHON
1869import sys
1870
1871if __name__ == '__main__':
1872 # split strings by '.' and convert to numeric. Append some zeros
1873 # because we need at least 4 digits for the hex conversion.
1874 # map returns an iterator in Python 3.0 and a list in 2.x
1875 reqver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
1876 reqverhex = 0
1877 # xrange is not present in Python 3.0 and range returns an iterator
1878 for i in list(range(4)):
1879 reqverhex = (reqverhex << 8) + reqver[i]
1880 if sys.hexversion >= reqverhex:
1881 sys.exit()
1882 else:
1883 sys.exit(1)
1884
1885_ACEOF
1886if ac_fn_py_try_run "$LINENO"; then :
1887 pc_cv_python_req_version_2_6="yes"
1888else
1889 pc_cv_python_req_version_2_6="no"
1890fi
1891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1892 conftest.$ac_objext conftest.beam conftest.$ac_ext
1893fi
1894
1895 ac_ext=c
1896ac_cpp='$CPP $CPPFLAGS'
1897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899ac_compiler_gnu=$ac_cv_c_compiler_gnu
1900
1901fi
1902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_min_version_2_6" >&5
1903$as_echo "$pc_cv_python_min_version_2_6" >&6; }
1904if test "$pc_cv_python_req_version_2_6" = "no"; then :
1905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1907as_fn_error $? "No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter.
1908See \`config.log' for more details" "$LINENO" 5; }
1909else
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1911$as_echo "yes" >&6; }
1912fi
1913
1914
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Python <= '2.7.99'" >&5
1916$as_echo_n "checking if Python <= '2.7.99'... " >&6; }
1917if ${pc_cv_python_min_version_2_7_99+:} false; then :
1918 $as_echo_n "(cached) " >&6
1919else
1920 ac_ext=py
1921ac_compile='chmod +x conftest.$ac_ext >&5'
1922ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
1923 if test "$cross_compiling" = yes; then :
1924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1926as_fn_error $? "cannot run test program while cross compiling
1927See \`config.log' for more details" "$LINENO" 5; }
1928else
1929 cat > conftest.$ac_ext <<_ACEOF
1930#!$PYTHON
1931import sys
1932
1933if __name__ == '__main__':
1934 # split strings by '.' and convert to numeric. Append some zeros
1935 # because we need at least 4 digits for the hex conversion.
1936 # map returns an iterator in Python 3.0 and a list in 2.x
1937 reqver = list(map(int, '2.7.99'.split('.'))) + [0, 0, 0]
1938 reqverhex = 0
1939 # xrange is not present in Python 3.0 and range returns an iterator
1940 for i in list(range(4)):
1941 reqverhex = (reqverhex << 8) + reqver[i]
1942 if sys.hexversion <= reqverhex:
1943 sys.exit()
1944 else:
1945 sys.exit(1)
1946
1947_ACEOF
1948if ac_fn_py_try_run "$LINENO"; then :
1949 pc_cv_python_req_version_2_7_99="yes"
1950else
1951 pc_cv_python_req_version_2_7_99="no"
1952fi
1953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1954 conftest.$ac_objext conftest.beam conftest.$ac_ext
1955fi
1956
1957 ac_ext=c
1958ac_cpp='$CPP $CPPFLAGS'
1959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962
1963fi
1964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_min_version_2_7_99" >&5
1965$as_echo "$pc_cv_python_min_version_2_7_99" >&6; }
1966if test "$pc_cv_python_req_version_2_7_99" = "no"; then :
1967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1969as_fn_error $? "No compatible Python interpreter found. If you're sure that you have one, try setting the PYTHON environment variable to the location of the interpreter.
1970See \`config.log' for more details" "$LINENO" 5; }
1971else
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1973$as_echo "yes" >&6; }
1974fi
1975
1976
1977
1978
1979
1980for ac_prog in python2-config `basename $PYTHON`-config
1981do
1982 # Extract the first word of "$ac_prog", so it can be a program name with args.
1983set dummy $ac_prog; ac_word=$2
1984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1985$as_echo_n "checking for $ac_word... " >&6; }
1986if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988else
1989 case $PYTHON_CONFIG in
1990 [\\/]* | ?:[\\/]*)
1991 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
1992 ;;
1993 *)
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005done
2006 done
2007IFS=$as_save_IFS
2008
2009 ;;
2010esac
2011fi
2012PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
2013if test -n "$PYTHON_CONFIG"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
2015$as_echo "$PYTHON_CONFIG" >&6; }
2016else
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2018$as_echo "no" >&6; }
2019fi
2020
2021
2022 test -n "$PYTHON_CONFIG" && break
2023done
2024
2025
2026if [ "x$PYTHON_CONFIG" == "x" ]; then
2027
2028
2029for ac_prog in $PYTHON-config `basename $PYTHON`-config
2030do
2031 # Extract the first word of "$ac_prog", so it can be a program name with args.
2032set dummy $ac_prog; ac_word=$2
2033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2034$as_echo_n "checking for $ac_word... " >&6; }
2035if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
2036 $as_echo_n "(cached) " >&6
2037else
2038 case $PYTHON_CONFIG in
2039 [\\/]* | ?:[\\/]*)
2040 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
2041 ;;
2042 *)
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054done
2055 done
2056IFS=$as_save_IFS
2057
2058 ;;
2059esac
2060fi
2061PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
2062if test -n "$PYTHON_CONFIG"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
2064$as_echo "$PYTHON_CONFIG" >&6; }
2065else
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2067$as_echo "no" >&6; }
2068fi
2069
2070
2071 test -n "$PYTHON_CONFIG" && break
2072done
2073
2074
2075fi
2076
2077# Support installing to a virtualenv via the --with-virtualenv
2078# configure flag
2079
2080# Check whether --with-virtualenv was given.
2081if test "${with_virtualenv+set}" = set; then :
2082 withval=$with_virtualenv;
2083else
2084 with_virtualenv=no
2085fi
2086
2087if test "x$with_virtualenv" != xno; then :
2088 for ac_prog in virtualenv virtualenv3 virtualenv2
2089do
2090 # Extract the first word of "$ac_prog", so it can be a program name with args.
2091set dummy $ac_prog; ac_word=$2
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2093$as_echo_n "checking for $ac_word... " >&6; }
2094if ${ac_cv_prog_VIRTUALENV+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096else
2097 if test -n "$VIRTUALENV"; then
2098 ac_cv_prog_VIRTUALENV="$VIRTUALENV" # Let the user override the test.
2099else
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107 ac_cv_prog_VIRTUALENV="$ac_prog"
2108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 break 2
2110 fi
2111done
2112 done
2113IFS=$as_save_IFS
2114
2115fi
2116fi
2117VIRTUALENV=$ac_cv_prog_VIRTUALENV
2118if test -n "$VIRTUALENV"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIRTUALENV" >&5
2120$as_echo "$VIRTUALENV" >&6; }
2121else
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2123$as_echo "no" >&6; }
2124fi
2125
2126
2127 test -n "$VIRTUALENV" && break
2128done
2129test -n "$VIRTUALENV" || VIRTUALENV="no"
2130
2131 if test "x$VIRTUALENV" = xno; then :
2132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134as_fn_error $? "--with-virtualenv given but virtualenv could not be found
2135See \`config.log' for more details" "$LINENO" 5; }
2136fi
2137else
2138 VIRTUALENV=no
2139
2140fi
2141
2142
2143# Check for sphinx-build
2144for ac_prog in sphinx-build sphinx-build3 sphinx-build2
2145do
2146 # Extract the first word of "$ac_prog", so it can be a program name with args.
2147set dummy $ac_prog; ac_word=$2
2148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2149$as_echo_n "checking for $ac_word... " >&6; }
2150if ${ac_cv_prog_SPHINXBUILD+:} false; then :
2151 $as_echo_n "(cached) " >&6
2152else
2153 if test -n "$SPHINXBUILD"; then
2154 ac_cv_prog_SPHINXBUILD="$SPHINXBUILD" # Let the user override the test.
2155else
2156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157for as_dir in $PATH
2158do
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_SPHINXBUILD="$ac_prog"
2164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2166 fi
2167done
2168 done
2169IFS=$as_save_IFS
2170
2171fi
2172fi
2173SPHINXBUILD=$ac_cv_prog_SPHINXBUILD
2174if test -n "$SPHINXBUILD"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINXBUILD" >&5
2176$as_echo "$SPHINXBUILD" >&6; }
2177else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2179$as_echo "no" >&6; }
2180fi
2181
2182
2183 test -n "$SPHINXBUILD" && break
2184done
2185test -n "$SPHINXBUILD" || SPHINXBUILD="no"
2186
2187if test "x$SPHINXBUILD" = xno; then :
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sphinx-build is required to build documentation" >&5
2189$as_echo "$as_me: WARNING: sphinx-build is required to build documentation" >&2;}
2190fi
2191
2192
2193ac_aux_dir=
2194for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2195 if test -f "$ac_dir/install-sh"; then
2196 ac_aux_dir=$ac_dir
2197 ac_install_sh="$ac_aux_dir/install-sh -c"
2198 break
2199 elif test -f "$ac_dir/install.sh"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/install.sh -c"
2202 break
2203 elif test -f "$ac_dir/shtool"; then
2204 ac_aux_dir=$ac_dir
2205 ac_install_sh="$ac_aux_dir/shtool install -c"
2206 break
2207 fi
2208done
2209if test -z "$ac_aux_dir"; then
2210 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2211fi
2212
2213# These three variables are undocumented and unsupported,
2214# and are intended to be withdrawn in a future Autoconf release.
2215# They can cause serious problems if a builder's source tree is in a directory
2216# whose full name contains unusual characters.
2217ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2220
2221
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2223$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2224if test -z "$MKDIR_P"; then
2225 if ${ac_cv_path_mkdir+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2230do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_prog in mkdir gmkdir; do
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2236 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2237 'mkdir (GNU coreutils) '* | \
2238 'mkdir (coreutils) '* | \
2239 'mkdir (fileutils) '4.1*)
2240 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2241 break 3;;
2242 esac
2243 done
2244 done
2245 done
2246IFS=$as_save_IFS
2247
2248fi
2249
2250 test -d ./--version && rmdir ./--version
2251 if test "${ac_cv_path_mkdir+set}" = set; then
2252 MKDIR_P="$ac_cv_path_mkdir -p"
2253 else
2254 # As a last resort, use the slow shell script. Don't cache a
2255 # value for MKDIR_P within a source directory, because that will
2256 # break other packages using the cache if that directory is
2257 # removed, or if the value is a relative name.
2258 MKDIR_P="$ac_install_sh -d"
2259 fi
2260fi
2261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2262$as_echo "$MKDIR_P" >&6; }
2263
2264# Find a good install program. We prefer a C program (faster),
2265# so one script is as good as another. But avoid the broken or
2266# incompatible versions:
2267# SysV /etc/install, /usr/sbin/install
2268# SunOS /usr/etc/install
2269# IRIX /sbin/install
2270# AIX /bin/install
2271# AmigaOS /C/install, which installs bootblocks on floppy discs
2272# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2273# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2274# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2275# OS/2's system install, which has a completely different semantic
2276# ./install, which can be erroneously created by make from ./install.sh.
2277# Reject install programs that cannot install multiple files.
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2279$as_echo_n "checking for a BSD-compatible install... " >&6; }
2280if test -z "$INSTALL"; then
2281if ${ac_cv_path_install+:} false; then :
2282 $as_echo_n "(cached) " >&6
2283else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 # Account for people who put trailing slashes in PATH elements.
2290case $as_dir/ in #((
2291 ./ | .// | /[cC]/* | \
2292 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2293 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2294 /usr/ucb/* ) ;;
2295 *)
2296 # OSF1 and SCO ODT 3.0 have their own names for install.
2297 # Don't use installbsd from OSF since it installs stuff as root
2298 # by default.
2299 for ac_prog in ginstall scoinst install; do
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2302 if test $ac_prog = install &&
2303 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304 # AIX install. It has an incompatible calling convention.
2305 :
2306 elif test $ac_prog = install &&
2307 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # program-specific install script used by HP pwplus--don't use.
2309 :
2310 else
2311 rm -rf conftest.one conftest.two conftest.dir
2312 echo one > conftest.one
2313 echo two > conftest.two
2314 mkdir conftest.dir
2315 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2316 test -s conftest.one && test -s conftest.two &&
2317 test -s conftest.dir/conftest.one &&
2318 test -s conftest.dir/conftest.two
2319 then
2320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2321 break 3
2322 fi
2323 fi
2324 fi
2325 done
2326 done
2327 ;;
2328esac
2329
2330 done
2331IFS=$as_save_IFS
2332
2333rm -rf conftest.one conftest.two conftest.dir
2334
2335fi
2336 if test "${ac_cv_path_install+set}" = set; then
2337 INSTALL=$ac_cv_path_install
2338 else
2339 # As a last resort, use the slow shell script. Don't cache a
2340 # value for INSTALL within a source directory, because that will
2341 # break other packages using the cache if that directory is
2342 # removed, or if the value is a relative name.
2343 INSTALL=$ac_install_sh
2344 fi
2345fi
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2347$as_echo "$INSTALL" >&6; }
2348
2349# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2350# It thinks the first close brace ends the variable substitution.
2351test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2352
2353test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2354
2355test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2356
2357
2358# Check for a supported database program
2359# Extract the first word of "sqlite3", so it can be a program name with args.
2360set dummy sqlite3; ac_word=$2
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362$as_echo_n "checking for $ac_word... " >&6; }
2363if ${ac_cv_path_SQLITE+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365else
2366 case $SQLITE in
2367 [\\/]* | ?:[\\/]*)
2368 ac_cv_path_SQLITE="$SQLITE" # Let the user override the test with a path.
2369 ;;
2370 *)
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_path_SQLITE="$as_dir/$ac_word$ac_exec_ext"
2379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382done
2383 done
2384IFS=$as_save_IFS
2385
2386 ;;
2387esac
2388fi
2389SQLITE=$ac_cv_path_SQLITE
2390if test -n "$SQLITE"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE" >&5
2392$as_echo "$SQLITE" >&6; }
2393else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395$as_echo "no" >&6; }
2396fi
2397
2398
2399# Extract the first word of "postgres", so it can be a program name with args.
2400set dummy postgres; ac_word=$2
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402$as_echo_n "checking for $ac_word... " >&6; }
2403if ${ac_cv_path_POSTGRES+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405else
2406 case $POSTGRES in
2407 [\\/]* | ?:[\\/]*)
2408 ac_cv_path_POSTGRES="$POSTGRES" # Let the user override the test with a path.
2409 ;;
2410 *)
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418 ac_cv_path_POSTGRES="$as_dir/$ac_word$ac_exec_ext"
2419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2421 fi
2422done
2423 done
2424IFS=$as_save_IFS
2425
2426 ;;
2427esac
2428fi
2429POSTGRES=$ac_cv_path_POSTGRES
2430if test -n "$POSTGRES"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTGRES" >&5
2432$as_echo "$POSTGRES" >&6; }
2433else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435$as_echo "no" >&6; }
2436fi
2437
2438
2439if [ "x$SQLITE" = "x" && "x$POSTGRES" = "x" ]; then
2440 as_fn_error $? "SQLite or PostgreSQL is required" "$LINENO" 5
2441fi
2442
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5
2444$as_echo_n "checking for Python prefix... " >&6; }
2445if ${pc_cv_python_prefix+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447else
2448 if test -x "$PYTHON_CONFIG"; then
2449 pc_cv_python_prefix=`$PYTHON_CONFIG --prefix 2>&5`
2450else
2451 ac_ext=py
2452ac_compile='chmod +x conftest.$ac_ext >&5'
2453ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2454 pc_cv_python_prefix=cat > conftest.$ac_ext <<_ACEOF
2455#!$PYTHON
2456import sys
2457
2458if __name__ == '__main__':
2459 sys.exit(sys.prefix)
2460
2461_ACEOF
2462 ac_ext=c
2463ac_cpp='$CPP $CPPFLAGS'
2464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467fi
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_prefix" >&5
2470$as_echo "$pc_cv_python_prefix" >&6; }
2471PYTHON_PREFIX=$pc_cv_python_prefix
2472
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages directory" >&5
2474$as_echo_n "checking for Python site-packages directory... " >&6; }
2475if ${pc_cv_python_site_dir+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477else
2478 ac_ext=py
2479ac_compile='chmod +x conftest.$ac_ext >&5'
2480ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2481 if test "x$prefix" = xNONE
2482 then
2483 pc_py_prefix=$ac_default_prefix
2484 else
2485 pc_py_prefix=$prefix
2486 fi
2487 cat > conftest.$ac_ext <<_ACEOF
2488
2489 #!$PYTHON
2490import sys
2491from platform import python_implementation
2492# sysconfig in CPython 2.7 doesn't work in virtualenv
2493# <https://github.com/pypa/virtualenv/issues/118>
2494try:
2495 import sysconfig
2496except:
2497 can_use_sysconfig = False
2498else:
2499 can_use_sysconfig = True
2500if can_use_sysconfig:
2501 if python_implementation() == "CPython" and sys.version[:3] == '2.7':
2502 can_use_sysconfig = False
2503if not can_use_sysconfig:
2504 from distutils import sysconfig
2505 sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py_prefix')
2506else:
2507 sitedir = sysconfig.get_path('purelib', vars={'base':'$pc_py_prefix'})
2508
2509if __name__ == '__main__':
2510 sys.stdout.write(sitedir)
2511
2512_ACEOF
2513 pc_cv_python_site_dir=`$PYTHON conftest.py`
2514 ac_ext=c
2515ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 case $pc_cv_python_site_dir in
2520 $pc_py_prefix*)
2521 pc__strip_prefix=`echo "$pc_py_prefix" | sed 's|.|.|g'`
2522 pc_cv_python_site_dir=`echo "$pc_cv_python_site_dir" | sed "s,^$pc__strip_prefix/,,"`
2523 ;;
2524 *)
2525 case $pc_py_prefix in
2526 /usr|/System*) ;;
2527 *)
2528 pc_cv_python_site_dir=lib/python$PYTHON_VERSION/site-packages
2529 ;;
2530 esac
2531 ;;
2532 esac
2533
2534fi
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_site_dir" >&5
2536$as_echo "$pc_cv_python_site_dir" >&6; }
2537pythondir=\${prefix}/$pc_cv_python_site_dir
2538
2539pkgpythondir=\${pythondir}/$PACKAGE
2540
2541
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python exec-prefix" >&5
2543$as_echo_n "checking for Python exec-prefix... " >&6; }
2544if ${pc_cv_python_exec_prefix+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546else
2547 if test -x "$PYTHON_CONFIG"; then
2548 pc_cv_python_exec_prefix=`$PYTHON_CONFIG --exec-prefix 2>&5`
2549else
2550 ac_ext=py
2551ac_compile='chmod +x conftest.$ac_ext >&5'
2552ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2553 pc_cv_python_exec_prefix=cat > conftest.$ac_ext <<_ACEOF
2554#!$PYTHON
2555import sys
2556
2557if __name__ == '__main__':
2558 sys.exit(sys.exec_prefix)
2559
2560_ACEOF
2561 ac_ext=c
2562ac_cpp='$CPP $CPPFLAGS'
2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566fi
2567
2568fi
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_prefix" >&5
2570$as_echo "$pc_cv_python_exec_prefix" >&6; }
2571PYTHON_EXEC_PREFIX=$pc_cv_python_exec_prefix
2572
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python extension module directory" >&5
2574$as_echo_n "checking for Python extension module directory... " >&6; }
2575if ${pc_cv_python_exec_dir+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577else
2578 ac_ext=py
2579ac_compile='chmod +x conftest.$ac_ext >&5'
2580ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2581 if test "x$pc_cv_python_exec_prefix" = xNONE
2582 then
2583 pc_py_exec_prefix=$pc_cv_python_prefix
2584 else
2585 pc_py_exec_prefix=$pc_cv_python_exec_prefix
2586 fi
2587 cat > conftest.$ac_ext <<_ACEOF
2588
2589 #!$PYTHON
2590import sys
2591from platform import python_implementation
2592# sysconfig in CPython 2.7 doesn't work in virtualenv
2593# <https://github.com/pypa/virtualenv/issues/118>
2594try:
2595 import sysconfig
2596except:
2597 can_use_sysconfig = False
2598else:
2599 can_use_sysconfig = True
2600if can_use_sysconfig:
2601 if python_implementation() == "CPython" and sys.version[:3] == '2.7':
2602 can_use_sysconfig = False
2603if not can_use_sysconfig:
2604 from distutils import sysconfig
2605 sitedir = sysconfig.get_python_lib(False, False, prefix='$pc_py__exec_prefix')
2606else:
2607 sitedir = sysconfig.get_path('purelib', vars={'platbase':'$pc_py_exec_prefix'})
2608
2609if __name__ == '__main__':
2610 sys.stdout.write(sitedir)
2611
2612_ACEOF
2613 pc_cv_python_exec_dir=`$PYTHON conftest.py`
2614 ac_ext=c
2615ac_cpp='$CPP $CPPFLAGS'
2616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 case $pc_cv_python_exec_dir in
2620 $pc_py_exec_prefix*)
2621 pc__strip_prefix=`echo "$pc_py_exec_prefix" | sed 's|.|.|g'`
2622 pc_cv_python_exec_dir=`echo "$pc_cv_python_exec_dir" | sed "s,^$pc__strip_prefix/,,"`
2623 ;;
2624 *)
2625 case $pc_py_exec_prefix in
2626 /usr|/System*) ;;
2627 *)
2628 pc_cv_python_exec_dir=lib/python$PYTHON_VERSION/site-packages
2629 ;;
2630 esac
2631 ;;
2632 esac
2633
2634fi
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_exec_dir" >&5
2636$as_echo "$pc_cv_python_exec_dir" >&6; }
2637pyexecdir=\${exec_prefix}/$pc_cv_python_pyexecdir
2638
2639pkgpyexecdir=\${pyexecdir}/$PACKAGE
2640
2641
2642
2643
2644
2645# Check for python-lxml module
2646
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 'lxml' library" >&5
2648$as_echo_n "checking for Python 'lxml' library... " >&6; }
2649if ${pc_cv_python_module_lxml+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651else
2652 ac_ext=py
2653ac_compile='chmod +x conftest.$ac_ext >&5'
2654ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2655 if test "$cross_compiling" = yes; then :
2656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658as_fn_error $? "cannot run test program while cross compiling
2659See \`config.log' for more details" "$LINENO" 5; }
2660else
2661 cat > conftest.$ac_ext <<_ACEOF
2662#!$PYTHON
2663import sys
2664try:
2665 import lxml
2666except:
2667 sys.exit(1)
2668else:
2669 sys.exit(0)
2670
2671
2672_ACEOF
2673if ac_fn_py_try_run "$LINENO"; then :
2674 pc_cv_python_module_lxml="yes"
2675else
2676 pc_cv_python_module_lxml="no"
2677fi
2678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2679 conftest.$ac_objext conftest.beam conftest.$ac_ext
2680fi
2681
2682 ac_ext=c
2683ac_cpp='$CPP $CPPFLAGS'
2684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687
2688fi
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_lxml" >&5
2690$as_echo "$pc_cv_python_module_lxml" >&6; }
2691if test "$pc_cv_python_module_lxml" = "no"; then :
2692 as_fn_error $? "python-lxml is required" "$LINENO" 5
2693fi
2694
2695
2696# Check for the Python Imaging Library
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 'Image' library" >&5
2699$as_echo_n "checking for Python 'Image' library... " >&6; }
2700if ${pc_cv_python_module_Image+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 ac_ext=py
2704ac_compile='chmod +x conftest.$ac_ext >&5'
2705ac_link='chmod +x conftest.$ac_ext && cp conftest.$ac_ext conftest >&5'
2706 if test "$cross_compiling" = yes; then :
2707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709as_fn_error $? "cannot run test program while cross compiling
2710See \`config.log' for more details" "$LINENO" 5; }
2711else
2712 cat > conftest.$ac_ext <<_ACEOF
2713#!$PYTHON
2714import sys
2715try:
2716 import Image
2717except:
2718 sys.exit(1)
2719else:
2720 sys.exit(0)
2721
2722
2723_ACEOF
2724if ac_fn_py_try_run "$LINENO"; then :
2725 pc_cv_python_module_Image="yes"
2726else
2727 pc_cv_python_module_Image="no"
2728fi
2729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2730 conftest.$ac_objext conftest.beam conftest.$ac_ext
2731fi
2732
2733 ac_ext=c
2734ac_cpp='$CPP $CPPFLAGS'
2735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739fi
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_cv_python_module_Image" >&5
2741$as_echo "$pc_cv_python_module_Image" >&6; }
2742if test "$pc_cv_python_module_Image" = "no"; then :
2743 as_fn_error $? "Python Imaging Library is required" "$LINENO" 5
2744fi
2745
2746
2747
2748
2749ac_config_files="$ac_config_files Makefile setup.py"
2750
2751cat >confcache <<\_ACEOF
2752# This file is a shell script that caches the results of configure
2753# tests run on this system so they can be shared between configure
2754# scripts and configure runs, see configure's option --config-cache.
2755# It is not useful on other systems. If it contains results you don't
2756# want to keep, you may remove or edit it.
2757#
2758# config.status only pays attention to the cache file if you give it
2759# the --recheck option to rerun configure.
2760#
2761# `ac_cv_env_foo' variables (set or unset) will be overridden when
2762# loading this file, other *unset* `ac_cv_foo' will be assigned the
2763# following values.
2764
2765_ACEOF
2766
2767# The following way of writing the cache mishandles newlines in values,
2768# but we know of no workaround that is simple, portable, and efficient.
2769# So, we kill variables containing newlines.
2770# Ultrix sh set writes to stderr and can't be redirected directly,
2771# and sets the high bit in the cache file unless we assign to the vars.
2772(
2773 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2774 eval ac_val=\$$ac_var
2775 case $ac_val in #(
2776 *${as_nl}*)
2777 case $ac_var in #(
2778 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2779$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2780 esac
2781 case $ac_var in #(
2782 _ | IFS | as_nl) ;; #(
2783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2784 *) { eval $ac_var=; unset $ac_var;} ;;
2785 esac ;;
2786 esac
2787 done
2788
2789 (set) 2>&1 |
2790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2791 *${as_nl}ac_space=\ *)
2792 # `set' does not quote correctly, so add quotes: double-quote
2793 # substitution turns \\\\ into \\, and sed turns \\ into \.
2794 sed -n \
2795 "s/'/'\\\\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2797 ;; #(
2798 *)
2799 # `set' quotes correctly as required by POSIX, so do not add quotes.
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801 ;;
2802 esac |
2803 sort
2804) |
2805 sed '
2806 /^ac_cv_env_/b end
2807 t clear
2808 :clear
2809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2810 t end
2811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2812 :end' >>confcache
2813if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2814 if test -w "$cache_file"; then
2815 if test "x$cache_file" != "x/dev/null"; then
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2817$as_echo "$as_me: updating cache $cache_file" >&6;}
2818 if test ! -f "$cache_file" || test -h "$cache_file"; then
2819 cat confcache >"$cache_file"
2820 else
2821 case $cache_file in #(
2822 */* | ?:*)
2823 mv -f confcache "$cache_file"$$ &&
2824 mv -f "$cache_file"$$ "$cache_file" ;; #(
2825 *)
2826 mv -f confcache "$cache_file" ;;
2827 esac
2828 fi
2829 fi
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2832$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2833 fi
2834fi
2835rm -f confcache
2836
2837test "x$prefix" = xNONE && prefix=$ac_default_prefix
2838# Let make expand exec_prefix.
2839test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2840
2841# Transform confdefs.h into DEFS.
2842# Protect against shell expansion while executing Makefile rules.
2843# Protect against Makefile macro expansion.
2844#
2845# If the first sed substitution is executed (which looks for macros that
2846# take arguments), then branch to the quote section. Otherwise,
2847# look for a macro that doesn't take arguments.
2848ac_script='
2849:mline
2850/\\$/{
2851 N
2852 s,\\\n,,
2853 b mline
2854}
2855t clear
2856:clear
2857s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2858t quote
2859s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2860t quote
2861b any
2862:quote
2863s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2864s/\[/\\&/g
2865s/\]/\\&/g
2866s/\$/$$/g
2867H
2868:any
2869${
2870 g
2871 s/^\n//
2872 s/\n/ /g
2873 p
2874}
2875'
2876DEFS=`sed -n "$ac_script" confdefs.h`
2877
2878
2879ac_libobjs=
2880ac_ltlibobjs=
2881U=
2882for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2883 # 1. Remove the extension, and $U if already installed.
2884 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2885 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2887 # will be set to the directory where LIBOBJS objects are built.
2888 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2889 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2890done
2891LIBOBJS=$ac_libobjs
2892
2893LTLIBOBJS=$ac_ltlibobjs
2894
2895
2896
2897: "${CONFIG_STATUS=./config.status}"
2898ac_write_fail=0
2899ac_clean_files_save=$ac_clean_files
2900ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2902$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2903as_write_fail=0
2904cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2905#! $SHELL
2906# Generated by $as_me.
2907# Run this file to recreate the current configuration.
2908# Compiler output produced by configure, useful for debugging
2909# configure, is in config.log if it exists.
2910
2911debug=false
2912ac_cs_recheck=false
2913ac_cs_silent=false
2914
2915SHELL=\${CONFIG_SHELL-$SHELL}
2916export SHELL
2917_ASEOF
2918cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2919## -------------------- ##
2920## M4sh Initialization. ##
2921## -------------------- ##
2922
2923# Be more Bourne compatible
2924DUALCASE=1; export DUALCASE # for MKS sh
2925if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2926 emulate sh
2927 NULLCMD=:
2928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2929 # is contrary to our usage. Disable this feature.
2930 alias -g '${1+"$@"}'='"$@"'
2931 setopt NO_GLOB_SUBST
2932else
2933 case `(set -o) 2>/dev/null` in #(
2934 *posix*) :
2935 set -o posix ;; #(
2936 *) :
2937 ;;
2938esac
2939fi
2940
2941
2942as_nl='
2943'
2944export as_nl
2945# Printing a long string crashes Solaris 7 /usr/bin/printf.
2946as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2947as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2948as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2949# Prefer a ksh shell builtin over an external printf program on Solaris,
2950# but without wasting forks for bash or zsh.
2951if test -z "$BASH_VERSION$ZSH_VERSION" \
2952 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2953 as_echo='print -r --'
2954 as_echo_n='print -rn --'
2955elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2956 as_echo='printf %s\n'
2957 as_echo_n='printf %s'
2958else
2959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2961 as_echo_n='/usr/ucb/echo -n'
2962 else
2963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2964 as_echo_n_body='eval
2965 arg=$1;
2966 case $arg in #(
2967 *"$as_nl"*)
2968 expr "X$arg" : "X\\(.*\\)$as_nl";
2969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2970 esac;
2971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2972 '
2973 export as_echo_n_body
2974 as_echo_n='sh -c $as_echo_n_body as_echo'
2975 fi
2976 export as_echo_body
2977 as_echo='sh -c $as_echo_body as_echo'
2978fi
2979
2980# The user is always right.
2981if test "${PATH_SEPARATOR+set}" != set; then
2982 PATH_SEPARATOR=:
2983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2985 PATH_SEPARATOR=';'
2986 }
2987fi
2988
2989
2990# IFS
2991# We need space, tab and new line, in precisely that order. Quoting is
2992# there to prevent editors from complaining about space-tab.
2993# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2994# splitting by setting IFS to empty value.)
2995IFS=" "" $as_nl"
2996
2997# Find who we are. Look in the path if we contain no directory separator.
2998as_myself=
2999case $0 in #((
3000 *[\\/]* ) as_myself=$0 ;;
3001 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3007 done
3008IFS=$as_save_IFS
3009
3010 ;;
3011esac
3012# We did not find ourselves, most probably we were run as `sh COMMAND'
3013# in which case we are not to be found in the path.
3014if test "x$as_myself" = x; then
3015 as_myself=$0
3016fi
3017if test ! -f "$as_myself"; then
3018 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3019 exit 1
3020fi
3021
3022# Unset variables that we do not need and which cause bugs (e.g. in
3023# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3024# suppresses any "Segmentation fault" message there. '((' could
3025# trigger a bug in pdksh 5.2.14.
3026for as_var in BASH_ENV ENV MAIL MAILPATH
3027do eval test x\${$as_var+set} = xset \
3028 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3029done
3030PS1='$ '
3031PS2='> '
3032PS4='+ '
3033
3034# NLS nuisances.
3035LC_ALL=C
3036export LC_ALL
3037LANGUAGE=C
3038export LANGUAGE
3039
3040# CDPATH.
3041(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3042
3043
3044# as_fn_error STATUS ERROR [LINENO LOG_FD]
3045# ----------------------------------------
3046# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3047# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3048# script with STATUS, using 1 if that was 0.
3049as_fn_error ()
3050{
3051 as_status=$1; test $as_status -eq 0 && as_status=1
3052 if test "$4"; then
3053 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3054 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3055 fi
3056 $as_echo "$as_me: error: $2" >&2
3057 as_fn_exit $as_status
3058} # as_fn_error
3059
3060
3061# as_fn_set_status STATUS
3062# -----------------------
3063# Set $? to STATUS, without forking.
3064as_fn_set_status ()
3065{
3066 return $1
3067} # as_fn_set_status
3068
3069# as_fn_exit STATUS
3070# -----------------
3071# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3072as_fn_exit ()
3073{
3074 set +e
3075 as_fn_set_status $1
3076 exit $1
3077} # as_fn_exit
3078
3079# as_fn_unset VAR
3080# ---------------
3081# Portably unset VAR.
3082as_fn_unset ()
3083{
3084 { eval $1=; unset $1;}
3085}
3086as_unset=as_fn_unset
3087# as_fn_append VAR VALUE
3088# ----------------------
3089# Append the text in VALUE to the end of the definition contained in VAR. Take
3090# advantage of any shell optimizations that allow amortized linear growth over
3091# repeated appends, instead of the typical quadratic growth present in naive
3092# implementations.
3093if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3094 eval 'as_fn_append ()
3095 {
3096 eval $1+=\$2
3097 }'
3098else
3099 as_fn_append ()
3100 {
3101 eval $1=\$$1\$2
3102 }
3103fi # as_fn_append
3104
3105# as_fn_arith ARG...
3106# ------------------
3107# Perform arithmetic evaluation on the ARGs, and store the result in the
3108# global $as_val. Take advantage of shells that can avoid forks. The arguments
3109# must be portable across $(()) and expr.
3110if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3111 eval 'as_fn_arith ()
3112 {
3113 as_val=$(( $* ))
3114 }'
3115else
3116 as_fn_arith ()
3117 {
3118 as_val=`expr "$@" || test $? -eq 1`
3119 }
3120fi # as_fn_arith
3121
3122
3123if expr a : '\(a\)' >/dev/null 2>&1 &&
3124 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3125 as_expr=expr
3126else
3127 as_expr=false
3128fi
3129
3130if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3131 as_basename=basename
3132else
3133 as_basename=false
3134fi
3135
3136if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3137 as_dirname=dirname
3138else
3139 as_dirname=false
3140fi
3141
3142as_me=`$as_basename -- "$0" ||
3143$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3144 X"$0" : 'X\(//\)$' \| \
3145 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3146$as_echo X/"$0" |
3147 sed '/^.*\/\([^/][^/]*\)\/*$/{
3148 s//\1/
3149 q
3150 }
3151 /^X\/\(\/\/\)$/{
3152 s//\1/
3153 q
3154 }
3155 /^X\/\(\/\).*/{
3156 s//\1/
3157 q
3158 }
3159 s/.*/./; q'`
3160
3161# Avoid depending upon Character Ranges.
3162as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3163as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3164as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3165as_cr_digits='0123456789'
3166as_cr_alnum=$as_cr_Letters$as_cr_digits
3167
3168ECHO_C= ECHO_N= ECHO_T=
3169case `echo -n x` in #(((((
3170-n*)
3171 case `echo 'xy\c'` in
3172 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3173 xy) ECHO_C='\c';;
3174 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3175 ECHO_T=' ';;
3176 esac;;
3177*)
3178 ECHO_N='-n';;
3179esac
3180
3181rm -f conf$$ conf$$.exe conf$$.file
3182if test -d conf$$.dir; then
3183 rm -f conf$$.dir/conf$$.file
3184else
3185 rm -f conf$$.dir
3186 mkdir conf$$.dir 2>/dev/null
3187fi
3188if (echo >conf$$.file) 2>/dev/null; then
3189 if ln -s conf$$.file conf$$ 2>/dev/null; then
3190 as_ln_s='ln -s'
3191 # ... but there are two gotchas:
3192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3194 # In both cases, we have to default to `cp -pR'.
3195 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3196 as_ln_s='cp -pR'
3197 elif ln conf$$.file conf$$ 2>/dev/null; then
3198 as_ln_s=ln
3199 else
3200 as_ln_s='cp -pR'
3201 fi
3202else
3203 as_ln_s='cp -pR'
3204fi
3205rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3206rmdir conf$$.dir 2>/dev/null
3207
3208
3209# as_fn_mkdir_p
3210# -------------
3211# Create "$as_dir" as a directory, including parents if necessary.
3212as_fn_mkdir_p ()
3213{
3214
3215 case $as_dir in #(
3216 -*) as_dir=./$as_dir;;
3217 esac
3218 test -d "$as_dir" || eval $as_mkdir_p || {
3219 as_dirs=
3220 while :; do
3221 case $as_dir in #(
3222 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3223 *) as_qdir=$as_dir;;
3224 esac
3225 as_dirs="'$as_qdir' $as_dirs"
3226 as_dir=`$as_dirname -- "$as_dir" ||
3227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3228 X"$as_dir" : 'X\(//\)[^/]' \| \
3229 X"$as_dir" : 'X\(//\)$' \| \
3230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3231$as_echo X"$as_dir" |
3232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3233 s//\1/
3234 q
3235 }
3236 /^X\(\/\/\)[^/].*/{
3237 s//\1/
3238 q
3239 }
3240 /^X\(\/\/\)$/{
3241 s//\1/
3242 q
3243 }
3244 /^X\(\/\).*/{
3245 s//\1/
3246 q
3247 }
3248 s/.*/./; q'`
3249 test -d "$as_dir" && break
3250 done
3251 test -z "$as_dirs" || eval "mkdir $as_dirs"
3252 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3253
3254
3255} # as_fn_mkdir_p
3256if mkdir -p . 2>/dev/null; then
3257 as_mkdir_p='mkdir -p "$as_dir"'
3258else
3259 test -d ./-p && rmdir ./-p
3260 as_mkdir_p=false
3261fi
3262
3263
3264# as_fn_executable_p FILE
3265# -----------------------
3266# Test if FILE is an executable regular file.
3267as_fn_executable_p ()
3268{
3269 test -f "$1" && test -x "$1"
3270} # as_fn_executable_p
3271as_test_x='test -x'
3272as_executable_p=as_fn_executable_p
3273
3274# Sed expression to map a string onto a valid CPP name.
3275as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3276
3277# Sed expression to map a string onto a valid variable name.
3278as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3279
3280
3281exec 6>&1
3282## ----------------------------------- ##
3283## Main body of $CONFIG_STATUS script. ##
3284## ----------------------------------- ##
3285_ASEOF
3286test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3287
3288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3289# Save the log message, to keep $0 and so on meaningful, and to
3290# report actual input values of CONFIG_FILES etc. instead of their
3291# values after options handling.
3292ac_log="
3293This file was extended by mediagoblin $as_me 0.4.0.dev, which was
3294generated by GNU Autoconf 2.69. Invocation command line was
3295
3296 CONFIG_FILES = $CONFIG_FILES
3297 CONFIG_HEADERS = $CONFIG_HEADERS
3298 CONFIG_LINKS = $CONFIG_LINKS
3299 CONFIG_COMMANDS = $CONFIG_COMMANDS
3300 $ $0 $@
3301
3302on `(hostname || uname -n) 2>/dev/null | sed 1q`
3303"
3304
3305_ACEOF
3306
3307case $ac_config_files in *"
3308"*) set x $ac_config_files; shift; ac_config_files=$*;;
3309esac
3310
3311
3312
3313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3314# Files that config.status was made for.
3315config_files="$ac_config_files"
3316
3317_ACEOF
3318
3319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3320ac_cs_usage="\
3321\`$as_me' instantiates files and other configuration actions
3322from templates according to the current configuration. Unless the files
3323and actions are specified as TAGs, all are instantiated by default.
3324
3325Usage: $0 [OPTION]... [TAG]...
3326
3327 -h, --help print this help, then exit
3328 -V, --version print version number and configuration settings, then exit
3329 --config print configuration, then exit
3330 -q, --quiet, --silent
3331 do not print progress messages
3332 -d, --debug don't remove temporary files
3333 --recheck update $as_me by reconfiguring in the same conditions
3334 --file=FILE[:TEMPLATE]
3335 instantiate the configuration file FILE
3336
3337Configuration files:
3338$config_files
3339
3340Report bugs to <cwebber@gnu.org>."
3341
3342_ACEOF
3343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3344ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3345ac_cs_version="\\
3346mediagoblin config.status 0.4.0.dev
3347configured by $0, generated by GNU Autoconf 2.69,
3348 with options \\"\$ac_cs_config\\"
3349
3350Copyright (C) 2012 Free Software Foundation, Inc.
3351This config.status script is free software; the Free Software Foundation
3352gives unlimited permission to copy, distribute and modify it."
3353
3354ac_pwd='$ac_pwd'
3355srcdir='$srcdir'
3356INSTALL='$INSTALL'
3357MKDIR_P='$MKDIR_P'
3358test -n "\$AWK" || AWK=awk
3359_ACEOF
3360
3361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3362# The default lists apply if the user does not specify any file.
3363ac_need_defaults=:
3364while test $# != 0
3365do
3366 case $1 in
3367 --*=?*)
3368 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3369 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3370 ac_shift=:
3371 ;;
3372 --*=)
3373 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3374 ac_optarg=
3375 ac_shift=:
3376 ;;
3377 *)
3378 ac_option=$1
3379 ac_optarg=$2
3380 ac_shift=shift
3381 ;;
3382 esac
3383
3384 case $ac_option in
3385 # Handling of the options.
3386 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3387 ac_cs_recheck=: ;;
3388 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3389 $as_echo "$ac_cs_version"; exit ;;
3390 --config | --confi | --conf | --con | --co | --c )
3391 $as_echo "$ac_cs_config"; exit ;;
3392 --debug | --debu | --deb | --de | --d | -d )
3393 debug=: ;;
3394 --file | --fil | --fi | --f )
3395 $ac_shift
3396 case $ac_optarg in
3397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3398 '') as_fn_error $? "missing file argument" ;;
3399 esac
3400 as_fn_append CONFIG_FILES " '$ac_optarg'"
3401 ac_need_defaults=false;;
3402 --he | --h | --help | --hel | -h )
3403 $as_echo "$ac_cs_usage"; exit ;;
3404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3406 ac_cs_silent=: ;;
3407
3408 # This is an error.
3409 -*) as_fn_error $? "unrecognized option: \`$1'
3410Try \`$0 --help' for more information." ;;
3411
3412 *) as_fn_append ac_config_targets " $1"
3413 ac_need_defaults=false ;;
3414
3415 esac
3416 shift
3417done
3418
3419ac_configure_extra_args=
3420
3421if $ac_cs_silent; then
3422 exec 6>/dev/null
3423 ac_configure_extra_args="$ac_configure_extra_args --silent"
3424fi
3425
3426_ACEOF
3427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3428if \$ac_cs_recheck; then
3429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3430 shift
3431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3432 CONFIG_SHELL='$SHELL'
3433 export CONFIG_SHELL
3434 exec "\$@"
3435fi
3436
3437_ACEOF
3438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3439exec 5>>config.log
3440{
3441 echo
3442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3443## Running $as_me. ##
3444_ASBOX
3445 $as_echo "$ac_log"
3446} >&5
3447
3448_ACEOF
3449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3450_ACEOF
3451
3452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3453
3454# Handling of arguments.
3455for ac_config_target in $ac_config_targets
3456do
3457 case $ac_config_target in
3458 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3459 "setup.py") CONFIG_FILES="$CONFIG_FILES setup.py" ;;
3460
3461 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3462 esac
3463done
3464
3465
3466# If the user did not use the arguments to specify the items to instantiate,
3467# then the envvar interface is used. Set only those that are not.
3468# We use the long form for the default assignment because of an extremely
3469# bizarre bug on SunOS 4.1.3.
3470if $ac_need_defaults; then
3471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3472fi
3473
3474# Have a temporary directory for convenience. Make it in the build tree
3475# simply because there is no reason against having it here, and in addition,
3476# creating and moving files from /tmp can sometimes cause problems.
3477# Hook for its removal unless debugging.
3478# Note that there is a small window in which the directory will not be cleaned:
3479# after its creation but before its name has been assigned to `$tmp'.
3480$debug ||
3481{
3482 tmp= ac_tmp=
3483 trap 'exit_status=$?
3484 : "${ac_tmp:=$tmp}"
3485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3486' 0
3487 trap 'as_fn_exit 1' 1 2 13 15
3488}
3489# Create a (secure) tmp directory for tmp files.
3490
3491{
3492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3493 test -d "$tmp"
3494} ||
3495{
3496 tmp=./conf$$-$RANDOM
3497 (umask 077 && mkdir "$tmp")
3498} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3499ac_tmp=$tmp
3500
3501# Set up the scripts for CONFIG_FILES section.
3502# No need to generate them if there are no CONFIG_FILES.
3503# This happens for instance with `./config.status config.h'.
3504if test -n "$CONFIG_FILES"; then
3505
3506
3507ac_cr=`echo X | tr X '\015'`
3508# On cygwin, bash can eat \r inside `` if the user requested igncr.
3509# But we know of no other shell where ac_cr would be empty at this
3510# point, so we can use a bashism as a fallback.
3511if test "x$ac_cr" = x; then
3512 eval ac_cr=\$\'\\r\'
3513fi
3514ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3515if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3516 ac_cs_awk_cr='\\r'
3517else
3518 ac_cs_awk_cr=$ac_cr
3519fi
3520
3521echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3522_ACEOF
3523
3524
3525{
3526 echo "cat >conf$$subs.awk <<_ACEOF" &&
3527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3528 echo "_ACEOF"
3529} >conf$$subs.sh ||
3530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3531ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3532ac_delim='%!_!# '
3533for ac_last_try in false false false false false :; do
3534 . ./conf$$subs.sh ||
3535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3536
3537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3538 if test $ac_delim_n = $ac_delim_num; then
3539 break
3540 elif $ac_last_try; then
3541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3542 else
3543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3544 fi
3545done
3546rm -f conf$$subs.sh
3547
3548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3549cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3550_ACEOF
3551sed -n '
3552h
3553s/^/S["/; s/!.*/"]=/
3554p
3555g
3556s/^[^!]*!//
3557:repl
3558t repl
3559s/'"$ac_delim"'$//
3560t delim
3561:nl
3562h
3563s/\(.\{148\}\)..*/\1/
3564t more1
3565s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3566p
3567n
3568b repl
3569:more1
3570s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3571p
3572g
3573s/.\{148\}//
3574t nl
3575:delim
3576h
3577s/\(.\{148\}\)..*/\1/
3578t more2
3579s/["\\]/\\&/g; s/^/"/; s/$/"/
3580p
3581b
3582:more2
3583s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3584p
3585g
3586s/.\{148\}//
3587t delim
3588' <conf$$subs.awk | sed '
3589/^[^""]/{
3590 N
3591 s/\n//
3592}
3593' >>$CONFIG_STATUS || ac_write_fail=1
3594rm -f conf$$subs.awk
3595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3596_ACAWK
3597cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3598 for (key in S) S_is_set[key] = 1
3599 FS = "\a"
3600
3601}
3602{
3603 line = $ 0
3604 nfields = split(line, field, "@")
3605 substed = 0
3606 len = length(field[1])
3607 for (i = 2; i < nfields; i++) {
3608 key = field[i]
3609 keylen = length(key)
3610 if (S_is_set[key]) {
3611 value = S[key]
3612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3613 len += length(value) + length(field[++i])
3614 substed = 1
3615 } else
3616 len += 1 + keylen
3617 }
3618
3619 print line
3620}
3621
3622_ACAWK
3623_ACEOF
3624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3625if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3626 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3627else
3628 cat
3629fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3630 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3631_ACEOF
3632
3633# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3634# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3635# trailing colons and then remove the whole line if VPATH becomes empty
3636# (actually we leave an empty line to preserve line numbers).
3637if test "x$srcdir" = x.; then
3638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3639h
3640s///
3641s/^/:/
3642s/[ ]*$/:/
3643s/:\$(srcdir):/:/g
3644s/:\${srcdir}:/:/g
3645s/:@srcdir@:/:/g
3646s/^:*//
3647s/:*$//
3648x
3649s/\(=[ ]*\).*/\1/
3650G
3651s/\n//
3652s/^[^=]*=[ ]*$//
3653}'
3654fi
3655
3656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3657fi # test -n "$CONFIG_FILES"
3658
3659
3660eval set X " :F $CONFIG_FILES "
3661shift
3662for ac_tag
3663do
3664 case $ac_tag in
3665 :[FHLC]) ac_mode=$ac_tag; continue;;
3666 esac
3667 case $ac_mode$ac_tag in
3668 :[FHL]*:*);;
3669 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3670 :[FH]-) ac_tag=-:-;;
3671 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3672 esac
3673 ac_save_IFS=$IFS
3674 IFS=:
3675 set x $ac_tag
3676 IFS=$ac_save_IFS
3677 shift
3678 ac_file=$1
3679 shift
3680
3681 case $ac_mode in
3682 :L) ac_source=$1;;
3683 :[FH])
3684 ac_file_inputs=
3685 for ac_f
3686 do
3687 case $ac_f in
3688 -) ac_f="$ac_tmp/stdin";;
3689 *) # Look for the file first in the build tree, then in the source tree
3690 # (if the path is not absolute). The absolute path cannot be DOS-style,
3691 # because $ac_f cannot contain `:'.
3692 test -f "$ac_f" ||
3693 case $ac_f in
3694 [\\/$]*) false;;
3695 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3696 esac ||
3697 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3698 esac
3699 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3700 as_fn_append ac_file_inputs " '$ac_f'"
3701 done
3702
3703 # Let's still pretend it is `configure' which instantiates (i.e., don't
3704 # use $as_me), people would be surprised to read:
3705 # /* config.h. Generated by config.status. */
3706 configure_input='Generated from '`
3707 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3708 `' by configure.'
3709 if test x"$ac_file" != x-; then
3710 configure_input="$ac_file. $configure_input"
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3712$as_echo "$as_me: creating $ac_file" >&6;}
3713 fi
3714 # Neutralize special characters interpreted by sed in replacement strings.
3715 case $configure_input in #(
3716 *\&* | *\|* | *\\* )
3717 ac_sed_conf_input=`$as_echo "$configure_input" |
3718 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3719 *) ac_sed_conf_input=$configure_input;;
3720 esac
3721
3722 case $ac_tag in
3723 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3725 esac
3726 ;;
3727 esac
3728
3729 ac_dir=`$as_dirname -- "$ac_file" ||
3730$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3731 X"$ac_file" : 'X\(//\)[^/]' \| \
3732 X"$ac_file" : 'X\(//\)$' \| \
3733 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3734$as_echo X"$ac_file" |
3735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3736 s//\1/
3737 q
3738 }
3739 /^X\(\/\/\)[^/].*/{
3740 s//\1/
3741 q
3742 }
3743 /^X\(\/\/\)$/{
3744 s//\1/
3745 q
3746 }
3747 /^X\(\/\).*/{
3748 s//\1/
3749 q
3750 }
3751 s/.*/./; q'`
3752 as_dir="$ac_dir"; as_fn_mkdir_p
3753 ac_builddir=.
3754
3755case "$ac_dir" in
3756.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3757*)
3758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3759 # A ".." for each directory in $ac_dir_suffix.
3760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3761 case $ac_top_builddir_sub in
3762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3764 esac ;;
3765esac
3766ac_abs_top_builddir=$ac_pwd
3767ac_abs_builddir=$ac_pwd$ac_dir_suffix
3768# for backward compatibility:
3769ac_top_builddir=$ac_top_build_prefix
3770
3771case $srcdir in
3772 .) # We are building in place.
3773 ac_srcdir=.
3774 ac_top_srcdir=$ac_top_builddir_sub
3775 ac_abs_top_srcdir=$ac_pwd ;;
3776 [\\/]* | ?:[\\/]* ) # Absolute name.
3777 ac_srcdir=$srcdir$ac_dir_suffix;
3778 ac_top_srcdir=$srcdir
3779 ac_abs_top_srcdir=$srcdir ;;
3780 *) # Relative name.
3781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3782 ac_top_srcdir=$ac_top_build_prefix$srcdir
3783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3784esac
3785ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3786
3787
3788 case $ac_mode in
3789 :F)
3790 #
3791 # CONFIG_FILE
3792 #
3793
3794 case $INSTALL in
3795 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3796 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3797 esac
3798 ac_MKDIR_P=$MKDIR_P
3799 case $MKDIR_P in
3800 [\\/$]* | ?:[\\/]* ) ;;
3801 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
3802 esac
3803_ACEOF
3804
3805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3806# If the template does not know about datarootdir, expand it.
3807# FIXME: This hack should be removed a few years after 2.60.
3808ac_datarootdir_hack=; ac_datarootdir_seen=
3809ac_sed_dataroot='
3810/datarootdir/ {
3811 p
3812 q
3813}
3814/@datadir@/p
3815/@docdir@/p
3816/@infodir@/p
3817/@localedir@/p
3818/@mandir@/p'
3819case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3820*datarootdir*) ac_datarootdir_seen=yes;;
3821*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3823$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3824_ACEOF
3825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3826 ac_datarootdir_hack='
3827 s&@datadir@&$datadir&g
3828 s&@docdir@&$docdir&g
3829 s&@infodir@&$infodir&g
3830 s&@localedir@&$localedir&g
3831 s&@mandir@&$mandir&g
3832 s&\\\${datarootdir}&$datarootdir&g' ;;
3833esac
3834_ACEOF
3835
3836# Neutralize VPATH when `$srcdir' = `.'.
3837# Shell code in configure.ac might set extrasub.
3838# FIXME: do we really want to maintain this feature?
3839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3840ac_sed_extra="$ac_vpsub
3841$extrasub
3842_ACEOF
3843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3844:t
3845/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3846s|@configure_input@|$ac_sed_conf_input|;t t
3847s&@top_builddir@&$ac_top_builddir_sub&;t t
3848s&@top_build_prefix@&$ac_top_build_prefix&;t t
3849s&@srcdir@&$ac_srcdir&;t t
3850s&@abs_srcdir@&$ac_abs_srcdir&;t t
3851s&@top_srcdir@&$ac_top_srcdir&;t t
3852s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3853s&@builddir@&$ac_builddir&;t t
3854s&@abs_builddir@&$ac_abs_builddir&;t t
3855s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3856s&@INSTALL@&$ac_INSTALL&;t t
3857s&@MKDIR_P@&$ac_MKDIR_P&;t t
3858$ac_datarootdir_hack
3859"
3860eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3861 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3862
3863test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3864 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3865 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3866 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3868which seems to be undefined. Please make sure it is defined" >&5
3869$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3870which seems to be undefined. Please make sure it is defined" >&2;}
3871
3872 rm -f "$ac_tmp/stdin"
3873 case $ac_file in
3874 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3875 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3876 esac \
3877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3878 ;;
3879
3880
3881
3882 esac
3883
3884done # for ac_tag
3885
3886
3887as_fn_exit 0
3888_ACEOF
3889ac_clean_files=$ac_clean_files_save
3890
3891test $ac_write_fail = 0 ||
3892 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3893
3894
3895# configure is writing to config.log, and then calls config.status.
3896# config.status does its own redirection, appending to config.log.
3897# Unfortunately, on DOS this fails, as config.log is still kept open
3898# by configure, so config.status won't be able to write to it; its
3899# output is simply discarded. So we exec the FD to /dev/null,
3900# effectively closing config.log, so it can be properly (re)opened and
3901# appended to by config.status. When coming back to configure, we
3902# need to make the FD available again.
3903if test "$no_create" != yes; then
3904 ac_cs_success=:
3905 ac_config_status_args=
3906 test "$silent" = yes &&
3907 ac_config_status_args="$ac_config_status_args --quiet"
3908 exec 5>/dev/null
3909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3910 exec 5>>config.log
3911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3912 # would make configure fail if this is the last instruction.
3913 $ac_cs_success || as_fn_exit 1
3914fi
3915if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3917$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3918fi
3919