Annotation of OpenXM/src/ox_python/configure, Revision 1.2
1.1 takayama 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.69.
4: #
5: #
6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7: #
8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
14:
15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18: emulate sh
19: NULLCMD=:
20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81:
82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199: if (eval "$as_required") 2>/dev/null; then :
200: as_have_required=yes
201: else
202: as_have_required=no
203: fi
204: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205:
206: else
207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208: as_found=false
209: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210: do
211: IFS=$as_save_IFS
212: test -z "$as_dir" && as_dir=.
213: as_found=:
214: case $as_dir in #(
215: /*)
216: for as_base in sh bash ksh sh5; do
217: # Try only shells that exist, to save several forks.
218: as_shell=$as_dir/$as_base
219: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221: CONFIG_SHELL=$as_shell as_have_required=yes
222: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223: break 2
224: fi
225: fi
226: done;;
227: esac
228: as_found=false
229: done
230: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232: CONFIG_SHELL=$SHELL as_have_required=yes
233: fi; }
234: IFS=$as_save_IFS
235:
236:
237: if test "x$CONFIG_SHELL" != x; then :
238: export CONFIG_SHELL
239: # We cannot yet assume a decent shell, so we have to provide a
240: # neutralization value for shells without unset; and this also
241: # works around shells that cannot unset nonexistent variables.
242: # Preserve -v and -x to the replacement shell.
243: BASH_ENV=/dev/null
244: ENV=/dev/null
245: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246: case $- in # ((((
247: *v*x* | *x*v* ) as_opts=-vx ;;
248: *v* ) as_opts=-v ;;
249: *x* ) as_opts=-x ;;
250: * ) as_opts= ;;
251: esac
252: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253: # Admittedly, this is quite paranoid, since all the known shells bail
254: # out after a failed `exec'.
255: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256: exit 255
257: fi
258:
259: if test x$as_have_required = xno; then :
260: $as_echo "$0: This script requires a shell more modern than all"
261: $as_echo "$0: the shells that I found on your system."
262: if test x${ZSH_VERSION+set} = xset ; then
263: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265: else
266: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267: $0: including any error possibly output before this
268: $0: message. Then install a modern shell, or manually run
269: $0: the script under such a shell if you do have one."
270: fi
271: exit 1
272: fi
273: fi
274: fi
275: SHELL=${CONFIG_SHELL-/bin/sh}
276: export SHELL
277: # Unset more variables known to interfere with behavior of common tools.
278: CLICOLOR_FORCE= GREP_OPTIONS=
279: unset CLICOLOR_FORCE GREP_OPTIONS
280:
281: ## --------------------- ##
282: ## M4sh Shell Functions. ##
283: ## --------------------- ##
284: # as_fn_unset VAR
285: # ---------------
286: # Portably unset VAR.
287: as_fn_unset ()
288: {
289: { eval $1=; unset $1;}
290: }
291: as_unset=as_fn_unset
292:
293: # as_fn_set_status STATUS
294: # -----------------------
295: # Set $? to STATUS, without forking.
296: as_fn_set_status ()
297: {
298: return $1
299: } # as_fn_set_status
300:
301: # as_fn_exit STATUS
302: # -----------------
303: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304: as_fn_exit ()
305: {
306: set +e
307: as_fn_set_status $1
308: exit $1
309: } # as_fn_exit
310:
311: # as_fn_mkdir_p
312: # -------------
313: # Create "$as_dir" as a directory, including parents if necessary.
314: as_fn_mkdir_p ()
315: {
316:
317: case $as_dir in #(
318: -*) as_dir=./$as_dir;;
319: esac
320: test -d "$as_dir" || eval $as_mkdir_p || {
321: as_dirs=
322: while :; do
323: case $as_dir in #(
324: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325: *) as_qdir=$as_dir;;
326: esac
327: as_dirs="'$as_qdir' $as_dirs"
328: as_dir=`$as_dirname -- "$as_dir" ||
329: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330: X"$as_dir" : 'X\(//\)[^/]' \| \
331: X"$as_dir" : 'X\(//\)$' \| \
332: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333: $as_echo X"$as_dir" |
334: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335: s//\1/
336: q
337: }
338: /^X\(\/\/\)[^/].*/{
339: s//\1/
340: q
341: }
342: /^X\(\/\/\)$/{
343: s//\1/
344: q
345: }
346: /^X\(\/\).*/{
347: s//\1/
348: q
349: }
350: s/.*/./; q'`
351: test -d "$as_dir" && break
352: done
353: test -z "$as_dirs" || eval "mkdir $as_dirs"
354: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355:
356:
357: } # as_fn_mkdir_p
358:
359: # as_fn_executable_p FILE
360: # -----------------------
361: # Test if FILE is an executable regular file.
362: as_fn_executable_p ()
363: {
364: test -f "$1" && test -x "$1"
365: } # as_fn_executable_p
366: # as_fn_append VAR VALUE
367: # ----------------------
368: # Append the text in VALUE to the end of the definition contained in VAR. Take
369: # advantage of any shell optimizations that allow amortized linear growth over
370: # repeated appends, instead of the typical quadratic growth present in naive
371: # implementations.
372: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373: eval 'as_fn_append ()
374: {
375: eval $1+=\$2
376: }'
377: else
378: as_fn_append ()
379: {
380: eval $1=\$$1\$2
381: }
382: fi # as_fn_append
383:
384: # as_fn_arith ARG...
385: # ------------------
386: # Perform arithmetic evaluation on the ARGs, and store the result in the
387: # global $as_val. Take advantage of shells that can avoid forks. The arguments
388: # must be portable across $(()) and expr.
389: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390: eval 'as_fn_arith ()
391: {
392: as_val=$(( $* ))
393: }'
394: else
395: as_fn_arith ()
396: {
397: as_val=`expr "$@" || test $? -eq 1`
398: }
399: fi # as_fn_arith
400:
401:
402: # as_fn_error STATUS ERROR [LINENO LOG_FD]
403: # ----------------------------------------
404: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406: # script with STATUS, using 1 if that was 0.
407: as_fn_error ()
408: {
409: as_status=$1; test $as_status -eq 0 && as_status=1
410: if test "$4"; then
411: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413: fi
414: $as_echo "$as_me: error: $2" >&2
415: as_fn_exit $as_status
416: } # as_fn_error
417:
418: if expr a : '\(a\)' >/dev/null 2>&1 &&
419: test "X`expr 00001 : '.*\(...\)'`" = X001; then
420: as_expr=expr
421: else
422: as_expr=false
423: fi
424:
425: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426: as_basename=basename
427: else
428: as_basename=false
429: fi
430:
431: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432: as_dirname=dirname
433: else
434: as_dirname=false
435: fi
436:
437: as_me=`$as_basename -- "$0" ||
438: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439: X"$0" : 'X\(//\)$' \| \
440: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441: $as_echo X/"$0" |
442: sed '/^.*\/\([^/][^/]*\)\/*$/{
443: s//\1/
444: q
445: }
446: /^X\/\(\/\/\)$/{
447: s//\1/
448: q
449: }
450: /^X\/\(\/\).*/{
451: s//\1/
452: q
453: }
454: s/.*/./; q'`
455:
456: # Avoid depending upon Character Ranges.
457: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460: as_cr_digits='0123456789'
461: as_cr_alnum=$as_cr_Letters$as_cr_digits
462:
463:
464: as_lineno_1=$LINENO as_lineno_1a=$LINENO
465: as_lineno_2=$LINENO as_lineno_2a=$LINENO
466: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
469: sed -n '
470: p
471: /[$]LINENO/=
472: ' <$as_myself |
473: sed '
474: s/[$]LINENO.*/&-/
475: t lineno
476: b
477: :lineno
478: N
479: :loop
480: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481: t loop
482: s/-\n.*//
483: ' >$as_me.lineno &&
484: chmod +x "$as_me.lineno" ||
485: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486:
487: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488: # already done that, so ensure we don't try to do so again and fall
489: # in an infinite loop. This has already happened in practice.
490: _as_can_reexec=no; export _as_can_reexec
491: # Don't try to exec as it changes $[0], causing all sort of problems
492: # (the dirname of $[0] is not the place where we might find the
493: # original and so on. Autoconf is especially sensitive to this).
494: . "./$as_me.lineno"
495: # Exit status is that of the last command.
496: exit
497: }
498:
499: ECHO_C= ECHO_N= ECHO_T=
500: case `echo -n x` in #(((((
501: -n*)
502: case `echo 'xy\c'` in
503: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504: xy) ECHO_C='\c';;
505: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
506: ECHO_T=' ';;
507: esac;;
508: *)
509: ECHO_N='-n';;
510: esac
511:
512: rm -f conf$$ conf$$.exe conf$$.file
513: if test -d conf$$.dir; then
514: rm -f conf$$.dir/conf$$.file
515: else
516: rm -f conf$$.dir
517: mkdir conf$$.dir 2>/dev/null
518: fi
519: if (echo >conf$$.file) 2>/dev/null; then
520: if ln -s conf$$.file conf$$ 2>/dev/null; then
521: as_ln_s='ln -s'
522: # ... but there are two gotchas:
523: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525: # In both cases, we have to default to `cp -pR'.
526: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527: as_ln_s='cp -pR'
528: elif ln conf$$.file conf$$ 2>/dev/null; then
529: as_ln_s=ln
530: else
531: as_ln_s='cp -pR'
532: fi
533: else
534: as_ln_s='cp -pR'
535: fi
536: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537: rmdir conf$$.dir 2>/dev/null
538:
539: if mkdir -p . 2>/dev/null; then
540: as_mkdir_p='mkdir -p "$as_dir"'
541: else
542: test -d ./-p && rmdir ./-p
543: as_mkdir_p=false
544: fi
545:
546: as_test_x='test -x'
547: as_executable_p=as_fn_executable_p
548:
549: # Sed expression to map a string onto a valid CPP name.
550: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551:
552: # Sed expression to map a string onto a valid variable name.
553: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554:
555:
556: test -n "$DJDIR" || exec 7<&0 </dev/null
557: exec 6>&1
558:
559: # Name of the host.
560: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561: # so uname gets run too.
562: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563:
564: #
565: # Initializations.
566: #
567: ac_default_prefix=/usr/local
568: ac_clean_files=
569: ac_config_libobj_dir=.
570: LIBOBJS=
571: cross_compiling=no
572: subdirs=
573: MFLAGS=
574: MAKEFLAGS=
575:
576: # Identity of this package.
577: PACKAGE_NAME=
578: PACKAGE_TARNAME=
579: PACKAGE_VERSION=
580: PACKAGE_STRING=
581: PACKAGE_BUGREPORT=
582: PACKAGE_URL=
583:
584: ac_subst_vars='LTLIBOBJS
585: LIBOBJS
586: TARGET
587: X_EXTRA_LIBS
588: X_LIBS
589: X_PRE_LIBS
590: X_CFLAGS
591: CPP
592: XMKMF
593: LN_S
594: INSTALL_DATA
595: INSTALL_SCRIPT
596: INSTALL_PROGRAM
597: OBJEXT
598: EXEEXT
599: ac_ct_CC
600: CPPFLAGS
601: LDFLAGS
602: CFLAGS
603: CC
604: target_os
605: target_vendor
606: target_cpu
607: target
608: host_os
609: host_vendor
610: host_cpu
611: host
612: build_os
613: build_vendor
614: build_cpu
615: build
616: target_alias
617: host_alias
618: build_alias
619: LIBS
620: ECHO_T
621: ECHO_N
622: ECHO_C
623: DEFS
624: mandir
625: localedir
626: libdir
627: psdir
628: pdfdir
629: dvidir
630: htmldir
631: infodir
632: docdir
633: oldincludedir
634: includedir
1.2 ! takayama 635: runstatedir
1.1 takayama 636: localstatedir
637: sharedstatedir
638: sysconfdir
639: datadir
640: datarootdir
641: libexecdir
642: sbindir
643: bindir
644: program_transform_name
645: prefix
646: exec_prefix
647: PACKAGE_URL
648: PACKAGE_BUGREPORT
649: PACKAGE_STRING
650: PACKAGE_VERSION
651: PACKAGE_TARNAME
652: PACKAGE_NAME
653: PATH_SEPARATOR
654: SHELL'
655: ac_subst_files=''
656: ac_user_opts='
657: enable_option_checking
658: with_x
659: '
660: ac_precious_vars='build_alias
661: host_alias
662: target_alias
663: CC
664: CFLAGS
665: LDFLAGS
666: LIBS
667: CPPFLAGS
668: XMKMF
669: CPP'
670:
671:
672: # Initialize some variables set by options.
673: ac_init_help=
674: ac_init_version=false
675: ac_unrecognized_opts=
676: ac_unrecognized_sep=
677: # The variables have the same names as the options, with
678: # dashes changed to underlines.
679: cache_file=/dev/null
680: exec_prefix=NONE
681: no_create=
682: no_recursion=
683: prefix=NONE
684: program_prefix=NONE
685: program_suffix=NONE
686: program_transform_name=s,x,x,
687: silent=
688: site=
689: srcdir=
690: verbose=
691: x_includes=NONE
692: x_libraries=NONE
693:
694: # Installation directory options.
695: # These are left unexpanded so users can "make install exec_prefix=/foo"
696: # and all the variables that are supposed to be based on exec_prefix
697: # by default will actually change.
698: # Use braces instead of parens because sh, perl, etc. also accept them.
699: # (The list follows the same order as the GNU Coding Standards.)
700: bindir='${exec_prefix}/bin'
701: sbindir='${exec_prefix}/sbin'
702: libexecdir='${exec_prefix}/libexec'
703: datarootdir='${prefix}/share'
704: datadir='${datarootdir}'
705: sysconfdir='${prefix}/etc'
706: sharedstatedir='${prefix}/com'
707: localstatedir='${prefix}/var'
1.2 ! takayama 708: runstatedir='${localstatedir}/run'
1.1 takayama 709: includedir='${prefix}/include'
710: oldincludedir='/usr/include'
711: docdir='${datarootdir}/doc/${PACKAGE}'
712: infodir='${datarootdir}/info'
713: htmldir='${docdir}'
714: dvidir='${docdir}'
715: pdfdir='${docdir}'
716: psdir='${docdir}'
717: libdir='${exec_prefix}/lib'
718: localedir='${datarootdir}/locale'
719: mandir='${datarootdir}/man'
720:
721: ac_prev=
722: ac_dashdash=
723: for ac_option
724: do
725: # If the previous option needs an argument, assign it.
726: if test -n "$ac_prev"; then
727: eval $ac_prev=\$ac_option
728: ac_prev=
729: continue
730: fi
731:
732: case $ac_option in
733: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
734: *=) ac_optarg= ;;
735: *) ac_optarg=yes ;;
736: esac
737:
738: # Accept the important Cygnus configure options, so we can diagnose typos.
739:
740: case $ac_dashdash$ac_option in
741: --)
742: ac_dashdash=yes ;;
743:
744: -bindir | --bindir | --bindi | --bind | --bin | --bi)
745: ac_prev=bindir ;;
746: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
747: bindir=$ac_optarg ;;
748:
749: -build | --build | --buil | --bui | --bu)
750: ac_prev=build_alias ;;
751: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
752: build_alias=$ac_optarg ;;
753:
754: -cache-file | --cache-file | --cache-fil | --cache-fi \
755: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
756: ac_prev=cache_file ;;
757: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
758: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
759: cache_file=$ac_optarg ;;
760:
761: --config-cache | -C)
762: cache_file=config.cache ;;
763:
764: -datadir | --datadir | --datadi | --datad)
765: ac_prev=datadir ;;
766: -datadir=* | --datadir=* | --datadi=* | --datad=*)
767: datadir=$ac_optarg ;;
768:
769: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
770: | --dataroo | --dataro | --datar)
771: ac_prev=datarootdir ;;
772: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
773: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
774: datarootdir=$ac_optarg ;;
775:
776: -disable-* | --disable-*)
777: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
778: # Reject names that are not valid shell variable names.
779: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
780: as_fn_error $? "invalid feature name: $ac_useropt"
781: ac_useropt_orig=$ac_useropt
782: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
783: case $ac_user_opts in
784: *"
785: "enable_$ac_useropt"
786: "*) ;;
787: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
788: ac_unrecognized_sep=', ';;
789: esac
790: eval enable_$ac_useropt=no ;;
791:
792: -docdir | --docdir | --docdi | --doc | --do)
793: ac_prev=docdir ;;
794: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
795: docdir=$ac_optarg ;;
796:
797: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
798: ac_prev=dvidir ;;
799: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
800: dvidir=$ac_optarg ;;
801:
802: -enable-* | --enable-*)
803: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
804: # Reject names that are not valid shell variable names.
805: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
806: as_fn_error $? "invalid feature name: $ac_useropt"
807: ac_useropt_orig=$ac_useropt
808: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
809: case $ac_user_opts in
810: *"
811: "enable_$ac_useropt"
812: "*) ;;
813: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
814: ac_unrecognized_sep=', ';;
815: esac
816: eval enable_$ac_useropt=\$ac_optarg ;;
817:
818: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
819: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
820: | --exec | --exe | --ex)
821: ac_prev=exec_prefix ;;
822: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
823: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
824: | --exec=* | --exe=* | --ex=*)
825: exec_prefix=$ac_optarg ;;
826:
827: -gas | --gas | --ga | --g)
828: # Obsolete; use --with-gas.
829: with_gas=yes ;;
830:
831: -help | --help | --hel | --he | -h)
832: ac_init_help=long ;;
833: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
834: ac_init_help=recursive ;;
835: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
836: ac_init_help=short ;;
837:
838: -host | --host | --hos | --ho)
839: ac_prev=host_alias ;;
840: -host=* | --host=* | --hos=* | --ho=*)
841: host_alias=$ac_optarg ;;
842:
843: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
844: ac_prev=htmldir ;;
845: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
846: | --ht=*)
847: htmldir=$ac_optarg ;;
848:
849: -includedir | --includedir | --includedi | --included | --include \
850: | --includ | --inclu | --incl | --inc)
851: ac_prev=includedir ;;
852: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
853: | --includ=* | --inclu=* | --incl=* | --inc=*)
854: includedir=$ac_optarg ;;
855:
856: -infodir | --infodir | --infodi | --infod | --info | --inf)
857: ac_prev=infodir ;;
858: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
859: infodir=$ac_optarg ;;
860:
861: -libdir | --libdir | --libdi | --libd)
862: ac_prev=libdir ;;
863: -libdir=* | --libdir=* | --libdi=* | --libd=*)
864: libdir=$ac_optarg ;;
865:
866: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
867: | --libexe | --libex | --libe)
868: ac_prev=libexecdir ;;
869: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
870: | --libexe=* | --libex=* | --libe=*)
871: libexecdir=$ac_optarg ;;
872:
873: -localedir | --localedir | --localedi | --localed | --locale)
874: ac_prev=localedir ;;
875: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
876: localedir=$ac_optarg ;;
877:
878: -localstatedir | --localstatedir | --localstatedi | --localstated \
879: | --localstate | --localstat | --localsta | --localst | --locals)
880: ac_prev=localstatedir ;;
881: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
882: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
883: localstatedir=$ac_optarg ;;
884:
885: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
886: ac_prev=mandir ;;
887: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
888: mandir=$ac_optarg ;;
889:
890: -nfp | --nfp | --nf)
891: # Obsolete; use --without-fp.
892: with_fp=no ;;
893:
894: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
895: | --no-cr | --no-c | -n)
896: no_create=yes ;;
897:
898: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
899: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
900: no_recursion=yes ;;
901:
902: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
903: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
904: | --oldin | --oldi | --old | --ol | --o)
905: ac_prev=oldincludedir ;;
906: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
907: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
908: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
909: oldincludedir=$ac_optarg ;;
910:
911: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
912: ac_prev=prefix ;;
913: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
914: prefix=$ac_optarg ;;
915:
916: -program-prefix | --program-prefix | --program-prefi | --program-pref \
917: | --program-pre | --program-pr | --program-p)
918: ac_prev=program_prefix ;;
919: -program-prefix=* | --program-prefix=* | --program-prefi=* \
920: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
921: program_prefix=$ac_optarg ;;
922:
923: -program-suffix | --program-suffix | --program-suffi | --program-suff \
924: | --program-suf | --program-su | --program-s)
925: ac_prev=program_suffix ;;
926: -program-suffix=* | --program-suffix=* | --program-suffi=* \
927: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
928: program_suffix=$ac_optarg ;;
929:
930: -program-transform-name | --program-transform-name \
931: | --program-transform-nam | --program-transform-na \
932: | --program-transform-n | --program-transform- \
933: | --program-transform | --program-transfor \
934: | --program-transfo | --program-transf \
935: | --program-trans | --program-tran \
936: | --progr-tra | --program-tr | --program-t)
937: ac_prev=program_transform_name ;;
938: -program-transform-name=* | --program-transform-name=* \
939: | --program-transform-nam=* | --program-transform-na=* \
940: | --program-transform-n=* | --program-transform-=* \
941: | --program-transform=* | --program-transfor=* \
942: | --program-transfo=* | --program-transf=* \
943: | --program-trans=* | --program-tran=* \
944: | --progr-tra=* | --program-tr=* | --program-t=*)
945: program_transform_name=$ac_optarg ;;
946:
947: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
948: ac_prev=pdfdir ;;
949: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
950: pdfdir=$ac_optarg ;;
951:
952: -psdir | --psdir | --psdi | --psd | --ps)
953: ac_prev=psdir ;;
954: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
955: psdir=$ac_optarg ;;
956:
957: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
958: | -silent | --silent | --silen | --sile | --sil)
959: silent=yes ;;
960:
1.2 ! takayama 961: -runstatedir | --runstatedir | --runstatedi | --runstated \
! 962: | --runstate | --runstat | --runsta | --runst | --runs \
! 963: | --run | --ru | --r)
! 964: ac_prev=runstatedir ;;
! 965: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
! 966: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
! 967: | --run=* | --ru=* | --r=*)
! 968: runstatedir=$ac_optarg ;;
! 969:
1.1 takayama 970: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
971: ac_prev=sbindir ;;
972: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
973: | --sbi=* | --sb=*)
974: sbindir=$ac_optarg ;;
975:
976: -sharedstatedir | --sharedstatedir | --sharedstatedi \
977: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
978: | --sharedst | --shareds | --shared | --share | --shar \
979: | --sha | --sh)
980: ac_prev=sharedstatedir ;;
981: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
982: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
983: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
984: | --sha=* | --sh=*)
985: sharedstatedir=$ac_optarg ;;
986:
987: -site | --site | --sit)
988: ac_prev=site ;;
989: -site=* | --site=* | --sit=*)
990: site=$ac_optarg ;;
991:
992: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
993: ac_prev=srcdir ;;
994: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
995: srcdir=$ac_optarg ;;
996:
997: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
998: | --syscon | --sysco | --sysc | --sys | --sy)
999: ac_prev=sysconfdir ;;
1000: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1001: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1002: sysconfdir=$ac_optarg ;;
1003:
1004: -target | --target | --targe | --targ | --tar | --ta | --t)
1005: ac_prev=target_alias ;;
1006: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1007: target_alias=$ac_optarg ;;
1008:
1009: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1010: verbose=yes ;;
1011:
1012: -version | --version | --versio | --versi | --vers | -V)
1013: ac_init_version=: ;;
1014:
1015: -with-* | --with-*)
1016: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1017: # Reject names that are not valid shell variable names.
1018: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019: as_fn_error $? "invalid package name: $ac_useropt"
1020: ac_useropt_orig=$ac_useropt
1021: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022: case $ac_user_opts in
1023: *"
1024: "with_$ac_useropt"
1025: "*) ;;
1026: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1027: ac_unrecognized_sep=', ';;
1028: esac
1029: eval with_$ac_useropt=\$ac_optarg ;;
1030:
1031: -without-* | --without-*)
1032: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1033: # Reject names that are not valid shell variable names.
1034: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035: as_fn_error $? "invalid package name: $ac_useropt"
1036: ac_useropt_orig=$ac_useropt
1037: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038: case $ac_user_opts in
1039: *"
1040: "with_$ac_useropt"
1041: "*) ;;
1042: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1043: ac_unrecognized_sep=', ';;
1044: esac
1045: eval with_$ac_useropt=no ;;
1046:
1047: --x)
1048: # Obsolete; use --with-x.
1049: with_x=yes ;;
1050:
1051: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052: | --x-incl | --x-inc | --x-in | --x-i)
1053: ac_prev=x_includes ;;
1054: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056: x_includes=$ac_optarg ;;
1057:
1058: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060: ac_prev=x_libraries ;;
1061: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063: x_libraries=$ac_optarg ;;
1064:
1065: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1066: Try \`$0 --help' for more information"
1067: ;;
1068:
1069: *=*)
1070: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071: # Reject names that are not valid shell variable names.
1072: case $ac_envvar in #(
1073: '' | [0-9]* | *[!_$as_cr_alnum]* )
1074: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1075: esac
1076: eval $ac_envvar=\$ac_optarg
1077: export $ac_envvar ;;
1078:
1079: *)
1080: # FIXME: should be removed in autoconf 3.0.
1081: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1085: ;;
1086:
1087: esac
1088: done
1089:
1090: if test -n "$ac_prev"; then
1091: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092: as_fn_error $? "missing argument to $ac_option"
1093: fi
1094:
1095: if test -n "$ac_unrecognized_opts"; then
1096: case $enable_option_checking in
1097: no) ;;
1098: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1099: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1100: esac
1101: fi
1102:
1103: # Check all directory arguments for consistency.
1104: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105: datadir sysconfdir sharedstatedir localstatedir includedir \
1106: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.2 ! takayama 1107: libdir localedir mandir runstatedir
1.1 takayama 1108: do
1109: eval ac_val=\$$ac_var
1110: # Remove trailing slashes.
1111: case $ac_val in
1112: */ )
1113: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1114: eval $ac_var=\$ac_val;;
1115: esac
1116: # Be sure to have absolute directory names.
1117: case $ac_val in
1118: [\\/$]* | ?:[\\/]* ) continue;;
1119: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120: esac
1121: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1122: done
1123:
1124: # There might be people who depend on the old broken behavior: `$host'
1125: # used to hold the argument of --host etc.
1126: # FIXME: To remove some day.
1127: build=$build_alias
1128: host=$host_alias
1129: target=$target_alias
1130:
1131: # FIXME: To remove some day.
1132: if test "x$host_alias" != x; then
1133: if test "x$build_alias" = x; then
1134: cross_compiling=maybe
1135: elif test "x$build_alias" != "x$host_alias"; then
1136: cross_compiling=yes
1137: fi
1138: fi
1139:
1140: ac_tool_prefix=
1141: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1142:
1143: test "$silent" = yes && exec 6>/dev/null
1144:
1145:
1146: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147: ac_ls_di=`ls -di .` &&
1148: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149: as_fn_error $? "working directory cannot be determined"
1150: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1151: as_fn_error $? "pwd does not report name of working directory"
1152:
1153:
1154: # Find the source files, if location was not specified.
1155: if test -z "$srcdir"; then
1156: ac_srcdir_defaulted=yes
1157: # Try the directory containing this script, then the parent directory.
1158: ac_confdir=`$as_dirname -- "$as_myself" ||
1159: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160: X"$as_myself" : 'X\(//\)[^/]' \| \
1161: X"$as_myself" : 'X\(//\)$' \| \
1162: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1163: $as_echo X"$as_myself" |
1164: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165: s//\1/
1166: q
1167: }
1168: /^X\(\/\/\)[^/].*/{
1169: s//\1/
1170: q
1171: }
1172: /^X\(\/\/\)$/{
1173: s//\1/
1174: q
1175: }
1176: /^X\(\/\).*/{
1177: s//\1/
1178: q
1179: }
1180: s/.*/./; q'`
1181: srcdir=$ac_confdir
1182: if test ! -r "$srcdir/$ac_unique_file"; then
1183: srcdir=..
1184: fi
1185: else
1186: ac_srcdir_defaulted=no
1187: fi
1188: if test ! -r "$srcdir/$ac_unique_file"; then
1189: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1191: fi
1192: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1193: ac_abs_confdir=`(
1194: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1195: pwd)`
1196: # When building in place, set srcdir=.
1197: if test "$ac_abs_confdir" = "$ac_pwd"; then
1198: srcdir=.
1199: fi
1200: # Remove unnecessary trailing slashes from srcdir.
1201: # Double slashes in file names in object file debugging info
1202: # mess up M-x gdb in Emacs.
1203: case $srcdir in
1204: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205: esac
1206: for ac_var in $ac_precious_vars; do
1207: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208: eval ac_env_${ac_var}_value=\$${ac_var}
1209: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211: done
1212:
1213: #
1214: # Report the --help message.
1215: #
1216: if test "$ac_init_help" = "long"; then
1217: # Omit some internal or obsolete options to make the list less imposing.
1218: # This message is too long to be a string in the A/UX 3.1 sh.
1219: cat <<_ACEOF
1220: \`configure' configures this package to adapt to many kinds of systems.
1221:
1222: Usage: $0 [OPTION]... [VAR=VALUE]...
1223:
1224: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225: VAR=VALUE. See below for descriptions of some of the useful variables.
1226:
1227: Defaults for the options are specified in brackets.
1228:
1229: Configuration:
1230: -h, --help display this help and exit
1231: --help=short display options specific to this package
1232: --help=recursive display the short help of all the included packages
1233: -V, --version display version information and exit
1234: -q, --quiet, --silent do not print \`checking ...' messages
1235: --cache-file=FILE cache test results in FILE [disabled]
1236: -C, --config-cache alias for \`--cache-file=config.cache'
1237: -n, --no-create do not create output files
1238: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239:
1240: Installation directories:
1241: --prefix=PREFIX install architecture-independent files in PREFIX
1242: [$ac_default_prefix]
1243: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244: [PREFIX]
1245:
1246: By default, \`make install' will install all the files in
1247: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249: for instance \`--prefix=\$HOME'.
1250:
1251: For better control, use the options below.
1252:
1253: Fine tuning of the installation directories:
1254: --bindir=DIR user executables [EPREFIX/bin]
1255: --sbindir=DIR system admin executables [EPREFIX/sbin]
1256: --libexecdir=DIR program executables [EPREFIX/libexec]
1257: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.2 ! takayama 1260: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.1 takayama 1261: --libdir=DIR object code libraries [EPREFIX/lib]
1262: --includedir=DIR C header files [PREFIX/include]
1263: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1264: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1265: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1266: --infodir=DIR info documentation [DATAROOTDIR/info]
1267: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1268: --mandir=DIR man documentation [DATAROOTDIR/man]
1269: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1270: --htmldir=DIR html documentation [DOCDIR]
1271: --dvidir=DIR dvi documentation [DOCDIR]
1272: --pdfdir=DIR pdf documentation [DOCDIR]
1273: --psdir=DIR ps documentation [DOCDIR]
1274: _ACEOF
1275:
1276: cat <<\_ACEOF
1277:
1278: X features:
1279: --x-includes=DIR X include files are in DIR
1280: --x-libraries=DIR X library files are in DIR
1281:
1282: System types:
1283: --build=BUILD configure for building on BUILD [guessed]
1284: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1285: --target=TARGET configure for building compilers for TARGET [HOST]
1286: _ACEOF
1287: fi
1288:
1289: if test -n "$ac_init_help"; then
1290:
1291: cat <<\_ACEOF
1292:
1293: Optional Packages:
1294: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1295: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1296: --with-x use the X Window System
1297:
1298: Some influential environment variables:
1299: CC C compiler command
1300: CFLAGS C compiler flags
1301: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1302: nonstandard directory <lib dir>
1303: LIBS libraries to pass to the linker, e.g. -l<library>
1304: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1305: you have headers in a nonstandard directory <include dir>
1306: XMKMF Path to xmkmf, Makefile generator for X Window System
1307: CPP C preprocessor
1308:
1309: Use these variables to override the choices made by `configure' or to help
1310: it to find libraries and programs with nonstandard names/locations.
1311:
1312: Report bugs to the package provider.
1313: _ACEOF
1314: ac_status=$?
1315: fi
1316:
1317: if test "$ac_init_help" = "recursive"; then
1318: # If there are subdirs, report their specific --help.
1319: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1320: test -d "$ac_dir" ||
1321: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1322: continue
1323: ac_builddir=.
1324:
1325: case "$ac_dir" in
1326: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327: *)
1328: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1329: # A ".." for each directory in $ac_dir_suffix.
1330: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1331: case $ac_top_builddir_sub in
1332: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1334: esac ;;
1335: esac
1336: ac_abs_top_builddir=$ac_pwd
1337: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1338: # for backward compatibility:
1339: ac_top_builddir=$ac_top_build_prefix
1340:
1341: case $srcdir in
1342: .) # We are building in place.
1343: ac_srcdir=.
1344: ac_top_srcdir=$ac_top_builddir_sub
1345: ac_abs_top_srcdir=$ac_pwd ;;
1346: [\\/]* | ?:[\\/]* ) # Absolute name.
1347: ac_srcdir=$srcdir$ac_dir_suffix;
1348: ac_top_srcdir=$srcdir
1349: ac_abs_top_srcdir=$srcdir ;;
1350: *) # Relative name.
1351: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1352: ac_top_srcdir=$ac_top_build_prefix$srcdir
1353: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1354: esac
1355: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1356:
1357: cd "$ac_dir" || { ac_status=$?; continue; }
1358: # Check for guested configure.
1359: if test -f "$ac_srcdir/configure.gnu"; then
1360: echo &&
1361: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1362: elif test -f "$ac_srcdir/configure"; then
1363: echo &&
1364: $SHELL "$ac_srcdir/configure" --help=recursive
1365: else
1366: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1367: fi || ac_status=$?
1368: cd "$ac_pwd" || { ac_status=$?; break; }
1369: done
1370: fi
1371:
1372: test -n "$ac_init_help" && exit $ac_status
1373: if $ac_init_version; then
1374: cat <<\_ACEOF
1375: configure
1376: generated by GNU Autoconf 2.69
1377:
1378: Copyright (C) 2012 Free Software Foundation, Inc.
1379: This configure script is free software; the Free Software Foundation
1380: gives unlimited permission to copy, distribute and modify it.
1381: _ACEOF
1382: exit
1383: fi
1384:
1385: ## ------------------------ ##
1386: ## Autoconf initialization. ##
1387: ## ------------------------ ##
1388:
1389: # ac_fn_c_try_compile LINENO
1390: # --------------------------
1391: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1392: ac_fn_c_try_compile ()
1393: {
1394: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1395: rm -f conftest.$ac_objext
1396: if { { ac_try="$ac_compile"
1397: case "(($ac_try" in
1398: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1399: *) ac_try_echo=$ac_try;;
1400: esac
1401: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1402: $as_echo "$ac_try_echo"; } >&5
1403: (eval "$ac_compile") 2>conftest.err
1404: ac_status=$?
1405: if test -s conftest.err; then
1406: grep -v '^ *+' conftest.err >conftest.er1
1407: cat conftest.er1 >&5
1408: mv -f conftest.er1 conftest.err
1409: fi
1410: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1411: test $ac_status = 0; } && {
1412: test -z "$ac_c_werror_flag" ||
1413: test ! -s conftest.err
1414: } && test -s conftest.$ac_objext; then :
1415: ac_retval=0
1416: else
1417: $as_echo "$as_me: failed program was:" >&5
1418: sed 's/^/| /' conftest.$ac_ext >&5
1419:
1420: ac_retval=1
1421: fi
1422: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1423: as_fn_set_status $ac_retval
1424:
1425: } # ac_fn_c_try_compile
1426:
1427: # ac_fn_c_try_cpp LINENO
1428: # ----------------------
1429: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1430: ac_fn_c_try_cpp ()
1431: {
1432: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1433: if { { ac_try="$ac_cpp conftest.$ac_ext"
1434: case "(($ac_try" in
1435: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1436: *) ac_try_echo=$ac_try;;
1437: esac
1438: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1439: $as_echo "$ac_try_echo"; } >&5
1440: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1441: ac_status=$?
1442: if test -s conftest.err; then
1443: grep -v '^ *+' conftest.err >conftest.er1
1444: cat conftest.er1 >&5
1445: mv -f conftest.er1 conftest.err
1446: fi
1447: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1448: test $ac_status = 0; } > conftest.i && {
1449: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1450: test ! -s conftest.err
1451: }; then :
1452: ac_retval=0
1453: else
1454: $as_echo "$as_me: failed program was:" >&5
1455: sed 's/^/| /' conftest.$ac_ext >&5
1456:
1457: ac_retval=1
1458: fi
1459: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1460: as_fn_set_status $ac_retval
1461:
1462: } # ac_fn_c_try_cpp
1463:
1464: # ac_fn_c_try_link LINENO
1465: # -----------------------
1466: # Try to link conftest.$ac_ext, and return whether this succeeded.
1467: ac_fn_c_try_link ()
1468: {
1469: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1470: rm -f conftest.$ac_objext conftest$ac_exeext
1471: if { { ac_try="$ac_link"
1472: case "(($ac_try" in
1473: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1474: *) ac_try_echo=$ac_try;;
1475: esac
1476: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1477: $as_echo "$ac_try_echo"; } >&5
1478: (eval "$ac_link") 2>conftest.err
1479: ac_status=$?
1480: if test -s conftest.err; then
1481: grep -v '^ *+' conftest.err >conftest.er1
1482: cat conftest.er1 >&5
1483: mv -f conftest.er1 conftest.err
1484: fi
1485: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1486: test $ac_status = 0; } && {
1487: test -z "$ac_c_werror_flag" ||
1488: test ! -s conftest.err
1489: } && test -s conftest$ac_exeext && {
1490: test "$cross_compiling" = yes ||
1491: test -x conftest$ac_exeext
1492: }; then :
1493: ac_retval=0
1494: else
1495: $as_echo "$as_me: failed program was:" >&5
1496: sed 's/^/| /' conftest.$ac_ext >&5
1497:
1498: ac_retval=1
1499: fi
1500: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1501: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1502: # interfere with the next link command; also delete a directory that is
1503: # left behind by Apple's compiler. We do this before executing the actions.
1504: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1505: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506: as_fn_set_status $ac_retval
1507:
1508: } # ac_fn_c_try_link
1509:
1510: # ac_fn_c_check_func LINENO FUNC VAR
1511: # ----------------------------------
1512: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1513: ac_fn_c_check_func ()
1514: {
1515: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1517: $as_echo_n "checking for $2... " >&6; }
1518: if eval \${$3+:} false; then :
1519: $as_echo_n "(cached) " >&6
1520: else
1521: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1522: /* end confdefs.h. */
1523: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1524: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1525: #define $2 innocuous_$2
1526:
1527: /* System header to define __stub macros and hopefully few prototypes,
1528: which can conflict with char $2 (); below.
1529: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1530: <limits.h> exists even on freestanding compilers. */
1531:
1532: #ifdef __STDC__
1533: # include <limits.h>
1534: #else
1535: # include <assert.h>
1536: #endif
1537:
1538: #undef $2
1539:
1540: /* Override any GCC internal prototype to avoid an error.
1541: Use char because int might match the return type of a GCC
1542: builtin and then its argument prototype would still apply. */
1543: #ifdef __cplusplus
1544: extern "C"
1545: #endif
1546: char $2 ();
1547: /* The GNU C library defines this for functions which it implements
1548: to always fail with ENOSYS. Some functions are actually named
1549: something starting with __ and the normal name is an alias. */
1550: #if defined __stub_$2 || defined __stub___$2
1551: choke me
1552: #endif
1553:
1554: int
1555: main ()
1556: {
1557: return $2 ();
1558: ;
1559: return 0;
1560: }
1561: _ACEOF
1562: if ac_fn_c_try_link "$LINENO"; then :
1563: eval "$3=yes"
1564: else
1565: eval "$3=no"
1566: fi
1567: rm -f core conftest.err conftest.$ac_objext \
1568: conftest$ac_exeext conftest.$ac_ext
1569: fi
1570: eval ac_res=\$$3
1571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1572: $as_echo "$ac_res" >&6; }
1573: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574:
1575: } # ac_fn_c_check_func
1576: cat >config.log <<_ACEOF
1577: This file contains any messages produced by compilers while
1578: running configure, to aid debugging if configure makes a mistake.
1579:
1580: It was created by $as_me, which was
1581: generated by GNU Autoconf 2.69. Invocation command line was
1582:
1583: $ $0 $@
1584:
1585: _ACEOF
1586: exec 5>>config.log
1587: {
1588: cat <<_ASUNAME
1589: ## --------- ##
1590: ## Platform. ##
1591: ## --------- ##
1592:
1593: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598:
1599: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601:
1602: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1609:
1610: _ASUNAME
1611:
1612: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613: for as_dir in $PATH
1614: do
1615: IFS=$as_save_IFS
1616: test -z "$as_dir" && as_dir=.
1617: $as_echo "PATH: $as_dir"
1618: done
1619: IFS=$as_save_IFS
1620:
1621: } >&5
1622:
1623: cat >&5 <<_ACEOF
1624:
1625:
1626: ## ----------- ##
1627: ## Core tests. ##
1628: ## ----------- ##
1629:
1630: _ACEOF
1631:
1632:
1633: # Keep a trace of the command line.
1634: # Strip out --no-create and --no-recursion so they do not pile up.
1635: # Strip out --silent because we don't want to record it for future runs.
1636: # Also quote any args containing shell meta-characters.
1637: # Make two passes to allow for proper duplicate-argument suppression.
1638: ac_configure_args=
1639: ac_configure_args0=
1640: ac_configure_args1=
1641: ac_must_keep_next=false
1642: for ac_pass in 1 2
1643: do
1644: for ac_arg
1645: do
1646: case $ac_arg in
1647: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649: | -silent | --silent | --silen | --sile | --sil)
1650: continue ;;
1651: *\'*)
1652: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653: esac
1654: case $ac_pass in
1655: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1656: 2)
1657: as_fn_append ac_configure_args1 " '$ac_arg'"
1658: if test $ac_must_keep_next = true; then
1659: ac_must_keep_next=false # Got value, back to normal.
1660: else
1661: case $ac_arg in
1662: *=* | --config-cache | -C | -disable-* | --disable-* \
1663: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665: | -with-* | --with-* | -without-* | --without-* | --x)
1666: case "$ac_configure_args0 " in
1667: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668: esac
1669: ;;
1670: -* ) ac_must_keep_next=true ;;
1671: esac
1672: fi
1673: as_fn_append ac_configure_args " '$ac_arg'"
1674: ;;
1675: esac
1676: done
1677: done
1678: { ac_configure_args0=; unset ac_configure_args0;}
1679: { ac_configure_args1=; unset ac_configure_args1;}
1680:
1681: # When interrupted or exit'd, cleanup temporary files, and complete
1682: # config.log. We remove comments because anyway the quotes in there
1683: # would cause problems or look ugly.
1684: # WARNING: Use '\'' to represent an apostrophe within the trap.
1685: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686: trap 'exit_status=$?
1687: # Save into config.log some information that might help in debugging.
1688: {
1689: echo
1690:
1691: $as_echo "## ---------------- ##
1692: ## Cache variables. ##
1693: ## ---------------- ##"
1694: echo
1695: # The following way of writing the cache mishandles newlines in values,
1696: (
1697: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698: eval ac_val=\$$ac_var
1699: case $ac_val in #(
1700: *${as_nl}*)
1701: case $ac_var in #(
1702: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1703: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1704: esac
1705: case $ac_var in #(
1706: _ | IFS | as_nl) ;; #(
1707: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1708: *) { eval $ac_var=; unset $ac_var;} ;;
1709: esac ;;
1710: esac
1711: done
1712: (set) 2>&1 |
1713: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714: *${as_nl}ac_space=\ *)
1715: sed -n \
1716: "s/'\''/'\''\\\\'\'''\''/g;
1717: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718: ;; #(
1719: *)
1720: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721: ;;
1722: esac |
1723: sort
1724: )
1725: echo
1726:
1727: $as_echo "## ----------------- ##
1728: ## Output variables. ##
1729: ## ----------------- ##"
1730: echo
1731: for ac_var in $ac_subst_vars
1732: do
1733: eval ac_val=\$$ac_var
1734: case $ac_val in
1735: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736: esac
1737: $as_echo "$ac_var='\''$ac_val'\''"
1738: done | sort
1739: echo
1740:
1741: if test -n "$ac_subst_files"; then
1742: $as_echo "## ------------------- ##
1743: ## File substitutions. ##
1744: ## ------------------- ##"
1745: echo
1746: for ac_var in $ac_subst_files
1747: do
1748: eval ac_val=\$$ac_var
1749: case $ac_val in
1750: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751: esac
1752: $as_echo "$ac_var='\''$ac_val'\''"
1753: done | sort
1754: echo
1755: fi
1756:
1757: if test -s confdefs.h; then
1758: $as_echo "## ----------- ##
1759: ## confdefs.h. ##
1760: ## ----------- ##"
1761: echo
1762: cat confdefs.h
1763: echo
1764: fi
1765: test "$ac_signal" != 0 &&
1766: $as_echo "$as_me: caught signal $ac_signal"
1767: $as_echo "$as_me: exit $exit_status"
1768: } >&5
1769: rm -f core *.core core.conftest.* &&
1770: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771: exit $exit_status
1772: ' 0
1773: for ac_signal in 1 2 13 15; do
1774: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1775: done
1776: ac_signal=0
1777:
1778: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1779: rm -f -r conftest* confdefs.h
1780:
1781: $as_echo "/* confdefs.h */" > confdefs.h
1782:
1783: # Predefined preprocessor variables.
1784:
1785: cat >>confdefs.h <<_ACEOF
1786: #define PACKAGE_NAME "$PACKAGE_NAME"
1787: _ACEOF
1788:
1789: cat >>confdefs.h <<_ACEOF
1790: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791: _ACEOF
1792:
1793: cat >>confdefs.h <<_ACEOF
1794: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795: _ACEOF
1796:
1797: cat >>confdefs.h <<_ACEOF
1798: #define PACKAGE_STRING "$PACKAGE_STRING"
1799: _ACEOF
1800:
1801: cat >>confdefs.h <<_ACEOF
1802: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803: _ACEOF
1804:
1805: cat >>confdefs.h <<_ACEOF
1806: #define PACKAGE_URL "$PACKAGE_URL"
1807: _ACEOF
1808:
1809:
1810: # Let the site file select an alternate cache file if it wants to.
1811: # Prefer an explicitly selected file to automatically selected ones.
1812: ac_site_file1=NONE
1813: ac_site_file2=NONE
1814: if test -n "$CONFIG_SITE"; then
1815: # We do not want a PATH search for config.site.
1816: case $CONFIG_SITE in #((
1817: -*) ac_site_file1=./$CONFIG_SITE;;
1818: */*) ac_site_file1=$CONFIG_SITE;;
1819: *) ac_site_file1=./$CONFIG_SITE;;
1820: esac
1821: elif test "x$prefix" != xNONE; then
1822: ac_site_file1=$prefix/share/config.site
1823: ac_site_file2=$prefix/etc/config.site
1824: else
1825: ac_site_file1=$ac_default_prefix/share/config.site
1826: ac_site_file2=$ac_default_prefix/etc/config.site
1827: fi
1828: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1829: do
1830: test "x$ac_site_file" = xNONE && continue
1831: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1832: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1833: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1834: sed 's/^/| /' "$ac_site_file" >&5
1835: . "$ac_site_file" \
1836: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1837: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1838: as_fn_error $? "failed to load site script $ac_site_file
1839: See \`config.log' for more details" "$LINENO" 5; }
1840: fi
1841: done
1842:
1843: if test -r "$cache_file"; then
1844: # Some versions of bash will fail to source /dev/null (special files
1845: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1846: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1847: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1848: $as_echo "$as_me: loading cache $cache_file" >&6;}
1849: case $cache_file in
1850: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851: *) . "./$cache_file";;
1852: esac
1853: fi
1854: else
1855: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1856: $as_echo "$as_me: creating cache $cache_file" >&6;}
1857: >$cache_file
1858: fi
1859:
1860: # Check that the precious variables saved in the cache have kept the same
1861: # value.
1862: ac_cache_corrupted=false
1863: for ac_var in $ac_precious_vars; do
1864: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865: eval ac_new_set=\$ac_env_${ac_var}_set
1866: eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867: eval ac_new_val=\$ac_env_${ac_var}_value
1868: case $ac_old_set,$ac_new_set in
1869: set,)
1870: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872: ac_cache_corrupted=: ;;
1873: ,set)
1874: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1875: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876: ac_cache_corrupted=: ;;
1877: ,);;
1878: *)
1879: if test "x$ac_old_val" != "x$ac_new_val"; then
1880: # differences in whitespace do not lead to failure.
1881: ac_old_val_w=`echo x $ac_old_val`
1882: ac_new_val_w=`echo x $ac_new_val`
1883: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1884: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1885: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886: ac_cache_corrupted=:
1887: else
1888: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1889: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1890: eval $ac_var=\$ac_old_val
1891: fi
1892: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1893: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1894: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1895: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1896: fi;;
1897: esac
1898: # Pass precious variables to config.status.
1899: if test "$ac_new_set" = set; then
1900: case $ac_new_val in
1901: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1902: *) ac_arg=$ac_var=$ac_new_val ;;
1903: esac
1904: case " $ac_configure_args " in
1905: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1907: esac
1908: fi
1909: done
1910: if $ac_cache_corrupted; then
1911: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1912: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1913: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1914: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1915: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1916: fi
1917: ## -------------------- ##
1918: ## Main body of script. ##
1919: ## -------------------- ##
1920:
1921: ac_ext=c
1922: ac_cpp='$CPP $CPPFLAGS'
1923: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926:
1927:
1928:
1929: ac_aux_dir=
1930: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1931: if test -f "$ac_dir/install-sh"; then
1932: ac_aux_dir=$ac_dir
1933: ac_install_sh="$ac_aux_dir/install-sh -c"
1934: break
1935: elif test -f "$ac_dir/install.sh"; then
1936: ac_aux_dir=$ac_dir
1937: ac_install_sh="$ac_aux_dir/install.sh -c"
1938: break
1939: elif test -f "$ac_dir/shtool"; then
1940: ac_aux_dir=$ac_dir
1941: ac_install_sh="$ac_aux_dir/shtool install -c"
1942: break
1943: fi
1944: done
1945: if test -z "$ac_aux_dir"; then
1946: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1947: fi
1948:
1949: # These three variables are undocumented and unsupported,
1950: # and are intended to be withdrawn in a future Autoconf release.
1951: # They can cause serious problems if a builder's source tree is in a directory
1952: # whose full name contains unusual characters.
1953: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1954: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1955: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1956:
1957:
1958: # Make sure we can run config.sub.
1959: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1960: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1961:
1962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1963: $as_echo_n "checking build system type... " >&6; }
1964: if ${ac_cv_build+:} false; then :
1965: $as_echo_n "(cached) " >&6
1966: else
1967: ac_build_alias=$build_alias
1968: test "x$ac_build_alias" = x &&
1969: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1970: test "x$ac_build_alias" = x &&
1971: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1972: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1973: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1974:
1975: fi
1976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1977: $as_echo "$ac_cv_build" >&6; }
1978: case $ac_cv_build in
1979: *-*-*) ;;
1980: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1981: esac
1982: build=$ac_cv_build
1983: ac_save_IFS=$IFS; IFS='-'
1984: set x $ac_cv_build
1985: shift
1986: build_cpu=$1
1987: build_vendor=$2
1988: shift; shift
1989: # Remember, the first character of IFS is used to create $*,
1990: # except with old shells:
1991: build_os=$*
1992: IFS=$ac_save_IFS
1993: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1994:
1995:
1996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1997: $as_echo_n "checking host system type... " >&6; }
1998: if ${ac_cv_host+:} false; then :
1999: $as_echo_n "(cached) " >&6
2000: else
2001: if test "x$host_alias" = x; then
2002: ac_cv_host=$ac_cv_build
2003: else
2004: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2005: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2006: fi
2007:
2008: fi
2009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2010: $as_echo "$ac_cv_host" >&6; }
2011: case $ac_cv_host in
2012: *-*-*) ;;
2013: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2014: esac
2015: host=$ac_cv_host
2016: ac_save_IFS=$IFS; IFS='-'
2017: set x $ac_cv_host
2018: shift
2019: host_cpu=$1
2020: host_vendor=$2
2021: shift; shift
2022: # Remember, the first character of IFS is used to create $*,
2023: # except with old shells:
2024: host_os=$*
2025: IFS=$ac_save_IFS
2026: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2027:
2028:
2029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2030: $as_echo_n "checking target system type... " >&6; }
2031: if ${ac_cv_target+:} false; then :
2032: $as_echo_n "(cached) " >&6
2033: else
2034: if test "x$target_alias" = x; then
2035: ac_cv_target=$ac_cv_host
2036: else
2037: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2038: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2039: fi
2040:
2041: fi
2042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2043: $as_echo "$ac_cv_target" >&6; }
2044: case $ac_cv_target in
2045: *-*-*) ;;
2046: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2047: esac
2048: target=$ac_cv_target
2049: ac_save_IFS=$IFS; IFS='-'
2050: set x $ac_cv_target
2051: shift
2052: target_cpu=$1
2053: target_vendor=$2
2054: shift; shift
2055: # Remember, the first character of IFS is used to create $*,
2056: # except with old shells:
2057: target_os=$*
2058: IFS=$ac_save_IFS
2059: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2060:
2061:
2062: # The aliases save the names the user supplied, while $host etc.
2063: # will get canonicalized.
2064: test -n "$target_alias" &&
2065: test "$program_prefix$program_suffix$program_transform_name" = \
2066: NONENONEs,x,x, &&
2067: program_prefix=${target_alias}-
2068:
2069: ac_ext=c
2070: ac_cpp='$CPP $CPPFLAGS'
2071: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074: if test -n "$ac_tool_prefix"; then
2075: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2076: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2078: $as_echo_n "checking for $ac_word... " >&6; }
2079: if ${ac_cv_prog_CC+:} false; then :
2080: $as_echo_n "(cached) " >&6
2081: else
2082: if test -n "$CC"; then
2083: ac_cv_prog_CC="$CC" # Let the user override the test.
2084: else
2085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086: for as_dir in $PATH
2087: do
2088: IFS=$as_save_IFS
2089: test -z "$as_dir" && as_dir=.
2090: for ac_exec_ext in '' $ac_executable_extensions; do
2091: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2093: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2094: break 2
2095: fi
2096: done
2097: done
2098: IFS=$as_save_IFS
2099:
2100: fi
2101: fi
2102: CC=$ac_cv_prog_CC
2103: if test -n "$CC"; then
2104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2105: $as_echo "$CC" >&6; }
2106: else
2107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2108: $as_echo "no" >&6; }
2109: fi
2110:
2111:
2112: fi
2113: if test -z "$ac_cv_prog_CC"; then
2114: ac_ct_CC=$CC
2115: # Extract the first word of "gcc", so it can be a program name with args.
2116: set dummy gcc; ac_word=$2
2117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2118: $as_echo_n "checking for $ac_word... " >&6; }
2119: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2120: $as_echo_n "(cached) " >&6
2121: else
2122: if test -n "$ac_ct_CC"; then
2123: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124: else
2125: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126: for as_dir in $PATH
2127: do
2128: IFS=$as_save_IFS
2129: test -z "$as_dir" && as_dir=.
2130: for ac_exec_ext in '' $ac_executable_extensions; do
2131: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132: ac_cv_prog_ac_ct_CC="gcc"
2133: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2134: break 2
2135: fi
2136: done
2137: done
2138: IFS=$as_save_IFS
2139:
2140: fi
2141: fi
2142: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143: if test -n "$ac_ct_CC"; then
2144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2145: $as_echo "$ac_ct_CC" >&6; }
2146: else
2147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2148: $as_echo "no" >&6; }
2149: fi
2150:
2151: if test "x$ac_ct_CC" = x; then
2152: CC=""
2153: else
2154: case $cross_compiling:$ac_tool_warned in
2155: yes:)
2156: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2157: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2158: ac_tool_warned=yes ;;
2159: esac
2160: CC=$ac_ct_CC
2161: fi
2162: else
2163: CC="$ac_cv_prog_CC"
2164: fi
2165:
2166: if test -z "$CC"; then
2167: if test -n "$ac_tool_prefix"; then
2168: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2169: set dummy ${ac_tool_prefix}cc; ac_word=$2
2170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2171: $as_echo_n "checking for $ac_word... " >&6; }
2172: if ${ac_cv_prog_CC+:} false; then :
2173: $as_echo_n "(cached) " >&6
2174: else
2175: if test -n "$CC"; then
2176: ac_cv_prog_CC="$CC" # Let the user override the test.
2177: else
2178: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179: for as_dir in $PATH
2180: do
2181: IFS=$as_save_IFS
2182: test -z "$as_dir" && as_dir=.
2183: for ac_exec_ext in '' $ac_executable_extensions; do
2184: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185: ac_cv_prog_CC="${ac_tool_prefix}cc"
2186: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2187: break 2
2188: fi
2189: done
2190: done
2191: IFS=$as_save_IFS
2192:
2193: fi
2194: fi
2195: CC=$ac_cv_prog_CC
2196: if test -n "$CC"; then
2197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2198: $as_echo "$CC" >&6; }
2199: else
2200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2201: $as_echo "no" >&6; }
2202: fi
2203:
2204:
2205: fi
2206: fi
2207: if test -z "$CC"; then
2208: # Extract the first word of "cc", so it can be a program name with args.
2209: set dummy cc; ac_word=$2
2210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2211: $as_echo_n "checking for $ac_word... " >&6; }
2212: if ${ac_cv_prog_CC+:} false; then :
2213: $as_echo_n "(cached) " >&6
2214: else
2215: if test -n "$CC"; then
2216: ac_cv_prog_CC="$CC" # Let the user override the test.
2217: else
2218: ac_prog_rejected=no
2219: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220: for as_dir in $PATH
2221: do
2222: IFS=$as_save_IFS
2223: test -z "$as_dir" && as_dir=.
2224: for ac_exec_ext in '' $ac_executable_extensions; do
2225: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2227: ac_prog_rejected=yes
2228: continue
2229: fi
2230: ac_cv_prog_CC="cc"
2231: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2232: break 2
2233: fi
2234: done
2235: done
2236: IFS=$as_save_IFS
2237:
2238: if test $ac_prog_rejected = yes; then
2239: # We found a bogon in the path, so make sure we never use it.
2240: set dummy $ac_cv_prog_CC
2241: shift
2242: if test $# != 0; then
2243: # We chose a different compiler from the bogus one.
2244: # However, it has the same basename, so the bogon will be chosen
2245: # first if we set CC to just the basename; use the full file name.
2246: shift
2247: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2248: fi
2249: fi
2250: fi
2251: fi
2252: CC=$ac_cv_prog_CC
2253: if test -n "$CC"; then
2254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2255: $as_echo "$CC" >&6; }
2256: else
2257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2258: $as_echo "no" >&6; }
2259: fi
2260:
2261:
2262: fi
2263: if test -z "$CC"; then
2264: if test -n "$ac_tool_prefix"; then
2265: for ac_prog in cl.exe
2266: do
2267: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2268: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270: $as_echo_n "checking for $ac_word... " >&6; }
2271: if ${ac_cv_prog_CC+:} false; then :
2272: $as_echo_n "(cached) " >&6
2273: else
2274: if test -n "$CC"; then
2275: ac_cv_prog_CC="$CC" # Let the user override the test.
2276: else
2277: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278: for as_dir in $PATH
2279: do
2280: IFS=$as_save_IFS
2281: test -z "$as_dir" && as_dir=.
2282: for ac_exec_ext in '' $ac_executable_extensions; do
2283: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2285: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2286: break 2
2287: fi
2288: done
2289: done
2290: IFS=$as_save_IFS
2291:
2292: fi
2293: fi
2294: CC=$ac_cv_prog_CC
2295: if test -n "$CC"; then
2296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2297: $as_echo "$CC" >&6; }
2298: else
2299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300: $as_echo "no" >&6; }
2301: fi
2302:
2303:
2304: test -n "$CC" && break
2305: done
2306: fi
2307: if test -z "$CC"; then
2308: ac_ct_CC=$CC
2309: for ac_prog in cl.exe
2310: do
2311: # Extract the first word of "$ac_prog", so it can be a program name with args.
2312: set dummy $ac_prog; ac_word=$2
2313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2314: $as_echo_n "checking for $ac_word... " >&6; }
2315: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2316: $as_echo_n "(cached) " >&6
2317: else
2318: if test -n "$ac_ct_CC"; then
2319: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320: else
2321: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322: for as_dir in $PATH
2323: do
2324: IFS=$as_save_IFS
2325: test -z "$as_dir" && as_dir=.
2326: for ac_exec_ext in '' $ac_executable_extensions; do
2327: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328: ac_cv_prog_ac_ct_CC="$ac_prog"
2329: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2330: break 2
2331: fi
2332: done
2333: done
2334: IFS=$as_save_IFS
2335:
2336: fi
2337: fi
2338: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2339: if test -n "$ac_ct_CC"; then
2340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2341: $as_echo "$ac_ct_CC" >&6; }
2342: else
2343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344: $as_echo "no" >&6; }
2345: fi
2346:
2347:
2348: test -n "$ac_ct_CC" && break
2349: done
2350:
2351: if test "x$ac_ct_CC" = x; then
2352: CC=""
2353: else
2354: case $cross_compiling:$ac_tool_warned in
2355: yes:)
2356: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2357: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2358: ac_tool_warned=yes ;;
2359: esac
2360: CC=$ac_ct_CC
2361: fi
2362: fi
2363:
2364: fi
2365:
2366:
2367: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369: as_fn_error $? "no acceptable C compiler found in \$PATH
2370: See \`config.log' for more details" "$LINENO" 5; }
2371:
2372: # Provide some information about the compiler.
2373: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2374: set X $ac_compile
2375: ac_compiler=$2
2376: for ac_option in --version -v -V -qversion; do
2377: { { ac_try="$ac_compiler $ac_option >&5"
2378: case "(($ac_try" in
2379: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380: *) ac_try_echo=$ac_try;;
2381: esac
2382: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2383: $as_echo "$ac_try_echo"; } >&5
2384: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2385: ac_status=$?
2386: if test -s conftest.err; then
2387: sed '10a\
2388: ... rest of stderr output deleted ...
2389: 10q' conftest.err >conftest.er1
2390: cat conftest.er1 >&5
2391: fi
2392: rm -f conftest.er1 conftest.err
2393: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2394: test $ac_status = 0; }
2395: done
2396:
2397: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398: /* end confdefs.h. */
2399:
2400: int
2401: main ()
2402: {
2403:
2404: ;
2405: return 0;
2406: }
2407: _ACEOF
2408: ac_clean_files_save=$ac_clean_files
2409: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2410: # Try to create an executable without -o first, disregard a.out.
2411: # It will help us diagnose broken compilers, and finding out an intuition
2412: # of exeext.
2413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2414: $as_echo_n "checking whether the C compiler works... " >&6; }
2415: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2416:
2417: # The possible output files:
2418: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2419:
2420: ac_rmfiles=
2421: for ac_file in $ac_files
2422: do
2423: case $ac_file in
2424: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2425: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2426: esac
2427: done
2428: rm -f $ac_rmfiles
2429:
2430: if { { ac_try="$ac_link_default"
2431: case "(($ac_try" in
2432: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433: *) ac_try_echo=$ac_try;;
2434: esac
2435: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436: $as_echo "$ac_try_echo"; } >&5
2437: (eval "$ac_link_default") 2>&5
2438: ac_status=$?
2439: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2440: test $ac_status = 0; }; then :
2441: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2442: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2443: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2444: # so that the user can short-circuit this test for compilers unknown to
2445: # Autoconf.
2446: for ac_file in $ac_files ''
2447: do
2448: test -f "$ac_file" || continue
2449: case $ac_file in
2450: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2451: ;;
2452: [ab].out )
2453: # We found the default executable, but exeext='' is most
2454: # certainly right.
2455: break;;
2456: *.* )
2457: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2458: then :; else
2459: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2460: fi
2461: # We set ac_cv_exeext here because the later test for it is not
2462: # safe: cross compilers may not add the suffix if given an `-o'
2463: # argument, so we may need to know it at that point already.
2464: # Even if this section looks crufty: it has the advantage of
2465: # actually working.
2466: break;;
2467: * )
2468: break;;
2469: esac
2470: done
2471: test "$ac_cv_exeext" = no && ac_cv_exeext=
2472:
2473: else
2474: ac_file=''
2475: fi
2476: if test -z "$ac_file"; then :
2477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478: $as_echo "no" >&6; }
2479: $as_echo "$as_me: failed program was:" >&5
2480: sed 's/^/| /' conftest.$ac_ext >&5
2481:
2482: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2483: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484: as_fn_error 77 "C compiler cannot create executables
2485: See \`config.log' for more details" "$LINENO" 5; }
2486: else
2487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2488: $as_echo "yes" >&6; }
2489: fi
2490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2491: $as_echo_n "checking for C compiler default output file name... " >&6; }
2492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2493: $as_echo "$ac_file" >&6; }
2494: ac_exeext=$ac_cv_exeext
2495:
2496: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2497: ac_clean_files=$ac_clean_files_save
2498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2499: $as_echo_n "checking for suffix of executables... " >&6; }
2500: if { { ac_try="$ac_link"
2501: case "(($ac_try" in
2502: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503: *) ac_try_echo=$ac_try;;
2504: esac
2505: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506: $as_echo "$ac_try_echo"; } >&5
2507: (eval "$ac_link") 2>&5
2508: ac_status=$?
2509: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510: test $ac_status = 0; }; then :
2511: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2512: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2513: # work properly (i.e., refer to `conftest.exe'), while it won't with
2514: # `rm'.
2515: for ac_file in conftest.exe conftest conftest.*; do
2516: test -f "$ac_file" || continue
2517: case $ac_file in
2518: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2519: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2520: break;;
2521: * ) break;;
2522: esac
2523: done
2524: else
2525: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2528: See \`config.log' for more details" "$LINENO" 5; }
2529: fi
2530: rm -f conftest conftest$ac_cv_exeext
2531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2532: $as_echo "$ac_cv_exeext" >&6; }
2533:
2534: rm -f conftest.$ac_ext
2535: EXEEXT=$ac_cv_exeext
2536: ac_exeext=$EXEEXT
2537: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538: /* end confdefs.h. */
2539: #include <stdio.h>
2540: int
2541: main ()
2542: {
2543: FILE *f = fopen ("conftest.out", "w");
2544: return ferror (f) || fclose (f) != 0;
2545:
2546: ;
2547: return 0;
2548: }
2549: _ACEOF
2550: ac_clean_files="$ac_clean_files conftest.out"
2551: # Check that the compiler produces executables we can run. If not, either
2552: # the compiler is broken, or we cross compile.
2553: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2554: $as_echo_n "checking whether we are cross compiling... " >&6; }
2555: if test "$cross_compiling" != yes; then
2556: { { ac_try="$ac_link"
2557: case "(($ac_try" in
2558: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559: *) ac_try_echo=$ac_try;;
2560: esac
2561: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562: $as_echo "$ac_try_echo"; } >&5
2563: (eval "$ac_link") 2>&5
2564: ac_status=$?
2565: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566: test $ac_status = 0; }
2567: if { ac_try='./conftest$ac_cv_exeext'
2568: { { case "(($ac_try" in
2569: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570: *) ac_try_echo=$ac_try;;
2571: esac
2572: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573: $as_echo "$ac_try_echo"; } >&5
2574: (eval "$ac_try") 2>&5
2575: ac_status=$?
2576: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577: test $ac_status = 0; }; }; then
2578: cross_compiling=no
2579: else
2580: if test "$cross_compiling" = maybe; then
2581: cross_compiling=yes
2582: else
2583: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585: as_fn_error $? "cannot run C compiled programs.
2586: If you meant to cross compile, use \`--host'.
2587: See \`config.log' for more details" "$LINENO" 5; }
2588: fi
2589: fi
2590: fi
2591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2592: $as_echo "$cross_compiling" >&6; }
2593:
2594: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2595: ac_clean_files=$ac_clean_files_save
2596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2597: $as_echo_n "checking for suffix of object files... " >&6; }
2598: if ${ac_cv_objext+:} false; then :
2599: $as_echo_n "(cached) " >&6
2600: else
2601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602: /* end confdefs.h. */
2603:
2604: int
2605: main ()
2606: {
2607:
2608: ;
2609: return 0;
2610: }
2611: _ACEOF
2612: rm -f conftest.o conftest.obj
2613: if { { ac_try="$ac_compile"
2614: case "(($ac_try" in
2615: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616: *) ac_try_echo=$ac_try;;
2617: esac
2618: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2619: $as_echo "$ac_try_echo"; } >&5
2620: (eval "$ac_compile") 2>&5
2621: ac_status=$?
2622: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2623: test $ac_status = 0; }; then :
2624: for ac_file in conftest.o conftest.obj conftest.*; do
2625: test -f "$ac_file" || continue;
2626: case $ac_file in
2627: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2628: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2629: break;;
2630: esac
2631: done
2632: else
2633: $as_echo "$as_me: failed program was:" >&5
2634: sed 's/^/| /' conftest.$ac_ext >&5
2635:
2636: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638: as_fn_error $? "cannot compute suffix of object files: cannot compile
2639: See \`config.log' for more details" "$LINENO" 5; }
2640: fi
2641: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2642: fi
2643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2644: $as_echo "$ac_cv_objext" >&6; }
2645: OBJEXT=$ac_cv_objext
2646: ac_objext=$OBJEXT
2647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2648: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2649: if ${ac_cv_c_compiler_gnu+:} false; then :
2650: $as_echo_n "(cached) " >&6
2651: else
2652: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653: /* end confdefs.h. */
2654:
2655: int
2656: main ()
2657: {
2658: #ifndef __GNUC__
2659: choke me
2660: #endif
2661:
2662: ;
2663: return 0;
2664: }
2665: _ACEOF
2666: if ac_fn_c_try_compile "$LINENO"; then :
2667: ac_compiler_gnu=yes
2668: else
2669: ac_compiler_gnu=no
2670: fi
2671: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2673:
2674: fi
2675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2676: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2677: if test $ac_compiler_gnu = yes; then
2678: GCC=yes
2679: else
2680: GCC=
2681: fi
2682: ac_test_CFLAGS=${CFLAGS+set}
2683: ac_save_CFLAGS=$CFLAGS
2684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2685: $as_echo_n "checking whether $CC accepts -g... " >&6; }
2686: if ${ac_cv_prog_cc_g+:} false; then :
2687: $as_echo_n "(cached) " >&6
2688: else
2689: ac_save_c_werror_flag=$ac_c_werror_flag
2690: ac_c_werror_flag=yes
2691: ac_cv_prog_cc_g=no
2692: CFLAGS="-g"
2693: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694: /* end confdefs.h. */
2695:
2696: int
2697: main ()
2698: {
2699:
2700: ;
2701: return 0;
2702: }
2703: _ACEOF
2704: if ac_fn_c_try_compile "$LINENO"; then :
2705: ac_cv_prog_cc_g=yes
2706: else
2707: CFLAGS=""
2708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709: /* end confdefs.h. */
2710:
2711: int
2712: main ()
2713: {
2714:
2715: ;
2716: return 0;
2717: }
2718: _ACEOF
2719: if ac_fn_c_try_compile "$LINENO"; then :
2720:
2721: else
2722: ac_c_werror_flag=$ac_save_c_werror_flag
2723: CFLAGS="-g"
2724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725: /* end confdefs.h. */
2726:
2727: int
2728: main ()
2729: {
2730:
2731: ;
2732: return 0;
2733: }
2734: _ACEOF
2735: if ac_fn_c_try_compile "$LINENO"; then :
2736: ac_cv_prog_cc_g=yes
2737: fi
2738: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739: fi
2740: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741: fi
2742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743: ac_c_werror_flag=$ac_save_c_werror_flag
2744: fi
2745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2746: $as_echo "$ac_cv_prog_cc_g" >&6; }
2747: if test "$ac_test_CFLAGS" = set; then
2748: CFLAGS=$ac_save_CFLAGS
2749: elif test $ac_cv_prog_cc_g = yes; then
2750: if test "$GCC" = yes; then
2751: CFLAGS="-g -O2"
2752: else
2753: CFLAGS="-g"
2754: fi
2755: else
2756: if test "$GCC" = yes; then
2757: CFLAGS="-O2"
2758: else
2759: CFLAGS=
2760: fi
2761: fi
2762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2763: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2764: if ${ac_cv_prog_cc_c89+:} false; then :
2765: $as_echo_n "(cached) " >&6
2766: else
2767: ac_cv_prog_cc_c89=no
2768: ac_save_CC=$CC
2769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770: /* end confdefs.h. */
2771: #include <stdarg.h>
2772: #include <stdio.h>
2773: struct stat;
2774: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2775: struct buf { int x; };
2776: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2777: static char *e (p, i)
2778: char **p;
2779: int i;
2780: {
2781: return p[i];
2782: }
2783: static char *f (char * (*g) (char **, int), char **p, ...)
2784: {
2785: char *s;
2786: va_list v;
2787: va_start (v,p);
2788: s = g (p, va_arg (v,int));
2789: va_end (v);
2790: return s;
2791: }
2792:
2793: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2794: function prototypes and stuff, but not '\xHH' hex character constants.
2795: These don't provoke an error unfortunately, instead are silently treated
2796: as 'x'. The following induces an error, until -std is added to get
2797: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2798: array size at least. It's necessary to write '\x00'==0 to get something
2799: that's true only with -std. */
2800: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2801:
2802: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2803: inside strings and character constants. */
2804: #define FOO(x) 'x'
2805: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2806:
2807: int test (int i, double x);
2808: struct s1 {int (*f) (int a);};
2809: struct s2 {int (*f) (double a);};
2810: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2811: int argc;
2812: char **argv;
2813: int
2814: main ()
2815: {
2816: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2817: ;
2818: return 0;
2819: }
2820: _ACEOF
2821: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2822: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2823: do
2824: CC="$ac_save_CC $ac_arg"
2825: if ac_fn_c_try_compile "$LINENO"; then :
2826: ac_cv_prog_cc_c89=$ac_arg
2827: fi
2828: rm -f core conftest.err conftest.$ac_objext
2829: test "x$ac_cv_prog_cc_c89" != "xno" && break
2830: done
2831: rm -f conftest.$ac_ext
2832: CC=$ac_save_CC
2833:
2834: fi
2835: # AC_CACHE_VAL
2836: case "x$ac_cv_prog_cc_c89" in
2837: x)
2838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2839: $as_echo "none needed" >&6; } ;;
2840: xno)
2841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2842: $as_echo "unsupported" >&6; } ;;
2843: *)
2844: CC="$CC $ac_cv_prog_cc_c89"
2845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2846: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2847: esac
2848: if test "x$ac_cv_prog_cc_c89" != xno; then :
2849:
2850: fi
2851:
2852: ac_ext=c
2853: ac_cpp='$CPP $CPPFLAGS'
2854: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857:
2858: # Find a good install program. We prefer a C program (faster),
2859: # so one script is as good as another. But avoid the broken or
2860: # incompatible versions:
2861: # SysV /etc/install, /usr/sbin/install
2862: # SunOS /usr/etc/install
2863: # IRIX /sbin/install
2864: # AIX /bin/install
2865: # AmigaOS /C/install, which installs bootblocks on floppy discs
2866: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2867: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2868: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2869: # OS/2's system install, which has a completely different semantic
2870: # ./install, which can be erroneously created by make from ./install.sh.
2871: # Reject install programs that cannot install multiple files.
2872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2873: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2874: if test -z "$INSTALL"; then
2875: if ${ac_cv_path_install+:} false; then :
2876: $as_echo_n "(cached) " >&6
2877: else
2878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879: for as_dir in $PATH
2880: do
2881: IFS=$as_save_IFS
2882: test -z "$as_dir" && as_dir=.
2883: # Account for people who put trailing slashes in PATH elements.
2884: case $as_dir/ in #((
2885: ./ | .// | /[cC]/* | \
2886: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2887: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2888: /usr/ucb/* ) ;;
2889: *)
2890: # OSF1 and SCO ODT 3.0 have their own names for install.
2891: # Don't use installbsd from OSF since it installs stuff as root
2892: # by default.
2893: for ac_prog in ginstall scoinst install; do
2894: for ac_exec_ext in '' $ac_executable_extensions; do
2895: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2896: if test $ac_prog = install &&
2897: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898: # AIX install. It has an incompatible calling convention.
2899: :
2900: elif test $ac_prog = install &&
2901: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2902: # program-specific install script used by HP pwplus--don't use.
2903: :
2904: else
2905: rm -rf conftest.one conftest.two conftest.dir
2906: echo one > conftest.one
2907: echo two > conftest.two
2908: mkdir conftest.dir
2909: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2910: test -s conftest.one && test -s conftest.two &&
2911: test -s conftest.dir/conftest.one &&
2912: test -s conftest.dir/conftest.two
2913: then
2914: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2915: break 3
2916: fi
2917: fi
2918: fi
2919: done
2920: done
2921: ;;
2922: esac
2923:
2924: done
2925: IFS=$as_save_IFS
2926:
2927: rm -rf conftest.one conftest.two conftest.dir
2928:
2929: fi
2930: if test "${ac_cv_path_install+set}" = set; then
2931: INSTALL=$ac_cv_path_install
2932: else
2933: # As a last resort, use the slow shell script. Don't cache a
2934: # value for INSTALL within a source directory, because that will
2935: # break other packages using the cache if that directory is
2936: # removed, or if the value is a relative name.
2937: INSTALL=$ac_install_sh
2938: fi
2939: fi
2940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2941: $as_echo "$INSTALL" >&6; }
2942:
2943: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2944: # It thinks the first close brace ends the variable substitution.
2945: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2946:
2947: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2948:
2949: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2950:
2951: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2952: $as_echo_n "checking whether ln -s works... " >&6; }
2953: LN_S=$as_ln_s
2954: if test "$LN_S" = "ln -s"; then
2955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2956: $as_echo "yes" >&6; }
2957: else
2958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2959: $as_echo "no, using $LN_S" >&6; }
2960: fi
2961:
2962:
2963: ac_ext=c
2964: ac_cpp='$CPP $CPPFLAGS'
2965: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2969: $as_echo_n "checking how to run the C preprocessor... " >&6; }
2970: # On Suns, sometimes $CPP names a directory.
2971: if test -n "$CPP" && test -d "$CPP"; then
2972: CPP=
2973: fi
2974: if test -z "$CPP"; then
2975: if ${ac_cv_prog_CPP+:} false; then :
2976: $as_echo_n "(cached) " >&6
2977: else
2978: # Double quotes because CPP needs to be expanded
2979: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2980: do
2981: ac_preproc_ok=false
2982: for ac_c_preproc_warn_flag in '' yes
2983: do
2984: # Use a header file that comes with gcc, so configuring glibc
2985: # with a fresh cross-compiler works.
2986: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2987: # <limits.h> exists even on freestanding compilers.
2988: # On the NeXT, cc -E runs the code through the compiler's parser,
2989: # not just through cpp. "Syntax error" is here to catch this case.
2990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991: /* end confdefs.h. */
2992: #ifdef __STDC__
2993: # include <limits.h>
2994: #else
2995: # include <assert.h>
2996: #endif
2997: Syntax error
2998: _ACEOF
2999: if ac_fn_c_try_cpp "$LINENO"; then :
3000:
3001: else
3002: # Broken: fails on valid input.
3003: continue
3004: fi
3005: rm -f conftest.err conftest.i conftest.$ac_ext
3006:
3007: # OK, works on sane cases. Now check whether nonexistent headers
3008: # can be detected and how.
3009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010: /* end confdefs.h. */
3011: #include <ac_nonexistent.h>
3012: _ACEOF
3013: if ac_fn_c_try_cpp "$LINENO"; then :
3014: # Broken: success on invalid input.
3015: continue
3016: else
3017: # Passes both tests.
3018: ac_preproc_ok=:
3019: break
3020: fi
3021: rm -f conftest.err conftest.i conftest.$ac_ext
3022:
3023: done
3024: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025: rm -f conftest.i conftest.err conftest.$ac_ext
3026: if $ac_preproc_ok; then :
3027: break
3028: fi
3029:
3030: done
3031: ac_cv_prog_CPP=$CPP
3032:
3033: fi
3034: CPP=$ac_cv_prog_CPP
3035: else
3036: ac_cv_prog_CPP=$CPP
3037: fi
3038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3039: $as_echo "$CPP" >&6; }
3040: ac_preproc_ok=false
3041: for ac_c_preproc_warn_flag in '' yes
3042: do
3043: # Use a header file that comes with gcc, so configuring glibc
3044: # with a fresh cross-compiler works.
3045: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046: # <limits.h> exists even on freestanding compilers.
3047: # On the NeXT, cc -E runs the code through the compiler's parser,
3048: # not just through cpp. "Syntax error" is here to catch this case.
3049: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050: /* end confdefs.h. */
3051: #ifdef __STDC__
3052: # include <limits.h>
3053: #else
3054: # include <assert.h>
3055: #endif
3056: Syntax error
3057: _ACEOF
3058: if ac_fn_c_try_cpp "$LINENO"; then :
3059:
3060: else
3061: # Broken: fails on valid input.
3062: continue
3063: fi
3064: rm -f conftest.err conftest.i conftest.$ac_ext
3065:
3066: # OK, works on sane cases. Now check whether nonexistent headers
3067: # can be detected and how.
3068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069: /* end confdefs.h. */
3070: #include <ac_nonexistent.h>
3071: _ACEOF
3072: if ac_fn_c_try_cpp "$LINENO"; then :
3073: # Broken: success on invalid input.
3074: continue
3075: else
3076: # Passes both tests.
3077: ac_preproc_ok=:
3078: break
3079: fi
3080: rm -f conftest.err conftest.i conftest.$ac_ext
3081:
3082: done
3083: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3084: rm -f conftest.i conftest.err conftest.$ac_ext
3085: if $ac_preproc_ok; then :
3086:
3087: else
3088: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3091: See \`config.log' for more details" "$LINENO" 5; }
3092: fi
3093:
3094: ac_ext=c
3095: ac_cpp='$CPP $CPPFLAGS'
3096: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099:
3100:
3101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3102: $as_echo_n "checking for X... " >&6; }
3103:
3104:
3105: # Check whether --with-x was given.
3106: if test "${with_x+set}" = set; then :
3107: withval=$with_x;
3108: fi
3109:
3110: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3111: if test "x$with_x" = xno; then
3112: # The user explicitly disabled X.
3113: have_x=disabled
3114: else
3115: case $x_includes,$x_libraries in #(
3116: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3117: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3118: $as_echo_n "(cached) " >&6
3119: else
3120: # One or both of the vars are not set, and there is no cached value.
3121: ac_x_includes=no ac_x_libraries=no
3122: rm -f -r conftest.dir
3123: if mkdir conftest.dir; then
3124: cd conftest.dir
3125: cat >Imakefile <<'_ACEOF'
3126: incroot:
3127: @echo incroot='${INCROOT}'
3128: usrlibdir:
3129: @echo usrlibdir='${USRLIBDIR}'
3130: libdir:
3131: @echo libdir='${LIBDIR}'
3132: _ACEOF
3133: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3134: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3135: for ac_var in incroot usrlibdir libdir; do
3136: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3137: done
3138: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3139: for ac_extension in a so sl dylib la dll; do
3140: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3141: test -f "$ac_im_libdir/libX11.$ac_extension"; then
3142: ac_im_usrlibdir=$ac_im_libdir; break
3143: fi
3144: done
3145: # Screen out bogus values from the imake configuration. They are
3146: # bogus both because they are the default anyway, and because
3147: # using them would break gcc on systems where it needs fixed includes.
3148: case $ac_im_incroot in
3149: /usr/include) ac_x_includes= ;;
3150: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3151: esac
3152: case $ac_im_usrlibdir in
3153: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3154: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3155: esac
3156: fi
3157: cd ..
3158: rm -f -r conftest.dir
3159: fi
3160:
3161: # Standard set of common directories for X headers.
3162: # Check X11 before X11Rn because it is often a symlink to the current release.
3163: ac_x_header_dirs='
3164: /usr/X11/include
3165: /usr/X11R7/include
3166: /usr/X11R6/include
3167: /usr/X11R5/include
3168: /usr/X11R4/include
3169:
3170: /usr/include/X11
3171: /usr/include/X11R7
3172: /usr/include/X11R6
3173: /usr/include/X11R5
3174: /usr/include/X11R4
3175:
3176: /usr/local/X11/include
3177: /usr/local/X11R7/include
3178: /usr/local/X11R6/include
3179: /usr/local/X11R5/include
3180: /usr/local/X11R4/include
3181:
3182: /usr/local/include/X11
3183: /usr/local/include/X11R7
3184: /usr/local/include/X11R6
3185: /usr/local/include/X11R5
3186: /usr/local/include/X11R4
3187:
3188: /usr/X386/include
3189: /usr/x386/include
3190: /usr/XFree86/include/X11
3191:
3192: /usr/include
3193: /usr/local/include
3194: /usr/unsupported/include
3195: /usr/athena/include
3196: /usr/local/x11r5/include
3197: /usr/lpp/Xamples/include
3198:
3199: /usr/openwin/include
3200: /usr/openwin/share/include'
3201:
3202: if test "$ac_x_includes" = no; then
3203: # Guess where to find include files, by looking for Xlib.h.
3204: # First, try using that file with no special directory specified.
3205: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206: /* end confdefs.h. */
3207: #include <X11/Xlib.h>
3208: _ACEOF
3209: if ac_fn_c_try_cpp "$LINENO"; then :
3210: # We can compile using X headers with no special include directory.
3211: ac_x_includes=
3212: else
3213: for ac_dir in $ac_x_header_dirs; do
3214: if test -r "$ac_dir/X11/Xlib.h"; then
3215: ac_x_includes=$ac_dir
3216: break
3217: fi
3218: done
3219: fi
3220: rm -f conftest.err conftest.i conftest.$ac_ext
3221: fi # $ac_x_includes = no
3222:
3223: if test "$ac_x_libraries" = no; then
3224: # Check for the libraries.
3225: # See if we find them without any special options.
3226: # Don't add to $LIBS permanently.
3227: ac_save_LIBS=$LIBS
3228: LIBS="-lX11 $LIBS"
3229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230: /* end confdefs.h. */
3231: #include <X11/Xlib.h>
3232: int
3233: main ()
3234: {
3235: XrmInitialize ()
3236: ;
3237: return 0;
3238: }
3239: _ACEOF
3240: if ac_fn_c_try_link "$LINENO"; then :
3241: LIBS=$ac_save_LIBS
3242: # We can link X programs with no special library path.
3243: ac_x_libraries=
3244: else
3245: LIBS=$ac_save_LIBS
3246: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3247: do
3248: # Don't even attempt the hair of trying to link an X program!
3249: for ac_extension in a so sl dylib la dll; do
3250: if test -r "$ac_dir/libX11.$ac_extension"; then
3251: ac_x_libraries=$ac_dir
3252: break 2
3253: fi
3254: done
3255: done
3256: fi
3257: rm -f core conftest.err conftest.$ac_objext \
3258: conftest$ac_exeext conftest.$ac_ext
3259: fi # $ac_x_libraries = no
3260:
3261: case $ac_x_includes,$ac_x_libraries in #(
3262: no,* | *,no | *\'*)
3263: # Didn't find X, or a directory has "'" in its name.
3264: ac_cv_have_x="have_x=no";; #(
3265: *)
3266: # Record where we found X for the cache.
3267: ac_cv_have_x="have_x=yes\
3268: ac_x_includes='$ac_x_includes'\
3269: ac_x_libraries='$ac_x_libraries'"
3270: esac
3271: fi
3272: ;; #(
3273: *) have_x=yes;;
3274: esac
3275: eval "$ac_cv_have_x"
3276: fi # $with_x != no
3277:
3278: if test "$have_x" != yes; then
3279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3280: $as_echo "$have_x" >&6; }
3281: no_x=yes
3282: else
3283: # If each of the values was on the command line, it overrides each guess.
3284: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3285: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3286: # Update the cache value to reflect the command line values.
3287: ac_cv_have_x="have_x=yes\
3288: ac_x_includes='$x_includes'\
3289: ac_x_libraries='$x_libraries'"
3290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3291: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3292: fi
3293:
3294: if test "$no_x" = yes; then
3295: # Not all programs may use this symbol, but it does not hurt to define it.
3296:
3297: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
3298:
3299: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3300: else
3301: if test -n "$x_includes"; then
3302: X_CFLAGS="$X_CFLAGS -I$x_includes"
3303: fi
3304:
3305: # It would also be nice to do this for all -L options, not just this one.
3306: if test -n "$x_libraries"; then
3307: X_LIBS="$X_LIBS -L$x_libraries"
3308: # For Solaris; some versions of Sun CC require a space after -R and
3309: # others require no space. Words are not sufficient . . . .
3310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
3311: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
3312: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3313: ac_xsave_c_werror_flag=$ac_c_werror_flag
3314: ac_c_werror_flag=yes
3315: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316: /* end confdefs.h. */
3317:
3318: int
3319: main ()
3320: {
3321:
3322: ;
3323: return 0;
3324: }
3325: _ACEOF
3326: if ac_fn_c_try_link "$LINENO"; then :
3327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328: $as_echo "no" >&6; }
3329: X_LIBS="$X_LIBS -R$x_libraries"
3330: else
3331: LIBS="$ac_xsave_LIBS -R $x_libraries"
3332: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333: /* end confdefs.h. */
3334:
3335: int
3336: main ()
3337: {
3338:
3339: ;
3340: return 0;
3341: }
3342: _ACEOF
3343: if ac_fn_c_try_link "$LINENO"; then :
3344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345: $as_echo "yes" >&6; }
3346: X_LIBS="$X_LIBS -R $x_libraries"
3347: else
3348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
3349: $as_echo "neither works" >&6; }
3350: fi
3351: rm -f core conftest.err conftest.$ac_objext \
3352: conftest$ac_exeext conftest.$ac_ext
3353: fi
3354: rm -f core conftest.err conftest.$ac_objext \
3355: conftest$ac_exeext conftest.$ac_ext
3356: ac_c_werror_flag=$ac_xsave_c_werror_flag
3357: LIBS=$ac_xsave_LIBS
3358: fi
3359:
3360: # Check for system-dependent libraries X programs must link with.
3361: # Do this before checking for the system-independent R6 libraries
3362: # (-lICE), since we may need -lsocket or whatever for X linking.
3363:
3364: if test "$ISC" = yes; then
3365: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3366: else
3367: # Martyn Johnson says this is needed for Ultrix, if the X
3368: # libraries were built with DECnet support. And Karl Berry says
3369: # the Alpha needs dnet_stub (dnet does not exist).
3370: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372: /* end confdefs.h. */
3373:
3374: /* Override any GCC internal prototype to avoid an error.
3375: Use char because int might match the return type of a GCC
3376: builtin and then its argument prototype would still apply. */
3377: #ifdef __cplusplus
3378: extern "C"
3379: #endif
3380: char XOpenDisplay ();
3381: int
3382: main ()
3383: {
3384: return XOpenDisplay ();
3385: ;
3386: return 0;
3387: }
3388: _ACEOF
3389: if ac_fn_c_try_link "$LINENO"; then :
3390:
3391: else
3392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
3393: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
3394: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
3395: $as_echo_n "(cached) " >&6
3396: else
3397: ac_check_lib_save_LIBS=$LIBS
3398: LIBS="-ldnet $LIBS"
3399: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400: /* end confdefs.h. */
3401:
3402: /* Override any GCC internal prototype to avoid an error.
3403: Use char because int might match the return type of a GCC
3404: builtin and then its argument prototype would still apply. */
3405: #ifdef __cplusplus
3406: extern "C"
3407: #endif
3408: char dnet_ntoa ();
3409: int
3410: main ()
3411: {
3412: return dnet_ntoa ();
3413: ;
3414: return 0;
3415: }
3416: _ACEOF
3417: if ac_fn_c_try_link "$LINENO"; then :
3418: ac_cv_lib_dnet_dnet_ntoa=yes
3419: else
3420: ac_cv_lib_dnet_dnet_ntoa=no
3421: fi
3422: rm -f core conftest.err conftest.$ac_objext \
3423: conftest$ac_exeext conftest.$ac_ext
3424: LIBS=$ac_check_lib_save_LIBS
3425: fi
3426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3427: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
3428: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
3429: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3430: fi
3431:
3432: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
3434: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
3435: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
3436: $as_echo_n "(cached) " >&6
3437: else
3438: ac_check_lib_save_LIBS=$LIBS
3439: LIBS="-ldnet_stub $LIBS"
3440: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441: /* end confdefs.h. */
3442:
3443: /* Override any GCC internal prototype to avoid an error.
3444: Use char because int might match the return type of a GCC
3445: builtin and then its argument prototype would still apply. */
3446: #ifdef __cplusplus
3447: extern "C"
3448: #endif
3449: char dnet_ntoa ();
3450: int
3451: main ()
3452: {
3453: return dnet_ntoa ();
3454: ;
3455: return 0;
3456: }
3457: _ACEOF
3458: if ac_fn_c_try_link "$LINENO"; then :
3459: ac_cv_lib_dnet_stub_dnet_ntoa=yes
3460: else
3461: ac_cv_lib_dnet_stub_dnet_ntoa=no
3462: fi
3463: rm -f core conftest.err conftest.$ac_objext \
3464: conftest$ac_exeext conftest.$ac_ext
3465: LIBS=$ac_check_lib_save_LIBS
3466: fi
3467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3468: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
3469: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
3470: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3471: fi
3472:
3473: fi
3474: fi
3475: rm -f core conftest.err conftest.$ac_objext \
3476: conftest$ac_exeext conftest.$ac_ext
3477: LIBS="$ac_xsave_LIBS"
3478:
3479: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3480: # to get the SysV transport functions.
3481: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3482: # needs -lnsl.
3483: # The nsl library prevents programs from opening the X display
3484: # on Irix 5.2, according to T.E. Dickey.
3485: # The functions gethostbyname, getservbyname, and inet_addr are
3486: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3487: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
3488: if test "x$ac_cv_func_gethostbyname" = xyes; then :
3489:
3490: fi
3491:
3492: if test $ac_cv_func_gethostbyname = no; then
3493: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
3494: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3495: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
3496: $as_echo_n "(cached) " >&6
3497: else
3498: ac_check_lib_save_LIBS=$LIBS
3499: LIBS="-lnsl $LIBS"
3500: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501: /* end confdefs.h. */
3502:
3503: /* Override any GCC internal prototype to avoid an error.
3504: Use char because int might match the return type of a GCC
3505: builtin and then its argument prototype would still apply. */
3506: #ifdef __cplusplus
3507: extern "C"
3508: #endif
3509: char gethostbyname ();
3510: int
3511: main ()
3512: {
3513: return gethostbyname ();
3514: ;
3515: return 0;
3516: }
3517: _ACEOF
3518: if ac_fn_c_try_link "$LINENO"; then :
3519: ac_cv_lib_nsl_gethostbyname=yes
3520: else
3521: ac_cv_lib_nsl_gethostbyname=no
3522: fi
3523: rm -f core conftest.err conftest.$ac_objext \
3524: conftest$ac_exeext conftest.$ac_ext
3525: LIBS=$ac_check_lib_save_LIBS
3526: fi
3527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
3528: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3529: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
3530: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3531: fi
3532:
3533: if test $ac_cv_lib_nsl_gethostbyname = no; then
3534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
3535: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
3536: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
3537: $as_echo_n "(cached) " >&6
3538: else
3539: ac_check_lib_save_LIBS=$LIBS
3540: LIBS="-lbsd $LIBS"
3541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542: /* end confdefs.h. */
3543:
3544: /* Override any GCC internal prototype to avoid an error.
3545: Use char because int might match the return type of a GCC
3546: builtin and then its argument prototype would still apply. */
3547: #ifdef __cplusplus
3548: extern "C"
3549: #endif
3550: char gethostbyname ();
3551: int
3552: main ()
3553: {
3554: return gethostbyname ();
3555: ;
3556: return 0;
3557: }
3558: _ACEOF
3559: if ac_fn_c_try_link "$LINENO"; then :
3560: ac_cv_lib_bsd_gethostbyname=yes
3561: else
3562: ac_cv_lib_bsd_gethostbyname=no
3563: fi
3564: rm -f core conftest.err conftest.$ac_objext \
3565: conftest$ac_exeext conftest.$ac_ext
3566: LIBS=$ac_check_lib_save_LIBS
3567: fi
3568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
3569: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
3570: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
3571: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3572: fi
3573:
3574: fi
3575: fi
3576:
3577: # lieder@skyler.mavd.honeywell.com says without -lsocket,
3578: # socket/setsockopt and other routines are undefined under SCO ODT
3579: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3580: # on later versions), says Simon Leinen: it contains gethostby*
3581: # variants that don't use the name server (or something). -lsocket
3582: # must be given before -lnsl if both are needed. We assume that
3583: # if connect needs -lnsl, so does gethostbyname.
3584: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
3585: if test "x$ac_cv_func_connect" = xyes; then :
3586:
3587: fi
3588:
3589: if test $ac_cv_func_connect = no; then
3590: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
3591: $as_echo_n "checking for connect in -lsocket... " >&6; }
3592: if ${ac_cv_lib_socket_connect+:} false; then :
3593: $as_echo_n "(cached) " >&6
3594: else
3595: ac_check_lib_save_LIBS=$LIBS
3596: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598: /* end confdefs.h. */
3599:
3600: /* Override any GCC internal prototype to avoid an error.
3601: Use char because int might match the return type of a GCC
3602: builtin and then its argument prototype would still apply. */
3603: #ifdef __cplusplus
3604: extern "C"
3605: #endif
3606: char connect ();
3607: int
3608: main ()
3609: {
3610: return connect ();
3611: ;
3612: return 0;
3613: }
3614: _ACEOF
3615: if ac_fn_c_try_link "$LINENO"; then :
3616: ac_cv_lib_socket_connect=yes
3617: else
3618: ac_cv_lib_socket_connect=no
3619: fi
3620: rm -f core conftest.err conftest.$ac_objext \
3621: conftest$ac_exeext conftest.$ac_ext
3622: LIBS=$ac_check_lib_save_LIBS
3623: fi
3624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
3625: $as_echo "$ac_cv_lib_socket_connect" >&6; }
3626: if test "x$ac_cv_lib_socket_connect" = xyes; then :
3627: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3628: fi
3629:
3630: fi
3631:
3632: # Guillermo Gomez says -lposix is necessary on A/UX.
3633: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
3634: if test "x$ac_cv_func_remove" = xyes; then :
3635:
3636: fi
3637:
3638: if test $ac_cv_func_remove = no; then
3639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
3640: $as_echo_n "checking for remove in -lposix... " >&6; }
3641: if ${ac_cv_lib_posix_remove+:} false; then :
3642: $as_echo_n "(cached) " >&6
3643: else
3644: ac_check_lib_save_LIBS=$LIBS
3645: LIBS="-lposix $LIBS"
3646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647: /* end confdefs.h. */
3648:
3649: /* Override any GCC internal prototype to avoid an error.
3650: Use char because int might match the return type of a GCC
3651: builtin and then its argument prototype would still apply. */
3652: #ifdef __cplusplus
3653: extern "C"
3654: #endif
3655: char remove ();
3656: int
3657: main ()
3658: {
3659: return remove ();
3660: ;
3661: return 0;
3662: }
3663: _ACEOF
3664: if ac_fn_c_try_link "$LINENO"; then :
3665: ac_cv_lib_posix_remove=yes
3666: else
3667: ac_cv_lib_posix_remove=no
3668: fi
3669: rm -f core conftest.err conftest.$ac_objext \
3670: conftest$ac_exeext conftest.$ac_ext
3671: LIBS=$ac_check_lib_save_LIBS
3672: fi
3673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
3674: $as_echo "$ac_cv_lib_posix_remove" >&6; }
3675: if test "x$ac_cv_lib_posix_remove" = xyes; then :
3676: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3677: fi
3678:
3679: fi
3680:
3681: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3682: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
3683: if test "x$ac_cv_func_shmat" = xyes; then :
3684:
3685: fi
3686:
3687: if test $ac_cv_func_shmat = no; then
3688: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
3689: $as_echo_n "checking for shmat in -lipc... " >&6; }
3690: if ${ac_cv_lib_ipc_shmat+:} false; then :
3691: $as_echo_n "(cached) " >&6
3692: else
3693: ac_check_lib_save_LIBS=$LIBS
3694: LIBS="-lipc $LIBS"
3695: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696: /* end confdefs.h. */
3697:
3698: /* Override any GCC internal prototype to avoid an error.
3699: Use char because int might match the return type of a GCC
3700: builtin and then its argument prototype would still apply. */
3701: #ifdef __cplusplus
3702: extern "C"
3703: #endif
3704: char shmat ();
3705: int
3706: main ()
3707: {
3708: return shmat ();
3709: ;
3710: return 0;
3711: }
3712: _ACEOF
3713: if ac_fn_c_try_link "$LINENO"; then :
3714: ac_cv_lib_ipc_shmat=yes
3715: else
3716: ac_cv_lib_ipc_shmat=no
3717: fi
3718: rm -f core conftest.err conftest.$ac_objext \
3719: conftest$ac_exeext conftest.$ac_ext
3720: LIBS=$ac_check_lib_save_LIBS
3721: fi
3722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
3723: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
3724: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
3725: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3726: fi
3727:
3728: fi
3729: fi
3730:
3731: # Check for libraries that X11R6 Xt/Xaw programs need.
3732: ac_save_LDFLAGS=$LDFLAGS
3733: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3734: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3735: # check for ICE first), but we must link in the order -lSM -lICE or
3736: # we get undefined symbols. So assume we have SM if we have ICE.
3737: # These have to be linked with before -lX11, unlike the other
3738: # libraries we check for below, so use a different variable.
3739: # John Interrante, Karl Berry
3740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
3741: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
3742: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
3743: $as_echo_n "(cached) " >&6
3744: else
3745: ac_check_lib_save_LIBS=$LIBS
3746: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3747: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748: /* end confdefs.h. */
3749:
3750: /* Override any GCC internal prototype to avoid an error.
3751: Use char because int might match the return type of a GCC
3752: builtin and then its argument prototype would still apply. */
3753: #ifdef __cplusplus
3754: extern "C"
3755: #endif
3756: char IceConnectionNumber ();
3757: int
3758: main ()
3759: {
3760: return IceConnectionNumber ();
3761: ;
3762: return 0;
3763: }
3764: _ACEOF
3765: if ac_fn_c_try_link "$LINENO"; then :
3766: ac_cv_lib_ICE_IceConnectionNumber=yes
3767: else
3768: ac_cv_lib_ICE_IceConnectionNumber=no
3769: fi
3770: rm -f core conftest.err conftest.$ac_objext \
3771: conftest$ac_exeext conftest.$ac_ext
3772: LIBS=$ac_check_lib_save_LIBS
3773: fi
3774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3775: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
3776: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
3777: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3778: fi
3779:
3780: LDFLAGS=$ac_save_LDFLAGS
3781:
3782: fi
3783:
3784:
3785: TARGET=ox_python
3786: case "${host}" in
3787: *-apple-darwin*)
3788: LIBS="-L../../lib -L/usr/local/lib -lox -lmpfr -lgmp -lgc"
3789: CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include"
1.2 ! takayama 3790: ;;
! 3791: *-linux-gnu*)
! 3792: LIBS_GCC=" "
! 3793: LIBS_OX="-L../../lib -lox -lmpfr -lgmp -lgc"
! 3794: LIBS_P38="-lpython3.8"
! 3795: LIBS="${LIBS_GCC} ${LIBS_P38} ${LIBS_OX}"
! 3796: CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include "
1.1 takayama 3797: ;;
3798: *)
3799: LIBS_GCC="-L/usr/local/lib -L/usr/local/lib/gcc49 -Wl,-rpath=/usr/local/lib/gcc49"
3800: LIBS_OX="-L../../lib -lox -lmpfr -lgmp -lgc"
3801: LIBS="${LIBS_GCC} ${LIBS_OX}"
3802: CFLAGS="${CPPFLAGS} -Wno-attributes -I../../include -I /usr/local/include "
3803: ;;
3804: esac
3805:
3806:
3807:
3808: ac_config_files="$ac_config_files Makefile"
3809:
3810: cat >confcache <<\_ACEOF
3811: # This file is a shell script that caches the results of configure
3812: # tests run on this system so they can be shared between configure
3813: # scripts and configure runs, see configure's option --config-cache.
3814: # It is not useful on other systems. If it contains results you don't
3815: # want to keep, you may remove or edit it.
3816: #
3817: # config.status only pays attention to the cache file if you give it
3818: # the --recheck option to rerun configure.
3819: #
3820: # `ac_cv_env_foo' variables (set or unset) will be overridden when
3821: # loading this file, other *unset* `ac_cv_foo' will be assigned the
3822: # following values.
3823:
3824: _ACEOF
3825:
3826: # The following way of writing the cache mishandles newlines in values,
3827: # but we know of no workaround that is simple, portable, and efficient.
3828: # So, we kill variables containing newlines.
3829: # Ultrix sh set writes to stderr and can't be redirected directly,
3830: # and sets the high bit in the cache file unless we assign to the vars.
3831: (
3832: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3833: eval ac_val=\$$ac_var
3834: case $ac_val in #(
3835: *${as_nl}*)
3836: case $ac_var in #(
3837: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3838: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3839: esac
3840: case $ac_var in #(
3841: _ | IFS | as_nl) ;; #(
3842: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3843: *) { eval $ac_var=; unset $ac_var;} ;;
3844: esac ;;
3845: esac
3846: done
3847:
3848: (set) 2>&1 |
3849: case $as_nl`(ac_space=' '; set) 2>&1` in #(
3850: *${as_nl}ac_space=\ *)
3851: # `set' does not quote correctly, so add quotes: double-quote
3852: # substitution turns \\\\ into \\, and sed turns \\ into \.
3853: sed -n \
3854: "s/'/'\\\\''/g;
3855: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3856: ;; #(
3857: *)
3858: # `set' quotes correctly as required by POSIX, so do not add quotes.
3859: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3860: ;;
3861: esac |
3862: sort
3863: ) |
3864: sed '
3865: /^ac_cv_env_/b end
3866: t clear
3867: :clear
3868: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3869: t end
3870: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3871: :end' >>confcache
3872: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3873: if test -w "$cache_file"; then
3874: if test "x$cache_file" != "x/dev/null"; then
3875: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3876: $as_echo "$as_me: updating cache $cache_file" >&6;}
3877: if test ! -f "$cache_file" || test -h "$cache_file"; then
3878: cat confcache >"$cache_file"
3879: else
3880: case $cache_file in #(
3881: */* | ?:*)
3882: mv -f confcache "$cache_file"$$ &&
3883: mv -f "$cache_file"$$ "$cache_file" ;; #(
3884: *)
3885: mv -f confcache "$cache_file" ;;
3886: esac
3887: fi
3888: fi
3889: else
3890: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3891: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3892: fi
3893: fi
3894: rm -f confcache
3895:
3896: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3897: # Let make expand exec_prefix.
3898: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3899:
3900: # Transform confdefs.h into DEFS.
3901: # Protect against shell expansion while executing Makefile rules.
3902: # Protect against Makefile macro expansion.
3903: #
3904: # If the first sed substitution is executed (which looks for macros that
3905: # take arguments), then branch to the quote section. Otherwise,
3906: # look for a macro that doesn't take arguments.
3907: ac_script='
3908: :mline
3909: /\\$/{
3910: N
3911: s,\\\n,,
3912: b mline
3913: }
3914: t clear
3915: :clear
3916: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3917: t quote
3918: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3919: t quote
3920: b any
3921: :quote
3922: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3923: s/\[/\\&/g
3924: s/\]/\\&/g
3925: s/\$/$$/g
3926: H
3927: :any
3928: ${
3929: g
3930: s/^\n//
3931: s/\n/ /g
3932: p
3933: }
3934: '
3935: DEFS=`sed -n "$ac_script" confdefs.h`
3936:
3937:
3938: ac_libobjs=
3939: ac_ltlibobjs=
3940: U=
3941: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3942: # 1. Remove the extension, and $U if already installed.
3943: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3944: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3945: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3946: # will be set to the directory where LIBOBJS objects are built.
3947: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3948: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3949: done
3950: LIBOBJS=$ac_libobjs
3951:
3952: LTLIBOBJS=$ac_ltlibobjs
3953:
3954:
3955:
3956: : "${CONFIG_STATUS=./config.status}"
3957: ac_write_fail=0
3958: ac_clean_files_save=$ac_clean_files
3959: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3960: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3961: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3962: as_write_fail=0
3963: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3964: #! $SHELL
3965: # Generated by $as_me.
3966: # Run this file to recreate the current configuration.
3967: # Compiler output produced by configure, useful for debugging
3968: # configure, is in config.log if it exists.
3969:
3970: debug=false
3971: ac_cs_recheck=false
3972: ac_cs_silent=false
3973:
3974: SHELL=\${CONFIG_SHELL-$SHELL}
3975: export SHELL
3976: _ASEOF
3977: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3978: ## -------------------- ##
3979: ## M4sh Initialization. ##
3980: ## -------------------- ##
3981:
3982: # Be more Bourne compatible
3983: DUALCASE=1; export DUALCASE # for MKS sh
3984: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3985: emulate sh
3986: NULLCMD=:
3987: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3988: # is contrary to our usage. Disable this feature.
3989: alias -g '${1+"$@"}'='"$@"'
3990: setopt NO_GLOB_SUBST
3991: else
3992: case `(set -o) 2>/dev/null` in #(
3993: *posix*) :
3994: set -o posix ;; #(
3995: *) :
3996: ;;
3997: esac
3998: fi
3999:
4000:
4001: as_nl='
4002: '
4003: export as_nl
4004: # Printing a long string crashes Solaris 7 /usr/bin/printf.
4005: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4006: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4007: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4008: # Prefer a ksh shell builtin over an external printf program on Solaris,
4009: # but without wasting forks for bash or zsh.
4010: if test -z "$BASH_VERSION$ZSH_VERSION" \
4011: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4012: as_echo='print -r --'
4013: as_echo_n='print -rn --'
4014: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4015: as_echo='printf %s\n'
4016: as_echo_n='printf %s'
4017: else
4018: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4019: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4020: as_echo_n='/usr/ucb/echo -n'
4021: else
4022: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4023: as_echo_n_body='eval
4024: arg=$1;
4025: case $arg in #(
4026: *"$as_nl"*)
4027: expr "X$arg" : "X\\(.*\\)$as_nl";
4028: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4029: esac;
4030: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4031: '
4032: export as_echo_n_body
4033: as_echo_n='sh -c $as_echo_n_body as_echo'
4034: fi
4035: export as_echo_body
4036: as_echo='sh -c $as_echo_body as_echo'
4037: fi
4038:
4039: # The user is always right.
4040: if test "${PATH_SEPARATOR+set}" != set; then
4041: PATH_SEPARATOR=:
4042: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4043: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4044: PATH_SEPARATOR=';'
4045: }
4046: fi
4047:
4048:
4049: # IFS
4050: # We need space, tab and new line, in precisely that order. Quoting is
4051: # there to prevent editors from complaining about space-tab.
4052: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4053: # splitting by setting IFS to empty value.)
4054: IFS=" "" $as_nl"
4055:
4056: # Find who we are. Look in the path if we contain no directory separator.
4057: as_myself=
4058: case $0 in #((
4059: *[\\/]* ) as_myself=$0 ;;
4060: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061: for as_dir in $PATH
4062: do
4063: IFS=$as_save_IFS
4064: test -z "$as_dir" && as_dir=.
4065: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4066: done
4067: IFS=$as_save_IFS
4068:
4069: ;;
4070: esac
4071: # We did not find ourselves, most probably we were run as `sh COMMAND'
4072: # in which case we are not to be found in the path.
4073: if test "x$as_myself" = x; then
4074: as_myself=$0
4075: fi
4076: if test ! -f "$as_myself"; then
4077: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4078: exit 1
4079: fi
4080:
4081: # Unset variables that we do not need and which cause bugs (e.g. in
4082: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4083: # suppresses any "Segmentation fault" message there. '((' could
4084: # trigger a bug in pdksh 5.2.14.
4085: for as_var in BASH_ENV ENV MAIL MAILPATH
4086: do eval test x\${$as_var+set} = xset \
4087: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4088: done
4089: PS1='$ '
4090: PS2='> '
4091: PS4='+ '
4092:
4093: # NLS nuisances.
4094: LC_ALL=C
4095: export LC_ALL
4096: LANGUAGE=C
4097: export LANGUAGE
4098:
4099: # CDPATH.
4100: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4101:
4102:
4103: # as_fn_error STATUS ERROR [LINENO LOG_FD]
4104: # ----------------------------------------
4105: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4106: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4107: # script with STATUS, using 1 if that was 0.
4108: as_fn_error ()
4109: {
4110: as_status=$1; test $as_status -eq 0 && as_status=1
4111: if test "$4"; then
4112: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4113: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4114: fi
4115: $as_echo "$as_me: error: $2" >&2
4116: as_fn_exit $as_status
4117: } # as_fn_error
4118:
4119:
4120: # as_fn_set_status STATUS
4121: # -----------------------
4122: # Set $? to STATUS, without forking.
4123: as_fn_set_status ()
4124: {
4125: return $1
4126: } # as_fn_set_status
4127:
4128: # as_fn_exit STATUS
4129: # -----------------
4130: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4131: as_fn_exit ()
4132: {
4133: set +e
4134: as_fn_set_status $1
4135: exit $1
4136: } # as_fn_exit
4137:
4138: # as_fn_unset VAR
4139: # ---------------
4140: # Portably unset VAR.
4141: as_fn_unset ()
4142: {
4143: { eval $1=; unset $1;}
4144: }
4145: as_unset=as_fn_unset
4146: # as_fn_append VAR VALUE
4147: # ----------------------
4148: # Append the text in VALUE to the end of the definition contained in VAR. Take
4149: # advantage of any shell optimizations that allow amortized linear growth over
4150: # repeated appends, instead of the typical quadratic growth present in naive
4151: # implementations.
4152: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4153: eval 'as_fn_append ()
4154: {
4155: eval $1+=\$2
4156: }'
4157: else
4158: as_fn_append ()
4159: {
4160: eval $1=\$$1\$2
4161: }
4162: fi # as_fn_append
4163:
4164: # as_fn_arith ARG...
4165: # ------------------
4166: # Perform arithmetic evaluation on the ARGs, and store the result in the
4167: # global $as_val. Take advantage of shells that can avoid forks. The arguments
4168: # must be portable across $(()) and expr.
4169: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4170: eval 'as_fn_arith ()
4171: {
4172: as_val=$(( $* ))
4173: }'
4174: else
4175: as_fn_arith ()
4176: {
4177: as_val=`expr "$@" || test $? -eq 1`
4178: }
4179: fi # as_fn_arith
4180:
4181:
4182: if expr a : '\(a\)' >/dev/null 2>&1 &&
4183: test "X`expr 00001 : '.*\(...\)'`" = X001; then
4184: as_expr=expr
4185: else
4186: as_expr=false
4187: fi
4188:
4189: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4190: as_basename=basename
4191: else
4192: as_basename=false
4193: fi
4194:
4195: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4196: as_dirname=dirname
4197: else
4198: as_dirname=false
4199: fi
4200:
4201: as_me=`$as_basename -- "$0" ||
4202: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4203: X"$0" : 'X\(//\)$' \| \
4204: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4205: $as_echo X/"$0" |
4206: sed '/^.*\/\([^/][^/]*\)\/*$/{
4207: s//\1/
4208: q
4209: }
4210: /^X\/\(\/\/\)$/{
4211: s//\1/
4212: q
4213: }
4214: /^X\/\(\/\).*/{
4215: s//\1/
4216: q
4217: }
4218: s/.*/./; q'`
4219:
4220: # Avoid depending upon Character Ranges.
4221: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4222: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4223: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4224: as_cr_digits='0123456789'
4225: as_cr_alnum=$as_cr_Letters$as_cr_digits
4226:
4227: ECHO_C= ECHO_N= ECHO_T=
4228: case `echo -n x` in #(((((
4229: -n*)
4230: case `echo 'xy\c'` in
4231: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4232: xy) ECHO_C='\c';;
4233: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4234: ECHO_T=' ';;
4235: esac;;
4236: *)
4237: ECHO_N='-n';;
4238: esac
4239:
4240: rm -f conf$$ conf$$.exe conf$$.file
4241: if test -d conf$$.dir; then
4242: rm -f conf$$.dir/conf$$.file
4243: else
4244: rm -f conf$$.dir
4245: mkdir conf$$.dir 2>/dev/null
4246: fi
4247: if (echo >conf$$.file) 2>/dev/null; then
4248: if ln -s conf$$.file conf$$ 2>/dev/null; then
4249: as_ln_s='ln -s'
4250: # ... but there are two gotchas:
4251: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4252: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4253: # In both cases, we have to default to `cp -pR'.
4254: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4255: as_ln_s='cp -pR'
4256: elif ln conf$$.file conf$$ 2>/dev/null; then
4257: as_ln_s=ln
4258: else
4259: as_ln_s='cp -pR'
4260: fi
4261: else
4262: as_ln_s='cp -pR'
4263: fi
4264: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4265: rmdir conf$$.dir 2>/dev/null
4266:
4267:
4268: # as_fn_mkdir_p
4269: # -------------
4270: # Create "$as_dir" as a directory, including parents if necessary.
4271: as_fn_mkdir_p ()
4272: {
4273:
4274: case $as_dir in #(
4275: -*) as_dir=./$as_dir;;
4276: esac
4277: test -d "$as_dir" || eval $as_mkdir_p || {
4278: as_dirs=
4279: while :; do
4280: case $as_dir in #(
4281: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4282: *) as_qdir=$as_dir;;
4283: esac
4284: as_dirs="'$as_qdir' $as_dirs"
4285: as_dir=`$as_dirname -- "$as_dir" ||
4286: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4287: X"$as_dir" : 'X\(//\)[^/]' \| \
4288: X"$as_dir" : 'X\(//\)$' \| \
4289: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4290: $as_echo X"$as_dir" |
4291: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4292: s//\1/
4293: q
4294: }
4295: /^X\(\/\/\)[^/].*/{
4296: s//\1/
4297: q
4298: }
4299: /^X\(\/\/\)$/{
4300: s//\1/
4301: q
4302: }
4303: /^X\(\/\).*/{
4304: s//\1/
4305: q
4306: }
4307: s/.*/./; q'`
4308: test -d "$as_dir" && break
4309: done
4310: test -z "$as_dirs" || eval "mkdir $as_dirs"
4311: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4312:
4313:
4314: } # as_fn_mkdir_p
4315: if mkdir -p . 2>/dev/null; then
4316: as_mkdir_p='mkdir -p "$as_dir"'
4317: else
4318: test -d ./-p && rmdir ./-p
4319: as_mkdir_p=false
4320: fi
4321:
4322:
4323: # as_fn_executable_p FILE
4324: # -----------------------
4325: # Test if FILE is an executable regular file.
4326: as_fn_executable_p ()
4327: {
4328: test -f "$1" && test -x "$1"
4329: } # as_fn_executable_p
4330: as_test_x='test -x'
4331: as_executable_p=as_fn_executable_p
4332:
4333: # Sed expression to map a string onto a valid CPP name.
4334: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4335:
4336: # Sed expression to map a string onto a valid variable name.
4337: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4338:
4339:
4340: exec 6>&1
4341: ## ----------------------------------- ##
4342: ## Main body of $CONFIG_STATUS script. ##
4343: ## ----------------------------------- ##
4344: _ASEOF
4345: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4346:
4347: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4348: # Save the log message, to keep $0 and so on meaningful, and to
4349: # report actual input values of CONFIG_FILES etc. instead of their
4350: # values after options handling.
4351: ac_log="
4352: This file was extended by $as_me, which was
4353: generated by GNU Autoconf 2.69. Invocation command line was
4354:
4355: CONFIG_FILES = $CONFIG_FILES
4356: CONFIG_HEADERS = $CONFIG_HEADERS
4357: CONFIG_LINKS = $CONFIG_LINKS
4358: CONFIG_COMMANDS = $CONFIG_COMMANDS
4359: $ $0 $@
4360:
4361: on `(hostname || uname -n) 2>/dev/null | sed 1q`
4362: "
4363:
4364: _ACEOF
4365:
4366: case $ac_config_files in *"
4367: "*) set x $ac_config_files; shift; ac_config_files=$*;;
4368: esac
4369:
4370:
4371:
4372: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4373: # Files that config.status was made for.
4374: config_files="$ac_config_files"
4375:
4376: _ACEOF
4377:
4378: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4379: ac_cs_usage="\
4380: \`$as_me' instantiates files and other configuration actions
4381: from templates according to the current configuration. Unless the files
4382: and actions are specified as TAGs, all are instantiated by default.
4383:
4384: Usage: $0 [OPTION]... [TAG]...
4385:
4386: -h, --help print this help, then exit
4387: -V, --version print version number and configuration settings, then exit
4388: --config print configuration, then exit
4389: -q, --quiet, --silent
4390: do not print progress messages
4391: -d, --debug don't remove temporary files
4392: --recheck update $as_me by reconfiguring in the same conditions
4393: --file=FILE[:TEMPLATE]
4394: instantiate the configuration file FILE
4395:
4396: Configuration files:
4397: $config_files
4398:
4399: Report bugs to the package provider."
4400:
4401: _ACEOF
4402: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4403: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4404: ac_cs_version="\\
4405: config.status
4406: configured by $0, generated by GNU Autoconf 2.69,
4407: with options \\"\$ac_cs_config\\"
4408:
4409: Copyright (C) 2012 Free Software Foundation, Inc.
4410: This config.status script is free software; the Free Software Foundation
4411: gives unlimited permission to copy, distribute and modify it."
4412:
4413: ac_pwd='$ac_pwd'
4414: srcdir='$srcdir'
4415: INSTALL='$INSTALL'
4416: test -n "\$AWK" || AWK=awk
4417: _ACEOF
4418:
4419: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4420: # The default lists apply if the user does not specify any file.
4421: ac_need_defaults=:
4422: while test $# != 0
4423: do
4424: case $1 in
4425: --*=?*)
4426: ac_option=`expr "X$1" : 'X\([^=]*\)='`
4427: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4428: ac_shift=:
4429: ;;
4430: --*=)
4431: ac_option=`expr "X$1" : 'X\([^=]*\)='`
4432: ac_optarg=
4433: ac_shift=:
4434: ;;
4435: *)
4436: ac_option=$1
4437: ac_optarg=$2
4438: ac_shift=shift
4439: ;;
4440: esac
4441:
4442: case $ac_option in
4443: # Handling of the options.
4444: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4445: ac_cs_recheck=: ;;
4446: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4447: $as_echo "$ac_cs_version"; exit ;;
4448: --config | --confi | --conf | --con | --co | --c )
4449: $as_echo "$ac_cs_config"; exit ;;
4450: --debug | --debu | --deb | --de | --d | -d )
4451: debug=: ;;
4452: --file | --fil | --fi | --f )
4453: $ac_shift
4454: case $ac_optarg in
4455: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4456: '') as_fn_error $? "missing file argument" ;;
4457: esac
4458: as_fn_append CONFIG_FILES " '$ac_optarg'"
4459: ac_need_defaults=false;;
4460: --he | --h | --help | --hel | -h )
4461: $as_echo "$ac_cs_usage"; exit ;;
4462: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4463: | -silent | --silent | --silen | --sile | --sil | --si | --s)
4464: ac_cs_silent=: ;;
4465:
4466: # This is an error.
4467: -*) as_fn_error $? "unrecognized option: \`$1'
4468: Try \`$0 --help' for more information." ;;
4469:
4470: *) as_fn_append ac_config_targets " $1"
4471: ac_need_defaults=false ;;
4472:
4473: esac
4474: shift
4475: done
4476:
4477: ac_configure_extra_args=
4478:
4479: if $ac_cs_silent; then
4480: exec 6>/dev/null
4481: ac_configure_extra_args="$ac_configure_extra_args --silent"
4482: fi
4483:
4484: _ACEOF
4485: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4486: if \$ac_cs_recheck; then
4487: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4488: shift
4489: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4490: CONFIG_SHELL='$SHELL'
4491: export CONFIG_SHELL
4492: exec "\$@"
4493: fi
4494:
4495: _ACEOF
4496: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4497: exec 5>>config.log
4498: {
4499: echo
4500: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4501: ## Running $as_me. ##
4502: _ASBOX
4503: $as_echo "$ac_log"
4504: } >&5
4505:
4506: _ACEOF
4507: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4508: _ACEOF
4509:
4510: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4511:
4512: # Handling of arguments.
4513: for ac_config_target in $ac_config_targets
4514: do
4515: case $ac_config_target in
4516: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4517:
4518: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4519: esac
4520: done
4521:
4522:
4523: # If the user did not use the arguments to specify the items to instantiate,
4524: # then the envvar interface is used. Set only those that are not.
4525: # We use the long form for the default assignment because of an extremely
4526: # bizarre bug on SunOS 4.1.3.
4527: if $ac_need_defaults; then
4528: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4529: fi
4530:
4531: # Have a temporary directory for convenience. Make it in the build tree
4532: # simply because there is no reason against having it here, and in addition,
4533: # creating and moving files from /tmp can sometimes cause problems.
4534: # Hook for its removal unless debugging.
4535: # Note that there is a small window in which the directory will not be cleaned:
4536: # after its creation but before its name has been assigned to `$tmp'.
4537: $debug ||
4538: {
4539: tmp= ac_tmp=
4540: trap 'exit_status=$?
4541: : "${ac_tmp:=$tmp}"
4542: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4543: ' 0
4544: trap 'as_fn_exit 1' 1 2 13 15
4545: }
4546: # Create a (secure) tmp directory for tmp files.
4547:
4548: {
4549: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4550: test -d "$tmp"
4551: } ||
4552: {
4553: tmp=./conf$$-$RANDOM
4554: (umask 077 && mkdir "$tmp")
4555: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4556: ac_tmp=$tmp
4557:
4558: # Set up the scripts for CONFIG_FILES section.
4559: # No need to generate them if there are no CONFIG_FILES.
4560: # This happens for instance with `./config.status config.h'.
4561: if test -n "$CONFIG_FILES"; then
4562:
4563:
4564: ac_cr=`echo X | tr X '\015'`
4565: # On cygwin, bash can eat \r inside `` if the user requested igncr.
4566: # But we know of no other shell where ac_cr would be empty at this
4567: # point, so we can use a bashism as a fallback.
4568: if test "x$ac_cr" = x; then
4569: eval ac_cr=\$\'\\r\'
4570: fi
4571: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4572: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4573: ac_cs_awk_cr='\\r'
4574: else
4575: ac_cs_awk_cr=$ac_cr
4576: fi
4577:
4578: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4579: _ACEOF
4580:
4581:
4582: {
4583: echo "cat >conf$$subs.awk <<_ACEOF" &&
4584: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4585: echo "_ACEOF"
4586: } >conf$$subs.sh ||
4587: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4588: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4589: ac_delim='%!_!# '
4590: for ac_last_try in false false false false false :; do
4591: . ./conf$$subs.sh ||
4592: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4593:
4594: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4595: if test $ac_delim_n = $ac_delim_num; then
4596: break
4597: elif $ac_last_try; then
4598: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4599: else
4600: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4601: fi
4602: done
4603: rm -f conf$$subs.sh
4604:
4605: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4606: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4607: _ACEOF
4608: sed -n '
4609: h
4610: s/^/S["/; s/!.*/"]=/
4611: p
4612: g
4613: s/^[^!]*!//
4614: :repl
4615: t repl
4616: s/'"$ac_delim"'$//
4617: t delim
4618: :nl
4619: h
4620: s/\(.\{148\}\)..*/\1/
4621: t more1
4622: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4623: p
4624: n
4625: b repl
4626: :more1
4627: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4628: p
4629: g
4630: s/.\{148\}//
4631: t nl
4632: :delim
4633: h
4634: s/\(.\{148\}\)..*/\1/
4635: t more2
4636: s/["\\]/\\&/g; s/^/"/; s/$/"/
4637: p
4638: b
4639: :more2
4640: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4641: p
4642: g
4643: s/.\{148\}//
4644: t delim
4645: ' <conf$$subs.awk | sed '
4646: /^[^""]/{
4647: N
4648: s/\n//
4649: }
4650: ' >>$CONFIG_STATUS || ac_write_fail=1
4651: rm -f conf$$subs.awk
4652: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4653: _ACAWK
4654: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4655: for (key in S) S_is_set[key] = 1
4656: FS = ""
4657:
4658: }
4659: {
4660: line = $ 0
4661: nfields = split(line, field, "@")
4662: substed = 0
4663: len = length(field[1])
4664: for (i = 2; i < nfields; i++) {
4665: key = field[i]
4666: keylen = length(key)
4667: if (S_is_set[key]) {
4668: value = S[key]
4669: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4670: len += length(value) + length(field[++i])
4671: substed = 1
4672: } else
4673: len += 1 + keylen
4674: }
4675:
4676: print line
4677: }
4678:
4679: _ACAWK
4680: _ACEOF
4681: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4682: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4683: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4684: else
4685: cat
4686: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4687: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4688: _ACEOF
4689:
4690: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4691: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4692: # trailing colons and then remove the whole line if VPATH becomes empty
4693: # (actually we leave an empty line to preserve line numbers).
4694: if test "x$srcdir" = x.; then
4695: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4696: h
4697: s///
4698: s/^/:/
4699: s/[ ]*$/:/
4700: s/:\$(srcdir):/:/g
4701: s/:\${srcdir}:/:/g
4702: s/:@srcdir@:/:/g
4703: s/^:*//
4704: s/:*$//
4705: x
4706: s/\(=[ ]*\).*/\1/
4707: G
4708: s/\n//
4709: s/^[^=]*=[ ]*$//
4710: }'
4711: fi
4712:
4713: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4714: fi # test -n "$CONFIG_FILES"
4715:
4716:
4717: eval set X " :F $CONFIG_FILES "
4718: shift
4719: for ac_tag
4720: do
4721: case $ac_tag in
4722: :[FHLC]) ac_mode=$ac_tag; continue;;
4723: esac
4724: case $ac_mode$ac_tag in
4725: :[FHL]*:*);;
4726: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4727: :[FH]-) ac_tag=-:-;;
4728: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4729: esac
4730: ac_save_IFS=$IFS
4731: IFS=:
4732: set x $ac_tag
4733: IFS=$ac_save_IFS
4734: shift
4735: ac_file=$1
4736: shift
4737:
4738: case $ac_mode in
4739: :L) ac_source=$1;;
4740: :[FH])
4741: ac_file_inputs=
4742: for ac_f
4743: do
4744: case $ac_f in
4745: -) ac_f="$ac_tmp/stdin";;
4746: *) # Look for the file first in the build tree, then in the source tree
4747: # (if the path is not absolute). The absolute path cannot be DOS-style,
4748: # because $ac_f cannot contain `:'.
4749: test -f "$ac_f" ||
4750: case $ac_f in
4751: [\\/$]*) false;;
4752: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4753: esac ||
4754: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4755: esac
4756: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4757: as_fn_append ac_file_inputs " '$ac_f'"
4758: done
4759:
4760: # Let's still pretend it is `configure' which instantiates (i.e., don't
4761: # use $as_me), people would be surprised to read:
4762: # /* config.h. Generated by config.status. */
4763: configure_input='Generated from '`
4764: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4765: `' by configure.'
4766: if test x"$ac_file" != x-; then
4767: configure_input="$ac_file. $configure_input"
4768: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4769: $as_echo "$as_me: creating $ac_file" >&6;}
4770: fi
4771: # Neutralize special characters interpreted by sed in replacement strings.
4772: case $configure_input in #(
4773: *\&* | *\|* | *\\* )
4774: ac_sed_conf_input=`$as_echo "$configure_input" |
4775: sed 's/[\\\\&|]/\\\\&/g'`;; #(
4776: *) ac_sed_conf_input=$configure_input;;
4777: esac
4778:
4779: case $ac_tag in
4780: *:-:* | *:-) cat >"$ac_tmp/stdin" \
4781: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4782: esac
4783: ;;
4784: esac
4785:
4786: ac_dir=`$as_dirname -- "$ac_file" ||
4787: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4788: X"$ac_file" : 'X\(//\)[^/]' \| \
4789: X"$ac_file" : 'X\(//\)$' \| \
4790: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4791: $as_echo X"$ac_file" |
4792: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4793: s//\1/
4794: q
4795: }
4796: /^X\(\/\/\)[^/].*/{
4797: s//\1/
4798: q
4799: }
4800: /^X\(\/\/\)$/{
4801: s//\1/
4802: q
4803: }
4804: /^X\(\/\).*/{
4805: s//\1/
4806: q
4807: }
4808: s/.*/./; q'`
4809: as_dir="$ac_dir"; as_fn_mkdir_p
4810: ac_builddir=.
4811:
4812: case "$ac_dir" in
4813: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4814: *)
4815: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4816: # A ".." for each directory in $ac_dir_suffix.
4817: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4818: case $ac_top_builddir_sub in
4819: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4820: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4821: esac ;;
4822: esac
4823: ac_abs_top_builddir=$ac_pwd
4824: ac_abs_builddir=$ac_pwd$ac_dir_suffix
4825: # for backward compatibility:
4826: ac_top_builddir=$ac_top_build_prefix
4827:
4828: case $srcdir in
4829: .) # We are building in place.
4830: ac_srcdir=.
4831: ac_top_srcdir=$ac_top_builddir_sub
4832: ac_abs_top_srcdir=$ac_pwd ;;
4833: [\\/]* | ?:[\\/]* ) # Absolute name.
4834: ac_srcdir=$srcdir$ac_dir_suffix;
4835: ac_top_srcdir=$srcdir
4836: ac_abs_top_srcdir=$srcdir ;;
4837: *) # Relative name.
4838: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4839: ac_top_srcdir=$ac_top_build_prefix$srcdir
4840: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4841: esac
4842: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4843:
4844:
4845: case $ac_mode in
4846: :F)
4847: #
4848: # CONFIG_FILE
4849: #
4850:
4851: case $INSTALL in
4852: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4853: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4854: esac
4855: _ACEOF
4856:
4857: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4858: # If the template does not know about datarootdir, expand it.
4859: # FIXME: This hack should be removed a few years after 2.60.
4860: ac_datarootdir_hack=; ac_datarootdir_seen=
4861: ac_sed_dataroot='
4862: /datarootdir/ {
4863: p
4864: q
4865: }
4866: /@datadir@/p
4867: /@docdir@/p
4868: /@infodir@/p
4869: /@localedir@/p
4870: /@mandir@/p'
4871: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4872: *datarootdir*) ac_datarootdir_seen=yes;;
4873: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4874: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4875: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4876: _ACEOF
4877: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4878: ac_datarootdir_hack='
4879: s&@datadir@&$datadir&g
4880: s&@docdir@&$docdir&g
4881: s&@infodir@&$infodir&g
4882: s&@localedir@&$localedir&g
4883: s&@mandir@&$mandir&g
4884: s&\\\${datarootdir}&$datarootdir&g' ;;
4885: esac
4886: _ACEOF
4887:
4888: # Neutralize VPATH when `$srcdir' = `.'.
4889: # Shell code in configure.ac might set extrasub.
4890: # FIXME: do we really want to maintain this feature?
4891: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4892: ac_sed_extra="$ac_vpsub
4893: $extrasub
4894: _ACEOF
4895: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4896: :t
4897: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4898: s|@configure_input@|$ac_sed_conf_input|;t t
4899: s&@top_builddir@&$ac_top_builddir_sub&;t t
4900: s&@top_build_prefix@&$ac_top_build_prefix&;t t
4901: s&@srcdir@&$ac_srcdir&;t t
4902: s&@abs_srcdir@&$ac_abs_srcdir&;t t
4903: s&@top_srcdir@&$ac_top_srcdir&;t t
4904: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4905: s&@builddir@&$ac_builddir&;t t
4906: s&@abs_builddir@&$ac_abs_builddir&;t t
4907: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4908: s&@INSTALL@&$ac_INSTALL&;t t
4909: $ac_datarootdir_hack
4910: "
4911: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4912: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4913:
4914: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4915: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4916: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4917: "$ac_tmp/out"`; test -z "$ac_out"; } &&
4918: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4919: which seems to be undefined. Please make sure it is defined" >&5
4920: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4921: which seems to be undefined. Please make sure it is defined" >&2;}
4922:
4923: rm -f "$ac_tmp/stdin"
4924: case $ac_file in
4925: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4926: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4927: esac \
4928: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4929: ;;
4930:
4931:
4932:
4933: esac
4934:
4935: done # for ac_tag
4936:
4937:
4938: as_fn_exit 0
4939: _ACEOF
4940: ac_clean_files=$ac_clean_files_save
4941:
4942: test $ac_write_fail = 0 ||
4943: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4944:
4945:
4946: # configure is writing to config.log, and then calls config.status.
4947: # config.status does its own redirection, appending to config.log.
4948: # Unfortunately, on DOS this fails, as config.log is still kept open
4949: # by configure, so config.status won't be able to write to it; its
4950: # output is simply discarded. So we exec the FD to /dev/null,
4951: # effectively closing config.log, so it can be properly (re)opened and
4952: # appended to by config.status. When coming back to configure, we
4953: # need to make the FD available again.
4954: if test "$no_create" != yes; then
4955: ac_cs_success=:
4956: ac_config_status_args=
4957: test "$silent" = yes &&
4958: ac_config_status_args="$ac_config_status_args --quiet"
4959: exec 5>/dev/null
4960: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4961: exec 5>>config.log
4962: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4963: # would make configure fail if this is the last instruction.
4964: $ac_cs_success || as_fn_exit 1
4965: fi
4966: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4967: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4968: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4969: fi
4970:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>