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