1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.69.
|
---|
4 | #
|
---|
5 | #
|
---|
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This configure script is free software; the Free Software Foundation
|
---|
10 | # gives unlimited permission to copy, distribute and modify it.
|
---|
11 | ## -------------------- ##
|
---|
12 | ## M4sh Initialization. ##
|
---|
13 | ## -------------------- ##
|
---|
14 |
|
---|
15 | # Be more Bourne compatible
|
---|
16 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
18 | emulate sh
|
---|
19 | NULLCMD=:
|
---|
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
21 | # is contrary to our usage. Disable this feature.
|
---|
22 | alias -g '${1+"$@"}'='"$@"'
|
---|
23 | setopt NO_GLOB_SUBST
|
---|
24 | else
|
---|
25 | case `(set -o) 2>/dev/null` in #(
|
---|
26 | *posix*) :
|
---|
27 | set -o posix ;; #(
|
---|
28 | *) :
|
---|
29 | ;;
|
---|
30 | esac
|
---|
31 | fi
|
---|
32 |
|
---|
33 |
|
---|
34 | as_nl='
|
---|
35 | '
|
---|
36 | export as_nl
|
---|
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
41 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
42 | # but without wasting forks for bash or zsh.
|
---|
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
45 | as_echo='print -r --'
|
---|
46 | as_echo_n='print -rn --'
|
---|
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
48 | as_echo='printf %s\n'
|
---|
49 | as_echo_n='printf %s'
|
---|
50 | else
|
---|
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
53 | as_echo_n='/usr/ucb/echo -n'
|
---|
54 | else
|
---|
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
56 | as_echo_n_body='eval
|
---|
57 | arg=$1;
|
---|
58 | case $arg in #(
|
---|
59 | *"$as_nl"*)
|
---|
60 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
62 | esac;
|
---|
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
64 | '
|
---|
65 | export as_echo_n_body
|
---|
66 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
67 | fi
|
---|
68 | export as_echo_body
|
---|
69 | as_echo='sh -c $as_echo_body as_echo'
|
---|
70 | fi
|
---|
71 |
|
---|
72 | # The user is always right.
|
---|
73 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
74 | PATH_SEPARATOR=:
|
---|
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
77 | PATH_SEPARATOR=';'
|
---|
78 | }
|
---|
79 | fi
|
---|
80 |
|
---|
81 |
|
---|
82 | # IFS
|
---|
83 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
84 | # there to prevent editors from complaining about space-tab.
|
---|
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
86 | # splitting by setting IFS to empty value.)
|
---|
87 | IFS=" "" $as_nl"
|
---|
88 |
|
---|
89 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
90 | as_myself=
|
---|
91 | case $0 in #((
|
---|
92 | *[\\/]* ) as_myself=$0 ;;
|
---|
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
94 | for as_dir in $PATH
|
---|
95 | do
|
---|
96 | IFS=$as_save_IFS
|
---|
97 | test -z "$as_dir" && as_dir=.
|
---|
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
99 | done
|
---|
100 | IFS=$as_save_IFS
|
---|
101 |
|
---|
102 | ;;
|
---|
103 | esac
|
---|
104 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
105 | # in which case we are not to be found in the path.
|
---|
106 | if test "x$as_myself" = x; then
|
---|
107 | as_myself=$0
|
---|
108 | fi
|
---|
109 | if test ! -f "$as_myself"; then
|
---|
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
111 | exit 1
|
---|
112 | fi
|
---|
113 |
|
---|
114 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
116 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
117 | # trigger a bug in pdksh 5.2.14.
|
---|
118 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
119 | do eval test x\${$as_var+set} = xset \
|
---|
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
121 | done
|
---|
122 | PS1='$ '
|
---|
123 | PS2='> '
|
---|
124 | PS4='+ '
|
---|
125 |
|
---|
126 | # NLS nuisances.
|
---|
127 | LC_ALL=C
|
---|
128 | export LC_ALL
|
---|
129 | LANGUAGE=C
|
---|
130 | export LANGUAGE
|
---|
131 |
|
---|
132 | # CDPATH.
|
---|
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
134 |
|
---|
135 | # Use a proper internal environment variable to ensure we don't fall
|
---|
136 | # into an infinite loop, continuously re-executing ourselves.
|
---|
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
138 | _as_can_reexec=no; export _as_can_reexec;
|
---|
139 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
140 | # neutralization value for shells without unset; and this also
|
---|
141 | # works around shells that cannot unset nonexistent variables.
|
---|
142 | # Preserve -v and -x to the replacement shell.
|
---|
143 | BASH_ENV=/dev/null
|
---|
144 | ENV=/dev/null
|
---|
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
146 | case $- in # ((((
|
---|
147 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
148 | *v* ) as_opts=-v ;;
|
---|
149 | *x* ) as_opts=-x ;;
|
---|
150 | * ) as_opts= ;;
|
---|
151 | esac
|
---|
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
153 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
154 | # out after a failed `exec'.
|
---|
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
156 | as_fn_exit 255
|
---|
157 | fi
|
---|
158 | # We don't want this to propagate to other subprocesses.
|
---|
159 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
160 | if test "x$CONFIG_SHELL" = x; then
|
---|
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
162 | emulate sh
|
---|
163 | NULLCMD=:
|
---|
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
165 | # is contrary to our usage. Disable this feature.
|
---|
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
167 | setopt NO_GLOB_SUBST
|
---|
168 | else
|
---|
169 | case \`(set -o) 2>/dev/null\` in #(
|
---|
170 | *posix*) :
|
---|
171 | set -o posix ;; #(
|
---|
172 | *) :
|
---|
173 | ;;
|
---|
174 | esac
|
---|
175 | fi
|
---|
176 | "
|
---|
177 | as_required="as_fn_return () { (exit \$1); }
|
---|
178 | as_fn_success () { as_fn_return 0; }
|
---|
179 | as_fn_failure () { as_fn_return 1; }
|
---|
180 | as_fn_ret_success () { return 0; }
|
---|
181 | as_fn_ret_failure () { return 1; }
|
---|
182 |
|
---|
183 | exitcode=0
|
---|
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
189 |
|
---|
190 | else
|
---|
191 | exitcode=1; echo positional parameters were not saved.
|
---|
192 | fi
|
---|
193 | test x\$exitcode = x0 || exit 1
|
---|
194 | test -x / || exit 1"
|
---|
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
199 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
200 | if (eval "$as_required") 2>/dev/null; then :
|
---|
201 | as_have_required=yes
|
---|
202 | else
|
---|
203 | as_have_required=no
|
---|
204 | fi
|
---|
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
206 |
|
---|
207 | else
|
---|
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
209 | as_found=false
|
---|
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
211 | do
|
---|
212 | IFS=$as_save_IFS
|
---|
213 | test -z "$as_dir" && as_dir=.
|
---|
214 | as_found=:
|
---|
215 | case $as_dir in #(
|
---|
216 | /*)
|
---|
217 | for as_base in sh bash ksh sh5; do
|
---|
218 | # Try only shells that exist, to save several forks.
|
---|
219 | as_shell=$as_dir/$as_base
|
---|
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
222 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
224 | break 2
|
---|
225 | fi
|
---|
226 | fi
|
---|
227 | done;;
|
---|
228 | esac
|
---|
229 | as_found=false
|
---|
230 | done
|
---|
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
233 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
234 | fi; }
|
---|
235 | IFS=$as_save_IFS
|
---|
236 |
|
---|
237 |
|
---|
238 | if test "x$CONFIG_SHELL" != x; then :
|
---|
239 | export CONFIG_SHELL
|
---|
240 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
241 | # neutralization value for shells without unset; and this also
|
---|
242 | # works around shells that cannot unset nonexistent variables.
|
---|
243 | # Preserve -v and -x to the replacement shell.
|
---|
244 | BASH_ENV=/dev/null
|
---|
245 | ENV=/dev/null
|
---|
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
247 | case $- in # ((((
|
---|
248 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
249 | *v* ) as_opts=-v ;;
|
---|
250 | *x* ) as_opts=-x ;;
|
---|
251 | * ) as_opts= ;;
|
---|
252 | esac
|
---|
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
254 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
255 | # out after a failed `exec'.
|
---|
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
257 | exit 255
|
---|
258 | fi
|
---|
259 |
|
---|
260 | if test x$as_have_required = xno; then :
|
---|
261 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
262 | $as_echo "$0: the shells that I found on your system."
|
---|
263 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
266 | else
|
---|
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
|
---|
268 | $0: including any error possibly output before this
|
---|
269 | $0: message. Then install a modern shell, or manually run
|
---|
270 | $0: the script under such a shell if you do have one."
|
---|
271 | fi
|
---|
272 | exit 1
|
---|
273 | fi
|
---|
274 | fi
|
---|
275 | fi
|
---|
276 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
277 | export SHELL
|
---|
278 | # Unset more variables known to interfere with behavior of common tools.
|
---|
279 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
280 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
281 |
|
---|
282 | ## --------------------- ##
|
---|
283 | ## M4sh Shell Functions. ##
|
---|
284 | ## --------------------- ##
|
---|
285 | # as_fn_unset VAR
|
---|
286 | # ---------------
|
---|
287 | # Portably unset VAR.
|
---|
288 | as_fn_unset ()
|
---|
289 | {
|
---|
290 | { eval $1=; unset $1;}
|
---|
291 | }
|
---|
292 | as_unset=as_fn_unset
|
---|
293 |
|
---|
294 | # as_fn_set_status STATUS
|
---|
295 | # -----------------------
|
---|
296 | # Set $? to STATUS, without forking.
|
---|
297 | as_fn_set_status ()
|
---|
298 | {
|
---|
299 | return $1
|
---|
300 | } # as_fn_set_status
|
---|
301 |
|
---|
302 | # as_fn_exit STATUS
|
---|
303 | # -----------------
|
---|
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
305 | as_fn_exit ()
|
---|
306 | {
|
---|
307 | set +e
|
---|
308 | as_fn_set_status $1
|
---|
309 | exit $1
|
---|
310 | } # as_fn_exit
|
---|
311 |
|
---|
312 | # as_fn_mkdir_p
|
---|
313 | # -------------
|
---|
314 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
315 | as_fn_mkdir_p ()
|
---|
316 | {
|
---|
317 |
|
---|
318 | case $as_dir in #(
|
---|
319 | -*) as_dir=./$as_dir;;
|
---|
320 | esac
|
---|
321 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
322 | as_dirs=
|
---|
323 | while :; do
|
---|
324 | case $as_dir in #(
|
---|
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
326 | *) as_qdir=$as_dir;;
|
---|
327 | esac
|
---|
328 | as_dirs="'$as_qdir' $as_dirs"
|
---|
329 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
331 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
332 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
334 | $as_echo X"$as_dir" |
|
---|
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
336 | s//\1/
|
---|
337 | q
|
---|
338 | }
|
---|
339 | /^X\(\/\/\)[^/].*/{
|
---|
340 | s//\1/
|
---|
341 | q
|
---|
342 | }
|
---|
343 | /^X\(\/\/\)$/{
|
---|
344 | s//\1/
|
---|
345 | q
|
---|
346 | }
|
---|
347 | /^X\(\/\).*/{
|
---|
348 | s//\1/
|
---|
349 | q
|
---|
350 | }
|
---|
351 | s/.*/./; q'`
|
---|
352 | test -d "$as_dir" && break
|
---|
353 | done
|
---|
354 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
356 |
|
---|
357 |
|
---|
358 | } # as_fn_mkdir_p
|
---|
359 |
|
---|
360 | # as_fn_executable_p FILE
|
---|
361 | # -----------------------
|
---|
362 | # Test if FILE is an executable regular file.
|
---|
363 | as_fn_executable_p ()
|
---|
364 | {
|
---|
365 | test -f "$1" && test -x "$1"
|
---|
366 | } # as_fn_executable_p
|
---|
367 | # as_fn_append VAR VALUE
|
---|
368 | # ----------------------
|
---|
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
370 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
371 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
372 | # implementations.
|
---|
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
374 | eval 'as_fn_append ()
|
---|
375 | {
|
---|
376 | eval $1+=\$2
|
---|
377 | }'
|
---|
378 | else
|
---|
379 | as_fn_append ()
|
---|
380 | {
|
---|
381 | eval $1=\$$1\$2
|
---|
382 | }
|
---|
383 | fi # as_fn_append
|
---|
384 |
|
---|
385 | # as_fn_arith ARG...
|
---|
386 | # ------------------
|
---|
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
389 | # must be portable across $(()) and expr.
|
---|
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
391 | eval 'as_fn_arith ()
|
---|
392 | {
|
---|
393 | as_val=$(( $* ))
|
---|
394 | }'
|
---|
395 | else
|
---|
396 | as_fn_arith ()
|
---|
397 | {
|
---|
398 | as_val=`expr "$@" || test $? -eq 1`
|
---|
399 | }
|
---|
400 | fi # as_fn_arith
|
---|
401 |
|
---|
402 |
|
---|
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
404 | # ----------------------------------------
|
---|
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
407 | # script with STATUS, using 1 if that was 0.
|
---|
408 | as_fn_error ()
|
---|
409 | {
|
---|
410 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
411 | if test "$4"; then
|
---|
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
414 | fi
|
---|
415 | $as_echo "$as_me: error: $2" >&2
|
---|
416 | as_fn_exit $as_status
|
---|
417 | } # as_fn_error
|
---|
418 |
|
---|
419 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
421 | as_expr=expr
|
---|
422 | else
|
---|
423 | as_expr=false
|
---|
424 | fi
|
---|
425 |
|
---|
426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
427 | as_basename=basename
|
---|
428 | else
|
---|
429 | as_basename=false
|
---|
430 | fi
|
---|
431 |
|
---|
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
433 | as_dirname=dirname
|
---|
434 | else
|
---|
435 | as_dirname=false
|
---|
436 | fi
|
---|
437 |
|
---|
438 | as_me=`$as_basename -- "$0" ||
|
---|
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
440 | X"$0" : 'X\(//\)$' \| \
|
---|
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
442 | $as_echo X/"$0" |
|
---|
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
444 | s//\1/
|
---|
445 | q
|
---|
446 | }
|
---|
447 | /^X\/\(\/\/\)$/{
|
---|
448 | s//\1/
|
---|
449 | q
|
---|
450 | }
|
---|
451 | /^X\/\(\/\).*/{
|
---|
452 | s//\1/
|
---|
453 | q
|
---|
454 | }
|
---|
455 | s/.*/./; q'`
|
---|
456 |
|
---|
457 | # Avoid depending upon Character Ranges.
|
---|
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
461 | as_cr_digits='0123456789'
|
---|
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
463 |
|
---|
464 |
|
---|
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
470 | sed -n '
|
---|
471 | p
|
---|
472 | /[$]LINENO/=
|
---|
473 | ' <$as_myself |
|
---|
474 | sed '
|
---|
475 | s/[$]LINENO.*/&-/
|
---|
476 | t lineno
|
---|
477 | b
|
---|
478 | :lineno
|
---|
479 | N
|
---|
480 | :loop
|
---|
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
482 | t loop
|
---|
483 | s/-\n.*//
|
---|
484 | ' >$as_me.lineno &&
|
---|
485 | chmod +x "$as_me.lineno" ||
|
---|
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
487 |
|
---|
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
489 | # already done that, so ensure we don't try to do so again and fall
|
---|
490 | # in an infinite loop. This has already happened in practice.
|
---|
491 | _as_can_reexec=no; export _as_can_reexec
|
---|
492 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
493 | # (the dirname of $[0] is not the place where we might find the
|
---|
494 | # original and so on. Autoconf is especially sensitive to this).
|
---|
495 | . "./$as_me.lineno"
|
---|
496 | # Exit status is that of the last command.
|
---|
497 | exit
|
---|
498 | }
|
---|
499 |
|
---|
500 | ECHO_C= ECHO_N= ECHO_T=
|
---|
501 | case `echo -n x` in #(((((
|
---|
502 | -n*)
|
---|
503 | case `echo 'xy\c'` in
|
---|
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
505 | xy) ECHO_C='\c';;
|
---|
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
507 | ECHO_T=' ';;
|
---|
508 | esac;;
|
---|
509 | *)
|
---|
510 | ECHO_N='-n';;
|
---|
511 | esac
|
---|
512 |
|
---|
513 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
514 | if test -d conf$$.dir; then
|
---|
515 | rm -f conf$$.dir/conf$$.file
|
---|
516 | else
|
---|
517 | rm -f conf$$.dir
|
---|
518 | mkdir conf$$.dir 2>/dev/null
|
---|
519 | fi
|
---|
520 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
522 | as_ln_s='ln -s'
|
---|
523 | # ... but there are two gotchas:
|
---|
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
526 | # In both cases, we have to default to `cp -pR'.
|
---|
527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
528 | as_ln_s='cp -pR'
|
---|
529 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
530 | as_ln_s=ln
|
---|
531 | else
|
---|
532 | as_ln_s='cp -pR'
|
---|
533 | fi
|
---|
534 | else
|
---|
535 | as_ln_s='cp -pR'
|
---|
536 | fi
|
---|
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
538 | rmdir conf$$.dir 2>/dev/null
|
---|
539 |
|
---|
540 | if mkdir -p . 2>/dev/null; then
|
---|
541 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
542 | else
|
---|
543 | test -d ./-p && rmdir ./-p
|
---|
544 | as_mkdir_p=false
|
---|
545 | fi
|
---|
546 |
|
---|
547 | as_test_x='test -x'
|
---|
548 | as_executable_p=as_fn_executable_p
|
---|
549 |
|
---|
550 | # Sed expression to map a string onto a valid CPP name.
|
---|
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
552 |
|
---|
553 | # Sed expression to map a string onto a valid variable name.
|
---|
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
555 |
|
---|
556 |
|
---|
557 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
558 | exec 6>&1
|
---|
559 |
|
---|
560 | # Name of the host.
|
---|
561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
562 | # so uname gets run too.
|
---|
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
564 |
|
---|
565 | #
|
---|
566 | # Initializations.
|
---|
567 | #
|
---|
568 | ac_default_prefix=/usr/local
|
---|
569 | ac_clean_files=
|
---|
570 | ac_config_libobj_dir=.
|
---|
571 | LIBOBJS=
|
---|
572 | cross_compiling=no
|
---|
573 | subdirs=
|
---|
574 | MFLAGS=
|
---|
575 | MAKEFLAGS=
|
---|
576 |
|
---|
577 | # Identity of this package.
|
---|
578 | PACKAGE_NAME=
|
---|
579 | PACKAGE_TARNAME=
|
---|
580 | PACKAGE_VERSION=
|
---|
581 | PACKAGE_STRING=
|
---|
582 | PACKAGE_BUGREPORT=
|
---|
583 | PACKAGE_URL=
|
---|
584 |
|
---|
585 | ac_unique_file="text/MGQuery.cpp"
|
---|
586 | # Factoring default headers for most tests.
|
---|
587 | ac_includes_default="\
|
---|
588 | #include <stdio.h>
|
---|
589 | #ifdef HAVE_SYS_TYPES_H
|
---|
590 | # include <sys/types.h>
|
---|
591 | #endif
|
---|
592 | #ifdef HAVE_SYS_STAT_H
|
---|
593 | # include <sys/stat.h>
|
---|
594 | #endif
|
---|
595 | #ifdef STDC_HEADERS
|
---|
596 | # include <stdlib.h>
|
---|
597 | # include <stddef.h>
|
---|
598 | #else
|
---|
599 | # ifdef HAVE_STDLIB_H
|
---|
600 | # include <stdlib.h>
|
---|
601 | # endif
|
---|
602 | #endif
|
---|
603 | #ifdef HAVE_STRING_H
|
---|
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
605 | # include <memory.h>
|
---|
606 | # endif
|
---|
607 | # include <string.h>
|
---|
608 | #endif
|
---|
609 | #ifdef HAVE_STRINGS_H
|
---|
610 | # include <strings.h>
|
---|
611 | #endif
|
---|
612 | #ifdef HAVE_INTTYPES_H
|
---|
613 | # include <inttypes.h>
|
---|
614 | #endif
|
---|
615 | #ifdef HAVE_STDINT_H
|
---|
616 | # include <stdint.h>
|
---|
617 | #endif
|
---|
618 | #ifdef HAVE_UNISTD_H
|
---|
619 | # include <unistd.h>
|
---|
620 | #endif"
|
---|
621 |
|
---|
622 | ac_subst_vars='LTLIBOBJS
|
---|
623 | JNILDFLAGS
|
---|
624 | JNICFLAGS
|
---|
625 | JNISUFFIX
|
---|
626 | JNIPREFIX
|
---|
627 | JNIINC
|
---|
628 | LIBOBJS
|
---|
629 | ALLOCA
|
---|
630 | UNAC_DIR
|
---|
631 | ANSI2KNR
|
---|
632 | U
|
---|
633 | EGREP
|
---|
634 | GREP
|
---|
635 | CPP
|
---|
636 | JAVACFLAGS
|
---|
637 | JAVAC
|
---|
638 | uudecode
|
---|
639 | JAVA
|
---|
640 | RANLIB
|
---|
641 | SET_MAKE
|
---|
642 | LN_S
|
---|
643 | INSTALL_DATA
|
---|
644 | INSTALL_SCRIPT
|
---|
645 | INSTALL_PROGRAM
|
---|
646 | ac_ct_CC
|
---|
647 | CFLAGS
|
---|
648 | CC
|
---|
649 | YFLAGS
|
---|
650 | YACC
|
---|
651 | AWK
|
---|
652 | OBJEXT
|
---|
653 | EXEEXT
|
---|
654 | ac_ct_CXX
|
---|
655 | CPPFLAGS
|
---|
656 | LDFLAGS
|
---|
657 | CXXFLAGS
|
---|
658 | CXX
|
---|
659 | ENABLE_ACCENTFOLD
|
---|
660 | ARCH_DEP_FLAGS
|
---|
661 | ENABLE_JAVA
|
---|
662 | gsdlos
|
---|
663 | VERSION
|
---|
664 | PACKAGE
|
---|
665 | target_os
|
---|
666 | target_vendor
|
---|
667 | target_cpu
|
---|
668 | target
|
---|
669 | host_os
|
---|
670 | host_vendor
|
---|
671 | host_cpu
|
---|
672 | host
|
---|
673 | build_os
|
---|
674 | build_vendor
|
---|
675 | build_cpu
|
---|
676 | build
|
---|
677 | target_alias
|
---|
678 | host_alias
|
---|
679 | build_alias
|
---|
680 | LIBS
|
---|
681 | ECHO_T
|
---|
682 | ECHO_N
|
---|
683 | ECHO_C
|
---|
684 | DEFS
|
---|
685 | mandir
|
---|
686 | localedir
|
---|
687 | libdir
|
---|
688 | psdir
|
---|
689 | pdfdir
|
---|
690 | dvidir
|
---|
691 | htmldir
|
---|
692 | infodir
|
---|
693 | docdir
|
---|
694 | oldincludedir
|
---|
695 | includedir
|
---|
696 | localstatedir
|
---|
697 | sharedstatedir
|
---|
698 | sysconfdir
|
---|
699 | datadir
|
---|
700 | datarootdir
|
---|
701 | libexecdir
|
---|
702 | sbindir
|
---|
703 | bindir
|
---|
704 | program_transform_name
|
---|
705 | prefix
|
---|
706 | exec_prefix
|
---|
707 | PACKAGE_URL
|
---|
708 | PACKAGE_BUGREPORT
|
---|
709 | PACKAGE_STRING
|
---|
710 | PACKAGE_VERSION
|
---|
711 | PACKAGE_TARNAME
|
---|
712 | PACKAGE_NAME
|
---|
713 | PATH_SEPARATOR
|
---|
714 | SHELL'
|
---|
715 | ac_subst_files=''
|
---|
716 | ac_user_opts='
|
---|
717 | enable_option_checking
|
---|
718 | enable_java
|
---|
719 | enable_accentfold
|
---|
720 | with_unac
|
---|
721 | with_dmalloc
|
---|
722 | with_regex
|
---|
723 | with_gnu_readline
|
---|
724 | enable_override_longlong
|
---|
725 | '
|
---|
726 | ac_precious_vars='build_alias
|
---|
727 | host_alias
|
---|
728 | target_alias
|
---|
729 | CXX
|
---|
730 | CXXFLAGS
|
---|
731 | LDFLAGS
|
---|
732 | LIBS
|
---|
733 | CPPFLAGS
|
---|
734 | CCC
|
---|
735 | YACC
|
---|
736 | YFLAGS
|
---|
737 | CC
|
---|
738 | CFLAGS
|
---|
739 | CPP'
|
---|
740 |
|
---|
741 |
|
---|
742 | # Initialize some variables set by options.
|
---|
743 | ac_init_help=
|
---|
744 | ac_init_version=false
|
---|
745 | ac_unrecognized_opts=
|
---|
746 | ac_unrecognized_sep=
|
---|
747 | # The variables have the same names as the options, with
|
---|
748 | # dashes changed to underlines.
|
---|
749 | cache_file=/dev/null
|
---|
750 | exec_prefix=NONE
|
---|
751 | no_create=
|
---|
752 | no_recursion=
|
---|
753 | prefix=NONE
|
---|
754 | program_prefix=NONE
|
---|
755 | program_suffix=NONE
|
---|
756 | program_transform_name=s,x,x,
|
---|
757 | silent=
|
---|
758 | site=
|
---|
759 | srcdir=
|
---|
760 | verbose=
|
---|
761 | x_includes=NONE
|
---|
762 | x_libraries=NONE
|
---|
763 |
|
---|
764 | # Installation directory options.
|
---|
765 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
766 | # and all the variables that are supposed to be based on exec_prefix
|
---|
767 | # by default will actually change.
|
---|
768 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
769 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
770 | bindir='${exec_prefix}/bin'
|
---|
771 | sbindir='${exec_prefix}/sbin'
|
---|
772 | libexecdir='${exec_prefix}/libexec'
|
---|
773 | datarootdir='${prefix}/share'
|
---|
774 | datadir='${datarootdir}'
|
---|
775 | sysconfdir='${prefix}/etc'
|
---|
776 | sharedstatedir='${prefix}/com'
|
---|
777 | localstatedir='${prefix}/var'
|
---|
778 | includedir='${prefix}/include'
|
---|
779 | oldincludedir='/usr/include'
|
---|
780 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
781 | infodir='${datarootdir}/info'
|
---|
782 | htmldir='${docdir}'
|
---|
783 | dvidir='${docdir}'
|
---|
784 | pdfdir='${docdir}'
|
---|
785 | psdir='${docdir}'
|
---|
786 | libdir='${exec_prefix}/lib'
|
---|
787 | localedir='${datarootdir}/locale'
|
---|
788 | mandir='${datarootdir}/man'
|
---|
789 |
|
---|
790 | ac_prev=
|
---|
791 | ac_dashdash=
|
---|
792 | for ac_option
|
---|
793 | do
|
---|
794 | # If the previous option needs an argument, assign it.
|
---|
795 | if test -n "$ac_prev"; then
|
---|
796 | eval $ac_prev=\$ac_option
|
---|
797 | ac_prev=
|
---|
798 | continue
|
---|
799 | fi
|
---|
800 |
|
---|
801 | case $ac_option in
|
---|
802 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
803 | *=) ac_optarg= ;;
|
---|
804 | *) ac_optarg=yes ;;
|
---|
805 | esac
|
---|
806 |
|
---|
807 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
808 |
|
---|
809 | case $ac_dashdash$ac_option in
|
---|
810 | --)
|
---|
811 | ac_dashdash=yes ;;
|
---|
812 |
|
---|
813 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
814 | ac_prev=bindir ;;
|
---|
815 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
816 | bindir=$ac_optarg ;;
|
---|
817 |
|
---|
818 | -build | --build | --buil | --bui | --bu)
|
---|
819 | ac_prev=build_alias ;;
|
---|
820 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
821 | build_alias=$ac_optarg ;;
|
---|
822 |
|
---|
823 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
824 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
825 | ac_prev=cache_file ;;
|
---|
826 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
827 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
828 | cache_file=$ac_optarg ;;
|
---|
829 |
|
---|
830 | --config-cache | -C)
|
---|
831 | cache_file=config.cache ;;
|
---|
832 |
|
---|
833 | -datadir | --datadir | --datadi | --datad)
|
---|
834 | ac_prev=datadir ;;
|
---|
835 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
836 | datadir=$ac_optarg ;;
|
---|
837 |
|
---|
838 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
839 | | --dataroo | --dataro | --datar)
|
---|
840 | ac_prev=datarootdir ;;
|
---|
841 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
842 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
843 | datarootdir=$ac_optarg ;;
|
---|
844 |
|
---|
845 | -disable-* | --disable-*)
|
---|
846 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
847 | # Reject names that are not valid shell variable names.
|
---|
848 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
849 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
850 | ac_useropt_orig=$ac_useropt
|
---|
851 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
852 | case $ac_user_opts in
|
---|
853 | *"
|
---|
854 | "enable_$ac_useropt"
|
---|
855 | "*) ;;
|
---|
856 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
857 | ac_unrecognized_sep=', ';;
|
---|
858 | esac
|
---|
859 | eval enable_$ac_useropt=no ;;
|
---|
860 |
|
---|
861 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
862 | ac_prev=docdir ;;
|
---|
863 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
864 | docdir=$ac_optarg ;;
|
---|
865 |
|
---|
866 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
867 | ac_prev=dvidir ;;
|
---|
868 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
869 | dvidir=$ac_optarg ;;
|
---|
870 |
|
---|
871 | -enable-* | --enable-*)
|
---|
872 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
873 | # Reject names that are not valid shell variable names.
|
---|
874 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
875 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
876 | ac_useropt_orig=$ac_useropt
|
---|
877 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
878 | case $ac_user_opts in
|
---|
879 | *"
|
---|
880 | "enable_$ac_useropt"
|
---|
881 | "*) ;;
|
---|
882 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
883 | ac_unrecognized_sep=', ';;
|
---|
884 | esac
|
---|
885 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
886 |
|
---|
887 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
888 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
889 | | --exec | --exe | --ex)
|
---|
890 | ac_prev=exec_prefix ;;
|
---|
891 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
892 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
893 | | --exec=* | --exe=* | --ex=*)
|
---|
894 | exec_prefix=$ac_optarg ;;
|
---|
895 |
|
---|
896 | -gas | --gas | --ga | --g)
|
---|
897 | # Obsolete; use --with-gas.
|
---|
898 | with_gas=yes ;;
|
---|
899 |
|
---|
900 | -help | --help | --hel | --he | -h)
|
---|
901 | ac_init_help=long ;;
|
---|
902 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
903 | ac_init_help=recursive ;;
|
---|
904 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
905 | ac_init_help=short ;;
|
---|
906 |
|
---|
907 | -host | --host | --hos | --ho)
|
---|
908 | ac_prev=host_alias ;;
|
---|
909 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
910 | host_alias=$ac_optarg ;;
|
---|
911 |
|
---|
912 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
913 | ac_prev=htmldir ;;
|
---|
914 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
915 | | --ht=*)
|
---|
916 | htmldir=$ac_optarg ;;
|
---|
917 |
|
---|
918 | -includedir | --includedir | --includedi | --included | --include \
|
---|
919 | | --includ | --inclu | --incl | --inc)
|
---|
920 | ac_prev=includedir ;;
|
---|
921 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
922 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
923 | includedir=$ac_optarg ;;
|
---|
924 |
|
---|
925 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
926 | ac_prev=infodir ;;
|
---|
927 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
928 | infodir=$ac_optarg ;;
|
---|
929 |
|
---|
930 | -libdir | --libdir | --libdi | --libd)
|
---|
931 | ac_prev=libdir ;;
|
---|
932 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
933 | libdir=$ac_optarg ;;
|
---|
934 |
|
---|
935 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
936 | | --libexe | --libex | --libe)
|
---|
937 | ac_prev=libexecdir ;;
|
---|
938 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
939 | | --libexe=* | --libex=* | --libe=*)
|
---|
940 | libexecdir=$ac_optarg ;;
|
---|
941 |
|
---|
942 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
943 | ac_prev=localedir ;;
|
---|
944 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
945 | localedir=$ac_optarg ;;
|
---|
946 |
|
---|
947 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
948 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
949 | ac_prev=localstatedir ;;
|
---|
950 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
951 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
952 | localstatedir=$ac_optarg ;;
|
---|
953 |
|
---|
954 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
955 | ac_prev=mandir ;;
|
---|
956 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
957 | mandir=$ac_optarg ;;
|
---|
958 |
|
---|
959 | -nfp | --nfp | --nf)
|
---|
960 | # Obsolete; use --without-fp.
|
---|
961 | with_fp=no ;;
|
---|
962 |
|
---|
963 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
964 | | --no-cr | --no-c | -n)
|
---|
965 | no_create=yes ;;
|
---|
966 |
|
---|
967 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
968 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
969 | no_recursion=yes ;;
|
---|
970 |
|
---|
971 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
972 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
973 | | --oldin | --oldi | --old | --ol | --o)
|
---|
974 | ac_prev=oldincludedir ;;
|
---|
975 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
976 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
977 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
978 | oldincludedir=$ac_optarg ;;
|
---|
979 |
|
---|
980 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
981 | ac_prev=prefix ;;
|
---|
982 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
983 | prefix=$ac_optarg ;;
|
---|
984 |
|
---|
985 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
986 | | --program-pre | --program-pr | --program-p)
|
---|
987 | ac_prev=program_prefix ;;
|
---|
988 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
989 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
990 | program_prefix=$ac_optarg ;;
|
---|
991 |
|
---|
992 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
993 | | --program-suf | --program-su | --program-s)
|
---|
994 | ac_prev=program_suffix ;;
|
---|
995 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
996 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
997 | program_suffix=$ac_optarg ;;
|
---|
998 |
|
---|
999 | -program-transform-name | --program-transform-name \
|
---|
1000 | | --program-transform-nam | --program-transform-na \
|
---|
1001 | | --program-transform-n | --program-transform- \
|
---|
1002 | | --program-transform | --program-transfor \
|
---|
1003 | | --program-transfo | --program-transf \
|
---|
1004 | | --program-trans | --program-tran \
|
---|
1005 | | --progr-tra | --program-tr | --program-t)
|
---|
1006 | ac_prev=program_transform_name ;;
|
---|
1007 | -program-transform-name=* | --program-transform-name=* \
|
---|
1008 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1009 | | --program-transform-n=* | --program-transform-=* \
|
---|
1010 | | --program-transform=* | --program-transfor=* \
|
---|
1011 | | --program-transfo=* | --program-transf=* \
|
---|
1012 | | --program-trans=* | --program-tran=* \
|
---|
1013 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1014 | program_transform_name=$ac_optarg ;;
|
---|
1015 |
|
---|
1016 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1017 | ac_prev=pdfdir ;;
|
---|
1018 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1019 | pdfdir=$ac_optarg ;;
|
---|
1020 |
|
---|
1021 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1022 | ac_prev=psdir ;;
|
---|
1023 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1024 | psdir=$ac_optarg ;;
|
---|
1025 |
|
---|
1026 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1027 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1028 | silent=yes ;;
|
---|
1029 |
|
---|
1030 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1031 | ac_prev=sbindir ;;
|
---|
1032 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1033 | | --sbi=* | --sb=*)
|
---|
1034 | sbindir=$ac_optarg ;;
|
---|
1035 |
|
---|
1036 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1037 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1038 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1039 | | --sha | --sh)
|
---|
1040 | ac_prev=sharedstatedir ;;
|
---|
1041 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1042 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1043 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1044 | | --sha=* | --sh=*)
|
---|
1045 | sharedstatedir=$ac_optarg ;;
|
---|
1046 |
|
---|
1047 | -site | --site | --sit)
|
---|
1048 | ac_prev=site ;;
|
---|
1049 | -site=* | --site=* | --sit=*)
|
---|
1050 | site=$ac_optarg ;;
|
---|
1051 |
|
---|
1052 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1053 | ac_prev=srcdir ;;
|
---|
1054 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1055 | srcdir=$ac_optarg ;;
|
---|
1056 |
|
---|
1057 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1058 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1059 | ac_prev=sysconfdir ;;
|
---|
1060 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1061 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1062 | sysconfdir=$ac_optarg ;;
|
---|
1063 |
|
---|
1064 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1065 | ac_prev=target_alias ;;
|
---|
1066 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1067 | target_alias=$ac_optarg ;;
|
---|
1068 |
|
---|
1069 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1070 | verbose=yes ;;
|
---|
1071 |
|
---|
1072 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1073 | ac_init_version=: ;;
|
---|
1074 |
|
---|
1075 | -with-* | --with-*)
|
---|
1076 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1077 | # Reject names that are not valid shell variable names.
|
---|
1078 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1079 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1080 | ac_useropt_orig=$ac_useropt
|
---|
1081 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1082 | case $ac_user_opts in
|
---|
1083 | *"
|
---|
1084 | "with_$ac_useropt"
|
---|
1085 | "*) ;;
|
---|
1086 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1087 | ac_unrecognized_sep=', ';;
|
---|
1088 | esac
|
---|
1089 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1090 |
|
---|
1091 | -without-* | --without-*)
|
---|
1092 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1093 | # Reject names that are not valid shell variable names.
|
---|
1094 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1095 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1096 | ac_useropt_orig=$ac_useropt
|
---|
1097 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1098 | case $ac_user_opts in
|
---|
1099 | *"
|
---|
1100 | "with_$ac_useropt"
|
---|
1101 | "*) ;;
|
---|
1102 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1103 | ac_unrecognized_sep=', ';;
|
---|
1104 | esac
|
---|
1105 | eval with_$ac_useropt=no ;;
|
---|
1106 |
|
---|
1107 | --x)
|
---|
1108 | # Obsolete; use --with-x.
|
---|
1109 | with_x=yes ;;
|
---|
1110 |
|
---|
1111 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1112 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1113 | ac_prev=x_includes ;;
|
---|
1114 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1115 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1116 | x_includes=$ac_optarg ;;
|
---|
1117 |
|
---|
1118 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1119 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1120 | ac_prev=x_libraries ;;
|
---|
1121 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1122 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1123 | x_libraries=$ac_optarg ;;
|
---|
1124 |
|
---|
1125 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1126 | Try \`$0 --help' for more information"
|
---|
1127 | ;;
|
---|
1128 |
|
---|
1129 | *=*)
|
---|
1130 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1131 | # Reject names that are not valid shell variable names.
|
---|
1132 | case $ac_envvar in #(
|
---|
1133 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1134 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1135 | esac
|
---|
1136 | eval $ac_envvar=\$ac_optarg
|
---|
1137 | export $ac_envvar ;;
|
---|
1138 |
|
---|
1139 | *)
|
---|
1140 | # FIXME: should be removed in autoconf 3.0.
|
---|
1141 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1142 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1143 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1144 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1145 | ;;
|
---|
1146 |
|
---|
1147 | esac
|
---|
1148 | done
|
---|
1149 |
|
---|
1150 | if test -n "$ac_prev"; then
|
---|
1151 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1152 | as_fn_error $? "missing argument to $ac_option"
|
---|
1153 | fi
|
---|
1154 |
|
---|
1155 | if test -n "$ac_unrecognized_opts"; then
|
---|
1156 | case $enable_option_checking in
|
---|
1157 | no) ;;
|
---|
1158 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1159 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1160 | esac
|
---|
1161 | fi
|
---|
1162 |
|
---|
1163 | # Check all directory arguments for consistency.
|
---|
1164 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1165 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1166 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1167 | libdir localedir mandir
|
---|
1168 | do
|
---|
1169 | eval ac_val=\$$ac_var
|
---|
1170 | # Remove trailing slashes.
|
---|
1171 | case $ac_val in
|
---|
1172 | */ )
|
---|
1173 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1174 | eval $ac_var=\$ac_val;;
|
---|
1175 | esac
|
---|
1176 | # Be sure to have absolute directory names.
|
---|
1177 | case $ac_val in
|
---|
1178 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1179 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1180 | esac
|
---|
1181 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1182 | done
|
---|
1183 |
|
---|
1184 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1185 | # used to hold the argument of --host etc.
|
---|
1186 | # FIXME: To remove some day.
|
---|
1187 | build=$build_alias
|
---|
1188 | host=$host_alias
|
---|
1189 | target=$target_alias
|
---|
1190 |
|
---|
1191 | # FIXME: To remove some day.
|
---|
1192 | if test "x$host_alias" != x; then
|
---|
1193 | if test "x$build_alias" = x; then
|
---|
1194 | cross_compiling=maybe
|
---|
1195 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1196 | cross_compiling=yes
|
---|
1197 | fi
|
---|
1198 | fi
|
---|
1199 |
|
---|
1200 | ac_tool_prefix=
|
---|
1201 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1202 |
|
---|
1203 | test "$silent" = yes && exec 6>/dev/null
|
---|
1204 |
|
---|
1205 |
|
---|
1206 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1207 | ac_ls_di=`ls -di .` &&
|
---|
1208 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1209 | as_fn_error $? "working directory cannot be determined"
|
---|
1210 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1211 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1212 |
|
---|
1213 |
|
---|
1214 | # Find the source files, if location was not specified.
|
---|
1215 | if test -z "$srcdir"; then
|
---|
1216 | ac_srcdir_defaulted=yes
|
---|
1217 | # Try the directory containing this script, then the parent directory.
|
---|
1218 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1219 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1220 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1221 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1222 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1223 | $as_echo X"$as_myself" |
|
---|
1224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1225 | s//\1/
|
---|
1226 | q
|
---|
1227 | }
|
---|
1228 | /^X\(\/\/\)[^/].*/{
|
---|
1229 | s//\1/
|
---|
1230 | q
|
---|
1231 | }
|
---|
1232 | /^X\(\/\/\)$/{
|
---|
1233 | s//\1/
|
---|
1234 | q
|
---|
1235 | }
|
---|
1236 | /^X\(\/\).*/{
|
---|
1237 | s//\1/
|
---|
1238 | q
|
---|
1239 | }
|
---|
1240 | s/.*/./; q'`
|
---|
1241 | srcdir=$ac_confdir
|
---|
1242 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1243 | srcdir=..
|
---|
1244 | fi
|
---|
1245 | else
|
---|
1246 | ac_srcdir_defaulted=no
|
---|
1247 | fi
|
---|
1248 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1249 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1250 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1251 | fi
|
---|
1252 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1253 | ac_abs_confdir=`(
|
---|
1254 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1255 | pwd)`
|
---|
1256 | # When building in place, set srcdir=.
|
---|
1257 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1258 | srcdir=.
|
---|
1259 | fi
|
---|
1260 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1261 | # Double slashes in file names in object file debugging info
|
---|
1262 | # mess up M-x gdb in Emacs.
|
---|
1263 | case $srcdir in
|
---|
1264 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1265 | esac
|
---|
1266 | for ac_var in $ac_precious_vars; do
|
---|
1267 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1268 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1269 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1270 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1271 | done
|
---|
1272 |
|
---|
1273 | #
|
---|
1274 | # Report the --help message.
|
---|
1275 | #
|
---|
1276 | if test "$ac_init_help" = "long"; then
|
---|
1277 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1278 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1279 | cat <<_ACEOF
|
---|
1280 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1281 |
|
---|
1282 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1283 |
|
---|
1284 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1285 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1286 |
|
---|
1287 | Defaults for the options are specified in brackets.
|
---|
1288 |
|
---|
1289 | Configuration:
|
---|
1290 | -h, --help display this help and exit
|
---|
1291 | --help=short display options specific to this package
|
---|
1292 | --help=recursive display the short help of all the included packages
|
---|
1293 | -V, --version display version information and exit
|
---|
1294 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1295 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1296 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1297 | -n, --no-create do not create output files
|
---|
1298 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1299 |
|
---|
1300 | Installation directories:
|
---|
1301 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1302 | [$ac_default_prefix]
|
---|
1303 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1304 | [PREFIX]
|
---|
1305 |
|
---|
1306 | By default, \`make install' will install all the files in
|
---|
1307 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1308 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1309 | for instance \`--prefix=\$HOME'.
|
---|
1310 |
|
---|
1311 | For better control, use the options below.
|
---|
1312 |
|
---|
1313 | Fine tuning of the installation directories:
|
---|
1314 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1315 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1316 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1317 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1318 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1319 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1320 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1321 | --includedir=DIR C header files [PREFIX/include]
|
---|
1322 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1323 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1324 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1325 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1326 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1327 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1328 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1329 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1330 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1331 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1332 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1333 | _ACEOF
|
---|
1334 |
|
---|
1335 | cat <<\_ACEOF
|
---|
1336 |
|
---|
1337 | Program names:
|
---|
1338 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1339 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1340 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1341 |
|
---|
1342 | System types:
|
---|
1343 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1344 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1345 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1346 | _ACEOF
|
---|
1347 | fi
|
---|
1348 |
|
---|
1349 | if test -n "$ac_init_help"; then
|
---|
1350 |
|
---|
1351 | cat <<\_ACEOF
|
---|
1352 |
|
---|
1353 | Optional Features:
|
---|
1354 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1355 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1356 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1357 | --disable-java Disable Java compilation
|
---|
1358 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
1359 | --enable-override-longlong
|
---|
1360 | overide use of long long with GCC
|
---|
1361 |
|
---|
1362 | Optional Packages:
|
---|
1363 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1364 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1365 | --with-unac=dir Use local unac library and headers
|
---|
1366 | --with-dmalloc use dmalloc, as in
|
---|
1367 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1368 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1369 | --with-gnu-readline compile with GNU readline support
|
---|
1370 |
|
---|
1371 | Some influential environment variables:
|
---|
1372 | CXX C++ compiler command
|
---|
1373 | CXXFLAGS C++ compiler flags
|
---|
1374 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1375 | nonstandard directory <lib dir>
|
---|
1376 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1377 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1378 | you have headers in a nonstandard directory <include dir>
|
---|
1379 | YACC The `Yet Another Compiler Compiler' implementation to use.
|
---|
1380 | Defaults to the first program found out of: `bison -y', `byacc',
|
---|
1381 | `yacc'.
|
---|
1382 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1383 | This script will default YFLAGS to the empty string to avoid a
|
---|
1384 | default value of `-d' given by some make applications.
|
---|
1385 | CC C compiler command
|
---|
1386 | CFLAGS C compiler flags
|
---|
1387 | CPP C preprocessor
|
---|
1388 |
|
---|
1389 | Use these variables to override the choices made by `configure' or to help
|
---|
1390 | it to find libraries and programs with nonstandard names/locations.
|
---|
1391 |
|
---|
1392 | Report bugs to the package provider.
|
---|
1393 | _ACEOF
|
---|
1394 | ac_status=$?
|
---|
1395 | fi
|
---|
1396 |
|
---|
1397 | if test "$ac_init_help" = "recursive"; then
|
---|
1398 | # If there are subdirs, report their specific --help.
|
---|
1399 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1400 | test -d "$ac_dir" ||
|
---|
1401 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1402 | continue
|
---|
1403 | ac_builddir=.
|
---|
1404 |
|
---|
1405 | case "$ac_dir" in
|
---|
1406 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1407 | *)
|
---|
1408 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1409 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1410 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1411 | case $ac_top_builddir_sub in
|
---|
1412 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1413 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1414 | esac ;;
|
---|
1415 | esac
|
---|
1416 | ac_abs_top_builddir=$ac_pwd
|
---|
1417 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1418 | # for backward compatibility:
|
---|
1419 | ac_top_builddir=$ac_top_build_prefix
|
---|
1420 |
|
---|
1421 | case $srcdir in
|
---|
1422 | .) # We are building in place.
|
---|
1423 | ac_srcdir=.
|
---|
1424 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1425 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1426 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1427 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1428 | ac_top_srcdir=$srcdir
|
---|
1429 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1430 | *) # Relative name.
|
---|
1431 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1432 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1433 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1434 | esac
|
---|
1435 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1436 |
|
---|
1437 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1438 | # Check for guested configure.
|
---|
1439 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1440 | echo &&
|
---|
1441 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1442 | elif test -f "$ac_srcdir/configure"; then
|
---|
1443 | echo &&
|
---|
1444 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1445 | else
|
---|
1446 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1447 | fi || ac_status=$?
|
---|
1448 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1449 | done
|
---|
1450 | fi
|
---|
1451 |
|
---|
1452 | test -n "$ac_init_help" && exit $ac_status
|
---|
1453 | if $ac_init_version; then
|
---|
1454 | cat <<\_ACEOF
|
---|
1455 | configure
|
---|
1456 | generated by GNU Autoconf 2.69
|
---|
1457 |
|
---|
1458 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1459 | This configure script is free software; the Free Software Foundation
|
---|
1460 | gives unlimited permission to copy, distribute and modify it.
|
---|
1461 | _ACEOF
|
---|
1462 | exit
|
---|
1463 | fi
|
---|
1464 |
|
---|
1465 | ## ------------------------ ##
|
---|
1466 | ## Autoconf initialization. ##
|
---|
1467 | ## ------------------------ ##
|
---|
1468 |
|
---|
1469 | # ac_fn_cxx_try_compile LINENO
|
---|
1470 | # ----------------------------
|
---|
1471 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1472 | ac_fn_cxx_try_compile ()
|
---|
1473 | {
|
---|
1474 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1475 | rm -f conftest.$ac_objext
|
---|
1476 | if { { ac_try="$ac_compile"
|
---|
1477 | case "(($ac_try" in
|
---|
1478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1479 | *) ac_try_echo=$ac_try;;
|
---|
1480 | esac
|
---|
1481 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1482 | $as_echo "$ac_try_echo"; } >&5
|
---|
1483 | (eval "$ac_compile") 2>conftest.err
|
---|
1484 | ac_status=$?
|
---|
1485 | if test -s conftest.err; then
|
---|
1486 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1487 | cat conftest.er1 >&5
|
---|
1488 | mv -f conftest.er1 conftest.err
|
---|
1489 | fi
|
---|
1490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1491 | test $ac_status = 0; } && {
|
---|
1492 | test -z "$ac_cxx_werror_flag" ||
|
---|
1493 | test ! -s conftest.err
|
---|
1494 | } && test -s conftest.$ac_objext; then :
|
---|
1495 | ac_retval=0
|
---|
1496 | else
|
---|
1497 | $as_echo "$as_me: failed program was:" >&5
|
---|
1498 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1499 |
|
---|
1500 | ac_retval=1
|
---|
1501 | fi
|
---|
1502 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1503 | as_fn_set_status $ac_retval
|
---|
1504 |
|
---|
1505 | } # ac_fn_cxx_try_compile
|
---|
1506 |
|
---|
1507 | # ac_fn_c_try_compile LINENO
|
---|
1508 | # --------------------------
|
---|
1509 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1510 | ac_fn_c_try_compile ()
|
---|
1511 | {
|
---|
1512 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1513 | rm -f conftest.$ac_objext
|
---|
1514 | if { { ac_try="$ac_compile"
|
---|
1515 | case "(($ac_try" in
|
---|
1516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1517 | *) ac_try_echo=$ac_try;;
|
---|
1518 | esac
|
---|
1519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1520 | $as_echo "$ac_try_echo"; } >&5
|
---|
1521 | (eval "$ac_compile") 2>conftest.err
|
---|
1522 | ac_status=$?
|
---|
1523 | if test -s conftest.err; then
|
---|
1524 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1525 | cat conftest.er1 >&5
|
---|
1526 | mv -f conftest.er1 conftest.err
|
---|
1527 | fi
|
---|
1528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1529 | test $ac_status = 0; } && {
|
---|
1530 | test -z "$ac_c_werror_flag" ||
|
---|
1531 | test ! -s conftest.err
|
---|
1532 | } && test -s conftest.$ac_objext; then :
|
---|
1533 | ac_retval=0
|
---|
1534 | else
|
---|
1535 | $as_echo "$as_me: failed program was:" >&5
|
---|
1536 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1537 |
|
---|
1538 | ac_retval=1
|
---|
1539 | fi
|
---|
1540 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1541 | as_fn_set_status $ac_retval
|
---|
1542 |
|
---|
1543 | } # ac_fn_c_try_compile
|
---|
1544 |
|
---|
1545 | # ac_fn_c_try_cpp LINENO
|
---|
1546 | # ----------------------
|
---|
1547 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1548 | ac_fn_c_try_cpp ()
|
---|
1549 | {
|
---|
1550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1551 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1552 | case "(($ac_try" in
|
---|
1553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1554 | *) ac_try_echo=$ac_try;;
|
---|
1555 | esac
|
---|
1556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1557 | $as_echo "$ac_try_echo"; } >&5
|
---|
1558 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1559 | ac_status=$?
|
---|
1560 | if test -s conftest.err; then
|
---|
1561 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1562 | cat conftest.er1 >&5
|
---|
1563 | mv -f conftest.er1 conftest.err
|
---|
1564 | fi
|
---|
1565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1566 | test $ac_status = 0; } > conftest.i && {
|
---|
1567 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1568 | test ! -s conftest.err
|
---|
1569 | }; then :
|
---|
1570 | ac_retval=0
|
---|
1571 | else
|
---|
1572 | $as_echo "$as_me: failed program was:" >&5
|
---|
1573 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1574 |
|
---|
1575 | ac_retval=1
|
---|
1576 | fi
|
---|
1577 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1578 | as_fn_set_status $ac_retval
|
---|
1579 |
|
---|
1580 | } # ac_fn_c_try_cpp
|
---|
1581 |
|
---|
1582 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1583 | # -------------------------------------------------------
|
---|
1584 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1585 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1586 | # accordingly.
|
---|
1587 | ac_fn_c_check_header_mongrel ()
|
---|
1588 | {
|
---|
1589 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1590 | if eval \${$3+:} false; then :
|
---|
1591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1592 | $as_echo_n "checking for $2... " >&6; }
|
---|
1593 | if eval \${$3+:} false; then :
|
---|
1594 | $as_echo_n "(cached) " >&6
|
---|
1595 | fi
|
---|
1596 | eval ac_res=\$$3
|
---|
1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1598 | $as_echo "$ac_res" >&6; }
|
---|
1599 | else
|
---|
1600 | # Is the header compilable?
|
---|
1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1602 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1604 | /* end confdefs.h. */
|
---|
1605 | $4
|
---|
1606 | #include <$2>
|
---|
1607 | _ACEOF
|
---|
1608 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1609 | ac_header_compiler=yes
|
---|
1610 | else
|
---|
1611 | ac_header_compiler=no
|
---|
1612 | fi
|
---|
1613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1615 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1616 |
|
---|
1617 | # Is the header present?
|
---|
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1619 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1621 | /* end confdefs.h. */
|
---|
1622 | #include <$2>
|
---|
1623 | _ACEOF
|
---|
1624 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1625 | ac_header_preproc=yes
|
---|
1626 | else
|
---|
1627 | ac_header_preproc=no
|
---|
1628 | fi
|
---|
1629 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1631 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1632 |
|
---|
1633 | # So? What about this header?
|
---|
1634 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1635 | yes:no: )
|
---|
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1637 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1639 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1640 | ;;
|
---|
1641 | no:yes:* )
|
---|
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1643 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1645 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1647 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1649 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1651 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1652 | ;;
|
---|
1653 | esac
|
---|
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1655 | $as_echo_n "checking for $2... " >&6; }
|
---|
1656 | if eval \${$3+:} false; then :
|
---|
1657 | $as_echo_n "(cached) " >&6
|
---|
1658 | else
|
---|
1659 | eval "$3=\$ac_header_compiler"
|
---|
1660 | fi
|
---|
1661 | eval ac_res=\$$3
|
---|
1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1663 | $as_echo "$ac_res" >&6; }
|
---|
1664 | fi
|
---|
1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1666 |
|
---|
1667 | } # ac_fn_c_check_header_mongrel
|
---|
1668 |
|
---|
1669 | # ac_fn_c_try_run LINENO
|
---|
1670 | # ----------------------
|
---|
1671 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1672 | # that executables *can* be run.
|
---|
1673 | ac_fn_c_try_run ()
|
---|
1674 | {
|
---|
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1676 | if { { ac_try="$ac_link"
|
---|
1677 | case "(($ac_try" in
|
---|
1678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1679 | *) ac_try_echo=$ac_try;;
|
---|
1680 | esac
|
---|
1681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1682 | $as_echo "$ac_try_echo"; } >&5
|
---|
1683 | (eval "$ac_link") 2>&5
|
---|
1684 | ac_status=$?
|
---|
1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1686 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1687 | { { case "(($ac_try" in
|
---|
1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1689 | *) ac_try_echo=$ac_try;;
|
---|
1690 | esac
|
---|
1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1692 | $as_echo "$ac_try_echo"; } >&5
|
---|
1693 | (eval "$ac_try") 2>&5
|
---|
1694 | ac_status=$?
|
---|
1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1696 | test $ac_status = 0; }; }; then :
|
---|
1697 | ac_retval=0
|
---|
1698 | else
|
---|
1699 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1700 | $as_echo "$as_me: failed program was:" >&5
|
---|
1701 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1702 |
|
---|
1703 | ac_retval=$ac_status
|
---|
1704 | fi
|
---|
1705 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1706 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1707 | as_fn_set_status $ac_retval
|
---|
1708 |
|
---|
1709 | } # ac_fn_c_try_run
|
---|
1710 |
|
---|
1711 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1712 | # -------------------------------------------------------
|
---|
1713 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1714 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1715 | ac_fn_c_check_header_compile ()
|
---|
1716 | {
|
---|
1717 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1719 | $as_echo_n "checking for $2... " >&6; }
|
---|
1720 | if eval \${$3+:} false; then :
|
---|
1721 | $as_echo_n "(cached) " >&6
|
---|
1722 | else
|
---|
1723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1724 | /* end confdefs.h. */
|
---|
1725 | $4
|
---|
1726 | #include <$2>
|
---|
1727 | _ACEOF
|
---|
1728 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1729 | eval "$3=yes"
|
---|
1730 | else
|
---|
1731 | eval "$3=no"
|
---|
1732 | fi
|
---|
1733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1734 | fi
|
---|
1735 | eval ac_res=\$$3
|
---|
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1737 | $as_echo "$ac_res" >&6; }
|
---|
1738 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1739 |
|
---|
1740 | } # ac_fn_c_check_header_compile
|
---|
1741 |
|
---|
1742 | # ac_fn_c_try_link LINENO
|
---|
1743 | # -----------------------
|
---|
1744 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1745 | ac_fn_c_try_link ()
|
---|
1746 | {
|
---|
1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1748 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1749 | if { { ac_try="$ac_link"
|
---|
1750 | case "(($ac_try" in
|
---|
1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1752 | *) ac_try_echo=$ac_try;;
|
---|
1753 | esac
|
---|
1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1755 | $as_echo "$ac_try_echo"; } >&5
|
---|
1756 | (eval "$ac_link") 2>conftest.err
|
---|
1757 | ac_status=$?
|
---|
1758 | if test -s conftest.err; then
|
---|
1759 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1760 | cat conftest.er1 >&5
|
---|
1761 | mv -f conftest.er1 conftest.err
|
---|
1762 | fi
|
---|
1763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1764 | test $ac_status = 0; } && {
|
---|
1765 | test -z "$ac_c_werror_flag" ||
|
---|
1766 | test ! -s conftest.err
|
---|
1767 | } && test -s conftest$ac_exeext && {
|
---|
1768 | test "$cross_compiling" = yes ||
|
---|
1769 | test -x conftest$ac_exeext
|
---|
1770 | }; then :
|
---|
1771 | ac_retval=0
|
---|
1772 | else
|
---|
1773 | $as_echo "$as_me: failed program was:" >&5
|
---|
1774 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1775 |
|
---|
1776 | ac_retval=1
|
---|
1777 | fi
|
---|
1778 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1779 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1780 | # interfere with the next link command; also delete a directory that is
|
---|
1781 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1782 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1784 | as_fn_set_status $ac_retval
|
---|
1785 |
|
---|
1786 | } # ac_fn_c_try_link
|
---|
1787 |
|
---|
1788 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1789 | # -------------------------------------------
|
---|
1790 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1791 | # variable VAR accordingly.
|
---|
1792 | ac_fn_c_check_type ()
|
---|
1793 | {
|
---|
1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1796 | $as_echo_n "checking for $2... " >&6; }
|
---|
1797 | if eval \${$3+:} false; then :
|
---|
1798 | $as_echo_n "(cached) " >&6
|
---|
1799 | else
|
---|
1800 | eval "$3=no"
|
---|
1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1802 | /* end confdefs.h. */
|
---|
1803 | $4
|
---|
1804 | int
|
---|
1805 | main ()
|
---|
1806 | {
|
---|
1807 | if (sizeof ($2))
|
---|
1808 | return 0;
|
---|
1809 | ;
|
---|
1810 | return 0;
|
---|
1811 | }
|
---|
1812 | _ACEOF
|
---|
1813 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1815 | /* end confdefs.h. */
|
---|
1816 | $4
|
---|
1817 | int
|
---|
1818 | main ()
|
---|
1819 | {
|
---|
1820 | if (sizeof (($2)))
|
---|
1821 | return 0;
|
---|
1822 | ;
|
---|
1823 | return 0;
|
---|
1824 | }
|
---|
1825 | _ACEOF
|
---|
1826 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1827 |
|
---|
1828 | else
|
---|
1829 | eval "$3=yes"
|
---|
1830 | fi
|
---|
1831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1832 | fi
|
---|
1833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1834 | fi
|
---|
1835 | eval ac_res=\$$3
|
---|
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1837 | $as_echo "$ac_res" >&6; }
|
---|
1838 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1839 |
|
---|
1840 | } # ac_fn_c_check_type
|
---|
1841 |
|
---|
1842 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1843 | # ----------------------------------
|
---|
1844 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1845 | ac_fn_c_check_func ()
|
---|
1846 | {
|
---|
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1849 | $as_echo_n "checking for $2... " >&6; }
|
---|
1850 | if eval \${$3+:} false; then :
|
---|
1851 | $as_echo_n "(cached) " >&6
|
---|
1852 | else
|
---|
1853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1854 | /* end confdefs.h. */
|
---|
1855 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1856 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1857 | #define $2 innocuous_$2
|
---|
1858 |
|
---|
1859 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1860 | which can conflict with char $2 (); below.
|
---|
1861 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1862 | <limits.h> exists even on freestanding compilers. */
|
---|
1863 |
|
---|
1864 | #ifdef __STDC__
|
---|
1865 | # include <limits.h>
|
---|
1866 | #else
|
---|
1867 | # include <assert.h>
|
---|
1868 | #endif
|
---|
1869 |
|
---|
1870 | #undef $2
|
---|
1871 |
|
---|
1872 | /* Override any GCC internal prototype to avoid an error.
|
---|
1873 | Use char because int might match the return type of a GCC
|
---|
1874 | builtin and then its argument prototype would still apply. */
|
---|
1875 | #ifdef __cplusplus
|
---|
1876 | extern "C"
|
---|
1877 | #endif
|
---|
1878 | char $2 ();
|
---|
1879 | /* The GNU C library defines this for functions which it implements
|
---|
1880 | to always fail with ENOSYS. Some functions are actually named
|
---|
1881 | something starting with __ and the normal name is an alias. */
|
---|
1882 | #if defined __stub_$2 || defined __stub___$2
|
---|
1883 | choke me
|
---|
1884 | #endif
|
---|
1885 |
|
---|
1886 | int
|
---|
1887 | main ()
|
---|
1888 | {
|
---|
1889 | return $2 ();
|
---|
1890 | ;
|
---|
1891 | return 0;
|
---|
1892 | }
|
---|
1893 | _ACEOF
|
---|
1894 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1895 | eval "$3=yes"
|
---|
1896 | else
|
---|
1897 | eval "$3=no"
|
---|
1898 | fi
|
---|
1899 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1900 | conftest$ac_exeext conftest.$ac_ext
|
---|
1901 | fi
|
---|
1902 | eval ac_res=\$$3
|
---|
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1904 | $as_echo "$ac_res" >&6; }
|
---|
1905 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1906 |
|
---|
1907 | } # ac_fn_c_check_func
|
---|
1908 |
|
---|
1909 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
---|
1910 | # --------------------------------------------
|
---|
1911 | # Tries to find the compile-time value of EXPR in a program that includes
|
---|
1912 | # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
---|
1913 | # computed
|
---|
1914 | ac_fn_c_compute_int ()
|
---|
1915 | {
|
---|
1916 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1917 | if test "$cross_compiling" = yes; then
|
---|
1918 | # Depending upon the size, compute the lo and hi bounds.
|
---|
1919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1920 | /* end confdefs.h. */
|
---|
1921 | $4
|
---|
1922 | int
|
---|
1923 | main ()
|
---|
1924 | {
|
---|
1925 | static int test_array [1 - 2 * !(($2) >= 0)];
|
---|
1926 | test_array [0] = 0;
|
---|
1927 | return test_array [0];
|
---|
1928 |
|
---|
1929 | ;
|
---|
1930 | return 0;
|
---|
1931 | }
|
---|
1932 | _ACEOF
|
---|
1933 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1934 | ac_lo=0 ac_mid=0
|
---|
1935 | while :; do
|
---|
1936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1937 | /* end confdefs.h. */
|
---|
1938 | $4
|
---|
1939 | int
|
---|
1940 | main ()
|
---|
1941 | {
|
---|
1942 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
1943 | test_array [0] = 0;
|
---|
1944 | return test_array [0];
|
---|
1945 |
|
---|
1946 | ;
|
---|
1947 | return 0;
|
---|
1948 | }
|
---|
1949 | _ACEOF
|
---|
1950 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1951 | ac_hi=$ac_mid; break
|
---|
1952 | else
|
---|
1953 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
---|
1954 | if test $ac_lo -le $ac_mid; then
|
---|
1955 | ac_lo= ac_hi=
|
---|
1956 | break
|
---|
1957 | fi
|
---|
1958 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
---|
1959 | fi
|
---|
1960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1961 | done
|
---|
1962 | else
|
---|
1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1964 | /* end confdefs.h. */
|
---|
1965 | $4
|
---|
1966 | int
|
---|
1967 | main ()
|
---|
1968 | {
|
---|
1969 | static int test_array [1 - 2 * !(($2) < 0)];
|
---|
1970 | test_array [0] = 0;
|
---|
1971 | return test_array [0];
|
---|
1972 |
|
---|
1973 | ;
|
---|
1974 | return 0;
|
---|
1975 | }
|
---|
1976 | _ACEOF
|
---|
1977 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1978 | ac_hi=-1 ac_mid=-1
|
---|
1979 | while :; do
|
---|
1980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1981 | /* end confdefs.h. */
|
---|
1982 | $4
|
---|
1983 | int
|
---|
1984 | main ()
|
---|
1985 | {
|
---|
1986 | static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
---|
1987 | test_array [0] = 0;
|
---|
1988 | return test_array [0];
|
---|
1989 |
|
---|
1990 | ;
|
---|
1991 | return 0;
|
---|
1992 | }
|
---|
1993 | _ACEOF
|
---|
1994 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1995 | ac_lo=$ac_mid; break
|
---|
1996 | else
|
---|
1997 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
---|
1998 | if test $ac_mid -le $ac_hi; then
|
---|
1999 | ac_lo= ac_hi=
|
---|
2000 | break
|
---|
2001 | fi
|
---|
2002 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
---|
2003 | fi
|
---|
2004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2005 | done
|
---|
2006 | else
|
---|
2007 | ac_lo= ac_hi=
|
---|
2008 | fi
|
---|
2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2010 | fi
|
---|
2011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2012 | # Binary search between lo and hi bounds.
|
---|
2013 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
2014 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
---|
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2016 | /* end confdefs.h. */
|
---|
2017 | $4
|
---|
2018 | int
|
---|
2019 | main ()
|
---|
2020 | {
|
---|
2021 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
2022 | test_array [0] = 0;
|
---|
2023 | return test_array [0];
|
---|
2024 |
|
---|
2025 | ;
|
---|
2026 | return 0;
|
---|
2027 | }
|
---|
2028 | _ACEOF
|
---|
2029 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2030 | ac_hi=$ac_mid
|
---|
2031 | else
|
---|
2032 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
---|
2033 | fi
|
---|
2034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2035 | done
|
---|
2036 | case $ac_lo in #((
|
---|
2037 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
---|
2038 | '') ac_retval=1 ;;
|
---|
2039 | esac
|
---|
2040 | else
|
---|
2041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2042 | /* end confdefs.h. */
|
---|
2043 | $4
|
---|
2044 | static long int longval () { return $2; }
|
---|
2045 | static unsigned long int ulongval () { return $2; }
|
---|
2046 | #include <stdio.h>
|
---|
2047 | #include <stdlib.h>
|
---|
2048 | int
|
---|
2049 | main ()
|
---|
2050 | {
|
---|
2051 |
|
---|
2052 | FILE *f = fopen ("conftest.val", "w");
|
---|
2053 | if (! f)
|
---|
2054 | return 1;
|
---|
2055 | if (($2) < 0)
|
---|
2056 | {
|
---|
2057 | long int i = longval ();
|
---|
2058 | if (i != ($2))
|
---|
2059 | return 1;
|
---|
2060 | fprintf (f, "%ld", i);
|
---|
2061 | }
|
---|
2062 | else
|
---|
2063 | {
|
---|
2064 | unsigned long int i = ulongval ();
|
---|
2065 | if (i != ($2))
|
---|
2066 | return 1;
|
---|
2067 | fprintf (f, "%lu", i);
|
---|
2068 | }
|
---|
2069 | /* Do not output a trailing newline, as this causes \r\n confusion
|
---|
2070 | on some platforms. */
|
---|
2071 | return ferror (f) || fclose (f) != 0;
|
---|
2072 |
|
---|
2073 | ;
|
---|
2074 | return 0;
|
---|
2075 | }
|
---|
2076 | _ACEOF
|
---|
2077 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
2078 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
---|
2079 | else
|
---|
2080 | ac_retval=1
|
---|
2081 | fi
|
---|
2082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
2083 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
2084 | rm -f conftest.val
|
---|
2085 |
|
---|
2086 | fi
|
---|
2087 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
2088 | as_fn_set_status $ac_retval
|
---|
2089 |
|
---|
2090 | } # ac_fn_c_compute_int
|
---|
2091 | cat >config.log <<_ACEOF
|
---|
2092 | This file contains any messages produced by compilers while
|
---|
2093 | running configure, to aid debugging if configure makes a mistake.
|
---|
2094 |
|
---|
2095 | It was created by $as_me, which was
|
---|
2096 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
2097 |
|
---|
2098 | $ $0 $@
|
---|
2099 |
|
---|
2100 | _ACEOF
|
---|
2101 | exec 5>>config.log
|
---|
2102 | {
|
---|
2103 | cat <<_ASUNAME
|
---|
2104 | ## --------- ##
|
---|
2105 | ## Platform. ##
|
---|
2106 | ## --------- ##
|
---|
2107 |
|
---|
2108 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2109 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2110 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2111 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2112 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2113 |
|
---|
2114 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2115 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2116 |
|
---|
2117 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2118 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2119 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2120 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2121 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2122 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2123 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2124 |
|
---|
2125 | _ASUNAME
|
---|
2126 |
|
---|
2127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2128 | for as_dir in $PATH
|
---|
2129 | do
|
---|
2130 | IFS=$as_save_IFS
|
---|
2131 | test -z "$as_dir" && as_dir=.
|
---|
2132 | $as_echo "PATH: $as_dir"
|
---|
2133 | done
|
---|
2134 | IFS=$as_save_IFS
|
---|
2135 |
|
---|
2136 | } >&5
|
---|
2137 |
|
---|
2138 | cat >&5 <<_ACEOF
|
---|
2139 |
|
---|
2140 |
|
---|
2141 | ## ----------- ##
|
---|
2142 | ## Core tests. ##
|
---|
2143 | ## ----------- ##
|
---|
2144 |
|
---|
2145 | _ACEOF
|
---|
2146 |
|
---|
2147 |
|
---|
2148 | # Keep a trace of the command line.
|
---|
2149 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2150 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2151 | # Also quote any args containing shell meta-characters.
|
---|
2152 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2153 | ac_configure_args=
|
---|
2154 | ac_configure_args0=
|
---|
2155 | ac_configure_args1=
|
---|
2156 | ac_must_keep_next=false
|
---|
2157 | for ac_pass in 1 2
|
---|
2158 | do
|
---|
2159 | for ac_arg
|
---|
2160 | do
|
---|
2161 | case $ac_arg in
|
---|
2162 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2164 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2165 | continue ;;
|
---|
2166 | *\'*)
|
---|
2167 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2168 | esac
|
---|
2169 | case $ac_pass in
|
---|
2170 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2171 | 2)
|
---|
2172 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2173 | if test $ac_must_keep_next = true; then
|
---|
2174 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2175 | else
|
---|
2176 | case $ac_arg in
|
---|
2177 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2178 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2179 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2180 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2181 | case "$ac_configure_args0 " in
|
---|
2182 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2183 | esac
|
---|
2184 | ;;
|
---|
2185 | -* ) ac_must_keep_next=true ;;
|
---|
2186 | esac
|
---|
2187 | fi
|
---|
2188 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2189 | ;;
|
---|
2190 | esac
|
---|
2191 | done
|
---|
2192 | done
|
---|
2193 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2194 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2195 |
|
---|
2196 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2197 | # config.log. We remove comments because anyway the quotes in there
|
---|
2198 | # would cause problems or look ugly.
|
---|
2199 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2200 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2201 | trap 'exit_status=$?
|
---|
2202 | # Save into config.log some information that might help in debugging.
|
---|
2203 | {
|
---|
2204 | echo
|
---|
2205 |
|
---|
2206 | $as_echo "## ---------------- ##
|
---|
2207 | ## Cache variables. ##
|
---|
2208 | ## ---------------- ##"
|
---|
2209 | echo
|
---|
2210 | # The following way of writing the cache mishandles newlines in values,
|
---|
2211 | (
|
---|
2212 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2213 | eval ac_val=\$$ac_var
|
---|
2214 | case $ac_val in #(
|
---|
2215 | *${as_nl}*)
|
---|
2216 | case $ac_var in #(
|
---|
2217 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2218 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2219 | esac
|
---|
2220 | case $ac_var in #(
|
---|
2221 | _ | IFS | as_nl) ;; #(
|
---|
2222 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2223 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2224 | esac ;;
|
---|
2225 | esac
|
---|
2226 | done
|
---|
2227 | (set) 2>&1 |
|
---|
2228 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2229 | *${as_nl}ac_space=\ *)
|
---|
2230 | sed -n \
|
---|
2231 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2232 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2233 | ;; #(
|
---|
2234 | *)
|
---|
2235 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2236 | ;;
|
---|
2237 | esac |
|
---|
2238 | sort
|
---|
2239 | )
|
---|
2240 | echo
|
---|
2241 |
|
---|
2242 | $as_echo "## ----------------- ##
|
---|
2243 | ## Output variables. ##
|
---|
2244 | ## ----------------- ##"
|
---|
2245 | echo
|
---|
2246 | for ac_var in $ac_subst_vars
|
---|
2247 | do
|
---|
2248 | eval ac_val=\$$ac_var
|
---|
2249 | case $ac_val in
|
---|
2250 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2251 | esac
|
---|
2252 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2253 | done | sort
|
---|
2254 | echo
|
---|
2255 |
|
---|
2256 | if test -n "$ac_subst_files"; then
|
---|
2257 | $as_echo "## ------------------- ##
|
---|
2258 | ## File substitutions. ##
|
---|
2259 | ## ------------------- ##"
|
---|
2260 | echo
|
---|
2261 | for ac_var in $ac_subst_files
|
---|
2262 | do
|
---|
2263 | eval ac_val=\$$ac_var
|
---|
2264 | case $ac_val in
|
---|
2265 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2266 | esac
|
---|
2267 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2268 | done | sort
|
---|
2269 | echo
|
---|
2270 | fi
|
---|
2271 |
|
---|
2272 | if test -s confdefs.h; then
|
---|
2273 | $as_echo "## ----------- ##
|
---|
2274 | ## confdefs.h. ##
|
---|
2275 | ## ----------- ##"
|
---|
2276 | echo
|
---|
2277 | cat confdefs.h
|
---|
2278 | echo
|
---|
2279 | fi
|
---|
2280 | test "$ac_signal" != 0 &&
|
---|
2281 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2282 | $as_echo "$as_me: exit $exit_status"
|
---|
2283 | } >&5
|
---|
2284 | rm -f core *.core core.conftest.* &&
|
---|
2285 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2286 | exit $exit_status
|
---|
2287 | ' 0
|
---|
2288 | for ac_signal in 1 2 13 15; do
|
---|
2289 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2290 | done
|
---|
2291 | ac_signal=0
|
---|
2292 |
|
---|
2293 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2294 | rm -f -r conftest* confdefs.h
|
---|
2295 |
|
---|
2296 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2297 |
|
---|
2298 | # Predefined preprocessor variables.
|
---|
2299 |
|
---|
2300 | cat >>confdefs.h <<_ACEOF
|
---|
2301 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2302 | _ACEOF
|
---|
2303 |
|
---|
2304 | cat >>confdefs.h <<_ACEOF
|
---|
2305 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2306 | _ACEOF
|
---|
2307 |
|
---|
2308 | cat >>confdefs.h <<_ACEOF
|
---|
2309 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2310 | _ACEOF
|
---|
2311 |
|
---|
2312 | cat >>confdefs.h <<_ACEOF
|
---|
2313 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2314 | _ACEOF
|
---|
2315 |
|
---|
2316 | cat >>confdefs.h <<_ACEOF
|
---|
2317 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2318 | _ACEOF
|
---|
2319 |
|
---|
2320 | cat >>confdefs.h <<_ACEOF
|
---|
2321 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2322 | _ACEOF
|
---|
2323 |
|
---|
2324 |
|
---|
2325 | # Let the site file select an alternate cache file if it wants to.
|
---|
2326 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2327 | ac_site_file1=NONE
|
---|
2328 | ac_site_file2=NONE
|
---|
2329 | if test -n "$CONFIG_SITE"; then
|
---|
2330 | # We do not want a PATH search for config.site.
|
---|
2331 | case $CONFIG_SITE in #((
|
---|
2332 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2333 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2334 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2335 | esac
|
---|
2336 | elif test "x$prefix" != xNONE; then
|
---|
2337 | ac_site_file1=$prefix/share/config.site
|
---|
2338 | ac_site_file2=$prefix/etc/config.site
|
---|
2339 | else
|
---|
2340 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2341 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2342 | fi
|
---|
2343 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2344 | do
|
---|
2345 | test "x$ac_site_file" = xNONE && continue
|
---|
2346 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2347 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2348 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2349 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2350 | . "$ac_site_file" \
|
---|
2351 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2352 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2353 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2354 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2355 | fi
|
---|
2356 | done
|
---|
2357 |
|
---|
2358 | if test -r "$cache_file"; then
|
---|
2359 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2360 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2361 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2363 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2364 | case $cache_file in
|
---|
2365 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2366 | *) . "./$cache_file";;
|
---|
2367 | esac
|
---|
2368 | fi
|
---|
2369 | else
|
---|
2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2371 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2372 | >$cache_file
|
---|
2373 | fi
|
---|
2374 |
|
---|
2375 | # Check that the precious variables saved in the cache have kept the same
|
---|
2376 | # value.
|
---|
2377 | ac_cache_corrupted=false
|
---|
2378 | for ac_var in $ac_precious_vars; do
|
---|
2379 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2380 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2381 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2382 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2383 | case $ac_old_set,$ac_new_set in
|
---|
2384 | set,)
|
---|
2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2386 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2387 | ac_cache_corrupted=: ;;
|
---|
2388 | ,set)
|
---|
2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2390 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2391 | ac_cache_corrupted=: ;;
|
---|
2392 | ,);;
|
---|
2393 | *)
|
---|
2394 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2395 | # differences in whitespace do not lead to failure.
|
---|
2396 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2397 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2398 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2400 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2401 | ac_cache_corrupted=:
|
---|
2402 | else
|
---|
2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2404 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2405 | eval $ac_var=\$ac_old_val
|
---|
2406 | fi
|
---|
2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2408 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2410 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2411 | fi;;
|
---|
2412 | esac
|
---|
2413 | # Pass precious variables to config.status.
|
---|
2414 | if test "$ac_new_set" = set; then
|
---|
2415 | case $ac_new_val in
|
---|
2416 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2417 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2418 | esac
|
---|
2419 | case " $ac_configure_args " in
|
---|
2420 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2421 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2422 | esac
|
---|
2423 | fi
|
---|
2424 | done
|
---|
2425 | if $ac_cache_corrupted; then
|
---|
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2427 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2429 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2430 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2431 | fi
|
---|
2432 | ## -------------------- ##
|
---|
2433 | ## Main body of script. ##
|
---|
2434 | ## -------------------- ##
|
---|
2435 |
|
---|
2436 | ac_ext=c
|
---|
2437 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2441 |
|
---|
2442 |
|
---|
2443 | ac_config_headers="$ac_config_headers config.h"
|
---|
2444 |
|
---|
2445 |
|
---|
2446 | ac_aux_dir=
|
---|
2447 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2448 | if test -f "$ac_dir/install-sh"; then
|
---|
2449 | ac_aux_dir=$ac_dir
|
---|
2450 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2451 | break
|
---|
2452 | elif test -f "$ac_dir/install.sh"; then
|
---|
2453 | ac_aux_dir=$ac_dir
|
---|
2454 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2455 | break
|
---|
2456 | elif test -f "$ac_dir/shtool"; then
|
---|
2457 | ac_aux_dir=$ac_dir
|
---|
2458 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2459 | break
|
---|
2460 | fi
|
---|
2461 | done
|
---|
2462 | if test -z "$ac_aux_dir"; then
|
---|
2463 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2464 | fi
|
---|
2465 |
|
---|
2466 | # These three variables are undocumented and unsupported,
|
---|
2467 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2468 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2469 | # whose full name contains unusual characters.
|
---|
2470 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2471 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2472 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2473 |
|
---|
2474 |
|
---|
2475 | # Make sure we can run config.sub.
|
---|
2476 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2477 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2478 |
|
---|
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2480 | $as_echo_n "checking build system type... " >&6; }
|
---|
2481 | if ${ac_cv_build+:} false; then :
|
---|
2482 | $as_echo_n "(cached) " >&6
|
---|
2483 | else
|
---|
2484 | ac_build_alias=$build_alias
|
---|
2485 | test "x$ac_build_alias" = x &&
|
---|
2486 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2487 | test "x$ac_build_alias" = x &&
|
---|
2488 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2489 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2490 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2491 |
|
---|
2492 | fi
|
---|
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2494 | $as_echo "$ac_cv_build" >&6; }
|
---|
2495 | case $ac_cv_build in
|
---|
2496 | *-*-*) ;;
|
---|
2497 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
2498 | esac
|
---|
2499 | build=$ac_cv_build
|
---|
2500 | ac_save_IFS=$IFS; IFS='-'
|
---|
2501 | set x $ac_cv_build
|
---|
2502 | shift
|
---|
2503 | build_cpu=$1
|
---|
2504 | build_vendor=$2
|
---|
2505 | shift; shift
|
---|
2506 | # Remember, the first character of IFS is used to create $*,
|
---|
2507 | # except with old shells:
|
---|
2508 | build_os=$*
|
---|
2509 | IFS=$ac_save_IFS
|
---|
2510 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2511 |
|
---|
2512 |
|
---|
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2514 | $as_echo_n "checking host system type... " >&6; }
|
---|
2515 | if ${ac_cv_host+:} false; then :
|
---|
2516 | $as_echo_n "(cached) " >&6
|
---|
2517 | else
|
---|
2518 | if test "x$host_alias" = x; then
|
---|
2519 | ac_cv_host=$ac_cv_build
|
---|
2520 | else
|
---|
2521 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2522 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2523 | fi
|
---|
2524 |
|
---|
2525 | fi
|
---|
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2527 | $as_echo "$ac_cv_host" >&6; }
|
---|
2528 | case $ac_cv_host in
|
---|
2529 | *-*-*) ;;
|
---|
2530 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
2531 | esac
|
---|
2532 | host=$ac_cv_host
|
---|
2533 | ac_save_IFS=$IFS; IFS='-'
|
---|
2534 | set x $ac_cv_host
|
---|
2535 | shift
|
---|
2536 | host_cpu=$1
|
---|
2537 | host_vendor=$2
|
---|
2538 | shift; shift
|
---|
2539 | # Remember, the first character of IFS is used to create $*,
|
---|
2540 | # except with old shells:
|
---|
2541 | host_os=$*
|
---|
2542 | IFS=$ac_save_IFS
|
---|
2543 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2544 |
|
---|
2545 |
|
---|
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
2547 | $as_echo_n "checking target system type... " >&6; }
|
---|
2548 | if ${ac_cv_target+:} false; then :
|
---|
2549 | $as_echo_n "(cached) " >&6
|
---|
2550 | else
|
---|
2551 | if test "x$target_alias" = x; then
|
---|
2552 | ac_cv_target=$ac_cv_host
|
---|
2553 | else
|
---|
2554 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
2555 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
2556 | fi
|
---|
2557 |
|
---|
2558 | fi
|
---|
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
2560 | $as_echo "$ac_cv_target" >&6; }
|
---|
2561 | case $ac_cv_target in
|
---|
2562 | *-*-*) ;;
|
---|
2563 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
|
---|
2564 | esac
|
---|
2565 | target=$ac_cv_target
|
---|
2566 | ac_save_IFS=$IFS; IFS='-'
|
---|
2567 | set x $ac_cv_target
|
---|
2568 | shift
|
---|
2569 | target_cpu=$1
|
---|
2570 | target_vendor=$2
|
---|
2571 | shift; shift
|
---|
2572 | # Remember, the first character of IFS is used to create $*,
|
---|
2573 | # except with old shells:
|
---|
2574 | target_os=$*
|
---|
2575 | IFS=$ac_save_IFS
|
---|
2576 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
2577 |
|
---|
2578 |
|
---|
2579 | # The aliases save the names the user supplied, while $host etc.
|
---|
2580 | # will get canonicalized.
|
---|
2581 | test -n "$target_alias" &&
|
---|
2582 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
2583 | NONENONEs,x,x, &&
|
---|
2584 | program_prefix=${target_alias}-
|
---|
2585 |
|
---|
2586 | test "$program_prefix" != NONE &&
|
---|
2587 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
2588 | # Use a double $ so make ignores it.
|
---|
2589 | test "$program_suffix" != NONE &&
|
---|
2590 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
2591 | # Double any \ or $.
|
---|
2592 | # By default was `s,x,x', remove it if useless.
|
---|
2593 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
2594 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
2595 |
|
---|
2596 |
|
---|
2597 | PACKAGE=mgpp
|
---|
2598 | VERSION=1.3
|
---|
2599 |
|
---|
2600 | cat >>confdefs.h <<_ACEOF
|
---|
2601 | #define PACKAGE "$PACKAGE"
|
---|
2602 | _ACEOF
|
---|
2603 |
|
---|
2604 | cat >>confdefs.h <<_ACEOF
|
---|
2605 | #define VERSION "$VERSION"
|
---|
2606 | _ACEOF
|
---|
2607 |
|
---|
2608 |
|
---|
2609 |
|
---|
2610 |
|
---|
2611 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
2612 | # check for running bash under cygwin
|
---|
2613 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
2614 | then
|
---|
2615 | gsdlos=windows
|
---|
2616 | fi
|
---|
2617 | if test "x$crossOS" != "x" ; then
|
---|
2618 | gsdlos=$crossOS
|
---|
2619 | gsdlarch=""
|
---|
2620 | fi
|
---|
2621 |
|
---|
2622 |
|
---|
2623 | # Check whether --enable-java was given.
|
---|
2624 | if test "${enable_java+set}" = set; then :
|
---|
2625 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
2626 | else
|
---|
2627 | ENABLE_JAVA=yes
|
---|
2628 | fi
|
---|
2629 |
|
---|
2630 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
2631 | ENABLE_JAVA=1
|
---|
2632 | if test "x$JAVA_HOME" != "x" ; then
|
---|
2633 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
2634 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
2635 | echo "and JAVA respectively"
|
---|
2636 | export JAVA_HOME=
|
---|
2637 | fi
|
---|
2638 | else
|
---|
2639 | ENABLE_JAVA=0
|
---|
2640 | fi
|
---|
2641 |
|
---|
2642 |
|
---|
2643 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
2644 | ARCH_DEP_FLAGS=
|
---|
2645 | fi
|
---|
2646 |
|
---|
2647 |
|
---|
2648 | # Check whether --enable-accentfold was given.
|
---|
2649 | if test "${enable_accentfold+set}" = set; then :
|
---|
2650 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
2651 | else
|
---|
2652 | ENABLE_ACCENTFOLD=yes
|
---|
2653 | fi
|
---|
2654 |
|
---|
2655 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
2656 | ENABLE_ACCENTFOLD=1
|
---|
2657 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
2658 |
|
---|
2659 | else
|
---|
2660 | ENABLE_ACCENTFOLD=0
|
---|
2661 | fi
|
---|
2662 |
|
---|
2663 |
|
---|
2664 |
|
---|
2665 | ac_ext=cpp
|
---|
2666 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2667 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2668 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2669 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2670 | if test -z "$CXX"; then
|
---|
2671 | if test -n "$CCC"; then
|
---|
2672 | CXX=$CCC
|
---|
2673 | else
|
---|
2674 | if test -n "$ac_tool_prefix"; then
|
---|
2675 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2676 | do
|
---|
2677 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2678 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2680 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2681 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
2682 | $as_echo_n "(cached) " >&6
|
---|
2683 | else
|
---|
2684 | if test -n "$CXX"; then
|
---|
2685 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2686 | else
|
---|
2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2688 | for as_dir in $PATH
|
---|
2689 | do
|
---|
2690 | IFS=$as_save_IFS
|
---|
2691 | test -z "$as_dir" && as_dir=.
|
---|
2692 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2694 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2696 | break 2
|
---|
2697 | fi
|
---|
2698 | done
|
---|
2699 | done
|
---|
2700 | IFS=$as_save_IFS
|
---|
2701 |
|
---|
2702 | fi
|
---|
2703 | fi
|
---|
2704 | CXX=$ac_cv_prog_CXX
|
---|
2705 | if test -n "$CXX"; then
|
---|
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
2707 | $as_echo "$CXX" >&6; }
|
---|
2708 | else
|
---|
2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2710 | $as_echo "no" >&6; }
|
---|
2711 | fi
|
---|
2712 |
|
---|
2713 |
|
---|
2714 | test -n "$CXX" && break
|
---|
2715 | done
|
---|
2716 | fi
|
---|
2717 | if test -z "$CXX"; then
|
---|
2718 | ac_ct_CXX=$CXX
|
---|
2719 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
2720 | do
|
---|
2721 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2722 | set dummy $ac_prog; ac_word=$2
|
---|
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2724 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2725 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
2726 | $as_echo_n "(cached) " >&6
|
---|
2727 | else
|
---|
2728 | if test -n "$ac_ct_CXX"; then
|
---|
2729 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2730 | else
|
---|
2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2732 | for as_dir in $PATH
|
---|
2733 | do
|
---|
2734 | IFS=$as_save_IFS
|
---|
2735 | test -z "$as_dir" && as_dir=.
|
---|
2736 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2738 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
2739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2740 | break 2
|
---|
2741 | fi
|
---|
2742 | done
|
---|
2743 | done
|
---|
2744 | IFS=$as_save_IFS
|
---|
2745 |
|
---|
2746 | fi
|
---|
2747 | fi
|
---|
2748 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
2749 | if test -n "$ac_ct_CXX"; then
|
---|
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
2751 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
2752 | else
|
---|
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2754 | $as_echo "no" >&6; }
|
---|
2755 | fi
|
---|
2756 |
|
---|
2757 |
|
---|
2758 | test -n "$ac_ct_CXX" && break
|
---|
2759 | done
|
---|
2760 |
|
---|
2761 | if test "x$ac_ct_CXX" = x; then
|
---|
2762 | CXX="g++"
|
---|
2763 | else
|
---|
2764 | case $cross_compiling:$ac_tool_warned in
|
---|
2765 | yes:)
|
---|
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2767 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2768 | ac_tool_warned=yes ;;
|
---|
2769 | esac
|
---|
2770 | CXX=$ac_ct_CXX
|
---|
2771 | fi
|
---|
2772 | fi
|
---|
2773 |
|
---|
2774 | fi
|
---|
2775 | fi
|
---|
2776 | # Provide some information about the compiler.
|
---|
2777 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
2778 | set X $ac_compile
|
---|
2779 | ac_compiler=$2
|
---|
2780 | for ac_option in --version -v -V -qversion; do
|
---|
2781 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2782 | case "(($ac_try" in
|
---|
2783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2784 | *) ac_try_echo=$ac_try;;
|
---|
2785 | esac
|
---|
2786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2787 | $as_echo "$ac_try_echo"; } >&5
|
---|
2788 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2789 | ac_status=$?
|
---|
2790 | if test -s conftest.err; then
|
---|
2791 | sed '10a\
|
---|
2792 | ... rest of stderr output deleted ...
|
---|
2793 | 10q' conftest.err >conftest.er1
|
---|
2794 | cat conftest.er1 >&5
|
---|
2795 | fi
|
---|
2796 | rm -f conftest.er1 conftest.err
|
---|
2797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2798 | test $ac_status = 0; }
|
---|
2799 | done
|
---|
2800 |
|
---|
2801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2802 | /* end confdefs.h. */
|
---|
2803 |
|
---|
2804 | int
|
---|
2805 | main ()
|
---|
2806 | {
|
---|
2807 |
|
---|
2808 | ;
|
---|
2809 | return 0;
|
---|
2810 | }
|
---|
2811 | _ACEOF
|
---|
2812 | ac_clean_files_save=$ac_clean_files
|
---|
2813 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2814 | # Try to create an executable without -o first, disregard a.out.
|
---|
2815 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2816 | # of exeext.
|
---|
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
2818 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
2819 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2820 |
|
---|
2821 | # The possible output files:
|
---|
2822 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2823 |
|
---|
2824 | ac_rmfiles=
|
---|
2825 | for ac_file in $ac_files
|
---|
2826 | do
|
---|
2827 | case $ac_file in
|
---|
2828 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2829 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2830 | esac
|
---|
2831 | done
|
---|
2832 | rm -f $ac_rmfiles
|
---|
2833 |
|
---|
2834 | if { { ac_try="$ac_link_default"
|
---|
2835 | case "(($ac_try" in
|
---|
2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2837 | *) ac_try_echo=$ac_try;;
|
---|
2838 | esac
|
---|
2839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2840 | $as_echo "$ac_try_echo"; } >&5
|
---|
2841 | (eval "$ac_link_default") 2>&5
|
---|
2842 | ac_status=$?
|
---|
2843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2844 | test $ac_status = 0; }; then :
|
---|
2845 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2846 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2847 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2848 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2849 | # Autoconf.
|
---|
2850 | for ac_file in $ac_files ''
|
---|
2851 | do
|
---|
2852 | test -f "$ac_file" || continue
|
---|
2853 | case $ac_file in
|
---|
2854 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2855 | ;;
|
---|
2856 | [ab].out )
|
---|
2857 | # We found the default executable, but exeext='' is most
|
---|
2858 | # certainly right.
|
---|
2859 | break;;
|
---|
2860 | *.* )
|
---|
2861 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2862 | then :; else
|
---|
2863 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2864 | fi
|
---|
2865 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2866 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2867 | # argument, so we may need to know it at that point already.
|
---|
2868 | # Even if this section looks crufty: it has the advantage of
|
---|
2869 | # actually working.
|
---|
2870 | break;;
|
---|
2871 | * )
|
---|
2872 | break;;
|
---|
2873 | esac
|
---|
2874 | done
|
---|
2875 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2876 |
|
---|
2877 | else
|
---|
2878 | ac_file=''
|
---|
2879 | fi
|
---|
2880 | if test -z "$ac_file"; then :
|
---|
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2882 | $as_echo "no" >&6; }
|
---|
2883 | $as_echo "$as_me: failed program was:" >&5
|
---|
2884 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2885 |
|
---|
2886 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2887 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2888 | as_fn_error 77 "C++ compiler cannot create executables
|
---|
2889 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2890 | else
|
---|
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2892 | $as_echo "yes" >&6; }
|
---|
2893 | fi
|
---|
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
2895 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2897 | $as_echo "$ac_file" >&6; }
|
---|
2898 | ac_exeext=$ac_cv_exeext
|
---|
2899 |
|
---|
2900 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2901 | ac_clean_files=$ac_clean_files_save
|
---|
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2903 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2904 | if { { ac_try="$ac_link"
|
---|
2905 | case "(($ac_try" in
|
---|
2906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2907 | *) ac_try_echo=$ac_try;;
|
---|
2908 | esac
|
---|
2909 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2910 | $as_echo "$ac_try_echo"; } >&5
|
---|
2911 | (eval "$ac_link") 2>&5
|
---|
2912 | ac_status=$?
|
---|
2913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2914 | test $ac_status = 0; }; then :
|
---|
2915 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2916 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2917 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2918 | # `rm'.
|
---|
2919 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2920 | test -f "$ac_file" || continue
|
---|
2921 | case $ac_file in
|
---|
2922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2923 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2924 | break;;
|
---|
2925 | * ) break;;
|
---|
2926 | esac
|
---|
2927 | done
|
---|
2928 | else
|
---|
2929 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2930 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2931 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
2932 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2933 | fi
|
---|
2934 | rm -f conftest conftest$ac_cv_exeext
|
---|
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
2936 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
2937 |
|
---|
2938 | rm -f conftest.$ac_ext
|
---|
2939 | EXEEXT=$ac_cv_exeext
|
---|
2940 | ac_exeext=$EXEEXT
|
---|
2941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2942 | /* end confdefs.h. */
|
---|
2943 | #include <stdio.h>
|
---|
2944 | int
|
---|
2945 | main ()
|
---|
2946 | {
|
---|
2947 | FILE *f = fopen ("conftest.out", "w");
|
---|
2948 | return ferror (f) || fclose (f) != 0;
|
---|
2949 |
|
---|
2950 | ;
|
---|
2951 | return 0;
|
---|
2952 | }
|
---|
2953 | _ACEOF
|
---|
2954 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
2955 | # Check that the compiler produces executables we can run. If not, either
|
---|
2956 | # the compiler is broken, or we cross compile.
|
---|
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
2958 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
2959 | if test "$cross_compiling" != yes; then
|
---|
2960 | { { ac_try="$ac_link"
|
---|
2961 | case "(($ac_try" in
|
---|
2962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2963 | *) ac_try_echo=$ac_try;;
|
---|
2964 | esac
|
---|
2965 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2966 | $as_echo "$ac_try_echo"; } >&5
|
---|
2967 | (eval "$ac_link") 2>&5
|
---|
2968 | ac_status=$?
|
---|
2969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2970 | test $ac_status = 0; }
|
---|
2971 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
2972 | { { case "(($ac_try" in
|
---|
2973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2974 | *) ac_try_echo=$ac_try;;
|
---|
2975 | esac
|
---|
2976 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2977 | $as_echo "$ac_try_echo"; } >&5
|
---|
2978 | (eval "$ac_try") 2>&5
|
---|
2979 | ac_status=$?
|
---|
2980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2981 | test $ac_status = 0; }; }; then
|
---|
2982 | cross_compiling=no
|
---|
2983 | else
|
---|
2984 | if test "$cross_compiling" = maybe; then
|
---|
2985 | cross_compiling=yes
|
---|
2986 | else
|
---|
2987 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2988 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2989 | as_fn_error $? "cannot run C++ compiled programs.
|
---|
2990 | If you meant to cross compile, use \`--host'.
|
---|
2991 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2992 | fi
|
---|
2993 | fi
|
---|
2994 | fi
|
---|
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
2996 | $as_echo "$cross_compiling" >&6; }
|
---|
2997 |
|
---|
2998 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
2999 | ac_clean_files=$ac_clean_files_save
|
---|
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
3001 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
3002 | if ${ac_cv_objext+:} false; then :
|
---|
3003 | $as_echo_n "(cached) " >&6
|
---|
3004 | else
|
---|
3005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3006 | /* end confdefs.h. */
|
---|
3007 |
|
---|
3008 | int
|
---|
3009 | main ()
|
---|
3010 | {
|
---|
3011 |
|
---|
3012 | ;
|
---|
3013 | return 0;
|
---|
3014 | }
|
---|
3015 | _ACEOF
|
---|
3016 | rm -f conftest.o conftest.obj
|
---|
3017 | if { { ac_try="$ac_compile"
|
---|
3018 | case "(($ac_try" in
|
---|
3019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3020 | *) ac_try_echo=$ac_try;;
|
---|
3021 | esac
|
---|
3022 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3023 | $as_echo "$ac_try_echo"; } >&5
|
---|
3024 | (eval "$ac_compile") 2>&5
|
---|
3025 | ac_status=$?
|
---|
3026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3027 | test $ac_status = 0; }; then :
|
---|
3028 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3029 | test -f "$ac_file" || continue;
|
---|
3030 | case $ac_file in
|
---|
3031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3032 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3033 | break;;
|
---|
3034 | esac
|
---|
3035 | done
|
---|
3036 | else
|
---|
3037 | $as_echo "$as_me: failed program was:" >&5
|
---|
3038 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3039 |
|
---|
3040 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3041 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3042 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3043 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3044 | fi
|
---|
3045 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3046 | fi
|
---|
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3048 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3049 | OBJEXT=$ac_cv_objext
|
---|
3050 | ac_objext=$OBJEXT
|
---|
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
3052 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
3053 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
3054 | $as_echo_n "(cached) " >&6
|
---|
3055 | else
|
---|
3056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3057 | /* end confdefs.h. */
|
---|
3058 |
|
---|
3059 | int
|
---|
3060 | main ()
|
---|
3061 | {
|
---|
3062 | #ifndef __GNUC__
|
---|
3063 | choke me
|
---|
3064 | #endif
|
---|
3065 |
|
---|
3066 | ;
|
---|
3067 | return 0;
|
---|
3068 | }
|
---|
3069 | _ACEOF
|
---|
3070 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3071 | ac_compiler_gnu=yes
|
---|
3072 | else
|
---|
3073 | ac_compiler_gnu=no
|
---|
3074 | fi
|
---|
3075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3076 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3077 |
|
---|
3078 | fi
|
---|
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3080 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3081 | if test $ac_compiler_gnu = yes; then
|
---|
3082 | GXX=yes
|
---|
3083 | else
|
---|
3084 | GXX=
|
---|
3085 | fi
|
---|
3086 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3087 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3089 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3090 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
3091 | $as_echo_n "(cached) " >&6
|
---|
3092 | else
|
---|
3093 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3094 | ac_cxx_werror_flag=yes
|
---|
3095 | ac_cv_prog_cxx_g=no
|
---|
3096 | CXXFLAGS="-g"
|
---|
3097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3098 | /* end confdefs.h. */
|
---|
3099 |
|
---|
3100 | int
|
---|
3101 | main ()
|
---|
3102 | {
|
---|
3103 |
|
---|
3104 | ;
|
---|
3105 | return 0;
|
---|
3106 | }
|
---|
3107 | _ACEOF
|
---|
3108 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3109 | ac_cv_prog_cxx_g=yes
|
---|
3110 | else
|
---|
3111 | CXXFLAGS=""
|
---|
3112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3113 | /* end confdefs.h. */
|
---|
3114 |
|
---|
3115 | int
|
---|
3116 | main ()
|
---|
3117 | {
|
---|
3118 |
|
---|
3119 | ;
|
---|
3120 | return 0;
|
---|
3121 | }
|
---|
3122 | _ACEOF
|
---|
3123 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3124 |
|
---|
3125 | else
|
---|
3126 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3127 | CXXFLAGS="-g"
|
---|
3128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3129 | /* end confdefs.h. */
|
---|
3130 |
|
---|
3131 | int
|
---|
3132 | main ()
|
---|
3133 | {
|
---|
3134 |
|
---|
3135 | ;
|
---|
3136 | return 0;
|
---|
3137 | }
|
---|
3138 | _ACEOF
|
---|
3139 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3140 | ac_cv_prog_cxx_g=yes
|
---|
3141 | fi
|
---|
3142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3143 | fi
|
---|
3144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3145 | fi
|
---|
3146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3147 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3148 | fi
|
---|
3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3150 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3151 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3152 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3153 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3154 | if test "$GXX" = yes; then
|
---|
3155 | CXXFLAGS="-g -O2"
|
---|
3156 | else
|
---|
3157 | CXXFLAGS="-g"
|
---|
3158 | fi
|
---|
3159 | else
|
---|
3160 | if test "$GXX" = yes; then
|
---|
3161 | CXXFLAGS="-O2"
|
---|
3162 | else
|
---|
3163 | CXXFLAGS=
|
---|
3164 | fi
|
---|
3165 | fi
|
---|
3166 | ac_ext=c
|
---|
3167 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3171 |
|
---|
3172 | for ac_prog in gawk mawk nawk awk
|
---|
3173 | do
|
---|
3174 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3175 | set dummy $ac_prog; ac_word=$2
|
---|
3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3177 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3178 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
3179 | $as_echo_n "(cached) " >&6
|
---|
3180 | else
|
---|
3181 | if test -n "$AWK"; then
|
---|
3182 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
3183 | else
|
---|
3184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3185 | for as_dir in $PATH
|
---|
3186 | do
|
---|
3187 | IFS=$as_save_IFS
|
---|
3188 | test -z "$as_dir" && as_dir=.
|
---|
3189 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3190 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3191 | ac_cv_prog_AWK="$ac_prog"
|
---|
3192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3193 | break 2
|
---|
3194 | fi
|
---|
3195 | done
|
---|
3196 | done
|
---|
3197 | IFS=$as_save_IFS
|
---|
3198 |
|
---|
3199 | fi
|
---|
3200 | fi
|
---|
3201 | AWK=$ac_cv_prog_AWK
|
---|
3202 | if test -n "$AWK"; then
|
---|
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
3204 | $as_echo "$AWK" >&6; }
|
---|
3205 | else
|
---|
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3207 | $as_echo "no" >&6; }
|
---|
3208 | fi
|
---|
3209 |
|
---|
3210 |
|
---|
3211 | test -n "$AWK" && break
|
---|
3212 | done
|
---|
3213 |
|
---|
3214 | for ac_prog in 'bison -y' byacc
|
---|
3215 | do
|
---|
3216 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3217 | set dummy $ac_prog; ac_word=$2
|
---|
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3219 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3220 | if ${ac_cv_prog_YACC+:} false; then :
|
---|
3221 | $as_echo_n "(cached) " >&6
|
---|
3222 | else
|
---|
3223 | if test -n "$YACC"; then
|
---|
3224 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
3225 | else
|
---|
3226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3227 | for as_dir in $PATH
|
---|
3228 | do
|
---|
3229 | IFS=$as_save_IFS
|
---|
3230 | test -z "$as_dir" && as_dir=.
|
---|
3231 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3233 | ac_cv_prog_YACC="$ac_prog"
|
---|
3234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3235 | break 2
|
---|
3236 | fi
|
---|
3237 | done
|
---|
3238 | done
|
---|
3239 | IFS=$as_save_IFS
|
---|
3240 |
|
---|
3241 | fi
|
---|
3242 | fi
|
---|
3243 | YACC=$ac_cv_prog_YACC
|
---|
3244 | if test -n "$YACC"; then
|
---|
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
3246 | $as_echo "$YACC" >&6; }
|
---|
3247 | else
|
---|
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3249 | $as_echo "no" >&6; }
|
---|
3250 | fi
|
---|
3251 |
|
---|
3252 |
|
---|
3253 | test -n "$YACC" && break
|
---|
3254 | done
|
---|
3255 | test -n "$YACC" || YACC="yacc"
|
---|
3256 |
|
---|
3257 | ac_ext=c
|
---|
3258 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3262 | if test -n "$ac_tool_prefix"; then
|
---|
3263 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3264 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3266 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3267 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3268 | $as_echo_n "(cached) " >&6
|
---|
3269 | else
|
---|
3270 | if test -n "$CC"; then
|
---|
3271 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3272 | else
|
---|
3273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3274 | for as_dir in $PATH
|
---|
3275 | do
|
---|
3276 | IFS=$as_save_IFS
|
---|
3277 | test -z "$as_dir" && as_dir=.
|
---|
3278 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3279 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3280 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3282 | break 2
|
---|
3283 | fi
|
---|
3284 | done
|
---|
3285 | done
|
---|
3286 | IFS=$as_save_IFS
|
---|
3287 |
|
---|
3288 | fi
|
---|
3289 | fi
|
---|
3290 | CC=$ac_cv_prog_CC
|
---|
3291 | if test -n "$CC"; then
|
---|
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3293 | $as_echo "$CC" >&6; }
|
---|
3294 | else
|
---|
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3296 | $as_echo "no" >&6; }
|
---|
3297 | fi
|
---|
3298 |
|
---|
3299 |
|
---|
3300 | fi
|
---|
3301 | if test -z "$ac_cv_prog_CC"; then
|
---|
3302 | ac_ct_CC=$CC
|
---|
3303 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3304 | set dummy gcc; ac_word=$2
|
---|
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3306 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3307 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3308 | $as_echo_n "(cached) " >&6
|
---|
3309 | else
|
---|
3310 | if test -n "$ac_ct_CC"; then
|
---|
3311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3312 | else
|
---|
3313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3314 | for as_dir in $PATH
|
---|
3315 | do
|
---|
3316 | IFS=$as_save_IFS
|
---|
3317 | test -z "$as_dir" && as_dir=.
|
---|
3318 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3320 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3322 | break 2
|
---|
3323 | fi
|
---|
3324 | done
|
---|
3325 | done
|
---|
3326 | IFS=$as_save_IFS
|
---|
3327 |
|
---|
3328 | fi
|
---|
3329 | fi
|
---|
3330 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3331 | if test -n "$ac_ct_CC"; then
|
---|
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3333 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3334 | else
|
---|
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3336 | $as_echo "no" >&6; }
|
---|
3337 | fi
|
---|
3338 |
|
---|
3339 | if test "x$ac_ct_CC" = x; then
|
---|
3340 | CC=""
|
---|
3341 | else
|
---|
3342 | case $cross_compiling:$ac_tool_warned in
|
---|
3343 | yes:)
|
---|
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3345 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3346 | ac_tool_warned=yes ;;
|
---|
3347 | esac
|
---|
3348 | CC=$ac_ct_CC
|
---|
3349 | fi
|
---|
3350 | else
|
---|
3351 | CC="$ac_cv_prog_CC"
|
---|
3352 | fi
|
---|
3353 |
|
---|
3354 | if test -z "$CC"; then
|
---|
3355 | if test -n "$ac_tool_prefix"; then
|
---|
3356 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3357 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3359 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3360 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3361 | $as_echo_n "(cached) " >&6
|
---|
3362 | else
|
---|
3363 | if test -n "$CC"; then
|
---|
3364 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3365 | else
|
---|
3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3367 | for as_dir in $PATH
|
---|
3368 | do
|
---|
3369 | IFS=$as_save_IFS
|
---|
3370 | test -z "$as_dir" && as_dir=.
|
---|
3371 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3373 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3375 | break 2
|
---|
3376 | fi
|
---|
3377 | done
|
---|
3378 | done
|
---|
3379 | IFS=$as_save_IFS
|
---|
3380 |
|
---|
3381 | fi
|
---|
3382 | fi
|
---|
3383 | CC=$ac_cv_prog_CC
|
---|
3384 | if test -n "$CC"; then
|
---|
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3386 | $as_echo "$CC" >&6; }
|
---|
3387 | else
|
---|
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3389 | $as_echo "no" >&6; }
|
---|
3390 | fi
|
---|
3391 |
|
---|
3392 |
|
---|
3393 | fi
|
---|
3394 | fi
|
---|
3395 | if test -z "$CC"; then
|
---|
3396 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3397 | set dummy cc; 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 ${ac_cv_prog_CC+:} false; 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 | ac_prog_rejected=no
|
---|
3407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3408 | for as_dir in $PATH
|
---|
3409 | do
|
---|
3410 | IFS=$as_save_IFS
|
---|
3411 | test -z "$as_dir" && as_dir=.
|
---|
3412 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3414 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3415 | ac_prog_rejected=yes
|
---|
3416 | continue
|
---|
3417 | fi
|
---|
3418 | ac_cv_prog_CC="cc"
|
---|
3419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3420 | break 2
|
---|
3421 | fi
|
---|
3422 | done
|
---|
3423 | done
|
---|
3424 | IFS=$as_save_IFS
|
---|
3425 |
|
---|
3426 | if test $ac_prog_rejected = yes; then
|
---|
3427 | # We found a bogon in the path, so make sure we never use it.
|
---|
3428 | set dummy $ac_cv_prog_CC
|
---|
3429 | shift
|
---|
3430 | if test $# != 0; then
|
---|
3431 | # We chose a different compiler from the bogus one.
|
---|
3432 | # However, it has the same basename, so the bogon will be chosen
|
---|
3433 | # first if we set CC to just the basename; use the full file name.
|
---|
3434 | shift
|
---|
3435 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
3436 | fi
|
---|
3437 | fi
|
---|
3438 | fi
|
---|
3439 | fi
|
---|
3440 | CC=$ac_cv_prog_CC
|
---|
3441 | if test -n "$CC"; then
|
---|
3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3443 | $as_echo "$CC" >&6; }
|
---|
3444 | else
|
---|
3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3446 | $as_echo "no" >&6; }
|
---|
3447 | fi
|
---|
3448 |
|
---|
3449 |
|
---|
3450 | fi
|
---|
3451 | if test -z "$CC"; then
|
---|
3452 | if test -n "$ac_tool_prefix"; then
|
---|
3453 | for ac_prog in cl.exe
|
---|
3454 | do
|
---|
3455 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3456 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3458 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3459 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3460 | $as_echo_n "(cached) " >&6
|
---|
3461 | else
|
---|
3462 | if test -n "$CC"; then
|
---|
3463 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3464 | else
|
---|
3465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3466 | for as_dir in $PATH
|
---|
3467 | do
|
---|
3468 | IFS=$as_save_IFS
|
---|
3469 | test -z "$as_dir" && as_dir=.
|
---|
3470 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3472 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3474 | break 2
|
---|
3475 | fi
|
---|
3476 | done
|
---|
3477 | done
|
---|
3478 | IFS=$as_save_IFS
|
---|
3479 |
|
---|
3480 | fi
|
---|
3481 | fi
|
---|
3482 | CC=$ac_cv_prog_CC
|
---|
3483 | if test -n "$CC"; then
|
---|
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3485 | $as_echo "$CC" >&6; }
|
---|
3486 | else
|
---|
3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3488 | $as_echo "no" >&6; }
|
---|
3489 | fi
|
---|
3490 |
|
---|
3491 |
|
---|
3492 | test -n "$CC" && break
|
---|
3493 | done
|
---|
3494 | fi
|
---|
3495 | if test -z "$CC"; then
|
---|
3496 | ac_ct_CC=$CC
|
---|
3497 | for ac_prog in cl.exe
|
---|
3498 | do
|
---|
3499 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3500 | set dummy $ac_prog; ac_word=$2
|
---|
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3502 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3503 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3504 | $as_echo_n "(cached) " >&6
|
---|
3505 | else
|
---|
3506 | if test -n "$ac_ct_CC"; then
|
---|
3507 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3508 | else
|
---|
3509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3510 | for as_dir in $PATH
|
---|
3511 | do
|
---|
3512 | IFS=$as_save_IFS
|
---|
3513 | test -z "$as_dir" && as_dir=.
|
---|
3514 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3515 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3516 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3518 | break 2
|
---|
3519 | fi
|
---|
3520 | done
|
---|
3521 | done
|
---|
3522 | IFS=$as_save_IFS
|
---|
3523 |
|
---|
3524 | fi
|
---|
3525 | fi
|
---|
3526 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3527 | if test -n "$ac_ct_CC"; then
|
---|
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3529 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3530 | else
|
---|
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3532 | $as_echo "no" >&6; }
|
---|
3533 | fi
|
---|
3534 |
|
---|
3535 |
|
---|
3536 | test -n "$ac_ct_CC" && break
|
---|
3537 | done
|
---|
3538 |
|
---|
3539 | if test "x$ac_ct_CC" = x; then
|
---|
3540 | CC=""
|
---|
3541 | else
|
---|
3542 | case $cross_compiling:$ac_tool_warned in
|
---|
3543 | yes:)
|
---|
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3545 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3546 | ac_tool_warned=yes ;;
|
---|
3547 | esac
|
---|
3548 | CC=$ac_ct_CC
|
---|
3549 | fi
|
---|
3550 | fi
|
---|
3551 |
|
---|
3552 | fi
|
---|
3553 |
|
---|
3554 |
|
---|
3555 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3557 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
3558 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3559 |
|
---|
3560 | # Provide some information about the compiler.
|
---|
3561 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
3562 | set X $ac_compile
|
---|
3563 | ac_compiler=$2
|
---|
3564 | for ac_option in --version -v -V -qversion; do
|
---|
3565 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3566 | case "(($ac_try" in
|
---|
3567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3568 | *) ac_try_echo=$ac_try;;
|
---|
3569 | esac
|
---|
3570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3571 | $as_echo "$ac_try_echo"; } >&5
|
---|
3572 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3573 | ac_status=$?
|
---|
3574 | if test -s conftest.err; then
|
---|
3575 | sed '10a\
|
---|
3576 | ... rest of stderr output deleted ...
|
---|
3577 | 10q' conftest.err >conftest.er1
|
---|
3578 | cat conftest.er1 >&5
|
---|
3579 | fi
|
---|
3580 | rm -f conftest.er1 conftest.err
|
---|
3581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3582 | test $ac_status = 0; }
|
---|
3583 | done
|
---|
3584 |
|
---|
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3586 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3587 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3588 | $as_echo_n "(cached) " >&6
|
---|
3589 | else
|
---|
3590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3591 | /* end confdefs.h. */
|
---|
3592 |
|
---|
3593 | int
|
---|
3594 | main ()
|
---|
3595 | {
|
---|
3596 | #ifndef __GNUC__
|
---|
3597 | choke me
|
---|
3598 | #endif
|
---|
3599 |
|
---|
3600 | ;
|
---|
3601 | return 0;
|
---|
3602 | }
|
---|
3603 | _ACEOF
|
---|
3604 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3605 | ac_compiler_gnu=yes
|
---|
3606 | else
|
---|
3607 | ac_compiler_gnu=no
|
---|
3608 | fi
|
---|
3609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3610 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3611 |
|
---|
3612 | fi
|
---|
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3614 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3615 | if test $ac_compiler_gnu = yes; then
|
---|
3616 | GCC=yes
|
---|
3617 | else
|
---|
3618 | GCC=
|
---|
3619 | fi
|
---|
3620 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3621 | ac_save_CFLAGS=$CFLAGS
|
---|
3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3623 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3624 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3625 | $as_echo_n "(cached) " >&6
|
---|
3626 | else
|
---|
3627 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3628 | ac_c_werror_flag=yes
|
---|
3629 | ac_cv_prog_cc_g=no
|
---|
3630 | CFLAGS="-g"
|
---|
3631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3632 | /* end confdefs.h. */
|
---|
3633 |
|
---|
3634 | int
|
---|
3635 | main ()
|
---|
3636 | {
|
---|
3637 |
|
---|
3638 | ;
|
---|
3639 | return 0;
|
---|
3640 | }
|
---|
3641 | _ACEOF
|
---|
3642 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3643 | ac_cv_prog_cc_g=yes
|
---|
3644 | else
|
---|
3645 | CFLAGS=""
|
---|
3646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3647 | /* end confdefs.h. */
|
---|
3648 |
|
---|
3649 | int
|
---|
3650 | main ()
|
---|
3651 | {
|
---|
3652 |
|
---|
3653 | ;
|
---|
3654 | return 0;
|
---|
3655 | }
|
---|
3656 | _ACEOF
|
---|
3657 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3658 |
|
---|
3659 | else
|
---|
3660 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3661 | CFLAGS="-g"
|
---|
3662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3663 | /* end confdefs.h. */
|
---|
3664 |
|
---|
3665 | int
|
---|
3666 | main ()
|
---|
3667 | {
|
---|
3668 |
|
---|
3669 | ;
|
---|
3670 | return 0;
|
---|
3671 | }
|
---|
3672 | _ACEOF
|
---|
3673 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3674 | ac_cv_prog_cc_g=yes
|
---|
3675 | fi
|
---|
3676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3677 | fi
|
---|
3678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3679 | fi
|
---|
3680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3681 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3682 | fi
|
---|
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3684 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3685 | if test "$ac_test_CFLAGS" = set; then
|
---|
3686 | CFLAGS=$ac_save_CFLAGS
|
---|
3687 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3688 | if test "$GCC" = yes; then
|
---|
3689 | CFLAGS="-g -O2"
|
---|
3690 | else
|
---|
3691 | CFLAGS="-g"
|
---|
3692 | fi
|
---|
3693 | else
|
---|
3694 | if test "$GCC" = yes; then
|
---|
3695 | CFLAGS="-O2"
|
---|
3696 | else
|
---|
3697 | CFLAGS=
|
---|
3698 | fi
|
---|
3699 | fi
|
---|
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3701 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3702 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3703 | $as_echo_n "(cached) " >&6
|
---|
3704 | else
|
---|
3705 | ac_cv_prog_cc_c89=no
|
---|
3706 | ac_save_CC=$CC
|
---|
3707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3708 | /* end confdefs.h. */
|
---|
3709 | #include <stdarg.h>
|
---|
3710 | #include <stdio.h>
|
---|
3711 | struct stat;
|
---|
3712 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3713 | struct buf { int x; };
|
---|
3714 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3715 | static char *e (p, i)
|
---|
3716 | char **p;
|
---|
3717 | int i;
|
---|
3718 | {
|
---|
3719 | return p[i];
|
---|
3720 | }
|
---|
3721 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3722 | {
|
---|
3723 | char *s;
|
---|
3724 | va_list v;
|
---|
3725 | va_start (v,p);
|
---|
3726 | s = g (p, va_arg (v,int));
|
---|
3727 | va_end (v);
|
---|
3728 | return s;
|
---|
3729 | }
|
---|
3730 |
|
---|
3731 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3732 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3733 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3734 | as 'x'. The following induces an error, until -std is added to get
|
---|
3735 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3736 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3737 | that's true only with -std. */
|
---|
3738 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3739 |
|
---|
3740 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3741 | inside strings and character constants. */
|
---|
3742 | #define FOO(x) 'x'
|
---|
3743 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3744 |
|
---|
3745 | int test (int i, double x);
|
---|
3746 | struct s1 {int (*f) (int a);};
|
---|
3747 | struct s2 {int (*f) (double a);};
|
---|
3748 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3749 | int argc;
|
---|
3750 | char **argv;
|
---|
3751 | int
|
---|
3752 | main ()
|
---|
3753 | {
|
---|
3754 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3755 | ;
|
---|
3756 | return 0;
|
---|
3757 | }
|
---|
3758 | _ACEOF
|
---|
3759 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3760 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3761 | do
|
---|
3762 | CC="$ac_save_CC $ac_arg"
|
---|
3763 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3764 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3765 | fi
|
---|
3766 | rm -f core conftest.err conftest.$ac_objext
|
---|
3767 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3768 | done
|
---|
3769 | rm -f conftest.$ac_ext
|
---|
3770 | CC=$ac_save_CC
|
---|
3771 |
|
---|
3772 | fi
|
---|
3773 | # AC_CACHE_VAL
|
---|
3774 | case "x$ac_cv_prog_cc_c89" in
|
---|
3775 | x)
|
---|
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3777 | $as_echo "none needed" >&6; } ;;
|
---|
3778 | xno)
|
---|
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3780 | $as_echo "unsupported" >&6; } ;;
|
---|
3781 | *)
|
---|
3782 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3784 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3785 | esac
|
---|
3786 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3787 |
|
---|
3788 | fi
|
---|
3789 |
|
---|
3790 | ac_ext=c
|
---|
3791 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3795 |
|
---|
3796 | # Find a good install program. We prefer a C program (faster),
|
---|
3797 | # so one script is as good as another. But avoid the broken or
|
---|
3798 | # incompatible versions:
|
---|
3799 | # SysV /etc/install, /usr/sbin/install
|
---|
3800 | # SunOS /usr/etc/install
|
---|
3801 | # IRIX /sbin/install
|
---|
3802 | # AIX /bin/install
|
---|
3803 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
3804 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
3805 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
3806 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
3807 | # OS/2's system install, which has a completely different semantic
|
---|
3808 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
3809 | # Reject install programs that cannot install multiple files.
|
---|
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
3811 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
3812 | if test -z "$INSTALL"; then
|
---|
3813 | if ${ac_cv_path_install+:} false; then :
|
---|
3814 | $as_echo_n "(cached) " >&6
|
---|
3815 | else
|
---|
3816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3817 | for as_dir in $PATH
|
---|
3818 | do
|
---|
3819 | IFS=$as_save_IFS
|
---|
3820 | test -z "$as_dir" && as_dir=.
|
---|
3821 | # Account for people who put trailing slashes in PATH elements.
|
---|
3822 | case $as_dir/ in #((
|
---|
3823 | ./ | .// | /[cC]/* | \
|
---|
3824 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
3825 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
3826 | /usr/ucb/* ) ;;
|
---|
3827 | *)
|
---|
3828 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
3829 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
3830 | # by default.
|
---|
3831 | for ac_prog in ginstall scoinst install; do
|
---|
3832 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3833 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
3834 | if test $ac_prog = install &&
|
---|
3835 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3836 | # AIX install. It has an incompatible calling convention.
|
---|
3837 | :
|
---|
3838 | elif test $ac_prog = install &&
|
---|
3839 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
3840 | # program-specific install script used by HP pwplus--don't use.
|
---|
3841 | :
|
---|
3842 | else
|
---|
3843 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3844 | echo one > conftest.one
|
---|
3845 | echo two > conftest.two
|
---|
3846 | mkdir conftest.dir
|
---|
3847 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
3848 | test -s conftest.one && test -s conftest.two &&
|
---|
3849 | test -s conftest.dir/conftest.one &&
|
---|
3850 | test -s conftest.dir/conftest.two
|
---|
3851 | then
|
---|
3852 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
3853 | break 3
|
---|
3854 | fi
|
---|
3855 | fi
|
---|
3856 | fi
|
---|
3857 | done
|
---|
3858 | done
|
---|
3859 | ;;
|
---|
3860 | esac
|
---|
3861 |
|
---|
3862 | done
|
---|
3863 | IFS=$as_save_IFS
|
---|
3864 |
|
---|
3865 | rm -rf conftest.one conftest.two conftest.dir
|
---|
3866 |
|
---|
3867 | fi
|
---|
3868 | if test "${ac_cv_path_install+set}" = set; then
|
---|
3869 | INSTALL=$ac_cv_path_install
|
---|
3870 | else
|
---|
3871 | # As a last resort, use the slow shell script. Don't cache a
|
---|
3872 | # value for INSTALL within a source directory, because that will
|
---|
3873 | # break other packages using the cache if that directory is
|
---|
3874 | # removed, or if the value is a relative name.
|
---|
3875 | INSTALL=$ac_install_sh
|
---|
3876 | fi
|
---|
3877 | fi
|
---|
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
3879 | $as_echo "$INSTALL" >&6; }
|
---|
3880 |
|
---|
3881 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
3882 | # It thinks the first close brace ends the variable substitution.
|
---|
3883 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
3884 |
|
---|
3885 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
3886 |
|
---|
3887 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
3888 |
|
---|
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
3890 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
3891 | LN_S=$as_ln_s
|
---|
3892 | if test "$LN_S" = "ln -s"; then
|
---|
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3894 | $as_echo "yes" >&6; }
|
---|
3895 | else
|
---|
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
3897 | $as_echo "no, using $LN_S" >&6; }
|
---|
3898 | fi
|
---|
3899 |
|
---|
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3901 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
3902 | set x ${MAKE-make}
|
---|
3903 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3904 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
3905 | $as_echo_n "(cached) " >&6
|
---|
3906 | else
|
---|
3907 | cat >conftest.make <<\_ACEOF
|
---|
3908 | SHELL = /bin/sh
|
---|
3909 | all:
|
---|
3910 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3911 | _ACEOF
|
---|
3912 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
3913 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3914 | *@@@%%%=?*=@@@%%%*)
|
---|
3915 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3916 | *)
|
---|
3917 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3918 | esac
|
---|
3919 | rm -f conftest.make
|
---|
3920 | fi
|
---|
3921 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3923 | $as_echo "yes" >&6; }
|
---|
3924 | SET_MAKE=
|
---|
3925 | else
|
---|
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3927 | $as_echo "no" >&6; }
|
---|
3928 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3929 | fi
|
---|
3930 |
|
---|
3931 | if test -n "$ac_tool_prefix"; then
|
---|
3932 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
3933 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3935 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3936 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
3937 | $as_echo_n "(cached) " >&6
|
---|
3938 | else
|
---|
3939 | if test -n "$RANLIB"; then
|
---|
3940 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
3941 | else
|
---|
3942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3943 | for as_dir in $PATH
|
---|
3944 | do
|
---|
3945 | IFS=$as_save_IFS
|
---|
3946 | test -z "$as_dir" && as_dir=.
|
---|
3947 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3948 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3949 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
3950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3951 | break 2
|
---|
3952 | fi
|
---|
3953 | done
|
---|
3954 | done
|
---|
3955 | IFS=$as_save_IFS
|
---|
3956 |
|
---|
3957 | fi
|
---|
3958 | fi
|
---|
3959 | RANLIB=$ac_cv_prog_RANLIB
|
---|
3960 | if test -n "$RANLIB"; then
|
---|
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
3962 | $as_echo "$RANLIB" >&6; }
|
---|
3963 | else
|
---|
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3965 | $as_echo "no" >&6; }
|
---|
3966 | fi
|
---|
3967 |
|
---|
3968 |
|
---|
3969 | fi
|
---|
3970 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
3971 | ac_ct_RANLIB=$RANLIB
|
---|
3972 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
3973 | set dummy ranlib; 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 ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
3977 | $as_echo_n "(cached) " >&6
|
---|
3978 | else
|
---|
3979 | if test -n "$ac_ct_RANLIB"; then
|
---|
3980 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3989 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
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 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
4000 | if test -n "$ac_ct_RANLIB"; then
|
---|
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
4002 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
4003 | else
|
---|
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4005 | $as_echo "no" >&6; }
|
---|
4006 | fi
|
---|
4007 |
|
---|
4008 | if test "x$ac_ct_RANLIB" = x; then
|
---|
4009 | RANLIB=":"
|
---|
4010 | else
|
---|
4011 | case $cross_compiling:$ac_tool_warned in
|
---|
4012 | yes:)
|
---|
4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4014 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4015 | ac_tool_warned=yes ;;
|
---|
4016 | esac
|
---|
4017 | RANLIB=$ac_ct_RANLIB
|
---|
4018 | fi
|
---|
4019 | else
|
---|
4020 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
4021 | fi
|
---|
4022 |
|
---|
4023 | if test $ENABLE_JAVA = "1" ; then
|
---|
4024 |
|
---|
4025 |
|
---|
4026 | if test "x$JAVA" = x ; then
|
---|
4027 | if test x$JAVAPREFIX = x; then
|
---|
4028 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
4029 | do
|
---|
4030 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4031 | set dummy $ac_prog; ac_word=$2
|
---|
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4033 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4034 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
4035 | $as_echo_n "(cached) " >&6
|
---|
4036 | else
|
---|
4037 | if test -n "$JAVA"; then
|
---|
4038 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
4039 | else
|
---|
4040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4041 | for as_dir in $PATH
|
---|
4042 | do
|
---|
4043 | IFS=$as_save_IFS
|
---|
4044 | test -z "$as_dir" && as_dir=.
|
---|
4045 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4046 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4047 | ac_cv_prog_JAVA="$ac_prog"
|
---|
4048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4049 | break 2
|
---|
4050 | fi
|
---|
4051 | done
|
---|
4052 | done
|
---|
4053 | IFS=$as_save_IFS
|
---|
4054 |
|
---|
4055 | fi
|
---|
4056 | fi
|
---|
4057 | JAVA=$ac_cv_prog_JAVA
|
---|
4058 | if test -n "$JAVA"; then
|
---|
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
4060 | $as_echo "$JAVA" >&6; }
|
---|
4061 | else
|
---|
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4063 | $as_echo "no" >&6; }
|
---|
4064 | fi
|
---|
4065 |
|
---|
4066 |
|
---|
4067 | test -n "$JAVA" && break
|
---|
4068 | done
|
---|
4069 |
|
---|
4070 | else
|
---|
4071 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
4072 | do
|
---|
4073 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4074 | set dummy $ac_prog; ac_word=$2
|
---|
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4076 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4077 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
4078 | $as_echo_n "(cached) " >&6
|
---|
4079 | else
|
---|
4080 | if test -n "$JAVA"; then
|
---|
4081 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
4082 | else
|
---|
4083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4084 | for as_dir in $PATH
|
---|
4085 | do
|
---|
4086 | IFS=$as_save_IFS
|
---|
4087 | test -z "$as_dir" && as_dir=.
|
---|
4088 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4090 | ac_cv_prog_JAVA="$ac_prog"
|
---|
4091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4092 | break 2
|
---|
4093 | fi
|
---|
4094 | done
|
---|
4095 | done
|
---|
4096 | IFS=$as_save_IFS
|
---|
4097 |
|
---|
4098 | fi
|
---|
4099 | fi
|
---|
4100 | JAVA=$ac_cv_prog_JAVA
|
---|
4101 | if test -n "$JAVA"; then
|
---|
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
4103 | $as_echo "$JAVA" >&6; }
|
---|
4104 | else
|
---|
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4106 | $as_echo "no" >&6; }
|
---|
4107 | fi
|
---|
4108 |
|
---|
4109 |
|
---|
4110 | test -n "$JAVA" && break
|
---|
4111 | done
|
---|
4112 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
4113 |
|
---|
4114 | fi
|
---|
4115 | test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
4116 | fi
|
---|
4117 |
|
---|
4118 |
|
---|
4119 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
4120 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4122 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4123 | if ${ac_cv_prog_uudecode+:} false; then :
|
---|
4124 | $as_echo_n "(cached) " >&6
|
---|
4125 | else
|
---|
4126 | if test -n "$uudecode"; then
|
---|
4127 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
4128 | else
|
---|
4129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4130 | for as_dir in $PATH
|
---|
4131 | do
|
---|
4132 | IFS=$as_save_IFS
|
---|
4133 | test -z "$as_dir" && as_dir=.
|
---|
4134 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4136 | ac_cv_prog_uudecode="yes"
|
---|
4137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4138 | break 2
|
---|
4139 | fi
|
---|
4140 | done
|
---|
4141 | done
|
---|
4142 | IFS=$as_save_IFS
|
---|
4143 |
|
---|
4144 | fi
|
---|
4145 | fi
|
---|
4146 | uudecode=$ac_cv_prog_uudecode
|
---|
4147 | if test -n "$uudecode"; then
|
---|
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
4149 | $as_echo "$uudecode" >&6; }
|
---|
4150 | else
|
---|
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4152 | $as_echo "no" >&6; }
|
---|
4153 | fi
|
---|
4154 |
|
---|
4155 |
|
---|
4156 | if test x$uudecode = xyes; then
|
---|
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
4158 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
4159 | if ${ac_cv_prog_uudecode_base64+:} false; then :
|
---|
4160 | $as_echo_n "(cached) " >&6
|
---|
4161 | else
|
---|
4162 |
|
---|
4163 | cat << \EOF > Test.uue
|
---|
4164 | begin-base64 644 Test.class
|
---|
4165 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
4166 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
4167 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
4168 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
4169 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
4170 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
4171 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
4172 | ====
|
---|
4173 | EOF
|
---|
4174 | if uudecode$EXEEXT Test.uue; then
|
---|
4175 | ac_cv_prog_uudecode_base64=yes
|
---|
4176 | else
|
---|
4177 | echo "configure: 4177: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
4178 | echo "configure: failed file was:" >&5
|
---|
4179 | cat Test.uue >&5
|
---|
4180 | ac_cv_prog_uudecode_base64=no
|
---|
4181 | fi
|
---|
4182 | rm -f Test.uue
|
---|
4183 | fi
|
---|
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
4185 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
4186 | fi
|
---|
4187 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
4188 | rm -f Test.class
|
---|
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
4190 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
4191 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
4192 | as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
4193 | fi
|
---|
4194 | if test x$ac_cv_prog_javac_works = x; then
|
---|
4195 |
|
---|
4196 | if test "x$JAVAC" = x ; then
|
---|
4197 | if test "x$JAVAPREFIX" = x; then
|
---|
4198 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4199 | do
|
---|
4200 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4201 | set dummy $ac_prog; ac_word=$2
|
---|
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4203 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4204 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4205 | $as_echo_n "(cached) " >&6
|
---|
4206 | else
|
---|
4207 | if test -n "$JAVAC"; then
|
---|
4208 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4209 | else
|
---|
4210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4211 | for as_dir in $PATH
|
---|
4212 | do
|
---|
4213 | IFS=$as_save_IFS
|
---|
4214 | test -z "$as_dir" && as_dir=.
|
---|
4215 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4216 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4217 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4219 | break 2
|
---|
4220 | fi
|
---|
4221 | done
|
---|
4222 | done
|
---|
4223 | IFS=$as_save_IFS
|
---|
4224 |
|
---|
4225 | fi
|
---|
4226 | fi
|
---|
4227 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4228 | if test -n "$JAVAC"; then
|
---|
4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4230 | $as_echo "$JAVAC" >&6; }
|
---|
4231 | else
|
---|
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4233 | $as_echo "no" >&6; }
|
---|
4234 | fi
|
---|
4235 |
|
---|
4236 |
|
---|
4237 | test -n "$JAVAC" && break
|
---|
4238 | done
|
---|
4239 |
|
---|
4240 | else
|
---|
4241 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4242 | do
|
---|
4243 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4244 | set dummy $ac_prog; ac_word=$2
|
---|
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4246 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4247 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4248 | $as_echo_n "(cached) " >&6
|
---|
4249 | else
|
---|
4250 | if test -n "$JAVAC"; then
|
---|
4251 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4252 | else
|
---|
4253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4254 | for as_dir in $PATH
|
---|
4255 | do
|
---|
4256 | IFS=$as_save_IFS
|
---|
4257 | test -z "$as_dir" && as_dir=.
|
---|
4258 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4260 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4262 | break 2
|
---|
4263 | fi
|
---|
4264 | done
|
---|
4265 | done
|
---|
4266 | IFS=$as_save_IFS
|
---|
4267 |
|
---|
4268 | fi
|
---|
4269 | fi
|
---|
4270 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4271 | if test -n "$JAVAC"; then
|
---|
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4273 | $as_echo "$JAVAC" >&6; }
|
---|
4274 | else
|
---|
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4276 | $as_echo "no" >&6; }
|
---|
4277 | fi
|
---|
4278 |
|
---|
4279 |
|
---|
4280 | test -n "$JAVAC" && break
|
---|
4281 | done
|
---|
4282 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
4283 |
|
---|
4284 | fi
|
---|
4285 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
4286 | else
|
---|
4287 | echo "Checking for javac... $JAVAC"
|
---|
4288 | fi
|
---|
4289 |
|
---|
4290 |
|
---|
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4292 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4293 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
4294 | $as_echo_n "(cached) " >&6
|
---|
4295 | else
|
---|
4296 |
|
---|
4297 | JAVA_TEST=Test.java
|
---|
4298 | CLASS_TEST=Test.class
|
---|
4299 | cat << \EOF > $JAVA_TEST
|
---|
4300 | /* #line 4300 "configure" */
|
---|
4301 | public class Test {
|
---|
4302 | }
|
---|
4303 | EOF
|
---|
4304 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4305 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4306 | (eval $ac_try) 2>&5
|
---|
4307 | ac_status=$?
|
---|
4308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4309 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4310 | ac_cv_prog_javac_works=yes
|
---|
4311 | else
|
---|
4312 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4313 | echo "configure: failed program was:" >&5
|
---|
4314 | cat $JAVA_TEST >&5
|
---|
4315 | fi
|
---|
4316 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4317 |
|
---|
4318 | fi
|
---|
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4320 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4321 | if test "x$JAVACFLAGS" = x ; then
|
---|
4322 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
4323 | fi
|
---|
4324 |
|
---|
4325 |
|
---|
4326 |
|
---|
4327 | fi
|
---|
4328 | fi
|
---|
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
4330 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
4331 | if ${ac_cv_prog_java_works+:} false; then :
|
---|
4332 | $as_echo_n "(cached) " >&6
|
---|
4333 | else
|
---|
4334 |
|
---|
4335 | JAVA_TEST=Test.java
|
---|
4336 | CLASS_TEST=Test.class
|
---|
4337 | TEST=Test
|
---|
4338 | cat << \EOF > $JAVA_TEST
|
---|
4339 | /* [#]line 4339 "configure" */
|
---|
4340 | public class Test {
|
---|
4341 | public static void main (String args[]) {
|
---|
4342 | System.exit (0);
|
---|
4343 | } }
|
---|
4344 | EOF
|
---|
4345 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
4346 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4347 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4348 | (eval $ac_try) 2>&5
|
---|
4349 | ac_status=$?
|
---|
4350 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4351 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
4352 | :
|
---|
4353 | else
|
---|
4354 | echo "configure: failed program was:" >&5
|
---|
4355 | cat $JAVA_TEST >&5
|
---|
4356 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4357 | fi
|
---|
4358 | fi
|
---|
4359 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
4360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4361 | (eval $ac_try) 2>&5
|
---|
4362 | ac_status=$?
|
---|
4363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4364 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4365 | ac_cv_prog_java_works=yes
|
---|
4366 | else
|
---|
4367 | echo "configure: failed program was:" >&5
|
---|
4368 | cat $JAVA_TEST >&5
|
---|
4369 | as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4370 | fi
|
---|
4371 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
4372 |
|
---|
4373 | fi
|
---|
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
4375 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
4376 |
|
---|
4377 |
|
---|
4378 |
|
---|
4379 |
|
---|
4380 | if test "x$JAVAC" = x ; then
|
---|
4381 | if test "x$JAVAPREFIX" = x; then
|
---|
4382 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4383 | do
|
---|
4384 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4385 | set dummy $ac_prog; ac_word=$2
|
---|
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4387 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4388 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4389 | $as_echo_n "(cached) " >&6
|
---|
4390 | else
|
---|
4391 | if test -n "$JAVAC"; then
|
---|
4392 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4393 | else
|
---|
4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4395 | for as_dir in $PATH
|
---|
4396 | do
|
---|
4397 | IFS=$as_save_IFS
|
---|
4398 | test -z "$as_dir" && as_dir=.
|
---|
4399 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4401 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4403 | break 2
|
---|
4404 | fi
|
---|
4405 | done
|
---|
4406 | done
|
---|
4407 | IFS=$as_save_IFS
|
---|
4408 |
|
---|
4409 | fi
|
---|
4410 | fi
|
---|
4411 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4412 | if test -n "$JAVAC"; then
|
---|
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4414 | $as_echo "$JAVAC" >&6; }
|
---|
4415 | else
|
---|
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4417 | $as_echo "no" >&6; }
|
---|
4418 | fi
|
---|
4419 |
|
---|
4420 |
|
---|
4421 | test -n "$JAVAC" && break
|
---|
4422 | done
|
---|
4423 |
|
---|
4424 | else
|
---|
4425 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
4426 | do
|
---|
4427 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4428 | set dummy $ac_prog; ac_word=$2
|
---|
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4430 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4431 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
4432 | $as_echo_n "(cached) " >&6
|
---|
4433 | else
|
---|
4434 | if test -n "$JAVAC"; then
|
---|
4435 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
4436 | else
|
---|
4437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4438 | for as_dir in $PATH
|
---|
4439 | do
|
---|
4440 | IFS=$as_save_IFS
|
---|
4441 | test -z "$as_dir" && as_dir=.
|
---|
4442 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4444 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
4445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4446 | break 2
|
---|
4447 | fi
|
---|
4448 | done
|
---|
4449 | done
|
---|
4450 | IFS=$as_save_IFS
|
---|
4451 |
|
---|
4452 | fi
|
---|
4453 | fi
|
---|
4454 | JAVAC=$ac_cv_prog_JAVAC
|
---|
4455 | if test -n "$JAVAC"; then
|
---|
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
4457 | $as_echo "$JAVAC" >&6; }
|
---|
4458 | else
|
---|
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4460 | $as_echo "no" >&6; }
|
---|
4461 | fi
|
---|
4462 |
|
---|
4463 |
|
---|
4464 | test -n "$JAVAC" && break
|
---|
4465 | done
|
---|
4466 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
4467 |
|
---|
4468 | fi
|
---|
4469 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
4470 | else
|
---|
4471 | echo "Checking for javac... $JAVAC"
|
---|
4472 | fi
|
---|
4473 |
|
---|
4474 |
|
---|
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4476 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4477 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
4478 | $as_echo_n "(cached) " >&6
|
---|
4479 | else
|
---|
4480 |
|
---|
4481 | JAVA_TEST=Test.java
|
---|
4482 | CLASS_TEST=Test.class
|
---|
4483 | cat << \EOF > $JAVA_TEST
|
---|
4484 | /* #line 4484 "configure" */
|
---|
4485 | public class Test {
|
---|
4486 | }
|
---|
4487 | EOF
|
---|
4488 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4489 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4490 | (eval $ac_try) 2>&5
|
---|
4491 | ac_status=$?
|
---|
4492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4493 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4494 | ac_cv_prog_javac_works=yes
|
---|
4495 | else
|
---|
4496 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4497 | echo "configure: failed program was:" >&5
|
---|
4498 | cat $JAVA_TEST >&5
|
---|
4499 | fi
|
---|
4500 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4501 |
|
---|
4502 | fi
|
---|
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4504 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4505 | if test "x$JAVACFLAGS" = x ; then
|
---|
4506 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
4507 | fi
|
---|
4508 |
|
---|
4509 |
|
---|
4510 |
|
---|
4511 | fi
|
---|
4512 |
|
---|
4513 |
|
---|
4514 | ac_ext=c
|
---|
4515 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4520 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4521 | # On Suns, sometimes $CPP names a directory.
|
---|
4522 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4523 | CPP=
|
---|
4524 | fi
|
---|
4525 | if test -z "$CPP"; then
|
---|
4526 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
4527 | $as_echo_n "(cached) " >&6
|
---|
4528 | else
|
---|
4529 | # Double quotes because CPP needs to be expanded
|
---|
4530 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4531 | do
|
---|
4532 | ac_preproc_ok=false
|
---|
4533 | for ac_c_preproc_warn_flag in '' yes
|
---|
4534 | do
|
---|
4535 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4536 | # with a fresh cross-compiler works.
|
---|
4537 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4538 | # <limits.h> exists even on freestanding compilers.
|
---|
4539 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4540 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4542 | /* end confdefs.h. */
|
---|
4543 | #ifdef __STDC__
|
---|
4544 | # include <limits.h>
|
---|
4545 | #else
|
---|
4546 | # include <assert.h>
|
---|
4547 | #endif
|
---|
4548 | Syntax error
|
---|
4549 | _ACEOF
|
---|
4550 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4551 |
|
---|
4552 | else
|
---|
4553 | # Broken: fails on valid input.
|
---|
4554 | continue
|
---|
4555 | fi
|
---|
4556 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4557 |
|
---|
4558 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4559 | # can be detected and how.
|
---|
4560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4561 | /* end confdefs.h. */
|
---|
4562 | #include <ac_nonexistent.h>
|
---|
4563 | _ACEOF
|
---|
4564 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4565 | # Broken: success on invalid input.
|
---|
4566 | continue
|
---|
4567 | else
|
---|
4568 | # Passes both tests.
|
---|
4569 | ac_preproc_ok=:
|
---|
4570 | break
|
---|
4571 | fi
|
---|
4572 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4573 |
|
---|
4574 | done
|
---|
4575 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4576 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4577 | if $ac_preproc_ok; then :
|
---|
4578 | break
|
---|
4579 | fi
|
---|
4580 |
|
---|
4581 | done
|
---|
4582 | ac_cv_prog_CPP=$CPP
|
---|
4583 |
|
---|
4584 | fi
|
---|
4585 | CPP=$ac_cv_prog_CPP
|
---|
4586 | else
|
---|
4587 | ac_cv_prog_CPP=$CPP
|
---|
4588 | fi
|
---|
4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4590 | $as_echo "$CPP" >&6; }
|
---|
4591 | ac_preproc_ok=false
|
---|
4592 | for ac_c_preproc_warn_flag in '' yes
|
---|
4593 | do
|
---|
4594 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4595 | # with a fresh cross-compiler works.
|
---|
4596 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4597 | # <limits.h> exists even on freestanding compilers.
|
---|
4598 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4599 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4601 | /* end confdefs.h. */
|
---|
4602 | #ifdef __STDC__
|
---|
4603 | # include <limits.h>
|
---|
4604 | #else
|
---|
4605 | # include <assert.h>
|
---|
4606 | #endif
|
---|
4607 | Syntax error
|
---|
4608 | _ACEOF
|
---|
4609 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4610 |
|
---|
4611 | else
|
---|
4612 | # Broken: fails on valid input.
|
---|
4613 | continue
|
---|
4614 | fi
|
---|
4615 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4616 |
|
---|
4617 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4618 | # can be detected and how.
|
---|
4619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4620 | /* end confdefs.h. */
|
---|
4621 | #include <ac_nonexistent.h>
|
---|
4622 | _ACEOF
|
---|
4623 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4624 | # Broken: success on invalid input.
|
---|
4625 | continue
|
---|
4626 | else
|
---|
4627 | # Passes both tests.
|
---|
4628 | ac_preproc_ok=:
|
---|
4629 | break
|
---|
4630 | fi
|
---|
4631 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4632 |
|
---|
4633 | done
|
---|
4634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4635 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4636 | if $ac_preproc_ok; then :
|
---|
4637 |
|
---|
4638 | else
|
---|
4639 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4640 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4641 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
4642 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
4643 | fi
|
---|
4644 |
|
---|
4645 | ac_ext=c
|
---|
4646 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4650 |
|
---|
4651 |
|
---|
4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4653 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4654 | if ${ac_cv_path_GREP+:} false; then :
|
---|
4655 | $as_echo_n "(cached) " >&6
|
---|
4656 | else
|
---|
4657 | if test -z "$GREP"; then
|
---|
4658 | ac_path_GREP_found=false
|
---|
4659 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4661 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4662 | do
|
---|
4663 | IFS=$as_save_IFS
|
---|
4664 | test -z "$as_dir" && as_dir=.
|
---|
4665 | for ac_prog in grep ggrep; do
|
---|
4666 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4667 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4668 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
4669 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4670 | # Check for GNU $ac_path_GREP
|
---|
4671 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4672 | *GNU*)
|
---|
4673 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4674 | *)
|
---|
4675 | ac_count=0
|
---|
4676 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4677 | while :
|
---|
4678 | do
|
---|
4679 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4680 | mv "conftest.tmp" "conftest.in"
|
---|
4681 | cp "conftest.in" "conftest.nl"
|
---|
4682 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4683 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4684 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4685 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4686 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4687 | # Best one so far, save it but keep looking for a better one
|
---|
4688 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4689 | ac_path_GREP_max=$ac_count
|
---|
4690 | fi
|
---|
4691 | # 10*(2^10) chars as input seems more than enough
|
---|
4692 | test $ac_count -gt 10 && break
|
---|
4693 | done
|
---|
4694 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4695 | esac
|
---|
4696 |
|
---|
4697 | $ac_path_GREP_found && break 3
|
---|
4698 | done
|
---|
4699 | done
|
---|
4700 | done
|
---|
4701 | IFS=$as_save_IFS
|
---|
4702 | if test -z "$ac_cv_path_GREP"; then
|
---|
4703 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4704 | fi
|
---|
4705 | else
|
---|
4706 | ac_cv_path_GREP=$GREP
|
---|
4707 | fi
|
---|
4708 |
|
---|
4709 | fi
|
---|
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4711 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4712 | GREP="$ac_cv_path_GREP"
|
---|
4713 |
|
---|
4714 |
|
---|
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4716 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4717 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
4718 | $as_echo_n "(cached) " >&6
|
---|
4719 | else
|
---|
4720 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4721 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4722 | else
|
---|
4723 | if test -z "$EGREP"; then
|
---|
4724 | ac_path_EGREP_found=false
|
---|
4725 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4727 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4728 | do
|
---|
4729 | IFS=$as_save_IFS
|
---|
4730 | test -z "$as_dir" && as_dir=.
|
---|
4731 | for ac_prog in egrep; do
|
---|
4732 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4733 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4734 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
4735 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4736 | # Check for GNU $ac_path_EGREP
|
---|
4737 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4738 | *GNU*)
|
---|
4739 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4740 | *)
|
---|
4741 | ac_count=0
|
---|
4742 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4743 | while :
|
---|
4744 | do
|
---|
4745 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4746 | mv "conftest.tmp" "conftest.in"
|
---|
4747 | cp "conftest.in" "conftest.nl"
|
---|
4748 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4749 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4750 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4751 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4752 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4753 | # Best one so far, save it but keep looking for a better one
|
---|
4754 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4755 | ac_path_EGREP_max=$ac_count
|
---|
4756 | fi
|
---|
4757 | # 10*(2^10) chars as input seems more than enough
|
---|
4758 | test $ac_count -gt 10 && break
|
---|
4759 | done
|
---|
4760 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4761 | esac
|
---|
4762 |
|
---|
4763 | $ac_path_EGREP_found && break 3
|
---|
4764 | done
|
---|
4765 | done
|
---|
4766 | done
|
---|
4767 | IFS=$as_save_IFS
|
---|
4768 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4769 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4770 | fi
|
---|
4771 | else
|
---|
4772 | ac_cv_path_EGREP=$EGREP
|
---|
4773 | fi
|
---|
4774 |
|
---|
4775 | fi
|
---|
4776 | fi
|
---|
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4778 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4779 | EGREP="$ac_cv_path_EGREP"
|
---|
4780 |
|
---|
4781 |
|
---|
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
4783 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
4784 | if ${ac_cv_header_stdc+:} false; then :
|
---|
4785 | $as_echo_n "(cached) " >&6
|
---|
4786 | else
|
---|
4787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4788 | /* end confdefs.h. */
|
---|
4789 | #include <stdlib.h>
|
---|
4790 | #include <stdarg.h>
|
---|
4791 | #include <string.h>
|
---|
4792 | #include <float.h>
|
---|
4793 |
|
---|
4794 | int
|
---|
4795 | main ()
|
---|
4796 | {
|
---|
4797 |
|
---|
4798 | ;
|
---|
4799 | return 0;
|
---|
4800 | }
|
---|
4801 | _ACEOF
|
---|
4802 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4803 | ac_cv_header_stdc=yes
|
---|
4804 | else
|
---|
4805 | ac_cv_header_stdc=no
|
---|
4806 | fi
|
---|
4807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4808 |
|
---|
4809 | if test $ac_cv_header_stdc = yes; then
|
---|
4810 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4812 | /* end confdefs.h. */
|
---|
4813 | #include <string.h>
|
---|
4814 |
|
---|
4815 | _ACEOF
|
---|
4816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4817 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
4818 |
|
---|
4819 | else
|
---|
4820 | ac_cv_header_stdc=no
|
---|
4821 | fi
|
---|
4822 | rm -f conftest*
|
---|
4823 |
|
---|
4824 | fi
|
---|
4825 |
|
---|
4826 | if test $ac_cv_header_stdc = yes; then
|
---|
4827 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
4828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4829 | /* end confdefs.h. */
|
---|
4830 | #include <stdlib.h>
|
---|
4831 |
|
---|
4832 | _ACEOF
|
---|
4833 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4834 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
4835 |
|
---|
4836 | else
|
---|
4837 | ac_cv_header_stdc=no
|
---|
4838 | fi
|
---|
4839 | rm -f conftest*
|
---|
4840 |
|
---|
4841 | fi
|
---|
4842 |
|
---|
4843 | if test $ac_cv_header_stdc = yes; then
|
---|
4844 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
4845 | if test "$cross_compiling" = yes; then :
|
---|
4846 | :
|
---|
4847 | else
|
---|
4848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4849 | /* end confdefs.h. */
|
---|
4850 | #include <ctype.h>
|
---|
4851 | #include <stdlib.h>
|
---|
4852 | #if ((' ' & 0x0FF) == 0x020)
|
---|
4853 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
4854 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
4855 | #else
|
---|
4856 | # define ISLOWER(c) \
|
---|
4857 | (('a' <= (c) && (c) <= 'i') \
|
---|
4858 | || ('j' <= (c) && (c) <= 'r') \
|
---|
4859 | || ('s' <= (c) && (c) <= 'z'))
|
---|
4860 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
4861 | #endif
|
---|
4862 |
|
---|
4863 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
4864 | int
|
---|
4865 | main ()
|
---|
4866 | {
|
---|
4867 | int i;
|
---|
4868 | for (i = 0; i < 256; i++)
|
---|
4869 | if (XOR (islower (i), ISLOWER (i))
|
---|
4870 | || toupper (i) != TOUPPER (i))
|
---|
4871 | return 2;
|
---|
4872 | return 0;
|
---|
4873 | }
|
---|
4874 | _ACEOF
|
---|
4875 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
4876 |
|
---|
4877 | else
|
---|
4878 | ac_cv_header_stdc=no
|
---|
4879 | fi
|
---|
4880 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
4881 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4882 | fi
|
---|
4883 |
|
---|
4884 | fi
|
---|
4885 | fi
|
---|
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
4887 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
4888 | if test $ac_cv_header_stdc = yes; then
|
---|
4889 |
|
---|
4890 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
4891 |
|
---|
4892 | fi
|
---|
4893 |
|
---|
4894 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4895 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4896 | inttypes.h stdint.h unistd.h
|
---|
4897 | do :
|
---|
4898 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4899 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
4900 | "
|
---|
4901 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
4902 | cat >>confdefs.h <<_ACEOF
|
---|
4903 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4904 | _ACEOF
|
---|
4905 |
|
---|
4906 | fi
|
---|
4907 |
|
---|
4908 | done
|
---|
4909 |
|
---|
4910 |
|
---|
4911 |
|
---|
4912 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
4913 | if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
---|
4914 | MINIX=yes
|
---|
4915 | else
|
---|
4916 | MINIX=
|
---|
4917 | fi
|
---|
4918 |
|
---|
4919 |
|
---|
4920 | if test "$MINIX" = yes; then
|
---|
4921 |
|
---|
4922 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
4923 |
|
---|
4924 |
|
---|
4925 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
4926 |
|
---|
4927 |
|
---|
4928 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
4929 |
|
---|
4930 | fi
|
---|
4931 |
|
---|
4932 |
|
---|
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
4934 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
4935 | if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
---|
4936 | $as_echo_n "(cached) " >&6
|
---|
4937 | else
|
---|
4938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4939 | /* end confdefs.h. */
|
---|
4940 |
|
---|
4941 | # define __EXTENSIONS__ 1
|
---|
4942 | $ac_includes_default
|
---|
4943 | int
|
---|
4944 | main ()
|
---|
4945 | {
|
---|
4946 |
|
---|
4947 | ;
|
---|
4948 | return 0;
|
---|
4949 | }
|
---|
4950 | _ACEOF
|
---|
4951 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4952 | ac_cv_safe_to_define___extensions__=yes
|
---|
4953 | else
|
---|
4954 | ac_cv_safe_to_define___extensions__=no
|
---|
4955 | fi
|
---|
4956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4957 | fi
|
---|
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
4959 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
4960 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
4961 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
4962 |
|
---|
4963 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
4964 |
|
---|
4965 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
4966 |
|
---|
4967 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
4968 |
|
---|
4969 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
4970 |
|
---|
4971 |
|
---|
4972 |
|
---|
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
4974 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
4975 | if ${ac_cv_search_strerror+:} false; then :
|
---|
4976 | $as_echo_n "(cached) " >&6
|
---|
4977 | else
|
---|
4978 | ac_func_search_save_LIBS=$LIBS
|
---|
4979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4980 | /* end confdefs.h. */
|
---|
4981 |
|
---|
4982 | /* Override any GCC internal prototype to avoid an error.
|
---|
4983 | Use char because int might match the return type of a GCC
|
---|
4984 | builtin and then its argument prototype would still apply. */
|
---|
4985 | #ifdef __cplusplus
|
---|
4986 | extern "C"
|
---|
4987 | #endif
|
---|
4988 | char strerror ();
|
---|
4989 | int
|
---|
4990 | main ()
|
---|
4991 | {
|
---|
4992 | return strerror ();
|
---|
4993 | ;
|
---|
4994 | return 0;
|
---|
4995 | }
|
---|
4996 | _ACEOF
|
---|
4997 | for ac_lib in '' cposix; do
|
---|
4998 | if test -z "$ac_lib"; then
|
---|
4999 | ac_res="none required"
|
---|
5000 | else
|
---|
5001 | ac_res=-l$ac_lib
|
---|
5002 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5003 | fi
|
---|
5004 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5005 | ac_cv_search_strerror=$ac_res
|
---|
5006 | fi
|
---|
5007 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5008 | conftest$ac_exeext
|
---|
5009 | if ${ac_cv_search_strerror+:} false; then :
|
---|
5010 | break
|
---|
5011 | fi
|
---|
5012 | done
|
---|
5013 | if ${ac_cv_search_strerror+:} false; then :
|
---|
5014 |
|
---|
5015 | else
|
---|
5016 | ac_cv_search_strerror=no
|
---|
5017 | fi
|
---|
5018 | rm conftest.$ac_ext
|
---|
5019 | LIBS=$ac_func_search_save_LIBS
|
---|
5020 | fi
|
---|
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
5022 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
5023 | ac_res=$ac_cv_search_strerror
|
---|
5024 | if test "$ac_res" != no; then :
|
---|
5025 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5026 |
|
---|
5027 | fi
|
---|
5028 |
|
---|
5029 |
|
---|
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
5031 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
5032 | if ${ac_cv_prog_cc_stdc+:} false; then :
|
---|
5033 | $as_echo_n "(cached) " >&6
|
---|
5034 | else
|
---|
5035 | ac_cv_prog_cc_stdc=no
|
---|
5036 | ac_save_CFLAGS="$CFLAGS"
|
---|
5037 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
5038 | # breaks some systems' header files.
|
---|
5039 | # AIX -qlanglvl=ansi
|
---|
5040 | # Ultrix and OSF/1 -std1
|
---|
5041 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
5042 | # SVR4 -Xc
|
---|
5043 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
5044 | do
|
---|
5045 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
5046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5047 | /* end confdefs.h. */
|
---|
5048 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
5049 | choke me
|
---|
5050 | #endif
|
---|
5051 |
|
---|
5052 | int
|
---|
5053 | main ()
|
---|
5054 | {
|
---|
5055 | int test (int i, double x);
|
---|
5056 | struct s1 {int (*f) (int a);};
|
---|
5057 | struct s2 {int (*f) (double a);};
|
---|
5058 | ;
|
---|
5059 | return 0;
|
---|
5060 | }
|
---|
5061 | _ACEOF
|
---|
5062 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5063 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
5064 | fi
|
---|
5065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5066 | done
|
---|
5067 | CFLAGS="$ac_save_CFLAGS"
|
---|
5068 |
|
---|
5069 | fi
|
---|
5070 |
|
---|
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
5072 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
5073 | case "x$ac_cv_prog_cc_stdc" in
|
---|
5074 | x|xno) ;;
|
---|
5075 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
5076 | esac
|
---|
5077 |
|
---|
5078 |
|
---|
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
5080 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
5081 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5083 | $as_echo "yes" >&6; }
|
---|
5084 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
5085 |
|
---|
5086 | U= ANSI2KNR=
|
---|
5087 | else
|
---|
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5089 | $as_echo "no" >&6; }
|
---|
5090 | U=_ ANSI2KNR=ansi2knr
|
---|
5091 | fi
|
---|
5092 |
|
---|
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
5094 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
5095 | if ${ac_cv_c_const+:} false; then :
|
---|
5096 | $as_echo_n "(cached) " >&6
|
---|
5097 | else
|
---|
5098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5099 | /* end confdefs.h. */
|
---|
5100 |
|
---|
5101 | int
|
---|
5102 | main ()
|
---|
5103 | {
|
---|
5104 |
|
---|
5105 | #ifndef __cplusplus
|
---|
5106 | /* Ultrix mips cc rejects this sort of thing. */
|
---|
5107 | typedef int charset[2];
|
---|
5108 | const charset cs = { 0, 0 };
|
---|
5109 | /* SunOS 4.1.1 cc rejects this. */
|
---|
5110 | char const *const *pcpcc;
|
---|
5111 | char **ppc;
|
---|
5112 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
5113 | struct point {int x, y;};
|
---|
5114 | static struct point const zero = {0,0};
|
---|
5115 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
5116 | It does not let you subtract one const X* pointer from another in
|
---|
5117 | an arm of an if-expression whose if-part is not a constant
|
---|
5118 | expression */
|
---|
5119 | const char *g = "string";
|
---|
5120 | pcpcc = &g + (g ? g-g : 0);
|
---|
5121 | /* HPUX 7.0 cc rejects these. */
|
---|
5122 | ++pcpcc;
|
---|
5123 | ppc = (char**) pcpcc;
|
---|
5124 | pcpcc = (char const *const *) ppc;
|
---|
5125 | { /* SCO 3.2v4 cc rejects this sort of thing. */
|
---|
5126 | char tx;
|
---|
5127 | char *t = &tx;
|
---|
5128 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
5129 |
|
---|
5130 | *t++ = 0;
|
---|
5131 | if (s) return 0;
|
---|
5132 | }
|
---|
5133 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
5134 | int x[] = {25, 17};
|
---|
5135 | const int *foo = &x[0];
|
---|
5136 | ++foo;
|
---|
5137 | }
|
---|
5138 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
5139 | typedef const int *iptr;
|
---|
5140 | iptr p = 0;
|
---|
5141 | ++p;
|
---|
5142 | }
|
---|
5143 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
---|
5144 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
5145 | struct s { int j; const int *ap[3]; } bx;
|
---|
5146 | struct s *b = &bx; b->j = 5;
|
---|
5147 | }
|
---|
5148 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
5149 | const int foo = 10;
|
---|
5150 | if (!foo) return 0;
|
---|
5151 | }
|
---|
5152 | return !cs[0] && !zero.x;
|
---|
5153 | #endif
|
---|
5154 |
|
---|
5155 | ;
|
---|
5156 | return 0;
|
---|
5157 | }
|
---|
5158 | _ACEOF
|
---|
5159 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5160 | ac_cv_c_const=yes
|
---|
5161 | else
|
---|
5162 | ac_cv_c_const=no
|
---|
5163 | fi
|
---|
5164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5165 | fi
|
---|
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
5167 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
5168 | if test $ac_cv_c_const = no; then
|
---|
5169 |
|
---|
5170 | $as_echo "#define const /**/" >>confdefs.h
|
---|
5171 |
|
---|
5172 | fi
|
---|
5173 |
|
---|
5174 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
5175 | if test "x$ac_cv_type_off_t" = xyes; then :
|
---|
5176 |
|
---|
5177 | else
|
---|
5178 |
|
---|
5179 | cat >>confdefs.h <<_ACEOF
|
---|
5180 | #define off_t long int
|
---|
5181 | _ACEOF
|
---|
5182 |
|
---|
5183 | fi
|
---|
5184 |
|
---|
5185 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
5186 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
5187 |
|
---|
5188 | else
|
---|
5189 |
|
---|
5190 | cat >>confdefs.h <<_ACEOF
|
---|
5191 | #define size_t unsigned int
|
---|
5192 | _ACEOF
|
---|
5193 |
|
---|
5194 | fi
|
---|
5195 |
|
---|
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
5197 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
5198 | if ${ac_cv_header_time+:} false; then :
|
---|
5199 | $as_echo_n "(cached) " >&6
|
---|
5200 | else
|
---|
5201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5202 | /* end confdefs.h. */
|
---|
5203 | #include <sys/types.h>
|
---|
5204 | #include <sys/time.h>
|
---|
5205 | #include <time.h>
|
---|
5206 |
|
---|
5207 | int
|
---|
5208 | main ()
|
---|
5209 | {
|
---|
5210 | if ((struct tm *) 0)
|
---|
5211 | return 0;
|
---|
5212 | ;
|
---|
5213 | return 0;
|
---|
5214 | }
|
---|
5215 | _ACEOF
|
---|
5216 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5217 | ac_cv_header_time=yes
|
---|
5218 | else
|
---|
5219 | ac_cv_header_time=no
|
---|
5220 | fi
|
---|
5221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5222 | fi
|
---|
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
5224 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
5225 | if test $ac_cv_header_time = yes; then
|
---|
5226 |
|
---|
5227 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
5228 |
|
---|
5229 | fi
|
---|
5230 |
|
---|
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
5232 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
5233 | if ${ac_cv_struct_tm+:} false; then :
|
---|
5234 | $as_echo_n "(cached) " >&6
|
---|
5235 | else
|
---|
5236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5237 | /* end confdefs.h. */
|
---|
5238 | #include <sys/types.h>
|
---|
5239 | #include <time.h>
|
---|
5240 |
|
---|
5241 | int
|
---|
5242 | main ()
|
---|
5243 | {
|
---|
5244 | struct tm tm;
|
---|
5245 | int *p = &tm.tm_sec;
|
---|
5246 | return !p;
|
---|
5247 | ;
|
---|
5248 | return 0;
|
---|
5249 | }
|
---|
5250 | _ACEOF
|
---|
5251 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5252 | ac_cv_struct_tm=time.h
|
---|
5253 | else
|
---|
5254 | ac_cv_struct_tm=sys/time.h
|
---|
5255 | fi
|
---|
5256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5257 | fi
|
---|
5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
5259 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
5260 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
5261 |
|
---|
5262 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
5263 |
|
---|
5264 | fi
|
---|
5265 |
|
---|
5266 |
|
---|
5267 |
|
---|
5268 | # Check whether --with-unac was given.
|
---|
5269 | if test "${with_unac+set}" = set; then :
|
---|
5270 | withval=$with_unac; UNAC_DIR=$withval
|
---|
5271 | else
|
---|
5272 | UNAC_DIR="`pwd`/../packages/unac"
|
---|
5273 | fi
|
---|
5274 |
|
---|
5275 | cat >>confdefs.h <<_ACEOF
|
---|
5276 | #define UNAC_DIR "$UNAC_DIR"
|
---|
5277 | _ACEOF
|
---|
5278 |
|
---|
5279 |
|
---|
5280 |
|
---|
5281 | #AC_ARG_WITH(unac, [ --with-libiconv-prefix=dir Use local libiconv library], LIBICONV_DIR=$withval)
|
---|
5282 | #AC_DEFINE_UNQUOTED(LIBICONV_DIR, "$LIBICONV_DIR")
|
---|
5283 | #AC_SUBST(LIBICONV_DIR)
|
---|
5284 |
|
---|
5285 |
|
---|
5286 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5288 | /* end confdefs.h. */
|
---|
5289 | #include <stdio.h>
|
---|
5290 |
|
---|
5291 | int
|
---|
5292 | main ()
|
---|
5293 | {
|
---|
5294 | FILE *rubbish = popen("yes", "r");
|
---|
5295 | ;
|
---|
5296 | return 0;
|
---|
5297 | }
|
---|
5298 | _ACEOF
|
---|
5299 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5300 |
|
---|
5301 | else
|
---|
5302 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
5303 | fi
|
---|
5304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5305 | fi
|
---|
5306 |
|
---|
5307 |
|
---|
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
5309 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
5310 | if ${ac_cv_lib_g_main+:} false; then :
|
---|
5311 | $as_echo_n "(cached) " >&6
|
---|
5312 | else
|
---|
5313 | ac_check_lib_save_LIBS=$LIBS
|
---|
5314 | LIBS="-lg $LIBS"
|
---|
5315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5316 | /* end confdefs.h. */
|
---|
5317 |
|
---|
5318 |
|
---|
5319 | int
|
---|
5320 | main ()
|
---|
5321 | {
|
---|
5322 | return main ();
|
---|
5323 | ;
|
---|
5324 | return 0;
|
---|
5325 | }
|
---|
5326 | _ACEOF
|
---|
5327 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5328 | ac_cv_lib_g_main=yes
|
---|
5329 | else
|
---|
5330 | ac_cv_lib_g_main=no
|
---|
5331 | fi
|
---|
5332 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5333 | conftest$ac_exeext conftest.$ac_ext
|
---|
5334 | LIBS=$ac_check_lib_save_LIBS
|
---|
5335 | fi
|
---|
5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
5337 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
5338 | if test "x$ac_cv_lib_g_main" = xyes; then :
|
---|
5339 | cat >>confdefs.h <<_ACEOF
|
---|
5340 | #define HAVE_LIBG 1
|
---|
5341 | _ACEOF
|
---|
5342 |
|
---|
5343 | LIBS="-lg $LIBS"
|
---|
5344 |
|
---|
5345 | fi
|
---|
5346 |
|
---|
5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
5348 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
5349 | if ${ac_cv_lib_m_main+:} false; then :
|
---|
5350 | $as_echo_n "(cached) " >&6
|
---|
5351 | else
|
---|
5352 | ac_check_lib_save_LIBS=$LIBS
|
---|
5353 | LIBS="-lm $LIBS"
|
---|
5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5355 | /* end confdefs.h. */
|
---|
5356 |
|
---|
5357 |
|
---|
5358 | int
|
---|
5359 | main ()
|
---|
5360 | {
|
---|
5361 | return main ();
|
---|
5362 | ;
|
---|
5363 | return 0;
|
---|
5364 | }
|
---|
5365 | _ACEOF
|
---|
5366 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5367 | ac_cv_lib_m_main=yes
|
---|
5368 | else
|
---|
5369 | ac_cv_lib_m_main=no
|
---|
5370 | fi
|
---|
5371 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5372 | conftest$ac_exeext conftest.$ac_ext
|
---|
5373 | LIBS=$ac_check_lib_save_LIBS
|
---|
5374 | fi
|
---|
5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
5376 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
5377 | if test "x$ac_cv_lib_m_main" = xyes; then :
|
---|
5378 | cat >>confdefs.h <<_ACEOF
|
---|
5379 | #define HAVE_LIBM 1
|
---|
5380 | _ACEOF
|
---|
5381 |
|
---|
5382 | LIBS="-lm $LIBS"
|
---|
5383 |
|
---|
5384 | fi
|
---|
5385 |
|
---|
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
5387 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
5388 | if ${ac_cv_lib_crypt_main+:} false; then :
|
---|
5389 | $as_echo_n "(cached) " >&6
|
---|
5390 | else
|
---|
5391 | ac_check_lib_save_LIBS=$LIBS
|
---|
5392 | LIBS="-lcrypt $LIBS"
|
---|
5393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5394 | /* end confdefs.h. */
|
---|
5395 |
|
---|
5396 |
|
---|
5397 | int
|
---|
5398 | main ()
|
---|
5399 | {
|
---|
5400 | return main ();
|
---|
5401 | ;
|
---|
5402 | return 0;
|
---|
5403 | }
|
---|
5404 | _ACEOF
|
---|
5405 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5406 | ac_cv_lib_crypt_main=yes
|
---|
5407 | else
|
---|
5408 | ac_cv_lib_crypt_main=no
|
---|
5409 | fi
|
---|
5410 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5411 | conftest$ac_exeext conftest.$ac_ext
|
---|
5412 | LIBS=$ac_check_lib_save_LIBS
|
---|
5413 | fi
|
---|
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
5415 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
5416 | if test "x$ac_cv_lib_crypt_main" = xyes; then :
|
---|
5417 | cat >>confdefs.h <<_ACEOF
|
---|
5418 | #define HAVE_LIBCRYPT 1
|
---|
5419 | _ACEOF
|
---|
5420 |
|
---|
5421 | LIBS="-lcrypt $LIBS"
|
---|
5422 |
|
---|
5423 | fi
|
---|
5424 |
|
---|
5425 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
5426 | #AC_HAVE_LIBRARY(iconv)
|
---|
5427 | #fi
|
---|
5428 |
|
---|
5429 |
|
---|
5430 | ac_header_dirent=no
|
---|
5431 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5432 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5434 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5435 | if eval \${$as_ac_Header+:} false; then :
|
---|
5436 | $as_echo_n "(cached) " >&6
|
---|
5437 | else
|
---|
5438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5439 | /* end confdefs.h. */
|
---|
5440 | #include <sys/types.h>
|
---|
5441 | #include <$ac_hdr>
|
---|
5442 |
|
---|
5443 | int
|
---|
5444 | main ()
|
---|
5445 | {
|
---|
5446 | if ((DIR *) 0)
|
---|
5447 | return 0;
|
---|
5448 | ;
|
---|
5449 | return 0;
|
---|
5450 | }
|
---|
5451 | _ACEOF
|
---|
5452 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5453 | eval "$as_ac_Header=yes"
|
---|
5454 | else
|
---|
5455 | eval "$as_ac_Header=no"
|
---|
5456 | fi
|
---|
5457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5458 | fi
|
---|
5459 | eval ac_res=\$$as_ac_Header
|
---|
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5461 | $as_echo "$ac_res" >&6; }
|
---|
5462 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5463 | cat >>confdefs.h <<_ACEOF
|
---|
5464 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5465 | _ACEOF
|
---|
5466 |
|
---|
5467 | ac_header_dirent=$ac_hdr; break
|
---|
5468 | fi
|
---|
5469 |
|
---|
5470 | done
|
---|
5471 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5472 | if test $ac_header_dirent = dirent.h; then
|
---|
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5474 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5475 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5476 | $as_echo_n "(cached) " >&6
|
---|
5477 | else
|
---|
5478 | ac_func_search_save_LIBS=$LIBS
|
---|
5479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5480 | /* end confdefs.h. */
|
---|
5481 |
|
---|
5482 | /* Override any GCC internal prototype to avoid an error.
|
---|
5483 | Use char because int might match the return type of a GCC
|
---|
5484 | builtin and then its argument prototype would still apply. */
|
---|
5485 | #ifdef __cplusplus
|
---|
5486 | extern "C"
|
---|
5487 | #endif
|
---|
5488 | char opendir ();
|
---|
5489 | int
|
---|
5490 | main ()
|
---|
5491 | {
|
---|
5492 | return opendir ();
|
---|
5493 | ;
|
---|
5494 | return 0;
|
---|
5495 | }
|
---|
5496 | _ACEOF
|
---|
5497 | for ac_lib in '' dir; do
|
---|
5498 | if test -z "$ac_lib"; then
|
---|
5499 | ac_res="none required"
|
---|
5500 | else
|
---|
5501 | ac_res=-l$ac_lib
|
---|
5502 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5503 | fi
|
---|
5504 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5505 | ac_cv_search_opendir=$ac_res
|
---|
5506 | fi
|
---|
5507 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5508 | conftest$ac_exeext
|
---|
5509 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5510 | break
|
---|
5511 | fi
|
---|
5512 | done
|
---|
5513 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5514 |
|
---|
5515 | else
|
---|
5516 | ac_cv_search_opendir=no
|
---|
5517 | fi
|
---|
5518 | rm conftest.$ac_ext
|
---|
5519 | LIBS=$ac_func_search_save_LIBS
|
---|
5520 | fi
|
---|
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5522 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5523 | ac_res=$ac_cv_search_opendir
|
---|
5524 | if test "$ac_res" != no; then :
|
---|
5525 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5526 |
|
---|
5527 | fi
|
---|
5528 |
|
---|
5529 | else
|
---|
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5531 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5532 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5533 | $as_echo_n "(cached) " >&6
|
---|
5534 | else
|
---|
5535 | ac_func_search_save_LIBS=$LIBS
|
---|
5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5537 | /* end confdefs.h. */
|
---|
5538 |
|
---|
5539 | /* Override any GCC internal prototype to avoid an error.
|
---|
5540 | Use char because int might match the return type of a GCC
|
---|
5541 | builtin and then its argument prototype would still apply. */
|
---|
5542 | #ifdef __cplusplus
|
---|
5543 | extern "C"
|
---|
5544 | #endif
|
---|
5545 | char opendir ();
|
---|
5546 | int
|
---|
5547 | main ()
|
---|
5548 | {
|
---|
5549 | return opendir ();
|
---|
5550 | ;
|
---|
5551 | return 0;
|
---|
5552 | }
|
---|
5553 | _ACEOF
|
---|
5554 | for ac_lib in '' x; do
|
---|
5555 | if test -z "$ac_lib"; then
|
---|
5556 | ac_res="none required"
|
---|
5557 | else
|
---|
5558 | ac_res=-l$ac_lib
|
---|
5559 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5560 | fi
|
---|
5561 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5562 | ac_cv_search_opendir=$ac_res
|
---|
5563 | fi
|
---|
5564 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5565 | conftest$ac_exeext
|
---|
5566 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5567 | break
|
---|
5568 | fi
|
---|
5569 | done
|
---|
5570 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5571 |
|
---|
5572 | else
|
---|
5573 | ac_cv_search_opendir=no
|
---|
5574 | fi
|
---|
5575 | rm conftest.$ac_ext
|
---|
5576 | LIBS=$ac_func_search_save_LIBS
|
---|
5577 | fi
|
---|
5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5579 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5580 | ac_res=$ac_cv_search_opendir
|
---|
5581 | if test "$ac_res" != no; then :
|
---|
5582 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5583 |
|
---|
5584 | fi
|
---|
5585 |
|
---|
5586 | fi
|
---|
5587 |
|
---|
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
5589 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
5590 | if ${ac_cv_header_stdc+:} false; then :
|
---|
5591 | $as_echo_n "(cached) " >&6
|
---|
5592 | else
|
---|
5593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5594 | /* end confdefs.h. */
|
---|
5595 | #include <stdlib.h>
|
---|
5596 | #include <stdarg.h>
|
---|
5597 | #include <string.h>
|
---|
5598 | #include <float.h>
|
---|
5599 |
|
---|
5600 | int
|
---|
5601 | main ()
|
---|
5602 | {
|
---|
5603 |
|
---|
5604 | ;
|
---|
5605 | return 0;
|
---|
5606 | }
|
---|
5607 | _ACEOF
|
---|
5608 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5609 | ac_cv_header_stdc=yes
|
---|
5610 | else
|
---|
5611 | ac_cv_header_stdc=no
|
---|
5612 | fi
|
---|
5613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5614 |
|
---|
5615 | if test $ac_cv_header_stdc = yes; then
|
---|
5616 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5618 | /* end confdefs.h. */
|
---|
5619 | #include <string.h>
|
---|
5620 |
|
---|
5621 | _ACEOF
|
---|
5622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5623 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
5624 |
|
---|
5625 | else
|
---|
5626 | ac_cv_header_stdc=no
|
---|
5627 | fi
|
---|
5628 | rm -f conftest*
|
---|
5629 |
|
---|
5630 | fi
|
---|
5631 |
|
---|
5632 | if test $ac_cv_header_stdc = yes; then
|
---|
5633 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5635 | /* end confdefs.h. */
|
---|
5636 | #include <stdlib.h>
|
---|
5637 |
|
---|
5638 | _ACEOF
|
---|
5639 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5640 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
5641 |
|
---|
5642 | else
|
---|
5643 | ac_cv_header_stdc=no
|
---|
5644 | fi
|
---|
5645 | rm -f conftest*
|
---|
5646 |
|
---|
5647 | fi
|
---|
5648 |
|
---|
5649 | if test $ac_cv_header_stdc = yes; then
|
---|
5650 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5651 | if test "$cross_compiling" = yes; then :
|
---|
5652 | :
|
---|
5653 | else
|
---|
5654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5655 | /* end confdefs.h. */
|
---|
5656 | #include <ctype.h>
|
---|
5657 | #include <stdlib.h>
|
---|
5658 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5659 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5660 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5661 | #else
|
---|
5662 | # define ISLOWER(c) \
|
---|
5663 | (('a' <= (c) && (c) <= 'i') \
|
---|
5664 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5665 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5666 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5667 | #endif
|
---|
5668 |
|
---|
5669 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5670 | int
|
---|
5671 | main ()
|
---|
5672 | {
|
---|
5673 | int i;
|
---|
5674 | for (i = 0; i < 256; i++)
|
---|
5675 | if (XOR (islower (i), ISLOWER (i))
|
---|
5676 | || toupper (i) != TOUPPER (i))
|
---|
5677 | return 2;
|
---|
5678 | return 0;
|
---|
5679 | }
|
---|
5680 | _ACEOF
|
---|
5681 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5682 |
|
---|
5683 | else
|
---|
5684 | ac_cv_header_stdc=no
|
---|
5685 | fi
|
---|
5686 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5687 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5688 | fi
|
---|
5689 |
|
---|
5690 | fi
|
---|
5691 | fi
|
---|
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
5693 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
5694 | if test $ac_cv_header_stdc = yes; then
|
---|
5695 |
|
---|
5696 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
5697 |
|
---|
5698 | fi
|
---|
5699 |
|
---|
5700 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
5701 | do :
|
---|
5702 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5703 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
5704 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5705 | cat >>confdefs.h <<_ACEOF
|
---|
5706 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5707 | _ACEOF
|
---|
5708 |
|
---|
5709 | fi
|
---|
5710 |
|
---|
5711 | done
|
---|
5712 |
|
---|
5713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5714 | /* end confdefs.h. */
|
---|
5715 | #include <stdio.h>
|
---|
5716 |
|
---|
5717 | _ACEOF
|
---|
5718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5719 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
5720 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
5721 |
|
---|
5722 | fi
|
---|
5723 | rm -f conftest*
|
---|
5724 |
|
---|
5725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5726 | /* end confdefs.h. */
|
---|
5727 | #include <stdio.h>
|
---|
5728 |
|
---|
5729 | _ACEOF
|
---|
5730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5731 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
5732 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
5733 |
|
---|
5734 | fi
|
---|
5735 | rm -f conftest*
|
---|
5736 |
|
---|
5737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5738 | /* end confdefs.h. */
|
---|
5739 | #include <sys/procfs.h>
|
---|
5740 |
|
---|
5741 | _ACEOF
|
---|
5742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5743 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
5744 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
5745 |
|
---|
5746 | fi
|
---|
5747 | rm -f conftest*
|
---|
5748 |
|
---|
5749 |
|
---|
5750 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5751 | # for constant arguments. Useless!
|
---|
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
5753 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
5754 | if ${ac_cv_working_alloca_h+:} false; then :
|
---|
5755 | $as_echo_n "(cached) " >&6
|
---|
5756 | else
|
---|
5757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5758 | /* end confdefs.h. */
|
---|
5759 | #include <alloca.h>
|
---|
5760 | int
|
---|
5761 | main ()
|
---|
5762 | {
|
---|
5763 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5764 | if (p) return 0;
|
---|
5765 | ;
|
---|
5766 | return 0;
|
---|
5767 | }
|
---|
5768 | _ACEOF
|
---|
5769 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5770 | ac_cv_working_alloca_h=yes
|
---|
5771 | else
|
---|
5772 | ac_cv_working_alloca_h=no
|
---|
5773 | fi
|
---|
5774 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5775 | conftest$ac_exeext conftest.$ac_ext
|
---|
5776 | fi
|
---|
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
5778 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
5779 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5780 |
|
---|
5781 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
5782 |
|
---|
5783 | fi
|
---|
5784 |
|
---|
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
5786 | $as_echo_n "checking for alloca... " >&6; }
|
---|
5787 | if ${ac_cv_func_alloca_works+:} false; then :
|
---|
5788 | $as_echo_n "(cached) " >&6
|
---|
5789 | else
|
---|
5790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5791 | /* end confdefs.h. */
|
---|
5792 | #ifdef __GNUC__
|
---|
5793 | # define alloca __builtin_alloca
|
---|
5794 | #else
|
---|
5795 | # ifdef _MSC_VER
|
---|
5796 | # include <malloc.h>
|
---|
5797 | # define alloca _alloca
|
---|
5798 | # else
|
---|
5799 | # ifdef HAVE_ALLOCA_H
|
---|
5800 | # include <alloca.h>
|
---|
5801 | # else
|
---|
5802 | # ifdef _AIX
|
---|
5803 | #pragma alloca
|
---|
5804 | # else
|
---|
5805 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
5806 | void *alloca (size_t);
|
---|
5807 | # endif
|
---|
5808 | # endif
|
---|
5809 | # endif
|
---|
5810 | # endif
|
---|
5811 | #endif
|
---|
5812 |
|
---|
5813 | int
|
---|
5814 | main ()
|
---|
5815 | {
|
---|
5816 | char *p = (char *) alloca (1);
|
---|
5817 | if (p) return 0;
|
---|
5818 | ;
|
---|
5819 | return 0;
|
---|
5820 | }
|
---|
5821 | _ACEOF
|
---|
5822 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5823 | ac_cv_func_alloca_works=yes
|
---|
5824 | else
|
---|
5825 | ac_cv_func_alloca_works=no
|
---|
5826 | fi
|
---|
5827 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5828 | conftest$ac_exeext conftest.$ac_ext
|
---|
5829 | fi
|
---|
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
5831 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
5832 |
|
---|
5833 | if test $ac_cv_func_alloca_works = yes; then
|
---|
5834 |
|
---|
5835 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
5836 |
|
---|
5837 | else
|
---|
5838 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
5839 | # that cause trouble. Some versions do not even contain alloca or
|
---|
5840 | # contain a buggy version. If you still want to use their alloca,
|
---|
5841 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
5842 |
|
---|
5843 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
5844 |
|
---|
5845 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
5846 |
|
---|
5847 |
|
---|
5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
5849 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
5850 | if ${ac_cv_os_cray+:} false; then :
|
---|
5851 | $as_echo_n "(cached) " >&6
|
---|
5852 | else
|
---|
5853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5854 | /* end confdefs.h. */
|
---|
5855 | #if defined CRAY && ! defined CRAY2
|
---|
5856 | webecray
|
---|
5857 | #else
|
---|
5858 | wenotbecray
|
---|
5859 | #endif
|
---|
5860 |
|
---|
5861 | _ACEOF
|
---|
5862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5863 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
5864 | ac_cv_os_cray=yes
|
---|
5865 | else
|
---|
5866 | ac_cv_os_cray=no
|
---|
5867 | fi
|
---|
5868 | rm -f conftest*
|
---|
5869 |
|
---|
5870 | fi
|
---|
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
5872 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
5873 | if test $ac_cv_os_cray = yes; then
|
---|
5874 | for ac_func in _getb67 GETB67 getb67; do
|
---|
5875 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
5876 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
5877 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
5878 |
|
---|
5879 | cat >>confdefs.h <<_ACEOF
|
---|
5880 | #define CRAY_STACKSEG_END $ac_func
|
---|
5881 | _ACEOF
|
---|
5882 |
|
---|
5883 | break
|
---|
5884 | fi
|
---|
5885 |
|
---|
5886 | done
|
---|
5887 | fi
|
---|
5888 |
|
---|
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
5890 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
5891 | if ${ac_cv_c_stack_direction+:} false; then :
|
---|
5892 | $as_echo_n "(cached) " >&6
|
---|
5893 | else
|
---|
5894 | if test "$cross_compiling" = yes; then :
|
---|
5895 | ac_cv_c_stack_direction=0
|
---|
5896 | else
|
---|
5897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5898 | /* end confdefs.h. */
|
---|
5899 | $ac_includes_default
|
---|
5900 | int
|
---|
5901 | find_stack_direction (int *addr, int depth)
|
---|
5902 | {
|
---|
5903 | int dir, dummy = 0;
|
---|
5904 | if (! addr)
|
---|
5905 | addr = &dummy;
|
---|
5906 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
|
---|
5907 | dir = depth ? find_stack_direction (addr, depth - 1) : 0;
|
---|
5908 | return dir + dummy;
|
---|
5909 | }
|
---|
5910 |
|
---|
5911 | int
|
---|
5912 | main (int argc, char **argv)
|
---|
5913 | {
|
---|
5914 | return find_stack_direction (0, argc + !argv + 20) < 0;
|
---|
5915 | }
|
---|
5916 | _ACEOF
|
---|
5917 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5918 | ac_cv_c_stack_direction=1
|
---|
5919 | else
|
---|
5920 | ac_cv_c_stack_direction=-1
|
---|
5921 | fi
|
---|
5922 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5923 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5924 | fi
|
---|
5925 |
|
---|
5926 | fi
|
---|
5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
5928 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
5929 | cat >>confdefs.h <<_ACEOF
|
---|
5930 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
5931 | _ACEOF
|
---|
5932 |
|
---|
5933 |
|
---|
5934 | fi
|
---|
5935 |
|
---|
5936 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
5938 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
5939 | if ${ac_cv_prog_gcc_traditional+:} false; then :
|
---|
5940 | $as_echo_n "(cached) " >&6
|
---|
5941 | else
|
---|
5942 | ac_pattern="Autoconf.*'x'"
|
---|
5943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5944 | /* end confdefs.h. */
|
---|
5945 | #include <sgtty.h>
|
---|
5946 | Autoconf TIOCGETP
|
---|
5947 | _ACEOF
|
---|
5948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5949 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5950 | ac_cv_prog_gcc_traditional=yes
|
---|
5951 | else
|
---|
5952 | ac_cv_prog_gcc_traditional=no
|
---|
5953 | fi
|
---|
5954 | rm -f conftest*
|
---|
5955 |
|
---|
5956 |
|
---|
5957 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
5958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5959 | /* end confdefs.h. */
|
---|
5960 | #include <termio.h>
|
---|
5961 | Autoconf TCGETA
|
---|
5962 | _ACEOF
|
---|
5963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5964 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
5965 | ac_cv_prog_gcc_traditional=yes
|
---|
5966 | fi
|
---|
5967 | rm -f conftest*
|
---|
5968 |
|
---|
5969 | fi
|
---|
5970 | fi
|
---|
5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
5972 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
5973 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
5974 | CC="$CC -traditional"
|
---|
5975 | fi
|
---|
5976 | fi
|
---|
5977 |
|
---|
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
5979 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
5980 | if ${ac_cv_type_signal+:} false; then :
|
---|
5981 | $as_echo_n "(cached) " >&6
|
---|
5982 | else
|
---|
5983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5984 | /* end confdefs.h. */
|
---|
5985 | #include <sys/types.h>
|
---|
5986 | #include <signal.h>
|
---|
5987 |
|
---|
5988 | int
|
---|
5989 | main ()
|
---|
5990 | {
|
---|
5991 | return *(signal (0, 0)) (0) == 1;
|
---|
5992 | ;
|
---|
5993 | return 0;
|
---|
5994 | }
|
---|
5995 | _ACEOF
|
---|
5996 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5997 | ac_cv_type_signal=int
|
---|
5998 | else
|
---|
5999 | ac_cv_type_signal=void
|
---|
6000 | fi
|
---|
6001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6002 | fi
|
---|
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
6004 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
6005 |
|
---|
6006 | cat >>confdefs.h <<_ACEOF
|
---|
6007 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
6008 | _ACEOF
|
---|
6009 |
|
---|
6010 |
|
---|
6011 | for ac_func in vprintf
|
---|
6012 | do :
|
---|
6013 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
6014 | if test "x$ac_cv_func_vprintf" = xyes; then :
|
---|
6015 | cat >>confdefs.h <<_ACEOF
|
---|
6016 | #define HAVE_VPRINTF 1
|
---|
6017 | _ACEOF
|
---|
6018 |
|
---|
6019 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
6020 | if test "x$ac_cv_func__doprnt" = xyes; then :
|
---|
6021 |
|
---|
6022 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
6023 |
|
---|
6024 | fi
|
---|
6025 |
|
---|
6026 | fi
|
---|
6027 | done
|
---|
6028 |
|
---|
6029 |
|
---|
6030 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
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 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
6035 | cat >>confdefs.h <<_ACEOF
|
---|
6036 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6037 | _ACEOF
|
---|
6038 |
|
---|
6039 | fi
|
---|
6040 | done
|
---|
6041 |
|
---|
6042 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
6043 | if test "x$ac_cv_func_ftruncate" = xyes; then :
|
---|
6044 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
6045 |
|
---|
6046 | else
|
---|
6047 | case " $LIBOBJS " in
|
---|
6048 | *" ftruncate.$ac_objext "* ) ;;
|
---|
6049 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
6050 | ;;
|
---|
6051 | esac
|
---|
6052 |
|
---|
6053 | fi
|
---|
6054 |
|
---|
6055 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
6056 | if test "x$ac_cv_func_strstr" = xyes; then :
|
---|
6057 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
6058 |
|
---|
6059 | else
|
---|
6060 | case " $LIBOBJS " in
|
---|
6061 | *" strstr.$ac_objext "* ) ;;
|
---|
6062 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
6063 | ;;
|
---|
6064 | esac
|
---|
6065 |
|
---|
6066 | fi
|
---|
6067 |
|
---|
6068 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
6069 | if test "x$ac_cv_func_strcasecmp" = xyes; then :
|
---|
6070 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
6071 |
|
---|
6072 | else
|
---|
6073 | case " $LIBOBJS " in
|
---|
6074 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
6075 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
6076 | ;;
|
---|
6077 | esac
|
---|
6078 |
|
---|
6079 | fi
|
---|
6080 |
|
---|
6081 |
|
---|
6082 |
|
---|
6083 |
|
---|
6084 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
6085 | if test "x$ac_cv_func_textdomain" = xyes; then :
|
---|
6086 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
6087 |
|
---|
6088 | fi
|
---|
6089 |
|
---|
6090 |
|
---|
6091 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
6092 | # a non-standard Path
|
---|
6093 | # is there a better way to do this??
|
---|
6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
6095 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
6096 | # set defaults
|
---|
6097 | JNIINC=""
|
---|
6098 | JNIPREFIX="lib"
|
---|
6099 | JNISUFFIX="so"
|
---|
6100 | JNICFLAGS=""
|
---|
6101 | JNILDFLAGS="-shared"
|
---|
6102 |
|
---|
6103 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
6105 | $as_echo "Darwin" >&6; }
|
---|
6106 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
6107 | JNISUFFIX="jnilib"
|
---|
6108 | JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
6109 | fi
|
---|
6110 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
6112 | $as_echo "Solaris" >&6; }
|
---|
6113 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
6114 | fi
|
---|
6115 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
6117 | $as_echo "Linux" >&6; }
|
---|
6118 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
6119 | fi
|
---|
6120 |
|
---|
6121 | if test "x$crossOS" != "x" ; then
|
---|
6122 | if test "$crossOS" = "windows" ; then
|
---|
6123 | JNIINC="-I../../java-windows-include/win32 -I../../java-windows-include "
|
---|
6124 | JNICFLAGS="-shared -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at"
|
---|
6125 | JNIPREFIX=""
|
---|
6126 | JNISUFFIX="dll"
|
---|
6127 | fi
|
---|
6128 | fi
|
---|
6129 |
|
---|
6130 |
|
---|
6131 |
|
---|
6132 |
|
---|
6133 |
|
---|
6134 |
|
---|
6135 |
|
---|
6136 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6137 | # ---------------------------------------------------------------------------
|
---|
6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
6139 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
6140 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6142 | $as_echo "yes" >&6; }
|
---|
6143 | case " $LIBOBJS " in
|
---|
6144 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6145 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
6146 | ;;
|
---|
6147 | esac
|
---|
6148 |
|
---|
6149 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
6150 |
|
---|
6151 | else
|
---|
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6153 | $as_echo "no" >&6; }
|
---|
6154 | for ac_func in valloc
|
---|
6155 | do :
|
---|
6156 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
6157 | if test "x$ac_cv_func_valloc" = xyes; then :
|
---|
6158 | cat >>confdefs.h <<_ACEOF
|
---|
6159 | #define HAVE_VALLOC 1
|
---|
6160 | _ACEOF
|
---|
6161 |
|
---|
6162 | fi
|
---|
6163 | done
|
---|
6164 |
|
---|
6165 | fi
|
---|
6166 |
|
---|
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
6168 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
6169 |
|
---|
6170 | # Check whether --with-dmalloc was given.
|
---|
6171 | if test "${with_dmalloc+set}" = set; then :
|
---|
6172 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6174 | $as_echo "yes" >&6; }
|
---|
6175 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
6176 |
|
---|
6177 | LIBS="$LIBS -ldmalloc"
|
---|
6178 | LDFLAGS="$LDFLAGS -g"
|
---|
6179 | else
|
---|
6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6181 | $as_echo "no" >&6; }
|
---|
6182 | fi
|
---|
6183 | else
|
---|
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6185 | $as_echo "no" >&6; }
|
---|
6186 | fi
|
---|
6187 |
|
---|
6188 |
|
---|
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
6190 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
6191 |
|
---|
6192 | # Check whether --with-regex was given.
|
---|
6193 | if test "${with_regex+set}" = set; then :
|
---|
6194 | withval=$with_regex; if test "$withval" = yes; then
|
---|
6195 | ac_with_regex=1
|
---|
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
6197 | $as_echo "regex" >&6; }
|
---|
6198 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
6199 |
|
---|
6200 | case " $LIBOBJS " in
|
---|
6201 | *" regex.$ac_objext "* ) ;;
|
---|
6202 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6203 | ;;
|
---|
6204 | esac
|
---|
6205 |
|
---|
6206 | fi
|
---|
6207 | fi
|
---|
6208 |
|
---|
6209 | if test -z "$ac_with_regex"; then
|
---|
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
6211 | $as_echo "rx" >&6; }
|
---|
6212 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
6213 | if test "x$ac_cv_func_re_rx_search" = xyes; then :
|
---|
6214 |
|
---|
6215 | else
|
---|
6216 | # The cast to long int works around a bug in the HP C Compiler
|
---|
6217 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
6218 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
6219 | # This bug is HP SR number 8606223364.
|
---|
6220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
|
---|
6221 | $as_echo_n "checking size of unsigned char *... " >&6; }
|
---|
6222 | if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
|
---|
6223 | $as_echo_n "(cached) " >&6
|
---|
6224 | else
|
---|
6225 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then :
|
---|
6226 |
|
---|
6227 | else
|
---|
6228 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
6229 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
6230 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
6231 | as_fn_error 77 "cannot compute sizeof (unsigned char *)
|
---|
6232 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
6233 | else
|
---|
6234 | ac_cv_sizeof_unsigned_char_p=0
|
---|
6235 | fi
|
---|
6236 | fi
|
---|
6237 |
|
---|
6238 | fi
|
---|
6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
6240 | $as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
|
---|
6241 |
|
---|
6242 |
|
---|
6243 |
|
---|
6244 | cat >>confdefs.h <<_ACEOF
|
---|
6245 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
6246 | _ACEOF
|
---|
6247 |
|
---|
6248 |
|
---|
6249 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
6250 | then
|
---|
6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I'm forcing you to use regex because I can't
|
---|
6252 | find a local rx library and the one included with this
|
---|
6253 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
6254 | $as_echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
6255 | find a local rx library and the one included with this
|
---|
6256 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
6257 | case " $LIBOBJS " in
|
---|
6258 | *" regex.$ac_objext "* ) ;;
|
---|
6259 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6260 | ;;
|
---|
6261 | esac
|
---|
6262 |
|
---|
6263 | else
|
---|
6264 | case " $LIBOBJS " in
|
---|
6265 | *" rx.$ac_objext "* ) ;;
|
---|
6266 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
6267 | ;;
|
---|
6268 | esac
|
---|
6269 |
|
---|
6270 | fi
|
---|
6271 |
|
---|
6272 | fi
|
---|
6273 |
|
---|
6274 | fi
|
---|
6275 |
|
---|
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU readline requested" >&5
|
---|
6277 | $as_echo_n "checking whether GNU readline requested... " >&6; }
|
---|
6278 |
|
---|
6279 | # Check whether --with-gnu_readline was given.
|
---|
6280 | if test "${with_gnu_readline+set}" = set; then :
|
---|
6281 | withval=$with_gnu_readline; if test "$withval" = yes; then
|
---|
6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6283 | $as_echo "yes" >&6; }
|
---|
6284 | ac_with_gnu_readline=1
|
---|
6285 | else
|
---|
6286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6287 | $as_echo "no" >&6; }
|
---|
6288 | fi
|
---|
6289 | else
|
---|
6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6291 | $as_echo "no" >&6; }
|
---|
6292 | fi
|
---|
6293 |
|
---|
6294 |
|
---|
6295 | if test -n "$ac_with_gnu_readline"; then
|
---|
6296 | ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
|
---|
6297 | if test "x$ac_cv_header_readline_readline_h" = xyes; then :
|
---|
6298 | ac_mg_readline_header_found=1
|
---|
6299 | else
|
---|
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline headers; configuring without \
|
---|
6301 | GNU readline support" >&5
|
---|
6302 | $as_echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
6303 | GNU readline support" >&2;}
|
---|
6304 | fi
|
---|
6305 |
|
---|
6306 |
|
---|
6307 | if test -n "$ac_mg_readline_header_found"; then
|
---|
6308 | # first check whether we can find the readline library itself
|
---|
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
|
---|
6310 | $as_echo_n "checking for main in -lreadline... " >&6; }
|
---|
6311 | if ${ac_cv_lib_readline_main+:} false; then :
|
---|
6312 | $as_echo_n "(cached) " >&6
|
---|
6313 | else
|
---|
6314 | ac_check_lib_save_LIBS=$LIBS
|
---|
6315 | LIBS="-lreadline $LIBS"
|
---|
6316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6317 | /* end confdefs.h. */
|
---|
6318 |
|
---|
6319 |
|
---|
6320 | int
|
---|
6321 | main ()
|
---|
6322 | {
|
---|
6323 | return main ();
|
---|
6324 | ;
|
---|
6325 | return 0;
|
---|
6326 | }
|
---|
6327 | _ACEOF
|
---|
6328 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6329 | ac_cv_lib_readline_main=yes
|
---|
6330 | else
|
---|
6331 | ac_cv_lib_readline_main=no
|
---|
6332 | fi
|
---|
6333 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6334 | conftest$ac_exeext conftest.$ac_ext
|
---|
6335 | LIBS=$ac_check_lib_save_LIBS
|
---|
6336 | fi
|
---|
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
|
---|
6338 | $as_echo "$ac_cv_lib_readline_main" >&6; }
|
---|
6339 | if test "x$ac_cv_lib_readline_main" = xyes; then :
|
---|
6340 | ac_mg_readline_lib_found=1
|
---|
6341 | $as_echo "#define WITH_GNU_READLINE 1" >>confdefs.h
|
---|
6342 |
|
---|
6343 | LIBS="$LIBS -lreadline"
|
---|
6344 | else
|
---|
6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find GNU readline library; configuring without \
|
---|
6346 | GNU readline support" >&5
|
---|
6347 | $as_echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
6348 | GNU readline support" >&2;}
|
---|
6349 | fi
|
---|
6350 |
|
---|
6351 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
6352 | # on some systems, readline needs curses. It is difficult to
|
---|
6353 | # determine whether this is necessary on the current system,
|
---|
6354 | # since other undefined symbols can be turned up by an
|
---|
6355 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
6356 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
6357 | # we just bung it on and hope for the best.
|
---|
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
|
---|
6359 | $as_echo_n "checking for main in -lcurses... " >&6; }
|
---|
6360 | if ${ac_cv_lib_curses_main+:} false; then :
|
---|
6361 | $as_echo_n "(cached) " >&6
|
---|
6362 | else
|
---|
6363 | ac_check_lib_save_LIBS=$LIBS
|
---|
6364 | LIBS="-lcurses $LIBS"
|
---|
6365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6366 | /* end confdefs.h. */
|
---|
6367 |
|
---|
6368 |
|
---|
6369 | int
|
---|
6370 | main ()
|
---|
6371 | {
|
---|
6372 | return main ();
|
---|
6373 | ;
|
---|
6374 | return 0;
|
---|
6375 | }
|
---|
6376 | _ACEOF
|
---|
6377 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6378 | ac_cv_lib_curses_main=yes
|
---|
6379 | else
|
---|
6380 | ac_cv_lib_curses_main=no
|
---|
6381 | fi
|
---|
6382 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6383 | conftest$ac_exeext conftest.$ac_ext
|
---|
6384 | LIBS=$ac_check_lib_save_LIBS
|
---|
6385 | fi
|
---|
6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
|
---|
6387 | $as_echo "$ac_cv_lib_curses_main" >&6; }
|
---|
6388 | if test "x$ac_cv_lib_curses_main" = xyes; then :
|
---|
6389 | LIBS="$LIBS -lcurses"
|
---|
6390 | fi
|
---|
6391 |
|
---|
6392 | fi
|
---|
6393 | fi
|
---|
6394 | fi
|
---|
6395 |
|
---|
6396 |
|
---|
6397 | # text for endianness
|
---|
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
6399 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
6400 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
6401 | $as_echo_n "(cached) " >&6
|
---|
6402 | else
|
---|
6403 | ac_cv_c_bigendian=unknown
|
---|
6404 | # See if we're dealing with a universal compiler.
|
---|
6405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6406 | /* end confdefs.h. */
|
---|
6407 | #ifndef __APPLE_CC__
|
---|
6408 | not a universal capable compiler
|
---|
6409 | #endif
|
---|
6410 | typedef int dummy;
|
---|
6411 |
|
---|
6412 | _ACEOF
|
---|
6413 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6414 |
|
---|
6415 | # Check for potential -arch flags. It is not universal unless
|
---|
6416 | # there are at least two -arch flags with different values.
|
---|
6417 | ac_arch=
|
---|
6418 | ac_prev=
|
---|
6419 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
6420 | if test -n "$ac_prev"; then
|
---|
6421 | case $ac_word in
|
---|
6422 | i?86 | x86_64 | ppc | ppc64)
|
---|
6423 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
6424 | ac_arch=$ac_word
|
---|
6425 | else
|
---|
6426 | ac_cv_c_bigendian=universal
|
---|
6427 | break
|
---|
6428 | fi
|
---|
6429 | ;;
|
---|
6430 | esac
|
---|
6431 | ac_prev=
|
---|
6432 | elif test "x$ac_word" = "x-arch"; then
|
---|
6433 | ac_prev=arch
|
---|
6434 | fi
|
---|
6435 | done
|
---|
6436 | fi
|
---|
6437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6438 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6439 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
6440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6441 | /* end confdefs.h. */
|
---|
6442 | #include <sys/types.h>
|
---|
6443 | #include <sys/param.h>
|
---|
6444 |
|
---|
6445 | int
|
---|
6446 | main ()
|
---|
6447 | {
|
---|
6448 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
6449 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
6450 | && LITTLE_ENDIAN)
|
---|
6451 | bogus endian macros
|
---|
6452 | #endif
|
---|
6453 |
|
---|
6454 | ;
|
---|
6455 | return 0;
|
---|
6456 | }
|
---|
6457 | _ACEOF
|
---|
6458 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6459 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
6460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6461 | /* end confdefs.h. */
|
---|
6462 | #include <sys/types.h>
|
---|
6463 | #include <sys/param.h>
|
---|
6464 |
|
---|
6465 | int
|
---|
6466 | main ()
|
---|
6467 | {
|
---|
6468 | #if BYTE_ORDER != 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 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
6487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6488 | /* end confdefs.h. */
|
---|
6489 | #include <limits.h>
|
---|
6490 |
|
---|
6491 | int
|
---|
6492 | main ()
|
---|
6493 | {
|
---|
6494 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
6495 | bogus endian macros
|
---|
6496 | #endif
|
---|
6497 |
|
---|
6498 | ;
|
---|
6499 | return 0;
|
---|
6500 | }
|
---|
6501 | _ACEOF
|
---|
6502 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6503 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
6504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6505 | /* end confdefs.h. */
|
---|
6506 | #include <limits.h>
|
---|
6507 |
|
---|
6508 | int
|
---|
6509 | main ()
|
---|
6510 | {
|
---|
6511 | #ifndef _BIG_ENDIAN
|
---|
6512 | not big endian
|
---|
6513 | #endif
|
---|
6514 |
|
---|
6515 | ;
|
---|
6516 | return 0;
|
---|
6517 | }
|
---|
6518 | _ACEOF
|
---|
6519 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6520 | ac_cv_c_bigendian=yes
|
---|
6521 | else
|
---|
6522 | ac_cv_c_bigendian=no
|
---|
6523 | fi
|
---|
6524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6525 | fi
|
---|
6526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6527 | fi
|
---|
6528 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6529 | # Compile a test program.
|
---|
6530 | if test "$cross_compiling" = yes; then :
|
---|
6531 | # Try to guess by grepping values from an object file.
|
---|
6532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6533 | /* end confdefs.h. */
|
---|
6534 | short int ascii_mm[] =
|
---|
6535 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
6536 | short int ascii_ii[] =
|
---|
6537 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
6538 | int use_ascii (int i) {
|
---|
6539 | return ascii_mm[i] + ascii_ii[i];
|
---|
6540 | }
|
---|
6541 | short int ebcdic_ii[] =
|
---|
6542 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
6543 | short int ebcdic_mm[] =
|
---|
6544 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
6545 | int use_ebcdic (int i) {
|
---|
6546 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
6547 | }
|
---|
6548 | extern int foo;
|
---|
6549 |
|
---|
6550 | int
|
---|
6551 | main ()
|
---|
6552 | {
|
---|
6553 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
6554 | ;
|
---|
6555 | return 0;
|
---|
6556 | }
|
---|
6557 | _ACEOF
|
---|
6558 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6559 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
6560 | ac_cv_c_bigendian=yes
|
---|
6561 | fi
|
---|
6562 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
6563 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
6564 | ac_cv_c_bigendian=no
|
---|
6565 | else
|
---|
6566 | # finding both strings is unlikely to happen, but who knows?
|
---|
6567 | ac_cv_c_bigendian=unknown
|
---|
6568 | fi
|
---|
6569 | fi
|
---|
6570 | fi
|
---|
6571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6572 | else
|
---|
6573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6574 | /* end confdefs.h. */
|
---|
6575 | $ac_includes_default
|
---|
6576 | int
|
---|
6577 | main ()
|
---|
6578 | {
|
---|
6579 |
|
---|
6580 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
6581 | union
|
---|
6582 | {
|
---|
6583 | long int l;
|
---|
6584 | char c[sizeof (long int)];
|
---|
6585 | } u;
|
---|
6586 | u.l = 1;
|
---|
6587 | return u.c[sizeof (long int) - 1] == 1;
|
---|
6588 |
|
---|
6589 | ;
|
---|
6590 | return 0;
|
---|
6591 | }
|
---|
6592 | _ACEOF
|
---|
6593 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6594 | ac_cv_c_bigendian=no
|
---|
6595 | else
|
---|
6596 | ac_cv_c_bigendian=yes
|
---|
6597 | fi
|
---|
6598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6599 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6600 | fi
|
---|
6601 |
|
---|
6602 | fi
|
---|
6603 | fi
|
---|
6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
6605 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
6606 | case $ac_cv_c_bigendian in #(
|
---|
6607 | yes)
|
---|
6608 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
6609 | ;; #(
|
---|
6610 | no)
|
---|
6611 | ;; #(
|
---|
6612 | universal)
|
---|
6613 |
|
---|
6614 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
6615 |
|
---|
6616 | ;; #(
|
---|
6617 | *)
|
---|
6618 | as_fn_error $? "unknown endianness
|
---|
6619 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
6620 | esac
|
---|
6621 |
|
---|
6622 |
|
---|
6623 | # ---------------------------------------------------------------------------
|
---|
6624 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6625 | case " $LIBOBJS " in
|
---|
6626 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6627 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
6628 | ;;
|
---|
6629 | esac
|
---|
6630 |
|
---|
6631 | case " $LIBOBJS " in
|
---|
6632 | *" error.$ac_objext "* ) ;;
|
---|
6633 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6634 | ;;
|
---|
6635 | esac
|
---|
6636 |
|
---|
6637 | fi
|
---|
6638 |
|
---|
6639 |
|
---|
6640 | # ---------------------------------------------------------------------------
|
---|
6641 | # see if the user wants to override use of long long
|
---|
6642 | # Check whether --enable-override-longlong was given.
|
---|
6643 | if test "${enable_override_longlong+set}" = set; then :
|
---|
6644 | enableval=$enable_override_longlong; $as_echo "#define DISABLE_LONG_LONG 1" >>confdefs.h
|
---|
6645 |
|
---|
6646 | fi
|
---|
6647 |
|
---|
6648 |
|
---|
6649 |
|
---|
6650 | # ---------------------------------------------------------------------------
|
---|
6651 |
|
---|
6652 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
6653 |
|
---|
6654 | ac_config_commands="$ac_config_commands default"
|
---|
6655 |
|
---|
6656 | cat >confcache <<\_ACEOF
|
---|
6657 | # This file is a shell script that caches the results of configure
|
---|
6658 | # tests run on this system so they can be shared between configure
|
---|
6659 | # scripts and configure runs, see configure's option --config-cache.
|
---|
6660 | # It is not useful on other systems. If it contains results you don't
|
---|
6661 | # want to keep, you may remove or edit it.
|
---|
6662 | #
|
---|
6663 | # config.status only pays attention to the cache file if you give it
|
---|
6664 | # the --recheck option to rerun configure.
|
---|
6665 | #
|
---|
6666 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
6667 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
6668 | # following values.
|
---|
6669 |
|
---|
6670 | _ACEOF
|
---|
6671 |
|
---|
6672 | # The following way of writing the cache mishandles newlines in values,
|
---|
6673 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6674 | # So, we kill variables containing newlines.
|
---|
6675 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6676 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6677 | (
|
---|
6678 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
6679 | eval ac_val=\$$ac_var
|
---|
6680 | case $ac_val in #(
|
---|
6681 | *${as_nl}*)
|
---|
6682 | case $ac_var in #(
|
---|
6683 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
6684 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
6685 | esac
|
---|
6686 | case $ac_var in #(
|
---|
6687 | _ | IFS | as_nl) ;; #(
|
---|
6688 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
6689 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
6690 | esac ;;
|
---|
6691 | esac
|
---|
6692 | done
|
---|
6693 |
|
---|
6694 | (set) 2>&1 |
|
---|
6695 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
6696 | *${as_nl}ac_space=\ *)
|
---|
6697 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
6698 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
6699 | sed -n \
|
---|
6700 | "s/'/'\\\\''/g;
|
---|
6701 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
6702 | ;; #(
|
---|
6703 | *)
|
---|
6704 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6705 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
6706 | ;;
|
---|
6707 | esac |
|
---|
6708 | sort
|
---|
6709 | ) |
|
---|
6710 | sed '
|
---|
6711 | /^ac_cv_env_/b end
|
---|
6712 | t clear
|
---|
6713 | :clear
|
---|
6714 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
6715 | t end
|
---|
6716 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
6717 | :end' >>confcache
|
---|
6718 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
6719 | if test -w "$cache_file"; then
|
---|
6720 | if test "x$cache_file" != "x/dev/null"; then
|
---|
6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
6722 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
6723 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
6724 | cat confcache >"$cache_file"
|
---|
6725 | else
|
---|
6726 | case $cache_file in #(
|
---|
6727 | */* | ?:*)
|
---|
6728 | mv -f confcache "$cache_file"$$ &&
|
---|
6729 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
6730 | *)
|
---|
6731 | mv -f confcache "$cache_file" ;;
|
---|
6732 | esac
|
---|
6733 | fi
|
---|
6734 | fi
|
---|
6735 | else
|
---|
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
6737 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
6738 | fi
|
---|
6739 | fi
|
---|
6740 | rm -f confcache
|
---|
6741 |
|
---|
6742 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6743 | # Let make expand exec_prefix.
|
---|
6744 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6745 |
|
---|
6746 | DEFS=-DHAVE_CONFIG_H
|
---|
6747 |
|
---|
6748 | ac_libobjs=
|
---|
6749 | ac_ltlibobjs=
|
---|
6750 | U=
|
---|
6751 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
6752 | # 1. Remove the extension, and $U if already installed.
|
---|
6753 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
6754 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
6755 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
6756 | # will be set to the directory where LIBOBJS objects are built.
|
---|
6757 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
6758 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
6759 | done
|
---|
6760 | LIBOBJS=$ac_libobjs
|
---|
6761 |
|
---|
6762 | LTLIBOBJS=$ac_ltlibobjs
|
---|
6763 |
|
---|
6764 |
|
---|
6765 |
|
---|
6766 |
|
---|
6767 | : "${CONFIG_STATUS=./config.status}"
|
---|
6768 | ac_write_fail=0
|
---|
6769 | ac_clean_files_save=$ac_clean_files
|
---|
6770 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
6772 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
6773 | as_write_fail=0
|
---|
6774 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
6775 | #! $SHELL
|
---|
6776 | # Generated by $as_me.
|
---|
6777 | # Run this file to recreate the current configuration.
|
---|
6778 | # Compiler output produced by configure, useful for debugging
|
---|
6779 | # configure, is in config.log if it exists.
|
---|
6780 |
|
---|
6781 | debug=false
|
---|
6782 | ac_cs_recheck=false
|
---|
6783 | ac_cs_silent=false
|
---|
6784 |
|
---|
6785 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
6786 | export SHELL
|
---|
6787 | _ASEOF
|
---|
6788 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
6789 | ## -------------------- ##
|
---|
6790 | ## M4sh Initialization. ##
|
---|
6791 | ## -------------------- ##
|
---|
6792 |
|
---|
6793 | # Be more Bourne compatible
|
---|
6794 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
6795 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
6796 | emulate sh
|
---|
6797 | NULLCMD=:
|
---|
6798 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
6799 | # is contrary to our usage. Disable this feature.
|
---|
6800 | alias -g '${1+"$@"}'='"$@"'
|
---|
6801 | setopt NO_GLOB_SUBST
|
---|
6802 | else
|
---|
6803 | case `(set -o) 2>/dev/null` in #(
|
---|
6804 | *posix*) :
|
---|
6805 | set -o posix ;; #(
|
---|
6806 | *) :
|
---|
6807 | ;;
|
---|
6808 | esac
|
---|
6809 | fi
|
---|
6810 |
|
---|
6811 |
|
---|
6812 | as_nl='
|
---|
6813 | '
|
---|
6814 | export as_nl
|
---|
6815 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
6816 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
6817 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6818 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
6819 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
6820 | # but without wasting forks for bash or zsh.
|
---|
6821 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
6822 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6823 | as_echo='print -r --'
|
---|
6824 | as_echo_n='print -rn --'
|
---|
6825 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
6826 | as_echo='printf %s\n'
|
---|
6827 | as_echo_n='printf %s'
|
---|
6828 | else
|
---|
6829 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
6830 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
6831 | as_echo_n='/usr/ucb/echo -n'
|
---|
6832 | else
|
---|
6833 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
6834 | as_echo_n_body='eval
|
---|
6835 | arg=$1;
|
---|
6836 | case $arg in #(
|
---|
6837 | *"$as_nl"*)
|
---|
6838 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
6839 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
6840 | esac;
|
---|
6841 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
6842 | '
|
---|
6843 | export as_echo_n_body
|
---|
6844 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
6845 | fi
|
---|
6846 | export as_echo_body
|
---|
6847 | as_echo='sh -c $as_echo_body as_echo'
|
---|
6848 | fi
|
---|
6849 |
|
---|
6850 | # The user is always right.
|
---|
6851 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
6852 | PATH_SEPARATOR=:
|
---|
6853 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
6854 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
6855 | PATH_SEPARATOR=';'
|
---|
6856 | }
|
---|
6857 | fi
|
---|
6858 |
|
---|
6859 |
|
---|
6860 | # IFS
|
---|
6861 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
6862 | # there to prevent editors from complaining about space-tab.
|
---|
6863 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
6864 | # splitting by setting IFS to empty value.)
|
---|
6865 | IFS=" "" $as_nl"
|
---|
6866 |
|
---|
6867 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
6868 | as_myself=
|
---|
6869 | case $0 in #((
|
---|
6870 | *[\\/]* ) as_myself=$0 ;;
|
---|
6871 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6872 | for as_dir in $PATH
|
---|
6873 | do
|
---|
6874 | IFS=$as_save_IFS
|
---|
6875 | test -z "$as_dir" && as_dir=.
|
---|
6876 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
6877 | done
|
---|
6878 | IFS=$as_save_IFS
|
---|
6879 |
|
---|
6880 | ;;
|
---|
6881 | esac
|
---|
6882 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
6883 | # in which case we are not to be found in the path.
|
---|
6884 | if test "x$as_myself" = x; then
|
---|
6885 | as_myself=$0
|
---|
6886 | fi
|
---|
6887 | if test ! -f "$as_myself"; then
|
---|
6888 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
6889 | exit 1
|
---|
6890 | fi
|
---|
6891 |
|
---|
6892 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
6893 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
6894 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
6895 | # trigger a bug in pdksh 5.2.14.
|
---|
6896 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
6897 | do eval test x\${$as_var+set} = xset \
|
---|
6898 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
6899 | done
|
---|
6900 | PS1='$ '
|
---|
6901 | PS2='> '
|
---|
6902 | PS4='+ '
|
---|
6903 |
|
---|
6904 | # NLS nuisances.
|
---|
6905 | LC_ALL=C
|
---|
6906 | export LC_ALL
|
---|
6907 | LANGUAGE=C
|
---|
6908 | export LANGUAGE
|
---|
6909 |
|
---|
6910 | # CDPATH.
|
---|
6911 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
6912 |
|
---|
6913 |
|
---|
6914 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
6915 | # ----------------------------------------
|
---|
6916 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
6917 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
6918 | # script with STATUS, using 1 if that was 0.
|
---|
6919 | as_fn_error ()
|
---|
6920 | {
|
---|
6921 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
6922 | if test "$4"; then
|
---|
6923 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
6924 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
6925 | fi
|
---|
6926 | $as_echo "$as_me: error: $2" >&2
|
---|
6927 | as_fn_exit $as_status
|
---|
6928 | } # as_fn_error
|
---|
6929 |
|
---|
6930 |
|
---|
6931 | # as_fn_set_status STATUS
|
---|
6932 | # -----------------------
|
---|
6933 | # Set $? to STATUS, without forking.
|
---|
6934 | as_fn_set_status ()
|
---|
6935 | {
|
---|
6936 | return $1
|
---|
6937 | } # as_fn_set_status
|
---|
6938 |
|
---|
6939 | # as_fn_exit STATUS
|
---|
6940 | # -----------------
|
---|
6941 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
6942 | as_fn_exit ()
|
---|
6943 | {
|
---|
6944 | set +e
|
---|
6945 | as_fn_set_status $1
|
---|
6946 | exit $1
|
---|
6947 | } # as_fn_exit
|
---|
6948 |
|
---|
6949 | # as_fn_unset VAR
|
---|
6950 | # ---------------
|
---|
6951 | # Portably unset VAR.
|
---|
6952 | as_fn_unset ()
|
---|
6953 | {
|
---|
6954 | { eval $1=; unset $1;}
|
---|
6955 | }
|
---|
6956 | as_unset=as_fn_unset
|
---|
6957 | # as_fn_append VAR VALUE
|
---|
6958 | # ----------------------
|
---|
6959 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
6960 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
6961 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
6962 | # implementations.
|
---|
6963 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
6964 | eval 'as_fn_append ()
|
---|
6965 | {
|
---|
6966 | eval $1+=\$2
|
---|
6967 | }'
|
---|
6968 | else
|
---|
6969 | as_fn_append ()
|
---|
6970 | {
|
---|
6971 | eval $1=\$$1\$2
|
---|
6972 | }
|
---|
6973 | fi # as_fn_append
|
---|
6974 |
|
---|
6975 | # as_fn_arith ARG...
|
---|
6976 | # ------------------
|
---|
6977 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
6978 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
6979 | # must be portable across $(()) and expr.
|
---|
6980 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
6981 | eval 'as_fn_arith ()
|
---|
6982 | {
|
---|
6983 | as_val=$(( $* ))
|
---|
6984 | }'
|
---|
6985 | else
|
---|
6986 | as_fn_arith ()
|
---|
6987 | {
|
---|
6988 | as_val=`expr "$@" || test $? -eq 1`
|
---|
6989 | }
|
---|
6990 | fi # as_fn_arith
|
---|
6991 |
|
---|
6992 |
|
---|
6993 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
6994 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
6995 | as_expr=expr
|
---|
6996 | else
|
---|
6997 | as_expr=false
|
---|
6998 | fi
|
---|
6999 |
|
---|
7000 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
7001 | as_basename=basename
|
---|
7002 | else
|
---|
7003 | as_basename=false
|
---|
7004 | fi
|
---|
7005 |
|
---|
7006 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
7007 | as_dirname=dirname
|
---|
7008 | else
|
---|
7009 | as_dirname=false
|
---|
7010 | fi
|
---|
7011 |
|
---|
7012 | as_me=`$as_basename -- "$0" ||
|
---|
7013 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7014 | X"$0" : 'X\(//\)$' \| \
|
---|
7015 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7016 | $as_echo X/"$0" |
|
---|
7017 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
7018 | s//\1/
|
---|
7019 | q
|
---|
7020 | }
|
---|
7021 | /^X\/\(\/\/\)$/{
|
---|
7022 | s//\1/
|
---|
7023 | q
|
---|
7024 | }
|
---|
7025 | /^X\/\(\/\).*/{
|
---|
7026 | s//\1/
|
---|
7027 | q
|
---|
7028 | }
|
---|
7029 | s/.*/./; q'`
|
---|
7030 |
|
---|
7031 | # Avoid depending upon Character Ranges.
|
---|
7032 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7033 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7034 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7035 | as_cr_digits='0123456789'
|
---|
7036 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7037 |
|
---|
7038 | ECHO_C= ECHO_N= ECHO_T=
|
---|
7039 | case `echo -n x` in #(((((
|
---|
7040 | -n*)
|
---|
7041 | case `echo 'xy\c'` in
|
---|
7042 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
7043 | xy) ECHO_C='\c';;
|
---|
7044 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
7045 | ECHO_T=' ';;
|
---|
7046 | esac;;
|
---|
7047 | *)
|
---|
7048 | ECHO_N='-n';;
|
---|
7049 | esac
|
---|
7050 |
|
---|
7051 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7052 | if test -d conf$$.dir; then
|
---|
7053 | rm -f conf$$.dir/conf$$.file
|
---|
7054 | else
|
---|
7055 | rm -f conf$$.dir
|
---|
7056 | mkdir conf$$.dir 2>/dev/null
|
---|
7057 | fi
|
---|
7058 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
7059 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7060 | as_ln_s='ln -s'
|
---|
7061 | # ... but there are two gotchas:
|
---|
7062 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7063 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7064 | # In both cases, we have to default to `cp -pR'.
|
---|
7065 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7066 | as_ln_s='cp -pR'
|
---|
7067 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7068 | as_ln_s=ln
|
---|
7069 | else
|
---|
7070 | as_ln_s='cp -pR'
|
---|
7071 | fi
|
---|
7072 | else
|
---|
7073 | as_ln_s='cp -pR'
|
---|
7074 | fi
|
---|
7075 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7076 | rmdir conf$$.dir 2>/dev/null
|
---|
7077 |
|
---|
7078 |
|
---|
7079 | # as_fn_mkdir_p
|
---|
7080 | # -------------
|
---|
7081 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
7082 | as_fn_mkdir_p ()
|
---|
7083 | {
|
---|
7084 |
|
---|
7085 | case $as_dir in #(
|
---|
7086 | -*) as_dir=./$as_dir;;
|
---|
7087 | esac
|
---|
7088 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
7089 | as_dirs=
|
---|
7090 | while :; do
|
---|
7091 | case $as_dir in #(
|
---|
7092 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
7093 | *) as_qdir=$as_dir;;
|
---|
7094 | esac
|
---|
7095 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7096 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7097 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7098 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7099 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7100 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7101 | $as_echo X"$as_dir" |
|
---|
7102 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7103 | s//\1/
|
---|
7104 | q
|
---|
7105 | }
|
---|
7106 | /^X\(\/\/\)[^/].*/{
|
---|
7107 | s//\1/
|
---|
7108 | q
|
---|
7109 | }
|
---|
7110 | /^X\(\/\/\)$/{
|
---|
7111 | s//\1/
|
---|
7112 | q
|
---|
7113 | }
|
---|
7114 | /^X\(\/\).*/{
|
---|
7115 | s//\1/
|
---|
7116 | q
|
---|
7117 | }
|
---|
7118 | s/.*/./; q'`
|
---|
7119 | test -d "$as_dir" && break
|
---|
7120 | done
|
---|
7121 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7122 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
7123 |
|
---|
7124 |
|
---|
7125 | } # as_fn_mkdir_p
|
---|
7126 | if mkdir -p . 2>/dev/null; then
|
---|
7127 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
7128 | else
|
---|
7129 | test -d ./-p && rmdir ./-p
|
---|
7130 | as_mkdir_p=false
|
---|
7131 | fi
|
---|
7132 |
|
---|
7133 |
|
---|
7134 | # as_fn_executable_p FILE
|
---|
7135 | # -----------------------
|
---|
7136 | # Test if FILE is an executable regular file.
|
---|
7137 | as_fn_executable_p ()
|
---|
7138 | {
|
---|
7139 | test -f "$1" && test -x "$1"
|
---|
7140 | } # as_fn_executable_p
|
---|
7141 | as_test_x='test -x'
|
---|
7142 | as_executable_p=as_fn_executable_p
|
---|
7143 |
|
---|
7144 | # Sed expression to map a string onto a valid CPP name.
|
---|
7145 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7146 |
|
---|
7147 | # Sed expression to map a string onto a valid variable name.
|
---|
7148 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7149 |
|
---|
7150 |
|
---|
7151 | exec 6>&1
|
---|
7152 | ## ----------------------------------- ##
|
---|
7153 | ## Main body of $CONFIG_STATUS script. ##
|
---|
7154 | ## ----------------------------------- ##
|
---|
7155 | _ASEOF
|
---|
7156 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
7157 |
|
---|
7158 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7159 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
7160 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7161 | # values after options handling.
|
---|
7162 | ac_log="
|
---|
7163 | This file was extended by $as_me, which was
|
---|
7164 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
7165 |
|
---|
7166 | CONFIG_FILES = $CONFIG_FILES
|
---|
7167 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7168 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7169 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7170 | $ $0 $@
|
---|
7171 |
|
---|
7172 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
7173 | "
|
---|
7174 |
|
---|
7175 | _ACEOF
|
---|
7176 |
|
---|
7177 | case $ac_config_files in *"
|
---|
7178 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
7179 | esac
|
---|
7180 |
|
---|
7181 | case $ac_config_headers in *"
|
---|
7182 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
7183 | esac
|
---|
7184 |
|
---|
7185 |
|
---|
7186 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7187 | # Files that config.status was made for.
|
---|
7188 | config_files="$ac_config_files"
|
---|
7189 | config_headers="$ac_config_headers"
|
---|
7190 | config_commands="$ac_config_commands"
|
---|
7191 |
|
---|
7192 | _ACEOF
|
---|
7193 |
|
---|
7194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7195 | ac_cs_usage="\
|
---|
7196 | \`$as_me' instantiates files and other configuration actions
|
---|
7197 | from templates according to the current configuration. Unless the files
|
---|
7198 | and actions are specified as TAGs, all are instantiated by default.
|
---|
7199 |
|
---|
7200 | Usage: $0 [OPTION]... [TAG]...
|
---|
7201 |
|
---|
7202 | -h, --help print this help, then exit
|
---|
7203 | -V, --version print version number and configuration settings, then exit
|
---|
7204 | --config print configuration, then exit
|
---|
7205 | -q, --quiet, --silent
|
---|
7206 | do not print progress messages
|
---|
7207 | -d, --debug don't remove temporary files
|
---|
7208 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7209 | --file=FILE[:TEMPLATE]
|
---|
7210 | instantiate the configuration file FILE
|
---|
7211 | --header=FILE[:TEMPLATE]
|
---|
7212 | instantiate the configuration header FILE
|
---|
7213 |
|
---|
7214 | Configuration files:
|
---|
7215 | $config_files
|
---|
7216 |
|
---|
7217 | Configuration headers:
|
---|
7218 | $config_headers
|
---|
7219 |
|
---|
7220 | Configuration commands:
|
---|
7221 | $config_commands
|
---|
7222 |
|
---|
7223 | Report bugs to the package provider."
|
---|
7224 |
|
---|
7225 | _ACEOF
|
---|
7226 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7227 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
7228 | ac_cs_version="\\
|
---|
7229 | config.status
|
---|
7230 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
7231 | with options \\"\$ac_cs_config\\"
|
---|
7232 |
|
---|
7233 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
7234 | This config.status script is free software; the Free Software Foundation
|
---|
7235 | gives unlimited permission to copy, distribute and modify it."
|
---|
7236 |
|
---|
7237 | ac_pwd='$ac_pwd'
|
---|
7238 | srcdir='$srcdir'
|
---|
7239 | INSTALL='$INSTALL'
|
---|
7240 | AWK='$AWK'
|
---|
7241 | test -n "\$AWK" || AWK=awk
|
---|
7242 | _ACEOF
|
---|
7243 |
|
---|
7244 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7245 | # The default lists apply if the user does not specify any file.
|
---|
7246 | ac_need_defaults=:
|
---|
7247 | while test $# != 0
|
---|
7248 | do
|
---|
7249 | case $1 in
|
---|
7250 | --*=?*)
|
---|
7251 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7252 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
7253 | ac_shift=:
|
---|
7254 | ;;
|
---|
7255 | --*=)
|
---|
7256 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7257 | ac_optarg=
|
---|
7258 | ac_shift=:
|
---|
7259 | ;;
|
---|
7260 | *)
|
---|
7261 | ac_option=$1
|
---|
7262 | ac_optarg=$2
|
---|
7263 | ac_shift=shift
|
---|
7264 | ;;
|
---|
7265 | esac
|
---|
7266 |
|
---|
7267 | case $ac_option in
|
---|
7268 | # Handling of the options.
|
---|
7269 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7270 | ac_cs_recheck=: ;;
|
---|
7271 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
7272 | $as_echo "$ac_cs_version"; exit ;;
|
---|
7273 | --config | --confi | --conf | --con | --co | --c )
|
---|
7274 | $as_echo "$ac_cs_config"; exit ;;
|
---|
7275 | --debug | --debu | --deb | --de | --d | -d )
|
---|
7276 | debug=: ;;
|
---|
7277 | --file | --fil | --fi | --f )
|
---|
7278 | $ac_shift
|
---|
7279 | case $ac_optarg in
|
---|
7280 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7281 | '') as_fn_error $? "missing file argument" ;;
|
---|
7282 | esac
|
---|
7283 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
7284 | ac_need_defaults=false;;
|
---|
7285 | --header | --heade | --head | --hea )
|
---|
7286 | $ac_shift
|
---|
7287 | case $ac_optarg in
|
---|
7288 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7289 | esac
|
---|
7290 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
7291 | ac_need_defaults=false;;
|
---|
7292 | --he | --h)
|
---|
7293 | # Conflict between --help and --header
|
---|
7294 | as_fn_error $? "ambiguous option: \`$1'
|
---|
7295 | Try \`$0 --help' for more information.";;
|
---|
7296 | --help | --hel | -h )
|
---|
7297 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
7298 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7299 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7300 | ac_cs_silent=: ;;
|
---|
7301 |
|
---|
7302 | # This is an error.
|
---|
7303 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
7304 | Try \`$0 --help' for more information." ;;
|
---|
7305 |
|
---|
7306 | *) as_fn_append ac_config_targets " $1"
|
---|
7307 | ac_need_defaults=false ;;
|
---|
7308 |
|
---|
7309 | esac
|
---|
7310 | shift
|
---|
7311 | done
|
---|
7312 |
|
---|
7313 | ac_configure_extra_args=
|
---|
7314 |
|
---|
7315 | if $ac_cs_silent; then
|
---|
7316 | exec 6>/dev/null
|
---|
7317 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7318 | fi
|
---|
7319 |
|
---|
7320 | _ACEOF
|
---|
7321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7322 | if \$ac_cs_recheck; then
|
---|
7323 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7324 | shift
|
---|
7325 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
7326 | CONFIG_SHELL='$SHELL'
|
---|
7327 | export CONFIG_SHELL
|
---|
7328 | exec "\$@"
|
---|
7329 | fi
|
---|
7330 |
|
---|
7331 | _ACEOF
|
---|
7332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7333 | exec 5>>config.log
|
---|
7334 | {
|
---|
7335 | echo
|
---|
7336 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7337 | ## Running $as_me. ##
|
---|
7338 | _ASBOX
|
---|
7339 | $as_echo "$ac_log"
|
---|
7340 | } >&5
|
---|
7341 |
|
---|
7342 | _ACEOF
|
---|
7343 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7344 | _ACEOF
|
---|
7345 |
|
---|
7346 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7347 |
|
---|
7348 | # Handling of arguments.
|
---|
7349 | for ac_config_target in $ac_config_targets
|
---|
7350 | do
|
---|
7351 | case $ac_config_target in
|
---|
7352 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7353 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7354 | "text/Makefile") CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
7355 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
7356 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
7357 | "java/org/greenstone/mgpp/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
7358 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
7359 |
|
---|
7360 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
7361 | esac
|
---|
7362 | done
|
---|
7363 |
|
---|
7364 |
|
---|
7365 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7366 | # then the envvar interface is used. Set only those that are not.
|
---|
7367 | # We use the long form for the default assignment because of an extremely
|
---|
7368 | # bizarre bug on SunOS 4.1.3.
|
---|
7369 | if $ac_need_defaults; then
|
---|
7370 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7371 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7372 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
7373 | fi
|
---|
7374 |
|
---|
7375 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7376 | # simply because there is no reason against having it here, and in addition,
|
---|
7377 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7378 | # Hook for its removal unless debugging.
|
---|
7379 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
7380 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
7381 | $debug ||
|
---|
7382 | {
|
---|
7383 | tmp= ac_tmp=
|
---|
7384 | trap 'exit_status=$?
|
---|
7385 | : "${ac_tmp:=$tmp}"
|
---|
7386 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
7387 | ' 0
|
---|
7388 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
7389 | }
|
---|
7390 | # Create a (secure) tmp directory for tmp files.
|
---|
7391 |
|
---|
7392 | {
|
---|
7393 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
7394 | test -d "$tmp"
|
---|
7395 | } ||
|
---|
7396 | {
|
---|
7397 | tmp=./conf$$-$RANDOM
|
---|
7398 | (umask 077 && mkdir "$tmp")
|
---|
7399 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
7400 | ac_tmp=$tmp
|
---|
7401 |
|
---|
7402 | # Set up the scripts for CONFIG_FILES section.
|
---|
7403 | # No need to generate them if there are no CONFIG_FILES.
|
---|
7404 | # This happens for instance with `./config.status config.h'.
|
---|
7405 | if test -n "$CONFIG_FILES"; then
|
---|
7406 |
|
---|
7407 |
|
---|
7408 | ac_cr=`echo X | tr X '\015'`
|
---|
7409 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
7410 | # But we know of no other shell where ac_cr would be empty at this
|
---|
7411 | # point, so we can use a bashism as a fallback.
|
---|
7412 | if test "x$ac_cr" = x; then
|
---|
7413 | eval ac_cr=\$\'\\r\'
|
---|
7414 | fi
|
---|
7415 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
7416 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
7417 | ac_cs_awk_cr='\\r'
|
---|
7418 | else
|
---|
7419 | ac_cs_awk_cr=$ac_cr
|
---|
7420 | fi
|
---|
7421 |
|
---|
7422 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
7423 | _ACEOF
|
---|
7424 |
|
---|
7425 |
|
---|
7426 | {
|
---|
7427 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
7428 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
7429 | echo "_ACEOF"
|
---|
7430 | } >conf$$subs.sh ||
|
---|
7431 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7432 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
7433 | ac_delim='%!_!# '
|
---|
7434 | for ac_last_try in false false false false false :; do
|
---|
7435 | . ./conf$$subs.sh ||
|
---|
7436 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7437 |
|
---|
7438 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
7439 | if test $ac_delim_n = $ac_delim_num; then
|
---|
7440 | break
|
---|
7441 | elif $ac_last_try; then
|
---|
7442 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7443 | else
|
---|
7444 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7445 | fi
|
---|
7446 | done
|
---|
7447 | rm -f conf$$subs.sh
|
---|
7448 |
|
---|
7449 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7450 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
7451 | _ACEOF
|
---|
7452 | sed -n '
|
---|
7453 | h
|
---|
7454 | s/^/S["/; s/!.*/"]=/
|
---|
7455 | p
|
---|
7456 | g
|
---|
7457 | s/^[^!]*!//
|
---|
7458 | :repl
|
---|
7459 | t repl
|
---|
7460 | s/'"$ac_delim"'$//
|
---|
7461 | t delim
|
---|
7462 | :nl
|
---|
7463 | h
|
---|
7464 | s/\(.\{148\}\)..*/\1/
|
---|
7465 | t more1
|
---|
7466 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
7467 | p
|
---|
7468 | n
|
---|
7469 | b repl
|
---|
7470 | :more1
|
---|
7471 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7472 | p
|
---|
7473 | g
|
---|
7474 | s/.\{148\}//
|
---|
7475 | t nl
|
---|
7476 | :delim
|
---|
7477 | h
|
---|
7478 | s/\(.\{148\}\)..*/\1/
|
---|
7479 | t more2
|
---|
7480 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
7481 | p
|
---|
7482 | b
|
---|
7483 | :more2
|
---|
7484 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7485 | p
|
---|
7486 | g
|
---|
7487 | s/.\{148\}//
|
---|
7488 | t delim
|
---|
7489 | ' <conf$$subs.awk | sed '
|
---|
7490 | /^[^""]/{
|
---|
7491 | N
|
---|
7492 | s/\n//
|
---|
7493 | }
|
---|
7494 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7495 | rm -f conf$$subs.awk
|
---|
7496 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7497 | _ACAWK
|
---|
7498 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
7499 | for (key in S) S_is_set[key] = 1
|
---|
7500 | FS = ""
|
---|
7501 |
|
---|
7502 | }
|
---|
7503 | {
|
---|
7504 | line = $ 0
|
---|
7505 | nfields = split(line, field, "@")
|
---|
7506 | substed = 0
|
---|
7507 | len = length(field[1])
|
---|
7508 | for (i = 2; i < nfields; i++) {
|
---|
7509 | key = field[i]
|
---|
7510 | keylen = length(key)
|
---|
7511 | if (S_is_set[key]) {
|
---|
7512 | value = S[key]
|
---|
7513 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7514 | len += length(value) + length(field[++i])
|
---|
7515 | substed = 1
|
---|
7516 | } else
|
---|
7517 | len += 1 + keylen
|
---|
7518 | }
|
---|
7519 |
|
---|
7520 | print line
|
---|
7521 | }
|
---|
7522 |
|
---|
7523 | _ACAWK
|
---|
7524 | _ACEOF
|
---|
7525 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7526 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7527 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7528 | else
|
---|
7529 | cat
|
---|
7530 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
7531 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
7532 | _ACEOF
|
---|
7533 |
|
---|
7534 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
7535 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
7536 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7537 | # (actually we leave an empty line to preserve line numbers).
|
---|
7538 | if test "x$srcdir" = x.; then
|
---|
7539 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
7540 | h
|
---|
7541 | s///
|
---|
7542 | s/^/:/
|
---|
7543 | s/[ ]*$/:/
|
---|
7544 | s/:\$(srcdir):/:/g
|
---|
7545 | s/:\${srcdir}:/:/g
|
---|
7546 | s/:@srcdir@:/:/g
|
---|
7547 | s/^:*//
|
---|
7548 | s/:*$//
|
---|
7549 | x
|
---|
7550 | s/\(=[ ]*\).*/\1/
|
---|
7551 | G
|
---|
7552 | s/\n//
|
---|
7553 | s/^[^=]*=[ ]*$//
|
---|
7554 | }'
|
---|
7555 | fi
|
---|
7556 |
|
---|
7557 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7558 | fi # test -n "$CONFIG_FILES"
|
---|
7559 |
|
---|
7560 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
7561 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
7562 | # This happens for instance with `./config.status Makefile'.
|
---|
7563 | if test -n "$CONFIG_HEADERS"; then
|
---|
7564 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
7565 | BEGIN {
|
---|
7566 | _ACEOF
|
---|
7567 |
|
---|
7568 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
7569 | # here-document in config.status, that substitutes the proper values into
|
---|
7570 | # config.h.in to produce config.h.
|
---|
7571 |
|
---|
7572 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
7573 | # handling of long lines.
|
---|
7574 | ac_delim='%!_!# '
|
---|
7575 | for ac_last_try in false false :; do
|
---|
7576 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
7577 | if test -z "$ac_tt"; then
|
---|
7578 | break
|
---|
7579 | elif $ac_last_try; then
|
---|
7580 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
7581 | else
|
---|
7582 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7583 | fi
|
---|
7584 | done
|
---|
7585 |
|
---|
7586 | # For the awk script, D is an array of macro values keyed by name,
|
---|
7587 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
7588 | # newline sequences.
|
---|
7589 |
|
---|
7590 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
7591 | sed -n '
|
---|
7592 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7593 | t rset
|
---|
7594 | :rset
|
---|
7595 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
7596 | t def
|
---|
7597 | d
|
---|
7598 | :def
|
---|
7599 | s/\\$//
|
---|
7600 | t bsnl
|
---|
7601 | s/["\\]/\\&/g
|
---|
7602 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7603 | D["\1"]=" \3"/p
|
---|
7604 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
7605 | d
|
---|
7606 | :bsnl
|
---|
7607 | s/["\\]/\\&/g
|
---|
7608 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7609 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
7610 | t cont
|
---|
7611 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
7612 | t cont
|
---|
7613 | d
|
---|
7614 | :cont
|
---|
7615 | n
|
---|
7616 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7617 | t clear
|
---|
7618 | :clear
|
---|
7619 | s/\\$//
|
---|
7620 | t bsnlc
|
---|
7621 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
7622 | d
|
---|
7623 | :bsnlc
|
---|
7624 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
7625 | b cont
|
---|
7626 | ' <confdefs.h | sed '
|
---|
7627 | s/'"$ac_delim"'/"\\\
|
---|
7628 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7629 |
|
---|
7630 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7631 | for (key in D) D_is_set[key] = 1
|
---|
7632 | FS = ""
|
---|
7633 | }
|
---|
7634 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
7635 | line = \$ 0
|
---|
7636 | split(line, arg, " ")
|
---|
7637 | if (arg[1] == "#") {
|
---|
7638 | defundef = arg[2]
|
---|
7639 | mac1 = arg[3]
|
---|
7640 | } else {
|
---|
7641 | defundef = substr(arg[1], 2)
|
---|
7642 | mac1 = arg[2]
|
---|
7643 | }
|
---|
7644 | split(mac1, mac2, "(") #)
|
---|
7645 | macro = mac2[1]
|
---|
7646 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
7647 | if (D_is_set[macro]) {
|
---|
7648 | # Preserve the white space surrounding the "#".
|
---|
7649 | print prefix "define", macro P[macro] D[macro]
|
---|
7650 | next
|
---|
7651 | } else {
|
---|
7652 | # Replace #undef with comments. This is necessary, for example,
|
---|
7653 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7654 | # on some systems where configure will not decide to define it.
|
---|
7655 | if (defundef == "undef") {
|
---|
7656 | print "/*", prefix defundef, macro, "*/"
|
---|
7657 | next
|
---|
7658 | }
|
---|
7659 | }
|
---|
7660 | }
|
---|
7661 | { print }
|
---|
7662 | _ACAWK
|
---|
7663 | _ACEOF
|
---|
7664 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7665 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
7666 | fi # test -n "$CONFIG_HEADERS"
|
---|
7667 |
|
---|
7668 |
|
---|
7669 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
7670 | shift
|
---|
7671 | for ac_tag
|
---|
7672 | do
|
---|
7673 | case $ac_tag in
|
---|
7674 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7675 | esac
|
---|
7676 | case $ac_mode$ac_tag in
|
---|
7677 | :[FHL]*:*);;
|
---|
7678 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
7679 | :[FH]-) ac_tag=-:-;;
|
---|
7680 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7681 | esac
|
---|
7682 | ac_save_IFS=$IFS
|
---|
7683 | IFS=:
|
---|
7684 | set x $ac_tag
|
---|
7685 | IFS=$ac_save_IFS
|
---|
7686 | shift
|
---|
7687 | ac_file=$1
|
---|
7688 | shift
|
---|
7689 |
|
---|
7690 | case $ac_mode in
|
---|
7691 | :L) ac_source=$1;;
|
---|
7692 | :[FH])
|
---|
7693 | ac_file_inputs=
|
---|
7694 | for ac_f
|
---|
7695 | do
|
---|
7696 | case $ac_f in
|
---|
7697 | -) ac_f="$ac_tmp/stdin";;
|
---|
7698 | *) # Look for the file first in the build tree, then in the source tree
|
---|
7699 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
7700 | # because $ac_f cannot contain `:'.
|
---|
7701 | test -f "$ac_f" ||
|
---|
7702 | case $ac_f in
|
---|
7703 | [\\/$]*) false;;
|
---|
7704 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
7705 | esac ||
|
---|
7706 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
7707 | esac
|
---|
7708 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
7709 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
7710 | done
|
---|
7711 |
|
---|
7712 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
7713 | # use $as_me), people would be surprised to read:
|
---|
7714 | # /* config.h. Generated by config.status. */
|
---|
7715 | configure_input='Generated from '`
|
---|
7716 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
7717 | `' by configure.'
|
---|
7718 | if test x"$ac_file" != x-; then
|
---|
7719 | configure_input="$ac_file. $configure_input"
|
---|
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
7721 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
7722 | fi
|
---|
7723 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
7724 | case $configure_input in #(
|
---|
7725 | *\&* | *\|* | *\\* )
|
---|
7726 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
7727 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
7728 | *) ac_sed_conf_input=$configure_input;;
|
---|
7729 | esac
|
---|
7730 |
|
---|
7731 | case $ac_tag in
|
---|
7732 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
7733 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
7734 | esac
|
---|
7735 | ;;
|
---|
7736 | esac
|
---|
7737 |
|
---|
7738 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
7739 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7740 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7741 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7742 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7743 | $as_echo X"$ac_file" |
|
---|
7744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7745 | s//\1/
|
---|
7746 | q
|
---|
7747 | }
|
---|
7748 | /^X\(\/\/\)[^/].*/{
|
---|
7749 | s//\1/
|
---|
7750 | q
|
---|
7751 | }
|
---|
7752 | /^X\(\/\/\)$/{
|
---|
7753 | s//\1/
|
---|
7754 | q
|
---|
7755 | }
|
---|
7756 | /^X\(\/\).*/{
|
---|
7757 | s//\1/
|
---|
7758 | q
|
---|
7759 | }
|
---|
7760 | s/.*/./; q'`
|
---|
7761 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7762 | ac_builddir=.
|
---|
7763 |
|
---|
7764 | case "$ac_dir" in
|
---|
7765 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7766 | *)
|
---|
7767 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7768 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7769 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7770 | case $ac_top_builddir_sub in
|
---|
7771 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7772 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7773 | esac ;;
|
---|
7774 | esac
|
---|
7775 | ac_abs_top_builddir=$ac_pwd
|
---|
7776 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7777 | # for backward compatibility:
|
---|
7778 | ac_top_builddir=$ac_top_build_prefix
|
---|
7779 |
|
---|
7780 | case $srcdir in
|
---|
7781 | .) # We are building in place.
|
---|
7782 | ac_srcdir=.
|
---|
7783 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7784 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7785 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7786 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7787 | ac_top_srcdir=$srcdir
|
---|
7788 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7789 | *) # Relative name.
|
---|
7790 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7791 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7792 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7793 | esac
|
---|
7794 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7795 |
|
---|
7796 |
|
---|
7797 | case $ac_mode in
|
---|
7798 | :F)
|
---|
7799 | #
|
---|
7800 | # CONFIG_FILE
|
---|
7801 | #
|
---|
7802 |
|
---|
7803 | case $INSTALL in
|
---|
7804 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
7805 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
7806 | esac
|
---|
7807 | _ACEOF
|
---|
7808 |
|
---|
7809 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7810 | # If the template does not know about datarootdir, expand it.
|
---|
7811 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
7812 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
7813 | ac_sed_dataroot='
|
---|
7814 | /datarootdir/ {
|
---|
7815 | p
|
---|
7816 | q
|
---|
7817 | }
|
---|
7818 | /@datadir@/p
|
---|
7819 | /@docdir@/p
|
---|
7820 | /@infodir@/p
|
---|
7821 | /@localedir@/p
|
---|
7822 | /@mandir@/p'
|
---|
7823 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
7824 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
7825 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
7827 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
7828 | _ACEOF
|
---|
7829 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7830 | ac_datarootdir_hack='
|
---|
7831 | s&@datadir@&$datadir&g
|
---|
7832 | s&@docdir@&$docdir&g
|
---|
7833 | s&@infodir@&$infodir&g
|
---|
7834 | s&@localedir@&$localedir&g
|
---|
7835 | s&@mandir@&$mandir&g
|
---|
7836 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
7837 | esac
|
---|
7838 | _ACEOF
|
---|
7839 |
|
---|
7840 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
7841 | # Shell code in configure.ac might set extrasub.
|
---|
7842 | # FIXME: do we really want to maintain this feature?
|
---|
7843 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7844 | ac_sed_extra="$ac_vpsub
|
---|
7845 | $extrasub
|
---|
7846 | _ACEOF
|
---|
7847 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7848 | :t
|
---|
7849 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
7850 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
7851 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
7852 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
7853 | s&@srcdir@&$ac_srcdir&;t t
|
---|
7854 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
7855 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
7856 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
7857 | s&@builddir@&$ac_builddir&;t t
|
---|
7858 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
7859 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
7860 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
7861 | $ac_datarootdir_hack
|
---|
7862 | "
|
---|
7863 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
7864 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7865 |
|
---|
7866 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
7867 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
7868 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
7869 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7871 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
7872 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
7873 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
7874 |
|
---|
7875 | rm -f "$ac_tmp/stdin"
|
---|
7876 | case $ac_file in
|
---|
7877 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
7878 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
7879 | esac \
|
---|
7880 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7881 | ;;
|
---|
7882 | :H)
|
---|
7883 | #
|
---|
7884 | # CONFIG_HEADER
|
---|
7885 | #
|
---|
7886 | if test x"$ac_file" != x-; then
|
---|
7887 | {
|
---|
7888 | $as_echo "/* $configure_input */" \
|
---|
7889 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
7890 | } >"$ac_tmp/config.h" \
|
---|
7891 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7892 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
7894 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
7895 | else
|
---|
7896 | rm -f "$ac_file"
|
---|
7897 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
7898 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
7899 | fi
|
---|
7900 | else
|
---|
7901 | $as_echo "/* $configure_input */" \
|
---|
7902 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
7903 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
7904 | fi
|
---|
7905 | ;;
|
---|
7906 |
|
---|
7907 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
7908 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
7909 | ;;
|
---|
7910 | esac
|
---|
7911 |
|
---|
7912 |
|
---|
7913 | case $ac_file$ac_mode in
|
---|
7914 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
7915 |
|
---|
7916 | esac
|
---|
7917 | done # for ac_tag
|
---|
7918 |
|
---|
7919 |
|
---|
7920 | as_fn_exit 0
|
---|
7921 | _ACEOF
|
---|
7922 | ac_clean_files=$ac_clean_files_save
|
---|
7923 |
|
---|
7924 | test $ac_write_fail = 0 ||
|
---|
7925 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
7926 |
|
---|
7927 |
|
---|
7928 | # configure is writing to config.log, and then calls config.status.
|
---|
7929 | # config.status does its own redirection, appending to config.log.
|
---|
7930 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
7931 | # by configure, so config.status won't be able to write to it; its
|
---|
7932 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
7933 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
7934 | # appended to by config.status. When coming back to configure, we
|
---|
7935 | # need to make the FD available again.
|
---|
7936 | if test "$no_create" != yes; then
|
---|
7937 | ac_cs_success=:
|
---|
7938 | ac_config_status_args=
|
---|
7939 | test "$silent" = yes &&
|
---|
7940 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
7941 | exec 5>/dev/null
|
---|
7942 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
7943 | exec 5>>config.log
|
---|
7944 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
7945 | # would make configure fail if this is the last instruction.
|
---|
7946 | $ac_cs_success || as_fn_exit 1
|
---|
7947 | fi
|
---|
7948 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
7950 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
7951 | fi
|
---|
7952 |
|
---|