1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.65.
|
---|
4 | #
|
---|
5 | #
|
---|
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
---|
8 | # Inc.
|
---|
9 | #
|
---|
10 | #
|
---|
11 | # This configure script is free software; the Free Software Foundation
|
---|
12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
13 | ## -------------------- ##
|
---|
14 | ## M4sh Initialization. ##
|
---|
15 | ## -------------------- ##
|
---|
16 |
|
---|
17 | # Be more Bourne compatible
|
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
20 | emulate sh
|
---|
21 | NULLCMD=:
|
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
23 | # is contrary to our usage. Disable this feature.
|
---|
24 | alias -g '${1+"$@"}'='"$@"'
|
---|
25 | setopt NO_GLOB_SUBST
|
---|
26 | else
|
---|
27 | case `(set -o) 2>/dev/null` in #(
|
---|
28 | *posix*) :
|
---|
29 | set -o posix ;; #(
|
---|
30 | *) :
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | as_nl='
|
---|
37 | '
|
---|
38 | export as_nl
|
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
44 | # but without wasting forks for bash or zsh.
|
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
47 | as_echo='print -r --'
|
---|
48 | as_echo_n='print -rn --'
|
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
50 | as_echo='printf %s\n'
|
---|
51 | as_echo_n='printf %s'
|
---|
52 | else
|
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
55 | as_echo_n='/usr/ucb/echo -n'
|
---|
56 | else
|
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
58 | as_echo_n_body='eval
|
---|
59 | arg=$1;
|
---|
60 | case $arg in #(
|
---|
61 | *"$as_nl"*)
|
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
64 | esac;
|
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
66 | '
|
---|
67 | export as_echo_n_body
|
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
69 | fi
|
---|
70 | export as_echo_body
|
---|
71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
72 | fi
|
---|
73 |
|
---|
74 | # The user is always right.
|
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
76 | PATH_SEPARATOR=:
|
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
79 | PATH_SEPARATOR=';'
|
---|
80 | }
|
---|
81 | fi
|
---|
82 |
|
---|
83 |
|
---|
84 | # IFS
|
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
86 | # there to prevent editors from complaining about space-tab.
|
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
88 | # splitting by setting IFS to empty value.)
|
---|
89 | IFS=" "" $as_nl"
|
---|
90 |
|
---|
91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
92 | case $0 in #((
|
---|
93 | *[\\/]* ) as_myself=$0 ;;
|
---|
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
95 | for as_dir in $PATH
|
---|
96 | do
|
---|
97 | IFS=$as_save_IFS
|
---|
98 | test -z "$as_dir" && as_dir=.
|
---|
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
100 | done
|
---|
101 | IFS=$as_save_IFS
|
---|
102 |
|
---|
103 | ;;
|
---|
104 | esac
|
---|
105 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
106 | # in which case we are not to be found in the path.
|
---|
107 | if test "x$as_myself" = x; then
|
---|
108 | as_myself=$0
|
---|
109 | fi
|
---|
110 | if test ! -f "$as_myself"; then
|
---|
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
112 | exit 1
|
---|
113 | fi
|
---|
114 |
|
---|
115 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
117 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
118 | # trigger a bug in pdksh 5.2.14.
|
---|
119 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
120 | do eval test x\${$as_var+set} = xset \
|
---|
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
122 | done
|
---|
123 | PS1='$ '
|
---|
124 | PS2='> '
|
---|
125 | PS4='+ '
|
---|
126 |
|
---|
127 | # NLS nuisances.
|
---|
128 | LC_ALL=C
|
---|
129 | export LC_ALL
|
---|
130 | LANGUAGE=C
|
---|
131 | export LANGUAGE
|
---|
132 |
|
---|
133 | # CDPATH.
|
---|
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
135 |
|
---|
136 | if test "x$CONFIG_SHELL" = x; then
|
---|
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
138 | emulate sh
|
---|
139 | NULLCMD=:
|
---|
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
141 | # is contrary to our usage. Disable this feature.
|
---|
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
143 | setopt NO_GLOB_SUBST
|
---|
144 | else
|
---|
145 | case \`(set -o) 2>/dev/null\` in #(
|
---|
146 | *posix*) :
|
---|
147 | set -o posix ;; #(
|
---|
148 | *) :
|
---|
149 | ;;
|
---|
150 | esac
|
---|
151 | fi
|
---|
152 | "
|
---|
153 | as_required="as_fn_return () { (exit \$1); }
|
---|
154 | as_fn_success () { as_fn_return 0; }
|
---|
155 | as_fn_failure () { as_fn_return 1; }
|
---|
156 | as_fn_ret_success () { return 0; }
|
---|
157 | as_fn_ret_failure () { return 1; }
|
---|
158 |
|
---|
159 | exitcode=0
|
---|
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
165 |
|
---|
166 | else
|
---|
167 | exitcode=1; echo positional parameters were not saved.
|
---|
168 | fi
|
---|
169 | test x\$exitcode = x0 || exit 1"
|
---|
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
174 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
175 | if (eval "$as_required") 2>/dev/null; then :
|
---|
176 | as_have_required=yes
|
---|
177 | else
|
---|
178 | as_have_required=no
|
---|
179 | fi
|
---|
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
181 |
|
---|
182 | else
|
---|
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
184 | as_found=false
|
---|
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
186 | do
|
---|
187 | IFS=$as_save_IFS
|
---|
188 | test -z "$as_dir" && as_dir=.
|
---|
189 | as_found=:
|
---|
190 | case $as_dir in #(
|
---|
191 | /*)
|
---|
192 | for as_base in sh bash ksh sh5; do
|
---|
193 | # Try only shells that exist, to save several forks.
|
---|
194 | as_shell=$as_dir/$as_base
|
---|
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
197 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
199 | break 2
|
---|
200 | fi
|
---|
201 | fi
|
---|
202 | done;;
|
---|
203 | esac
|
---|
204 | as_found=false
|
---|
205 | done
|
---|
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
208 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
209 | fi; }
|
---|
210 | IFS=$as_save_IFS
|
---|
211 |
|
---|
212 |
|
---|
213 | if test "x$CONFIG_SHELL" != x; then :
|
---|
214 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
215 | # neutralization value for shells without unset; and this also
|
---|
216 | # works around shells that cannot unset nonexistent variables.
|
---|
217 | BASH_ENV=/dev/null
|
---|
218 | ENV=/dev/null
|
---|
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
220 | export CONFIG_SHELL
|
---|
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
222 | fi
|
---|
223 |
|
---|
224 | if test x$as_have_required = xno; then :
|
---|
225 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
226 | $as_echo "$0: the shells that I found on your system."
|
---|
227 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
230 | else
|
---|
231 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
232 | $0: including any error possibly output before this
|
---|
233 | $0: message. Then install a modern shell, or manually run
|
---|
234 | $0: the script under such a shell if you do have one."
|
---|
235 | fi
|
---|
236 | exit 1
|
---|
237 | fi
|
---|
238 | fi
|
---|
239 | fi
|
---|
240 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
241 | export SHELL
|
---|
242 | # Unset more variables known to interfere with behavior of common tools.
|
---|
243 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
244 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
245 |
|
---|
246 | ## --------------------- ##
|
---|
247 | ## M4sh Shell Functions. ##
|
---|
248 | ## --------------------- ##
|
---|
249 | # as_fn_unset VAR
|
---|
250 | # ---------------
|
---|
251 | # Portably unset VAR.
|
---|
252 | as_fn_unset ()
|
---|
253 | {
|
---|
254 | { eval $1=; unset $1;}
|
---|
255 | }
|
---|
256 | as_unset=as_fn_unset
|
---|
257 |
|
---|
258 | # as_fn_set_status STATUS
|
---|
259 | # -----------------------
|
---|
260 | # Set $? to STATUS, without forking.
|
---|
261 | as_fn_set_status ()
|
---|
262 | {
|
---|
263 | return $1
|
---|
264 | } # as_fn_set_status
|
---|
265 |
|
---|
266 | # as_fn_exit STATUS
|
---|
267 | # -----------------
|
---|
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
269 | as_fn_exit ()
|
---|
270 | {
|
---|
271 | set +e
|
---|
272 | as_fn_set_status $1
|
---|
273 | exit $1
|
---|
274 | } # as_fn_exit
|
---|
275 |
|
---|
276 | # as_fn_mkdir_p
|
---|
277 | # -------------
|
---|
278 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
279 | as_fn_mkdir_p ()
|
---|
280 | {
|
---|
281 |
|
---|
282 | case $as_dir in #(
|
---|
283 | -*) as_dir=./$as_dir;;
|
---|
284 | esac
|
---|
285 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
286 | as_dirs=
|
---|
287 | while :; do
|
---|
288 | case $as_dir in #(
|
---|
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
290 | *) as_qdir=$as_dir;;
|
---|
291 | esac
|
---|
292 | as_dirs="'$as_qdir' $as_dirs"
|
---|
293 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
295 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
296 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
298 | $as_echo X"$as_dir" |
|
---|
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
300 | s//\1/
|
---|
301 | q
|
---|
302 | }
|
---|
303 | /^X\(\/\/\)[^/].*/{
|
---|
304 | s//\1/
|
---|
305 | q
|
---|
306 | }
|
---|
307 | /^X\(\/\/\)$/{
|
---|
308 | s//\1/
|
---|
309 | q
|
---|
310 | }
|
---|
311 | /^X\(\/\).*/{
|
---|
312 | s//\1/
|
---|
313 | q
|
---|
314 | }
|
---|
315 | s/.*/./; q'`
|
---|
316 | test -d "$as_dir" && break
|
---|
317 | done
|
---|
318 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
---|
320 |
|
---|
321 |
|
---|
322 | } # as_fn_mkdir_p
|
---|
323 | # as_fn_append VAR VALUE
|
---|
324 | # ----------------------
|
---|
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
326 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
327 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
328 | # implementations.
|
---|
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
330 | eval 'as_fn_append ()
|
---|
331 | {
|
---|
332 | eval $1+=\$2
|
---|
333 | }'
|
---|
334 | else
|
---|
335 | as_fn_append ()
|
---|
336 | {
|
---|
337 | eval $1=\$$1\$2
|
---|
338 | }
|
---|
339 | fi # as_fn_append
|
---|
340 |
|
---|
341 | # as_fn_arith ARG...
|
---|
342 | # ------------------
|
---|
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
345 | # must be portable across $(()) and expr.
|
---|
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
347 | eval 'as_fn_arith ()
|
---|
348 | {
|
---|
349 | as_val=$(( $* ))
|
---|
350 | }'
|
---|
351 | else
|
---|
352 | as_fn_arith ()
|
---|
353 | {
|
---|
354 | as_val=`expr "$@" || test $? -eq 1`
|
---|
355 | }
|
---|
356 | fi # as_fn_arith
|
---|
357 |
|
---|
358 |
|
---|
359 | # as_fn_error ERROR [LINENO LOG_FD]
|
---|
360 | # ---------------------------------
|
---|
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
363 | # script with status $?, using 1 if that was 0.
|
---|
364 | as_fn_error ()
|
---|
365 | {
|
---|
366 | as_status=$?; test $as_status -eq 0 && as_status=1
|
---|
367 | if test "$3"; then
|
---|
368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
---|
370 | fi
|
---|
371 | $as_echo "$as_me: error: $1" >&2
|
---|
372 | as_fn_exit $as_status
|
---|
373 | } # as_fn_error
|
---|
374 |
|
---|
375 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
377 | as_expr=expr
|
---|
378 | else
|
---|
379 | as_expr=false
|
---|
380 | fi
|
---|
381 |
|
---|
382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
383 | as_basename=basename
|
---|
384 | else
|
---|
385 | as_basename=false
|
---|
386 | fi
|
---|
387 |
|
---|
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
389 | as_dirname=dirname
|
---|
390 | else
|
---|
391 | as_dirname=false
|
---|
392 | fi
|
---|
393 |
|
---|
394 | as_me=`$as_basename -- "$0" ||
|
---|
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
396 | X"$0" : 'X\(//\)$' \| \
|
---|
397 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
398 | $as_echo X/"$0" |
|
---|
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
400 | s//\1/
|
---|
401 | q
|
---|
402 | }
|
---|
403 | /^X\/\(\/\/\)$/{
|
---|
404 | s//\1/
|
---|
405 | q
|
---|
406 | }
|
---|
407 | /^X\/\(\/\).*/{
|
---|
408 | s//\1/
|
---|
409 | q
|
---|
410 | }
|
---|
411 | s/.*/./; q'`
|
---|
412 |
|
---|
413 | # Avoid depending upon Character Ranges.
|
---|
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
417 | as_cr_digits='0123456789'
|
---|
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
419 |
|
---|
420 |
|
---|
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
426 | sed -n '
|
---|
427 | p
|
---|
428 | /[$]LINENO/=
|
---|
429 | ' <$as_myself |
|
---|
430 | sed '
|
---|
431 | s/[$]LINENO.*/&-/
|
---|
432 | t lineno
|
---|
433 | b
|
---|
434 | :lineno
|
---|
435 | N
|
---|
436 | :loop
|
---|
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
438 | t loop
|
---|
439 | s/-\n.*//
|
---|
440 | ' >$as_me.lineno &&
|
---|
441 | chmod +x "$as_me.lineno" ||
|
---|
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
443 |
|
---|
444 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
445 | # (the dirname of $[0] is not the place where we might find the
|
---|
446 | # original and so on. Autoconf is especially sensitive to this).
|
---|
447 | . "./$as_me.lineno"
|
---|
448 | # Exit status is that of the last command.
|
---|
449 | exit
|
---|
450 | }
|
---|
451 |
|
---|
452 | ECHO_C= ECHO_N= ECHO_T=
|
---|
453 | case `echo -n x` in #(((((
|
---|
454 | -n*)
|
---|
455 | case `echo 'xy\c'` in
|
---|
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
457 | xy) ECHO_C='\c';;
|
---|
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
459 | ECHO_T=' ';;
|
---|
460 | esac;;
|
---|
461 | *)
|
---|
462 | ECHO_N='-n';;
|
---|
463 | esac
|
---|
464 |
|
---|
465 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
466 | if test -d conf$$.dir; then
|
---|
467 | rm -f conf$$.dir/conf$$.file
|
---|
468 | else
|
---|
469 | rm -f conf$$.dir
|
---|
470 | mkdir conf$$.dir 2>/dev/null
|
---|
471 | fi
|
---|
472 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
474 | as_ln_s='ln -s'
|
---|
475 | # ... but there are two gotchas:
|
---|
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
478 | # In both cases, we have to default to `cp -p'.
|
---|
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
480 | as_ln_s='cp -p'
|
---|
481 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
482 | as_ln_s=ln
|
---|
483 | else
|
---|
484 | as_ln_s='cp -p'
|
---|
485 | fi
|
---|
486 | else
|
---|
487 | as_ln_s='cp -p'
|
---|
488 | fi
|
---|
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
490 | rmdir conf$$.dir 2>/dev/null
|
---|
491 |
|
---|
492 | if mkdir -p . 2>/dev/null; then
|
---|
493 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
494 | else
|
---|
495 | test -d ./-p && rmdir ./-p
|
---|
496 | as_mkdir_p=false
|
---|
497 | fi
|
---|
498 |
|
---|
499 | if test -x / >/dev/null 2>&1; then
|
---|
500 | as_test_x='test -x'
|
---|
501 | else
|
---|
502 | if ls -dL / >/dev/null 2>&1; then
|
---|
503 | as_ls_L_option=L
|
---|
504 | else
|
---|
505 | as_ls_L_option=
|
---|
506 | fi
|
---|
507 | as_test_x='
|
---|
508 | eval sh -c '\''
|
---|
509 | if test -d "$1"; then
|
---|
510 | test -d "$1/.";
|
---|
511 | else
|
---|
512 | case $1 in #(
|
---|
513 | -*)set "./$1";;
|
---|
514 | esac;
|
---|
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
516 | ???[sx]*):;;*)false;;esac;fi
|
---|
517 | '\'' sh
|
---|
518 | '
|
---|
519 | fi
|
---|
520 | as_executable_p=$as_test_x
|
---|
521 |
|
---|
522 | # Sed expression to map a string onto a valid CPP name.
|
---|
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
524 |
|
---|
525 | # Sed expression to map a string onto a valid variable name.
|
---|
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
527 |
|
---|
528 |
|
---|
529 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
530 | exec 6>&1
|
---|
531 |
|
---|
532 | # Name of the host.
|
---|
533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
534 | # so uname gets run too.
|
---|
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
536 |
|
---|
537 | #
|
---|
538 | # Initializations.
|
---|
539 | #
|
---|
540 | ac_default_prefix=/usr/local
|
---|
541 | ac_clean_files=
|
---|
542 | ac_config_libobj_dir=.
|
---|
543 | LIBOBJS=
|
---|
544 | cross_compiling=no
|
---|
545 | subdirs=
|
---|
546 | MFLAGS=
|
---|
547 | MAKEFLAGS=
|
---|
548 |
|
---|
549 | # Identity of this package.
|
---|
550 | PACKAGE_NAME=
|
---|
551 | PACKAGE_TARNAME=
|
---|
552 | PACKAGE_VERSION=
|
---|
553 | PACKAGE_STRING=
|
---|
554 | PACKAGE_BUGREPORT=
|
---|
555 | PACKAGE_URL=
|
---|
556 |
|
---|
557 | ac_unique_file="text/MGQuery.cpp"
|
---|
558 | # Factoring default headers for most tests.
|
---|
559 | ac_includes_default="\
|
---|
560 | #include <stdio.h>
|
---|
561 | #ifdef HAVE_SYS_TYPES_H
|
---|
562 | # include <sys/types.h>
|
---|
563 | #endif
|
---|
564 | #ifdef HAVE_SYS_STAT_H
|
---|
565 | # include <sys/stat.h>
|
---|
566 | #endif
|
---|
567 | #ifdef STDC_HEADERS
|
---|
568 | # include <stdlib.h>
|
---|
569 | # include <stddef.h>
|
---|
570 | #else
|
---|
571 | # ifdef HAVE_STDLIB_H
|
---|
572 | # include <stdlib.h>
|
---|
573 | # endif
|
---|
574 | #endif
|
---|
575 | #ifdef HAVE_STRING_H
|
---|
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
577 | # include <memory.h>
|
---|
578 | # endif
|
---|
579 | # include <string.h>
|
---|
580 | #endif
|
---|
581 | #ifdef HAVE_STRINGS_H
|
---|
582 | # include <strings.h>
|
---|
583 | #endif
|
---|
584 | #ifdef HAVE_INTTYPES_H
|
---|
585 | # include <inttypes.h>
|
---|
586 | #endif
|
---|
587 | #ifdef HAVE_STDINT_H
|
---|
588 | # include <stdint.h>
|
---|
589 | #endif
|
---|
590 | #ifdef HAVE_UNISTD_H
|
---|
591 | # include <unistd.h>
|
---|
592 | #endif"
|
---|
593 |
|
---|
594 | ac_subst_vars='LTLIBOBJS
|
---|
595 | JNIFLAGS
|
---|
596 | JNISUFFIX
|
---|
597 | JNIINC
|
---|
598 | LIBOBJS
|
---|
599 | ALLOCA
|
---|
600 | UNAC_DIR
|
---|
601 | ANSI2KNR
|
---|
602 | U
|
---|
603 | EGREP
|
---|
604 | GREP
|
---|
605 | CPP
|
---|
606 | JAVACFLAGS
|
---|
607 | JAVAC
|
---|
608 | uudecode
|
---|
609 | JAVA
|
---|
610 | RANLIB
|
---|
611 | SET_MAKE
|
---|
612 | LN_S
|
---|
613 | INSTALL_DATA
|
---|
614 | INSTALL_SCRIPT
|
---|
615 | INSTALL_PROGRAM
|
---|
616 | ac_ct_CC
|
---|
617 | CFLAGS
|
---|
618 | CC
|
---|
619 | YFLAGS
|
---|
620 | YACC
|
---|
621 | AWK
|
---|
622 | OBJEXT
|
---|
623 | EXEEXT
|
---|
624 | ac_ct_CXX
|
---|
625 | CPPFLAGS
|
---|
626 | LDFLAGS
|
---|
627 | CXXFLAGS
|
---|
628 | CXX
|
---|
629 | ENABLE_ACCENTFOLD
|
---|
630 | ENABLE_JAVA
|
---|
631 | VERSION
|
---|
632 | PACKAGE
|
---|
633 | target_os
|
---|
634 | target_vendor
|
---|
635 | target_cpu
|
---|
636 | target
|
---|
637 | host_os
|
---|
638 | host_vendor
|
---|
639 | host_cpu
|
---|
640 | host
|
---|
641 | build_os
|
---|
642 | build_vendor
|
---|
643 | build_cpu
|
---|
644 | build
|
---|
645 | target_alias
|
---|
646 | host_alias
|
---|
647 | build_alias
|
---|
648 | LIBS
|
---|
649 | ECHO_T
|
---|
650 | ECHO_N
|
---|
651 | ECHO_C
|
---|
652 | DEFS
|
---|
653 | mandir
|
---|
654 | localedir
|
---|
655 | libdir
|
---|
656 | psdir
|
---|
657 | pdfdir
|
---|
658 | dvidir
|
---|
659 | htmldir
|
---|
660 | infodir
|
---|
661 | docdir
|
---|
662 | oldincludedir
|
---|
663 | includedir
|
---|
664 | localstatedir
|
---|
665 | sharedstatedir
|
---|
666 | sysconfdir
|
---|
667 | datadir
|
---|
668 | datarootdir
|
---|
669 | libexecdir
|
---|
670 | sbindir
|
---|
671 | bindir
|
---|
672 | program_transform_name
|
---|
673 | prefix
|
---|
674 | exec_prefix
|
---|
675 | PACKAGE_URL
|
---|
676 | PACKAGE_BUGREPORT
|
---|
677 | PACKAGE_STRING
|
---|
678 | PACKAGE_VERSION
|
---|
679 | PACKAGE_TARNAME
|
---|
680 | PACKAGE_NAME
|
---|
681 | PATH_SEPARATOR
|
---|
682 | SHELL'
|
---|
683 | ac_subst_files=''
|
---|
684 | ac_user_opts='
|
---|
685 | enable_option_checking
|
---|
686 | enable_java
|
---|
687 | enable_accentfold
|
---|
688 | with_unac
|
---|
689 | with_dmalloc
|
---|
690 | with_regex
|
---|
691 | with_gnu_readline
|
---|
692 | enable_override_longlong
|
---|
693 | '
|
---|
694 | ac_precious_vars='build_alias
|
---|
695 | host_alias
|
---|
696 | target_alias
|
---|
697 | CXX
|
---|
698 | CXXFLAGS
|
---|
699 | LDFLAGS
|
---|
700 | LIBS
|
---|
701 | CPPFLAGS
|
---|
702 | CCC
|
---|
703 | YACC
|
---|
704 | YFLAGS
|
---|
705 | CC
|
---|
706 | CFLAGS
|
---|
707 | CPP'
|
---|
708 |
|
---|
709 |
|
---|
710 | # Initialize some variables set by options.
|
---|
711 | ac_init_help=
|
---|
712 | ac_init_version=false
|
---|
713 | ac_unrecognized_opts=
|
---|
714 | ac_unrecognized_sep=
|
---|
715 | # The variables have the same names as the options, with
|
---|
716 | # dashes changed to underlines.
|
---|
717 | cache_file=/dev/null
|
---|
718 | exec_prefix=NONE
|
---|
719 | no_create=
|
---|
720 | no_recursion=
|
---|
721 | prefix=NONE
|
---|
722 | program_prefix=NONE
|
---|
723 | program_suffix=NONE
|
---|
724 | program_transform_name=s,x,x,
|
---|
725 | silent=
|
---|
726 | site=
|
---|
727 | srcdir=
|
---|
728 | verbose=
|
---|
729 | x_includes=NONE
|
---|
730 | x_libraries=NONE
|
---|
731 |
|
---|
732 | # Installation directory options.
|
---|
733 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
734 | # and all the variables that are supposed to be based on exec_prefix
|
---|
735 | # by default will actually change.
|
---|
736 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
737 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
738 | bindir='${exec_prefix}/bin'
|
---|
739 | sbindir='${exec_prefix}/sbin'
|
---|
740 | libexecdir='${exec_prefix}/libexec'
|
---|
741 | datarootdir='${prefix}/share'
|
---|
742 | datadir='${datarootdir}'
|
---|
743 | sysconfdir='${prefix}/etc'
|
---|
744 | sharedstatedir='${prefix}/com'
|
---|
745 | localstatedir='${prefix}/var'
|
---|
746 | includedir='${prefix}/include'
|
---|
747 | oldincludedir='/usr/include'
|
---|
748 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
749 | infodir='${datarootdir}/info'
|
---|
750 | htmldir='${docdir}'
|
---|
751 | dvidir='${docdir}'
|
---|
752 | pdfdir='${docdir}'
|
---|
753 | psdir='${docdir}'
|
---|
754 | libdir='${exec_prefix}/lib'
|
---|
755 | localedir='${datarootdir}/locale'
|
---|
756 | mandir='${datarootdir}/man'
|
---|
757 |
|
---|
758 | ac_prev=
|
---|
759 | ac_dashdash=
|
---|
760 | for ac_option
|
---|
761 | do
|
---|
762 | # If the previous option needs an argument, assign it.
|
---|
763 | if test -n "$ac_prev"; then
|
---|
764 | eval $ac_prev=\$ac_option
|
---|
765 | ac_prev=
|
---|
766 | continue
|
---|
767 | fi
|
---|
768 |
|
---|
769 | case $ac_option in
|
---|
770 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
771 | *) ac_optarg=yes ;;
|
---|
772 | esac
|
---|
773 |
|
---|
774 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
775 |
|
---|
776 | case $ac_dashdash$ac_option in
|
---|
777 | --)
|
---|
778 | ac_dashdash=yes ;;
|
---|
779 |
|
---|
780 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
781 | ac_prev=bindir ;;
|
---|
782 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
783 | bindir=$ac_optarg ;;
|
---|
784 |
|
---|
785 | -build | --build | --buil | --bui | --bu)
|
---|
786 | ac_prev=build_alias ;;
|
---|
787 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
788 | build_alias=$ac_optarg ;;
|
---|
789 |
|
---|
790 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
791 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
792 | ac_prev=cache_file ;;
|
---|
793 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
794 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
795 | cache_file=$ac_optarg ;;
|
---|
796 |
|
---|
797 | --config-cache | -C)
|
---|
798 | cache_file=config.cache ;;
|
---|
799 |
|
---|
800 | -datadir | --datadir | --datadi | --datad)
|
---|
801 | ac_prev=datadir ;;
|
---|
802 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
803 | datadir=$ac_optarg ;;
|
---|
804 |
|
---|
805 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
806 | | --dataroo | --dataro | --datar)
|
---|
807 | ac_prev=datarootdir ;;
|
---|
808 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
809 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
810 | datarootdir=$ac_optarg ;;
|
---|
811 |
|
---|
812 | -disable-* | --disable-*)
|
---|
813 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
814 | # Reject names that are not valid shell variable names.
|
---|
815 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
816 | as_fn_error "invalid feature name: $ac_useropt"
|
---|
817 | ac_useropt_orig=$ac_useropt
|
---|
818 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
819 | case $ac_user_opts in
|
---|
820 | *"
|
---|
821 | "enable_$ac_useropt"
|
---|
822 | "*) ;;
|
---|
823 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
824 | ac_unrecognized_sep=', ';;
|
---|
825 | esac
|
---|
826 | eval enable_$ac_useropt=no ;;
|
---|
827 |
|
---|
828 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
829 | ac_prev=docdir ;;
|
---|
830 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
831 | docdir=$ac_optarg ;;
|
---|
832 |
|
---|
833 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
834 | ac_prev=dvidir ;;
|
---|
835 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
836 | dvidir=$ac_optarg ;;
|
---|
837 |
|
---|
838 | -enable-* | --enable-*)
|
---|
839 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
840 | # Reject names that are not valid shell variable names.
|
---|
841 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
842 | as_fn_error "invalid feature name: $ac_useropt"
|
---|
843 | ac_useropt_orig=$ac_useropt
|
---|
844 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
845 | case $ac_user_opts in
|
---|
846 | *"
|
---|
847 | "enable_$ac_useropt"
|
---|
848 | "*) ;;
|
---|
849 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
850 | ac_unrecognized_sep=', ';;
|
---|
851 | esac
|
---|
852 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
853 |
|
---|
854 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
855 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
856 | | --exec | --exe | --ex)
|
---|
857 | ac_prev=exec_prefix ;;
|
---|
858 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
859 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
860 | | --exec=* | --exe=* | --ex=*)
|
---|
861 | exec_prefix=$ac_optarg ;;
|
---|
862 |
|
---|
863 | -gas | --gas | --ga | --g)
|
---|
864 | # Obsolete; use --with-gas.
|
---|
865 | with_gas=yes ;;
|
---|
866 |
|
---|
867 | -help | --help | --hel | --he | -h)
|
---|
868 | ac_init_help=long ;;
|
---|
869 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
870 | ac_init_help=recursive ;;
|
---|
871 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
872 | ac_init_help=short ;;
|
---|
873 |
|
---|
874 | -host | --host | --hos | --ho)
|
---|
875 | ac_prev=host_alias ;;
|
---|
876 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
877 | host_alias=$ac_optarg ;;
|
---|
878 |
|
---|
879 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
880 | ac_prev=htmldir ;;
|
---|
881 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
882 | | --ht=*)
|
---|
883 | htmldir=$ac_optarg ;;
|
---|
884 |
|
---|
885 | -includedir | --includedir | --includedi | --included | --include \
|
---|
886 | | --includ | --inclu | --incl | --inc)
|
---|
887 | ac_prev=includedir ;;
|
---|
888 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
889 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
890 | includedir=$ac_optarg ;;
|
---|
891 |
|
---|
892 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
893 | ac_prev=infodir ;;
|
---|
894 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
895 | infodir=$ac_optarg ;;
|
---|
896 |
|
---|
897 | -libdir | --libdir | --libdi | --libd)
|
---|
898 | ac_prev=libdir ;;
|
---|
899 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
900 | libdir=$ac_optarg ;;
|
---|
901 |
|
---|
902 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
903 | | --libexe | --libex | --libe)
|
---|
904 | ac_prev=libexecdir ;;
|
---|
905 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
906 | | --libexe=* | --libex=* | --libe=*)
|
---|
907 | libexecdir=$ac_optarg ;;
|
---|
908 |
|
---|
909 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
910 | ac_prev=localedir ;;
|
---|
911 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
912 | localedir=$ac_optarg ;;
|
---|
913 |
|
---|
914 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
915 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
916 | ac_prev=localstatedir ;;
|
---|
917 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
918 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
919 | localstatedir=$ac_optarg ;;
|
---|
920 |
|
---|
921 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
922 | ac_prev=mandir ;;
|
---|
923 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
924 | mandir=$ac_optarg ;;
|
---|
925 |
|
---|
926 | -nfp | --nfp | --nf)
|
---|
927 | # Obsolete; use --without-fp.
|
---|
928 | with_fp=no ;;
|
---|
929 |
|
---|
930 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
931 | | --no-cr | --no-c | -n)
|
---|
932 | no_create=yes ;;
|
---|
933 |
|
---|
934 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
935 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
936 | no_recursion=yes ;;
|
---|
937 |
|
---|
938 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
939 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
940 | | --oldin | --oldi | --old | --ol | --o)
|
---|
941 | ac_prev=oldincludedir ;;
|
---|
942 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
943 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
944 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
945 | oldincludedir=$ac_optarg ;;
|
---|
946 |
|
---|
947 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
948 | ac_prev=prefix ;;
|
---|
949 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
950 | prefix=$ac_optarg ;;
|
---|
951 |
|
---|
952 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
953 | | --program-pre | --program-pr | --program-p)
|
---|
954 | ac_prev=program_prefix ;;
|
---|
955 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
956 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
957 | program_prefix=$ac_optarg ;;
|
---|
958 |
|
---|
959 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
960 | | --program-suf | --program-su | --program-s)
|
---|
961 | ac_prev=program_suffix ;;
|
---|
962 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
963 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
964 | program_suffix=$ac_optarg ;;
|
---|
965 |
|
---|
966 | -program-transform-name | --program-transform-name \
|
---|
967 | | --program-transform-nam | --program-transform-na \
|
---|
968 | | --program-transform-n | --program-transform- \
|
---|
969 | | --program-transform | --program-transfor \
|
---|
970 | | --program-transfo | --program-transf \
|
---|
971 | | --program-trans | --program-tran \
|
---|
972 | | --progr-tra | --program-tr | --program-t)
|
---|
973 | ac_prev=program_transform_name ;;
|
---|
974 | -program-transform-name=* | --program-transform-name=* \
|
---|
975 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
976 | | --program-transform-n=* | --program-transform-=* \
|
---|
977 | | --program-transform=* | --program-transfor=* \
|
---|
978 | | --program-transfo=* | --program-transf=* \
|
---|
979 | | --program-trans=* | --program-tran=* \
|
---|
980 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
981 | program_transform_name=$ac_optarg ;;
|
---|
982 |
|
---|
983 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
984 | ac_prev=pdfdir ;;
|
---|
985 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
986 | pdfdir=$ac_optarg ;;
|
---|
987 |
|
---|
988 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
989 | ac_prev=psdir ;;
|
---|
990 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
991 | psdir=$ac_optarg ;;
|
---|
992 |
|
---|
993 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
994 | | -silent | --silent | --silen | --sile | --sil)
|
---|
995 | silent=yes ;;
|
---|
996 |
|
---|
997 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
998 | ac_prev=sbindir ;;
|
---|
999 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1000 | | --sbi=* | --sb=*)
|
---|
1001 | sbindir=$ac_optarg ;;
|
---|
1002 |
|
---|
1003 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1004 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1005 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1006 | | --sha | --sh)
|
---|
1007 | ac_prev=sharedstatedir ;;
|
---|
1008 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1009 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1010 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1011 | | --sha=* | --sh=*)
|
---|
1012 | sharedstatedir=$ac_optarg ;;
|
---|
1013 |
|
---|
1014 | -site | --site | --sit)
|
---|
1015 | ac_prev=site ;;
|
---|
1016 | -site=* | --site=* | --sit=*)
|
---|
1017 | site=$ac_optarg ;;
|
---|
1018 |
|
---|
1019 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1020 | ac_prev=srcdir ;;
|
---|
1021 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1022 | srcdir=$ac_optarg ;;
|
---|
1023 |
|
---|
1024 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1025 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1026 | ac_prev=sysconfdir ;;
|
---|
1027 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1028 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1029 | sysconfdir=$ac_optarg ;;
|
---|
1030 |
|
---|
1031 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1032 | ac_prev=target_alias ;;
|
---|
1033 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1034 | target_alias=$ac_optarg ;;
|
---|
1035 |
|
---|
1036 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1037 | verbose=yes ;;
|
---|
1038 |
|
---|
1039 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1040 | ac_init_version=: ;;
|
---|
1041 |
|
---|
1042 | -with-* | --with-*)
|
---|
1043 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1044 | # Reject names that are not valid shell variable names.
|
---|
1045 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1046 | as_fn_error "invalid package name: $ac_useropt"
|
---|
1047 | ac_useropt_orig=$ac_useropt
|
---|
1048 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1049 | case $ac_user_opts in
|
---|
1050 | *"
|
---|
1051 | "with_$ac_useropt"
|
---|
1052 | "*) ;;
|
---|
1053 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1054 | ac_unrecognized_sep=', ';;
|
---|
1055 | esac
|
---|
1056 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1057 |
|
---|
1058 | -without-* | --without-*)
|
---|
1059 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1060 | # Reject names that are not valid shell variable names.
|
---|
1061 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1062 | as_fn_error "invalid package name: $ac_useropt"
|
---|
1063 | ac_useropt_orig=$ac_useropt
|
---|
1064 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1065 | case $ac_user_opts in
|
---|
1066 | *"
|
---|
1067 | "with_$ac_useropt"
|
---|
1068 | "*) ;;
|
---|
1069 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1070 | ac_unrecognized_sep=', ';;
|
---|
1071 | esac
|
---|
1072 | eval with_$ac_useropt=no ;;
|
---|
1073 |
|
---|
1074 | --x)
|
---|
1075 | # Obsolete; use --with-x.
|
---|
1076 | with_x=yes ;;
|
---|
1077 |
|
---|
1078 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1079 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1080 | ac_prev=x_includes ;;
|
---|
1081 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1082 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1083 | x_includes=$ac_optarg ;;
|
---|
1084 |
|
---|
1085 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1086 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1087 | ac_prev=x_libraries ;;
|
---|
1088 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1089 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1090 | x_libraries=$ac_optarg ;;
|
---|
1091 |
|
---|
1092 | -*) as_fn_error "unrecognized option: \`$ac_option'
|
---|
1093 | Try \`$0 --help' for more information."
|
---|
1094 | ;;
|
---|
1095 |
|
---|
1096 | *=*)
|
---|
1097 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1098 | # Reject names that are not valid shell variable names.
|
---|
1099 | case $ac_envvar in #(
|
---|
1100 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1101 | as_fn_error "invalid variable name: \`$ac_envvar'" ;;
|
---|
1102 | esac
|
---|
1103 | eval $ac_envvar=\$ac_optarg
|
---|
1104 | export $ac_envvar ;;
|
---|
1105 |
|
---|
1106 | *)
|
---|
1107 | # FIXME: should be removed in autoconf 3.0.
|
---|
1108 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1109 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1110 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1111 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
1112 | ;;
|
---|
1113 |
|
---|
1114 | esac
|
---|
1115 | done
|
---|
1116 |
|
---|
1117 | if test -n "$ac_prev"; then
|
---|
1118 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1119 | as_fn_error "missing argument to $ac_option"
|
---|
1120 | fi
|
---|
1121 |
|
---|
1122 | if test -n "$ac_unrecognized_opts"; then
|
---|
1123 | case $enable_option_checking in
|
---|
1124 | no) ;;
|
---|
1125 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1126 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1127 | esac
|
---|
1128 | fi
|
---|
1129 |
|
---|
1130 | # Check all directory arguments for consistency.
|
---|
1131 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1132 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1133 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1134 | libdir localedir mandir
|
---|
1135 | do
|
---|
1136 | eval ac_val=\$$ac_var
|
---|
1137 | # Remove trailing slashes.
|
---|
1138 | case $ac_val in
|
---|
1139 | */ )
|
---|
1140 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1141 | eval $ac_var=\$ac_val;;
|
---|
1142 | esac
|
---|
1143 | # Be sure to have absolute directory names.
|
---|
1144 | case $ac_val in
|
---|
1145 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1146 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1147 | esac
|
---|
1148 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1149 | done
|
---|
1150 |
|
---|
1151 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1152 | # used to hold the argument of --host etc.
|
---|
1153 | # FIXME: To remove some day.
|
---|
1154 | build=$build_alias
|
---|
1155 | host=$host_alias
|
---|
1156 | target=$target_alias
|
---|
1157 |
|
---|
1158 | # FIXME: To remove some day.
|
---|
1159 | if test "x$host_alias" != x; then
|
---|
1160 | if test "x$build_alias" = x; then
|
---|
1161 | cross_compiling=maybe
|
---|
1162 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
1163 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
1164 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1165 | cross_compiling=yes
|
---|
1166 | fi
|
---|
1167 | fi
|
---|
1168 |
|
---|
1169 | ac_tool_prefix=
|
---|
1170 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1171 |
|
---|
1172 | test "$silent" = yes && exec 6>/dev/null
|
---|
1173 |
|
---|
1174 |
|
---|
1175 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1176 | ac_ls_di=`ls -di .` &&
|
---|
1177 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1178 | as_fn_error "working directory cannot be determined"
|
---|
1179 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1180 | as_fn_error "pwd does not report name of working directory"
|
---|
1181 |
|
---|
1182 |
|
---|
1183 | # Find the source files, if location was not specified.
|
---|
1184 | if test -z "$srcdir"; then
|
---|
1185 | ac_srcdir_defaulted=yes
|
---|
1186 | # Try the directory containing this script, then the parent directory.
|
---|
1187 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1188 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1189 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1190 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1191 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1192 | $as_echo X"$as_myself" |
|
---|
1193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1194 | s//\1/
|
---|
1195 | q
|
---|
1196 | }
|
---|
1197 | /^X\(\/\/\)[^/].*/{
|
---|
1198 | s//\1/
|
---|
1199 | q
|
---|
1200 | }
|
---|
1201 | /^X\(\/\/\)$/{
|
---|
1202 | s//\1/
|
---|
1203 | q
|
---|
1204 | }
|
---|
1205 | /^X\(\/\).*/{
|
---|
1206 | s//\1/
|
---|
1207 | q
|
---|
1208 | }
|
---|
1209 | s/.*/./; q'`
|
---|
1210 | srcdir=$ac_confdir
|
---|
1211 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1212 | srcdir=..
|
---|
1213 | fi
|
---|
1214 | else
|
---|
1215 | ac_srcdir_defaulted=no
|
---|
1216 | fi
|
---|
1217 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1218 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1219 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1220 | fi
|
---|
1221 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1222 | ac_abs_confdir=`(
|
---|
1223 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
|
---|
1224 | pwd)`
|
---|
1225 | # When building in place, set srcdir=.
|
---|
1226 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1227 | srcdir=.
|
---|
1228 | fi
|
---|
1229 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1230 | # Double slashes in file names in object file debugging info
|
---|
1231 | # mess up M-x gdb in Emacs.
|
---|
1232 | case $srcdir in
|
---|
1233 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1234 | esac
|
---|
1235 | for ac_var in $ac_precious_vars; do
|
---|
1236 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1237 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1238 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1239 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1240 | done
|
---|
1241 |
|
---|
1242 | #
|
---|
1243 | # Report the --help message.
|
---|
1244 | #
|
---|
1245 | if test "$ac_init_help" = "long"; then
|
---|
1246 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1247 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1248 | cat <<_ACEOF
|
---|
1249 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1250 |
|
---|
1251 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1252 |
|
---|
1253 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1254 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1255 |
|
---|
1256 | Defaults for the options are specified in brackets.
|
---|
1257 |
|
---|
1258 | Configuration:
|
---|
1259 | -h, --help display this help and exit
|
---|
1260 | --help=short display options specific to this package
|
---|
1261 | --help=recursive display the short help of all the included packages
|
---|
1262 | -V, --version display version information and exit
|
---|
1263 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
1264 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1265 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1266 | -n, --no-create do not create output files
|
---|
1267 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1268 |
|
---|
1269 | Installation directories:
|
---|
1270 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1271 | [$ac_default_prefix]
|
---|
1272 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1273 | [PREFIX]
|
---|
1274 |
|
---|
1275 | By default, \`make install' will install all the files in
|
---|
1276 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1277 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1278 | for instance \`--prefix=\$HOME'.
|
---|
1279 |
|
---|
1280 | For better control, use the options below.
|
---|
1281 |
|
---|
1282 | Fine tuning of the installation directories:
|
---|
1283 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1284 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1285 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1286 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1287 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1288 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1289 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1290 | --includedir=DIR C header files [PREFIX/include]
|
---|
1291 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1292 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1293 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1294 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1295 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1296 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1297 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1298 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1299 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1300 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1301 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1302 | _ACEOF
|
---|
1303 |
|
---|
1304 | cat <<\_ACEOF
|
---|
1305 |
|
---|
1306 | Program names:
|
---|
1307 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1308 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1309 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1310 |
|
---|
1311 | System types:
|
---|
1312 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1313 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1314 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1315 | _ACEOF
|
---|
1316 | fi
|
---|
1317 |
|
---|
1318 | if test -n "$ac_init_help"; then
|
---|
1319 |
|
---|
1320 | cat <<\_ACEOF
|
---|
1321 |
|
---|
1322 | Optional Features:
|
---|
1323 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1324 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1325 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1326 | --disable-java Disable Java compilation
|
---|
1327 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
1328 | --enable-override-longlong
|
---|
1329 | overide use of long long with GCC
|
---|
1330 |
|
---|
1331 | Optional Packages:
|
---|
1332 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1333 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1334 | --with-unac=dir Use local unac library and headers
|
---|
1335 | --with-dmalloc use dmalloc, as in
|
---|
1336 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1337 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1338 | --with-gnu-readline compile with GNU readline support
|
---|
1339 |
|
---|
1340 | Some influential environment variables:
|
---|
1341 | CXX C++ compiler command
|
---|
1342 | CXXFLAGS C++ compiler flags
|
---|
1343 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1344 | nonstandard directory <lib dir>
|
---|
1345 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1346 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1347 | you have headers in a nonstandard directory <include dir>
|
---|
1348 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
1349 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
1350 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1351 | This script will default YFLAGS to the empty string to avoid a
|
---|
1352 | default value of `-d' given by some make applications.
|
---|
1353 | CC C compiler command
|
---|
1354 | CFLAGS C compiler flags
|
---|
1355 | CPP C preprocessor
|
---|
1356 |
|
---|
1357 | Use these variables to override the choices made by `configure' or to help
|
---|
1358 | it to find libraries and programs with nonstandard names/locations.
|
---|
1359 |
|
---|
1360 | Report bugs to the package provider.
|
---|
1361 | _ACEOF
|
---|
1362 | ac_status=$?
|
---|
1363 | fi
|
---|
1364 |
|
---|
1365 | if test "$ac_init_help" = "recursive"; then
|
---|
1366 | # If there are subdirs, report their specific --help.
|
---|
1367 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1368 | test -d "$ac_dir" ||
|
---|
1369 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1370 | continue
|
---|
1371 | ac_builddir=.
|
---|
1372 |
|
---|
1373 | case "$ac_dir" in
|
---|
1374 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1375 | *)
|
---|
1376 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1377 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1378 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1379 | case $ac_top_builddir_sub in
|
---|
1380 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1381 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1382 | esac ;;
|
---|
1383 | esac
|
---|
1384 | ac_abs_top_builddir=$ac_pwd
|
---|
1385 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1386 | # for backward compatibility:
|
---|
1387 | ac_top_builddir=$ac_top_build_prefix
|
---|
1388 |
|
---|
1389 | case $srcdir in
|
---|
1390 | .) # We are building in place.
|
---|
1391 | ac_srcdir=.
|
---|
1392 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1393 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1394 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1395 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1396 | ac_top_srcdir=$srcdir
|
---|
1397 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1398 | *) # Relative name.
|
---|
1399 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1400 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1401 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1402 | esac
|
---|
1403 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1404 |
|
---|
1405 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1406 | # Check for guested configure.
|
---|
1407 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1408 | echo &&
|
---|
1409 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1410 | elif test -f "$ac_srcdir/configure"; then
|
---|
1411 | echo &&
|
---|
1412 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1413 | else
|
---|
1414 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1415 | fi || ac_status=$?
|
---|
1416 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1417 | done
|
---|
1418 | fi
|
---|
1419 |
|
---|
1420 | test -n "$ac_init_help" && exit $ac_status
|
---|
1421 | if $ac_init_version; then
|
---|
1422 | cat <<\_ACEOF
|
---|
1423 | configure
|
---|
1424 | generated by GNU Autoconf 2.65
|
---|
1425 |
|
---|
1426 | Copyright (C) 2009 Free Software Foundation, Inc.
|
---|
1427 | This configure script is free software; the Free Software Foundation
|
---|
1428 | gives unlimited permission to copy, distribute and modify it.
|
---|
1429 | _ACEOF
|
---|
1430 | exit
|
---|
1431 | fi
|
---|
1432 |
|
---|
1433 | ## ------------------------ ##
|
---|
1434 | ## Autoconf initialization. ##
|
---|
1435 | ## ------------------------ ##
|
---|
1436 |
|
---|
1437 | # ac_fn_cxx_try_compile LINENO
|
---|
1438 | # ----------------------------
|
---|
1439 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1440 | ac_fn_cxx_try_compile ()
|
---|
1441 | {
|
---|
1442 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1443 | rm -f conftest.$ac_objext
|
---|
1444 | if { { ac_try="$ac_compile"
|
---|
1445 | case "(($ac_try" in
|
---|
1446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1447 | *) ac_try_echo=$ac_try;;
|
---|
1448 | esac
|
---|
1449 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1450 | $as_echo "$ac_try_echo"; } >&5
|
---|
1451 | (eval "$ac_compile") 2>conftest.err
|
---|
1452 | ac_status=$?
|
---|
1453 | if test -s conftest.err; then
|
---|
1454 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1455 | cat conftest.er1 >&5
|
---|
1456 | mv -f conftest.er1 conftest.err
|
---|
1457 | fi
|
---|
1458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1459 | test $ac_status = 0; } && {
|
---|
1460 | test -z "$ac_cxx_werror_flag" ||
|
---|
1461 | test ! -s conftest.err
|
---|
1462 | } && test -s conftest.$ac_objext; then :
|
---|
1463 | ac_retval=0
|
---|
1464 | else
|
---|
1465 | $as_echo "$as_me: failed program was:" >&5
|
---|
1466 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1467 |
|
---|
1468 | ac_retval=1
|
---|
1469 | fi
|
---|
1470 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1471 | as_fn_set_status $ac_retval
|
---|
1472 |
|
---|
1473 | } # ac_fn_cxx_try_compile
|
---|
1474 |
|
---|
1475 | # ac_fn_c_try_compile LINENO
|
---|
1476 | # --------------------------
|
---|
1477 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1478 | ac_fn_c_try_compile ()
|
---|
1479 | {
|
---|
1480 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1481 | rm -f conftest.$ac_objext
|
---|
1482 | if { { ac_try="$ac_compile"
|
---|
1483 | case "(($ac_try" in
|
---|
1484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1485 | *) ac_try_echo=$ac_try;;
|
---|
1486 | esac
|
---|
1487 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1488 | $as_echo "$ac_try_echo"; } >&5
|
---|
1489 | (eval "$ac_compile") 2>conftest.err
|
---|
1490 | ac_status=$?
|
---|
1491 | if test -s conftest.err; then
|
---|
1492 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1493 | cat conftest.er1 >&5
|
---|
1494 | mv -f conftest.er1 conftest.err
|
---|
1495 | fi
|
---|
1496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1497 | test $ac_status = 0; } && {
|
---|
1498 | test -z "$ac_c_werror_flag" ||
|
---|
1499 | test ! -s conftest.err
|
---|
1500 | } && test -s conftest.$ac_objext; then :
|
---|
1501 | ac_retval=0
|
---|
1502 | else
|
---|
1503 | $as_echo "$as_me: failed program was:" >&5
|
---|
1504 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1505 |
|
---|
1506 | ac_retval=1
|
---|
1507 | fi
|
---|
1508 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1509 | as_fn_set_status $ac_retval
|
---|
1510 |
|
---|
1511 | } # ac_fn_c_try_compile
|
---|
1512 |
|
---|
1513 | # ac_fn_c_try_cpp LINENO
|
---|
1514 | # ----------------------
|
---|
1515 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1516 | ac_fn_c_try_cpp ()
|
---|
1517 | {
|
---|
1518 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1519 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1520 | case "(($ac_try" in
|
---|
1521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1522 | *) ac_try_echo=$ac_try;;
|
---|
1523 | esac
|
---|
1524 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1525 | $as_echo "$ac_try_echo"; } >&5
|
---|
1526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1527 | ac_status=$?
|
---|
1528 | if test -s conftest.err; then
|
---|
1529 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1530 | cat conftest.er1 >&5
|
---|
1531 | mv -f conftest.er1 conftest.err
|
---|
1532 | fi
|
---|
1533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1534 | test $ac_status = 0; } >/dev/null && {
|
---|
1535 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1536 | test ! -s conftest.err
|
---|
1537 | }; then :
|
---|
1538 | ac_retval=0
|
---|
1539 | else
|
---|
1540 | $as_echo "$as_me: failed program was:" >&5
|
---|
1541 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1542 |
|
---|
1543 | ac_retval=1
|
---|
1544 | fi
|
---|
1545 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1546 | as_fn_set_status $ac_retval
|
---|
1547 |
|
---|
1548 | } # ac_fn_c_try_cpp
|
---|
1549 |
|
---|
1550 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1551 | # -------------------------------------------------------
|
---|
1552 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1553 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1554 | # accordingly.
|
---|
1555 | ac_fn_c_check_header_mongrel ()
|
---|
1556 | {
|
---|
1557 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1558 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
1559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1560 | $as_echo_n "checking for $2... " >&6; }
|
---|
1561 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
1562 | $as_echo_n "(cached) " >&6
|
---|
1563 | fi
|
---|
1564 | eval ac_res=\$$3
|
---|
1565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1566 | $as_echo "$ac_res" >&6; }
|
---|
1567 | else
|
---|
1568 | # Is the header compilable?
|
---|
1569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1570 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1572 | /* end confdefs.h. */
|
---|
1573 | $4
|
---|
1574 | #include <$2>
|
---|
1575 | _ACEOF
|
---|
1576 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1577 | ac_header_compiler=yes
|
---|
1578 | else
|
---|
1579 | ac_header_compiler=no
|
---|
1580 | fi
|
---|
1581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1583 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1584 |
|
---|
1585 | # Is the header present?
|
---|
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1587 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1589 | /* end confdefs.h. */
|
---|
1590 | #include <$2>
|
---|
1591 | _ACEOF
|
---|
1592 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1593 | ac_header_preproc=yes
|
---|
1594 | else
|
---|
1595 | ac_header_preproc=no
|
---|
1596 | fi
|
---|
1597 | rm -f conftest.err conftest.$ac_ext
|
---|
1598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1599 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1600 |
|
---|
1601 | # So? What about this header?
|
---|
1602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1603 | yes:no: )
|
---|
1604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1605 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1607 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1608 | ;;
|
---|
1609 | no:yes:* )
|
---|
1610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1611 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1613 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1615 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1616 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1617 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1619 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1620 | ;;
|
---|
1621 | esac
|
---|
1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1623 | $as_echo_n "checking for $2... " >&6; }
|
---|
1624 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
1625 | $as_echo_n "(cached) " >&6
|
---|
1626 | else
|
---|
1627 | eval "$3=\$ac_header_compiler"
|
---|
1628 | fi
|
---|
1629 | eval ac_res=\$$3
|
---|
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1631 | $as_echo "$ac_res" >&6; }
|
---|
1632 | fi
|
---|
1633 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1634 |
|
---|
1635 | } # ac_fn_c_check_header_mongrel
|
---|
1636 |
|
---|
1637 | # ac_fn_c_try_run LINENO
|
---|
1638 | # ----------------------
|
---|
1639 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1640 | # that executables *can* be run.
|
---|
1641 | ac_fn_c_try_run ()
|
---|
1642 | {
|
---|
1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1644 | if { { ac_try="$ac_link"
|
---|
1645 | case "(($ac_try" in
|
---|
1646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1647 | *) ac_try_echo=$ac_try;;
|
---|
1648 | esac
|
---|
1649 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1650 | $as_echo "$ac_try_echo"; } >&5
|
---|
1651 | (eval "$ac_link") 2>&5
|
---|
1652 | ac_status=$?
|
---|
1653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1654 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1655 | { { case "(($ac_try" in
|
---|
1656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1657 | *) ac_try_echo=$ac_try;;
|
---|
1658 | esac
|
---|
1659 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1660 | $as_echo "$ac_try_echo"; } >&5
|
---|
1661 | (eval "$ac_try") 2>&5
|
---|
1662 | ac_status=$?
|
---|
1663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1664 | test $ac_status = 0; }; }; then :
|
---|
1665 | ac_retval=0
|
---|
1666 | else
|
---|
1667 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1668 | $as_echo "$as_me: failed program was:" >&5
|
---|
1669 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1670 |
|
---|
1671 | ac_retval=$ac_status
|
---|
1672 | fi
|
---|
1673 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1674 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1675 | as_fn_set_status $ac_retval
|
---|
1676 |
|
---|
1677 | } # ac_fn_c_try_run
|
---|
1678 |
|
---|
1679 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1680 | # -------------------------------------------------------
|
---|
1681 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1682 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1683 | ac_fn_c_check_header_compile ()
|
---|
1684 | {
|
---|
1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1687 | $as_echo_n "checking for $2... " >&6; }
|
---|
1688 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
1689 | $as_echo_n "(cached) " >&6
|
---|
1690 | else
|
---|
1691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1692 | /* end confdefs.h. */
|
---|
1693 | $4
|
---|
1694 | #include <$2>
|
---|
1695 | _ACEOF
|
---|
1696 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1697 | eval "$3=yes"
|
---|
1698 | else
|
---|
1699 | eval "$3=no"
|
---|
1700 | fi
|
---|
1701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1702 | fi
|
---|
1703 | eval ac_res=\$$3
|
---|
1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1705 | $as_echo "$ac_res" >&6; }
|
---|
1706 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1707 |
|
---|
1708 | } # ac_fn_c_check_header_compile
|
---|
1709 |
|
---|
1710 | # ac_fn_c_try_link LINENO
|
---|
1711 | # -----------------------
|
---|
1712 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1713 | ac_fn_c_try_link ()
|
---|
1714 | {
|
---|
1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1716 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1717 | if { { ac_try="$ac_link"
|
---|
1718 | case "(($ac_try" in
|
---|
1719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1720 | *) ac_try_echo=$ac_try;;
|
---|
1721 | esac
|
---|
1722 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1723 | $as_echo "$ac_try_echo"; } >&5
|
---|
1724 | (eval "$ac_link") 2>conftest.err
|
---|
1725 | ac_status=$?
|
---|
1726 | if test -s conftest.err; then
|
---|
1727 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1728 | cat conftest.er1 >&5
|
---|
1729 | mv -f conftest.er1 conftest.err
|
---|
1730 | fi
|
---|
1731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1732 | test $ac_status = 0; } && {
|
---|
1733 | test -z "$ac_c_werror_flag" ||
|
---|
1734 | test ! -s conftest.err
|
---|
1735 | } && test -s conftest$ac_exeext && {
|
---|
1736 | test "$cross_compiling" = yes ||
|
---|
1737 | $as_test_x conftest$ac_exeext
|
---|
1738 | }; then :
|
---|
1739 | ac_retval=0
|
---|
1740 | else
|
---|
1741 | $as_echo "$as_me: failed program was:" >&5
|
---|
1742 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1743 |
|
---|
1744 | ac_retval=1
|
---|
1745 | fi
|
---|
1746 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1747 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1748 | # interfere with the next link command; also delete a directory that is
|
---|
1749 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1750 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1751 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1752 | as_fn_set_status $ac_retval
|
---|
1753 |
|
---|
1754 | } # ac_fn_c_try_link
|
---|
1755 |
|
---|
1756 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1757 | # -------------------------------------------
|
---|
1758 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1759 | # variable VAR accordingly.
|
---|
1760 | ac_fn_c_check_type ()
|
---|
1761 | {
|
---|
1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1764 | $as_echo_n "checking for $2... " >&6; }
|
---|
1765 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
1766 | $as_echo_n "(cached) " >&6
|
---|
1767 | else
|
---|
1768 | eval "$3=no"
|
---|
1769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1770 | /* end confdefs.h. */
|
---|
1771 | $4
|
---|
1772 | int
|
---|
1773 | main ()
|
---|
1774 | {
|
---|
1775 | if (sizeof ($2))
|
---|
1776 | return 0;
|
---|
1777 | ;
|
---|
1778 | return 0;
|
---|
1779 | }
|
---|
1780 | _ACEOF
|
---|
1781 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1783 | /* end confdefs.h. */
|
---|
1784 | $4
|
---|
1785 | int
|
---|
1786 | main ()
|
---|
1787 | {
|
---|
1788 | if (sizeof (($2)))
|
---|
1789 | return 0;
|
---|
1790 | ;
|
---|
1791 | return 0;
|
---|
1792 | }
|
---|
1793 | _ACEOF
|
---|
1794 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1795 |
|
---|
1796 | else
|
---|
1797 | eval "$3=yes"
|
---|
1798 | fi
|
---|
1799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1800 | fi
|
---|
1801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1802 | fi
|
---|
1803 | eval ac_res=\$$3
|
---|
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1805 | $as_echo "$ac_res" >&6; }
|
---|
1806 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1807 |
|
---|
1808 | } # ac_fn_c_check_type
|
---|
1809 |
|
---|
1810 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1811 | # ----------------------------------
|
---|
1812 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1813 | ac_fn_c_check_func ()
|
---|
1814 | {
|
---|
1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1817 | $as_echo_n "checking for $2... " >&6; }
|
---|
1818 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
1819 | $as_echo_n "(cached) " >&6
|
---|
1820 | else
|
---|
1821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1822 | /* end confdefs.h. */
|
---|
1823 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1824 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1825 | #define $2 innocuous_$2
|
---|
1826 |
|
---|
1827 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1828 | which can conflict with char $2 (); below.
|
---|
1829 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1830 | <limits.h> exists even on freestanding compilers. */
|
---|
1831 |
|
---|
1832 | #ifdef __STDC__
|
---|
1833 | # include <limits.h>
|
---|
1834 | #else
|
---|
1835 | # include <assert.h>
|
---|
1836 | #endif
|
---|
1837 |
|
---|
1838 | #undef $2
|
---|
1839 |
|
---|
1840 | /* Override any GCC internal prototype to avoid an error.
|
---|
1841 | Use char because int might match the return type of a GCC
|
---|
1842 | builtin and then its argument prototype would still apply. */
|
---|
1843 | #ifdef __cplusplus
|
---|
1844 | extern "C"
|
---|
1845 | #endif
|
---|
1846 | char $2 ();
|
---|
1847 | /* The GNU C library defines this for functions which it implements
|
---|
1848 | to always fail with ENOSYS. Some functions are actually named
|
---|
1849 | something starting with __ and the normal name is an alias. */
|
---|
1850 | #if defined __stub_$2 || defined __stub___$2
|
---|
1851 | choke me
|
---|
1852 | #endif
|
---|
1853 |
|
---|
1854 | int
|
---|
1855 | main ()
|
---|
1856 | {
|
---|
1857 | return $2 ();
|
---|
1858 | ;
|
---|
1859 | return 0;
|
---|
1860 | }
|
---|
1861 | _ACEOF
|
---|
1862 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1863 | eval "$3=yes"
|
---|
1864 | else
|
---|
1865 | eval "$3=no"
|
---|
1866 | fi
|
---|
1867 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1868 | conftest$ac_exeext conftest.$ac_ext
|
---|
1869 | fi
|
---|
1870 | eval ac_res=\$$3
|
---|
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1872 | $as_echo "$ac_res" >&6; }
|
---|
1873 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
1874 |
|
---|
1875 | } # ac_fn_c_check_func
|
---|
1876 |
|
---|
1877 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
---|
1878 | # --------------------------------------------
|
---|
1879 | # Tries to find the compile-time value of EXPR in a program that includes
|
---|
1880 | # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
---|
1881 | # computed
|
---|
1882 | ac_fn_c_compute_int ()
|
---|
1883 | {
|
---|
1884 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1885 | if test "$cross_compiling" = yes; then
|
---|
1886 | # Depending upon the size, compute the lo and hi bounds.
|
---|
1887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1888 | /* end confdefs.h. */
|
---|
1889 | $4
|
---|
1890 | int
|
---|
1891 | main ()
|
---|
1892 | {
|
---|
1893 | static int test_array [1 - 2 * !(($2) >= 0)];
|
---|
1894 | test_array [0] = 0
|
---|
1895 |
|
---|
1896 | ;
|
---|
1897 | return 0;
|
---|
1898 | }
|
---|
1899 | _ACEOF
|
---|
1900 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1901 | ac_lo=0 ac_mid=0
|
---|
1902 | while :; do
|
---|
1903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1904 | /* end confdefs.h. */
|
---|
1905 | $4
|
---|
1906 | int
|
---|
1907 | main ()
|
---|
1908 | {
|
---|
1909 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
1910 | test_array [0] = 0
|
---|
1911 |
|
---|
1912 | ;
|
---|
1913 | return 0;
|
---|
1914 | }
|
---|
1915 | _ACEOF
|
---|
1916 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1917 | ac_hi=$ac_mid; break
|
---|
1918 | else
|
---|
1919 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
---|
1920 | if test $ac_lo -le $ac_mid; then
|
---|
1921 | ac_lo= ac_hi=
|
---|
1922 | break
|
---|
1923 | fi
|
---|
1924 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
---|
1925 | fi
|
---|
1926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1927 | done
|
---|
1928 | else
|
---|
1929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1930 | /* end confdefs.h. */
|
---|
1931 | $4
|
---|
1932 | int
|
---|
1933 | main ()
|
---|
1934 | {
|
---|
1935 | static int test_array [1 - 2 * !(($2) < 0)];
|
---|
1936 | test_array [0] = 0
|
---|
1937 |
|
---|
1938 | ;
|
---|
1939 | return 0;
|
---|
1940 | }
|
---|
1941 | _ACEOF
|
---|
1942 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1943 | ac_hi=-1 ac_mid=-1
|
---|
1944 | while :; do
|
---|
1945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1946 | /* end confdefs.h. */
|
---|
1947 | $4
|
---|
1948 | int
|
---|
1949 | main ()
|
---|
1950 | {
|
---|
1951 | static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
---|
1952 | test_array [0] = 0
|
---|
1953 |
|
---|
1954 | ;
|
---|
1955 | return 0;
|
---|
1956 | }
|
---|
1957 | _ACEOF
|
---|
1958 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1959 | ac_lo=$ac_mid; break
|
---|
1960 | else
|
---|
1961 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
---|
1962 | if test $ac_mid -le $ac_hi; then
|
---|
1963 | ac_lo= ac_hi=
|
---|
1964 | break
|
---|
1965 | fi
|
---|
1966 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
---|
1967 | fi
|
---|
1968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1969 | done
|
---|
1970 | else
|
---|
1971 | ac_lo= ac_hi=
|
---|
1972 | fi
|
---|
1973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1974 | fi
|
---|
1975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1976 | # Binary search between lo and hi bounds.
|
---|
1977 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
1978 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
---|
1979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1980 | /* end confdefs.h. */
|
---|
1981 | $4
|
---|
1982 | int
|
---|
1983 | main ()
|
---|
1984 | {
|
---|
1985 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
1986 | test_array [0] = 0
|
---|
1987 |
|
---|
1988 | ;
|
---|
1989 | return 0;
|
---|
1990 | }
|
---|
1991 | _ACEOF
|
---|
1992 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1993 | ac_hi=$ac_mid
|
---|
1994 | else
|
---|
1995 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
---|
1996 | fi
|
---|
1997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1998 | done
|
---|
1999 | case $ac_lo in #((
|
---|
2000 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
---|
2001 | '') ac_retval=1 ;;
|
---|
2002 | esac
|
---|
2003 | else
|
---|
2004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2005 | /* end confdefs.h. */
|
---|
2006 | $4
|
---|
2007 | static long int longval () { return $2; }
|
---|
2008 | static unsigned long int ulongval () { return $2; }
|
---|
2009 | #include <stdio.h>
|
---|
2010 | #include <stdlib.h>
|
---|
2011 | int
|
---|
2012 | main ()
|
---|
2013 | {
|
---|
2014 |
|
---|
2015 | FILE *f = fopen ("conftest.val", "w");
|
---|
2016 | if (! f)
|
---|
2017 | return 1;
|
---|
2018 | if (($2) < 0)
|
---|
2019 | {
|
---|
2020 | long int i = longval ();
|
---|
2021 | if (i != ($2))
|
---|
2022 | return 1;
|
---|
2023 | fprintf (f, "%ld", i);
|
---|
2024 | }
|
---|
2025 | else
|
---|
2026 | {
|
---|
2027 | unsigned long int i = ulongval ();
|
---|
2028 | if (i != ($2))
|
---|
2029 | return 1;
|
---|
2030 | fprintf (f, "%lu", i);
|
---|
2031 | }
|
---|
2032 | /* Do not output a trailing newline, as this causes \r\n confusion
|
---|
2033 | on some platforms. */
|
---|
2034 | return ferror (f) || fclose (f) != 0;
|
---|
2035 |
|
---|
2036 | ;
|
---|
2037 | return 0;
|
---|
2038 | }
|
---|
2039 | _ACEOF
|
---|
2040 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
2041 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
---|
2042 | else
|
---|
2043 | ac_retval=1
|
---|
2044 | fi
|
---|
2045 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
2046 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
2047 | rm -f conftest.val
|
---|
2048 |
|
---|
2049 | fi
|
---|
2050 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
2051 | as_fn_set_status $ac_retval
|
---|
2052 |
|
---|
2053 | } # ac_fn_c_compute_int
|
---|
2054 | cat >config.log <<_ACEOF
|
---|
2055 | This file contains any messages produced by compilers while
|
---|
2056 | running configure, to aid debugging if configure makes a mistake.
|
---|
2057 |
|
---|
2058 | It was created by $as_me, which was
|
---|
2059 | generated by GNU Autoconf 2.65. Invocation command line was
|
---|
2060 |
|
---|
2061 | $ $0 $@
|
---|
2062 |
|
---|
2063 | _ACEOF
|
---|
2064 | exec 5>>config.log
|
---|
2065 | {
|
---|
2066 | cat <<_ASUNAME
|
---|
2067 | ## --------- ##
|
---|
2068 | ## Platform. ##
|
---|
2069 | ## --------- ##
|
---|
2070 |
|
---|
2071 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2072 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2073 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2074 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2075 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2076 |
|
---|
2077 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2078 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2079 |
|
---|
2080 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2081 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2082 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2083 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2084 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2085 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2086 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2087 |
|
---|
2088 | _ASUNAME
|
---|
2089 |
|
---|
2090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2091 | for as_dir in $PATH
|
---|
2092 | do
|
---|
2093 | IFS=$as_save_IFS
|
---|
2094 | test -z "$as_dir" && as_dir=.
|
---|
2095 | $as_echo "PATH: $as_dir"
|
---|
2096 | done
|
---|
2097 | IFS=$as_save_IFS
|
---|
2098 |
|
---|
2099 | } >&5
|
---|
2100 |
|
---|
2101 | cat >&5 <<_ACEOF
|
---|
2102 |
|
---|
2103 |
|
---|
2104 | ## ----------- ##
|
---|
2105 | ## Core tests. ##
|
---|
2106 | ## ----------- ##
|
---|
2107 |
|
---|
2108 | _ACEOF
|
---|
2109 |
|
---|
2110 |
|
---|
2111 | # Keep a trace of the command line.
|
---|
2112 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2113 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2114 | # Also quote any args containing shell meta-characters.
|
---|
2115 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2116 | ac_configure_args=
|
---|
2117 | ac_configure_args0=
|
---|
2118 | ac_configure_args1=
|
---|
2119 | ac_must_keep_next=false
|
---|
2120 | for ac_pass in 1 2
|
---|
2121 | do
|
---|
2122 | for ac_arg
|
---|
2123 | do
|
---|
2124 | case $ac_arg in
|
---|
2125 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2126 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2127 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2128 | continue ;;
|
---|
2129 | *\'*)
|
---|
2130 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2131 | esac
|
---|
2132 | case $ac_pass in
|
---|
2133 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2134 | 2)
|
---|
2135 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2136 | if test $ac_must_keep_next = true; then
|
---|
2137 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2138 | else
|
---|
2139 | case $ac_arg in
|
---|
2140 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2141 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2142 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2143 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2144 | case "$ac_configure_args0 " in
|
---|
2145 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2146 | esac
|
---|
2147 | ;;
|
---|
2148 | -* ) ac_must_keep_next=true ;;
|
---|
2149 | esac
|
---|
2150 | fi
|
---|
2151 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2152 | ;;
|
---|
2153 | esac
|
---|
2154 | done
|
---|
2155 | done
|
---|
2156 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2157 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2158 |
|
---|
2159 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2160 | # config.log. We remove comments because anyway the quotes in there
|
---|
2161 | # would cause problems or look ugly.
|
---|
2162 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2163 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2164 | trap 'exit_status=$?
|
---|
2165 | # Save into config.log some information that might help in debugging.
|
---|
2166 | {
|
---|
2167 | echo
|
---|
2168 |
|
---|
2169 | cat <<\_ASBOX
|
---|
2170 | ## ---------------- ##
|
---|
2171 | ## Cache variables. ##
|
---|
2172 | ## ---------------- ##
|
---|
2173 | _ASBOX
|
---|
2174 | echo
|
---|
2175 | # The following way of writing the cache mishandles newlines in values,
|
---|
2176 | (
|
---|
2177 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2178 | eval ac_val=\$$ac_var
|
---|
2179 | case $ac_val in #(
|
---|
2180 | *${as_nl}*)
|
---|
2181 | case $ac_var in #(
|
---|
2182 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2183 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2184 | esac
|
---|
2185 | case $ac_var in #(
|
---|
2186 | _ | IFS | as_nl) ;; #(
|
---|
2187 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2188 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2189 | esac ;;
|
---|
2190 | esac
|
---|
2191 | done
|
---|
2192 | (set) 2>&1 |
|
---|
2193 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2194 | *${as_nl}ac_space=\ *)
|
---|
2195 | sed -n \
|
---|
2196 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2197 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2198 | ;; #(
|
---|
2199 | *)
|
---|
2200 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2201 | ;;
|
---|
2202 | esac |
|
---|
2203 | sort
|
---|
2204 | )
|
---|
2205 | echo
|
---|
2206 |
|
---|
2207 | cat <<\_ASBOX
|
---|
2208 | ## ----------------- ##
|
---|
2209 | ## Output variables. ##
|
---|
2210 | ## ----------------- ##
|
---|
2211 | _ASBOX
|
---|
2212 | echo
|
---|
2213 | for ac_var in $ac_subst_vars
|
---|
2214 | do
|
---|
2215 | eval ac_val=\$$ac_var
|
---|
2216 | case $ac_val in
|
---|
2217 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2218 | esac
|
---|
2219 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2220 | done | sort
|
---|
2221 | echo
|
---|
2222 |
|
---|
2223 | if test -n "$ac_subst_files"; then
|
---|
2224 | cat <<\_ASBOX
|
---|
2225 | ## ------------------- ##
|
---|
2226 | ## File substitutions. ##
|
---|
2227 | ## ------------------- ##
|
---|
2228 | _ASBOX
|
---|
2229 | echo
|
---|
2230 | for ac_var in $ac_subst_files
|
---|
2231 | do
|
---|
2232 | eval ac_val=\$$ac_var
|
---|
2233 | case $ac_val in
|
---|
2234 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2235 | esac
|
---|
2236 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2237 | done | sort
|
---|
2238 | echo
|
---|
2239 | fi
|
---|
2240 |
|
---|
2241 | if test -s confdefs.h; then
|
---|
2242 | cat <<\_ASBOX
|
---|
2243 | ## ----------- ##
|
---|
2244 | ## confdefs.h. ##
|
---|
2245 | ## ----------- ##
|
---|
2246 | _ASBOX
|
---|
2247 | echo
|
---|
2248 | cat confdefs.h
|
---|
2249 | echo
|
---|
2250 | fi
|
---|
2251 | test "$ac_signal" != 0 &&
|
---|
2252 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2253 | $as_echo "$as_me: exit $exit_status"
|
---|
2254 | } >&5
|
---|
2255 | rm -f core *.core core.conftest.* &&
|
---|
2256 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2257 | exit $exit_status
|
---|
2258 | ' 0
|
---|
2259 | for ac_signal in 1 2 13 15; do
|
---|
2260 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2261 | done
|
---|
2262 | ac_signal=0
|
---|
2263 |
|
---|
2264 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2265 | rm -f -r conftest* confdefs.h
|
---|
2266 |
|
---|
2267 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2268 |
|
---|
2269 | # Predefined preprocessor variables.
|
---|
2270 |
|
---|
2271 | cat >>confdefs.h <<_ACEOF
|
---|
2272 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2273 | _ACEOF
|
---|
2274 |
|
---|
2275 | cat >>confdefs.h <<_ACEOF
|
---|
2276 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2277 | _ACEOF
|
---|
2278 |
|
---|
2279 | cat >>confdefs.h <<_ACEOF
|
---|
2280 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2281 | _ACEOF
|
---|
2282 |
|
---|
2283 | cat >>confdefs.h <<_ACEOF
|
---|
2284 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2285 | _ACEOF
|
---|
2286 |
|
---|
2287 | cat >>confdefs.h <<_ACEOF
|
---|
2288 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2289 | _ACEOF
|
---|
2290 |
|
---|
2291 | cat >>confdefs.h <<_ACEOF
|
---|
2292 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2293 | _ACEOF
|
---|
2294 |
|
---|
2295 |
|
---|
2296 | # Let the site file select an alternate cache file if it wants to.
|
---|
2297 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2298 | ac_site_file1=NONE
|
---|
2299 | ac_site_file2=NONE
|
---|
2300 | if test -n "$CONFIG_SITE"; then
|
---|
2301 | ac_site_file1=$CONFIG_SITE
|
---|
2302 | elif test "x$prefix" != xNONE; then
|
---|
2303 | ac_site_file1=$prefix/share/config.site
|
---|
2304 | ac_site_file2=$prefix/etc/config.site
|
---|
2305 | else
|
---|
2306 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2307 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2308 | fi
|
---|
2309 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2310 | do
|
---|
2311 | test "x$ac_site_file" = xNONE && continue
|
---|
2312 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2314 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2315 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2316 | . "$ac_site_file"
|
---|
2317 | fi
|
---|
2318 | done
|
---|
2319 |
|
---|
2320 | if test -r "$cache_file"; then
|
---|
2321 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2322 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2323 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2325 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2326 | case $cache_file in
|
---|
2327 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2328 | *) . "./$cache_file";;
|
---|
2329 | esac
|
---|
2330 | fi
|
---|
2331 | else
|
---|
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2333 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2334 | >$cache_file
|
---|
2335 | fi
|
---|
2336 |
|
---|
2337 | # Check that the precious variables saved in the cache have kept the same
|
---|
2338 | # value.
|
---|
2339 | ac_cache_corrupted=false
|
---|
2340 | for ac_var in $ac_precious_vars; do
|
---|
2341 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2342 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2343 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2344 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2345 | case $ac_old_set,$ac_new_set in
|
---|
2346 | set,)
|
---|
2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2348 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2349 | ac_cache_corrupted=: ;;
|
---|
2350 | ,set)
|
---|
2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2352 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2353 | ac_cache_corrupted=: ;;
|
---|
2354 | ,);;
|
---|
2355 | *)
|
---|
2356 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2357 | # differences in whitespace do not lead to failure.
|
---|
2358 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2359 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2360 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2362 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2363 | ac_cache_corrupted=:
|
---|
2364 | else
|
---|
2365 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2366 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2367 | eval $ac_var=\$ac_old_val
|
---|
2368 | fi
|
---|
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2370 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2372 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2373 | fi;;
|
---|
2374 | esac
|
---|
2375 | # Pass precious variables to config.status.
|
---|
2376 | if test "$ac_new_set" = set; then
|
---|
2377 | case $ac_new_val in
|
---|
2378 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2379 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2380 | esac
|
---|
2381 | case " $ac_configure_args " in
|
---|
2382 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2383 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2384 | esac
|
---|
2385 | fi
|
---|
2386 | done
|
---|
2387 | if $ac_cache_corrupted; then
|
---|
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2389 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2391 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2392 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2393 | fi
|
---|
2394 | ## -------------------- ##
|
---|
2395 | ## Main body of script. ##
|
---|
2396 | ## -------------------- ##
|
---|
2397 |
|
---|
2398 | ac_ext=c
|
---|
2399 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2403 |
|
---|
2404 |
|
---|
2405 | ac_config_headers="$ac_config_headers config.h"
|
---|
2406 |
|
---|
2407 |
|
---|
2408 | ac_aux_dir=
|
---|
2409 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2410 | for ac_t in install-sh install.sh shtool; do
|
---|
2411 | if test -f "$ac_dir/$ac_t"; then
|
---|
2412 | ac_aux_dir=$ac_dir
|
---|
2413 | ac_install_sh="$ac_aux_dir/$ac_t -c"
|
---|
2414 | break 2
|
---|
2415 | fi
|
---|
2416 | done
|
---|
2417 | done
|
---|
2418 | if test -z "$ac_aux_dir"; then
|
---|
2419 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2420 | fi
|
---|
2421 |
|
---|
2422 | # These three variables are undocumented and unsupported,
|
---|
2423 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2424 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2425 | # whose full name contains unusual characters.
|
---|
2426 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2427 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2428 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2429 |
|
---|
2430 |
|
---|
2431 | # Make sure we can run config.sub.
|
---|
2432 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2433 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2434 |
|
---|
2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2436 | $as_echo_n "checking build system type... " >&6; }
|
---|
2437 | if test "${ac_cv_build+set}" = set; then :
|
---|
2438 | $as_echo_n "(cached) " >&6
|
---|
2439 | else
|
---|
2440 | ac_build_alias=$build_alias
|
---|
2441 | test "x$ac_build_alias" = x &&
|
---|
2442 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2443 | test "x$ac_build_alias" = x &&
|
---|
2444 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2445 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2446 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2447 |
|
---|
2448 | fi
|
---|
2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2450 | $as_echo "$ac_cv_build" >&6; }
|
---|
2451 | case $ac_cv_build in
|
---|
2452 | *-*-*) ;;
|
---|
2453 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
|
---|
2454 | esac
|
---|
2455 | build=$ac_cv_build
|
---|
2456 | ac_save_IFS=$IFS; IFS='-'
|
---|
2457 | set x $ac_cv_build
|
---|
2458 | shift
|
---|
2459 | build_cpu=$1
|
---|
2460 | build_vendor=$2
|
---|
2461 | shift; shift
|
---|
2462 | # Remember, the first character of IFS is used to create $*,
|
---|
2463 | # except with old shells:
|
---|
2464 | build_os=$*
|
---|
2465 | IFS=$ac_save_IFS
|
---|
2466 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2467 |
|
---|
2468 |
|
---|
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2470 | $as_echo_n "checking host system type... " >&6; }
|
---|
2471 | if test "${ac_cv_host+set}" = set; then :
|
---|
2472 | $as_echo_n "(cached) " >&6
|
---|
2473 | else
|
---|
2474 | if test "x$host_alias" = x; then
|
---|
2475 | ac_cv_host=$ac_cv_build
|
---|
2476 | else
|
---|
2477 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2478 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2479 | fi
|
---|
2480 |
|
---|
2481 | fi
|
---|
2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2483 | $as_echo "$ac_cv_host" >&6; }
|
---|
2484 | case $ac_cv_host in
|
---|
2485 | *-*-*) ;;
|
---|
2486 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
|
---|
2487 | esac
|
---|
2488 | host=$ac_cv_host
|
---|
2489 | ac_save_IFS=$IFS; IFS='-'
|
---|
2490 | set x $ac_cv_host
|
---|
2491 | shift
|
---|
2492 | host_cpu=$1
|
---|
2493 | host_vendor=$2
|
---|
2494 | shift; shift
|
---|
2495 | # Remember, the first character of IFS is used to create $*,
|
---|
2496 | # except with old shells:
|
---|
2497 | host_os=$*
|
---|
2498 | IFS=$ac_save_IFS
|
---|
2499 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2500 |
|
---|
2501 |
|
---|
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
2503 | $as_echo_n "checking target system type... " >&6; }
|
---|
2504 | if test "${ac_cv_target+set}" = set; then :
|
---|
2505 | $as_echo_n "(cached) " >&6
|
---|
2506 | else
|
---|
2507 | if test "x$target_alias" = x; then
|
---|
2508 | ac_cv_target=$ac_cv_host
|
---|
2509 | else
|
---|
2510 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
2511 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
2512 | fi
|
---|
2513 |
|
---|
2514 | fi
|
---|
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
2516 | $as_echo "$ac_cv_target" >&6; }
|
---|
2517 | case $ac_cv_target in
|
---|
2518 | *-*-*) ;;
|
---|
2519 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
|
---|
2520 | esac
|
---|
2521 | target=$ac_cv_target
|
---|
2522 | ac_save_IFS=$IFS; IFS='-'
|
---|
2523 | set x $ac_cv_target
|
---|
2524 | shift
|
---|
2525 | target_cpu=$1
|
---|
2526 | target_vendor=$2
|
---|
2527 | shift; shift
|
---|
2528 | # Remember, the first character of IFS is used to create $*,
|
---|
2529 | # except with old shells:
|
---|
2530 | target_os=$*
|
---|
2531 | IFS=$ac_save_IFS
|
---|
2532 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
2533 |
|
---|
2534 |
|
---|
2535 | # The aliases save the names the user supplied, while $host etc.
|
---|
2536 | # will get canonicalized.
|
---|
2537 | test -n "$target_alias" &&
|
---|
2538 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2539 | NONENONEs,x,x, &&
|
---|
2540 | program_prefix=${target_alias}-
|
---|
2541 |
|
---|
2542 | test "$program_prefix" != NONE &&
|
---|
2543 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
2544 | # Use a double $ so make ignores it.
|
---|
2545 | test "$program_suffix" != NONE &&
|
---|
2546 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
2547 | # Double any \ or $.
|
---|
2548 | # By default was `s,x,x', remove it if useless.
|
---|
2549 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
2550 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
2551 |
|
---|
2552 |
|
---|
2553 | PACKAGE=mgpp
|
---|
2554 | VERSION=1.3
|
---|
2555 |
|
---|
2556 | cat >>confdefs.h <<_ACEOF
|
---|
2557 | #define PACKAGE "$PACKAGE"
|
---|
2558 | _ACEOF
|
---|
2559 |
|
---|
2560 | cat >>confdefs.h <<_ACEOF
|
---|
2561 | #define VERSION "$VERSION"
|
---|
2562 | _ACEOF
|
---|
2563 |
|
---|
2564 |
|
---|
2565 |
|
---|
2566 |
|
---|
2567 | # Check whether --enable-java was given.
|
---|
2568 | if test "${enable_java+set}" = set; then :
|
---|
2569 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
2570 | else
|
---|
2571 | ENABLE_JAVA=yes
|
---|
2572 | fi
|
---|
2573 |
|
---|
2574 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
2575 | ENABLE_JAVA=1
|
---|
2576 | if test "x$JAVA_HOME" != "x" ; then
|
---|
2577 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
2578 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
2579 | echo "and JAVA respectively"
|
---|
2580 | export JAVA_HOME=
|
---|
2581 | fi
|
---|
2582 | else
|
---|
2583 | ENABLE_JAVA=0
|
---|
2584 | fi
|
---|
2585 |
|
---|
2586 |
|
---|
2587 |
|
---|
2588 | # Check whether --enable-accentfold was given.
|
---|
2589 | if test "${enable_accentfold+set}" = set; then :
|
---|
2590 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
2591 | else
|
---|
2592 | ENABLE_ACCENTFOLD=yes
|
---|
2593 | fi
|
---|
2594 |
|
---|
2595 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
2596 | ENABLE_ACCENTFOLD=1
|
---|
2597 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
2598 |
|
---|
2599 | else
|
---|
2600 | ENABLE_ACCENTFOLD=0
|
---|
2601 | fi
|
---|
2602 |
|
---|
2603 |
|
---|
2604 |
|
---|
2605 | ac_ext=cpp
|
---|
2606 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2607 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2608 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2609 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2610 | if test -z "$CXX"; then
|
---|
2611 | if test -n "$CCC"; then
|
---|
2612 | CXX=$CCC
|
---|
2613 | else
|
---|
2614 | if test -n "$ac_tool_prefix"; then
|
---|
2615 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2616 | do
|
---|
2617 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2618 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2620 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2621 | if test "${ac_cv_prog_CXX+set}" = set; then :
|
---|
2622 | $as_echo_n "(cached) " >&6
|
---|
2623 | else
|
---|
2624 | if test -n "$CXX"; then
|
---|
2625 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2626 | else
|
---|
2627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2628 | for as_dir in $PATH
|
---|
2629 | do
|
---|
2630 | IFS=$as_save_IFS
|
---|
2631 | test -z "$as_dir" && as_dir=.
|
---|
2632 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2634 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2636 | break 2
|
---|
2637 | fi
|
---|
2638 | done
|
---|
2639 | done
|
---|
2640 | IFS=$as_save_IFS
|
---|
2641 |
|
---|
2642 | fi
|
---|
2643 | fi
|
---|
2644 | CXX=$ac_cv_prog_CXX
|
---|
2645 | if test -n "$CXX"; then
|
---|
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
2647 | $as_echo "$CXX" >&6; }
|
---|
2648 | else
|
---|
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2650 | $as_echo "no" >&6; }
|
---|
2651 | fi
|
---|
2652 |
|
---|
2653 |
|
---|
2654 | test -n "$CXX" && break
|
---|
2655 | done
|
---|
2656 | fi
|
---|
2657 | if test -z "$CXX"; then
|
---|
2658 | ac_ct_CXX=$CXX
|
---|
2659 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2660 | do
|
---|
2661 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2662 | set dummy $ac_prog; ac_word=$2
|
---|
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2664 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2665 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
|
---|
2666 | $as_echo_n "(cached) " >&6
|
---|
2667 | else
|
---|
2668 | if test -n "$ac_ct_CXX"; then
|
---|
2669 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2670 | else
|
---|
2671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2672 | for as_dir in $PATH
|
---|
2673 | do
|
---|
2674 | IFS=$as_save_IFS
|
---|
2675 | test -z "$as_dir" && as_dir=.
|
---|
2676 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2678 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2680 | break 2
|
---|
2681 | fi
|
---|
2682 | done
|
---|
2683 | done
|
---|
2684 | IFS=$as_save_IFS
|
---|
2685 |
|
---|
2686 | fi
|
---|
2687 | fi
|
---|
2688 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2689 | if test -n "$ac_ct_CXX"; then
|
---|
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
2691 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
2692 | else
|
---|
2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2694 | $as_echo "no" >&6; }
|
---|
2695 | fi
|
---|
2696 |
|
---|
2697 |
|
---|
2698 | test -n "$ac_ct_CXX" && break
|
---|
2699 | done
|
---|
2700 |
|
---|
2701 | if test "x$ac_ct_CXX" = x; then
|
---|
2702 | CXX="g++"
|
---|
2703 | else
|
---|
2704 | case $cross_compiling:$ac_tool_warned in
|
---|
2705 | yes:)
|
---|
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2707 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2708 | ac_tool_warned=yes ;;
|
---|
2709 | esac
|
---|
2710 | CXX=$ac_ct_CXX
|
---|
2711 | fi
|
---|
2712 | fi
|
---|
2713 |
|
---|
2714 | fi
|
---|
2715 | fi
|
---|
2716 | # Provide some information about the compiler.
|
---|
2717 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
2718 | set X $ac_compile
|
---|
2719 | ac_compiler=$2
|
---|
2720 | for ac_option in --version -v -V -qversion; do
|
---|
2721 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2722 | case "(($ac_try" in
|
---|
2723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2724 | *) ac_try_echo=$ac_try;;
|
---|
2725 | esac
|
---|
2726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2727 | $as_echo "$ac_try_echo"; } >&5
|
---|
2728 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2729 | ac_status=$?
|
---|
2730 | if test -s conftest.err; then
|
---|
2731 | sed '10a\
|
---|
2732 | ... rest of stderr output deleted ...
|
---|
2733 | 10q' conftest.err >conftest.er1
|
---|
2734 | cat conftest.er1 >&5
|
---|
2735 | fi
|
---|
2736 | rm -f conftest.er1 conftest.err
|
---|
2737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2738 | test $ac_status = 0; }
|
---|
2739 | done
|
---|
2740 |
|
---|
2741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2742 | /* end confdefs.h. */
|
---|
2743 |
|
---|
2744 | int
|
---|
2745 | main ()
|
---|
2746 | {
|
---|
2747 |
|
---|
2748 | ;
|
---|
2749 | return 0;
|
---|
2750 | }
|
---|
2751 | _ACEOF
|
---|
2752 | ac_clean_files_save=$ac_clean_files
|
---|
2753 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2754 | # Try to create an executable without -o first, disregard a.out.
|
---|
2755 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2756 | # of exeext.
|
---|
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
2758 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
2759 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2760 |
|
---|
2761 | # The possible output files:
|
---|
2762 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2763 |
|
---|
2764 | ac_rmfiles=
|
---|
2765 | for ac_file in $ac_files
|
---|
2766 | do
|
---|
2767 | case $ac_file in
|
---|
2768 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2769 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2770 | esac
|
---|
2771 | done
|
---|
2772 | rm -f $ac_rmfiles
|
---|
2773 |
|
---|
2774 | if { { ac_try="$ac_link_default"
|
---|
2775 | case "(($ac_try" in
|
---|
2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2777 | *) ac_try_echo=$ac_try;;
|
---|
2778 | esac
|
---|
2779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2780 | $as_echo "$ac_try_echo"; } >&5
|
---|
2781 | (eval "$ac_link_default") 2>&5
|
---|
2782 | ac_status=$?
|
---|
2783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2784 | test $ac_status = 0; }; then :
|
---|
2785 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2786 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2787 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2788 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2789 | # Autoconf.
|
---|
2790 | for ac_file in $ac_files ''
|
---|
2791 | do
|
---|
2792 | test -f "$ac_file" || continue
|
---|
2793 | case $ac_file in
|
---|
2794 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2795 | ;;
|
---|
2796 | [ab].out )
|
---|
2797 | # We found the default executable, but exeext='' is most
|
---|
2798 | # certainly right.
|
---|
2799 | break;;
|
---|
2800 | *.* )
|
---|
2801 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2802 | then :; else
|
---|
2803 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2804 | fi
|
---|
2805 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2806 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2807 | # argument, so we may need to know it at that point already.
|
---|
2808 | # Even if this section looks crufty: it has the advantage of
|
---|
2809 | # actually working.
|
---|
2810 | break;;
|
---|
2811 | * )
|
---|
2812 | break;;
|
---|
2813 | esac
|
---|
2814 | done
|
---|
2815 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2816 |
|
---|
2817 | else
|
---|
2818 | ac_file=''
|
---|
2819 | fi
|
---|
2820 | if test -z "$ac_file"; then :
|
---|
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2822 | $as_echo "no" >&6; }
|
---|
2823 | $as_echo "$as_me: failed program was:" >&5
|
---|
2824 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2825 |
|
---|
2826 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2827 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2828 | { as_fn_set_status 77
|
---|
2829 | as_fn_error "C++ compiler cannot create executables
|
---|
2830 | See \`config.log' for more details." "$LINENO" 5; }; }
|
---|
2831 | else
|
---|
2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2833 | $as_echo "yes" >&6; }
|
---|
2834 | fi
|
---|
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
2836 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2838 | $as_echo "$ac_file" >&6; }
|
---|
2839 | ac_exeext=$ac_cv_exeext
|
---|
2840 |
|
---|
2841 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2842 | ac_clean_files=$ac_clean_files_save
|
---|
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2844 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2845 | if { { ac_try="$ac_link"
|
---|
2846 | case "(($ac_try" in
|
---|
2847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2848 | *) ac_try_echo=$ac_try;;
|
---|
2849 | esac
|
---|
2850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2851 | $as_echo "$ac_try_echo"; } >&5
|
---|
2852 | (eval "$ac_link") 2>&5
|
---|
2853 | ac_status=$?
|
---|
2854 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2855 | test $ac_status = 0; }; then :
|
---|
2856 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2857 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2858 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2859 | # `rm'.
|
---|
2860 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2861 | test -f "$ac_file" || continue
|
---|
2862 | case $ac_file in
|
---|
2863 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2864 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2865 | break;;
|
---|
2866 | * ) break;;
|
---|
2867 | esac
|
---|
2868 | done
|
---|
2869 | else
|
---|
2870 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2871 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2872 | as_fn_error "cannot compute suffix of executables: cannot compile and link
|
---|
2873 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
2874 | fi
|
---|
2875 | rm -f conftest conftest$ac_cv_exeext
|
---|
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2877 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2878 |
|
---|
2879 | rm -f conftest.$ac_ext
|
---|
2880 | EXEEXT=$ac_cv_exeext
|
---|
2881 | ac_exeext=$EXEEXT
|
---|
2882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2883 | /* end confdefs.h. */
|
---|
2884 | #include <stdio.h>
|
---|
2885 | int
|
---|
2886 | main ()
|
---|
2887 | {
|
---|
2888 | FILE *f = fopen ("conftest.out", "w");
|
---|
2889 | return ferror (f) || fclose (f) != 0;
|
---|
2890 |
|
---|
2891 | ;
|
---|
2892 | return 0;
|
---|
2893 | }
|
---|
2894 | _ACEOF
|
---|
2895 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2896 | # Check that the compiler produces executables we can run. If not, either
|
---|
2897 | # the compiler is broken, or we cross compile.
|
---|
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2899 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2900 | if test "$cross_compiling" != yes; then
|
---|
2901 | { { ac_try="$ac_link"
|
---|
2902 | case "(($ac_try" in
|
---|
2903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2904 | *) ac_try_echo=$ac_try;;
|
---|
2905 | esac
|
---|
2906 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2907 | $as_echo "$ac_try_echo"; } >&5
|
---|
2908 | (eval "$ac_link") 2>&5
|
---|
2909 | ac_status=$?
|
---|
2910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2911 | test $ac_status = 0; }
|
---|
2912 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2913 | { { case "(($ac_try" in
|
---|
2914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2915 | *) ac_try_echo=$ac_try;;
|
---|
2916 | esac
|
---|
2917 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2918 | $as_echo "$ac_try_echo"; } >&5
|
---|
2919 | (eval "$ac_try") 2>&5
|
---|
2920 | ac_status=$?
|
---|
2921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2922 | test $ac_status = 0; }; }; then
|
---|
2923 | cross_compiling=no
|
---|
2924 | else
|
---|
2925 | if test "$cross_compiling" = maybe; then
|
---|
2926 | cross_compiling=yes
|
---|
2927 | else
|
---|
2928 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2929 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2930 | as_fn_error "cannot run C++ compiled programs.
|
---|
2931 | If you meant to cross compile, use \`--host'.
|
---|
2932 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
2933 | fi
|
---|
2934 | fi
|
---|
2935 | fi
|
---|
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
2937 | $as_echo "$cross_compiling" >&6; }
|
---|
2938 |
|
---|
2939 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
2940 | ac_clean_files=$ac_clean_files_save
|
---|
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
2942 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
2943 | if test "${ac_cv_objext+set}" = set; then :
|
---|
2944 | $as_echo_n "(cached) " >&6
|
---|
2945 | else
|
---|
2946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2947 | /* end confdefs.h. */
|
---|
2948 |
|
---|
2949 | int
|
---|
2950 | main ()
|
---|
2951 | {
|
---|
2952 |
|
---|
2953 | ;
|
---|
2954 | return 0;
|
---|
2955 | }
|
---|
2956 | _ACEOF
|
---|
2957 | rm -f conftest.o conftest.obj
|
---|
2958 | if { { ac_try="$ac_compile"
|
---|
2959 | case "(($ac_try" in
|
---|
2960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2961 | *) ac_try_echo=$ac_try;;
|
---|
2962 | esac
|
---|
2963 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2964 | $as_echo "$ac_try_echo"; } >&5
|
---|
2965 | (eval "$ac_compile") 2>&5
|
---|
2966 | ac_status=$?
|
---|
2967 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2968 | test $ac_status = 0; }; then :
|
---|
2969 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2970 | test -f "$ac_file" || continue;
|
---|
2971 | case $ac_file in
|
---|
2972 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
2973 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2974 | break;;
|
---|
2975 | esac
|
---|
2976 | done
|
---|
2977 | else
|
---|
2978 | $as_echo "$as_me: failed program was:" >&5
|
---|
2979 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2980 |
|
---|
2981 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2982 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2983 | as_fn_error "cannot compute suffix of object files: cannot compile
|
---|
2984 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
2985 | fi
|
---|
2986 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2987 | fi
|
---|
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
2989 | $as_echo "$ac_cv_objext" >&6; }
|
---|
2990 | OBJEXT=$ac_cv_objext
|
---|
2991 | ac_objext=$OBJEXT
|
---|
2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
2993 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
2994 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
|
---|
2995 | $as_echo_n "(cached) " >&6
|
---|
2996 | else
|
---|
2997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2998 | /* end confdefs.h. */
|
---|
2999 |
|
---|
3000 | int
|
---|
3001 | main ()
|
---|
3002 | {
|
---|
3003 | #ifndef __GNUC__
|
---|
3004 | choke me
|
---|
3005 | #endif
|
---|
3006 |
|
---|
3007 | ;
|
---|
3008 | return 0;
|
---|
3009 | }
|
---|
3010 | _ACEOF
|
---|
3011 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3012 | ac_compiler_gnu=yes
|
---|
3013 | else
|
---|
3014 | ac_compiler_gnu=no
|
---|
3015 | fi
|
---|
3016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3017 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3018 |
|
---|
3019 | fi
|
---|
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3021 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3022 | if test $ac_compiler_gnu = yes; then
|
---|
3023 | GXX=yes
|
---|
3024 | else
|
---|
3025 | GXX=
|
---|
3026 | fi
|
---|
3027 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3028 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3030 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3031 | if test "${ac_cv_prog_cxx_g+set}" = set; then :
|
---|
3032 | $as_echo_n "(cached) " >&6
|
---|
3033 | else
|
---|
3034 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3035 | ac_cxx_werror_flag=yes
|
---|
3036 | ac_cv_prog_cxx_g=no
|
---|
3037 | CXXFLAGS="-g"
|
---|
3038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3039 | /* end confdefs.h. */
|
---|
3040 |
|
---|
3041 | int
|
---|
3042 | main ()
|
---|
3043 | {
|
---|
3044 |
|
---|
3045 | ;
|
---|
3046 | return 0;
|
---|
3047 | }
|
---|
3048 | _ACEOF
|
---|
3049 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3050 | ac_cv_prog_cxx_g=yes
|
---|
3051 | else
|
---|
3052 | CXXFLAGS=""
|
---|
3053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3054 | /* end confdefs.h. */
|
---|
3055 |
|
---|
3056 | int
|
---|
3057 | main ()
|
---|
3058 | {
|
---|
3059 |
|
---|
3060 | ;
|
---|
3061 | return 0;
|
---|
3062 | }
|
---|
3063 | _ACEOF
|
---|
3064 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3065 |
|
---|
3066 | else
|
---|
3067 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3068 | CXXFLAGS="-g"
|
---|
3069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3070 | /* end confdefs.h. */
|
---|
3071 |
|
---|
3072 | int
|
---|
3073 | main ()
|
---|
3074 | {
|
---|
3075 |
|
---|
3076 | ;
|
---|
3077 | return 0;
|
---|
3078 | }
|
---|
3079 | _ACEOF
|
---|
3080 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3081 | ac_cv_prog_cxx_g=yes
|
---|
3082 | fi
|
---|
3083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3084 | fi
|
---|
3085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3086 | fi
|
---|
3087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3088 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3089 | fi
|
---|
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3091 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3092 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3093 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3094 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3095 | if test "$GXX" = yes; then
|
---|
3096 | CXXFLAGS="-g -O2"
|
---|
3097 | else
|
---|
3098 | CXXFLAGS="-g"
|
---|
3099 | fi
|
---|
3100 | else
|
---|
3101 | if test "$GXX" = yes; then
|
---|
3102 | CXXFLAGS="-O2"
|
---|
3103 | else
|
---|
3104 | CXXFLAGS=
|
---|
3105 | fi
|
---|
3106 | fi
|
---|
3107 | ac_ext=c
|
---|
3108 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3109 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3110 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3111 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3112 |
|
---|
3113 | for ac_prog in gawk mawk nawk awk
|
---|
3114 | do
|
---|
3115 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3116 | set dummy $ac_prog; ac_word=$2
|
---|
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3118 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3119 | if test "${ac_cv_prog_AWK+set}" = set; then :
|
---|
3120 | $as_echo_n "(cached) " >&6
|
---|
3121 | else
|
---|
3122 | if test -n "$AWK"; then
|
---|
3123 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
3124 | else
|
---|
3125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3126 | for as_dir in $PATH
|
---|
3127 | do
|
---|
3128 | IFS=$as_save_IFS
|
---|
3129 | test -z "$as_dir" && as_dir=.
|
---|
3130 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3132 | ac_cv_prog_AWK="$ac_prog"
|
---|
3133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3134 | break 2
|
---|
3135 | fi
|
---|
3136 | done
|
---|
3137 | done
|
---|
3138 | IFS=$as_save_IFS
|
---|
3139 |
|
---|
3140 | fi
|
---|
3141 | fi
|
---|
3142 | AWK=$ac_cv_prog_AWK
|
---|
3143 | if test -n "$AWK"; then
|
---|
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
3145 | $as_echo "$AWK" >&6; }
|
---|
3146 | else
|
---|
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3148 | $as_echo "no" >&6; }
|
---|
3149 | fi
|
---|
3150 |
|
---|
3151 |
|
---|
3152 | test -n "$AWK" && break
|
---|
3153 | done
|
---|
3154 |
|
---|
3155 | for ac_prog in 'bison -y' byacc
|
---|
3156 | do
|
---|
3157 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3158 | set dummy $ac_prog; ac_word=$2
|
---|
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3160 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3161 | if test "${ac_cv_prog_YACC+set}" = set; then :
|
---|
3162 | $as_echo_n "(cached) " >&6
|
---|
3163 | else
|
---|
3164 | if test -n "$YACC"; then
|
---|
3165 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
3166 | else
|
---|
3167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3168 | for as_dir in $PATH
|
---|
3169 | do
|
---|
3170 | IFS=$as_save_IFS
|
---|
3171 | test -z "$as_dir" && as_dir=.
|
---|
3172 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3174 | ac_cv_prog_YACC="$ac_prog"
|
---|
3175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3176 | break 2
|
---|
3177 | fi
|
---|
3178 | done
|
---|
3179 | done
|
---|
3180 | IFS=$as_save_IFS
|
---|
3181 |
|
---|
3182 | fi
|
---|
3183 | fi
|
---|
3184 | YACC=$ac_cv_prog_YACC
|
---|
3185 | if test -n "$YACC"; then
|
---|
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
3187 | $as_echo "$YACC" >&6; }
|
---|
3188 | else
|
---|
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3190 | $as_echo "no" >&6; }
|
---|
3191 | fi
|
---|
3192 |
|
---|
3193 |
|
---|
3194 | test -n "$YACC" && break
|
---|
3195 | done
|
---|
3196 | test -n "$YACC" || YACC="yacc"
|
---|
3197 |
|
---|
3198 | ac_ext=c
|
---|
3199 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3203 | if test -n "$ac_tool_prefix"; then
|
---|
3204 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3205 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3207 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3208 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
3209 | $as_echo_n "(cached) " >&6
|
---|
3210 | else
|
---|
3211 | if test -n "$CC"; then
|
---|
3212 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3213 | else
|
---|
3214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3215 | for as_dir in $PATH
|
---|
3216 | do
|
---|
3217 | IFS=$as_save_IFS
|
---|
3218 | test -z "$as_dir" && as_dir=.
|
---|
3219 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3221 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3223 | break 2
|
---|
3224 | fi
|
---|
3225 | done
|
---|
3226 | done
|
---|
3227 | IFS=$as_save_IFS
|
---|
3228 |
|
---|
3229 | fi
|
---|
3230 | fi
|
---|
3231 | CC=$ac_cv_prog_CC
|
---|
3232 | if test -n "$CC"; then
|
---|
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3234 | $as_echo "$CC" >&6; }
|
---|
3235 | else
|
---|
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3237 | $as_echo "no" >&6; }
|
---|
3238 | fi
|
---|
3239 |
|
---|
3240 |
|
---|
3241 | fi
|
---|
3242 | if test -z "$ac_cv_prog_CC"; then
|
---|
3243 | ac_ct_CC=$CC
|
---|
3244 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3245 | set dummy gcc; ac_word=$2
|
---|
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3247 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3248 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
3249 | $as_echo_n "(cached) " >&6
|
---|
3250 | else
|
---|
3251 | if test -n "$ac_ct_CC"; then
|
---|
3252 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3253 | else
|
---|
3254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3255 | for as_dir in $PATH
|
---|
3256 | do
|
---|
3257 | IFS=$as_save_IFS
|
---|
3258 | test -z "$as_dir" && as_dir=.
|
---|
3259 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3261 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3263 | break 2
|
---|
3264 | fi
|
---|
3265 | done
|
---|
3266 | done
|
---|
3267 | IFS=$as_save_IFS
|
---|
3268 |
|
---|
3269 | fi
|
---|
3270 | fi
|
---|
3271 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3272 | if test -n "$ac_ct_CC"; then
|
---|
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3274 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3275 | else
|
---|
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3277 | $as_echo "no" >&6; }
|
---|
3278 | fi
|
---|
3279 |
|
---|
3280 | if test "x$ac_ct_CC" = x; then
|
---|
3281 | CC=""
|
---|
3282 | else
|
---|
3283 | case $cross_compiling:$ac_tool_warned in
|
---|
3284 | yes:)
|
---|
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3286 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3287 | ac_tool_warned=yes ;;
|
---|
3288 | esac
|
---|
3289 | CC=$ac_ct_CC
|
---|
3290 | fi
|
---|
3291 | else
|
---|
3292 | CC="$ac_cv_prog_CC"
|
---|
3293 | fi
|
---|
3294 |
|
---|
3295 | if test -z "$CC"; then
|
---|
3296 | if test -n "$ac_tool_prefix"; then
|
---|
3297 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3298 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3300 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3301 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
3302 | $as_echo_n "(cached) " >&6
|
---|
3303 | else
|
---|
3304 | if test -n "$CC"; then
|
---|
3305 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3306 | else
|
---|
3307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3308 | for as_dir in $PATH
|
---|
3309 | do
|
---|
3310 | IFS=$as_save_IFS
|
---|
3311 | test -z "$as_dir" && as_dir=.
|
---|
3312 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3313 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3314 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3316 | break 2
|
---|
3317 | fi
|
---|
3318 | done
|
---|
3319 | done
|
---|
3320 | IFS=$as_save_IFS
|
---|
3321 |
|
---|
3322 | fi
|
---|
3323 | fi
|
---|
3324 | CC=$ac_cv_prog_CC
|
---|
3325 | if test -n "$CC"; then
|
---|
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3327 | $as_echo "$CC" >&6; }
|
---|
3328 | else
|
---|
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3330 | $as_echo "no" >&6; }
|
---|
3331 | fi
|
---|
3332 |
|
---|
3333 |
|
---|
3334 | fi
|
---|
3335 | fi
|
---|
3336 | if test -z "$CC"; then
|
---|
3337 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3338 | set dummy cc; ac_word=$2
|
---|
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3340 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3341 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
3342 | $as_echo_n "(cached) " >&6
|
---|
3343 | else
|
---|
3344 | if test -n "$CC"; then
|
---|
3345 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3346 | else
|
---|
3347 | ac_prog_rejected=no
|
---|
3348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3349 | for as_dir in $PATH
|
---|
3350 | do
|
---|
3351 | IFS=$as_save_IFS
|
---|
3352 | test -z "$as_dir" && as_dir=.
|
---|
3353 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3355 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3356 | ac_prog_rejected=yes
|
---|
3357 | continue
|
---|
3358 | fi
|
---|
3359 | ac_cv_prog_CC="cc"
|
---|
3360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3361 | break 2
|
---|
3362 | fi
|
---|
3363 | done
|
---|
3364 | done
|
---|
3365 | IFS=$as_save_IFS
|
---|
3366 |
|
---|
3367 | if test $ac_prog_rejected = yes; then
|
---|
3368 | # We found a bogon in the path, so make sure we never use it.
|
---|
3369 | set dummy $ac_cv_prog_CC
|
---|
3370 | shift
|
---|
3371 | if test $# != 0; then
|
---|
3372 | # We chose a different compiler from the bogus one.
|
---|
3373 | # However, it has the same basename, so the bogon will be chosen
|
---|
3374 | # first if we set CC to just the basename; use the full file name.
|
---|
3375 | shift
|
---|
3376 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
3377 | fi
|
---|
3378 | fi
|
---|
3379 | fi
|
---|
3380 | fi
|
---|
3381 | CC=$ac_cv_prog_CC
|
---|
3382 | if test -n "$CC"; then
|
---|
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3384 | $as_echo "$CC" >&6; }
|
---|
3385 | else
|
---|
3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3387 | $as_echo "no" >&6; }
|
---|
3388 | fi
|
---|
3389 |
|
---|
3390 |
|
---|
3391 | fi
|
---|
3392 | if test -z "$CC"; then
|
---|
3393 | if test -n "$ac_tool_prefix"; then
|
---|
3394 | for ac_prog in cl.exe
|
---|
3395 | do
|
---|
3396 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3397 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3399 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3400 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
3401 | $as_echo_n "(cached) " >&6
|
---|
3402 | else
|
---|
3403 | if test -n "$CC"; then
|
---|
3404 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3405 | else
|
---|
3406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3407 | for as_dir in $PATH
|
---|
3408 | do
|
---|
3409 | IFS=$as_save_IFS
|
---|
3410 | test -z "$as_dir" && as_dir=.
|
---|
3411 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3412 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3413 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3415 | break 2
|
---|
3416 | fi
|
---|
3417 | done
|
---|
3418 | done
|
---|
3419 | IFS=$as_save_IFS
|
---|
3420 |
|
---|
3421 | fi
|
---|
3422 | fi
|
---|
3423 | CC=$ac_cv_prog_CC
|
---|
3424 | if test -n "$CC"; then
|
---|
3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3426 | $as_echo "$CC" >&6; }
|
---|
3427 | else
|
---|
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3429 | $as_echo "no" >&6; }
|
---|
3430 | fi
|
---|
3431 |
|
---|
3432 |
|
---|
3433 | test -n "$CC" && break
|
---|
3434 | done
|
---|
3435 | fi
|
---|
3436 | if test -z "$CC"; then
|
---|
3437 | ac_ct_CC=$CC
|
---|
3438 | for ac_prog in cl.exe
|
---|
3439 | do
|
---|
3440 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3441 | set dummy $ac_prog; ac_word=$2
|
---|
3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3443 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3444 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
3445 | $as_echo_n "(cached) " >&6
|
---|
3446 | else
|
---|
3447 | if test -n "$ac_ct_CC"; then
|
---|
3448 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3449 | else
|
---|
3450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3451 | for as_dir in $PATH
|
---|
3452 | do
|
---|
3453 | IFS=$as_save_IFS
|
---|
3454 | test -z "$as_dir" && as_dir=.
|
---|
3455 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3457 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3459 | break 2
|
---|
3460 | fi
|
---|
3461 | done
|
---|
3462 | done
|
---|
3463 | IFS=$as_save_IFS
|
---|
3464 |
|
---|
3465 | fi
|
---|
3466 | fi
|
---|
3467 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3468 | if test -n "$ac_ct_CC"; then
|
---|
3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3470 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3471 | else
|
---|
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3473 | $as_echo "no" >&6; }
|
---|
3474 | fi
|
---|
3475 |
|
---|
3476 |
|
---|
3477 | test -n "$ac_ct_CC" && break
|
---|
3478 | done
|
---|
3479 |
|
---|
3480 | if test "x$ac_ct_CC" = x; then
|
---|
3481 | CC=""
|
---|
3482 | else
|
---|
3483 | case $cross_compiling:$ac_tool_warned in
|
---|
3484 | yes:)
|
---|
3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3486 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3487 | ac_tool_warned=yes ;;
|
---|
3488 | esac
|
---|
3489 | CC=$ac_ct_CC
|
---|
3490 | fi
|
---|
3491 | fi
|
---|
3492 |
|
---|
3493 | fi
|
---|
3494 |
|
---|
3495 |
|
---|
3496 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3498 | as_fn_error "no acceptable C compiler found in \$PATH
|
---|
3499 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
3500 |
|
---|
3501 | # Provide some information about the compiler.
|
---|
3502 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
3503 | set X $ac_compile
|
---|
3504 | ac_compiler=$2
|
---|
3505 | for ac_option in --version -v -V -qversion; do
|
---|
3506 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3507 | case "(($ac_try" in
|
---|
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3509 | *) ac_try_echo=$ac_try;;
|
---|
3510 | esac
|
---|
3511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3512 | $as_echo "$ac_try_echo"; } >&5
|
---|
3513 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3514 | ac_status=$?
|
---|
3515 | if test -s conftest.err; then
|
---|
3516 | sed '10a\
|
---|
3517 | ... rest of stderr output deleted ...
|
---|
3518 | 10q' conftest.err >conftest.er1
|
---|
3519 | cat conftest.er1 >&5
|
---|
3520 | fi
|
---|
3521 | rm -f conftest.er1 conftest.err
|
---|
3522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3523 | test $ac_status = 0; }
|
---|
3524 | done
|
---|
3525 |
|
---|
3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3527 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3528 | if test "${ac_cv_c_compiler_gnu+set}" = set; then :
|
---|
3529 | $as_echo_n "(cached) " >&6
|
---|
3530 | else
|
---|
3531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3532 | /* end confdefs.h. */
|
---|
3533 |
|
---|
3534 | int
|
---|
3535 | main ()
|
---|
3536 | {
|
---|
3537 | #ifndef __GNUC__
|
---|
3538 | choke me
|
---|
3539 | #endif
|
---|
3540 |
|
---|
3541 | ;
|
---|
3542 | return 0;
|
---|
3543 | }
|
---|
3544 | _ACEOF
|
---|
3545 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3546 | ac_compiler_gnu=yes
|
---|
3547 | else
|
---|
3548 | ac_compiler_gnu=no
|
---|
3549 | fi
|
---|
3550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3551 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3552 |
|
---|
3553 | fi
|
---|
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3555 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3556 | if test $ac_compiler_gnu = yes; then
|
---|
3557 | GCC=yes
|
---|
3558 | else
|
---|
3559 | GCC=
|
---|
3560 | fi
|
---|
3561 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3562 | ac_save_CFLAGS=$CFLAGS
|
---|
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3564 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3565 | if test "${ac_cv_prog_cc_g+set}" = set; then :
|
---|
3566 | $as_echo_n "(cached) " >&6
|
---|
3567 | else
|
---|
3568 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3569 | ac_c_werror_flag=yes
|
---|
3570 | ac_cv_prog_cc_g=no
|
---|
3571 | CFLAGS="-g"
|
---|
3572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3573 | /* end confdefs.h. */
|
---|
3574 |
|
---|
3575 | int
|
---|
3576 | main ()
|
---|
3577 | {
|
---|
3578 |
|
---|
3579 | ;
|
---|
3580 | return 0;
|
---|
3581 | }
|
---|
3582 | _ACEOF
|
---|
3583 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3584 | ac_cv_prog_cc_g=yes
|
---|
3585 | else
|
---|
3586 | CFLAGS=""
|
---|
3587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3588 | /* end confdefs.h. */
|
---|
3589 |
|
---|
3590 | int
|
---|
3591 | main ()
|
---|
3592 | {
|
---|
3593 |
|
---|
3594 | ;
|
---|
3595 | return 0;
|
---|
3596 | }
|
---|
3597 | _ACEOF
|
---|
3598 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3599 |
|
---|
3600 | else
|
---|
3601 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3602 | CFLAGS="-g"
|
---|
3603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3604 | /* end confdefs.h. */
|
---|
3605 |
|
---|
3606 | int
|
---|
3607 | main ()
|
---|
3608 | {
|
---|
3609 |
|
---|
3610 | ;
|
---|
3611 | return 0;
|
---|
3612 | }
|
---|
3613 | _ACEOF
|
---|
3614 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3615 | ac_cv_prog_cc_g=yes
|
---|
3616 | fi
|
---|
3617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3618 | fi
|
---|
3619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3620 | fi
|
---|
3621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3622 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3623 | fi
|
---|
3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3625 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3626 | if test "$ac_test_CFLAGS" = set; then
|
---|
3627 | CFLAGS=$ac_save_CFLAGS
|
---|
3628 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3629 | if test "$GCC" = yes; then
|
---|
3630 | CFLAGS="-g -O2"
|
---|
3631 | else
|
---|
3632 | CFLAGS="-g"
|
---|
3633 | fi
|
---|
3634 | else
|
---|
3635 | if test "$GCC" = yes; then
|
---|
3636 | CFLAGS="-O2"
|
---|
3637 | else
|
---|
3638 | CFLAGS=
|
---|
3639 | fi
|
---|
3640 | fi
|
---|
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3642 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3643 | if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
---|
3644 | $as_echo_n "(cached) " >&6
|
---|
3645 | else
|
---|
3646 | ac_cv_prog_cc_c89=no
|
---|
3647 | ac_save_CC=$CC
|
---|
3648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3649 | /* end confdefs.h. */
|
---|
3650 | #include <stdarg.h>
|
---|
3651 | #include <stdio.h>
|
---|
3652 | #include <sys/types.h>
|
---|
3653 | #include <sys/stat.h>
|
---|
3654 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3655 | struct buf { int x; };
|
---|
3656 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3657 | static char *e (p, i)
|
---|
3658 | char **p;
|
---|
3659 | int i;
|
---|
3660 | {
|
---|
3661 | return p[i];
|
---|
3662 | }
|
---|
3663 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3664 | {
|
---|
3665 | char *s;
|
---|
3666 | va_list v;
|
---|
3667 | va_start (v,p);
|
---|
3668 | s = g (p, va_arg (v,int));
|
---|
3669 | va_end (v);
|
---|
3670 | return s;
|
---|
3671 | }
|
---|
3672 |
|
---|
3673 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3674 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3675 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3676 | as 'x'. The following induces an error, until -std is added to get
|
---|
3677 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3678 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3679 | that's true only with -std. */
|
---|
3680 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3681 |
|
---|
3682 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3683 | inside strings and character constants. */
|
---|
3684 | #define FOO(x) 'x'
|
---|
3685 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3686 |
|
---|
3687 | int test (int i, double x);
|
---|
3688 | struct s1 {int (*f) (int a);};
|
---|
3689 | struct s2 {int (*f) (double a);};
|
---|
3690 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3691 | int argc;
|
---|
3692 | char **argv;
|
---|
3693 | int
|
---|
3694 | main ()
|
---|
3695 | {
|
---|
3696 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3697 | ;
|
---|
3698 | return 0;
|
---|
3699 | }
|
---|
3700 | _ACEOF
|
---|
3701 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3702 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3703 | do
|
---|
3704 | CC="$ac_save_CC $ac_arg"
|
---|
3705 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3706 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3707 | fi
|
---|
3708 | rm -f core conftest.err conftest.$ac_objext
|
---|
3709 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3710 | done
|
---|
3711 | rm -f conftest.$ac_ext
|
---|
3712 | CC=$ac_save_CC
|
---|
3713 |
|
---|
3714 | fi
|
---|
3715 | # AC_CACHE_VAL
|
---|
3716 | case "x$ac_cv_prog_cc_c89" in
|
---|
3717 | x)
|
---|
3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3719 | $as_echo "none needed" >&6; } ;;
|
---|
3720 | xno)
|
---|
3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3722 | $as_echo "unsupported" >&6; } ;;
|
---|
3723 | *)
|
---|
3724 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3726 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3727 | esac
|
---|
3728 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3729 |
|
---|
3730 | fi
|
---|
3731 |
|
---|
3732 | ac_ext=c
|
---|
3733 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3737 |
|
---|
3738 | # Find a good install program. We prefer a C program (faster),
|
---|
3739 | # so one script is as good as another. But avoid the broken or
|
---|
3740 | # incompatible versions:
|
---|
3741 | # SysV /etc/install, /usr/sbin/install
|
---|
3742 | # SunOS /usr/etc/install
|
---|
3743 | # IRIX /sbin/install
|
---|
3744 | # AIX /bin/install
|
---|
3745 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3746 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3747 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3748 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3749 | # OS/2's system install, which has a completely different semantic
|
---|
3750 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3751 | # Reject install programs that cannot install multiple files.
|
---|
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3753 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3754 | if test -z "$INSTALL"; then
|
---|
3755 | if test "${ac_cv_path_install+set}" = set; then :
|
---|
3756 | $as_echo_n "(cached) " >&6
|
---|
3757 | else
|
---|
3758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3759 | for as_dir in $PATH
|
---|
3760 | do
|
---|
3761 | IFS=$as_save_IFS
|
---|
3762 | test -z "$as_dir" && as_dir=.
|
---|
3763 | # Account for people who put trailing slashes in PATH elements.
|
---|
3764 | case $as_dir/ in #((
|
---|
3765 | ./ | .// | /[cC]/* | \
|
---|
3766 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3767 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3768 | /usr/ucb/* ) ;;
|
---|
3769 | *)
|
---|
3770 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3771 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3772 | # by default.
|
---|
3773 | for ac_prog in ginstall scoinst install; do
|
---|
3774 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3775 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
3776 | if test $ac_prog = install &&
|
---|
3777 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3778 | # AIX install. It has an incompatible calling convention.
|
---|
3779 | :
|
---|
3780 | elif test $ac_prog = install &&
|
---|
3781 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3782 | # program-specific install script used by HP pwplus--don't use.
|
---|
3783 | :
|
---|
3784 | else
|
---|
3785 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3786 | echo one > conftest.one
|
---|
3787 | echo two > conftest.two
|
---|
3788 | mkdir conftest.dir
|
---|
3789 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3790 | test -s conftest.one && test -s conftest.two &&
|
---|
3791 | test -s conftest.dir/conftest.one &&
|
---|
3792 | test -s conftest.dir/conftest.two
|
---|
3793 | then
|
---|
3794 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3795 | break 3
|
---|
3796 | fi
|
---|
3797 | fi
|
---|
3798 | fi
|
---|
3799 | done
|
---|
3800 | done
|
---|
3801 | ;;
|
---|
3802 | esac
|
---|
3803 |
|
---|
3804 | done
|
---|
3805 | IFS=$as_save_IFS
|
---|
3806 |
|
---|
3807 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3808 |
|
---|
3809 | fi
|
---|
3810 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3811 | INSTALL=$ac_cv_path_install
|
---|
3812 | else
|
---|
3813 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3814 | # value for INSTALL within a source directory, because that will
|
---|
3815 | # break other packages using the cache if that directory is
|
---|
3816 | # removed, or if the value is a relative name.
|
---|
3817 | INSTALL=$ac_install_sh
|
---|
3818 | fi
|
---|
3819 | fi
|
---|
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3821 | $as_echo "$INSTALL" >&6; }
|
---|
3822 |
|
---|
3823 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3824 | # It thinks the first close brace ends the variable substitution.
|
---|
3825 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3826 |
|
---|
3827 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3828 |
|
---|
3829 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3830 |
|
---|
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
3832 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
3833 | LN_S=$as_ln_s
|
---|
3834 | if test "$LN_S" = "ln -s"; then
|
---|
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3836 | $as_echo "yes" >&6; }
|
---|
3837 | else
|
---|
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
3839 | $as_echo "no, using $LN_S" >&6; }
|
---|
3840 | fi
|
---|
3841 |
|
---|
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3843 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
3844 | set x ${MAKE-make}
|
---|
3845 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3846 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
3847 | $as_echo_n "(cached) " >&6
|
---|
3848 | else
|
---|
3849 | cat >conftest.make <<\_ACEOF
|
---|
3850 | SHELL = /bin/sh
|
---|
3851 | all:
|
---|
3852 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3853 | _ACEOF
|
---|
3854 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3855 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3856 | *@@@%%%=?*=@@@%%%*)
|
---|
3857 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3858 | *)
|
---|
3859 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3860 | esac
|
---|
3861 | rm -f conftest.make
|
---|
3862 | fi
|
---|
3863 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3865 | $as_echo "yes" >&6; }
|
---|
3866 | SET_MAKE=
|
---|
3867 | else
|
---|
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3869 | $as_echo "no" >&6; }
|
---|
3870 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3871 | fi
|
---|
3872 |
|
---|
3873 | if test -n "$ac_tool_prefix"; then
|
---|
3874 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3875 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3877 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3878 | if test "${ac_cv_prog_RANLIB+set}" = set; then :
|
---|
3879 | $as_echo_n "(cached) " >&6
|
---|
3880 | else
|
---|
3881 | if test -n "$RANLIB"; then
|
---|
3882 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3883 | else
|
---|
3884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3885 | for as_dir in $PATH
|
---|
3886 | do
|
---|
3887 | IFS=$as_save_IFS
|
---|
3888 | test -z "$as_dir" && as_dir=.
|
---|
3889 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3891 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3893 | break 2
|
---|
3894 | fi
|
---|
3895 | done
|
---|
3896 | done
|
---|
3897 | IFS=$as_save_IFS
|
---|
3898 |
|
---|
3899 | fi
|
---|
3900 | fi
|
---|
3901 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3902 | if test -n "$RANLIB"; then
|
---|
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
3904 | $as_echo "$RANLIB" >&6; }
|
---|
3905 | else
|
---|
3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3907 | $as_echo "no" >&6; }
|
---|
3908 | fi
|
---|
3909 |
|
---|
3910 |
|
---|
3911 | fi
|
---|
3912 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3913 | ac_ct_RANLIB=$RANLIB
|
---|
3914 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3915 | set dummy ranlib; ac_word=$2
|
---|
3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3917 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3918 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
|
---|
3919 | $as_echo_n "(cached) " >&6
|
---|
3920 | else
|
---|
3921 | if test -n "$ac_ct_RANLIB"; then
|
---|
3922 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
3923 | else
|
---|
3924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3925 | for as_dir in $PATH
|
---|
3926 | do
|
---|
3927 | IFS=$as_save_IFS
|
---|
3928 | test -z "$as_dir" && as_dir=.
|
---|
3929 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3931 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
3932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3933 | break 2
|
---|
3934 | fi
|
---|
3935 | done
|
---|
3936 | done
|
---|
3937 | IFS=$as_save_IFS
|
---|
3938 |
|
---|
3939 | fi
|
---|
3940 | fi
|
---|
3941 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
3942 | if test -n "$ac_ct_RANLIB"; then
|
---|
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
3944 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
3945 | else
|
---|
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3947 | $as_echo "no" >&6; }
|
---|
3948 | fi
|
---|
3949 |
|
---|
3950 | if test "x$ac_ct_RANLIB" = x; then
|
---|
3951 | RANLIB=":"
|
---|
3952 | else
|
---|
3953 | case $cross_compiling:$ac_tool_warned in
|
---|
3954 | yes:)
|
---|
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3956 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3957 | ac_tool_warned=yes ;;
|
---|
3958 | esac
|
---|
3959 | RANLIB=$ac_ct_RANLIB
|
---|
3960 | fi
|
---|
3961 | else
|
---|
3962 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
3963 | fi
|
---|
3964 |
|
---|
3965 | if test $ENABLE_JAVA = "1" ; then
|
---|
3966 |
|
---|
3967 |
|
---|
3968 | if test "x$JAVA" = x ; then
|
---|
3969 | if test x$JAVAPREFIX = x; then
|
---|
3970 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
3971 | do
|
---|
3972 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3973 | set dummy $ac_prog; ac_word=$2
|
---|
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3975 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3976 | if test "${ac_cv_prog_JAVA+set}" = set; then :
|
---|
3977 | $as_echo_n "(cached) " >&6
|
---|
3978 | else
|
---|
3979 | if test -n "$JAVA"; then
|
---|
3980 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
3981 | else
|
---|
3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3983 | for as_dir in $PATH
|
---|
3984 | do
|
---|
3985 | IFS=$as_save_IFS
|
---|
3986 | test -z "$as_dir" && as_dir=.
|
---|
3987 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
3989 | ac_cv_prog_JAVA="$ac_prog"
|
---|
3990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3991 | break 2
|
---|
3992 | fi
|
---|
3993 | done
|
---|
3994 | done
|
---|
3995 | IFS=$as_save_IFS
|
---|
3996 |
|
---|
3997 | fi
|
---|
3998 | fi
|
---|
3999 | JAVA=$ac_cv_prog_JAVA
|
---|
4000 | if test -n "$JAVA"; then
|
---|
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
4002 | $as_echo "$JAVA" >&6; }
|
---|
4003 | else
|
---|
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4005 | $as_echo "no" >&6; }
|
---|
4006 | fi
|
---|
4007 |
|
---|
4008 |
|
---|
4009 | test -n "$JAVA" && break
|
---|
4010 | done
|
---|
4011 |
|
---|
4012 | else
|
---|
4013 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
4014 | do
|
---|
4015 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4016 | set dummy $ac_prog; ac_word=$2
|
---|
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4018 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4019 | if test "${ac_cv_prog_JAVA+set}" = set; then :
|
---|
4020 | $as_echo_n "(cached) " >&6
|
---|
4021 | else
|
---|
4022 | if test -n "$JAVA"; then
|
---|
4023 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
4024 | else
|
---|
4025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4026 | for as_dir in $PATH
|
---|
4027 | do
|
---|
4028 | IFS=$as_save_IFS
|
---|
4029 | test -z "$as_dir" && as_dir=.
|
---|
4030 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4032 | ac_cv_prog_JAVA="$ac_prog"
|
---|
4033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4034 | break 2
|
---|
4035 | fi
|
---|
4036 | done
|
---|
4037 | done
|
---|
4038 | IFS=$as_save_IFS
|
---|
4039 |
|
---|
4040 | fi
|
---|
4041 | fi
|
---|
4042 | JAVA=$ac_cv_prog_JAVA
|
---|
4043 | if test -n "$JAVA"; then
|
---|
4044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
4045 | $as_echo "$JAVA" >&6; }
|
---|
4046 | else
|
---|
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4048 | $as_echo "no" >&6; }
|
---|
4049 | fi
|
---|
4050 |
|
---|
4051 |
|
---|
4052 | test -n "$JAVA" && break
|
---|
4053 | done
|
---|
4054 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
4055 |
|
---|
4056 | fi
|
---|
4057 | test x$JAVA = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
4058 | fi
|
---|
4059 |
|
---|
4060 |
|
---|
4061 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
4062 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4064 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4065 | if test "${ac_cv_prog_uudecode+set}" = set; then :
|
---|
4066 | $as_echo_n "(cached) " >&6
|
---|
4067 | else
|
---|
4068 | if test -n "$uudecode"; then
|
---|
4069 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
4070 | else
|
---|
4071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4072 | for as_dir in $PATH
|
---|
4073 | do
|
---|
4074 | IFS=$as_save_IFS
|
---|
4075 | test -z "$as_dir" && as_dir=.
|
---|
4076 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4078 | ac_cv_prog_uudecode="yes"
|
---|
4079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4080 | break 2
|
---|
4081 | fi
|
---|
4082 | done
|
---|
4083 | done
|
---|
4084 | IFS=$as_save_IFS
|
---|
4085 |
|
---|
4086 | fi
|
---|
4087 | fi
|
---|
4088 | uudecode=$ac_cv_prog_uudecode
|
---|
4089 | if test -n "$uudecode"; then
|
---|
4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
4091 | $as_echo "$uudecode" >&6; }
|
---|
4092 | else
|
---|
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4094 | $as_echo "no" >&6; }
|
---|
4095 | fi
|
---|
4096 |
|
---|
4097 |
|
---|
4098 | if test x$uudecode = xyes; then
|
---|
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
4100 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
4101 | if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
|
---|
4102 | $as_echo_n "(cached) " >&6
|
---|
4103 | else
|
---|
4104 |
|
---|
4105 | cat << \EOF > Test.uue
|
---|
4106 | begin-base64 644 Test.class
|
---|
4107 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
4108 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
4109 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
4110 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
4111 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
4112 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
4113 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
4114 | ====
|
---|
4115 | EOF
|
---|
4116 | if uudecode$EXEEXT Test.uue; then
|
---|
4117 | ac_cv_prog_uudecode_base64=yes
|
---|
4118 | else
|
---|
4119 | echo "configure: 4119: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
4120 | echo "configure: failed file was:" >&5
|
---|
4121 | cat Test.uue >&5
|
---|
4122 | ac_cv_prog_uudecode_base64=no
|
---|
4123 | fi
|
---|
4124 | rm -f Test.uue
|
---|
4125 | fi
|
---|
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
4127 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
4128 | fi
|
---|
4129 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
4130 | rm -f Test.class
|
---|
4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
4132 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
4133 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
4134 | as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
4135 | fi
|
---|
4136 | if test x$ac_cv_prog_javac_works = x; then
|
---|
4137 |
|
---|
4138 | if test "x$JAVAC" = x ; then
|
---|
4139 | if test "x$JAVAPREFIX" = x; then
|
---|
4140 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4141 | do
|
---|
4142 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4143 | set dummy $ac_prog; ac_word=$2
|
---|
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4145 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4146 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
4147 | $as_echo_n "(cached) " >&6
|
---|
4148 | else
|
---|
4149 | if test -n "$JAVAC"; then
|
---|
4150 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4151 | else
|
---|
4152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4153 | for as_dir in $PATH
|
---|
4154 | do
|
---|
4155 | IFS=$as_save_IFS
|
---|
4156 | test -z "$as_dir" && as_dir=.
|
---|
4157 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4159 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4161 | break 2
|
---|
4162 | fi
|
---|
4163 | done
|
---|
4164 | done
|
---|
4165 | IFS=$as_save_IFS
|
---|
4166 |
|
---|
4167 | fi
|
---|
4168 | fi
|
---|
4169 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4170 | if test -n "$JAVAC"; then
|
---|
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4172 | $as_echo "$JAVAC" >&6; }
|
---|
4173 | else
|
---|
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4175 | $as_echo "no" >&6; }
|
---|
4176 | fi
|
---|
4177 |
|
---|
4178 |
|
---|
4179 | test -n "$JAVAC" && break
|
---|
4180 | done
|
---|
4181 |
|
---|
4182 | else
|
---|
4183 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4184 | do
|
---|
4185 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4186 | set dummy $ac_prog; ac_word=$2
|
---|
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4188 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4189 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
4190 | $as_echo_n "(cached) " >&6
|
---|
4191 | else
|
---|
4192 | if test -n "$JAVAC"; then
|
---|
4193 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4194 | else
|
---|
4195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4196 | for as_dir in $PATH
|
---|
4197 | do
|
---|
4198 | IFS=$as_save_IFS
|
---|
4199 | test -z "$as_dir" && as_dir=.
|
---|
4200 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4202 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4204 | break 2
|
---|
4205 | fi
|
---|
4206 | done
|
---|
4207 | done
|
---|
4208 | IFS=$as_save_IFS
|
---|
4209 |
|
---|
4210 | fi
|
---|
4211 | fi
|
---|
4212 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4213 | if test -n "$JAVAC"; then
|
---|
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4215 | $as_echo "$JAVAC" >&6; }
|
---|
4216 | else
|
---|
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4218 | $as_echo "no" >&6; }
|
---|
4219 | fi
|
---|
4220 |
|
---|
4221 |
|
---|
4222 | test -n "$JAVAC" && break
|
---|
4223 | done
|
---|
4224 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
4225 |
|
---|
4226 | fi
|
---|
4227 | test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
4228 | else
|
---|
4229 | echo "Checking for javac... $JAVAC"
|
---|
4230 | fi
|
---|
4231 |
|
---|
4232 |
|
---|
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4234 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4235 | if test "${ac_cv_prog_javac_works+set}" = set; then :
|
---|
4236 | $as_echo_n "(cached) " >&6
|
---|
4237 | else
|
---|
4238 |
|
---|
4239 | JAVA_TEST=Test.java
|
---|
4240 | CLASS_TEST=Test.class
|
---|
4241 | cat << \EOF > $JAVA_TEST
|
---|
4242 | /* #line 4242 "configure" */
|
---|
4243 | public class Test {
|
---|
4244 | }
|
---|
4245 | EOF
|
---|
4246 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4247 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4248 | (eval $ac_try) 2>&5
|
---|
4249 | ac_status=$?
|
---|
4250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4251 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4252 | ac_cv_prog_javac_works=yes
|
---|
4253 | else
|
---|
4254 | as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4255 | echo "configure: failed program was:" >&5
|
---|
4256 | cat $JAVA_TEST >&5
|
---|
4257 | fi
|
---|
4258 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4259 |
|
---|
4260 | fi
|
---|
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4262 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4263 | if test "x$JAVACFLAGS" = x ; then
|
---|
4264 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
4265 | fi
|
---|
4266 |
|
---|
4267 |
|
---|
4268 |
|
---|
4269 | fi
|
---|
4270 | fi
|
---|
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
4272 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
4273 | if test "${ac_cv_prog_java_works+set}" = set; then :
|
---|
4274 | $as_echo_n "(cached) " >&6
|
---|
4275 | else
|
---|
4276 |
|
---|
4277 | JAVA_TEST=Test.java
|
---|
4278 | CLASS_TEST=Test.class
|
---|
4279 | TEST=Test
|
---|
4280 | cat << \EOF > $JAVA_TEST
|
---|
4281 | /* [#]line 4281 "configure" */
|
---|
4282 | public class Test {
|
---|
4283 | public static void main (String args[]) {
|
---|
4284 | System.exit (0);
|
---|
4285 | } }
|
---|
4286 | EOF
|
---|
4287 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
4288 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4289 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4290 | (eval $ac_try) 2>&5
|
---|
4291 | ac_status=$?
|
---|
4292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4293 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
4294 | :
|
---|
4295 | else
|
---|
4296 | echo "configure: failed program was:" >&5
|
---|
4297 | cat $JAVA_TEST >&5
|
---|
4298 | as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4299 | fi
|
---|
4300 | fi
|
---|
4301 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
4302 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4303 | (eval $ac_try) 2>&5
|
---|
4304 | ac_status=$?
|
---|
4305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4306 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4307 | ac_cv_prog_java_works=yes
|
---|
4308 | else
|
---|
4309 | echo "configure: failed program was:" >&5
|
---|
4310 | cat $JAVA_TEST >&5
|
---|
4311 | as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4312 | fi
|
---|
4313 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
4314 |
|
---|
4315 | fi
|
---|
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
4317 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
4318 |
|
---|
4319 |
|
---|
4320 |
|
---|
4321 |
|
---|
4322 | if test "x$JAVAC" = x ; then
|
---|
4323 | if test "x$JAVAPREFIX" = x; then
|
---|
4324 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4325 | do
|
---|
4326 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4327 | set dummy $ac_prog; ac_word=$2
|
---|
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4329 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4330 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
4331 | $as_echo_n "(cached) " >&6
|
---|
4332 | else
|
---|
4333 | if test -n "$JAVAC"; then
|
---|
4334 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4335 | else
|
---|
4336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4337 | for as_dir in $PATH
|
---|
4338 | do
|
---|
4339 | IFS=$as_save_IFS
|
---|
4340 | test -z "$as_dir" && as_dir=.
|
---|
4341 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4343 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4345 | break 2
|
---|
4346 | fi
|
---|
4347 | done
|
---|
4348 | done
|
---|
4349 | IFS=$as_save_IFS
|
---|
4350 |
|
---|
4351 | fi
|
---|
4352 | fi
|
---|
4353 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4354 | if test -n "$JAVAC"; then
|
---|
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4356 | $as_echo "$JAVAC" >&6; }
|
---|
4357 | else
|
---|
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4359 | $as_echo "no" >&6; }
|
---|
4360 | fi
|
---|
4361 |
|
---|
4362 |
|
---|
4363 | test -n "$JAVAC" && break
|
---|
4364 | done
|
---|
4365 |
|
---|
4366 | else
|
---|
4367 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4368 | do
|
---|
4369 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4370 | set dummy $ac_prog; ac_word=$2
|
---|
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4372 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4373 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
4374 | $as_echo_n "(cached) " >&6
|
---|
4375 | else
|
---|
4376 | if test -n "$JAVAC"; then
|
---|
4377 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4378 | else
|
---|
4379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4380 | for as_dir in $PATH
|
---|
4381 | do
|
---|
4382 | IFS=$as_save_IFS
|
---|
4383 | test -z "$as_dir" && as_dir=.
|
---|
4384 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4385 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
4386 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4388 | break 2
|
---|
4389 | fi
|
---|
4390 | done
|
---|
4391 | done
|
---|
4392 | IFS=$as_save_IFS
|
---|
4393 |
|
---|
4394 | fi
|
---|
4395 | fi
|
---|
4396 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4397 | if test -n "$JAVAC"; then
|
---|
4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4399 | $as_echo "$JAVAC" >&6; }
|
---|
4400 | else
|
---|
4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4402 | $as_echo "no" >&6; }
|
---|
4403 | fi
|
---|
4404 |
|
---|
4405 |
|
---|
4406 | test -n "$JAVAC" && break
|
---|
4407 | done
|
---|
4408 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
4409 |
|
---|
4410 | fi
|
---|
4411 | test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
4412 | else
|
---|
4413 | echo "Checking for javac... $JAVAC"
|
---|
4414 | fi
|
---|
4415 |
|
---|
4416 |
|
---|
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4418 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4419 | if test "${ac_cv_prog_javac_works+set}" = set; then :
|
---|
4420 | $as_echo_n "(cached) " >&6
|
---|
4421 | else
|
---|
4422 |
|
---|
4423 | JAVA_TEST=Test.java
|
---|
4424 | CLASS_TEST=Test.class
|
---|
4425 | cat << \EOF > $JAVA_TEST
|
---|
4426 | /* #line 4426 "configure" */
|
---|
4427 | public class Test {
|
---|
4428 | }
|
---|
4429 | EOF
|
---|
4430 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4431 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4432 | (eval $ac_try) 2>&5
|
---|
4433 | ac_status=$?
|
---|
4434 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4435 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4436 | ac_cv_prog_javac_works=yes
|
---|
4437 | else
|
---|
4438 | as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4439 | echo "configure: failed program was:" >&5
|
---|
4440 | cat $JAVA_TEST >&5
|
---|
4441 | fi
|
---|
4442 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4443 |
|
---|
4444 | fi
|
---|
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4446 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4447 | if test "x$JAVACFLAGS" = x ; then
|
---|
4448 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
4449 | fi
|
---|
4450 |
|
---|
4451 |
|
---|
4452 |
|
---|
4453 | fi
|
---|
4454 |
|
---|
4455 |
|
---|
4456 | ac_ext=c
|
---|
4457 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4462 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4463 | # On Suns, sometimes $CPP names a directory.
|
---|
4464 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4465 | CPP=
|
---|
4466 | fi
|
---|
4467 | if test -z "$CPP"; then
|
---|
4468 | if test "${ac_cv_prog_CPP+set}" = set; then :
|
---|
4469 | $as_echo_n "(cached) " >&6
|
---|
4470 | else
|
---|
4471 | # Double quotes because CPP needs to be expanded
|
---|
4472 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4473 | do
|
---|
4474 | ac_preproc_ok=false
|
---|
4475 | for ac_c_preproc_warn_flag in '' yes
|
---|
4476 | do
|
---|
4477 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4478 | # with a fresh cross-compiler works.
|
---|
4479 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4480 | # <limits.h> exists even on freestanding compilers.
|
---|
4481 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4482 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4484 | /* end confdefs.h. */
|
---|
4485 | #ifdef __STDC__
|
---|
4486 | # include <limits.h>
|
---|
4487 | #else
|
---|
4488 | # include <assert.h>
|
---|
4489 | #endif
|
---|
4490 | Syntax error
|
---|
4491 | _ACEOF
|
---|
4492 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4493 |
|
---|
4494 | else
|
---|
4495 | # Broken: fails on valid input.
|
---|
4496 | continue
|
---|
4497 | fi
|
---|
4498 | rm -f conftest.err conftest.$ac_ext
|
---|
4499 |
|
---|
4500 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4501 | # can be detected and how.
|
---|
4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4503 | /* end confdefs.h. */
|
---|
4504 | #include <ac_nonexistent.h>
|
---|
4505 | _ACEOF
|
---|
4506 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4507 | # Broken: success on invalid input.
|
---|
4508 | continue
|
---|
4509 | else
|
---|
4510 | # Passes both tests.
|
---|
4511 | ac_preproc_ok=:
|
---|
4512 | break
|
---|
4513 | fi
|
---|
4514 | rm -f conftest.err conftest.$ac_ext
|
---|
4515 |
|
---|
4516 | done
|
---|
4517 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4518 | rm -f conftest.err conftest.$ac_ext
|
---|
4519 | if $ac_preproc_ok; then :
|
---|
4520 | break
|
---|
4521 | fi
|
---|
4522 |
|
---|
4523 | done
|
---|
4524 | ac_cv_prog_CPP=$CPP
|
---|
4525 |
|
---|
4526 | fi
|
---|
4527 | CPP=$ac_cv_prog_CPP
|
---|
4528 | else
|
---|
4529 | ac_cv_prog_CPP=$CPP
|
---|
4530 | fi
|
---|
4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4532 | $as_echo "$CPP" >&6; }
|
---|
4533 | ac_preproc_ok=false
|
---|
4534 | for ac_c_preproc_warn_flag in '' yes
|
---|
4535 | do
|
---|
4536 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4537 | # with a fresh cross-compiler works.
|
---|
4538 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4539 | # <limits.h> exists even on freestanding compilers.
|
---|
4540 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4541 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4543 | /* end confdefs.h. */
|
---|
4544 | #ifdef __STDC__
|
---|
4545 | # include <limits.h>
|
---|
4546 | #else
|
---|
4547 | # include <assert.h>
|
---|
4548 | #endif
|
---|
4549 | Syntax error
|
---|
4550 | _ACEOF
|
---|
4551 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4552 |
|
---|
4553 | else
|
---|
4554 | # Broken: fails on valid input.
|
---|
4555 | continue
|
---|
4556 | fi
|
---|
4557 | rm -f conftest.err conftest.$ac_ext
|
---|
4558 |
|
---|
4559 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4560 | # can be detected and how.
|
---|
4561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4562 | /* end confdefs.h. */
|
---|
4563 | #include <ac_nonexistent.h>
|
---|
4564 | _ACEOF
|
---|
4565 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4566 | # Broken: success on invalid input.
|
---|
4567 | continue
|
---|
4568 | else
|
---|
4569 | # Passes both tests.
|
---|
4570 | ac_preproc_ok=:
|
---|
4571 | break
|
---|
4572 | fi
|
---|
4573 | rm -f conftest.err conftest.$ac_ext
|
---|
4574 |
|
---|
4575 | done
|
---|
4576 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4577 | rm -f conftest.err conftest.$ac_ext
|
---|
4578 | if $ac_preproc_ok; then :
|
---|
4579 |
|
---|
4580 | else
|
---|
4581 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4583 | as_fn_error "C preprocessor \"$CPP\" fails sanity check
|
---|
4584 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
4585 | fi
|
---|
4586 |
|
---|
4587 | ac_ext=c
|
---|
4588 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4592 |
|
---|
4593 |
|
---|
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4595 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4596 | if test "${ac_cv_path_GREP+set}" = set; then :
|
---|
4597 | $as_echo_n "(cached) " >&6
|
---|
4598 | else
|
---|
4599 | if test -z "$GREP"; then
|
---|
4600 | ac_path_GREP_found=false
|
---|
4601 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4603 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4604 | do
|
---|
4605 | IFS=$as_save_IFS
|
---|
4606 | test -z "$as_dir" && as_dir=.
|
---|
4607 | for ac_prog in grep ggrep; do
|
---|
4608 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4609 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4610 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
4611 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4612 | # Check for GNU $ac_path_GREP
|
---|
4613 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4614 | *GNU*)
|
---|
4615 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4616 | *)
|
---|
4617 | ac_count=0
|
---|
4618 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4619 | while :
|
---|
4620 | do
|
---|
4621 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4622 | mv "conftest.tmp" "conftest.in"
|
---|
4623 | cp "conftest.in" "conftest.nl"
|
---|
4624 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4625 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4626 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4627 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4628 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4629 | # Best one so far, save it but keep looking for a better one
|
---|
4630 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4631 | ac_path_GREP_max=$ac_count
|
---|
4632 | fi
|
---|
4633 | # 10*(2^10) chars as input seems more than enough
|
---|
4634 | test $ac_count -gt 10 && break
|
---|
4635 | done
|
---|
4636 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4637 | esac
|
---|
4638 |
|
---|
4639 | $ac_path_GREP_found && break 3
|
---|
4640 | done
|
---|
4641 | done
|
---|
4642 | done
|
---|
4643 | IFS=$as_save_IFS
|
---|
4644 | if test -z "$ac_cv_path_GREP"; then
|
---|
4645 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4646 | fi
|
---|
4647 | else
|
---|
4648 | ac_cv_path_GREP=$GREP
|
---|
4649 | fi
|
---|
4650 |
|
---|
4651 | fi
|
---|
4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4653 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4654 | GREP="$ac_cv_path_GREP"
|
---|
4655 |
|
---|
4656 |
|
---|
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4658 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4659 | if test "${ac_cv_path_EGREP+set}" = set; then :
|
---|
4660 | $as_echo_n "(cached) " >&6
|
---|
4661 | else
|
---|
4662 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4663 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4664 | else
|
---|
4665 | if test -z "$EGREP"; then
|
---|
4666 | ac_path_EGREP_found=false
|
---|
4667 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4669 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4670 | do
|
---|
4671 | IFS=$as_save_IFS
|
---|
4672 | test -z "$as_dir" && as_dir=.
|
---|
4673 | for ac_prog in egrep; do
|
---|
4674 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4675 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4676 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
4677 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4678 | # Check for GNU $ac_path_EGREP
|
---|
4679 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4680 | *GNU*)
|
---|
4681 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4682 | *)
|
---|
4683 | ac_count=0
|
---|
4684 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4685 | while :
|
---|
4686 | do
|
---|
4687 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4688 | mv "conftest.tmp" "conftest.in"
|
---|
4689 | cp "conftest.in" "conftest.nl"
|
---|
4690 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4691 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4692 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4693 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4694 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4695 | # Best one so far, save it but keep looking for a better one
|
---|
4696 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4697 | ac_path_EGREP_max=$ac_count
|
---|
4698 | fi
|
---|
4699 | # 10*(2^10) chars as input seems more than enough
|
---|
4700 | test $ac_count -gt 10 && break
|
---|
4701 | done
|
---|
4702 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4703 | esac
|
---|
4704 |
|
---|
4705 | $ac_path_EGREP_found && break 3
|
---|
4706 | done
|
---|
4707 | done
|
---|
4708 | done
|
---|
4709 | IFS=$as_save_IFS
|
---|
4710 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4711 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4712 | fi
|
---|
4713 | else
|
---|
4714 | ac_cv_path_EGREP=$EGREP
|
---|
4715 | fi
|
---|
4716 |
|
---|
4717 | fi
|
---|
4718 | fi
|
---|
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4720 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4721 | EGREP="$ac_cv_path_EGREP"
|
---|
4722 |
|
---|
4723 |
|
---|
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
4725 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
4726 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
4727 | $as_echo_n "(cached) " >&6
|
---|
4728 | else
|
---|
4729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4730 | /* end confdefs.h. */
|
---|
4731 | #include <stdlib.h>
|
---|
4732 | #include <stdarg.h>
|
---|
4733 | #include <string.h>
|
---|
4734 | #include <float.h>
|
---|
4735 |
|
---|
4736 | int
|
---|
4737 | main ()
|
---|
4738 | {
|
---|
4739 |
|
---|
4740 | ;
|
---|
4741 | return 0;
|
---|
4742 | }
|
---|
4743 | _ACEOF
|
---|
4744 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4745 | ac_cv_header_stdc=yes
|
---|
4746 | else
|
---|
4747 | ac_cv_header_stdc=no
|
---|
4748 | fi
|
---|
4749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4750 |
|
---|
4751 | if test $ac_cv_header_stdc = yes; then
|
---|
4752 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4754 | /* end confdefs.h. */
|
---|
4755 | #include <string.h>
|
---|
4756 |
|
---|
4757 | _ACEOF
|
---|
4758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4759 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
4760 |
|
---|
4761 | else
|
---|
4762 | ac_cv_header_stdc=no
|
---|
4763 | fi
|
---|
4764 | rm -f conftest*
|
---|
4765 |
|
---|
4766 | fi
|
---|
4767 |
|
---|
4768 | if test $ac_cv_header_stdc = yes; then
|
---|
4769 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4771 | /* end confdefs.h. */
|
---|
4772 | #include <stdlib.h>
|
---|
4773 |
|
---|
4774 | _ACEOF
|
---|
4775 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4776 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
4777 |
|
---|
4778 | else
|
---|
4779 | ac_cv_header_stdc=no
|
---|
4780 | fi
|
---|
4781 | rm -f conftest*
|
---|
4782 |
|
---|
4783 | fi
|
---|
4784 |
|
---|
4785 | if test $ac_cv_header_stdc = yes; then
|
---|
4786 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4787 | if test "$cross_compiling" = yes; then :
|
---|
4788 | :
|
---|
4789 | else
|
---|
4790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4791 | /* end confdefs.h. */
|
---|
4792 | #include <ctype.h>
|
---|
4793 | #include <stdlib.h>
|
---|
4794 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4795 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4796 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4797 | #else
|
---|
4798 | # define ISLOWER(c) \
|
---|
4799 | (('a' <= (c) && (c) <= 'i') \
|
---|
4800 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4801 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4802 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4803 | #endif
|
---|
4804 |
|
---|
4805 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4806 | int
|
---|
4807 | main ()
|
---|
4808 | {
|
---|
4809 | int i;
|
---|
4810 | for (i = 0; i < 256; i++)
|
---|
4811 | if (XOR (islower (i), ISLOWER (i))
|
---|
4812 | || toupper (i) != TOUPPER (i))
|
---|
4813 | return 2;
|
---|
4814 | return 0;
|
---|
4815 | }
|
---|
4816 | _ACEOF
|
---|
4817 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4818 |
|
---|
4819 | else
|
---|
4820 | ac_cv_header_stdc=no
|
---|
4821 | fi
|
---|
4822 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4823 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4824 | fi
|
---|
4825 |
|
---|
4826 | fi
|
---|
4827 | fi
|
---|
4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
4829 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
4830 | if test $ac_cv_header_stdc = yes; then
|
---|
4831 |
|
---|
4832 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
4833 |
|
---|
4834 | fi
|
---|
4835 |
|
---|
4836 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4837 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4838 | inttypes.h stdint.h unistd.h
|
---|
4839 | do :
|
---|
4840 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4841 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
4842 | "
|
---|
4843 | eval as_val=\$$as_ac_Header
|
---|
4844 | if test "x$as_val" = x""yes; then :
|
---|
4845 | cat >>confdefs.h <<_ACEOF
|
---|
4846 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4847 | _ACEOF
|
---|
4848 |
|
---|
4849 | fi
|
---|
4850 |
|
---|
4851 | done
|
---|
4852 |
|
---|
4853 |
|
---|
4854 |
|
---|
4855 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
4856 | if test "x$ac_cv_header_minix_config_h" = x""yes; then :
|
---|
4857 | MINIX=yes
|
---|
4858 | else
|
---|
4859 | MINIX=
|
---|
4860 | fi
|
---|
4861 |
|
---|
4862 |
|
---|
4863 | if test "$MINIX" = yes; then
|
---|
4864 |
|
---|
4865 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
4866 |
|
---|
4867 |
|
---|
4868 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
4869 |
|
---|
4870 |
|
---|
4871 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
4872 |
|
---|
4873 | fi
|
---|
4874 |
|
---|
4875 |
|
---|
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
4877 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
4878 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
|
---|
4879 | $as_echo_n "(cached) " >&6
|
---|
4880 | else
|
---|
4881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4882 | /* end confdefs.h. */
|
---|
4883 |
|
---|
4884 | # define __EXTENSIONS__ 1
|
---|
4885 | $ac_includes_default
|
---|
4886 | int
|
---|
4887 | main ()
|
---|
4888 | {
|
---|
4889 |
|
---|
4890 | ;
|
---|
4891 | return 0;
|
---|
4892 | }
|
---|
4893 | _ACEOF
|
---|
4894 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4895 | ac_cv_safe_to_define___extensions__=yes
|
---|
4896 | else
|
---|
4897 | ac_cv_safe_to_define___extensions__=no
|
---|
4898 | fi
|
---|
4899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4900 | fi
|
---|
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
4902 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
4903 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
4904 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
4905 |
|
---|
4906 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
4907 |
|
---|
4908 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
4909 |
|
---|
4910 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
4911 |
|
---|
4912 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
4913 |
|
---|
4914 |
|
---|
4915 |
|
---|
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
4917 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
4918 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
4919 | $as_echo_n "(cached) " >&6
|
---|
4920 | else
|
---|
4921 | ac_func_search_save_LIBS=$LIBS
|
---|
4922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4923 | /* end confdefs.h. */
|
---|
4924 |
|
---|
4925 | /* Override any GCC internal prototype to avoid an error.
|
---|
4926 | Use char because int might match the return type of a GCC
|
---|
4927 | builtin and then its argument prototype would still apply. */
|
---|
4928 | #ifdef __cplusplus
|
---|
4929 | extern "C"
|
---|
4930 | #endif
|
---|
4931 | char strerror ();
|
---|
4932 | int
|
---|
4933 | main ()
|
---|
4934 | {
|
---|
4935 | return strerror ();
|
---|
4936 | ;
|
---|
4937 | return 0;
|
---|
4938 | }
|
---|
4939 | _ACEOF
|
---|
4940 | for ac_lib in '' cposix; do
|
---|
4941 | if test -z "$ac_lib"; then
|
---|
4942 | ac_res="none required"
|
---|
4943 | else
|
---|
4944 | ac_res=-l$ac_lib
|
---|
4945 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4946 | fi
|
---|
4947 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
4948 | ac_cv_search_strerror=$ac_res
|
---|
4949 | fi
|
---|
4950 | rm -f core conftest.err conftest.$ac_objext \
|
---|
4951 | conftest$ac_exeext
|
---|
4952 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
4953 | break
|
---|
4954 | fi
|
---|
4955 | done
|
---|
4956 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
4957 |
|
---|
4958 | else
|
---|
4959 | ac_cv_search_strerror=no
|
---|
4960 | fi
|
---|
4961 | rm conftest.$ac_ext
|
---|
4962 | LIBS=$ac_func_search_save_LIBS
|
---|
4963 | fi
|
---|
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
4965 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
4966 | ac_res=$ac_cv_search_strerror
|
---|
4967 | if test "$ac_res" != no; then :
|
---|
4968 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
4969 |
|
---|
4970 | fi
|
---|
4971 |
|
---|
4972 |
|
---|
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
4974 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
4975 | if test "${ac_cv_prog_cc_stdc+set}" = set; then :
|
---|
4976 | $as_echo_n "(cached) " >&6
|
---|
4977 | else
|
---|
4978 | ac_cv_prog_cc_stdc=no
|
---|
4979 | ac_save_CFLAGS="$CFLAGS"
|
---|
4980 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
4981 | # breaks some systems' header files.
|
---|
4982 | # AIX -qlanglvl=ansi
|
---|
4983 | # Ultrix and OSF/1 -std1
|
---|
4984 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
4985 | # SVR4 -Xc
|
---|
4986 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
4987 | do
|
---|
4988 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
4989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4990 | /* end confdefs.h. */
|
---|
4991 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
4992 | choke me
|
---|
4993 | #endif
|
---|
4994 |
|
---|
4995 | int
|
---|
4996 | main ()
|
---|
4997 | {
|
---|
4998 | int test (int i, double x);
|
---|
4999 | struct s1 {int (*f) (int a);};
|
---|
5000 | struct s2 {int (*f) (double a);};
|
---|
5001 | ;
|
---|
5002 | return 0;
|
---|
5003 | }
|
---|
5004 | _ACEOF
|
---|
5005 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5006 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
5007 | fi
|
---|
5008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5009 | done
|
---|
5010 | CFLAGS="$ac_save_CFLAGS"
|
---|
5011 |
|
---|
5012 | fi
|
---|
5013 |
|
---|
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
5015 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
5016 | case "x$ac_cv_prog_cc_stdc" in
|
---|
5017 | x|xno) ;;
|
---|
5018 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
5019 | esac
|
---|
5020 |
|
---|
5021 |
|
---|
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
5023 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
5024 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5026 | $as_echo "yes" >&6; }
|
---|
5027 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
5028 |
|
---|
5029 | U= ANSI2KNR=
|
---|
5030 | else
|
---|
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5032 | $as_echo "no" >&6; }
|
---|
5033 | U=_ ANSI2KNR=ansi2knr
|
---|
5034 | fi
|
---|
5035 |
|
---|
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
5037 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
5038 | if test "${ac_cv_c_const+set}" = set; then :
|
---|
5039 | $as_echo_n "(cached) " >&6
|
---|
5040 | else
|
---|
5041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5042 | /* end confdefs.h. */
|
---|
5043 |
|
---|
5044 | int
|
---|
5045 | main ()
|
---|
5046 | {
|
---|
5047 | /* FIXME: Include the comments suggested by Paul. */
|
---|
5048 | #ifndef __cplusplus
|
---|
5049 | /* Ultrix mips cc rejects this. */
|
---|
5050 | typedef int charset[2];
|
---|
5051 | const charset cs;
|
---|
5052 | /* SunOS 4.1.1 cc rejects this. */
|
---|
5053 | char const *const *pcpcc;
|
---|
5054 | char **ppc;
|
---|
5055 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
5056 | struct point {int x, y;};
|
---|
5057 | static struct point const zero = {0,0};
|
---|
5058 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
5059 | It does not let you subtract one const X* pointer from another in
|
---|
5060 | an arm of an if-expression whose if-part is not a constant
|
---|
5061 | expression */
|
---|
5062 | const char *g = "string";
|
---|
5063 | pcpcc = &g + (g ? g-g : 0);
|
---|
5064 | /* HPUX 7.0 cc rejects these. */
|
---|
5065 | ++pcpcc;
|
---|
5066 | ppc = (char**) pcpcc;
|
---|
5067 | pcpcc = (char const *const *) ppc;
|
---|
5068 | { /* SCO 3.2v4 cc rejects this. */
|
---|
5069 | char *t;
|
---|
5070 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
5071 |
|
---|
5072 | *t++ = 0;
|
---|
5073 | if (s) return 0;
|
---|
5074 | }
|
---|
5075 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
5076 | int x[] = {25, 17};
|
---|
5077 | const int *foo = &x[0];
|
---|
5078 | ++foo;
|
---|
5079 | }
|
---|
5080 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
5081 | typedef const int *iptr;
|
---|
5082 | iptr p = 0;
|
---|
5083 | ++p;
|
---|
5084 | }
|
---|
5085 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
5086 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
5087 | struct s { int j; const int *ap[3]; };
|
---|
5088 | struct s *b; b->j = 5;
|
---|
5089 | }
|
---|
5090 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
5091 | const int foo = 10;
|
---|
5092 | if (!foo) return 0;
|
---|
5093 | }
|
---|
5094 | return !cs[0] && !zero.x;
|
---|
5095 | #endif
|
---|
5096 |
|
---|
5097 | ;
|
---|
5098 | return 0;
|
---|
5099 | }
|
---|
5100 | _ACEOF
|
---|
5101 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5102 | ac_cv_c_const=yes
|
---|
5103 | else
|
---|
5104 | ac_cv_c_const=no
|
---|
5105 | fi
|
---|
5106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5107 | fi
|
---|
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
5109 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
5110 | if test $ac_cv_c_const = no; then
|
---|
5111 |
|
---|
5112 | $as_echo "#define const /**/" >>confdefs.h
|
---|
5113 |
|
---|
5114 | fi
|
---|
5115 |
|
---|
5116 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
5117 | if test "x$ac_cv_type_off_t" = x""yes; then :
|
---|
5118 |
|
---|
5119 | else
|
---|
5120 |
|
---|
5121 | cat >>confdefs.h <<_ACEOF
|
---|
5122 | #define off_t long int
|
---|
5123 | _ACEOF
|
---|
5124 |
|
---|
5125 | fi
|
---|
5126 |
|
---|
5127 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
5128 | if test "x$ac_cv_type_size_t" = x""yes; then :
|
---|
5129 |
|
---|
5130 | else
|
---|
5131 |
|
---|
5132 | cat >>confdefs.h <<_ACEOF
|
---|
5133 | #define size_t unsigned int
|
---|
5134 | _ACEOF
|
---|
5135 |
|
---|
5136 | fi
|
---|
5137 |
|
---|
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
5139 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
5140 | if test "${ac_cv_header_time+set}" = set; then :
|
---|
5141 | $as_echo_n "(cached) " >&6
|
---|
5142 | else
|
---|
5143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5144 | /* end confdefs.h. */
|
---|
5145 | #include <sys/types.h>
|
---|
5146 | #include <sys/time.h>
|
---|
5147 | #include <time.h>
|
---|
5148 |
|
---|
5149 | int
|
---|
5150 | main ()
|
---|
5151 | {
|
---|
5152 | if ((struct tm *) 0)
|
---|
5153 | return 0;
|
---|
5154 | ;
|
---|
5155 | return 0;
|
---|
5156 | }
|
---|
5157 | _ACEOF
|
---|
5158 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5159 | ac_cv_header_time=yes
|
---|
5160 | else
|
---|
5161 | ac_cv_header_time=no
|
---|
5162 | fi
|
---|
5163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5164 | fi
|
---|
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
5166 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
5167 | if test $ac_cv_header_time = yes; then
|
---|
5168 |
|
---|
5169 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
5170 |
|
---|
5171 | fi
|
---|
5172 |
|
---|
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
5174 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
5175 | if test "${ac_cv_struct_tm+set}" = set; then :
|
---|
5176 | $as_echo_n "(cached) " >&6
|
---|
5177 | else
|
---|
5178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5179 | /* end confdefs.h. */
|
---|
5180 | #include <sys/types.h>
|
---|
5181 | #include <time.h>
|
---|
5182 |
|
---|
5183 | int
|
---|
5184 | main ()
|
---|
5185 | {
|
---|
5186 | struct tm tm;
|
---|
5187 | int *p = &tm.tm_sec;
|
---|
5188 | return !p;
|
---|
5189 | ;
|
---|
5190 | return 0;
|
---|
5191 | }
|
---|
5192 | _ACEOF
|
---|
5193 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5194 | ac_cv_struct_tm=time.h
|
---|
5195 | else
|
---|
5196 | ac_cv_struct_tm=sys/time.h
|
---|
5197 | fi
|
---|
5198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5199 | fi
|
---|
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
5201 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
5202 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
5203 |
|
---|
5204 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
5205 |
|
---|
5206 | fi
|
---|
5207 |
|
---|
5208 |
|
---|
5209 |
|
---|
5210 | # Check whether --with-unac was given.
|
---|
5211 | if test "${with_unac+set}" = set; then :
|
---|
5212 | withval=$with_unac; UNAC_DIR=$withval
|
---|
5213 | else
|
---|
5214 | UNAC_DIR="`pwd`/../packages/unac"
|
---|
5215 | fi
|
---|
5216 |
|
---|
5217 | cat >>confdefs.h <<_ACEOF
|
---|
5218 | #define UNAC_DIR "$UNAC_DIR"
|
---|
5219 | _ACEOF
|
---|
5220 |
|
---|
5221 |
|
---|
5222 |
|
---|
5223 | #AC_ARG_WITH(unac, [ --with-libiconv-prefix=dir Use local libiconv library], LIBICONV_DIR=$withval)
|
---|
5224 | #AC_DEFINE_UNQUOTED(LIBICONV_DIR, "$LIBICONV_DIR")
|
---|
5225 | #AC_SUBST(LIBICONV_DIR)
|
---|
5226 |
|
---|
5227 |
|
---|
5228 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
5229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5230 | /* end confdefs.h. */
|
---|
5231 | #include <stdio.h>
|
---|
5232 |
|
---|
5233 | int
|
---|
5234 | main ()
|
---|
5235 | {
|
---|
5236 | FILE *rubbish = popen("yes", "r");
|
---|
5237 | ;
|
---|
5238 | return 0;
|
---|
5239 | }
|
---|
5240 | _ACEOF
|
---|
5241 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5242 |
|
---|
5243 | else
|
---|
5244 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
5245 | fi
|
---|
5246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5247 | fi
|
---|
5248 |
|
---|
5249 |
|
---|
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
5251 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
5252 | if test "${ac_cv_lib_g_main+set}" = set; then :
|
---|
5253 | $as_echo_n "(cached) " >&6
|
---|
5254 | else
|
---|
5255 | ac_check_lib_save_LIBS=$LIBS
|
---|
5256 | LIBS="-lg $LIBS"
|
---|
5257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5258 | /* end confdefs.h. */
|
---|
5259 |
|
---|
5260 |
|
---|
5261 | int
|
---|
5262 | main ()
|
---|
5263 | {
|
---|
5264 | return main ();
|
---|
5265 | ;
|
---|
5266 | return 0;
|
---|
5267 | }
|
---|
5268 | _ACEOF
|
---|
5269 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5270 | ac_cv_lib_g_main=yes
|
---|
5271 | else
|
---|
5272 | ac_cv_lib_g_main=no
|
---|
5273 | fi
|
---|
5274 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5275 | conftest$ac_exeext conftest.$ac_ext
|
---|
5276 | LIBS=$ac_check_lib_save_LIBS
|
---|
5277 | fi
|
---|
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
5279 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
5280 | if test "x$ac_cv_lib_g_main" = x""yes; then :
|
---|
5281 | cat >>confdefs.h <<_ACEOF
|
---|
5282 | #define HAVE_LIBG 1
|
---|
5283 | _ACEOF
|
---|
5284 |
|
---|
5285 | LIBS="-lg $LIBS"
|
---|
5286 |
|
---|
5287 | fi
|
---|
5288 |
|
---|
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
5290 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
5291 | if test "${ac_cv_lib_m_main+set}" = set; then :
|
---|
5292 | $as_echo_n "(cached) " >&6
|
---|
5293 | else
|
---|
5294 | ac_check_lib_save_LIBS=$LIBS
|
---|
5295 | LIBS="-lm $LIBS"
|
---|
5296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5297 | /* end confdefs.h. */
|
---|
5298 |
|
---|
5299 |
|
---|
5300 | int
|
---|
5301 | main ()
|
---|
5302 | {
|
---|
5303 | return main ();
|
---|
5304 | ;
|
---|
5305 | return 0;
|
---|
5306 | }
|
---|
5307 | _ACEOF
|
---|
5308 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5309 | ac_cv_lib_m_main=yes
|
---|
5310 | else
|
---|
5311 | ac_cv_lib_m_main=no
|
---|
5312 | fi
|
---|
5313 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5314 | conftest$ac_exeext conftest.$ac_ext
|
---|
5315 | LIBS=$ac_check_lib_save_LIBS
|
---|
5316 | fi
|
---|
5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
5318 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
5319 | if test "x$ac_cv_lib_m_main" = x""yes; then :
|
---|
5320 | cat >>confdefs.h <<_ACEOF
|
---|
5321 | #define HAVE_LIBM 1
|
---|
5322 | _ACEOF
|
---|
5323 |
|
---|
5324 | LIBS="-lm $LIBS"
|
---|
5325 |
|
---|
5326 | fi
|
---|
5327 |
|
---|
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
|
---|
5329 | $as_echo_n "checking for main in -lstdc++... " >&6; }
|
---|
5330 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then :
|
---|
5331 | $as_echo_n "(cached) " >&6
|
---|
5332 | else
|
---|
5333 | ac_check_lib_save_LIBS=$LIBS
|
---|
5334 | LIBS="-lstdc++ $LIBS"
|
---|
5335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5336 | /* end confdefs.h. */
|
---|
5337 |
|
---|
5338 |
|
---|
5339 | int
|
---|
5340 | main ()
|
---|
5341 | {
|
---|
5342 | return main ();
|
---|
5343 | ;
|
---|
5344 | return 0;
|
---|
5345 | }
|
---|
5346 | _ACEOF
|
---|
5347 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5348 | ac_cv_lib_stdcpp_main=yes
|
---|
5349 | else
|
---|
5350 | ac_cv_lib_stdcpp_main=no
|
---|
5351 | fi
|
---|
5352 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5353 | conftest$ac_exeext conftest.$ac_ext
|
---|
5354 | LIBS=$ac_check_lib_save_LIBS
|
---|
5355 | fi
|
---|
5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
5357 | $as_echo "$ac_cv_lib_stdcpp_main" >&6; }
|
---|
5358 | if test "x$ac_cv_lib_stdcpp_main" = x""yes; then :
|
---|
5359 | cat >>confdefs.h <<_ACEOF
|
---|
5360 | #define HAVE_LIBSTDC__ 1
|
---|
5361 | _ACEOF
|
---|
5362 |
|
---|
5363 | LIBS="-lstdc++ $LIBS"
|
---|
5364 |
|
---|
5365 | fi
|
---|
5366 |
|
---|
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
5368 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
5369 | if test "${ac_cv_lib_crypt_main+set}" = set; then :
|
---|
5370 | $as_echo_n "(cached) " >&6
|
---|
5371 | else
|
---|
5372 | ac_check_lib_save_LIBS=$LIBS
|
---|
5373 | LIBS="-lcrypt $LIBS"
|
---|
5374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5375 | /* end confdefs.h. */
|
---|
5376 |
|
---|
5377 |
|
---|
5378 | int
|
---|
5379 | main ()
|
---|
5380 | {
|
---|
5381 | return main ();
|
---|
5382 | ;
|
---|
5383 | return 0;
|
---|
5384 | }
|
---|
5385 | _ACEOF
|
---|
5386 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5387 | ac_cv_lib_crypt_main=yes
|
---|
5388 | else
|
---|
5389 | ac_cv_lib_crypt_main=no
|
---|
5390 | fi
|
---|
5391 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5392 | conftest$ac_exeext conftest.$ac_ext
|
---|
5393 | LIBS=$ac_check_lib_save_LIBS
|
---|
5394 | fi
|
---|
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
5396 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
5397 | if test "x$ac_cv_lib_crypt_main" = x""yes; then :
|
---|
5398 | cat >>confdefs.h <<_ACEOF
|
---|
5399 | #define HAVE_LIBCRYPT 1
|
---|
5400 | _ACEOF
|
---|
5401 |
|
---|
5402 | LIBS="-lcrypt $LIBS"
|
---|
5403 |
|
---|
5404 | fi
|
---|
5405 |
|
---|
5406 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
5407 | #AC_HAVE_LIBRARY(iconv)
|
---|
5408 | #fi
|
---|
5409 |
|
---|
5410 |
|
---|
5411 | ac_header_dirent=no
|
---|
5412 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5413 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5415 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5416 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
5417 | $as_echo_n "(cached) " >&6
|
---|
5418 | else
|
---|
5419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5420 | /* end confdefs.h. */
|
---|
5421 | #include <sys/types.h>
|
---|
5422 | #include <$ac_hdr>
|
---|
5423 |
|
---|
5424 | int
|
---|
5425 | main ()
|
---|
5426 | {
|
---|
5427 | if ((DIR *) 0)
|
---|
5428 | return 0;
|
---|
5429 | ;
|
---|
5430 | return 0;
|
---|
5431 | }
|
---|
5432 | _ACEOF
|
---|
5433 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5434 | eval "$as_ac_Header=yes"
|
---|
5435 | else
|
---|
5436 | eval "$as_ac_Header=no"
|
---|
5437 | fi
|
---|
5438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5439 | fi
|
---|
5440 | eval ac_res=\$$as_ac_Header
|
---|
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5442 | $as_echo "$ac_res" >&6; }
|
---|
5443 | eval as_val=\$$as_ac_Header
|
---|
5444 | if test "x$as_val" = x""yes; then :
|
---|
5445 | cat >>confdefs.h <<_ACEOF
|
---|
5446 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5447 | _ACEOF
|
---|
5448 |
|
---|
5449 | ac_header_dirent=$ac_hdr; break
|
---|
5450 | fi
|
---|
5451 |
|
---|
5452 | done
|
---|
5453 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5454 | if test $ac_header_dirent = dirent.h; then
|
---|
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5456 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5457 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5458 | $as_echo_n "(cached) " >&6
|
---|
5459 | else
|
---|
5460 | ac_func_search_save_LIBS=$LIBS
|
---|
5461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5462 | /* end confdefs.h. */
|
---|
5463 |
|
---|
5464 | /* Override any GCC internal prototype to avoid an error.
|
---|
5465 | Use char because int might match the return type of a GCC
|
---|
5466 | builtin and then its argument prototype would still apply. */
|
---|
5467 | #ifdef __cplusplus
|
---|
5468 | extern "C"
|
---|
5469 | #endif
|
---|
5470 | char opendir ();
|
---|
5471 | int
|
---|
5472 | main ()
|
---|
5473 | {
|
---|
5474 | return opendir ();
|
---|
5475 | ;
|
---|
5476 | return 0;
|
---|
5477 | }
|
---|
5478 | _ACEOF
|
---|
5479 | for ac_lib in '' dir; do
|
---|
5480 | if test -z "$ac_lib"; then
|
---|
5481 | ac_res="none required"
|
---|
5482 | else
|
---|
5483 | ac_res=-l$ac_lib
|
---|
5484 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5485 | fi
|
---|
5486 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5487 | ac_cv_search_opendir=$ac_res
|
---|
5488 | fi
|
---|
5489 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5490 | conftest$ac_exeext
|
---|
5491 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5492 | break
|
---|
5493 | fi
|
---|
5494 | done
|
---|
5495 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5496 |
|
---|
5497 | else
|
---|
5498 | ac_cv_search_opendir=no
|
---|
5499 | fi
|
---|
5500 | rm conftest.$ac_ext
|
---|
5501 | LIBS=$ac_func_search_save_LIBS
|
---|
5502 | fi
|
---|
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5504 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5505 | ac_res=$ac_cv_search_opendir
|
---|
5506 | if test "$ac_res" != no; then :
|
---|
5507 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5508 |
|
---|
5509 | fi
|
---|
5510 |
|
---|
5511 | else
|
---|
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5513 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5514 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5515 | $as_echo_n "(cached) " >&6
|
---|
5516 | else
|
---|
5517 | ac_func_search_save_LIBS=$LIBS
|
---|
5518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5519 | /* end confdefs.h. */
|
---|
5520 |
|
---|
5521 | /* Override any GCC internal prototype to avoid an error.
|
---|
5522 | Use char because int might match the return type of a GCC
|
---|
5523 | builtin and then its argument prototype would still apply. */
|
---|
5524 | #ifdef __cplusplus
|
---|
5525 | extern "C"
|
---|
5526 | #endif
|
---|
5527 | char opendir ();
|
---|
5528 | int
|
---|
5529 | main ()
|
---|
5530 | {
|
---|
5531 | return opendir ();
|
---|
5532 | ;
|
---|
5533 | return 0;
|
---|
5534 | }
|
---|
5535 | _ACEOF
|
---|
5536 | for ac_lib in '' x; do
|
---|
5537 | if test -z "$ac_lib"; then
|
---|
5538 | ac_res="none required"
|
---|
5539 | else
|
---|
5540 | ac_res=-l$ac_lib
|
---|
5541 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5542 | fi
|
---|
5543 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5544 | ac_cv_search_opendir=$ac_res
|
---|
5545 | fi
|
---|
5546 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5547 | conftest$ac_exeext
|
---|
5548 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5549 | break
|
---|
5550 | fi
|
---|
5551 | done
|
---|
5552 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
5553 |
|
---|
5554 | else
|
---|
5555 | ac_cv_search_opendir=no
|
---|
5556 | fi
|
---|
5557 | rm conftest.$ac_ext
|
---|
5558 | LIBS=$ac_func_search_save_LIBS
|
---|
5559 | fi
|
---|
5560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5561 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5562 | ac_res=$ac_cv_search_opendir
|
---|
5563 | if test "$ac_res" != no; then :
|
---|
5564 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5565 |
|
---|
5566 | fi
|
---|
5567 |
|
---|
5568 | fi
|
---|
5569 |
|
---|
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
5571 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
5572 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
5573 | $as_echo_n "(cached) " >&6
|
---|
5574 | else
|
---|
5575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5576 | /* end confdefs.h. */
|
---|
5577 | #include <stdlib.h>
|
---|
5578 | #include <stdarg.h>
|
---|
5579 | #include <string.h>
|
---|
5580 | #include <float.h>
|
---|
5581 |
|
---|
5582 | int
|
---|
5583 | main ()
|
---|
5584 | {
|
---|
5585 |
|
---|
5586 | ;
|
---|
5587 | return 0;
|
---|
5588 | }
|
---|
5589 | _ACEOF
|
---|
5590 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5591 | ac_cv_header_stdc=yes
|
---|
5592 | else
|
---|
5593 | ac_cv_header_stdc=no
|
---|
5594 | fi
|
---|
5595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5596 |
|
---|
5597 | if test $ac_cv_header_stdc = yes; then
|
---|
5598 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5600 | /* end confdefs.h. */
|
---|
5601 | #include <string.h>
|
---|
5602 |
|
---|
5603 | _ACEOF
|
---|
5604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5605 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
5606 |
|
---|
5607 | else
|
---|
5608 | ac_cv_header_stdc=no
|
---|
5609 | fi
|
---|
5610 | rm -f conftest*
|
---|
5611 |
|
---|
5612 | fi
|
---|
5613 |
|
---|
5614 | if test $ac_cv_header_stdc = yes; then
|
---|
5615 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5617 | /* end confdefs.h. */
|
---|
5618 | #include <stdlib.h>
|
---|
5619 |
|
---|
5620 | _ACEOF
|
---|
5621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5622 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
5623 |
|
---|
5624 | else
|
---|
5625 | ac_cv_header_stdc=no
|
---|
5626 | fi
|
---|
5627 | rm -f conftest*
|
---|
5628 |
|
---|
5629 | fi
|
---|
5630 |
|
---|
5631 | if test $ac_cv_header_stdc = yes; then
|
---|
5632 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5633 | if test "$cross_compiling" = yes; then :
|
---|
5634 | :
|
---|
5635 | else
|
---|
5636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5637 | /* end confdefs.h. */
|
---|
5638 | #include <ctype.h>
|
---|
5639 | #include <stdlib.h>
|
---|
5640 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5641 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5642 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5643 | #else
|
---|
5644 | # define ISLOWER(c) \
|
---|
5645 | (('a' <= (c) && (c) <= 'i') \
|
---|
5646 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5647 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5648 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5649 | #endif
|
---|
5650 |
|
---|
5651 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5652 | int
|
---|
5653 | main ()
|
---|
5654 | {
|
---|
5655 | int i;
|
---|
5656 | for (i = 0; i < 256; i++)
|
---|
5657 | if (XOR (islower (i), ISLOWER (i))
|
---|
5658 | || toupper (i) != TOUPPER (i))
|
---|
5659 | return 2;
|
---|
5660 | return 0;
|
---|
5661 | }
|
---|
5662 | _ACEOF
|
---|
5663 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5664 |
|
---|
5665 | else
|
---|
5666 | ac_cv_header_stdc=no
|
---|
5667 | fi
|
---|
5668 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5669 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5670 | fi
|
---|
5671 |
|
---|
5672 | fi
|
---|
5673 | fi
|
---|
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
5675 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
5676 | if test $ac_cv_header_stdc = yes; then
|
---|
5677 |
|
---|
5678 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
5679 |
|
---|
5680 | fi
|
---|
5681 |
|
---|
5682 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
5683 | do :
|
---|
5684 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5685 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
5686 | eval as_val=\$$as_ac_Header
|
---|
5687 | if test "x$as_val" = x""yes; then :
|
---|
5688 | cat >>confdefs.h <<_ACEOF
|
---|
5689 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5690 | _ACEOF
|
---|
5691 |
|
---|
5692 | fi
|
---|
5693 |
|
---|
5694 | done
|
---|
5695 |
|
---|
5696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5697 | /* end confdefs.h. */
|
---|
5698 | #include <stdio.h>
|
---|
5699 |
|
---|
5700 | _ACEOF
|
---|
5701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5702 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
5703 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
5704 |
|
---|
5705 | fi
|
---|
5706 | rm -f conftest*
|
---|
5707 |
|
---|
5708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5709 | /* end confdefs.h. */
|
---|
5710 | #include <stdio.h>
|
---|
5711 |
|
---|
5712 | _ACEOF
|
---|
5713 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5714 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
5715 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
5716 |
|
---|
5717 | fi
|
---|
5718 | rm -f conftest*
|
---|
5719 |
|
---|
5720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5721 | /* end confdefs.h. */
|
---|
5722 | #include <sys/procfs.h>
|
---|
5723 |
|
---|
5724 | _ACEOF
|
---|
5725 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5726 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
5727 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
5728 |
|
---|
5729 | fi
|
---|
5730 | rm -f conftest*
|
---|
5731 |
|
---|
5732 |
|
---|
5733 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5734 | # for constant arguments. Useless!
|
---|
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
5736 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
5737 | if test "${ac_cv_working_alloca_h+set}" = set; then :
|
---|
5738 | $as_echo_n "(cached) " >&6
|
---|
5739 | else
|
---|
5740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5741 | /* end confdefs.h. */
|
---|
5742 | #include <alloca.h>
|
---|
5743 | int
|
---|
5744 | main ()
|
---|
5745 | {
|
---|
5746 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5747 | if (p) return 0;
|
---|
5748 | ;
|
---|
5749 | return 0;
|
---|
5750 | }
|
---|
5751 | _ACEOF
|
---|
5752 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5753 | ac_cv_working_alloca_h=yes
|
---|
5754 | else
|
---|
5755 | ac_cv_working_alloca_h=no
|
---|
5756 | fi
|
---|
5757 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5758 | conftest$ac_exeext conftest.$ac_ext
|
---|
5759 | fi
|
---|
5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
5761 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
5762 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5763 |
|
---|
5764 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
5765 |
|
---|
5766 | fi
|
---|
5767 |
|
---|
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
5769 | $as_echo_n "checking for alloca... " >&6; }
|
---|
5770 | if test "${ac_cv_func_alloca_works+set}" = set; then :
|
---|
5771 | $as_echo_n "(cached) " >&6
|
---|
5772 | else
|
---|
5773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5774 | /* end confdefs.h. */
|
---|
5775 | #ifdef __GNUC__
|
---|
5776 | # define alloca __builtin_alloca
|
---|
5777 | #else
|
---|
5778 | # ifdef _MSC_VER
|
---|
5779 | # include <malloc.h>
|
---|
5780 | # define alloca _alloca
|
---|
5781 | # else
|
---|
5782 | # ifdef HAVE_ALLOCA_H
|
---|
5783 | # include <alloca.h>
|
---|
5784 | # else
|
---|
5785 | # ifdef _AIX
|
---|
5786 | #pragma alloca
|
---|
5787 | # else
|
---|
5788 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5789 | char *alloca ();
|
---|
5790 | # endif
|
---|
5791 | # endif
|
---|
5792 | # endif
|
---|
5793 | # endif
|
---|
5794 | #endif
|
---|
5795 |
|
---|
5796 | int
|
---|
5797 | main ()
|
---|
5798 | {
|
---|
5799 | char *p = (char *) alloca (1);
|
---|
5800 | if (p) return 0;
|
---|
5801 | ;
|
---|
5802 | return 0;
|
---|
5803 | }
|
---|
5804 | _ACEOF
|
---|
5805 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5806 | ac_cv_func_alloca_works=yes
|
---|
5807 | else
|
---|
5808 | ac_cv_func_alloca_works=no
|
---|
5809 | fi
|
---|
5810 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5811 | conftest$ac_exeext conftest.$ac_ext
|
---|
5812 | fi
|
---|
5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
5814 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
5815 |
|
---|
5816 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5817 |
|
---|
5818 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
5819 |
|
---|
5820 | else
|
---|
5821 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5822 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5823 | # contain a buggy version. If you still want to use their alloca,
|
---|
5824 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5825 |
|
---|
5826 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
5827 |
|
---|
5828 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
5829 |
|
---|
5830 |
|
---|
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5832 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
5833 | if test "${ac_cv_os_cray+set}" = set; then :
|
---|
5834 | $as_echo_n "(cached) " >&6
|
---|
5835 | else
|
---|
5836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5837 | /* end confdefs.h. */
|
---|
5838 | #if defined CRAY && ! defined CRAY2
|
---|
5839 | webecray
|
---|
5840 | #else
|
---|
5841 | wenotbecray
|
---|
5842 | #endif
|
---|
5843 |
|
---|
5844 | _ACEOF
|
---|
5845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5846 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
5847 | ac_cv_os_cray=yes
|
---|
5848 | else
|
---|
5849 | ac_cv_os_cray=no
|
---|
5850 | fi
|
---|
5851 | rm -f conftest*
|
---|
5852 |
|
---|
5853 | fi
|
---|
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
5855 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
5856 | if test $ac_cv_os_cray = yes; then
|
---|
5857 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5858 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5859 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
5860 | eval as_val=\$$as_ac_var
|
---|
5861 | if test "x$as_val" = x""yes; then :
|
---|
5862 |
|
---|
5863 | cat >>confdefs.h <<_ACEOF
|
---|
5864 | #define CRAY_STACKSEG_END $ac_func
|
---|
5865 | _ACEOF
|
---|
5866 |
|
---|
5867 | break
|
---|
5868 | fi
|
---|
5869 |
|
---|
5870 | done
|
---|
5871 | fi
|
---|
5872 |
|
---|
5873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
5874 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
5875 | if test "${ac_cv_c_stack_direction+set}" = set; then :
|
---|
5876 | $as_echo_n "(cached) " >&6
|
---|
5877 | else
|
---|
5878 | if test "$cross_compiling" = yes; then :
|
---|
5879 | ac_cv_c_stack_direction=0
|
---|
5880 | else
|
---|
5881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5882 | /* end confdefs.h. */
|
---|
5883 | $ac_includes_default
|
---|
5884 | int
|
---|
5885 | find_stack_direction ()
|
---|
5886 | {
|
---|
5887 | static char *addr = 0;
|
---|
5888 | auto char dummy;
|
---|
5889 | if (addr == 0)
|
---|
5890 | {
|
---|
5891 | addr = &dummy;
|
---|
5892 | return find_stack_direction ();
|
---|
5893 | }
|
---|
5894 | else
|
---|
5895 | return (&dummy > addr) ? 1 : -1;
|
---|
5896 | }
|
---|
5897 |
|
---|
5898 | int
|
---|
5899 | main ()
|
---|
5900 | {
|
---|
5901 | return find_stack_direction () < 0;
|
---|
5902 | }
|
---|
5903 | _ACEOF
|
---|
5904 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5905 | ac_cv_c_stack_direction=1
|
---|
5906 | else
|
---|
5907 | ac_cv_c_stack_direction=-1
|
---|
5908 | fi
|
---|
5909 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5910 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5911 | fi
|
---|
5912 |
|
---|
5913 | fi
|
---|
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
5915 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
5916 | cat >>confdefs.h <<_ACEOF
|
---|
5917 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5918 | _ACEOF
|
---|
5919 |
|
---|
5920 |
|
---|
5921 | fi
|
---|
5922 |
|
---|
5923 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
5925 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
5926 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
|
---|
5927 | $as_echo_n "(cached) " >&6
|
---|
5928 | else
|
---|
5929 | ac_pattern="Autoconf.*'x'"
|
---|
5930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5931 | /* end confdefs.h. */
|
---|
5932 | #include <sgtty.h>
|
---|
5933 | Autoconf TIOCGETP
|
---|
5934 | _ACEOF
|
---|
5935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5936 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5937 | ac_cv_prog_gcc_traditional=yes
|
---|
5938 | else
|
---|
5939 | ac_cv_prog_gcc_traditional=no
|
---|
5940 | fi
|
---|
5941 | rm -f conftest*
|
---|
5942 |
|
---|
5943 |
|
---|
5944 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5946 | /* end confdefs.h. */
|
---|
5947 | #include <termio.h>
|
---|
5948 | Autoconf TCGETA
|
---|
5949 | _ACEOF
|
---|
5950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5951 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5952 | ac_cv_prog_gcc_traditional=yes
|
---|
5953 | fi
|
---|
5954 | rm -f conftest*
|
---|
5955 |
|
---|
5956 | fi
|
---|
5957 | fi
|
---|
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5959 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
5960 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5961 | CC="$CC -traditional"
|
---|
5962 | fi
|
---|
5963 | fi
|
---|
5964 |
|
---|
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
5966 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
5967 | if test "${ac_cv_type_signal+set}" = set; then :
|
---|
5968 | $as_echo_n "(cached) " >&6
|
---|
5969 | else
|
---|
5970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5971 | /* end confdefs.h. */
|
---|
5972 | #include <sys/types.h>
|
---|
5973 | #include <signal.h>
|
---|
5974 |
|
---|
5975 | int
|
---|
5976 | main ()
|
---|
5977 | {
|
---|
5978 | return *(signal (0, 0)) (0) == 1;
|
---|
5979 | ;
|
---|
5980 | return 0;
|
---|
5981 | }
|
---|
5982 | _ACEOF
|
---|
5983 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5984 | ac_cv_type_signal=int
|
---|
5985 | else
|
---|
5986 | ac_cv_type_signal=void
|
---|
5987 | fi
|
---|
5988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5989 | fi
|
---|
5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
5991 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
5992 |
|
---|
5993 | cat >>confdefs.h <<_ACEOF
|
---|
5994 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
5995 | _ACEOF
|
---|
5996 |
|
---|
5997 |
|
---|
5998 | for ac_func in vprintf
|
---|
5999 | do :
|
---|
6000 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
6001 | if test "x$ac_cv_func_vprintf" = x""yes; then :
|
---|
6002 | cat >>confdefs.h <<_ACEOF
|
---|
6003 | #define HAVE_VPRINTF 1
|
---|
6004 | _ACEOF
|
---|
6005 |
|
---|
6006 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
6007 | if test "x$ac_cv_func__doprnt" = x""yes; then :
|
---|
6008 |
|
---|
6009 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
6010 |
|
---|
6011 | fi
|
---|
6012 |
|
---|
6013 | fi
|
---|
6014 | done
|
---|
6015 |
|
---|
6016 |
|
---|
6017 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6018 | do :
|
---|
6019 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6020 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
6021 | eval as_val=\$$as_ac_var
|
---|
6022 | if test "x$as_val" = x""yes; then :
|
---|
6023 | cat >>confdefs.h <<_ACEOF
|
---|
6024 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6025 | _ACEOF
|
---|
6026 |
|
---|
6027 | fi
|
---|
6028 | done
|
---|
6029 |
|
---|
6030 | for ac_func in ftruncate strstr strcasecmp
|
---|
6031 | do :
|
---|
6032 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6033 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
6034 | eval as_val=\$$as_ac_var
|
---|
6035 | if test "x$as_val" = x""yes; then :
|
---|
6036 | cat >>confdefs.h <<_ACEOF
|
---|
6037 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6038 | _ACEOF
|
---|
6039 |
|
---|
6040 | else
|
---|
6041 | case " $LIBOBJS " in
|
---|
6042 | *" $ac_func.$ac_objext "* ) ;;
|
---|
6043 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
6044 | ;;
|
---|
6045 | esac
|
---|
6046 |
|
---|
6047 | fi
|
---|
6048 | done
|
---|
6049 |
|
---|
6050 |
|
---|
6051 |
|
---|
6052 |
|
---|
6053 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
6054 | if test "x$ac_cv_func_textdomain" = x""yes; then :
|
---|
6055 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
6056 |
|
---|
6057 | fi
|
---|
6058 |
|
---|
6059 |
|
---|
6060 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
6061 | # a non-standard Path
|
---|
6062 | # is there a better way to do this??
|
---|
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
6064 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
6065 | # set defaults
|
---|
6066 | JNIINC=""
|
---|
6067 | JNISUFFIX="so"
|
---|
6068 | JNIFLAGS="-shared"
|
---|
6069 |
|
---|
6070 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
6072 | $as_echo "Darwin" >&6; }
|
---|
6073 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
6074 | JNISUFFIX="jnilib"
|
---|
6075 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
6076 | fi
|
---|
6077 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
6079 | $as_echo "Solaris" >&6; }
|
---|
6080 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
6081 | fi
|
---|
6082 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
6084 | $as_echo "Linux" >&6; }
|
---|
6085 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
6086 | fi
|
---|
6087 |
|
---|
6088 |
|
---|
6089 |
|
---|
6090 |
|
---|
6091 |
|
---|
6092 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6093 | # ---------------------------------------------------------------------------
|
---|
6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
6095 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
6096 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6098 | $as_echo "yes" >&6; }
|
---|
6099 | case " $LIBOBJS " in
|
---|
6100 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6101 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
6102 | ;;
|
---|
6103 | esac
|
---|
6104 |
|
---|
6105 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
6106 |
|
---|
6107 | else
|
---|
6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6109 | $as_echo "no" >&6; }
|
---|
6110 | for ac_func in valloc
|
---|
6111 | do :
|
---|
6112 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
6113 | if test "x$ac_cv_func_valloc" = x""yes; then :
|
---|
6114 | cat >>confdefs.h <<_ACEOF
|
---|
6115 | #define HAVE_VALLOC 1
|
---|
6116 | _ACEOF
|
---|
6117 |
|
---|
6118 | fi
|
---|
6119 | done
|
---|
6120 |
|
---|
6121 | fi
|
---|
6122 |
|
---|
6123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
6124 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
6125 |
|
---|
6126 | # Check whether --with-dmalloc was given.
|
---|
6127 | if test "${with_dmalloc+set}" = set; then :
|
---|
6128 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6130 | $as_echo "yes" >&6; }
|
---|
6131 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
6132 |
|
---|
6133 | LIBS="$LIBS -ldmalloc"
|
---|
6134 | LDFLAGS="$LDFLAGS -g"
|
---|
6135 | else
|
---|
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6137 | $as_echo "no" >&6; }
|
---|
6138 | fi
|
---|
6139 | else
|
---|
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6141 | $as_echo "no" >&6; }
|
---|
6142 | fi
|
---|
6143 |
|
---|
6144 |
|
---|
6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
6146 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
6147 |
|
---|
6148 | # Check whether --with-regex was given.
|
---|
6149 | if test "${with_regex+set}" = set; then :
|
---|
6150 | withval=$with_regex; if test "$withval" = yes; then
|
---|
6151 | ac_with_regex=1
|
---|
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
6153 | $as_echo "regex" >&6; }
|
---|
6154 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
6155 |
|
---|
6156 | case " $LIBOBJS " in
|
---|
6157 | *" regex.$ac_objext "* ) ;;
|
---|
6158 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6159 | ;;
|
---|
6160 | esac
|
---|
6161 |
|
---|
6162 | fi
|
---|
6163 | fi
|
---|
6164 |
|
---|
6165 | if test -z "$ac_with_regex"; then
|
---|
6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
6167 | $as_echo "rx" >&6; }
|
---|
6168 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
6169 | if test "x$ac_cv_func_re_rx_search" = x""yes; then :
|
---|
6170 |
|
---|
6171 | else
|
---|
6172 | # The cast to long int works around a bug in the HP C Compiler
|
---|
6173 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
6174 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
6175 | # This bug is HP SR number 8606223364.
|
---|
6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
|
---|
6177 | $as_echo_n "checking size of unsigned char *... " >&6; }
|
---|
6178 | if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then :
|
---|
6179 | $as_echo_n "(cached) " >&6
|
---|
6180 | else
|
---|
6181 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then :
|
---|
6182 |
|
---|
6183 | else
|
---|
6184 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
6185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
6186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
6187 | { as_fn_set_status 77
|
---|
6188 | as_fn_error "cannot compute sizeof (unsigned char *)
|
---|
6189 | See \`config.log' for more details." "$LINENO" 5; }; }
|
---|
6190 | else
|
---|
6191 | ac_cv_sizeof_unsigned_char_p=0
|
---|
6192 | fi
|
---|
6193 | fi
|
---|
6194 |
|
---|
6195 | fi
|
---|
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
6197 | $as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
|
---|
6198 |
|
---|
6199 |
|
---|
6200 |
|
---|
6201 | cat >>confdefs.h <<_ACEOF
|
---|
6202 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
6203 | _ACEOF
|
---|
6204 |
|
---|
6205 |
|
---|
6206 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
6207 | then
|
---|
6208 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I'm forcing you to use regex because I can't
|
---|
6209 | find a local rx library and the one included with this
|
---|
6210 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
6211 | $as_echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
6212 | find a local rx library and the one included with this
|
---|
6213 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
6214 | case " $LIBOBJS " in
|
---|
6215 | *" regex.$ac_objext "* ) ;;
|
---|
6216 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6217 | ;;
|
---|
6218 | esac
|
---|
6219 |
|
---|
6220 | else
|
---|
6221 | case " $LIBOBJS " in
|
---|
6222 | *" rx.$ac_objext "* ) ;;
|
---|
6223 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
6224 | ;;
|
---|
6225 | esac
|
---|
6226 |
|
---|
6227 | fi
|
---|
6228 |
|
---|
6229 | fi
|
---|
6230 |
|
---|
6231 | fi
|
---|
6232 |
|
---|
6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU readline requested" >&5
|
---|
6234 | $as_echo_n "checking whether GNU readline requested... " >&6; }
|
---|
6235 |
|
---|
6236 | # Check whether --with-gnu_readline was given.
|
---|
6237 | if test "${with_gnu_readline+set}" = set; then :
|
---|
6238 | withval=$with_gnu_readline; if test "$withval" = yes; then
|
---|
6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6240 | $as_echo "yes" >&6; }
|
---|
6241 | ac_with_gnu_readline=1
|
---|
6242 | else
|
---|
6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6244 | $as_echo "no" >&6; }
|
---|
6245 | fi
|
---|
6246 | else
|
---|
6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6248 | $as_echo "no" >&6; }
|
---|
6249 | fi
|
---|
6250 |
|
---|
6251 |
|
---|
6252 | if test -n "$ac_with_gnu_readline"; then
|
---|
6253 | ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
|
---|
6254 | if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
|
---|
6255 | ac_mg_readline_header_found=1
|
---|
6256 | else
|
---|
6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline headers; configuring without \
|
---|
6258 | GNU readline support" >&5
|
---|
6259 | $as_echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
6260 | GNU readline support" >&2;}
|
---|
6261 | fi
|
---|
6262 |
|
---|
6263 |
|
---|
6264 | if test -n "$ac_mg_readline_header_found"; then
|
---|
6265 | # first check whether we can find the readline library itself
|
---|
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
|
---|
6267 | $as_echo_n "checking for main in -lreadline... " >&6; }
|
---|
6268 | if test "${ac_cv_lib_readline_main+set}" = set; then :
|
---|
6269 | $as_echo_n "(cached) " >&6
|
---|
6270 | else
|
---|
6271 | ac_check_lib_save_LIBS=$LIBS
|
---|
6272 | LIBS="-lreadline $LIBS"
|
---|
6273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6274 | /* end confdefs.h. */
|
---|
6275 |
|
---|
6276 |
|
---|
6277 | int
|
---|
6278 | main ()
|
---|
6279 | {
|
---|
6280 | return main ();
|
---|
6281 | ;
|
---|
6282 | return 0;
|
---|
6283 | }
|
---|
6284 | _ACEOF
|
---|
6285 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6286 | ac_cv_lib_readline_main=yes
|
---|
6287 | else
|
---|
6288 | ac_cv_lib_readline_main=no
|
---|
6289 | fi
|
---|
6290 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6291 | conftest$ac_exeext conftest.$ac_ext
|
---|
6292 | LIBS=$ac_check_lib_save_LIBS
|
---|
6293 | fi
|
---|
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
|
---|
6295 | $as_echo "$ac_cv_lib_readline_main" >&6; }
|
---|
6296 | if test "x$ac_cv_lib_readline_main" = x""yes; then :
|
---|
6297 | ac_mg_readline_lib_found=1
|
---|
6298 | $as_echo "#define WITH_GNU_READLINE 1" >>confdefs.h
|
---|
6299 |
|
---|
6300 | LIBS="$LIBS -lreadline"
|
---|
6301 | else
|
---|
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline library; configuring without \
|
---|
6303 | GNU readline support" >&5
|
---|
6304 | $as_echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
6305 | GNU readline support" >&2;}
|
---|
6306 | fi
|
---|
6307 |
|
---|
6308 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
6309 | # on some systems, readline needs curses. It is difficult to
|
---|
6310 | # determine whether this is necessary on the current system,
|
---|
6311 | # since other undefined symbols can be turned up by an
|
---|
6312 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
6313 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
6314 | # we just bung it on and hope for the best.
|
---|
6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
|
---|
6316 | $as_echo_n "checking for main in -lcurses... " >&6; }
|
---|
6317 | if test "${ac_cv_lib_curses_main+set}" = set; then :
|
---|
6318 | $as_echo_n "(cached) " >&6
|
---|
6319 | else
|
---|
6320 | ac_check_lib_save_LIBS=$LIBS
|
---|
6321 | LIBS="-lcurses $LIBS"
|
---|
6322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6323 | /* end confdefs.h. */
|
---|
6324 |
|
---|
6325 |
|
---|
6326 | int
|
---|
6327 | main ()
|
---|
6328 | {
|
---|
6329 | return main ();
|
---|
6330 | ;
|
---|
6331 | return 0;
|
---|
6332 | }
|
---|
6333 | _ACEOF
|
---|
6334 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6335 | ac_cv_lib_curses_main=yes
|
---|
6336 | else
|
---|
6337 | ac_cv_lib_curses_main=no
|
---|
6338 | fi
|
---|
6339 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6340 | conftest$ac_exeext conftest.$ac_ext
|
---|
6341 | LIBS=$ac_check_lib_save_LIBS
|
---|
6342 | fi
|
---|
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
|
---|
6344 | $as_echo "$ac_cv_lib_curses_main" >&6; }
|
---|
6345 | if test "x$ac_cv_lib_curses_main" = x""yes; then :
|
---|
6346 | LIBS="$LIBS -lcurses"
|
---|
6347 | fi
|
---|
6348 |
|
---|
6349 | fi
|
---|
6350 | fi
|
---|
6351 | fi
|
---|
6352 |
|
---|
6353 |
|
---|
6354 | # text for endianness
|
---|
6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
6356 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
6357 | if test "${ac_cv_c_bigendian+set}" = set; then :
|
---|
6358 | $as_echo_n "(cached) " >&6
|
---|
6359 | else
|
---|
6360 | ac_cv_c_bigendian=unknown
|
---|
6361 | # See if we're dealing with a universal compiler.
|
---|
6362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6363 | /* end confdefs.h. */
|
---|
6364 | #ifndef __APPLE_CC__
|
---|
6365 | not a universal capable compiler
|
---|
6366 | #endif
|
---|
6367 | typedef int dummy;
|
---|
6368 |
|
---|
6369 | _ACEOF
|
---|
6370 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6371 |
|
---|
6372 | # Check for potential -arch flags. It is not universal unless
|
---|
6373 | # there are at least two -arch flags with different values.
|
---|
6374 | ac_arch=
|
---|
6375 | ac_prev=
|
---|
6376 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
6377 | if test -n "$ac_prev"; then
|
---|
6378 | case $ac_word in
|
---|
6379 | i?86 | x86_64 | ppc | ppc64)
|
---|
6380 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
6381 | ac_arch=$ac_word
|
---|
6382 | else
|
---|
6383 | ac_cv_c_bigendian=universal
|
---|
6384 | break
|
---|
6385 | fi
|
---|
6386 | ;;
|
---|
6387 | esac
|
---|
6388 | ac_prev=
|
---|
6389 | elif test "x$ac_word" = "x-arch"; then
|
---|
6390 | ac_prev=arch
|
---|
6391 | fi
|
---|
6392 | done
|
---|
6393 | fi
|
---|
6394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6395 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6396 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
6397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6398 | /* end confdefs.h. */
|
---|
6399 | #include <sys/types.h>
|
---|
6400 | #include <sys/param.h>
|
---|
6401 |
|
---|
6402 | int
|
---|
6403 | main ()
|
---|
6404 | {
|
---|
6405 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
6406 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
6407 | && LITTLE_ENDIAN)
|
---|
6408 | bogus endian macros
|
---|
6409 | #endif
|
---|
6410 |
|
---|
6411 | ;
|
---|
6412 | return 0;
|
---|
6413 | }
|
---|
6414 | _ACEOF
|
---|
6415 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6416 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
6417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6418 | /* end confdefs.h. */
|
---|
6419 | #include <sys/types.h>
|
---|
6420 | #include <sys/param.h>
|
---|
6421 |
|
---|
6422 | int
|
---|
6423 | main ()
|
---|
6424 | {
|
---|
6425 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
6426 | not big endian
|
---|
6427 | #endif
|
---|
6428 |
|
---|
6429 | ;
|
---|
6430 | return 0;
|
---|
6431 | }
|
---|
6432 | _ACEOF
|
---|
6433 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6434 | ac_cv_c_bigendian=yes
|
---|
6435 | else
|
---|
6436 | ac_cv_c_bigendian=no
|
---|
6437 | fi
|
---|
6438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6439 | fi
|
---|
6440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6441 | fi
|
---|
6442 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6443 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
6444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6445 | /* end confdefs.h. */
|
---|
6446 | #include <limits.h>
|
---|
6447 |
|
---|
6448 | int
|
---|
6449 | main ()
|
---|
6450 | {
|
---|
6451 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
6452 | bogus endian macros
|
---|
6453 | #endif
|
---|
6454 |
|
---|
6455 | ;
|
---|
6456 | return 0;
|
---|
6457 | }
|
---|
6458 | _ACEOF
|
---|
6459 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6460 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
6461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6462 | /* end confdefs.h. */
|
---|
6463 | #include <limits.h>
|
---|
6464 |
|
---|
6465 | int
|
---|
6466 | main ()
|
---|
6467 | {
|
---|
6468 | #ifndef _BIG_ENDIAN
|
---|
6469 | not big endian
|
---|
6470 | #endif
|
---|
6471 |
|
---|
6472 | ;
|
---|
6473 | return 0;
|
---|
6474 | }
|
---|
6475 | _ACEOF
|
---|
6476 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6477 | ac_cv_c_bigendian=yes
|
---|
6478 | else
|
---|
6479 | ac_cv_c_bigendian=no
|
---|
6480 | fi
|
---|
6481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6482 | fi
|
---|
6483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6484 | fi
|
---|
6485 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6486 | # Compile a test program.
|
---|
6487 | if test "$cross_compiling" = yes; then :
|
---|
6488 | # Try to guess by grepping values from an object file.
|
---|
6489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6490 | /* end confdefs.h. */
|
---|
6491 | short int ascii_mm[] =
|
---|
6492 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
6493 | short int ascii_ii[] =
|
---|
6494 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
6495 | int use_ascii (int i) {
|
---|
6496 | return ascii_mm[i] + ascii_ii[i];
|
---|
6497 | }
|
---|
6498 | short int ebcdic_ii[] =
|
---|
6499 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
6500 | short int ebcdic_mm[] =
|
---|
6501 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
6502 | int use_ebcdic (int i) {
|
---|
6503 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
6504 | }
|
---|
6505 | extern int foo;
|
---|
6506 |
|
---|
6507 | int
|
---|
6508 | main ()
|
---|
6509 | {
|
---|
6510 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
6511 | ;
|
---|
6512 | return 0;
|
---|
6513 | }
|
---|
6514 | _ACEOF
|
---|
6515 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6516 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
6517 | ac_cv_c_bigendian=yes
|
---|
6518 | fi
|
---|
6519 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
6520 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
6521 | ac_cv_c_bigendian=no
|
---|
6522 | else
|
---|
6523 | # finding both strings is unlikely to happen, but who knows?
|
---|
6524 | ac_cv_c_bigendian=unknown
|
---|
6525 | fi
|
---|
6526 | fi
|
---|
6527 | fi
|
---|
6528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6529 | else
|
---|
6530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6531 | /* end confdefs.h. */
|
---|
6532 | $ac_includes_default
|
---|
6533 | int
|
---|
6534 | main ()
|
---|
6535 | {
|
---|
6536 |
|
---|
6537 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
6538 | union
|
---|
6539 | {
|
---|
6540 | long int l;
|
---|
6541 | char c[sizeof (long int)];
|
---|
6542 | } u;
|
---|
6543 | u.l = 1;
|
---|
6544 | return u.c[sizeof (long int) - 1] == 1;
|
---|
6545 |
|
---|
6546 | ;
|
---|
6547 | return 0;
|
---|
6548 | }
|
---|
6549 | _ACEOF
|
---|
6550 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6551 | ac_cv_c_bigendian=no
|
---|
6552 | else
|
---|
6553 | ac_cv_c_bigendian=yes
|
---|
6554 | fi
|
---|
6555 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6556 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6557 | fi
|
---|
6558 |
|
---|
6559 | fi
|
---|
6560 | fi
|
---|
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
6562 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
6563 | case $ac_cv_c_bigendian in #(
|
---|
6564 | yes)
|
---|
6565 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
6566 | ;; #(
|
---|
6567 | no)
|
---|
6568 | ;; #(
|
---|
6569 | universal)
|
---|
6570 |
|
---|
6571 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
6572 |
|
---|
6573 | ;; #(
|
---|
6574 | *)
|
---|
6575 | as_fn_error "unknown endianness
|
---|
6576 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
6577 | esac
|
---|
6578 |
|
---|
6579 |
|
---|
6580 | # ---------------------------------------------------------------------------
|
---|
6581 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6582 | case " $LIBOBJS " in
|
---|
6583 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6584 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
6585 | ;;
|
---|
6586 | esac
|
---|
6587 |
|
---|
6588 | case " $LIBOBJS " in
|
---|
6589 | *" error.$ac_objext "* ) ;;
|
---|
6590 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6591 | ;;
|
---|
6592 | esac
|
---|
6593 |
|
---|
6594 | fi
|
---|
6595 |
|
---|
6596 |
|
---|
6597 | # ---------------------------------------------------------------------------
|
---|
6598 | # see if the user wants to override use of long long
|
---|
6599 | # Check whether --enable-override-longlong was given.
|
---|
6600 | if test "${enable_override_longlong+set}" = set; then :
|
---|
6601 | enableval=$enable_override_longlong; $as_echo "#define DISABLE_LONG_LONG 1" >>confdefs.h
|
---|
6602 |
|
---|
6603 | fi
|
---|
6604 |
|
---|
6605 |
|
---|
6606 |
|
---|
6607 | # ---------------------------------------------------------------------------
|
---|
6608 |
|
---|
6609 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
6610 |
|
---|
6611 | ac_config_commands="$ac_config_commands default"
|
---|
6612 |
|
---|
6613 | cat >confcache <<\_ACEOF
|
---|
6614 | # This file is a shell script that caches the results of configure
|
---|
6615 | # tests run on this system so they can be shared between configure
|
---|
6616 | # scripts and configure runs, see configure's option --config-cache.
|
---|
6617 | # It is not useful on other systems. If it contains results you don't
|
---|
6618 | # want to keep, you may remove or edit it.
|
---|
6619 | #
|
---|
6620 | # config.status only pays attention to the cache file if you give it
|
---|
6621 | # the --recheck option to rerun configure.
|
---|
6622 | #
|
---|
6623 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
6624 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
6625 | # following values.
|
---|
6626 |
|
---|
6627 | _ACEOF
|
---|
6628 |
|
---|
6629 | # The following way of writing the cache mishandles newlines in values,
|
---|
6630 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6631 | # So, we kill variables containing newlines.
|
---|
6632 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6633 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6634 | (
|
---|
6635 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
6636 | eval ac_val=\$$ac_var
|
---|
6637 | case $ac_val in #(
|
---|
6638 | *${as_nl}*)
|
---|
6639 | case $ac_var in #(
|
---|
6640 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
6641 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
6642 | esac
|
---|
6643 | case $ac_var in #(
|
---|
6644 | _ | IFS | as_nl) ;; #(
|
---|
6645 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
6646 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
6647 | esac ;;
|
---|
6648 | esac
|
---|
6649 | done
|
---|
6650 |
|
---|
6651 | (set) 2>&1 |
|
---|
6652 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
6653 | *${as_nl}ac_space=\ *)
|
---|
6654 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
6655 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
6656 | sed -n \
|
---|
6657 | "s/'/'\\\\''/g;
|
---|
6658 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
6659 | ;; #(
|
---|
6660 | *)
|
---|
6661 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6662 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
6663 | ;;
|
---|
6664 | esac |
|
---|
6665 | sort
|
---|
6666 | ) |
|
---|
6667 | sed '
|
---|
6668 | /^ac_cv_env_/b end
|
---|
6669 | t clear
|
---|
6670 | :clear
|
---|
6671 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
6672 | t end
|
---|
6673 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
6674 | :end' >>confcache
|
---|
6675 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
6676 | if test -w "$cache_file"; then
|
---|
6677 | test "x$cache_file" != "x/dev/null" &&
|
---|
6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
6679 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
6680 | cat confcache >$cache_file
|
---|
6681 | else
|
---|
6682 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
6683 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
6684 | fi
|
---|
6685 | fi
|
---|
6686 | rm -f confcache
|
---|
6687 |
|
---|
6688 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6689 | # Let make expand exec_prefix.
|
---|
6690 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6691 |
|
---|
6692 | DEFS=-DHAVE_CONFIG_H
|
---|
6693 |
|
---|
6694 | ac_libobjs=
|
---|
6695 | ac_ltlibobjs=
|
---|
6696 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
6697 | # 1. Remove the extension, and $U if already installed.
|
---|
6698 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
6699 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
6700 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
6701 | # will be set to the directory where LIBOBJS objects are built.
|
---|
6702 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
6703 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
6704 | done
|
---|
6705 | LIBOBJS=$ac_libobjs
|
---|
6706 |
|
---|
6707 | LTLIBOBJS=$ac_ltlibobjs
|
---|
6708 |
|
---|
6709 |
|
---|
6710 |
|
---|
6711 |
|
---|
6712 | : ${CONFIG_STATUS=./config.status}
|
---|
6713 | ac_write_fail=0
|
---|
6714 | ac_clean_files_save=$ac_clean_files
|
---|
6715 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
6717 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
6718 | as_write_fail=0
|
---|
6719 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
6720 | #! $SHELL
|
---|
6721 | # Generated by $as_me.
|
---|
6722 | # Run this file to recreate the current configuration.
|
---|
6723 | # Compiler output produced by configure, useful for debugging
|
---|
6724 | # configure, is in config.log if it exists.
|
---|
6725 |
|
---|
6726 | debug=false
|
---|
6727 | ac_cs_recheck=false
|
---|
6728 | ac_cs_silent=false
|
---|
6729 |
|
---|
6730 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
6731 | export SHELL
|
---|
6732 | _ASEOF
|
---|
6733 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
6734 | ## -------------------- ##
|
---|
6735 | ## M4sh Initialization. ##
|
---|
6736 | ## -------------------- ##
|
---|
6737 |
|
---|
6738 | # Be more Bourne compatible
|
---|
6739 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
6740 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
6741 | emulate sh
|
---|
6742 | NULLCMD=:
|
---|
6743 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
6744 | # is contrary to our usage. Disable this feature.
|
---|
6745 | alias -g '${1+"$@"}'='"$@"'
|
---|
6746 | setopt NO_GLOB_SUBST
|
---|
6747 | else
|
---|
6748 | case `(set -o) 2>/dev/null` in #(
|
---|
6749 | *posix*) :
|
---|
6750 | set -o posix ;; #(
|
---|
6751 | *) :
|
---|
6752 | ;;
|
---|
6753 | esac
|
---|
6754 | fi
|
---|
6755 |
|
---|
6756 |
|
---|
6757 | as_nl='
|
---|
6758 | '
|
---|
6759 | export as_nl
|
---|
6760 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
6761 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
6762 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6763 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6764 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
6765 | # but without wasting forks for bash or zsh.
|
---|
6766 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
6767 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6768 | as_echo='print -r --'
|
---|
6769 | as_echo_n='print -rn --'
|
---|
6770 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6771 | as_echo='printf %s\n'
|
---|
6772 | as_echo_n='printf %s'
|
---|
6773 | else
|
---|
6774 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
6775 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
6776 | as_echo_n='/usr/ucb/echo -n'
|
---|
6777 | else
|
---|
6778 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
6779 | as_echo_n_body='eval
|
---|
6780 | arg=$1;
|
---|
6781 | case $arg in #(
|
---|
6782 | *"$as_nl"*)
|
---|
6783 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
6784 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
6785 | esac;
|
---|
6786 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
6787 | '
|
---|
6788 | export as_echo_n_body
|
---|
6789 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
6790 | fi
|
---|
6791 | export as_echo_body
|
---|
6792 | as_echo='sh -c $as_echo_body as_echo'
|
---|
6793 | fi
|
---|
6794 |
|
---|
6795 | # The user is always right.
|
---|
6796 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
6797 | PATH_SEPARATOR=:
|
---|
6798 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
6799 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
6800 | PATH_SEPARATOR=';'
|
---|
6801 | }
|
---|
6802 | fi
|
---|
6803 |
|
---|
6804 |
|
---|
6805 | # IFS
|
---|
6806 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
6807 | # there to prevent editors from complaining about space-tab.
|
---|
6808 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
6809 | # splitting by setting IFS to empty value.)
|
---|
6810 | IFS=" "" $as_nl"
|
---|
6811 |
|
---|
6812 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
6813 | case $0 in #((
|
---|
6814 | *[\\/]* ) as_myself=$0 ;;
|
---|
6815 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6816 | for as_dir in $PATH
|
---|
6817 | do
|
---|
6818 | IFS=$as_save_IFS
|
---|
6819 | test -z "$as_dir" && as_dir=.
|
---|
6820 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
6821 | done
|
---|
6822 | IFS=$as_save_IFS
|
---|
6823 |
|
---|
6824 | ;;
|
---|
6825 | esac
|
---|
6826 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
6827 | # in which case we are not to be found in the path.
|
---|
6828 | if test "x$as_myself" = x; then
|
---|
6829 | as_myself=$0
|
---|
6830 | fi
|
---|
6831 | if test ! -f "$as_myself"; then
|
---|
6832 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
6833 | exit 1
|
---|
6834 | fi
|
---|
6835 |
|
---|
6836 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
6837 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
6838 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
6839 | # trigger a bug in pdksh 5.2.14.
|
---|
6840 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
6841 | do eval test x\${$as_var+set} = xset \
|
---|
6842 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
6843 | done
|
---|
6844 | PS1='$ '
|
---|
6845 | PS2='> '
|
---|
6846 | PS4='+ '
|
---|
6847 |
|
---|
6848 | # NLS nuisances.
|
---|
6849 | LC_ALL=C
|
---|
6850 | export LC_ALL
|
---|
6851 | LANGUAGE=C
|
---|
6852 | export LANGUAGE
|
---|
6853 |
|
---|
6854 | # CDPATH.
|
---|
6855 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
6856 |
|
---|
6857 |
|
---|
6858 | # as_fn_error ERROR [LINENO LOG_FD]
|
---|
6859 | # ---------------------------------
|
---|
6860 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
6861 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
6862 | # script with status $?, using 1 if that was 0.
|
---|
6863 | as_fn_error ()
|
---|
6864 | {
|
---|
6865 | as_status=$?; test $as_status -eq 0 && as_status=1
|
---|
6866 | if test "$3"; then
|
---|
6867 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
6868 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
---|
6869 | fi
|
---|
6870 | $as_echo "$as_me: error: $1" >&2
|
---|
6871 | as_fn_exit $as_status
|
---|
6872 | } # as_fn_error
|
---|
6873 |
|
---|
6874 |
|
---|
6875 | # as_fn_set_status STATUS
|
---|
6876 | # -----------------------
|
---|
6877 | # Set $? to STATUS, without forking.
|
---|
6878 | as_fn_set_status ()
|
---|
6879 | {
|
---|
6880 | return $1
|
---|
6881 | } # as_fn_set_status
|
---|
6882 |
|
---|
6883 | # as_fn_exit STATUS
|
---|
6884 | # -----------------
|
---|
6885 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
6886 | as_fn_exit ()
|
---|
6887 | {
|
---|
6888 | set +e
|
---|
6889 | as_fn_set_status $1
|
---|
6890 | exit $1
|
---|
6891 | } # as_fn_exit
|
---|
6892 |
|
---|
6893 | # as_fn_unset VAR
|
---|
6894 | # ---------------
|
---|
6895 | # Portably unset VAR.
|
---|
6896 | as_fn_unset ()
|
---|
6897 | {
|
---|
6898 | { eval $1=; unset $1;}
|
---|
6899 | }
|
---|
6900 | as_unset=as_fn_unset
|
---|
6901 | # as_fn_append VAR VALUE
|
---|
6902 | # ----------------------
|
---|
6903 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
6904 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
6905 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
6906 | # implementations.
|
---|
6907 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
6908 | eval 'as_fn_append ()
|
---|
6909 | {
|
---|
6910 | eval $1+=\$2
|
---|
6911 | }'
|
---|
6912 | else
|
---|
6913 | as_fn_append ()
|
---|
6914 | {
|
---|
6915 | eval $1=\$$1\$2
|
---|
6916 | }
|
---|
6917 | fi # as_fn_append
|
---|
6918 |
|
---|
6919 | # as_fn_arith ARG...
|
---|
6920 | # ------------------
|
---|
6921 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
6922 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
6923 | # must be portable across $(()) and expr.
|
---|
6924 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
6925 | eval 'as_fn_arith ()
|
---|
6926 | {
|
---|
6927 | as_val=$(( $* ))
|
---|
6928 | }'
|
---|
6929 | else
|
---|
6930 | as_fn_arith ()
|
---|
6931 | {
|
---|
6932 | as_val=`expr "$@" || test $? -eq 1`
|
---|
6933 | }
|
---|
6934 | fi # as_fn_arith
|
---|
6935 |
|
---|
6936 |
|
---|
6937 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
6938 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
6939 | as_expr=expr
|
---|
6940 | else
|
---|
6941 | as_expr=false
|
---|
6942 | fi
|
---|
6943 |
|
---|
6944 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
6945 | as_basename=basename
|
---|
6946 | else
|
---|
6947 | as_basename=false
|
---|
6948 | fi
|
---|
6949 |
|
---|
6950 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
6951 | as_dirname=dirname
|
---|
6952 | else
|
---|
6953 | as_dirname=false
|
---|
6954 | fi
|
---|
6955 |
|
---|
6956 | as_me=`$as_basename -- "$0" ||
|
---|
6957 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
6958 | X"$0" : 'X\(//\)$' \| \
|
---|
6959 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
6960 | $as_echo X/"$0" |
|
---|
6961 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
6962 | s//\1/
|
---|
6963 | q
|
---|
6964 | }
|
---|
6965 | /^X\/\(\/\/\)$/{
|
---|
6966 | s//\1/
|
---|
6967 | q
|
---|
6968 | }
|
---|
6969 | /^X\/\(\/\).*/{
|
---|
6970 | s//\1/
|
---|
6971 | q
|
---|
6972 | }
|
---|
6973 | s/.*/./; q'`
|
---|
6974 |
|
---|
6975 | # Avoid depending upon Character Ranges.
|
---|
6976 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
6977 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
6978 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
6979 | as_cr_digits='0123456789'
|
---|
6980 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
6981 |
|
---|
6982 | ECHO_C= ECHO_N= ECHO_T=
|
---|
6983 | case `echo -n x` in #(((((
|
---|
6984 | -n*)
|
---|
6985 | case `echo 'xy\c'` in
|
---|
6986 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
6987 | xy) ECHO_C='\c';;
|
---|
6988 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
6989 | ECHO_T=' ';;
|
---|
6990 | esac;;
|
---|
6991 | *)
|
---|
6992 | ECHO_N='-n';;
|
---|
6993 | esac
|
---|
6994 |
|
---|
6995 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
6996 | if test -d conf$$.dir; then
|
---|
6997 | rm -f conf$$.dir/conf$$.file
|
---|
6998 | else
|
---|
6999 | rm -f conf$$.dir
|
---|
7000 | mkdir conf$$.dir 2>/dev/null
|
---|
7001 | fi
|
---|
7002 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
7003 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7004 | as_ln_s='ln -s'
|
---|
7005 | # ... but there are two gotchas:
|
---|
7006 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7007 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7008 | # In both cases, we have to default to `cp -p'.
|
---|
7009 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7010 | as_ln_s='cp -p'
|
---|
7011 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7012 | as_ln_s=ln
|
---|
7013 | else
|
---|
7014 | as_ln_s='cp -p'
|
---|
7015 | fi
|
---|
7016 | else
|
---|
7017 | as_ln_s='cp -p'
|
---|
7018 | fi
|
---|
7019 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7020 | rmdir conf$$.dir 2>/dev/null
|
---|
7021 |
|
---|
7022 |
|
---|
7023 | # as_fn_mkdir_p
|
---|
7024 | # -------------
|
---|
7025 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
7026 | as_fn_mkdir_p ()
|
---|
7027 | {
|
---|
7028 |
|
---|
7029 | case $as_dir in #(
|
---|
7030 | -*) as_dir=./$as_dir;;
|
---|
7031 | esac
|
---|
7032 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
7033 | as_dirs=
|
---|
7034 | while :; do
|
---|
7035 | case $as_dir in #(
|
---|
7036 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
7037 | *) as_qdir=$as_dir;;
|
---|
7038 | esac
|
---|
7039 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7040 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7041 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7042 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7043 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7044 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7045 | $as_echo X"$as_dir" |
|
---|
7046 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7047 | s//\1/
|
---|
7048 | q
|
---|
7049 | }
|
---|
7050 | /^X\(\/\/\)[^/].*/{
|
---|
7051 | s//\1/
|
---|
7052 | q
|
---|
7053 | }
|
---|
7054 | /^X\(\/\/\)$/{
|
---|
7055 | s//\1/
|
---|
7056 | q
|
---|
7057 | }
|
---|
7058 | /^X\(\/\).*/{
|
---|
7059 | s//\1/
|
---|
7060 | q
|
---|
7061 | }
|
---|
7062 | s/.*/./; q'`
|
---|
7063 | test -d "$as_dir" && break
|
---|
7064 | done
|
---|
7065 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7066 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
---|
7067 |
|
---|
7068 |
|
---|
7069 | } # as_fn_mkdir_p
|
---|
7070 | if mkdir -p . 2>/dev/null; then
|
---|
7071 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
7072 | else
|
---|
7073 | test -d ./-p && rmdir ./-p
|
---|
7074 | as_mkdir_p=false
|
---|
7075 | fi
|
---|
7076 |
|
---|
7077 | if test -x / >/dev/null 2>&1; then
|
---|
7078 | as_test_x='test -x'
|
---|
7079 | else
|
---|
7080 | if ls -dL / >/dev/null 2>&1; then
|
---|
7081 | as_ls_L_option=L
|
---|
7082 | else
|
---|
7083 | as_ls_L_option=
|
---|
7084 | fi
|
---|
7085 | as_test_x='
|
---|
7086 | eval sh -c '\''
|
---|
7087 | if test -d "$1"; then
|
---|
7088 | test -d "$1/.";
|
---|
7089 | else
|
---|
7090 | case $1 in #(
|
---|
7091 | -*)set "./$1";;
|
---|
7092 | esac;
|
---|
7093 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
7094 | ???[sx]*):;;*)false;;esac;fi
|
---|
7095 | '\'' sh
|
---|
7096 | '
|
---|
7097 | fi
|
---|
7098 | as_executable_p=$as_test_x
|
---|
7099 |
|
---|
7100 | # Sed expression to map a string onto a valid CPP name.
|
---|
7101 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7102 |
|
---|
7103 | # Sed expression to map a string onto a valid variable name.
|
---|
7104 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7105 |
|
---|
7106 |
|
---|
7107 | exec 6>&1
|
---|
7108 | ## ----------------------------------- ##
|
---|
7109 | ## Main body of $CONFIG_STATUS script. ##
|
---|
7110 | ## ----------------------------------- ##
|
---|
7111 | _ASEOF
|
---|
7112 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
7113 |
|
---|
7114 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7115 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
7116 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7117 | # values after options handling.
|
---|
7118 | ac_log="
|
---|
7119 | This file was extended by $as_me, which was
|
---|
7120 | generated by GNU Autoconf 2.65. Invocation command line was
|
---|
7121 |
|
---|
7122 | CONFIG_FILES = $CONFIG_FILES
|
---|
7123 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7124 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7125 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7126 | $ $0 $@
|
---|
7127 |
|
---|
7128 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
7129 | "
|
---|
7130 |
|
---|
7131 | _ACEOF
|
---|
7132 |
|
---|
7133 | case $ac_config_files in *"
|
---|
7134 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
7135 | esac
|
---|
7136 |
|
---|
7137 | case $ac_config_headers in *"
|
---|
7138 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
7139 | esac
|
---|
7140 |
|
---|
7141 |
|
---|
7142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7143 | # Files that config.status was made for.
|
---|
7144 | config_files="$ac_config_files"
|
---|
7145 | config_headers="$ac_config_headers"
|
---|
7146 | config_commands="$ac_config_commands"
|
---|
7147 |
|
---|
7148 | _ACEOF
|
---|
7149 |
|
---|
7150 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7151 | ac_cs_usage="\
|
---|
7152 | \`$as_me' instantiates files and other configuration actions
|
---|
7153 | from templates according to the current configuration. Unless the files
|
---|
7154 | and actions are specified as TAGs, all are instantiated by default.
|
---|
7155 |
|
---|
7156 | Usage: $0 [OPTION]... [TAG]...
|
---|
7157 |
|
---|
7158 | -h, --help print this help, then exit
|
---|
7159 | -V, --version print version number and configuration settings, then exit
|
---|
7160 | --config print configuration, then exit
|
---|
7161 | -q, --quiet, --silent
|
---|
7162 | do not print progress messages
|
---|
7163 | -d, --debug don't remove temporary files
|
---|
7164 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7165 | --file=FILE[:TEMPLATE]
|
---|
7166 | instantiate the configuration file FILE
|
---|
7167 | --header=FILE[:TEMPLATE]
|
---|
7168 | instantiate the configuration header FILE
|
---|
7169 |
|
---|
7170 | Configuration files:
|
---|
7171 | $config_files
|
---|
7172 |
|
---|
7173 | Configuration headers:
|
---|
7174 | $config_headers
|
---|
7175 |
|
---|
7176 | Configuration commands:
|
---|
7177 | $config_commands
|
---|
7178 |
|
---|
7179 | Report bugs to the package provider."
|
---|
7180 |
|
---|
7181 | _ACEOF
|
---|
7182 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7183 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
7184 | ac_cs_version="\\
|
---|
7185 | config.status
|
---|
7186 | configured by $0, generated by GNU Autoconf 2.65,
|
---|
7187 | with options \\"\$ac_cs_config\\"
|
---|
7188 |
|
---|
7189 | Copyright (C) 2009 Free Software Foundation, Inc.
|
---|
7190 | This config.status script is free software; the Free Software Foundation
|
---|
7191 | gives unlimited permission to copy, distribute and modify it."
|
---|
7192 |
|
---|
7193 | ac_pwd='$ac_pwd'
|
---|
7194 | srcdir='$srcdir'
|
---|
7195 | INSTALL='$INSTALL'
|
---|
7196 | AWK='$AWK'
|
---|
7197 | test -n "\$AWK" || AWK=awk
|
---|
7198 | _ACEOF
|
---|
7199 |
|
---|
7200 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7201 | # The default lists apply if the user does not specify any file.
|
---|
7202 | ac_need_defaults=:
|
---|
7203 | while test $# != 0
|
---|
7204 | do
|
---|
7205 | case $1 in
|
---|
7206 | --*=*)
|
---|
7207 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7208 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
7209 | ac_shift=:
|
---|
7210 | ;;
|
---|
7211 | *)
|
---|
7212 | ac_option=$1
|
---|
7213 | ac_optarg=$2
|
---|
7214 | ac_shift=shift
|
---|
7215 | ;;
|
---|
7216 | esac
|
---|
7217 |
|
---|
7218 | case $ac_option in
|
---|
7219 | # Handling of the options.
|
---|
7220 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7221 | ac_cs_recheck=: ;;
|
---|
7222 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
7223 | $as_echo "$ac_cs_version"; exit ;;
|
---|
7224 | --config | --confi | --conf | --con | --co | --c )
|
---|
7225 | $as_echo "$ac_cs_config"; exit ;;
|
---|
7226 | --debug | --debu | --deb | --de | --d | -d )
|
---|
7227 | debug=: ;;
|
---|
7228 | --file | --fil | --fi | --f )
|
---|
7229 | $ac_shift
|
---|
7230 | case $ac_optarg in
|
---|
7231 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7232 | esac
|
---|
7233 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
7234 | ac_need_defaults=false;;
|
---|
7235 | --header | --heade | --head | --hea )
|
---|
7236 | $ac_shift
|
---|
7237 | case $ac_optarg in
|
---|
7238 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7239 | esac
|
---|
7240 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
7241 | ac_need_defaults=false;;
|
---|
7242 | --he | --h)
|
---|
7243 | # Conflict between --help and --header
|
---|
7244 | as_fn_error "ambiguous option: \`$1'
|
---|
7245 | Try \`$0 --help' for more information.";;
|
---|
7246 | --help | --hel | -h )
|
---|
7247 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
7248 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7249 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7250 | ac_cs_silent=: ;;
|
---|
7251 |
|
---|
7252 | # This is an error.
|
---|
7253 | -*) as_fn_error "unrecognized option: \`$1'
|
---|
7254 | Try \`$0 --help' for more information." ;;
|
---|
7255 |
|
---|
7256 | *) as_fn_append ac_config_targets " $1"
|
---|
7257 | ac_need_defaults=false ;;
|
---|
7258 |
|
---|
7259 | esac
|
---|
7260 | shift
|
---|
7261 | done
|
---|
7262 |
|
---|
7263 | ac_configure_extra_args=
|
---|
7264 |
|
---|
7265 | if $ac_cs_silent; then
|
---|
7266 | exec 6>/dev/null
|
---|
7267 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7268 | fi
|
---|
7269 |
|
---|
7270 | _ACEOF
|
---|
7271 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7272 | if \$ac_cs_recheck; then
|
---|
7273 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7274 | shift
|
---|
7275 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
7276 | CONFIG_SHELL='$SHELL'
|
---|
7277 | export CONFIG_SHELL
|
---|
7278 | exec "\$@"
|
---|
7279 | fi
|
---|
7280 |
|
---|
7281 | _ACEOF
|
---|
7282 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7283 | exec 5>>config.log
|
---|
7284 | {
|
---|
7285 | echo
|
---|
7286 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7287 | ## Running $as_me. ##
|
---|
7288 | _ASBOX
|
---|
7289 | $as_echo "$ac_log"
|
---|
7290 | } >&5
|
---|
7291 |
|
---|
7292 | _ACEOF
|
---|
7293 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7294 | _ACEOF
|
---|
7295 |
|
---|
7296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7297 |
|
---|
7298 | # Handling of arguments.
|
---|
7299 | for ac_config_target in $ac_config_targets
|
---|
7300 | do
|
---|
7301 | case $ac_config_target in
|
---|
7302 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7303 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7304 | "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
7305 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
7306 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
7307 | "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
7308 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
7309 |
|
---|
7310 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
7311 | esac
|
---|
7312 | done
|
---|
7313 |
|
---|
7314 |
|
---|
7315 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7316 | # then the envvar interface is used. Set only those that are not.
|
---|
7317 | # We use the long form for the default assignment because of an extremely
|
---|
7318 | # bizarre bug on SunOS 4.1.3.
|
---|
7319 | if $ac_need_defaults; then
|
---|
7320 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7321 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7322 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
7323 | fi
|
---|
7324 |
|
---|
7325 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7326 | # simply because there is no reason against having it here, and in addition,
|
---|
7327 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7328 | # Hook for its removal unless debugging.
|
---|
7329 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
7330 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
7331 | $debug ||
|
---|
7332 | {
|
---|
7333 | tmp=
|
---|
7334 | trap 'exit_status=$?
|
---|
7335 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
7336 | ' 0
|
---|
7337 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
7338 | }
|
---|
7339 | # Create a (secure) tmp directory for tmp files.
|
---|
7340 |
|
---|
7341 | {
|
---|
7342 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
7343 | test -n "$tmp" && test -d "$tmp"
|
---|
7344 | } ||
|
---|
7345 | {
|
---|
7346 | tmp=./conf$$-$RANDOM
|
---|
7347 | (umask 077 && mkdir "$tmp")
|
---|
7348 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
|
---|
7349 |
|
---|
7350 | # Set up the scripts for CONFIG_FILES section.
|
---|
7351 | # No need to generate them if there are no CONFIG_FILES.
|
---|
7352 | # This happens for instance with `./config.status config.h'.
|
---|
7353 | if test -n "$CONFIG_FILES"; then
|
---|
7354 |
|
---|
7355 |
|
---|
7356 | ac_cr=`echo X | tr X '\015'`
|
---|
7357 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
7358 | # But we know of no other shell where ac_cr would be empty at this
|
---|
7359 | # point, so we can use a bashism as a fallback.
|
---|
7360 | if test "x$ac_cr" = x; then
|
---|
7361 | eval ac_cr=\$\'\\r\'
|
---|
7362 | fi
|
---|
7363 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
7364 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
7365 | ac_cs_awk_cr='\r'
|
---|
7366 | else
|
---|
7367 | ac_cs_awk_cr=$ac_cr
|
---|
7368 | fi
|
---|
7369 |
|
---|
7370 | echo 'BEGIN {' >"$tmp/subs1.awk" &&
|
---|
7371 | _ACEOF
|
---|
7372 |
|
---|
7373 |
|
---|
7374 | {
|
---|
7375 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
7376 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
7377 | echo "_ACEOF"
|
---|
7378 | } >conf$$subs.sh ||
|
---|
7379 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7380 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
|
---|
7381 | ac_delim='%!_!# '
|
---|
7382 | for ac_last_try in false false false false false :; do
|
---|
7383 | . ./conf$$subs.sh ||
|
---|
7384 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7385 |
|
---|
7386 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
7387 | if test $ac_delim_n = $ac_delim_num; then
|
---|
7388 | break
|
---|
7389 | elif $ac_last_try; then
|
---|
7390 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7391 | else
|
---|
7392 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7393 | fi
|
---|
7394 | done
|
---|
7395 | rm -f conf$$subs.sh
|
---|
7396 |
|
---|
7397 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7398 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
|
---|
7399 | _ACEOF
|
---|
7400 | sed -n '
|
---|
7401 | h
|
---|
7402 | s/^/S["/; s/!.*/"]=/
|
---|
7403 | p
|
---|
7404 | g
|
---|
7405 | s/^[^!]*!//
|
---|
7406 | :repl
|
---|
7407 | t repl
|
---|
7408 | s/'"$ac_delim"'$//
|
---|
7409 | t delim
|
---|
7410 | :nl
|
---|
7411 | h
|
---|
7412 | s/\(.\{148\}\)..*/\1/
|
---|
7413 | t more1
|
---|
7414 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
7415 | p
|
---|
7416 | n
|
---|
7417 | b repl
|
---|
7418 | :more1
|
---|
7419 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7420 | p
|
---|
7421 | g
|
---|
7422 | s/.\{148\}//
|
---|
7423 | t nl
|
---|
7424 | :delim
|
---|
7425 | h
|
---|
7426 | s/\(.\{148\}\)..*/\1/
|
---|
7427 | t more2
|
---|
7428 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
7429 | p
|
---|
7430 | b
|
---|
7431 | :more2
|
---|
7432 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7433 | p
|
---|
7434 | g
|
---|
7435 | s/.\{148\}//
|
---|
7436 | t delim
|
---|
7437 | ' <conf$$subs.awk | sed '
|
---|
7438 | /^[^""]/{
|
---|
7439 | N
|
---|
7440 | s/\n//
|
---|
7441 | }
|
---|
7442 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7443 | rm -f conf$$subs.awk
|
---|
7444 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7445 | _ACAWK
|
---|
7446 | cat >>"\$tmp/subs1.awk" <<_ACAWK &&
|
---|
7447 | for (key in S) S_is_set[key] = 1
|
---|
7448 | FS = ""
|
---|
7449 |
|
---|
7450 | }
|
---|
7451 | {
|
---|
7452 | line = $ 0
|
---|
7453 | nfields = split(line, field, "@")
|
---|
7454 | substed = 0
|
---|
7455 | len = length(field[1])
|
---|
7456 | for (i = 2; i < nfields; i++) {
|
---|
7457 | key = field[i]
|
---|
7458 | keylen = length(key)
|
---|
7459 | if (S_is_set[key]) {
|
---|
7460 | value = S[key]
|
---|
7461 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7462 | len += length(value) + length(field[++i])
|
---|
7463 | substed = 1
|
---|
7464 | } else
|
---|
7465 | len += 1 + keylen
|
---|
7466 | }
|
---|
7467 |
|
---|
7468 | print line
|
---|
7469 | }
|
---|
7470 |
|
---|
7471 | _ACAWK
|
---|
7472 | _ACEOF
|
---|
7473 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7474 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7475 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7476 | else
|
---|
7477 | cat
|
---|
7478 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
---|
7479 | || as_fn_error "could not setup config files machinery" "$LINENO" 5
|
---|
7480 | _ACEOF
|
---|
7481 |
|
---|
7482 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
7483 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
7484 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7485 | # (actually we leave an empty line to preserve line numbers).
|
---|
7486 | if test "x$srcdir" = x.; then
|
---|
7487 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
7488 | s/:*\$(srcdir):*/:/
|
---|
7489 | s/:*\${srcdir}:*/:/
|
---|
7490 | s/:*@srcdir@:*/:/
|
---|
7491 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
7492 | s/:*$//
|
---|
7493 | s/^[^=]*=[ ]*$//
|
---|
7494 | }'
|
---|
7495 | fi
|
---|
7496 |
|
---|
7497 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7498 | fi # test -n "$CONFIG_FILES"
|
---|
7499 |
|
---|
7500 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
7501 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
7502 | # This happens for instance with `./config.status Makefile'.
|
---|
7503 | if test -n "$CONFIG_HEADERS"; then
|
---|
7504 | cat >"$tmp/defines.awk" <<\_ACAWK ||
|
---|
7505 | BEGIN {
|
---|
7506 | _ACEOF
|
---|
7507 |
|
---|
7508 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
7509 | # here-document in config.status, that substitutes the proper values into
|
---|
7510 | # config.h.in to produce config.h.
|
---|
7511 |
|
---|
7512 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
7513 | # handling of long lines.
|
---|
7514 | ac_delim='%!_!# '
|
---|
7515 | for ac_last_try in false false :; do
|
---|
7516 | ac_t=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
7517 | if test -z "$ac_t"; then
|
---|
7518 | break
|
---|
7519 | elif $ac_last_try; then
|
---|
7520 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
7521 | else
|
---|
7522 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7523 | fi
|
---|
7524 | done
|
---|
7525 |
|
---|
7526 | # For the awk script, D is an array of macro values keyed by name,
|
---|
7527 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
7528 | # newline sequences.
|
---|
7529 |
|
---|
7530 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
7531 | sed -n '
|
---|
7532 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7533 | t rset
|
---|
7534 | :rset
|
---|
7535 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
7536 | t def
|
---|
7537 | d
|
---|
7538 | :def
|
---|
7539 | s/\\$//
|
---|
7540 | t bsnl
|
---|
7541 | s/["\\]/\\&/g
|
---|
7542 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7543 | D["\1"]=" \3"/p
|
---|
7544 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
7545 | d
|
---|
7546 | :bsnl
|
---|
7547 | s/["\\]/\\&/g
|
---|
7548 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7549 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
7550 | t cont
|
---|
7551 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
7552 | t cont
|
---|
7553 | d
|
---|
7554 | :cont
|
---|
7555 | n
|
---|
7556 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7557 | t clear
|
---|
7558 | :clear
|
---|
7559 | s/\\$//
|
---|
7560 | t bsnlc
|
---|
7561 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
7562 | d
|
---|
7563 | :bsnlc
|
---|
7564 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
7565 | b cont
|
---|
7566 | ' <confdefs.h | sed '
|
---|
7567 | s/'"$ac_delim"'/"\\\
|
---|
7568 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7569 |
|
---|
7570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7571 | for (key in D) D_is_set[key] = 1
|
---|
7572 | FS = ""
|
---|
7573 | }
|
---|
7574 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
7575 | line = \$ 0
|
---|
7576 | split(line, arg, " ")
|
---|
7577 | if (arg[1] == "#") {
|
---|
7578 | defundef = arg[2]
|
---|
7579 | mac1 = arg[3]
|
---|
7580 | } else {
|
---|
7581 | defundef = substr(arg[1], 2)
|
---|
7582 | mac1 = arg[2]
|
---|
7583 | }
|
---|
7584 | split(mac1, mac2, "(") #)
|
---|
7585 | macro = mac2[1]
|
---|
7586 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
7587 | if (D_is_set[macro]) {
|
---|
7588 | # Preserve the white space surrounding the "#".
|
---|
7589 | print prefix "define", macro P[macro] D[macro]
|
---|
7590 | next
|
---|
7591 | } else {
|
---|
7592 | # Replace #undef with comments. This is necessary, for example,
|
---|
7593 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7594 | # on some systems where configure will not decide to define it.
|
---|
7595 | if (defundef == "undef") {
|
---|
7596 | print "/*", prefix defundef, macro, "*/"
|
---|
7597 | next
|
---|
7598 | }
|
---|
7599 | }
|
---|
7600 | }
|
---|
7601 | { print }
|
---|
7602 | _ACAWK
|
---|
7603 | _ACEOF
|
---|
7604 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7605 | as_fn_error "could not setup config headers machinery" "$LINENO" 5
|
---|
7606 | fi # test -n "$CONFIG_HEADERS"
|
---|
7607 |
|
---|
7608 |
|
---|
7609 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
7610 | shift
|
---|
7611 | for ac_tag
|
---|
7612 | do
|
---|
7613 | case $ac_tag in
|
---|
7614 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7615 | esac
|
---|
7616 | case $ac_mode$ac_tag in
|
---|
7617 | :[FHL]*:*);;
|
---|
7618 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
7619 | :[FH]-) ac_tag=-:-;;
|
---|
7620 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7621 | esac
|
---|
7622 | ac_save_IFS=$IFS
|
---|
7623 | IFS=:
|
---|
7624 | set x $ac_tag
|
---|
7625 | IFS=$ac_save_IFS
|
---|
7626 | shift
|
---|
7627 | ac_file=$1
|
---|
7628 | shift
|
---|
7629 |
|
---|
7630 | case $ac_mode in
|
---|
7631 | :L) ac_source=$1;;
|
---|
7632 | :[FH])
|
---|
7633 | ac_file_inputs=
|
---|
7634 | for ac_f
|
---|
7635 | do
|
---|
7636 | case $ac_f in
|
---|
7637 | -) ac_f="$tmp/stdin";;
|
---|
7638 | *) # Look for the file first in the build tree, then in the source tree
|
---|
7639 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
7640 | # because $ac_f cannot contain `:'.
|
---|
7641 | test -f "$ac_f" ||
|
---|
7642 | case $ac_f in
|
---|
7643 | [\\/$]*) false;;
|
---|
7644 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
7645 | esac ||
|
---|
7646 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
7647 | esac
|
---|
7648 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
7649 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
7650 | done
|
---|
7651 |
|
---|
7652 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
7653 | # use $as_me), people would be surprised to read:
|
---|
7654 | # /* config.h. Generated by config.status. */
|
---|
7655 | configure_input='Generated from '`
|
---|
7656 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
7657 | `' by configure.'
|
---|
7658 | if test x"$ac_file" != x-; then
|
---|
7659 | configure_input="$ac_file. $configure_input"
|
---|
7660 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
7661 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
7662 | fi
|
---|
7663 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
7664 | case $configure_input in #(
|
---|
7665 | *\&* | *\|* | *\\* )
|
---|
7666 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
7667 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
7668 | *) ac_sed_conf_input=$configure_input;;
|
---|
7669 | esac
|
---|
7670 |
|
---|
7671 | case $ac_tag in
|
---|
7672 | *:-:* | *:-) cat >"$tmp/stdin" \
|
---|
7673 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
|
---|
7674 | esac
|
---|
7675 | ;;
|
---|
7676 | esac
|
---|
7677 |
|
---|
7678 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
7679 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7680 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7681 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7682 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7683 | $as_echo X"$ac_file" |
|
---|
7684 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7685 | s//\1/
|
---|
7686 | q
|
---|
7687 | }
|
---|
7688 | /^X\(\/\/\)[^/].*/{
|
---|
7689 | s//\1/
|
---|
7690 | q
|
---|
7691 | }
|
---|
7692 | /^X\(\/\/\)$/{
|
---|
7693 | s//\1/
|
---|
7694 | q
|
---|
7695 | }
|
---|
7696 | /^X\(\/\).*/{
|
---|
7697 | s//\1/
|
---|
7698 | q
|
---|
7699 | }
|
---|
7700 | s/.*/./; q'`
|
---|
7701 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7702 | ac_builddir=.
|
---|
7703 |
|
---|
7704 | case "$ac_dir" in
|
---|
7705 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7706 | *)
|
---|
7707 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7708 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7709 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7710 | case $ac_top_builddir_sub in
|
---|
7711 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7712 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7713 | esac ;;
|
---|
7714 | esac
|
---|
7715 | ac_abs_top_builddir=$ac_pwd
|
---|
7716 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7717 | # for backward compatibility:
|
---|
7718 | ac_top_builddir=$ac_top_build_prefix
|
---|
7719 |
|
---|
7720 | case $srcdir in
|
---|
7721 | .) # We are building in place.
|
---|
7722 | ac_srcdir=.
|
---|
7723 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7724 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7725 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7726 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7727 | ac_top_srcdir=$srcdir
|
---|
7728 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7729 | *) # Relative name.
|
---|
7730 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7731 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7732 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7733 | esac
|
---|
7734 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7735 |
|
---|
7736 |
|
---|
7737 | case $ac_mode in
|
---|
7738 | :F)
|
---|
7739 | #
|
---|
7740 | # CONFIG_FILE
|
---|
7741 | #
|
---|
7742 |
|
---|
7743 | case $INSTALL in
|
---|
7744 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
7745 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
7746 | esac
|
---|
7747 | _ACEOF
|
---|
7748 |
|
---|
7749 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7750 | # If the template does not know about datarootdir, expand it.
|
---|
7751 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
7752 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
7753 | ac_sed_dataroot='
|
---|
7754 | /datarootdir/ {
|
---|
7755 | p
|
---|
7756 | q
|
---|
7757 | }
|
---|
7758 | /@datadir@/p
|
---|
7759 | /@docdir@/p
|
---|
7760 | /@infodir@/p
|
---|
7761 | /@localedir@/p
|
---|
7762 | /@mandir@/p'
|
---|
7763 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
7764 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
7765 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
7766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
7767 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
7768 | _ACEOF
|
---|
7769 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7770 | ac_datarootdir_hack='
|
---|
7771 | s&@datadir@&$datadir&g
|
---|
7772 | s&@docdir@&$docdir&g
|
---|
7773 | s&@infodir@&$infodir&g
|
---|
7774 | s&@localedir@&$localedir&g
|
---|
7775 | s&@mandir@&$mandir&g
|
---|
7776 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
7777 | esac
|
---|
7778 | _ACEOF
|
---|
7779 |
|
---|
7780 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
7781 | # Shell code in configure.ac might set extrasub.
|
---|
7782 | # FIXME: do we really want to maintain this feature?
|
---|
7783 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7784 | ac_sed_extra="$ac_vpsub
|
---|
7785 | $extrasub
|
---|
7786 | _ACEOF
|
---|
7787 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7788 | :t
|
---|
7789 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
7790 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
7791 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
7792 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
7793 | s&@srcdir@&$ac_srcdir&;t t
|
---|
7794 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
7795 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
7796 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
7797 | s&@builddir@&$ac_builddir&;t t
|
---|
7798 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
7799 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
7800 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
7801 | $ac_datarootdir_hack
|
---|
7802 | "
|
---|
7803 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
---|
7804 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
7805 |
|
---|
7806 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
7807 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
7808 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7810 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
7811 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7812 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
7813 |
|
---|
7814 | rm -f "$tmp/stdin"
|
---|
7815 | case $ac_file in
|
---|
7816 | -) cat "$tmp/out" && rm -f "$tmp/out";;
|
---|
7817 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
---|
7818 | esac \
|
---|
7819 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
7820 | ;;
|
---|
7821 | :H)
|
---|
7822 | #
|
---|
7823 | # CONFIG_HEADER
|
---|
7824 | #
|
---|
7825 | if test x"$ac_file" != x-; then
|
---|
7826 | {
|
---|
7827 | $as_echo "/* $configure_input */" \
|
---|
7828 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
|
---|
7829 | } >"$tmp/config.h" \
|
---|
7830 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
7831 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
|
---|
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
7833 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
7834 | else
|
---|
7835 | rm -f "$ac_file"
|
---|
7836 | mv "$tmp/config.h" "$ac_file" \
|
---|
7837 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
7838 | fi
|
---|
7839 | else
|
---|
7840 | $as_echo "/* $configure_input */" \
|
---|
7841 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|
---|
7842 | || as_fn_error "could not create -" "$LINENO" 5
|
---|
7843 | fi
|
---|
7844 | ;;
|
---|
7845 |
|
---|
7846 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
7847 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
7848 | ;;
|
---|
7849 | esac
|
---|
7850 |
|
---|
7851 |
|
---|
7852 | case $ac_file$ac_mode in
|
---|
7853 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
7854 |
|
---|
7855 | esac
|
---|
7856 | done # for ac_tag
|
---|
7857 |
|
---|
7858 |
|
---|
7859 | as_fn_exit 0
|
---|
7860 | _ACEOF
|
---|
7861 | ac_clean_files=$ac_clean_files_save
|
---|
7862 |
|
---|
7863 | test $ac_write_fail = 0 ||
|
---|
7864 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
7865 |
|
---|
7866 |
|
---|
7867 | # configure is writing to config.log, and then calls config.status.
|
---|
7868 | # config.status does its own redirection, appending to config.log.
|
---|
7869 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
7870 | # by configure, so config.status won't be able to write to it; its
|
---|
7871 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
7872 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
7873 | # appended to by config.status. When coming back to configure, we
|
---|
7874 | # need to make the FD available again.
|
---|
7875 | if test "$no_create" != yes; then
|
---|
7876 | ac_cs_success=:
|
---|
7877 | ac_config_status_args=
|
---|
7878 | test "$silent" = yes &&
|
---|
7879 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
7880 | exec 5>/dev/null
|
---|
7881 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
7882 | exec 5>>config.log
|
---|
7883 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
7884 | # would make configure fail if this is the last instruction.
|
---|
7885 | $ac_cs_success || as_fn_exit $?
|
---|
7886 | fi
|
---|
7887 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
7889 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
7890 | fi
|
---|
7891 |
|
---|