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