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