1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.69.
|
---|
4 | #
|
---|
5 | #
|
---|
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
7 | #
|
---|
8 | #
|
---|
9 | # This configure script is free software; the Free Software Foundation
|
---|
10 | # gives unlimited permission to copy, distribute and modify it.
|
---|
11 | ## -------------------- ##
|
---|
12 | ## M4sh Initialization. ##
|
---|
13 | ## -------------------- ##
|
---|
14 |
|
---|
15 | # Be more Bourne compatible
|
---|
16 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
18 | emulate sh
|
---|
19 | NULLCMD=:
|
---|
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
21 | # is contrary to our usage. Disable this feature.
|
---|
22 | alias -g '${1+"$@"}'='"$@"'
|
---|
23 | setopt NO_GLOB_SUBST
|
---|
24 | else
|
---|
25 | case `(set -o) 2>/dev/null` in #(
|
---|
26 | *posix*) :
|
---|
27 | set -o posix ;; #(
|
---|
28 | *) :
|
---|
29 | ;;
|
---|
30 | esac
|
---|
31 | fi
|
---|
32 |
|
---|
33 |
|
---|
34 | as_nl='
|
---|
35 | '
|
---|
36 | export as_nl
|
---|
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
41 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
42 | # but without wasting forks for bash or zsh.
|
---|
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
45 | as_echo='print -r --'
|
---|
46 | as_echo_n='print -rn --'
|
---|
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
48 | as_echo='printf %s\n'
|
---|
49 | as_echo_n='printf %s'
|
---|
50 | else
|
---|
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
53 | as_echo_n='/usr/ucb/echo -n'
|
---|
54 | else
|
---|
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
56 | as_echo_n_body='eval
|
---|
57 | arg=$1;
|
---|
58 | case $arg in #(
|
---|
59 | *"$as_nl"*)
|
---|
60 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
62 | esac;
|
---|
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
64 | '
|
---|
65 | export as_echo_n_body
|
---|
66 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
67 | fi
|
---|
68 | export as_echo_body
|
---|
69 | as_echo='sh -c $as_echo_body as_echo'
|
---|
70 | fi
|
---|
71 |
|
---|
72 | # The user is always right.
|
---|
73 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
74 | PATH_SEPARATOR=:
|
---|
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
77 | PATH_SEPARATOR=';'
|
---|
78 | }
|
---|
79 | fi
|
---|
80 |
|
---|
81 |
|
---|
82 | # IFS
|
---|
83 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
84 | # there to prevent editors from complaining about space-tab.
|
---|
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
86 | # splitting by setting IFS to empty value.)
|
---|
87 | IFS=" "" $as_nl"
|
---|
88 |
|
---|
89 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
90 | as_myself=
|
---|
91 | case $0 in #((
|
---|
92 | *[\\/]* ) as_myself=$0 ;;
|
---|
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
94 | for as_dir in $PATH
|
---|
95 | do
|
---|
96 | IFS=$as_save_IFS
|
---|
97 | test -z "$as_dir" && as_dir=.
|
---|
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
99 | done
|
---|
100 | IFS=$as_save_IFS
|
---|
101 |
|
---|
102 | ;;
|
---|
103 | esac
|
---|
104 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
105 | # in which case we are not to be found in the path.
|
---|
106 | if test "x$as_myself" = x; then
|
---|
107 | as_myself=$0
|
---|
108 | fi
|
---|
109 | if test ! -f "$as_myself"; then
|
---|
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
111 | exit 1
|
---|
112 | fi
|
---|
113 |
|
---|
114 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
116 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
117 | # trigger a bug in pdksh 5.2.14.
|
---|
118 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
119 | do eval test x\${$as_var+set} = xset \
|
---|
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
121 | done
|
---|
122 | PS1='$ '
|
---|
123 | PS2='> '
|
---|
124 | PS4='+ '
|
---|
125 |
|
---|
126 | # NLS nuisances.
|
---|
127 | LC_ALL=C
|
---|
128 | export LC_ALL
|
---|
129 | LANGUAGE=C
|
---|
130 | export LANGUAGE
|
---|
131 |
|
---|
132 | # CDPATH.
|
---|
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
134 |
|
---|
135 | # Use a proper internal environment variable to ensure we don't fall
|
---|
136 | # into an infinite loop, continuously re-executing ourselves.
|
---|
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
138 | _as_can_reexec=no; export _as_can_reexec;
|
---|
139 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
140 | # neutralization value for shells without unset; and this also
|
---|
141 | # works around shells that cannot unset nonexistent variables.
|
---|
142 | # Preserve -v and -x to the replacement shell.
|
---|
143 | BASH_ENV=/dev/null
|
---|
144 | ENV=/dev/null
|
---|
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
146 | case $- in # ((((
|
---|
147 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
148 | *v* ) as_opts=-v ;;
|
---|
149 | *x* ) as_opts=-x ;;
|
---|
150 | * ) as_opts= ;;
|
---|
151 | esac
|
---|
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
153 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
154 | # out after a failed `exec'.
|
---|
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
156 | as_fn_exit 255
|
---|
157 | fi
|
---|
158 | # We don't want this to propagate to other subprocesses.
|
---|
159 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
160 | if test "x$CONFIG_SHELL" = x; then
|
---|
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
162 | emulate sh
|
---|
163 | NULLCMD=:
|
---|
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
165 | # is contrary to our usage. Disable this feature.
|
---|
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
167 | setopt NO_GLOB_SUBST
|
---|
168 | else
|
---|
169 | case \`(set -o) 2>/dev/null\` in #(
|
---|
170 | *posix*) :
|
---|
171 | set -o posix ;; #(
|
---|
172 | *) :
|
---|
173 | ;;
|
---|
174 | esac
|
---|
175 | fi
|
---|
176 | "
|
---|
177 | as_required="as_fn_return () { (exit \$1); }
|
---|
178 | as_fn_success () { as_fn_return 0; }
|
---|
179 | as_fn_failure () { as_fn_return 1; }
|
---|
180 | as_fn_ret_success () { return 0; }
|
---|
181 | as_fn_ret_failure () { return 1; }
|
---|
182 |
|
---|
183 | exitcode=0
|
---|
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
189 |
|
---|
190 | else
|
---|
191 | exitcode=1; echo positional parameters were not saved.
|
---|
192 | fi
|
---|
193 | test x\$exitcode = x0 || exit 1
|
---|
194 | test -x / || exit 1"
|
---|
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
199 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
200 | if (eval "$as_required") 2>/dev/null; then :
|
---|
201 | as_have_required=yes
|
---|
202 | else
|
---|
203 | as_have_required=no
|
---|
204 | fi
|
---|
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
206 |
|
---|
207 | else
|
---|
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
209 | as_found=false
|
---|
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
211 | do
|
---|
212 | IFS=$as_save_IFS
|
---|
213 | test -z "$as_dir" && as_dir=.
|
---|
214 | as_found=:
|
---|
215 | case $as_dir in #(
|
---|
216 | /*)
|
---|
217 | for as_base in sh bash ksh sh5; do
|
---|
218 | # Try only shells that exist, to save several forks.
|
---|
219 | as_shell=$as_dir/$as_base
|
---|
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
222 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
224 | break 2
|
---|
225 | fi
|
---|
226 | fi
|
---|
227 | done;;
|
---|
228 | esac
|
---|
229 | as_found=false
|
---|
230 | done
|
---|
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
233 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
234 | fi; }
|
---|
235 | IFS=$as_save_IFS
|
---|
236 |
|
---|
237 |
|
---|
238 | if test "x$CONFIG_SHELL" != x; then :
|
---|
239 | export CONFIG_SHELL
|
---|
240 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
241 | # neutralization value for shells without unset; and this also
|
---|
242 | # works around shells that cannot unset nonexistent variables.
|
---|
243 | # Preserve -v and -x to the replacement shell.
|
---|
244 | BASH_ENV=/dev/null
|
---|
245 | ENV=/dev/null
|
---|
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
247 | case $- in # ((((
|
---|
248 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
249 | *v* ) as_opts=-v ;;
|
---|
250 | *x* ) as_opts=-x ;;
|
---|
251 | * ) as_opts= ;;
|
---|
252 | esac
|
---|
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
254 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
255 | # out after a failed `exec'.
|
---|
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
257 | exit 255
|
---|
258 | fi
|
---|
259 |
|
---|
260 | if test x$as_have_required = xno; then :
|
---|
261 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
262 | $as_echo "$0: the shells that I found on your system."
|
---|
263 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
266 | else
|
---|
267 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
268 | $0: including any error possibly output before this
|
---|
269 | $0: message. Then install a modern shell, or manually run
|
---|
270 | $0: the script under such a shell if you do have one."
|
---|
271 | fi
|
---|
272 | exit 1
|
---|
273 | fi
|
---|
274 | fi
|
---|
275 | fi
|
---|
276 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
277 | export SHELL
|
---|
278 | # Unset more variables known to interfere with behavior of common tools.
|
---|
279 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
280 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
281 |
|
---|
282 | ## --------------------- ##
|
---|
283 | ## M4sh Shell Functions. ##
|
---|
284 | ## --------------------- ##
|
---|
285 | # as_fn_unset VAR
|
---|
286 | # ---------------
|
---|
287 | # Portably unset VAR.
|
---|
288 | as_fn_unset ()
|
---|
289 | {
|
---|
290 | { eval $1=; unset $1;}
|
---|
291 | }
|
---|
292 | as_unset=as_fn_unset
|
---|
293 |
|
---|
294 | # as_fn_set_status STATUS
|
---|
295 | # -----------------------
|
---|
296 | # Set $? to STATUS, without forking.
|
---|
297 | as_fn_set_status ()
|
---|
298 | {
|
---|
299 | return $1
|
---|
300 | } # as_fn_set_status
|
---|
301 |
|
---|
302 | # as_fn_exit STATUS
|
---|
303 | # -----------------
|
---|
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
305 | as_fn_exit ()
|
---|
306 | {
|
---|
307 | set +e
|
---|
308 | as_fn_set_status $1
|
---|
309 | exit $1
|
---|
310 | } # as_fn_exit
|
---|
311 |
|
---|
312 | # as_fn_mkdir_p
|
---|
313 | # -------------
|
---|
314 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
315 | as_fn_mkdir_p ()
|
---|
316 | {
|
---|
317 |
|
---|
318 | case $as_dir in #(
|
---|
319 | -*) as_dir=./$as_dir;;
|
---|
320 | esac
|
---|
321 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
322 | as_dirs=
|
---|
323 | while :; do
|
---|
324 | case $as_dir in #(
|
---|
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
326 | *) as_qdir=$as_dir;;
|
---|
327 | esac
|
---|
328 | as_dirs="'$as_qdir' $as_dirs"
|
---|
329 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
331 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
332 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
334 | $as_echo X"$as_dir" |
|
---|
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
336 | s//\1/
|
---|
337 | q
|
---|
338 | }
|
---|
339 | /^X\(\/\/\)[^/].*/{
|
---|
340 | s//\1/
|
---|
341 | q
|
---|
342 | }
|
---|
343 | /^X\(\/\/\)$/{
|
---|
344 | s//\1/
|
---|
345 | q
|
---|
346 | }
|
---|
347 | /^X\(\/\).*/{
|
---|
348 | s//\1/
|
---|
349 | q
|
---|
350 | }
|
---|
351 | s/.*/./; q'`
|
---|
352 | test -d "$as_dir" && break
|
---|
353 | done
|
---|
354 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
356 |
|
---|
357 |
|
---|
358 | } # as_fn_mkdir_p
|
---|
359 |
|
---|
360 | # as_fn_executable_p FILE
|
---|
361 | # -----------------------
|
---|
362 | # Test if FILE is an executable regular file.
|
---|
363 | as_fn_executable_p ()
|
---|
364 | {
|
---|
365 | test -f "$1" && test -x "$1"
|
---|
366 | } # as_fn_executable_p
|
---|
367 | # as_fn_append VAR VALUE
|
---|
368 | # ----------------------
|
---|
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
370 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
371 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
372 | # implementations.
|
---|
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
374 | eval 'as_fn_append ()
|
---|
375 | {
|
---|
376 | eval $1+=\$2
|
---|
377 | }'
|
---|
378 | else
|
---|
379 | as_fn_append ()
|
---|
380 | {
|
---|
381 | eval $1=\$$1\$2
|
---|
382 | }
|
---|
383 | fi # as_fn_append
|
---|
384 |
|
---|
385 | # as_fn_arith ARG...
|
---|
386 | # ------------------
|
---|
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
389 | # must be portable across $(()) and expr.
|
---|
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
391 | eval 'as_fn_arith ()
|
---|
392 | {
|
---|
393 | as_val=$(( $* ))
|
---|
394 | }'
|
---|
395 | else
|
---|
396 | as_fn_arith ()
|
---|
397 | {
|
---|
398 | as_val=`expr "$@" || test $? -eq 1`
|
---|
399 | }
|
---|
400 | fi # as_fn_arith
|
---|
401 |
|
---|
402 |
|
---|
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
404 | # ----------------------------------------
|
---|
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
407 | # script with STATUS, using 1 if that was 0.
|
---|
408 | as_fn_error ()
|
---|
409 | {
|
---|
410 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
411 | if test "$4"; then
|
---|
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
414 | fi
|
---|
415 | $as_echo "$as_me: error: $2" >&2
|
---|
416 | as_fn_exit $as_status
|
---|
417 | } # as_fn_error
|
---|
418 |
|
---|
419 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
421 | as_expr=expr
|
---|
422 | else
|
---|
423 | as_expr=false
|
---|
424 | fi
|
---|
425 |
|
---|
426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
427 | as_basename=basename
|
---|
428 | else
|
---|
429 | as_basename=false
|
---|
430 | fi
|
---|
431 |
|
---|
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
433 | as_dirname=dirname
|
---|
434 | else
|
---|
435 | as_dirname=false
|
---|
436 | fi
|
---|
437 |
|
---|
438 | as_me=`$as_basename -- "$0" ||
|
---|
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
440 | X"$0" : 'X\(//\)$' \| \
|
---|
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
442 | $as_echo X/"$0" |
|
---|
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
444 | s//\1/
|
---|
445 | q
|
---|
446 | }
|
---|
447 | /^X\/\(\/\/\)$/{
|
---|
448 | s//\1/
|
---|
449 | q
|
---|
450 | }
|
---|
451 | /^X\/\(\/\).*/{
|
---|
452 | s//\1/
|
---|
453 | q
|
---|
454 | }
|
---|
455 | s/.*/./; q'`
|
---|
456 |
|
---|
457 | # Avoid depending upon Character Ranges.
|
---|
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
461 | as_cr_digits='0123456789'
|
---|
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
463 |
|
---|
464 |
|
---|
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
470 | sed -n '
|
---|
471 | p
|
---|
472 | /[$]LINENO/=
|
---|
473 | ' <$as_myself |
|
---|
474 | sed '
|
---|
475 | s/[$]LINENO.*/&-/
|
---|
476 | t lineno
|
---|
477 | b
|
---|
478 | :lineno
|
---|
479 | N
|
---|
480 | :loop
|
---|
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
482 | t loop
|
---|
483 | s/-\n.*//
|
---|
484 | ' >$as_me.lineno &&
|
---|
485 | chmod +x "$as_me.lineno" ||
|
---|
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
487 |
|
---|
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
489 | # already done that, so ensure we don't try to do so again and fall
|
---|
490 | # in an infinite loop. This has already happened in practice.
|
---|
491 | _as_can_reexec=no; export _as_can_reexec
|
---|
492 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
493 | # (the dirname of $[0] is not the place where we might find the
|
---|
494 | # original and so on. Autoconf is especially sensitive to this).
|
---|
495 | . "./$as_me.lineno"
|
---|
496 | # Exit status is that of the last command.
|
---|
497 | exit
|
---|
498 | }
|
---|
499 |
|
---|
500 | ECHO_C= ECHO_N= ECHO_T=
|
---|
501 | case `echo -n x` in #(((((
|
---|
502 | -n*)
|
---|
503 | case `echo 'xy\c'` in
|
---|
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
505 | xy) ECHO_C='\c';;
|
---|
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
507 | ECHO_T=' ';;
|
---|
508 | esac;;
|
---|
509 | *)
|
---|
510 | ECHO_N='-n';;
|
---|
511 | esac
|
---|
512 |
|
---|
513 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
514 | if test -d conf$$.dir; then
|
---|
515 | rm -f conf$$.dir/conf$$.file
|
---|
516 | else
|
---|
517 | rm -f conf$$.dir
|
---|
518 | mkdir conf$$.dir 2>/dev/null
|
---|
519 | fi
|
---|
520 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
522 | as_ln_s='ln -s'
|
---|
523 | # ... but there are two gotchas:
|
---|
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
526 | # In both cases, we have to default to `cp -pR'.
|
---|
527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
528 | as_ln_s='cp -pR'
|
---|
529 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
530 | as_ln_s=ln
|
---|
531 | else
|
---|
532 | as_ln_s='cp -pR'
|
---|
533 | fi
|
---|
534 | else
|
---|
535 | as_ln_s='cp -pR'
|
---|
536 | fi
|
---|
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
538 | rmdir conf$$.dir 2>/dev/null
|
---|
539 |
|
---|
540 | if mkdir -p . 2>/dev/null; then
|
---|
541 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
542 | else
|
---|
543 | test -d ./-p && rmdir ./-p
|
---|
544 | as_mkdir_p=false
|
---|
545 | fi
|
---|
546 |
|
---|
547 | as_test_x='test -x'
|
---|
548 | as_executable_p=as_fn_executable_p
|
---|
549 |
|
---|
550 | # Sed expression to map a string onto a valid CPP name.
|
---|
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
552 |
|
---|
553 | # Sed expression to map a string onto a valid variable name.
|
---|
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
555 |
|
---|
556 |
|
---|
557 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
558 | exec 6>&1
|
---|
559 |
|
---|
560 | # Name of the host.
|
---|
561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
562 | # so uname gets run too.
|
---|
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
564 |
|
---|
565 | #
|
---|
566 | # Initializations.
|
---|
567 | #
|
---|
568 | ac_default_prefix=/usr/local
|
---|
569 | ac_clean_files=
|
---|
570 | ac_config_libobj_dir=.
|
---|
571 | LIBOBJS=
|
---|
572 | cross_compiling=no
|
---|
573 | subdirs=
|
---|
574 | MFLAGS=
|
---|
575 | MAKEFLAGS=
|
---|
576 |
|
---|
577 | # Identity of this package.
|
---|
578 | PACKAGE_NAME=
|
---|
579 | PACKAGE_TARNAME=
|
---|
580 | PACKAGE_VERSION=
|
---|
581 | PACKAGE_STRING=
|
---|
582 | PACKAGE_BUGREPORT=
|
---|
583 | PACKAGE_URL=
|
---|
584 |
|
---|
585 | # Factoring default headers for most tests.
|
---|
586 | ac_includes_default="\
|
---|
587 | #include <stdio.h>
|
---|
588 | #ifdef HAVE_SYS_TYPES_H
|
---|
589 | # include <sys/types.h>
|
---|
590 | #endif
|
---|
591 | #ifdef HAVE_SYS_STAT_H
|
---|
592 | # include <sys/stat.h>
|
---|
593 | #endif
|
---|
594 | #ifdef STDC_HEADERS
|
---|
595 | # include <stdlib.h>
|
---|
596 | # include <stddef.h>
|
---|
597 | #else
|
---|
598 | # ifdef HAVE_STDLIB_H
|
---|
599 | # include <stdlib.h>
|
---|
600 | # endif
|
---|
601 | #endif
|
---|
602 | #ifdef HAVE_STRING_H
|
---|
603 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
604 | # include <memory.h>
|
---|
605 | # endif
|
---|
606 | # include <string.h>
|
---|
607 | #endif
|
---|
608 | #ifdef HAVE_STRINGS_H
|
---|
609 | # include <strings.h>
|
---|
610 | #endif
|
---|
611 | #ifdef HAVE_INTTYPES_H
|
---|
612 | # include <inttypes.h>
|
---|
613 | #endif
|
---|
614 | #ifdef HAVE_STDINT_H
|
---|
615 | # include <stdint.h>
|
---|
616 | #endif
|
---|
617 | #ifdef HAVE_UNISTD_H
|
---|
618 | # include <unistd.h>
|
---|
619 | #endif"
|
---|
620 |
|
---|
621 | enable_option_checking=no
|
---|
622 | ac_subst_vars='LTLIBOBJS
|
---|
623 | subdirs
|
---|
624 | MODULEDIRS
|
---|
625 | gsdlos
|
---|
626 | STATIC
|
---|
627 | LIBOBJS
|
---|
628 | ALLOCA
|
---|
629 | ANSI2KNR
|
---|
630 | U
|
---|
631 | EGREP
|
---|
632 | GREP
|
---|
633 | CPP
|
---|
634 | MICO_VER
|
---|
635 | ARCH_DEP_FLAGS
|
---|
636 | STRIP
|
---|
637 | RANLIB
|
---|
638 | SET_MAKE
|
---|
639 | LN_S
|
---|
640 | INSTALL_DATA
|
---|
641 | INSTALL_SCRIPT
|
---|
642 | INSTALL_PROGRAM
|
---|
643 | target_os
|
---|
644 | target_vendor
|
---|
645 | target_cpu
|
---|
646 | target
|
---|
647 | host_os
|
---|
648 | host_vendor
|
---|
649 | host_cpu
|
---|
650 | host
|
---|
651 | build_os
|
---|
652 | build_vendor
|
---|
653 | build_cpu
|
---|
654 | build
|
---|
655 | YFLAGS
|
---|
656 | YACC
|
---|
657 | AWK
|
---|
658 | uudecode
|
---|
659 | JAVA
|
---|
660 | JAVACFLAGS
|
---|
661 | JAVAC
|
---|
662 | ac_ct_CXX
|
---|
663 | CXXFLAGS
|
---|
664 | CXX
|
---|
665 | OBJEXT
|
---|
666 | EXEEXT
|
---|
667 | ac_ct_CC
|
---|
668 | CPPFLAGS
|
---|
669 | CC
|
---|
670 | CFLAGS
|
---|
671 | LDFLAGS
|
---|
672 | ENABLE_GNOMELIB_EXT
|
---|
673 | USE_SQLITE
|
---|
674 | ENABLE_ACCENTFOLD
|
---|
675 | USE_GDBM
|
---|
676 | USE_JDBM
|
---|
677 | USE_WVWARE
|
---|
678 | ENABLE_JAVA
|
---|
679 | USE_YAZ
|
---|
680 | USE_Z3950
|
---|
681 | MICO_DIR
|
---|
682 | USE_CORBA
|
---|
683 | USE_LANGACTION
|
---|
684 | USE_FASTCGI
|
---|
685 | VERSION
|
---|
686 | PACKAGE
|
---|
687 | target_alias
|
---|
688 | host_alias
|
---|
689 | build_alias
|
---|
690 | LIBS
|
---|
691 | ECHO_T
|
---|
692 | ECHO_N
|
---|
693 | ECHO_C
|
---|
694 | DEFS
|
---|
695 | mandir
|
---|
696 | localedir
|
---|
697 | libdir
|
---|
698 | psdir
|
---|
699 | pdfdir
|
---|
700 | dvidir
|
---|
701 | htmldir
|
---|
702 | infodir
|
---|
703 | docdir
|
---|
704 | oldincludedir
|
---|
705 | includedir
|
---|
706 | runstatedir
|
---|
707 | localstatedir
|
---|
708 | sharedstatedir
|
---|
709 | sysconfdir
|
---|
710 | datadir
|
---|
711 | datarootdir
|
---|
712 | libexecdir
|
---|
713 | sbindir
|
---|
714 | bindir
|
---|
715 | program_transform_name
|
---|
716 | prefix
|
---|
717 | exec_prefix
|
---|
718 | PACKAGE_URL
|
---|
719 | PACKAGE_BUGREPORT
|
---|
720 | PACKAGE_STRING
|
---|
721 | PACKAGE_VERSION
|
---|
722 | PACKAGE_TARNAME
|
---|
723 | PACKAGE_NAME
|
---|
724 | PATH_SEPARATOR
|
---|
725 | SHELL'
|
---|
726 | ac_subst_files=''
|
---|
727 | ac_user_opts='
|
---|
728 | enable_option_checking
|
---|
729 | enable_corba
|
---|
730 | with_micodir
|
---|
731 | enable_z3950
|
---|
732 | enable_yaz
|
---|
733 | enable_java
|
---|
734 | enable_wvware
|
---|
735 | enable_jdbm
|
---|
736 | enable_gdbm
|
---|
737 | enable_accentfold
|
---|
738 | enable_sqlite
|
---|
739 | enable_gnome_lib_ext
|
---|
740 | with_dmalloc
|
---|
741 | with_regex
|
---|
742 | '
|
---|
743 | ac_precious_vars='build_alias
|
---|
744 | host_alias
|
---|
745 | target_alias
|
---|
746 | CC
|
---|
747 | CFLAGS
|
---|
748 | LDFLAGS
|
---|
749 | LIBS
|
---|
750 | CPPFLAGS
|
---|
751 | CXX
|
---|
752 | CXXFLAGS
|
---|
753 | CCC
|
---|
754 | YACC
|
---|
755 | YFLAGS
|
---|
756 | CPP'
|
---|
757 | ac_subdirs_all='packages'
|
---|
758 |
|
---|
759 | # Initialize some variables set by options.
|
---|
760 | ac_init_help=
|
---|
761 | ac_init_version=false
|
---|
762 | ac_unrecognized_opts=
|
---|
763 | ac_unrecognized_sep=
|
---|
764 | # The variables have the same names as the options, with
|
---|
765 | # dashes changed to underlines.
|
---|
766 | cache_file=/dev/null
|
---|
767 | exec_prefix=NONE
|
---|
768 | no_create=
|
---|
769 | no_recursion=
|
---|
770 | prefix=NONE
|
---|
771 | program_prefix=NONE
|
---|
772 | program_suffix=NONE
|
---|
773 | program_transform_name=s,x,x,
|
---|
774 | silent=
|
---|
775 | site=
|
---|
776 | srcdir=
|
---|
777 | verbose=
|
---|
778 | x_includes=NONE
|
---|
779 | x_libraries=NONE
|
---|
780 |
|
---|
781 | # Installation directory options.
|
---|
782 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
783 | # and all the variables that are supposed to be based on exec_prefix
|
---|
784 | # by default will actually change.
|
---|
785 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
786 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
787 | bindir='${exec_prefix}/bin'
|
---|
788 | sbindir='${exec_prefix}/sbin'
|
---|
789 | libexecdir='${exec_prefix}/libexec'
|
---|
790 | datarootdir='${prefix}/share'
|
---|
791 | datadir='${datarootdir}'
|
---|
792 | sysconfdir='${prefix}/etc'
|
---|
793 | sharedstatedir='${prefix}/com'
|
---|
794 | localstatedir='${prefix}/var'
|
---|
795 | runstatedir='${localstatedir}/run'
|
---|
796 | includedir='${prefix}/include'
|
---|
797 | oldincludedir='/usr/include'
|
---|
798 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
799 | infodir='${datarootdir}/info'
|
---|
800 | htmldir='${docdir}'
|
---|
801 | dvidir='${docdir}'
|
---|
802 | pdfdir='${docdir}'
|
---|
803 | psdir='${docdir}'
|
---|
804 | libdir='${exec_prefix}/lib'
|
---|
805 | localedir='${datarootdir}/locale'
|
---|
806 | mandir='${datarootdir}/man'
|
---|
807 |
|
---|
808 | ac_prev=
|
---|
809 | ac_dashdash=
|
---|
810 | for ac_option
|
---|
811 | do
|
---|
812 | # If the previous option needs an argument, assign it.
|
---|
813 | if test -n "$ac_prev"; then
|
---|
814 | eval $ac_prev=\$ac_option
|
---|
815 | ac_prev=
|
---|
816 | continue
|
---|
817 | fi
|
---|
818 |
|
---|
819 | case $ac_option in
|
---|
820 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
821 | *=) ac_optarg= ;;
|
---|
822 | *) ac_optarg=yes ;;
|
---|
823 | esac
|
---|
824 |
|
---|
825 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
826 |
|
---|
827 | case $ac_dashdash$ac_option in
|
---|
828 | --)
|
---|
829 | ac_dashdash=yes ;;
|
---|
830 |
|
---|
831 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
832 | ac_prev=bindir ;;
|
---|
833 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
834 | bindir=$ac_optarg ;;
|
---|
835 |
|
---|
836 | -build | --build | --buil | --bui | --bu)
|
---|
837 | ac_prev=build_alias ;;
|
---|
838 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
839 | build_alias=$ac_optarg ;;
|
---|
840 |
|
---|
841 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
842 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
843 | ac_prev=cache_file ;;
|
---|
844 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
845 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
846 | cache_file=$ac_optarg ;;
|
---|
847 |
|
---|
848 | --config-cache | -C)
|
---|
849 | cache_file=config.cache ;;
|
---|
850 |
|
---|
851 | -datadir | --datadir | --datadi | --datad)
|
---|
852 | ac_prev=datadir ;;
|
---|
853 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
854 | datadir=$ac_optarg ;;
|
---|
855 |
|
---|
856 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
857 | | --dataroo | --dataro | --datar)
|
---|
858 | ac_prev=datarootdir ;;
|
---|
859 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
860 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
861 | datarootdir=$ac_optarg ;;
|
---|
862 |
|
---|
863 | -disable-* | --disable-*)
|
---|
864 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
865 | # Reject names that are not valid shell variable names.
|
---|
866 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
867 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
868 | ac_useropt_orig=$ac_useropt
|
---|
869 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
870 | case $ac_user_opts in
|
---|
871 | *"
|
---|
872 | "enable_$ac_useropt"
|
---|
873 | "*) ;;
|
---|
874 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
875 | ac_unrecognized_sep=', ';;
|
---|
876 | esac
|
---|
877 | eval enable_$ac_useropt=no ;;
|
---|
878 |
|
---|
879 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
880 | ac_prev=docdir ;;
|
---|
881 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
882 | docdir=$ac_optarg ;;
|
---|
883 |
|
---|
884 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
885 | ac_prev=dvidir ;;
|
---|
886 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
887 | dvidir=$ac_optarg ;;
|
---|
888 |
|
---|
889 | -enable-* | --enable-*)
|
---|
890 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
891 | # Reject names that are not valid shell variable names.
|
---|
892 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
893 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
894 | ac_useropt_orig=$ac_useropt
|
---|
895 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
896 | case $ac_user_opts in
|
---|
897 | *"
|
---|
898 | "enable_$ac_useropt"
|
---|
899 | "*) ;;
|
---|
900 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
901 | ac_unrecognized_sep=', ';;
|
---|
902 | esac
|
---|
903 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
904 |
|
---|
905 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
906 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
907 | | --exec | --exe | --ex)
|
---|
908 | ac_prev=exec_prefix ;;
|
---|
909 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
910 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
911 | | --exec=* | --exe=* | --ex=*)
|
---|
912 | exec_prefix=$ac_optarg ;;
|
---|
913 |
|
---|
914 | -gas | --gas | --ga | --g)
|
---|
915 | # Obsolete; use --with-gas.
|
---|
916 | with_gas=yes ;;
|
---|
917 |
|
---|
918 | -help | --help | --hel | --he | -h)
|
---|
919 | ac_init_help=long ;;
|
---|
920 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
921 | ac_init_help=recursive ;;
|
---|
922 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
923 | ac_init_help=short ;;
|
---|
924 |
|
---|
925 | -host | --host | --hos | --ho)
|
---|
926 | ac_prev=host_alias ;;
|
---|
927 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
928 | host_alias=$ac_optarg ;;
|
---|
929 |
|
---|
930 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
931 | ac_prev=htmldir ;;
|
---|
932 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
933 | | --ht=*)
|
---|
934 | htmldir=$ac_optarg ;;
|
---|
935 |
|
---|
936 | -includedir | --includedir | --includedi | --included | --include \
|
---|
937 | | --includ | --inclu | --incl | --inc)
|
---|
938 | ac_prev=includedir ;;
|
---|
939 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
940 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
941 | includedir=$ac_optarg ;;
|
---|
942 |
|
---|
943 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
944 | ac_prev=infodir ;;
|
---|
945 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
946 | infodir=$ac_optarg ;;
|
---|
947 |
|
---|
948 | -libdir | --libdir | --libdi | --libd)
|
---|
949 | ac_prev=libdir ;;
|
---|
950 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
951 | libdir=$ac_optarg ;;
|
---|
952 |
|
---|
953 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
954 | | --libexe | --libex | --libe)
|
---|
955 | ac_prev=libexecdir ;;
|
---|
956 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
957 | | --libexe=* | --libex=* | --libe=*)
|
---|
958 | libexecdir=$ac_optarg ;;
|
---|
959 |
|
---|
960 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
961 | ac_prev=localedir ;;
|
---|
962 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
963 | localedir=$ac_optarg ;;
|
---|
964 |
|
---|
965 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
966 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
967 | ac_prev=localstatedir ;;
|
---|
968 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
969 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
970 | localstatedir=$ac_optarg ;;
|
---|
971 |
|
---|
972 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
973 | ac_prev=mandir ;;
|
---|
974 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
975 | mandir=$ac_optarg ;;
|
---|
976 |
|
---|
977 | -nfp | --nfp | --nf)
|
---|
978 | # Obsolete; use --without-fp.
|
---|
979 | with_fp=no ;;
|
---|
980 |
|
---|
981 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
982 | | --no-cr | --no-c | -n)
|
---|
983 | no_create=yes ;;
|
---|
984 |
|
---|
985 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
986 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
987 | no_recursion=yes ;;
|
---|
988 |
|
---|
989 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
990 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
991 | | --oldin | --oldi | --old | --ol | --o)
|
---|
992 | ac_prev=oldincludedir ;;
|
---|
993 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
994 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
995 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
996 | oldincludedir=$ac_optarg ;;
|
---|
997 |
|
---|
998 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
999 | ac_prev=prefix ;;
|
---|
1000 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
1001 | prefix=$ac_optarg ;;
|
---|
1002 |
|
---|
1003 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
1004 | | --program-pre | --program-pr | --program-p)
|
---|
1005 | ac_prev=program_prefix ;;
|
---|
1006 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
1007 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
1008 | program_prefix=$ac_optarg ;;
|
---|
1009 |
|
---|
1010 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
1011 | | --program-suf | --program-su | --program-s)
|
---|
1012 | ac_prev=program_suffix ;;
|
---|
1013 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
1014 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
1015 | program_suffix=$ac_optarg ;;
|
---|
1016 |
|
---|
1017 | -program-transform-name | --program-transform-name \
|
---|
1018 | | --program-transform-nam | --program-transform-na \
|
---|
1019 | | --program-transform-n | --program-transform- \
|
---|
1020 | | --program-transform | --program-transfor \
|
---|
1021 | | --program-transfo | --program-transf \
|
---|
1022 | | --program-trans | --program-tran \
|
---|
1023 | | --progr-tra | --program-tr | --program-t)
|
---|
1024 | ac_prev=program_transform_name ;;
|
---|
1025 | -program-transform-name=* | --program-transform-name=* \
|
---|
1026 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1027 | | --program-transform-n=* | --program-transform-=* \
|
---|
1028 | | --program-transform=* | --program-transfor=* \
|
---|
1029 | | --program-transfo=* | --program-transf=* \
|
---|
1030 | | --program-trans=* | --program-tran=* \
|
---|
1031 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1032 | program_transform_name=$ac_optarg ;;
|
---|
1033 |
|
---|
1034 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1035 | ac_prev=pdfdir ;;
|
---|
1036 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1037 | pdfdir=$ac_optarg ;;
|
---|
1038 |
|
---|
1039 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1040 | ac_prev=psdir ;;
|
---|
1041 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1042 | psdir=$ac_optarg ;;
|
---|
1043 |
|
---|
1044 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1045 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1046 | silent=yes ;;
|
---|
1047 |
|
---|
1048 | -runstatedir | --runstatedir | --runstatedi | --runstated \
|
---|
1049 | | --runstate | --runstat | --runsta | --runst | --runs \
|
---|
1050 | | --run | --ru | --r)
|
---|
1051 | ac_prev=runstatedir ;;
|
---|
1052 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
---|
1053 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
---|
1054 | | --run=* | --ru=* | --r=*)
|
---|
1055 | runstatedir=$ac_optarg ;;
|
---|
1056 |
|
---|
1057 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1058 | ac_prev=sbindir ;;
|
---|
1059 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1060 | | --sbi=* | --sb=*)
|
---|
1061 | sbindir=$ac_optarg ;;
|
---|
1062 |
|
---|
1063 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1064 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1065 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1066 | | --sha | --sh)
|
---|
1067 | ac_prev=sharedstatedir ;;
|
---|
1068 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1069 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1070 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1071 | | --sha=* | --sh=*)
|
---|
1072 | sharedstatedir=$ac_optarg ;;
|
---|
1073 |
|
---|
1074 | -site | --site | --sit)
|
---|
1075 | ac_prev=site ;;
|
---|
1076 | -site=* | --site=* | --sit=*)
|
---|
1077 | site=$ac_optarg ;;
|
---|
1078 |
|
---|
1079 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1080 | ac_prev=srcdir ;;
|
---|
1081 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1082 | srcdir=$ac_optarg ;;
|
---|
1083 |
|
---|
1084 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1085 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1086 | ac_prev=sysconfdir ;;
|
---|
1087 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1088 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1089 | sysconfdir=$ac_optarg ;;
|
---|
1090 |
|
---|
1091 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1092 | ac_prev=target_alias ;;
|
---|
1093 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1094 | target_alias=$ac_optarg ;;
|
---|
1095 |
|
---|
1096 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1097 | verbose=yes ;;
|
---|
1098 |
|
---|
1099 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1100 | ac_init_version=: ;;
|
---|
1101 |
|
---|
1102 | -with-* | --with-*)
|
---|
1103 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1104 | # Reject names that are not valid shell variable names.
|
---|
1105 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1106 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1107 | ac_useropt_orig=$ac_useropt
|
---|
1108 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1109 | case $ac_user_opts in
|
---|
1110 | *"
|
---|
1111 | "with_$ac_useropt"
|
---|
1112 | "*) ;;
|
---|
1113 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1114 | ac_unrecognized_sep=', ';;
|
---|
1115 | esac
|
---|
1116 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1117 |
|
---|
1118 | -without-* | --without-*)
|
---|
1119 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1120 | # Reject names that are not valid shell variable names.
|
---|
1121 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1122 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1123 | ac_useropt_orig=$ac_useropt
|
---|
1124 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1125 | case $ac_user_opts in
|
---|
1126 | *"
|
---|
1127 | "with_$ac_useropt"
|
---|
1128 | "*) ;;
|
---|
1129 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1130 | ac_unrecognized_sep=', ';;
|
---|
1131 | esac
|
---|
1132 | eval with_$ac_useropt=no ;;
|
---|
1133 |
|
---|
1134 | --x)
|
---|
1135 | # Obsolete; use --with-x.
|
---|
1136 | with_x=yes ;;
|
---|
1137 |
|
---|
1138 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1139 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1140 | ac_prev=x_includes ;;
|
---|
1141 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1142 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1143 | x_includes=$ac_optarg ;;
|
---|
1144 |
|
---|
1145 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1146 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1147 | ac_prev=x_libraries ;;
|
---|
1148 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1149 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1150 | x_libraries=$ac_optarg ;;
|
---|
1151 |
|
---|
1152 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1153 | Try \`$0 --help' for more information"
|
---|
1154 | ;;
|
---|
1155 |
|
---|
1156 | *=*)
|
---|
1157 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1158 | # Reject names that are not valid shell variable names.
|
---|
1159 | case $ac_envvar in #(
|
---|
1160 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1161 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1162 | esac
|
---|
1163 | eval $ac_envvar=\$ac_optarg
|
---|
1164 | export $ac_envvar ;;
|
---|
1165 |
|
---|
1166 | *)
|
---|
1167 | # FIXME: should be removed in autoconf 3.0.
|
---|
1168 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1169 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1170 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1171 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1172 | ;;
|
---|
1173 |
|
---|
1174 | esac
|
---|
1175 | done
|
---|
1176 |
|
---|
1177 | if test -n "$ac_prev"; then
|
---|
1178 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1179 | as_fn_error $? "missing argument to $ac_option"
|
---|
1180 | fi
|
---|
1181 |
|
---|
1182 | if test -n "$ac_unrecognized_opts"; then
|
---|
1183 | case $enable_option_checking in
|
---|
1184 | no) ;;
|
---|
1185 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1186 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1187 | esac
|
---|
1188 | fi
|
---|
1189 |
|
---|
1190 | # Check all directory arguments for consistency.
|
---|
1191 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1192 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1193 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1194 | libdir localedir mandir runstatedir
|
---|
1195 | do
|
---|
1196 | eval ac_val=\$$ac_var
|
---|
1197 | # Remove trailing slashes.
|
---|
1198 | case $ac_val in
|
---|
1199 | */ )
|
---|
1200 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1201 | eval $ac_var=\$ac_val;;
|
---|
1202 | esac
|
---|
1203 | # Be sure to have absolute directory names.
|
---|
1204 | case $ac_val in
|
---|
1205 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1206 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1207 | esac
|
---|
1208 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1209 | done
|
---|
1210 |
|
---|
1211 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1212 | # used to hold the argument of --host etc.
|
---|
1213 | # FIXME: To remove some day.
|
---|
1214 | build=$build_alias
|
---|
1215 | host=$host_alias
|
---|
1216 | target=$target_alias
|
---|
1217 |
|
---|
1218 | # FIXME: To remove some day.
|
---|
1219 | if test "x$host_alias" != x; then
|
---|
1220 | if test "x$build_alias" = x; then
|
---|
1221 | cross_compiling=maybe
|
---|
1222 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1223 | cross_compiling=yes
|
---|
1224 | fi
|
---|
1225 | fi
|
---|
1226 |
|
---|
1227 | ac_tool_prefix=
|
---|
1228 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1229 |
|
---|
1230 | test "$silent" = yes && exec 6>/dev/null
|
---|
1231 |
|
---|
1232 |
|
---|
1233 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1234 | ac_ls_di=`ls -di .` &&
|
---|
1235 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1236 | as_fn_error $? "working directory cannot be determined"
|
---|
1237 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1238 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1239 |
|
---|
1240 |
|
---|
1241 | # Find the source files, if location was not specified.
|
---|
1242 | if test -z "$srcdir"; then
|
---|
1243 | ac_srcdir_defaulted=yes
|
---|
1244 | # Try the directory containing this script, then the parent directory.
|
---|
1245 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1246 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1247 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1248 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1249 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1250 | $as_echo X"$as_myself" |
|
---|
1251 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1252 | s//\1/
|
---|
1253 | q
|
---|
1254 | }
|
---|
1255 | /^X\(\/\/\)[^/].*/{
|
---|
1256 | s//\1/
|
---|
1257 | q
|
---|
1258 | }
|
---|
1259 | /^X\(\/\/\)$/{
|
---|
1260 | s//\1/
|
---|
1261 | q
|
---|
1262 | }
|
---|
1263 | /^X\(\/\).*/{
|
---|
1264 | s//\1/
|
---|
1265 | q
|
---|
1266 | }
|
---|
1267 | s/.*/./; q'`
|
---|
1268 | srcdir=$ac_confdir
|
---|
1269 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1270 | srcdir=..
|
---|
1271 | fi
|
---|
1272 | else
|
---|
1273 | ac_srcdir_defaulted=no
|
---|
1274 | fi
|
---|
1275 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1276 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1277 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1278 | fi
|
---|
1279 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1280 | ac_abs_confdir=`(
|
---|
1281 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1282 | pwd)`
|
---|
1283 | # When building in place, set srcdir=.
|
---|
1284 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1285 | srcdir=.
|
---|
1286 | fi
|
---|
1287 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1288 | # Double slashes in file names in object file debugging info
|
---|
1289 | # mess up M-x gdb in Emacs.
|
---|
1290 | case $srcdir in
|
---|
1291 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1292 | esac
|
---|
1293 | for ac_var in $ac_precious_vars; do
|
---|
1294 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1295 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1296 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1297 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1298 | done
|
---|
1299 |
|
---|
1300 | #
|
---|
1301 | # Report the --help message.
|
---|
1302 | #
|
---|
1303 | if test "$ac_init_help" = "long"; then
|
---|
1304 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1305 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1306 | cat <<_ACEOF
|
---|
1307 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
1308 |
|
---|
1309 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1310 |
|
---|
1311 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1312 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1313 |
|
---|
1314 | Defaults for the options are specified in brackets.
|
---|
1315 |
|
---|
1316 | Configuration:
|
---|
1317 | -h, --help display this help and exit
|
---|
1318 | --help=short display options specific to this package
|
---|
1319 | --help=recursive display the short help of all the included packages
|
---|
1320 | -V, --version display version information and exit
|
---|
1321 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1322 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1323 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1324 | -n, --no-create do not create output files
|
---|
1325 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1326 |
|
---|
1327 | Installation directories:
|
---|
1328 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1329 | [$ac_default_prefix]
|
---|
1330 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1331 | [PREFIX]
|
---|
1332 |
|
---|
1333 | By default, \`make install' will install all the files in
|
---|
1334 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1335 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1336 | for instance \`--prefix=\$HOME'.
|
---|
1337 |
|
---|
1338 | For better control, use the options below.
|
---|
1339 |
|
---|
1340 | Fine tuning of the installation directories:
|
---|
1341 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1342 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1343 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1344 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1345 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1346 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1347 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
---|
1348 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1349 | --includedir=DIR C header files [PREFIX/include]
|
---|
1350 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1351 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1352 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1353 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1354 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1355 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1356 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
1357 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1358 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1359 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1360 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1361 | _ACEOF
|
---|
1362 |
|
---|
1363 | cat <<\_ACEOF
|
---|
1364 |
|
---|
1365 | System types:
|
---|
1366 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1367 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1368 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
1369 | _ACEOF
|
---|
1370 | fi
|
---|
1371 |
|
---|
1372 | if test -n "$ac_init_help"; then
|
---|
1373 |
|
---|
1374 | cat <<\_ACEOF
|
---|
1375 |
|
---|
1376 | Optional Features:
|
---|
1377 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1378 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1379 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1380 | --enable-corba Enable CORBA support
|
---|
1381 | --enable-z3950 Enable Z39.50 client support
|
---|
1382 | --disable-yaz Disable YAZ compilation
|
---|
1383 | --disable-java Disable Java compilation
|
---|
1384 | --disable-wvware Disable wvWare compilation
|
---|
1385 | --disable-jdbm Disable JDBM compilation
|
---|
1386 | --disable-gdbm Disable GDBM compilation
|
---|
1387 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
1388 | --disable-sqlite Disable SQLite support
|
---|
1389 | --enable-gnome-lib-ext Enable the gnome-lib extension
|
---|
1390 |
|
---|
1391 | Optional Packages:
|
---|
1392 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1393 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1394 | --with-micodir Use installed MICO directory
|
---|
1395 | --with-dmalloc use dmalloc, as in
|
---|
1396 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
1397 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
1398 |
|
---|
1399 | Some influential environment variables:
|
---|
1400 | CC C compiler command
|
---|
1401 | CFLAGS C compiler flags
|
---|
1402 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1403 | nonstandard directory <lib dir>
|
---|
1404 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1405 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1406 | you have headers in a nonstandard directory <include dir>
|
---|
1407 | CXX C++ compiler command
|
---|
1408 | CXXFLAGS C++ compiler flags
|
---|
1409 | YACC The `Yet Another Compiler Compiler' implementation to use.
|
---|
1410 | Defaults to the first program found out of: `bison -y', `byacc',
|
---|
1411 | `yacc'.
|
---|
1412 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
1413 | This script will default YFLAGS to the empty string to avoid a
|
---|
1414 | default value of `-d' given by some make applications.
|
---|
1415 | CPP C preprocessor
|
---|
1416 |
|
---|
1417 | Use these variables to override the choices made by `configure' or to help
|
---|
1418 | it to find libraries and programs with nonstandard names/locations.
|
---|
1419 |
|
---|
1420 | Report bugs to the package provider.
|
---|
1421 | _ACEOF
|
---|
1422 | ac_status=$?
|
---|
1423 | fi
|
---|
1424 |
|
---|
1425 | if test "$ac_init_help" = "recursive"; then
|
---|
1426 | # If there are subdirs, report their specific --help.
|
---|
1427 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1428 | test -d "$ac_dir" ||
|
---|
1429 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1430 | continue
|
---|
1431 | ac_builddir=.
|
---|
1432 |
|
---|
1433 | case "$ac_dir" in
|
---|
1434 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1435 | *)
|
---|
1436 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1437 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1438 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1439 | case $ac_top_builddir_sub in
|
---|
1440 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1441 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1442 | esac ;;
|
---|
1443 | esac
|
---|
1444 | ac_abs_top_builddir=$ac_pwd
|
---|
1445 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1446 | # for backward compatibility:
|
---|
1447 | ac_top_builddir=$ac_top_build_prefix
|
---|
1448 |
|
---|
1449 | case $srcdir in
|
---|
1450 | .) # We are building in place.
|
---|
1451 | ac_srcdir=.
|
---|
1452 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1453 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1454 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1455 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1456 | ac_top_srcdir=$srcdir
|
---|
1457 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1458 | *) # Relative name.
|
---|
1459 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1460 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1461 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1462 | esac
|
---|
1463 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1464 |
|
---|
1465 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1466 | # Check for guested configure.
|
---|
1467 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1468 | echo &&
|
---|
1469 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1470 | elif test -f "$ac_srcdir/configure"; then
|
---|
1471 | echo &&
|
---|
1472 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1473 | else
|
---|
1474 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1475 | fi || ac_status=$?
|
---|
1476 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1477 | done
|
---|
1478 | fi
|
---|
1479 |
|
---|
1480 | test -n "$ac_init_help" && exit $ac_status
|
---|
1481 | if $ac_init_version; then
|
---|
1482 | cat <<\_ACEOF
|
---|
1483 | configure
|
---|
1484 | generated by GNU Autoconf 2.69
|
---|
1485 |
|
---|
1486 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1487 | This configure script is free software; the Free Software Foundation
|
---|
1488 | gives unlimited permission to copy, distribute and modify it.
|
---|
1489 | _ACEOF
|
---|
1490 | exit
|
---|
1491 | fi
|
---|
1492 |
|
---|
1493 | ## ------------------------ ##
|
---|
1494 | ## Autoconf initialization. ##
|
---|
1495 | ## ------------------------ ##
|
---|
1496 |
|
---|
1497 | # ac_fn_c_try_compile LINENO
|
---|
1498 | # --------------------------
|
---|
1499 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1500 | ac_fn_c_try_compile ()
|
---|
1501 | {
|
---|
1502 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1503 | rm -f conftest.$ac_objext
|
---|
1504 | if { { ac_try="$ac_compile"
|
---|
1505 | case "(($ac_try" in
|
---|
1506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1507 | *) ac_try_echo=$ac_try;;
|
---|
1508 | esac
|
---|
1509 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1510 | $as_echo "$ac_try_echo"; } >&5
|
---|
1511 | (eval "$ac_compile") 2>conftest.err
|
---|
1512 | ac_status=$?
|
---|
1513 | if test -s conftest.err; then
|
---|
1514 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1515 | cat conftest.er1 >&5
|
---|
1516 | mv -f conftest.er1 conftest.err
|
---|
1517 | fi
|
---|
1518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1519 | test $ac_status = 0; } && {
|
---|
1520 | test -z "$ac_c_werror_flag" ||
|
---|
1521 | test ! -s conftest.err
|
---|
1522 | } && test -s conftest.$ac_objext; then :
|
---|
1523 | ac_retval=0
|
---|
1524 | else
|
---|
1525 | $as_echo "$as_me: failed program was:" >&5
|
---|
1526 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1527 |
|
---|
1528 | ac_retval=1
|
---|
1529 | fi
|
---|
1530 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1531 | as_fn_set_status $ac_retval
|
---|
1532 |
|
---|
1533 | } # ac_fn_c_try_compile
|
---|
1534 |
|
---|
1535 | # ac_fn_cxx_try_compile LINENO
|
---|
1536 | # ----------------------------
|
---|
1537 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1538 | ac_fn_cxx_try_compile ()
|
---|
1539 | {
|
---|
1540 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1541 | rm -f conftest.$ac_objext
|
---|
1542 | if { { ac_try="$ac_compile"
|
---|
1543 | case "(($ac_try" in
|
---|
1544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1545 | *) ac_try_echo=$ac_try;;
|
---|
1546 | esac
|
---|
1547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1548 | $as_echo "$ac_try_echo"; } >&5
|
---|
1549 | (eval "$ac_compile") 2>conftest.err
|
---|
1550 | ac_status=$?
|
---|
1551 | if test -s conftest.err; then
|
---|
1552 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1553 | cat conftest.er1 >&5
|
---|
1554 | mv -f conftest.er1 conftest.err
|
---|
1555 | fi
|
---|
1556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1557 | test $ac_status = 0; } && {
|
---|
1558 | test -z "$ac_cxx_werror_flag" ||
|
---|
1559 | test ! -s conftest.err
|
---|
1560 | } && test -s conftest.$ac_objext; then :
|
---|
1561 | ac_retval=0
|
---|
1562 | else
|
---|
1563 | $as_echo "$as_me: failed program was:" >&5
|
---|
1564 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1565 |
|
---|
1566 | ac_retval=1
|
---|
1567 | fi
|
---|
1568 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1569 | as_fn_set_status $ac_retval
|
---|
1570 |
|
---|
1571 | } # ac_fn_cxx_try_compile
|
---|
1572 |
|
---|
1573 | # ac_fn_c_try_cpp LINENO
|
---|
1574 | # ----------------------
|
---|
1575 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1576 | ac_fn_c_try_cpp ()
|
---|
1577 | {
|
---|
1578 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1579 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1580 | case "(($ac_try" in
|
---|
1581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1582 | *) ac_try_echo=$ac_try;;
|
---|
1583 | esac
|
---|
1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1585 | $as_echo "$ac_try_echo"; } >&5
|
---|
1586 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1587 | ac_status=$?
|
---|
1588 | if test -s conftest.err; then
|
---|
1589 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1590 | cat conftest.er1 >&5
|
---|
1591 | mv -f conftest.er1 conftest.err
|
---|
1592 | fi
|
---|
1593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1594 | test $ac_status = 0; } > conftest.i && {
|
---|
1595 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1596 | test ! -s conftest.err
|
---|
1597 | }; then :
|
---|
1598 | ac_retval=0
|
---|
1599 | else
|
---|
1600 | $as_echo "$as_me: failed program was:" >&5
|
---|
1601 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1602 |
|
---|
1603 | ac_retval=1
|
---|
1604 | fi
|
---|
1605 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1606 | as_fn_set_status $ac_retval
|
---|
1607 |
|
---|
1608 | } # ac_fn_c_try_cpp
|
---|
1609 |
|
---|
1610 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1611 | # -------------------------------------------------------
|
---|
1612 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1613 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1614 | # accordingly.
|
---|
1615 | ac_fn_c_check_header_mongrel ()
|
---|
1616 | {
|
---|
1617 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1618 | if eval \${$3+:} false; then :
|
---|
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1620 | $as_echo_n "checking for $2... " >&6; }
|
---|
1621 | if eval \${$3+:} false; then :
|
---|
1622 | $as_echo_n "(cached) " >&6
|
---|
1623 | fi
|
---|
1624 | eval ac_res=\$$3
|
---|
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1626 | $as_echo "$ac_res" >&6; }
|
---|
1627 | else
|
---|
1628 | # Is the header compilable?
|
---|
1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1630 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1632 | /* end confdefs.h. */
|
---|
1633 | $4
|
---|
1634 | #include <$2>
|
---|
1635 | _ACEOF
|
---|
1636 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1637 | ac_header_compiler=yes
|
---|
1638 | else
|
---|
1639 | ac_header_compiler=no
|
---|
1640 | fi
|
---|
1641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1643 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1644 |
|
---|
1645 | # Is the header present?
|
---|
1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1647 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1649 | /* end confdefs.h. */
|
---|
1650 | #include <$2>
|
---|
1651 | _ACEOF
|
---|
1652 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1653 | ac_header_preproc=yes
|
---|
1654 | else
|
---|
1655 | ac_header_preproc=no
|
---|
1656 | fi
|
---|
1657 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1659 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1660 |
|
---|
1661 | # So? What about this header?
|
---|
1662 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1663 | yes:no: )
|
---|
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1665 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1667 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1668 | ;;
|
---|
1669 | no:yes:* )
|
---|
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1671 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1673 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1675 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1677 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1679 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1680 | ;;
|
---|
1681 | esac
|
---|
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1683 | $as_echo_n "checking for $2... " >&6; }
|
---|
1684 | if eval \${$3+:} false; then :
|
---|
1685 | $as_echo_n "(cached) " >&6
|
---|
1686 | else
|
---|
1687 | eval "$3=\$ac_header_compiler"
|
---|
1688 | fi
|
---|
1689 | eval ac_res=\$$3
|
---|
1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1691 | $as_echo "$ac_res" >&6; }
|
---|
1692 | fi
|
---|
1693 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1694 |
|
---|
1695 | } # ac_fn_c_check_header_mongrel
|
---|
1696 |
|
---|
1697 | # ac_fn_c_try_run LINENO
|
---|
1698 | # ----------------------
|
---|
1699 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1700 | # that executables *can* be run.
|
---|
1701 | ac_fn_c_try_run ()
|
---|
1702 | {
|
---|
1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1704 | if { { ac_try="$ac_link"
|
---|
1705 | case "(($ac_try" in
|
---|
1706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1707 | *) ac_try_echo=$ac_try;;
|
---|
1708 | esac
|
---|
1709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1710 | $as_echo "$ac_try_echo"; } >&5
|
---|
1711 | (eval "$ac_link") 2>&5
|
---|
1712 | ac_status=$?
|
---|
1713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1714 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1715 | { { case "(($ac_try" in
|
---|
1716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1717 | *) ac_try_echo=$ac_try;;
|
---|
1718 | esac
|
---|
1719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1720 | $as_echo "$ac_try_echo"; } >&5
|
---|
1721 | (eval "$ac_try") 2>&5
|
---|
1722 | ac_status=$?
|
---|
1723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1724 | test $ac_status = 0; }; }; then :
|
---|
1725 | ac_retval=0
|
---|
1726 | else
|
---|
1727 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1728 | $as_echo "$as_me: failed program was:" >&5
|
---|
1729 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1730 |
|
---|
1731 | ac_retval=$ac_status
|
---|
1732 | fi
|
---|
1733 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1734 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1735 | as_fn_set_status $ac_retval
|
---|
1736 |
|
---|
1737 | } # ac_fn_c_try_run
|
---|
1738 |
|
---|
1739 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1740 | # -------------------------------------------------------
|
---|
1741 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1742 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1743 | ac_fn_c_check_header_compile ()
|
---|
1744 | {
|
---|
1745 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1747 | $as_echo_n "checking for $2... " >&6; }
|
---|
1748 | if eval \${$3+:} false; then :
|
---|
1749 | $as_echo_n "(cached) " >&6
|
---|
1750 | else
|
---|
1751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1752 | /* end confdefs.h. */
|
---|
1753 | $4
|
---|
1754 | #include <$2>
|
---|
1755 | _ACEOF
|
---|
1756 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1757 | eval "$3=yes"
|
---|
1758 | else
|
---|
1759 | eval "$3=no"
|
---|
1760 | fi
|
---|
1761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1762 | fi
|
---|
1763 | eval ac_res=\$$3
|
---|
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1765 | $as_echo "$ac_res" >&6; }
|
---|
1766 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1767 |
|
---|
1768 | } # ac_fn_c_check_header_compile
|
---|
1769 |
|
---|
1770 | # ac_fn_c_try_link LINENO
|
---|
1771 | # -----------------------
|
---|
1772 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1773 | ac_fn_c_try_link ()
|
---|
1774 | {
|
---|
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1776 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1777 | if { { ac_try="$ac_link"
|
---|
1778 | case "(($ac_try" in
|
---|
1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1780 | *) ac_try_echo=$ac_try;;
|
---|
1781 | esac
|
---|
1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1783 | $as_echo "$ac_try_echo"; } >&5
|
---|
1784 | (eval "$ac_link") 2>conftest.err
|
---|
1785 | ac_status=$?
|
---|
1786 | if test -s conftest.err; then
|
---|
1787 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1788 | cat conftest.er1 >&5
|
---|
1789 | mv -f conftest.er1 conftest.err
|
---|
1790 | fi
|
---|
1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1792 | test $ac_status = 0; } && {
|
---|
1793 | test -z "$ac_c_werror_flag" ||
|
---|
1794 | test ! -s conftest.err
|
---|
1795 | } && test -s conftest$ac_exeext && {
|
---|
1796 | test "$cross_compiling" = yes ||
|
---|
1797 | test -x conftest$ac_exeext
|
---|
1798 | }; then :
|
---|
1799 | ac_retval=0
|
---|
1800 | else
|
---|
1801 | $as_echo "$as_me: failed program was:" >&5
|
---|
1802 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1803 |
|
---|
1804 | ac_retval=1
|
---|
1805 | fi
|
---|
1806 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1807 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1808 | # interfere with the next link command; also delete a directory that is
|
---|
1809 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1810 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1811 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1812 | as_fn_set_status $ac_retval
|
---|
1813 |
|
---|
1814 | } # ac_fn_c_try_link
|
---|
1815 |
|
---|
1816 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1817 | # -------------------------------------------
|
---|
1818 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1819 | # variable VAR accordingly.
|
---|
1820 | ac_fn_c_check_type ()
|
---|
1821 | {
|
---|
1822 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1824 | $as_echo_n "checking for $2... " >&6; }
|
---|
1825 | if eval \${$3+:} false; then :
|
---|
1826 | $as_echo_n "(cached) " >&6
|
---|
1827 | else
|
---|
1828 | eval "$3=no"
|
---|
1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1830 | /* end confdefs.h. */
|
---|
1831 | $4
|
---|
1832 | int
|
---|
1833 | main ()
|
---|
1834 | {
|
---|
1835 | if (sizeof ($2))
|
---|
1836 | return 0;
|
---|
1837 | ;
|
---|
1838 | return 0;
|
---|
1839 | }
|
---|
1840 | _ACEOF
|
---|
1841 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1843 | /* end confdefs.h. */
|
---|
1844 | $4
|
---|
1845 | int
|
---|
1846 | main ()
|
---|
1847 | {
|
---|
1848 | if (sizeof (($2)))
|
---|
1849 | return 0;
|
---|
1850 | ;
|
---|
1851 | return 0;
|
---|
1852 | }
|
---|
1853 | _ACEOF
|
---|
1854 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1855 |
|
---|
1856 | else
|
---|
1857 | eval "$3=yes"
|
---|
1858 | fi
|
---|
1859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1860 | fi
|
---|
1861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1862 | fi
|
---|
1863 | eval ac_res=\$$3
|
---|
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1865 | $as_echo "$ac_res" >&6; }
|
---|
1866 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1867 |
|
---|
1868 | } # ac_fn_c_check_type
|
---|
1869 |
|
---|
1870 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1871 | # ----------------------------------
|
---|
1872 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1873 | ac_fn_c_check_func ()
|
---|
1874 | {
|
---|
1875 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1877 | $as_echo_n "checking for $2... " >&6; }
|
---|
1878 | if eval \${$3+:} false; then :
|
---|
1879 | $as_echo_n "(cached) " >&6
|
---|
1880 | else
|
---|
1881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1882 | /* end confdefs.h. */
|
---|
1883 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1885 | #define $2 innocuous_$2
|
---|
1886 |
|
---|
1887 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1888 | which can conflict with char $2 (); below.
|
---|
1889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1890 | <limits.h> exists even on freestanding compilers. */
|
---|
1891 |
|
---|
1892 | #ifdef __STDC__
|
---|
1893 | # include <limits.h>
|
---|
1894 | #else
|
---|
1895 | # include <assert.h>
|
---|
1896 | #endif
|
---|
1897 |
|
---|
1898 | #undef $2
|
---|
1899 |
|
---|
1900 | /* Override any GCC internal prototype to avoid an error.
|
---|
1901 | Use char because int might match the return type of a GCC
|
---|
1902 | builtin and then its argument prototype would still apply. */
|
---|
1903 | #ifdef __cplusplus
|
---|
1904 | extern "C"
|
---|
1905 | #endif
|
---|
1906 | char $2 ();
|
---|
1907 | /* The GNU C library defines this for functions which it implements
|
---|
1908 | to always fail with ENOSYS. Some functions are actually named
|
---|
1909 | something starting with __ and the normal name is an alias. */
|
---|
1910 | #if defined __stub_$2 || defined __stub___$2
|
---|
1911 | choke me
|
---|
1912 | #endif
|
---|
1913 |
|
---|
1914 | int
|
---|
1915 | main ()
|
---|
1916 | {
|
---|
1917 | return $2 ();
|
---|
1918 | ;
|
---|
1919 | return 0;
|
---|
1920 | }
|
---|
1921 | _ACEOF
|
---|
1922 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1923 | eval "$3=yes"
|
---|
1924 | else
|
---|
1925 | eval "$3=no"
|
---|
1926 | fi
|
---|
1927 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1928 | conftest$ac_exeext conftest.$ac_ext
|
---|
1929 | fi
|
---|
1930 | eval ac_res=\$$3
|
---|
1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1932 | $as_echo "$ac_res" >&6; }
|
---|
1933 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1934 |
|
---|
1935 | } # ac_fn_c_check_func
|
---|
1936 |
|
---|
1937 | # ac_fn_cxx_try_run LINENO
|
---|
1938 | # ------------------------
|
---|
1939 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1940 | # that executables *can* be run.
|
---|
1941 | ac_fn_cxx_try_run ()
|
---|
1942 | {
|
---|
1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1944 | if { { ac_try="$ac_link"
|
---|
1945 | case "(($ac_try" in
|
---|
1946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1947 | *) ac_try_echo=$ac_try;;
|
---|
1948 | esac
|
---|
1949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1950 | $as_echo "$ac_try_echo"; } >&5
|
---|
1951 | (eval "$ac_link") 2>&5
|
---|
1952 | ac_status=$?
|
---|
1953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1954 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1955 | { { case "(($ac_try" in
|
---|
1956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1957 | *) ac_try_echo=$ac_try;;
|
---|
1958 | esac
|
---|
1959 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1960 | $as_echo "$ac_try_echo"; } >&5
|
---|
1961 | (eval "$ac_try") 2>&5
|
---|
1962 | ac_status=$?
|
---|
1963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1964 | test $ac_status = 0; }; }; then :
|
---|
1965 | ac_retval=0
|
---|
1966 | else
|
---|
1967 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1968 | $as_echo "$as_me: failed program was:" >&5
|
---|
1969 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1970 |
|
---|
1971 | ac_retval=$ac_status
|
---|
1972 | fi
|
---|
1973 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1974 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1975 | as_fn_set_status $ac_retval
|
---|
1976 |
|
---|
1977 | } # ac_fn_cxx_try_run
|
---|
1978 | cat >config.log <<_ACEOF
|
---|
1979 | This file contains any messages produced by compilers while
|
---|
1980 | running configure, to aid debugging if configure makes a mistake.
|
---|
1981 |
|
---|
1982 | It was created by $as_me, which was
|
---|
1983 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
1984 |
|
---|
1985 | $ $0 $@
|
---|
1986 |
|
---|
1987 | _ACEOF
|
---|
1988 | exec 5>>config.log
|
---|
1989 | {
|
---|
1990 | cat <<_ASUNAME
|
---|
1991 | ## --------- ##
|
---|
1992 | ## Platform. ##
|
---|
1993 | ## --------- ##
|
---|
1994 |
|
---|
1995 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1996 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1997 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1998 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1999 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2000 |
|
---|
2001 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2002 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2003 |
|
---|
2004 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2005 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2006 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2007 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2008 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2009 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2010 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2011 |
|
---|
2012 | _ASUNAME
|
---|
2013 |
|
---|
2014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2015 | for as_dir in $PATH
|
---|
2016 | do
|
---|
2017 | IFS=$as_save_IFS
|
---|
2018 | test -z "$as_dir" && as_dir=.
|
---|
2019 | $as_echo "PATH: $as_dir"
|
---|
2020 | done
|
---|
2021 | IFS=$as_save_IFS
|
---|
2022 |
|
---|
2023 | } >&5
|
---|
2024 |
|
---|
2025 | cat >&5 <<_ACEOF
|
---|
2026 |
|
---|
2027 |
|
---|
2028 | ## ----------- ##
|
---|
2029 | ## Core tests. ##
|
---|
2030 | ## ----------- ##
|
---|
2031 |
|
---|
2032 | _ACEOF
|
---|
2033 |
|
---|
2034 |
|
---|
2035 | # Keep a trace of the command line.
|
---|
2036 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2037 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2038 | # Also quote any args containing shell meta-characters.
|
---|
2039 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2040 | ac_configure_args=
|
---|
2041 | ac_configure_args0=
|
---|
2042 | ac_configure_args1=
|
---|
2043 | ac_must_keep_next=false
|
---|
2044 | for ac_pass in 1 2
|
---|
2045 | do
|
---|
2046 | for ac_arg
|
---|
2047 | do
|
---|
2048 | case $ac_arg in
|
---|
2049 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2050 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2051 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2052 | continue ;;
|
---|
2053 | *\'*)
|
---|
2054 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2055 | esac
|
---|
2056 | case $ac_pass in
|
---|
2057 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2058 | 2)
|
---|
2059 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2060 | if test $ac_must_keep_next = true; then
|
---|
2061 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2062 | else
|
---|
2063 | case $ac_arg in
|
---|
2064 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2065 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2066 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2067 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2068 | case "$ac_configure_args0 " in
|
---|
2069 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2070 | esac
|
---|
2071 | ;;
|
---|
2072 | -* ) ac_must_keep_next=true ;;
|
---|
2073 | esac
|
---|
2074 | fi
|
---|
2075 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2076 | ;;
|
---|
2077 | esac
|
---|
2078 | done
|
---|
2079 | done
|
---|
2080 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2081 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2082 |
|
---|
2083 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2084 | # config.log. We remove comments because anyway the quotes in there
|
---|
2085 | # would cause problems or look ugly.
|
---|
2086 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2087 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2088 | trap 'exit_status=$?
|
---|
2089 | # Save into config.log some information that might help in debugging.
|
---|
2090 | {
|
---|
2091 | echo
|
---|
2092 |
|
---|
2093 | $as_echo "## ---------------- ##
|
---|
2094 | ## Cache variables. ##
|
---|
2095 | ## ---------------- ##"
|
---|
2096 | echo
|
---|
2097 | # The following way of writing the cache mishandles newlines in values,
|
---|
2098 | (
|
---|
2099 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2100 | eval ac_val=\$$ac_var
|
---|
2101 | case $ac_val in #(
|
---|
2102 | *${as_nl}*)
|
---|
2103 | case $ac_var in #(
|
---|
2104 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2105 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2106 | esac
|
---|
2107 | case $ac_var in #(
|
---|
2108 | _ | IFS | as_nl) ;; #(
|
---|
2109 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2110 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2111 | esac ;;
|
---|
2112 | esac
|
---|
2113 | done
|
---|
2114 | (set) 2>&1 |
|
---|
2115 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2116 | *${as_nl}ac_space=\ *)
|
---|
2117 | sed -n \
|
---|
2118 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2119 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2120 | ;; #(
|
---|
2121 | *)
|
---|
2122 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2123 | ;;
|
---|
2124 | esac |
|
---|
2125 | sort
|
---|
2126 | )
|
---|
2127 | echo
|
---|
2128 |
|
---|
2129 | $as_echo "## ----------------- ##
|
---|
2130 | ## Output variables. ##
|
---|
2131 | ## ----------------- ##"
|
---|
2132 | echo
|
---|
2133 | for ac_var in $ac_subst_vars
|
---|
2134 | do
|
---|
2135 | eval ac_val=\$$ac_var
|
---|
2136 | case $ac_val in
|
---|
2137 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2138 | esac
|
---|
2139 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2140 | done | sort
|
---|
2141 | echo
|
---|
2142 |
|
---|
2143 | if test -n "$ac_subst_files"; then
|
---|
2144 | $as_echo "## ------------------- ##
|
---|
2145 | ## File substitutions. ##
|
---|
2146 | ## ------------------- ##"
|
---|
2147 | echo
|
---|
2148 | for ac_var in $ac_subst_files
|
---|
2149 | do
|
---|
2150 | eval ac_val=\$$ac_var
|
---|
2151 | case $ac_val in
|
---|
2152 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2153 | esac
|
---|
2154 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2155 | done | sort
|
---|
2156 | echo
|
---|
2157 | fi
|
---|
2158 |
|
---|
2159 | if test -s confdefs.h; then
|
---|
2160 | $as_echo "## ----------- ##
|
---|
2161 | ## confdefs.h. ##
|
---|
2162 | ## ----------- ##"
|
---|
2163 | echo
|
---|
2164 | cat confdefs.h
|
---|
2165 | echo
|
---|
2166 | fi
|
---|
2167 | test "$ac_signal" != 0 &&
|
---|
2168 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2169 | $as_echo "$as_me: exit $exit_status"
|
---|
2170 | } >&5
|
---|
2171 | rm -f core *.core core.conftest.* &&
|
---|
2172 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2173 | exit $exit_status
|
---|
2174 | ' 0
|
---|
2175 | for ac_signal in 1 2 13 15; do
|
---|
2176 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2177 | done
|
---|
2178 | ac_signal=0
|
---|
2179 |
|
---|
2180 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2181 | rm -f -r conftest* confdefs.h
|
---|
2182 |
|
---|
2183 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2184 |
|
---|
2185 | # Predefined preprocessor variables.
|
---|
2186 |
|
---|
2187 | cat >>confdefs.h <<_ACEOF
|
---|
2188 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2189 | _ACEOF
|
---|
2190 |
|
---|
2191 | cat >>confdefs.h <<_ACEOF
|
---|
2192 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2193 | _ACEOF
|
---|
2194 |
|
---|
2195 | cat >>confdefs.h <<_ACEOF
|
---|
2196 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2197 | _ACEOF
|
---|
2198 |
|
---|
2199 | cat >>confdefs.h <<_ACEOF
|
---|
2200 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2201 | _ACEOF
|
---|
2202 |
|
---|
2203 | cat >>confdefs.h <<_ACEOF
|
---|
2204 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2205 | _ACEOF
|
---|
2206 |
|
---|
2207 | cat >>confdefs.h <<_ACEOF
|
---|
2208 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2209 | _ACEOF
|
---|
2210 |
|
---|
2211 |
|
---|
2212 | # Let the site file select an alternate cache file if it wants to.
|
---|
2213 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2214 | ac_site_file1=NONE
|
---|
2215 | ac_site_file2=NONE
|
---|
2216 | if test -n "$CONFIG_SITE"; then
|
---|
2217 | # We do not want a PATH search for config.site.
|
---|
2218 | case $CONFIG_SITE in #((
|
---|
2219 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2220 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2221 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2222 | esac
|
---|
2223 | elif test "x$prefix" != xNONE; then
|
---|
2224 | ac_site_file1=$prefix/share/config.site
|
---|
2225 | ac_site_file2=$prefix/etc/config.site
|
---|
2226 | else
|
---|
2227 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2228 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2229 | fi
|
---|
2230 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2231 | do
|
---|
2232 | test "x$ac_site_file" = xNONE && continue
|
---|
2233 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2235 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2236 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2237 | . "$ac_site_file" \
|
---|
2238 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2239 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2240 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2241 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2242 | fi
|
---|
2243 | done
|
---|
2244 |
|
---|
2245 | if test -r "$cache_file"; then
|
---|
2246 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2247 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2248 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2250 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2251 | case $cache_file in
|
---|
2252 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2253 | *) . "./$cache_file";;
|
---|
2254 | esac
|
---|
2255 | fi
|
---|
2256 | else
|
---|
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2258 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2259 | >$cache_file
|
---|
2260 | fi
|
---|
2261 |
|
---|
2262 | # Check that the precious variables saved in the cache have kept the same
|
---|
2263 | # value.
|
---|
2264 | ac_cache_corrupted=false
|
---|
2265 | for ac_var in $ac_precious_vars; do
|
---|
2266 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2267 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2268 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2269 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2270 | case $ac_old_set,$ac_new_set in
|
---|
2271 | set,)
|
---|
2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2273 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2274 | ac_cache_corrupted=: ;;
|
---|
2275 | ,set)
|
---|
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2277 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2278 | ac_cache_corrupted=: ;;
|
---|
2279 | ,);;
|
---|
2280 | *)
|
---|
2281 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2282 | # differences in whitespace do not lead to failure.
|
---|
2283 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2284 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2285 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2287 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2288 | ac_cache_corrupted=:
|
---|
2289 | else
|
---|
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2291 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2292 | eval $ac_var=\$ac_old_val
|
---|
2293 | fi
|
---|
2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2295 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2297 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2298 | fi;;
|
---|
2299 | esac
|
---|
2300 | # Pass precious variables to config.status.
|
---|
2301 | if test "$ac_new_set" = set; then
|
---|
2302 | case $ac_new_val in
|
---|
2303 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2304 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2305 | esac
|
---|
2306 | case " $ac_configure_args " in
|
---|
2307 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2308 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2309 | esac
|
---|
2310 | fi
|
---|
2311 | done
|
---|
2312 | if $ac_cache_corrupted; then
|
---|
2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2314 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2316 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2317 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2318 | fi
|
---|
2319 | ## -------------------- ##
|
---|
2320 | ## Main body of script. ##
|
---|
2321 | ## -------------------- ##
|
---|
2322 |
|
---|
2323 | ac_ext=c
|
---|
2324 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2328 |
|
---|
2329 |
|
---|
2330 | ac_config_headers="$ac_config_headers config.h"
|
---|
2331 |
|
---|
2332 |
|
---|
2333 |
|
---|
2334 | PACKAGE=gsdl
|
---|
2335 | VERSION=2.x-svn
|
---|
2336 | cat >>confdefs.h <<_ACEOF
|
---|
2337 | #define PACKAGE "$PACKAGE"
|
---|
2338 | _ACEOF
|
---|
2339 |
|
---|
2340 | cat >>confdefs.h <<_ACEOF
|
---|
2341 | #define VERSION "$VERSION"
|
---|
2342 | _ACEOF
|
---|
2343 |
|
---|
2344 |
|
---|
2345 |
|
---|
2346 |
|
---|
2347 | USE_FASTCGI=0
|
---|
2348 | if test USE_FASTCGI = 1; then
|
---|
2349 | $as_echo "#define USE_FASTCGI 1" >>confdefs.h
|
---|
2350 |
|
---|
2351 |
|
---|
2352 | fi
|
---|
2353 |
|
---|
2354 | if test USE_LANGACTION = 1; then
|
---|
2355 | $as_echo "#define USE_LANGACTION 1" >>confdefs.h
|
---|
2356 |
|
---|
2357 |
|
---|
2358 | fi
|
---|
2359 |
|
---|
2360 | # Check whether --enable-corba was given.
|
---|
2361 | if test "${enable_corba+set}" = set; then :
|
---|
2362 | enableval=$enable_corba; USE_CORBA=$enableval
|
---|
2363 | else
|
---|
2364 | USE_CORBA=no
|
---|
2365 | fi
|
---|
2366 |
|
---|
2367 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
2368 | USE_CORBA=1
|
---|
2369 | $as_echo "#define USE_CORBA /**/" >>confdefs.h
|
---|
2370 |
|
---|
2371 | else
|
---|
2372 | USE_CORBA=0
|
---|
2373 | fi
|
---|
2374 |
|
---|
2375 |
|
---|
2376 |
|
---|
2377 | # Check whether --with-micodir was given.
|
---|
2378 | if test "${with_micodir+set}" = set; then :
|
---|
2379 | withval=$with_micodir; MICO_DIR=$withval
|
---|
2380 | else
|
---|
2381 | MICO_DIR="default"
|
---|
2382 | fi
|
---|
2383 |
|
---|
2384 | cat >>confdefs.h <<_ACEOF
|
---|
2385 | #define MICO_DIR "$MICO_DIR"
|
---|
2386 | _ACEOF
|
---|
2387 |
|
---|
2388 |
|
---|
2389 |
|
---|
2390 | # Check whether --enable-z3950 was given.
|
---|
2391 | if test "${enable_z3950+set}" = set; then :
|
---|
2392 | enableval=$enable_z3950; USE_Z3950=$enableval
|
---|
2393 | else
|
---|
2394 | USE_Z3950=no
|
---|
2395 | fi
|
---|
2396 |
|
---|
2397 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
2398 | USE_Z3950=1
|
---|
2399 | $as_echo "#define USE_Z3950 /**/" >>confdefs.h
|
---|
2400 |
|
---|
2401 | else
|
---|
2402 | USE_Z3950=0
|
---|
2403 | fi
|
---|
2404 |
|
---|
2405 |
|
---|
2406 | # Check whether --enable-yaz was given.
|
---|
2407 | if test "${enable_yaz+set}" = set; then :
|
---|
2408 | enableval=$enable_yaz; USE_YAZ=$enableval
|
---|
2409 | else
|
---|
2410 | USE_YAZ=yes
|
---|
2411 | fi
|
---|
2412 |
|
---|
2413 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
2414 | USE_YAZ=1
|
---|
2415 | $as_echo "#define USE_YAZ /**/" >>confdefs.h
|
---|
2416 |
|
---|
2417 | else
|
---|
2418 | USE_YAZ=0
|
---|
2419 | fi
|
---|
2420 |
|
---|
2421 |
|
---|
2422 | # Check whether --enable-java was given.
|
---|
2423 | if test "${enable_java+set}" = set; then :
|
---|
2424 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
2425 | else
|
---|
2426 | ENABLE_JAVA=yes
|
---|
2427 | fi
|
---|
2428 |
|
---|
2429 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
2430 | ENABLE_JAVA=1
|
---|
2431 | if test "x$JAVA_HOME" != "x" ; then
|
---|
2432 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
2433 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
2434 | echo "and JAVA respectively"
|
---|
2435 | export JAVA_HOME=
|
---|
2436 | fi
|
---|
2437 | else
|
---|
2438 | ENABLE_JAVA=0
|
---|
2439 | fi
|
---|
2440 |
|
---|
2441 |
|
---|
2442 | # Check whether --enable-wvware was given.
|
---|
2443 | if test "${enable_wvware+set}" = set; then :
|
---|
2444 | enableval=$enable_wvware; USE_WVWARE=$enableval
|
---|
2445 | else
|
---|
2446 | USE_WVWARE=yes
|
---|
2447 | fi
|
---|
2448 |
|
---|
2449 | if test $USE_WVWARE = "yes" -o $USE_WVWARE = "1" ; then
|
---|
2450 | USE_WVWARE=1
|
---|
2451 | $as_echo "#define USE_WVWARE /**/" >>confdefs.h
|
---|
2452 |
|
---|
2453 | else
|
---|
2454 | USE_WVWARE=0
|
---|
2455 | fi
|
---|
2456 |
|
---|
2457 |
|
---|
2458 | # Check whether --enable-jdbm was given.
|
---|
2459 | if test "${enable_jdbm+set}" = set; then :
|
---|
2460 | enableval=$enable_jdbm; USE_JDBM=$enableval
|
---|
2461 | else
|
---|
2462 | USE_JDBM=yes
|
---|
2463 | fi
|
---|
2464 |
|
---|
2465 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
2466 | USE_JDBM=1
|
---|
2467 | $as_echo "#define USE_JDBM /**/" >>confdefs.h
|
---|
2468 |
|
---|
2469 | else
|
---|
2470 | USE_JDBM=0
|
---|
2471 | fi
|
---|
2472 |
|
---|
2473 |
|
---|
2474 | # Check whether --enable-gdbm was given.
|
---|
2475 | if test "${enable_gdbm+set}" = set; then :
|
---|
2476 | enableval=$enable_gdbm; USE_GDBM=$enableval
|
---|
2477 | else
|
---|
2478 | USE_GDBM=yes
|
---|
2479 | fi
|
---|
2480 |
|
---|
2481 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
2482 | USE_GDBM=1
|
---|
2483 | $as_echo "#define USE_GDBM /**/" >>confdefs.h
|
---|
2484 |
|
---|
2485 | else
|
---|
2486 | USE_GDBM=0
|
---|
2487 | fi
|
---|
2488 |
|
---|
2489 |
|
---|
2490 | # Check whether --enable-accentfold was given.
|
---|
2491 | if test "${enable_accentfold+set}" = set; then :
|
---|
2492 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
2493 | else
|
---|
2494 | ENABLE_ACCENTFOLD=yes
|
---|
2495 | fi
|
---|
2496 |
|
---|
2497 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
2498 | ENABLE_ACCENTFOLD=1
|
---|
2499 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
2500 |
|
---|
2501 | else
|
---|
2502 | ENABLE_ACCENTFOLD=0
|
---|
2503 | fi
|
---|
2504 |
|
---|
2505 |
|
---|
2506 | # Check whether --enable-sqlite was given.
|
---|
2507 | if test "${enable_sqlite+set}" = set; then :
|
---|
2508 | enableval=$enable_sqlite; USE_SQLITE=$enableval
|
---|
2509 | else
|
---|
2510 | USE_SQLITE=yes
|
---|
2511 | fi
|
---|
2512 |
|
---|
2513 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
2514 | USE_SQLITE=1
|
---|
2515 | $as_echo "#define USE_SQLITE /**/" >>confdefs.h
|
---|
2516 |
|
---|
2517 | else
|
---|
2518 | USE_SQLITE=0
|
---|
2519 | fi
|
---|
2520 |
|
---|
2521 |
|
---|
2522 | # Check whether --enable-gnome-lib-ext was given.
|
---|
2523 | if test "${enable_gnome_lib_ext+set}" = set; then :
|
---|
2524 | enableval=$enable_gnome_lib_ext; ENABLE_GNOMELIB_EXT=1
|
---|
2525 | else
|
---|
2526 | ENABLE_GNOMELIB_EXT=0
|
---|
2527 | fi
|
---|
2528 |
|
---|
2529 |
|
---|
2530 | if test -z "$GSDLHOME"; then
|
---|
2531 | gshome=..
|
---|
2532 | else
|
---|
2533 | gshome=$GSDLHOME
|
---|
2534 | fi
|
---|
2535 | if test -d $gshome/ext/gnome-lib ; then
|
---|
2536 | $as_echo "#define ENABLE_GNOMELIB_EXT \$ENABLE_GNOMELIB_EXT" >>confdefs.h
|
---|
2537 |
|
---|
2538 | elif test -f $gshome/ext/gnome-lib-minimal/devel.bash ; then
|
---|
2539 | $as_echo "#define ENABLE_GNOMELIB_EXT \$ENABLE_GNOMELIB_EXT" >>confdefs.h
|
---|
2540 |
|
---|
2541 | else
|
---|
2542 | echo "**** WARNING: No gnome-lib or gnome-lib-minimal(/devel.bash) in gs2build/ext folder. Disabling gnome-lib-ext"
|
---|
2543 | $as_echo "#define ENABLE_GNOMELIB_EXT 0" >>confdefs.h
|
---|
2544 |
|
---|
2545 | fi
|
---|
2546 |
|
---|
2547 |
|
---|
2548 | LDFLAGS=$LDFLAGS
|
---|
2549 |
|
---|
2550 | if test -z "$CFLAGS"; then
|
---|
2551 | CFLAGS=-O2
|
---|
2552 | fi
|
---|
2553 |
|
---|
2554 |
|
---|
2555 |
|
---|
2556 | ac_ext=c
|
---|
2557 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2561 | if test -n "$ac_tool_prefix"; then
|
---|
2562 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2563 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2565 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2566 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2567 | $as_echo_n "(cached) " >&6
|
---|
2568 | else
|
---|
2569 | if test -n "$CC"; then
|
---|
2570 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2571 | else
|
---|
2572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2573 | for as_dir in $PATH
|
---|
2574 | do
|
---|
2575 | IFS=$as_save_IFS
|
---|
2576 | test -z "$as_dir" && as_dir=.
|
---|
2577 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2579 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2581 | break 2
|
---|
2582 | fi
|
---|
2583 | done
|
---|
2584 | done
|
---|
2585 | IFS=$as_save_IFS
|
---|
2586 |
|
---|
2587 | fi
|
---|
2588 | fi
|
---|
2589 | CC=$ac_cv_prog_CC
|
---|
2590 | if test -n "$CC"; then
|
---|
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2592 | $as_echo "$CC" >&6; }
|
---|
2593 | else
|
---|
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2595 | $as_echo "no" >&6; }
|
---|
2596 | fi
|
---|
2597 |
|
---|
2598 |
|
---|
2599 | fi
|
---|
2600 | if test -z "$ac_cv_prog_CC"; then
|
---|
2601 | ac_ct_CC=$CC
|
---|
2602 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2603 | set dummy gcc; ac_word=$2
|
---|
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2605 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2606 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2607 | $as_echo_n "(cached) " >&6
|
---|
2608 | else
|
---|
2609 | if test -n "$ac_ct_CC"; then
|
---|
2610 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2611 | else
|
---|
2612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2613 | for as_dir in $PATH
|
---|
2614 | do
|
---|
2615 | IFS=$as_save_IFS
|
---|
2616 | test -z "$as_dir" && as_dir=.
|
---|
2617 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2618 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2619 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2621 | break 2
|
---|
2622 | fi
|
---|
2623 | done
|
---|
2624 | done
|
---|
2625 | IFS=$as_save_IFS
|
---|
2626 |
|
---|
2627 | fi
|
---|
2628 | fi
|
---|
2629 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2630 | if test -n "$ac_ct_CC"; then
|
---|
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2632 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2633 | else
|
---|
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2635 | $as_echo "no" >&6; }
|
---|
2636 | fi
|
---|
2637 |
|
---|
2638 | if test "x$ac_ct_CC" = x; then
|
---|
2639 | CC=""
|
---|
2640 | else
|
---|
2641 | case $cross_compiling:$ac_tool_warned in
|
---|
2642 | yes:)
|
---|
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2644 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2645 | ac_tool_warned=yes ;;
|
---|
2646 | esac
|
---|
2647 | CC=$ac_ct_CC
|
---|
2648 | fi
|
---|
2649 | else
|
---|
2650 | CC="$ac_cv_prog_CC"
|
---|
2651 | fi
|
---|
2652 |
|
---|
2653 | if test -z "$CC"; then
|
---|
2654 | if test -n "$ac_tool_prefix"; then
|
---|
2655 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2656 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2658 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2659 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2660 | $as_echo_n "(cached) " >&6
|
---|
2661 | else
|
---|
2662 | if test -n "$CC"; then
|
---|
2663 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2664 | else
|
---|
2665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2666 | for as_dir in $PATH
|
---|
2667 | do
|
---|
2668 | IFS=$as_save_IFS
|
---|
2669 | test -z "$as_dir" && as_dir=.
|
---|
2670 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2672 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2674 | break 2
|
---|
2675 | fi
|
---|
2676 | done
|
---|
2677 | done
|
---|
2678 | IFS=$as_save_IFS
|
---|
2679 |
|
---|
2680 | fi
|
---|
2681 | fi
|
---|
2682 | CC=$ac_cv_prog_CC
|
---|
2683 | if test -n "$CC"; then
|
---|
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2685 | $as_echo "$CC" >&6; }
|
---|
2686 | else
|
---|
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2688 | $as_echo "no" >&6; }
|
---|
2689 | fi
|
---|
2690 |
|
---|
2691 |
|
---|
2692 | fi
|
---|
2693 | fi
|
---|
2694 | if test -z "$CC"; then
|
---|
2695 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2696 | set dummy cc; ac_word=$2
|
---|
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2698 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2699 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2700 | $as_echo_n "(cached) " >&6
|
---|
2701 | else
|
---|
2702 | if test -n "$CC"; then
|
---|
2703 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2704 | else
|
---|
2705 | ac_prog_rejected=no
|
---|
2706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2707 | for as_dir in $PATH
|
---|
2708 | do
|
---|
2709 | IFS=$as_save_IFS
|
---|
2710 | test -z "$as_dir" && as_dir=.
|
---|
2711 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2713 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2714 | ac_prog_rejected=yes
|
---|
2715 | continue
|
---|
2716 | fi
|
---|
2717 | ac_cv_prog_CC="cc"
|
---|
2718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2719 | break 2
|
---|
2720 | fi
|
---|
2721 | done
|
---|
2722 | done
|
---|
2723 | IFS=$as_save_IFS
|
---|
2724 |
|
---|
2725 | if test $ac_prog_rejected = yes; then
|
---|
2726 | # We found a bogon in the path, so make sure we never use it.
|
---|
2727 | set dummy $ac_cv_prog_CC
|
---|
2728 | shift
|
---|
2729 | if test $# != 0; then
|
---|
2730 | # We chose a different compiler from the bogus one.
|
---|
2731 | # However, it has the same basename, so the bogon will be chosen
|
---|
2732 | # first if we set CC to just the basename; use the full file name.
|
---|
2733 | shift
|
---|
2734 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2735 | fi
|
---|
2736 | fi
|
---|
2737 | fi
|
---|
2738 | fi
|
---|
2739 | CC=$ac_cv_prog_CC
|
---|
2740 | if test -n "$CC"; then
|
---|
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2742 | $as_echo "$CC" >&6; }
|
---|
2743 | else
|
---|
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2745 | $as_echo "no" >&6; }
|
---|
2746 | fi
|
---|
2747 |
|
---|
2748 |
|
---|
2749 | fi
|
---|
2750 | if test -z "$CC"; then
|
---|
2751 | if test -n "$ac_tool_prefix"; then
|
---|
2752 | for ac_prog in cl.exe
|
---|
2753 | do
|
---|
2754 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2755 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2757 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2758 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2759 | $as_echo_n "(cached) " >&6
|
---|
2760 | else
|
---|
2761 | if test -n "$CC"; then
|
---|
2762 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2763 | else
|
---|
2764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2765 | for as_dir in $PATH
|
---|
2766 | do
|
---|
2767 | IFS=$as_save_IFS
|
---|
2768 | test -z "$as_dir" && as_dir=.
|
---|
2769 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2771 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2773 | break 2
|
---|
2774 | fi
|
---|
2775 | done
|
---|
2776 | done
|
---|
2777 | IFS=$as_save_IFS
|
---|
2778 |
|
---|
2779 | fi
|
---|
2780 | fi
|
---|
2781 | CC=$ac_cv_prog_CC
|
---|
2782 | if test -n "$CC"; then
|
---|
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2784 | $as_echo "$CC" >&6; }
|
---|
2785 | else
|
---|
2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2787 | $as_echo "no" >&6; }
|
---|
2788 | fi
|
---|
2789 |
|
---|
2790 |
|
---|
2791 | test -n "$CC" && break
|
---|
2792 | done
|
---|
2793 | fi
|
---|
2794 | if test -z "$CC"; then
|
---|
2795 | ac_ct_CC=$CC
|
---|
2796 | for ac_prog in cl.exe
|
---|
2797 | do
|
---|
2798 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2799 | set dummy $ac_prog; ac_word=$2
|
---|
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2801 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2802 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2803 | $as_echo_n "(cached) " >&6
|
---|
2804 | else
|
---|
2805 | if test -n "$ac_ct_CC"; then
|
---|
2806 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2807 | else
|
---|
2808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2809 | for as_dir in $PATH
|
---|
2810 | do
|
---|
2811 | IFS=$as_save_IFS
|
---|
2812 | test -z "$as_dir" && as_dir=.
|
---|
2813 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2814 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2815 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2817 | break 2
|
---|
2818 | fi
|
---|
2819 | done
|
---|
2820 | done
|
---|
2821 | IFS=$as_save_IFS
|
---|
2822 |
|
---|
2823 | fi
|
---|
2824 | fi
|
---|
2825 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2826 | if test -n "$ac_ct_CC"; then
|
---|
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2828 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2829 | else
|
---|
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2831 | $as_echo "no" >&6; }
|
---|
2832 | fi
|
---|
2833 |
|
---|
2834 |
|
---|
2835 | test -n "$ac_ct_CC" && break
|
---|
2836 | done
|
---|
2837 |
|
---|
2838 | if test "x$ac_ct_CC" = x; then
|
---|
2839 | CC=""
|
---|
2840 | else
|
---|
2841 | case $cross_compiling:$ac_tool_warned in
|
---|
2842 | yes:)
|
---|
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2844 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2845 | ac_tool_warned=yes ;;
|
---|
2846 | esac
|
---|
2847 | CC=$ac_ct_CC
|
---|
2848 | fi
|
---|
2849 | fi
|
---|
2850 |
|
---|
2851 | fi
|
---|
2852 |
|
---|
2853 |
|
---|
2854 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2855 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2856 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2857 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2858 |
|
---|
2859 | # Provide some information about the compiler.
|
---|
2860 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2861 | set X $ac_compile
|
---|
2862 | ac_compiler=$2
|
---|
2863 | for ac_option in --version -v -V -qversion; do
|
---|
2864 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2865 | case "(($ac_try" in
|
---|
2866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2867 | *) ac_try_echo=$ac_try;;
|
---|
2868 | esac
|
---|
2869 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2870 | $as_echo "$ac_try_echo"; } >&5
|
---|
2871 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2872 | ac_status=$?
|
---|
2873 | if test -s conftest.err; then
|
---|
2874 | sed '10a\
|
---|
2875 | ... rest of stderr output deleted ...
|
---|
2876 | 10q' conftest.err >conftest.er1
|
---|
2877 | cat conftest.er1 >&5
|
---|
2878 | fi
|
---|
2879 | rm -f conftest.er1 conftest.err
|
---|
2880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2881 | test $ac_status = 0; }
|
---|
2882 | done
|
---|
2883 |
|
---|
2884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2885 | /* end confdefs.h. */
|
---|
2886 |
|
---|
2887 | int
|
---|
2888 | main ()
|
---|
2889 | {
|
---|
2890 |
|
---|
2891 | ;
|
---|
2892 | return 0;
|
---|
2893 | }
|
---|
2894 | _ACEOF
|
---|
2895 | ac_clean_files_save=$ac_clean_files
|
---|
2896 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2897 | # Try to create an executable without -o first, disregard a.out.
|
---|
2898 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2899 | # of exeext.
|
---|
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2901 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2902 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2903 |
|
---|
2904 | # The possible output files:
|
---|
2905 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2906 |
|
---|
2907 | ac_rmfiles=
|
---|
2908 | for ac_file in $ac_files
|
---|
2909 | do
|
---|
2910 | case $ac_file in
|
---|
2911 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2912 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2913 | esac
|
---|
2914 | done
|
---|
2915 | rm -f $ac_rmfiles
|
---|
2916 |
|
---|
2917 | if { { ac_try="$ac_link_default"
|
---|
2918 | case "(($ac_try" in
|
---|
2919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2920 | *) ac_try_echo=$ac_try;;
|
---|
2921 | esac
|
---|
2922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2923 | $as_echo "$ac_try_echo"; } >&5
|
---|
2924 | (eval "$ac_link_default") 2>&5
|
---|
2925 | ac_status=$?
|
---|
2926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2927 | test $ac_status = 0; }; then :
|
---|
2928 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2929 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2930 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2931 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2932 | # Autoconf.
|
---|
2933 | for ac_file in $ac_files ''
|
---|
2934 | do
|
---|
2935 | test -f "$ac_file" || continue
|
---|
2936 | case $ac_file in
|
---|
2937 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
2938 | ;;
|
---|
2939 | [ab].out )
|
---|
2940 | # We found the default executable, but exeext='' is most
|
---|
2941 | # certainly right.
|
---|
2942 | break;;
|
---|
2943 | *.* )
|
---|
2944 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2945 | then :; else
|
---|
2946 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2947 | fi
|
---|
2948 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2949 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2950 | # argument, so we may need to know it at that point already.
|
---|
2951 | # Even if this section looks crufty: it has the advantage of
|
---|
2952 | # actually working.
|
---|
2953 | break;;
|
---|
2954 | * )
|
---|
2955 | break;;
|
---|
2956 | esac
|
---|
2957 | done
|
---|
2958 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2959 |
|
---|
2960 | else
|
---|
2961 | ac_file=''
|
---|
2962 | fi
|
---|
2963 | if test -z "$ac_file"; then :
|
---|
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2965 | $as_echo "no" >&6; }
|
---|
2966 | $as_echo "$as_me: failed program was:" >&5
|
---|
2967 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2968 |
|
---|
2969 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2970 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2971 | as_fn_error 77 "C compiler cannot create executables
|
---|
2972 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2973 | else
|
---|
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2975 | $as_echo "yes" >&6; }
|
---|
2976 | fi
|
---|
2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
2978 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
2980 | $as_echo "$ac_file" >&6; }
|
---|
2981 | ac_exeext=$ac_cv_exeext
|
---|
2982 |
|
---|
2983 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
2984 | ac_clean_files=$ac_clean_files_save
|
---|
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
2986 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
2987 | if { { ac_try="$ac_link"
|
---|
2988 | case "(($ac_try" in
|
---|
2989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2990 | *) ac_try_echo=$ac_try;;
|
---|
2991 | esac
|
---|
2992 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2993 | $as_echo "$ac_try_echo"; } >&5
|
---|
2994 | (eval "$ac_link") 2>&5
|
---|
2995 | ac_status=$?
|
---|
2996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2997 | test $ac_status = 0; }; then :
|
---|
2998 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2999 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
3000 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
3001 | # `rm'.
|
---|
3002 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
3003 | test -f "$ac_file" || continue
|
---|
3004 | case $ac_file in
|
---|
3005 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
3006 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3007 | break;;
|
---|
3008 | * ) break;;
|
---|
3009 | esac
|
---|
3010 | done
|
---|
3011 | else
|
---|
3012 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3014 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
3015 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3016 | fi
|
---|
3017 | rm -f conftest conftest$ac_cv_exeext
|
---|
3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
3019 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
3020 |
|
---|
3021 | rm -f conftest.$ac_ext
|
---|
3022 | EXEEXT=$ac_cv_exeext
|
---|
3023 | ac_exeext=$EXEEXT
|
---|
3024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3025 | /* end confdefs.h. */
|
---|
3026 | #include <stdio.h>
|
---|
3027 | int
|
---|
3028 | main ()
|
---|
3029 | {
|
---|
3030 | FILE *f = fopen ("conftest.out", "w");
|
---|
3031 | return ferror (f) || fclose (f) != 0;
|
---|
3032 |
|
---|
3033 | ;
|
---|
3034 | return 0;
|
---|
3035 | }
|
---|
3036 | _ACEOF
|
---|
3037 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
3038 | # Check that the compiler produces executables we can run. If not, either
|
---|
3039 | # the compiler is broken, or we cross compile.
|
---|
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
3041 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
3042 | if test "$cross_compiling" != yes; then
|
---|
3043 | { { ac_try="$ac_link"
|
---|
3044 | case "(($ac_try" in
|
---|
3045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3046 | *) ac_try_echo=$ac_try;;
|
---|
3047 | esac
|
---|
3048 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3049 | $as_echo "$ac_try_echo"; } >&5
|
---|
3050 | (eval "$ac_link") 2>&5
|
---|
3051 | ac_status=$?
|
---|
3052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3053 | test $ac_status = 0; }
|
---|
3054 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
3055 | { { case "(($ac_try" in
|
---|
3056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3057 | *) ac_try_echo=$ac_try;;
|
---|
3058 | esac
|
---|
3059 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3060 | $as_echo "$ac_try_echo"; } >&5
|
---|
3061 | (eval "$ac_try") 2>&5
|
---|
3062 | ac_status=$?
|
---|
3063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3064 | test $ac_status = 0; }; }; then
|
---|
3065 | cross_compiling=no
|
---|
3066 | else
|
---|
3067 | if test "$cross_compiling" = maybe; then
|
---|
3068 | cross_compiling=yes
|
---|
3069 | else
|
---|
3070 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3072 | as_fn_error $? "cannot run C compiled programs.
|
---|
3073 | If you meant to cross compile, use \`--host'.
|
---|
3074 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3075 | fi
|
---|
3076 | fi
|
---|
3077 | fi
|
---|
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
3079 | $as_echo "$cross_compiling" >&6; }
|
---|
3080 |
|
---|
3081 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
3082 | ac_clean_files=$ac_clean_files_save
|
---|
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
3084 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
3085 | if ${ac_cv_objext+:} false; then :
|
---|
3086 | $as_echo_n "(cached) " >&6
|
---|
3087 | else
|
---|
3088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3089 | /* end confdefs.h. */
|
---|
3090 |
|
---|
3091 | int
|
---|
3092 | main ()
|
---|
3093 | {
|
---|
3094 |
|
---|
3095 | ;
|
---|
3096 | return 0;
|
---|
3097 | }
|
---|
3098 | _ACEOF
|
---|
3099 | rm -f conftest.o conftest.obj
|
---|
3100 | if { { ac_try="$ac_compile"
|
---|
3101 | case "(($ac_try" in
|
---|
3102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3103 | *) ac_try_echo=$ac_try;;
|
---|
3104 | esac
|
---|
3105 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3106 | $as_echo "$ac_try_echo"; } >&5
|
---|
3107 | (eval "$ac_compile") 2>&5
|
---|
3108 | ac_status=$?
|
---|
3109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3110 | test $ac_status = 0; }; then :
|
---|
3111 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3112 | test -f "$ac_file" || continue;
|
---|
3113 | case $ac_file in
|
---|
3114 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3115 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3116 | break;;
|
---|
3117 | esac
|
---|
3118 | done
|
---|
3119 | else
|
---|
3120 | $as_echo "$as_me: failed program was:" >&5
|
---|
3121 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3122 |
|
---|
3123 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3124 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3125 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3126 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3127 | fi
|
---|
3128 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3129 | fi
|
---|
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3131 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3132 | OBJEXT=$ac_cv_objext
|
---|
3133 | ac_objext=$OBJEXT
|
---|
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3135 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3136 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3137 | $as_echo_n "(cached) " >&6
|
---|
3138 | else
|
---|
3139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3140 | /* end confdefs.h. */
|
---|
3141 |
|
---|
3142 | int
|
---|
3143 | main ()
|
---|
3144 | {
|
---|
3145 | #ifndef __GNUC__
|
---|
3146 | choke me
|
---|
3147 | #endif
|
---|
3148 |
|
---|
3149 | ;
|
---|
3150 | return 0;
|
---|
3151 | }
|
---|
3152 | _ACEOF
|
---|
3153 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3154 | ac_compiler_gnu=yes
|
---|
3155 | else
|
---|
3156 | ac_compiler_gnu=no
|
---|
3157 | fi
|
---|
3158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3159 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3160 |
|
---|
3161 | fi
|
---|
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3163 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3164 | if test $ac_compiler_gnu = yes; then
|
---|
3165 | GCC=yes
|
---|
3166 | else
|
---|
3167 | GCC=
|
---|
3168 | fi
|
---|
3169 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3170 | ac_save_CFLAGS=$CFLAGS
|
---|
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3172 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3173 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3174 | $as_echo_n "(cached) " >&6
|
---|
3175 | else
|
---|
3176 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3177 | ac_c_werror_flag=yes
|
---|
3178 | ac_cv_prog_cc_g=no
|
---|
3179 | CFLAGS="-g"
|
---|
3180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3181 | /* end confdefs.h. */
|
---|
3182 |
|
---|
3183 | int
|
---|
3184 | main ()
|
---|
3185 | {
|
---|
3186 |
|
---|
3187 | ;
|
---|
3188 | return 0;
|
---|
3189 | }
|
---|
3190 | _ACEOF
|
---|
3191 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3192 | ac_cv_prog_cc_g=yes
|
---|
3193 | else
|
---|
3194 | CFLAGS=""
|
---|
3195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3196 | /* end confdefs.h. */
|
---|
3197 |
|
---|
3198 | int
|
---|
3199 | main ()
|
---|
3200 | {
|
---|
3201 |
|
---|
3202 | ;
|
---|
3203 | return 0;
|
---|
3204 | }
|
---|
3205 | _ACEOF
|
---|
3206 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3207 |
|
---|
3208 | else
|
---|
3209 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3210 | CFLAGS="-g"
|
---|
3211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3212 | /* end confdefs.h. */
|
---|
3213 |
|
---|
3214 | int
|
---|
3215 | main ()
|
---|
3216 | {
|
---|
3217 |
|
---|
3218 | ;
|
---|
3219 | return 0;
|
---|
3220 | }
|
---|
3221 | _ACEOF
|
---|
3222 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3223 | ac_cv_prog_cc_g=yes
|
---|
3224 | fi
|
---|
3225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3226 | fi
|
---|
3227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3228 | fi
|
---|
3229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3230 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3231 | fi
|
---|
3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3233 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3234 | if test "$ac_test_CFLAGS" = set; then
|
---|
3235 | CFLAGS=$ac_save_CFLAGS
|
---|
3236 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3237 | if test "$GCC" = yes; then
|
---|
3238 | CFLAGS="-g -O2"
|
---|
3239 | else
|
---|
3240 | CFLAGS="-g"
|
---|
3241 | fi
|
---|
3242 | else
|
---|
3243 | if test "$GCC" = yes; then
|
---|
3244 | CFLAGS="-O2"
|
---|
3245 | else
|
---|
3246 | CFLAGS=
|
---|
3247 | fi
|
---|
3248 | fi
|
---|
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3250 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3251 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3252 | $as_echo_n "(cached) " >&6
|
---|
3253 | else
|
---|
3254 | ac_cv_prog_cc_c89=no
|
---|
3255 | ac_save_CC=$CC
|
---|
3256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3257 | /* end confdefs.h. */
|
---|
3258 | #include <stdarg.h>
|
---|
3259 | #include <stdio.h>
|
---|
3260 | struct stat;
|
---|
3261 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3262 | struct buf { int x; };
|
---|
3263 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3264 | static char *e (p, i)
|
---|
3265 | char **p;
|
---|
3266 | int i;
|
---|
3267 | {
|
---|
3268 | return p[i];
|
---|
3269 | }
|
---|
3270 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3271 | {
|
---|
3272 | char *s;
|
---|
3273 | va_list v;
|
---|
3274 | va_start (v,p);
|
---|
3275 | s = g (p, va_arg (v,int));
|
---|
3276 | va_end (v);
|
---|
3277 | return s;
|
---|
3278 | }
|
---|
3279 |
|
---|
3280 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3281 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3282 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3283 | as 'x'. The following induces an error, until -std is added to get
|
---|
3284 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3285 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3286 | that's true only with -std. */
|
---|
3287 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3288 |
|
---|
3289 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3290 | inside strings and character constants. */
|
---|
3291 | #define FOO(x) 'x'
|
---|
3292 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3293 |
|
---|
3294 | int test (int i, double x);
|
---|
3295 | struct s1 {int (*f) (int a);};
|
---|
3296 | struct s2 {int (*f) (double a);};
|
---|
3297 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3298 | int argc;
|
---|
3299 | char **argv;
|
---|
3300 | int
|
---|
3301 | main ()
|
---|
3302 | {
|
---|
3303 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3304 | ;
|
---|
3305 | return 0;
|
---|
3306 | }
|
---|
3307 | _ACEOF
|
---|
3308 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3309 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3310 | do
|
---|
3311 | CC="$ac_save_CC $ac_arg"
|
---|
3312 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3313 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3314 | fi
|
---|
3315 | rm -f core conftest.err conftest.$ac_objext
|
---|
3316 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3317 | done
|
---|
3318 | rm -f conftest.$ac_ext
|
---|
3319 | CC=$ac_save_CC
|
---|
3320 |
|
---|
3321 | fi
|
---|
3322 | # AC_CACHE_VAL
|
---|
3323 | case "x$ac_cv_prog_cc_c89" in
|
---|
3324 | x)
|
---|
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3326 | $as_echo "none needed" >&6; } ;;
|
---|
3327 | xno)
|
---|
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3329 | $as_echo "unsupported" >&6; } ;;
|
---|
3330 | *)
|
---|
3331 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3333 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3334 | esac
|
---|
3335 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3336 |
|
---|
3337 | fi
|
---|
3338 |
|
---|
3339 | ac_ext=c
|
---|
3340 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3344 |
|
---|
3345 | ac_ext=cpp
|
---|
3346 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3347 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3348 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3349 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3350 | if test -z "$CXX"; then
|
---|
3351 | if test -n "$CCC"; then
|
---|
3352 | CXX=$CCC
|
---|
3353 | else
|
---|
3354 | if test -n "$ac_tool_prefix"; then
|
---|
3355 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3356 | do
|
---|
3357 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3358 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3360 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3361 | if ${ac_cv_prog_CXX+:} false; then :
|
---|
3362 | $as_echo_n "(cached) " >&6
|
---|
3363 | else
|
---|
3364 | if test -n "$CXX"; then
|
---|
3365 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
3366 | else
|
---|
3367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3368 | for as_dir in $PATH
|
---|
3369 | do
|
---|
3370 | IFS=$as_save_IFS
|
---|
3371 | test -z "$as_dir" && as_dir=.
|
---|
3372 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3373 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3374 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
3375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3376 | break 2
|
---|
3377 | fi
|
---|
3378 | done
|
---|
3379 | done
|
---|
3380 | IFS=$as_save_IFS
|
---|
3381 |
|
---|
3382 | fi
|
---|
3383 | fi
|
---|
3384 | CXX=$ac_cv_prog_CXX
|
---|
3385 | if test -n "$CXX"; then
|
---|
3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
3387 | $as_echo "$CXX" >&6; }
|
---|
3388 | else
|
---|
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3390 | $as_echo "no" >&6; }
|
---|
3391 | fi
|
---|
3392 |
|
---|
3393 |
|
---|
3394 | test -n "$CXX" && break
|
---|
3395 | done
|
---|
3396 | fi
|
---|
3397 | if test -z "$CXX"; then
|
---|
3398 | ac_ct_CXX=$CXX
|
---|
3399 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
3400 | do
|
---|
3401 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3402 | set dummy $ac_prog; ac_word=$2
|
---|
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3404 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3405 | if ${ac_cv_prog_ac_ct_CXX+:} false; then :
|
---|
3406 | $as_echo_n "(cached) " >&6
|
---|
3407 | else
|
---|
3408 | if test -n "$ac_ct_CXX"; then
|
---|
3409 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
3410 | else
|
---|
3411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3412 | for as_dir in $PATH
|
---|
3413 | do
|
---|
3414 | IFS=$as_save_IFS
|
---|
3415 | test -z "$as_dir" && as_dir=.
|
---|
3416 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3418 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
3419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3420 | break 2
|
---|
3421 | fi
|
---|
3422 | done
|
---|
3423 | done
|
---|
3424 | IFS=$as_save_IFS
|
---|
3425 |
|
---|
3426 | fi
|
---|
3427 | fi
|
---|
3428 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
3429 | if test -n "$ac_ct_CXX"; then
|
---|
3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
3431 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
3432 | else
|
---|
3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3434 | $as_echo "no" >&6; }
|
---|
3435 | fi
|
---|
3436 |
|
---|
3437 |
|
---|
3438 | test -n "$ac_ct_CXX" && break
|
---|
3439 | done
|
---|
3440 |
|
---|
3441 | if test "x$ac_ct_CXX" = x; then
|
---|
3442 | CXX="g++"
|
---|
3443 | else
|
---|
3444 | case $cross_compiling:$ac_tool_warned in
|
---|
3445 | yes:)
|
---|
3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3447 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3448 | ac_tool_warned=yes ;;
|
---|
3449 | esac
|
---|
3450 | CXX=$ac_ct_CXX
|
---|
3451 | fi
|
---|
3452 | fi
|
---|
3453 |
|
---|
3454 | fi
|
---|
3455 | fi
|
---|
3456 | # Provide some information about the compiler.
|
---|
3457 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
3458 | set X $ac_compile
|
---|
3459 | ac_compiler=$2
|
---|
3460 | for ac_option in --version -v -V -qversion; do
|
---|
3461 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3462 | case "(($ac_try" in
|
---|
3463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3464 | *) ac_try_echo=$ac_try;;
|
---|
3465 | esac
|
---|
3466 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3467 | $as_echo "$ac_try_echo"; } >&5
|
---|
3468 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3469 | ac_status=$?
|
---|
3470 | if test -s conftest.err; then
|
---|
3471 | sed '10a\
|
---|
3472 | ... rest of stderr output deleted ...
|
---|
3473 | 10q' conftest.err >conftest.er1
|
---|
3474 | cat conftest.er1 >&5
|
---|
3475 | fi
|
---|
3476 | rm -f conftest.er1 conftest.err
|
---|
3477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3478 | test $ac_status = 0; }
|
---|
3479 | done
|
---|
3480 |
|
---|
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
3482 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
3483 | if ${ac_cv_cxx_compiler_gnu+:} false; then :
|
---|
3484 | $as_echo_n "(cached) " >&6
|
---|
3485 | else
|
---|
3486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3487 | /* end confdefs.h. */
|
---|
3488 |
|
---|
3489 | int
|
---|
3490 | main ()
|
---|
3491 | {
|
---|
3492 | #ifndef __GNUC__
|
---|
3493 | choke me
|
---|
3494 | #endif
|
---|
3495 |
|
---|
3496 | ;
|
---|
3497 | return 0;
|
---|
3498 | }
|
---|
3499 | _ACEOF
|
---|
3500 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3501 | ac_compiler_gnu=yes
|
---|
3502 | else
|
---|
3503 | ac_compiler_gnu=no
|
---|
3504 | fi
|
---|
3505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3506 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3507 |
|
---|
3508 | fi
|
---|
3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3510 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
3511 | if test $ac_compiler_gnu = yes; then
|
---|
3512 | GXX=yes
|
---|
3513 | else
|
---|
3514 | GXX=
|
---|
3515 | fi
|
---|
3516 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3517 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
3519 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
3520 | if ${ac_cv_prog_cxx_g+:} false; then :
|
---|
3521 | $as_echo_n "(cached) " >&6
|
---|
3522 | else
|
---|
3523 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
3524 | ac_cxx_werror_flag=yes
|
---|
3525 | ac_cv_prog_cxx_g=no
|
---|
3526 | CXXFLAGS="-g"
|
---|
3527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3528 | /* end confdefs.h. */
|
---|
3529 |
|
---|
3530 | int
|
---|
3531 | main ()
|
---|
3532 | {
|
---|
3533 |
|
---|
3534 | ;
|
---|
3535 | return 0;
|
---|
3536 | }
|
---|
3537 | _ACEOF
|
---|
3538 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3539 | ac_cv_prog_cxx_g=yes
|
---|
3540 | else
|
---|
3541 | CXXFLAGS=""
|
---|
3542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3543 | /* end confdefs.h. */
|
---|
3544 |
|
---|
3545 | int
|
---|
3546 | main ()
|
---|
3547 | {
|
---|
3548 |
|
---|
3549 | ;
|
---|
3550 | return 0;
|
---|
3551 | }
|
---|
3552 | _ACEOF
|
---|
3553 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3554 |
|
---|
3555 | else
|
---|
3556 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3557 | CXXFLAGS="-g"
|
---|
3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3559 | /* end confdefs.h. */
|
---|
3560 |
|
---|
3561 | int
|
---|
3562 | main ()
|
---|
3563 | {
|
---|
3564 |
|
---|
3565 | ;
|
---|
3566 | return 0;
|
---|
3567 | }
|
---|
3568 | _ACEOF
|
---|
3569 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
3570 | ac_cv_prog_cxx_g=yes
|
---|
3571 | fi
|
---|
3572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3573 | fi
|
---|
3574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3575 | fi
|
---|
3576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3577 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
3578 | fi
|
---|
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
3580 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
3581 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3582 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3583 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3584 | if test "$GXX" = yes; then
|
---|
3585 | CXXFLAGS="-g -O2"
|
---|
3586 | else
|
---|
3587 | CXXFLAGS="-g"
|
---|
3588 | fi
|
---|
3589 | else
|
---|
3590 | if test "$GXX" = yes; then
|
---|
3591 | CXXFLAGS="-O2"
|
---|
3592 | else
|
---|
3593 | CXXFLAGS=
|
---|
3594 | fi
|
---|
3595 | fi
|
---|
3596 | ac_ext=c
|
---|
3597 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3601 |
|
---|
3602 | if test $ENABLE_JAVA = "1" ; then
|
---|
3603 |
|
---|
3604 |
|
---|
3605 | if test "x$JAVAC" = x ; then
|
---|
3606 | if test "x$JAVAPREFIX" = x; then
|
---|
3607 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3608 | do
|
---|
3609 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3610 | set dummy $ac_prog; ac_word=$2
|
---|
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3612 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3613 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
3614 | $as_echo_n "(cached) " >&6
|
---|
3615 | else
|
---|
3616 | if test -n "$JAVAC"; then
|
---|
3617 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3618 | else
|
---|
3619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3620 | for as_dir in $PATH
|
---|
3621 | do
|
---|
3622 | IFS=$as_save_IFS
|
---|
3623 | test -z "$as_dir" && as_dir=.
|
---|
3624 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3626 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3628 | break 2
|
---|
3629 | fi
|
---|
3630 | done
|
---|
3631 | done
|
---|
3632 | IFS=$as_save_IFS
|
---|
3633 |
|
---|
3634 | fi
|
---|
3635 | fi
|
---|
3636 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3637 | if test -n "$JAVAC"; then
|
---|
3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3639 | $as_echo "$JAVAC" >&6; }
|
---|
3640 | else
|
---|
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3642 | $as_echo "no" >&6; }
|
---|
3643 | fi
|
---|
3644 |
|
---|
3645 |
|
---|
3646 | test -n "$JAVAC" && break
|
---|
3647 | done
|
---|
3648 |
|
---|
3649 | else
|
---|
3650 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3651 | do
|
---|
3652 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3653 | set dummy $ac_prog; ac_word=$2
|
---|
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3655 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3656 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
3657 | $as_echo_n "(cached) " >&6
|
---|
3658 | else
|
---|
3659 | if test -n "$JAVAC"; then
|
---|
3660 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3661 | else
|
---|
3662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3663 | for as_dir in $PATH
|
---|
3664 | do
|
---|
3665 | IFS=$as_save_IFS
|
---|
3666 | test -z "$as_dir" && as_dir=.
|
---|
3667 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3668 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3669 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3671 | break 2
|
---|
3672 | fi
|
---|
3673 | done
|
---|
3674 | done
|
---|
3675 | IFS=$as_save_IFS
|
---|
3676 |
|
---|
3677 | fi
|
---|
3678 | fi
|
---|
3679 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3680 | if test -n "$JAVAC"; then
|
---|
3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3682 | $as_echo "$JAVAC" >&6; }
|
---|
3683 | else
|
---|
3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3685 | $as_echo "no" >&6; }
|
---|
3686 | fi
|
---|
3687 |
|
---|
3688 |
|
---|
3689 | test -n "$JAVAC" && break
|
---|
3690 | done
|
---|
3691 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
3692 |
|
---|
3693 | fi
|
---|
3694 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
3695 | else
|
---|
3696 | echo "Checking for javac... $JAVAC"
|
---|
3697 | fi
|
---|
3698 |
|
---|
3699 |
|
---|
3700 |
|
---|
3701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
3702 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
3703 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
3704 | $as_echo_n "(cached) " >&6
|
---|
3705 | else
|
---|
3706 |
|
---|
3707 | JAVA_TEST=Test.java
|
---|
3708 | CLASS_TEST=Test.class
|
---|
3709 | cat << \EOF > $JAVA_TEST
|
---|
3710 | /* #line 3710 "configure" */
|
---|
3711 | public class Test {
|
---|
3712 | }
|
---|
3713 | EOF
|
---|
3714 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
3715 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
3716 | (eval $ac_try) 2>&5
|
---|
3717 | ac_status=$?
|
---|
3718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3719 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
3720 | ac_cv_prog_javac_works=yes
|
---|
3721 | else
|
---|
3722 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
3723 | echo "configure: failed program was:" >&5
|
---|
3724 | cat $JAVA_TEST >&5
|
---|
3725 | fi
|
---|
3726 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
3727 |
|
---|
3728 | fi
|
---|
3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
3730 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
3731 | if test "x$JAVACFLAGS" = x ; then
|
---|
3732 | JAVACFLAGS="-source 1.6 -target 1.6"
|
---|
3733 | fi
|
---|
3734 |
|
---|
3735 |
|
---|
3736 |
|
---|
3737 |
|
---|
3738 | if test "x$JAVA" = x ; then
|
---|
3739 | if test x$JAVAPREFIX = x; then
|
---|
3740 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
3741 | do
|
---|
3742 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3743 | set dummy $ac_prog; ac_word=$2
|
---|
3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3745 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3746 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
3747 | $as_echo_n "(cached) " >&6
|
---|
3748 | else
|
---|
3749 | if test -n "$JAVA"; then
|
---|
3750 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
3751 | else
|
---|
3752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3753 | for as_dir in $PATH
|
---|
3754 | do
|
---|
3755 | IFS=$as_save_IFS
|
---|
3756 | test -z "$as_dir" && as_dir=.
|
---|
3757 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3759 | ac_cv_prog_JAVA="$ac_prog"
|
---|
3760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3761 | break 2
|
---|
3762 | fi
|
---|
3763 | done
|
---|
3764 | done
|
---|
3765 | IFS=$as_save_IFS
|
---|
3766 |
|
---|
3767 | fi
|
---|
3768 | fi
|
---|
3769 | JAVA=$ac_cv_prog_JAVA
|
---|
3770 | if test -n "$JAVA"; then
|
---|
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
3772 | $as_echo "$JAVA" >&6; }
|
---|
3773 | else
|
---|
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3775 | $as_echo "no" >&6; }
|
---|
3776 | fi
|
---|
3777 |
|
---|
3778 |
|
---|
3779 | test -n "$JAVA" && break
|
---|
3780 | done
|
---|
3781 |
|
---|
3782 | else
|
---|
3783 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
3784 | do
|
---|
3785 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3786 | set dummy $ac_prog; ac_word=$2
|
---|
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3788 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3789 | if ${ac_cv_prog_JAVA+:} false; then :
|
---|
3790 | $as_echo_n "(cached) " >&6
|
---|
3791 | else
|
---|
3792 | if test -n "$JAVA"; then
|
---|
3793 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
3794 | else
|
---|
3795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3796 | for as_dir in $PATH
|
---|
3797 | do
|
---|
3798 | IFS=$as_save_IFS
|
---|
3799 | test -z "$as_dir" && as_dir=.
|
---|
3800 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3801 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3802 | ac_cv_prog_JAVA="$ac_prog"
|
---|
3803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3804 | break 2
|
---|
3805 | fi
|
---|
3806 | done
|
---|
3807 | done
|
---|
3808 | IFS=$as_save_IFS
|
---|
3809 |
|
---|
3810 | fi
|
---|
3811 | fi
|
---|
3812 | JAVA=$ac_cv_prog_JAVA
|
---|
3813 | if test -n "$JAVA"; then
|
---|
3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
3815 | $as_echo "$JAVA" >&6; }
|
---|
3816 | else
|
---|
3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3818 | $as_echo "no" >&6; }
|
---|
3819 | fi
|
---|
3820 |
|
---|
3821 |
|
---|
3822 | test -n "$JAVA" && break
|
---|
3823 | done
|
---|
3824 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
3825 |
|
---|
3826 | fi
|
---|
3827 | test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
3828 | fi
|
---|
3829 |
|
---|
3830 |
|
---|
3831 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
3832 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3834 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3835 | if ${ac_cv_prog_uudecode+:} false; then :
|
---|
3836 | $as_echo_n "(cached) " >&6
|
---|
3837 | else
|
---|
3838 | if test -n "$uudecode"; then
|
---|
3839 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
3840 | else
|
---|
3841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3842 | for as_dir in $PATH
|
---|
3843 | do
|
---|
3844 | IFS=$as_save_IFS
|
---|
3845 | test -z "$as_dir" && as_dir=.
|
---|
3846 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3848 | ac_cv_prog_uudecode="yes"
|
---|
3849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3850 | break 2
|
---|
3851 | fi
|
---|
3852 | done
|
---|
3853 | done
|
---|
3854 | IFS=$as_save_IFS
|
---|
3855 |
|
---|
3856 | fi
|
---|
3857 | fi
|
---|
3858 | uudecode=$ac_cv_prog_uudecode
|
---|
3859 | if test -n "$uudecode"; then
|
---|
3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
3861 | $as_echo "$uudecode" >&6; }
|
---|
3862 | else
|
---|
3863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3864 | $as_echo "no" >&6; }
|
---|
3865 | fi
|
---|
3866 |
|
---|
3867 |
|
---|
3868 | if test x$uudecode = xyes; then
|
---|
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
3870 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
3871 | if ${ac_cv_prog_uudecode_base64+:} false; then :
|
---|
3872 | $as_echo_n "(cached) " >&6
|
---|
3873 | else
|
---|
3874 |
|
---|
3875 | cat << \EOF > Test.uue
|
---|
3876 | begin-base64 644 Test.class
|
---|
3877 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
3878 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
3879 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
3880 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
3881 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
3882 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
3883 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
3884 | ====
|
---|
3885 | EOF
|
---|
3886 | if uudecode$EXEEXT Test.uue; then
|
---|
3887 | ac_cv_prog_uudecode_base64=yes
|
---|
3888 | else
|
---|
3889 | echo "configure: 3889: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
3890 | echo "configure: failed file was:" >&5
|
---|
3891 | cat Test.uue >&5
|
---|
3892 | ac_cv_prog_uudecode_base64=no
|
---|
3893 | fi
|
---|
3894 | rm -f Test.uue
|
---|
3895 | fi
|
---|
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
3897 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
3898 | fi
|
---|
3899 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
3900 | rm -f Test.class
|
---|
3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
3902 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
3903 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
3904 | as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
3905 | fi
|
---|
3906 | if test x$ac_cv_prog_javac_works = x; then
|
---|
3907 |
|
---|
3908 | if test "x$JAVAC" = x ; then
|
---|
3909 | if test "x$JAVAPREFIX" = x; then
|
---|
3910 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3911 | do
|
---|
3912 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3913 | set dummy $ac_prog; ac_word=$2
|
---|
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3915 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3916 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
3917 | $as_echo_n "(cached) " >&6
|
---|
3918 | else
|
---|
3919 | if test -n "$JAVAC"; then
|
---|
3920 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3921 | else
|
---|
3922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3923 | for as_dir in $PATH
|
---|
3924 | do
|
---|
3925 | IFS=$as_save_IFS
|
---|
3926 | test -z "$as_dir" && as_dir=.
|
---|
3927 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3928 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3929 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3931 | break 2
|
---|
3932 | fi
|
---|
3933 | done
|
---|
3934 | done
|
---|
3935 | IFS=$as_save_IFS
|
---|
3936 |
|
---|
3937 | fi
|
---|
3938 | fi
|
---|
3939 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3940 | if test -n "$JAVAC"; then
|
---|
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3942 | $as_echo "$JAVAC" >&6; }
|
---|
3943 | else
|
---|
3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3945 | $as_echo "no" >&6; }
|
---|
3946 | fi
|
---|
3947 |
|
---|
3948 |
|
---|
3949 | test -n "$JAVAC" && break
|
---|
3950 | done
|
---|
3951 |
|
---|
3952 | else
|
---|
3953 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
3954 | do
|
---|
3955 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3956 | set dummy $ac_prog; ac_word=$2
|
---|
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3958 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3959 | if ${ac_cv_prog_JAVAC+:} false; then :
|
---|
3960 | $as_echo_n "(cached) " >&6
|
---|
3961 | else
|
---|
3962 | if test -n "$JAVAC"; then
|
---|
3963 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
3964 | else
|
---|
3965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3966 | for as_dir in $PATH
|
---|
3967 | do
|
---|
3968 | IFS=$as_save_IFS
|
---|
3969 | test -z "$as_dir" && as_dir=.
|
---|
3970 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3972 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
3973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3974 | break 2
|
---|
3975 | fi
|
---|
3976 | done
|
---|
3977 | done
|
---|
3978 | IFS=$as_save_IFS
|
---|
3979 |
|
---|
3980 | fi
|
---|
3981 | fi
|
---|
3982 | JAVAC=$ac_cv_prog_JAVAC
|
---|
3983 | if test -n "$JAVAC"; then
|
---|
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
3985 | $as_echo "$JAVAC" >&6; }
|
---|
3986 | else
|
---|
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3988 | $as_echo "no" >&6; }
|
---|
3989 | fi
|
---|
3990 |
|
---|
3991 |
|
---|
3992 | test -n "$JAVAC" && break
|
---|
3993 | done
|
---|
3994 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
3995 |
|
---|
3996 | fi
|
---|
3997 | test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
3998 | else
|
---|
3999 | echo "Checking for javac... $JAVAC"
|
---|
4000 | fi
|
---|
4001 |
|
---|
4002 |
|
---|
4003 |
|
---|
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
4005 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
4006 | if ${ac_cv_prog_javac_works+:} false; then :
|
---|
4007 | $as_echo_n "(cached) " >&6
|
---|
4008 | else
|
---|
4009 |
|
---|
4010 | JAVA_TEST=Test.java
|
---|
4011 | CLASS_TEST=Test.class
|
---|
4012 | cat << \EOF > $JAVA_TEST
|
---|
4013 | /* #line 4013 "configure" */
|
---|
4014 | public class Test {
|
---|
4015 | }
|
---|
4016 | EOF
|
---|
4017 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4018 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4019 | (eval $ac_try) 2>&5
|
---|
4020 | ac_status=$?
|
---|
4021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4022 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4023 | ac_cv_prog_javac_works=yes
|
---|
4024 | else
|
---|
4025 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4026 | echo "configure: failed program was:" >&5
|
---|
4027 | cat $JAVA_TEST >&5
|
---|
4028 | fi
|
---|
4029 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
4030 |
|
---|
4031 | fi
|
---|
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
4033 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
4034 | if test "x$JAVACFLAGS" = x ; then
|
---|
4035 | JAVACFLAGS="-source 1.6 -target 1.6"
|
---|
4036 | fi
|
---|
4037 |
|
---|
4038 |
|
---|
4039 |
|
---|
4040 | fi
|
---|
4041 | fi
|
---|
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
4043 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
4044 | if ${ac_cv_prog_java_works+:} false; then :
|
---|
4045 | $as_echo_n "(cached) " >&6
|
---|
4046 | else
|
---|
4047 |
|
---|
4048 | JAVA_TEST=Test.java
|
---|
4049 | CLASS_TEST=Test.class
|
---|
4050 | TEST=Test
|
---|
4051 | cat << \EOF > $JAVA_TEST
|
---|
4052 | /* [#]line 4052 "configure" */
|
---|
4053 | public class Test {
|
---|
4054 | public static void main (String args[]) {
|
---|
4055 | System.exit (0);
|
---|
4056 | } }
|
---|
4057 | EOF
|
---|
4058 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
4059 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
4060 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4061 | (eval $ac_try) 2>&5
|
---|
4062 | ac_status=$?
|
---|
4063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4064 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
4065 | :
|
---|
4066 | else
|
---|
4067 | echo "configure: failed program was:" >&5
|
---|
4068 | cat $JAVA_TEST >&5
|
---|
4069 | as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4070 | fi
|
---|
4071 | fi
|
---|
4072 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
4073 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
4074 | (eval $ac_try) 2>&5
|
---|
4075 | ac_status=$?
|
---|
4076 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4077 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
4078 | ac_cv_prog_java_works=yes
|
---|
4079 | else
|
---|
4080 | echo "configure: failed program was:" >&5
|
---|
4081 | cat $JAVA_TEST >&5
|
---|
4082 | as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
4083 | fi
|
---|
4084 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
4085 |
|
---|
4086 | fi
|
---|
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
4088 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
4089 |
|
---|
4090 |
|
---|
4091 |
|
---|
4092 | fi
|
---|
4093 | for ac_prog in gawk mawk nawk awk
|
---|
4094 | do
|
---|
4095 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4096 | set dummy $ac_prog; ac_word=$2
|
---|
4097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4098 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4099 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
4100 | $as_echo_n "(cached) " >&6
|
---|
4101 | else
|
---|
4102 | if test -n "$AWK"; then
|
---|
4103 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
4104 | else
|
---|
4105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4106 | for as_dir in $PATH
|
---|
4107 | do
|
---|
4108 | IFS=$as_save_IFS
|
---|
4109 | test -z "$as_dir" && as_dir=.
|
---|
4110 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4112 | ac_cv_prog_AWK="$ac_prog"
|
---|
4113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4114 | break 2
|
---|
4115 | fi
|
---|
4116 | done
|
---|
4117 | done
|
---|
4118 | IFS=$as_save_IFS
|
---|
4119 |
|
---|
4120 | fi
|
---|
4121 | fi
|
---|
4122 | AWK=$ac_cv_prog_AWK
|
---|
4123 | if test -n "$AWK"; then
|
---|
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
4125 | $as_echo "$AWK" >&6; }
|
---|
4126 | else
|
---|
4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4128 | $as_echo "no" >&6; }
|
---|
4129 | fi
|
---|
4130 |
|
---|
4131 |
|
---|
4132 | test -n "$AWK" && break
|
---|
4133 | done
|
---|
4134 |
|
---|
4135 | for ac_prog in 'bison -y' byacc
|
---|
4136 | do
|
---|
4137 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4138 | set dummy $ac_prog; ac_word=$2
|
---|
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4140 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4141 | if ${ac_cv_prog_YACC+:} false; then :
|
---|
4142 | $as_echo_n "(cached) " >&6
|
---|
4143 | else
|
---|
4144 | if test -n "$YACC"; then
|
---|
4145 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
4146 | else
|
---|
4147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4148 | for as_dir in $PATH
|
---|
4149 | do
|
---|
4150 | IFS=$as_save_IFS
|
---|
4151 | test -z "$as_dir" && as_dir=.
|
---|
4152 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4154 | ac_cv_prog_YACC="$ac_prog"
|
---|
4155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4156 | break 2
|
---|
4157 | fi
|
---|
4158 | done
|
---|
4159 | done
|
---|
4160 | IFS=$as_save_IFS
|
---|
4161 |
|
---|
4162 | fi
|
---|
4163 | fi
|
---|
4164 | YACC=$ac_cv_prog_YACC
|
---|
4165 | if test -n "$YACC"; then
|
---|
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
4167 | $as_echo "$YACC" >&6; }
|
---|
4168 | else
|
---|
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4170 | $as_echo "no" >&6; }
|
---|
4171 | fi
|
---|
4172 |
|
---|
4173 |
|
---|
4174 | test -n "$YACC" && break
|
---|
4175 | done
|
---|
4176 | test -n "$YACC" || YACC="yacc"
|
---|
4177 |
|
---|
4178 | ac_aux_dir=
|
---|
4179 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
4180 | if test -f "$ac_dir/install-sh"; then
|
---|
4181 | ac_aux_dir=$ac_dir
|
---|
4182 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
4183 | break
|
---|
4184 | elif test -f "$ac_dir/install.sh"; then
|
---|
4185 | ac_aux_dir=$ac_dir
|
---|
4186 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
4187 | break
|
---|
4188 | elif test -f "$ac_dir/shtool"; then
|
---|
4189 | ac_aux_dir=$ac_dir
|
---|
4190 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
4191 | break
|
---|
4192 | fi
|
---|
4193 | done
|
---|
4194 | if test -z "$ac_aux_dir"; then
|
---|
4195 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
4196 | fi
|
---|
4197 |
|
---|
4198 | # These three variables are undocumented and unsupported,
|
---|
4199 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
4200 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
4201 | # whose full name contains unusual characters.
|
---|
4202 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
4203 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
4204 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
4205 |
|
---|
4206 |
|
---|
4207 | # Make sure we can run config.sub.
|
---|
4208 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
4209 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
4210 |
|
---|
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
4212 | $as_echo_n "checking build system type... " >&6; }
|
---|
4213 | if ${ac_cv_build+:} false; then :
|
---|
4214 | $as_echo_n "(cached) " >&6
|
---|
4215 | else
|
---|
4216 | ac_build_alias=$build_alias
|
---|
4217 | test "x$ac_build_alias" = x &&
|
---|
4218 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
4219 | test "x$ac_build_alias" = x &&
|
---|
4220 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
4221 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
4222 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
4223 |
|
---|
4224 | fi
|
---|
4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
4226 | $as_echo "$ac_cv_build" >&6; }
|
---|
4227 | case $ac_cv_build in
|
---|
4228 | *-*-*) ;;
|
---|
4229 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
4230 | esac
|
---|
4231 | build=$ac_cv_build
|
---|
4232 | ac_save_IFS=$IFS; IFS='-'
|
---|
4233 | set x $ac_cv_build
|
---|
4234 | shift
|
---|
4235 | build_cpu=$1
|
---|
4236 | build_vendor=$2
|
---|
4237 | shift; shift
|
---|
4238 | # Remember, the first character of IFS is used to create $*,
|
---|
4239 | # except with old shells:
|
---|
4240 | build_os=$*
|
---|
4241 | IFS=$ac_save_IFS
|
---|
4242 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
4243 |
|
---|
4244 |
|
---|
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
4246 | $as_echo_n "checking host system type... " >&6; }
|
---|
4247 | if ${ac_cv_host+:} false; then :
|
---|
4248 | $as_echo_n "(cached) " >&6
|
---|
4249 | else
|
---|
4250 | if test "x$host_alias" = x; then
|
---|
4251 | ac_cv_host=$ac_cv_build
|
---|
4252 | else
|
---|
4253 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
4254 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
4255 | fi
|
---|
4256 |
|
---|
4257 | fi
|
---|
4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
4259 | $as_echo "$ac_cv_host" >&6; }
|
---|
4260 | case $ac_cv_host in
|
---|
4261 | *-*-*) ;;
|
---|
4262 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
4263 | esac
|
---|
4264 | host=$ac_cv_host
|
---|
4265 | ac_save_IFS=$IFS; IFS='-'
|
---|
4266 | set x $ac_cv_host
|
---|
4267 | shift
|
---|
4268 | host_cpu=$1
|
---|
4269 | host_vendor=$2
|
---|
4270 | shift; shift
|
---|
4271 | # Remember, the first character of IFS is used to create $*,
|
---|
4272 | # except with old shells:
|
---|
4273 | host_os=$*
|
---|
4274 | IFS=$ac_save_IFS
|
---|
4275 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
4276 |
|
---|
4277 |
|
---|
4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
4279 | $as_echo_n "checking target system type... " >&6; }
|
---|
4280 | if ${ac_cv_target+:} false; then :
|
---|
4281 | $as_echo_n "(cached) " >&6
|
---|
4282 | else
|
---|
4283 | if test "x$target_alias" = x; then
|
---|
4284 | ac_cv_target=$ac_cv_host
|
---|
4285 | else
|
---|
4286 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
4287 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
4288 | fi
|
---|
4289 |
|
---|
4290 | fi
|
---|
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
4292 | $as_echo "$ac_cv_target" >&6; }
|
---|
4293 | case $ac_cv_target in
|
---|
4294 | *-*-*) ;;
|
---|
4295 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
|
---|
4296 | esac
|
---|
4297 | target=$ac_cv_target
|
---|
4298 | ac_save_IFS=$IFS; IFS='-'
|
---|
4299 | set x $ac_cv_target
|
---|
4300 | shift
|
---|
4301 | target_cpu=$1
|
---|
4302 | target_vendor=$2
|
---|
4303 | shift; shift
|
---|
4304 | # Remember, the first character of IFS is used to create $*,
|
---|
4305 | # except with old shells:
|
---|
4306 | target_os=$*
|
---|
4307 | IFS=$ac_save_IFS
|
---|
4308 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
4309 |
|
---|
4310 |
|
---|
4311 | # The aliases save the names the user supplied, while $host etc.
|
---|
4312 | # will get canonicalized.
|
---|
4313 | test -n "$target_alias" &&
|
---|
4314 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
4315 | NONENONEs,x,x, &&
|
---|
4316 | program_prefix=${target_alias}-
|
---|
4317 |
|
---|
4318 | # Find a good install program. We prefer a C program (faster),
|
---|
4319 | # so one script is as good as another. But avoid the broken or
|
---|
4320 | # incompatible versions:
|
---|
4321 | # SysV /etc/install, /usr/sbin/install
|
---|
4322 | # SunOS /usr/etc/install
|
---|
4323 | # IRIX /sbin/install
|
---|
4324 | # AIX /bin/install
|
---|
4325 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
4326 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
4327 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
4328 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
4329 | # OS/2's system install, which has a completely different semantic
|
---|
4330 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
4331 | # Reject install programs that cannot install multiple files.
|
---|
4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
4333 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
4334 | if test -z "$INSTALL"; then
|
---|
4335 | if ${ac_cv_path_install+:} false; then :
|
---|
4336 | $as_echo_n "(cached) " >&6
|
---|
4337 | else
|
---|
4338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4339 | for as_dir in $PATH
|
---|
4340 | do
|
---|
4341 | IFS=$as_save_IFS
|
---|
4342 | test -z "$as_dir" && as_dir=.
|
---|
4343 | # Account for people who put trailing slashes in PATH elements.
|
---|
4344 | case $as_dir/ in #((
|
---|
4345 | ./ | .// | /[cC]/* | \
|
---|
4346 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
4347 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
4348 | /usr/ucb/* ) ;;
|
---|
4349 | *)
|
---|
4350 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
4351 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
4352 | # by default.
|
---|
4353 | for ac_prog in ginstall scoinst install; do
|
---|
4354 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4355 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
4356 | if test $ac_prog = install &&
|
---|
4357 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
4358 | # AIX install. It has an incompatible calling convention.
|
---|
4359 | :
|
---|
4360 | elif test $ac_prog = install &&
|
---|
4361 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
4362 | # program-specific install script used by HP pwplus--don't use.
|
---|
4363 | :
|
---|
4364 | else
|
---|
4365 | rm -rf conftest.one conftest.two conftest.dir
|
---|
4366 | echo one > conftest.one
|
---|
4367 | echo two > conftest.two
|
---|
4368 | mkdir conftest.dir
|
---|
4369 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
4370 | test -s conftest.one && test -s conftest.two &&
|
---|
4371 | test -s conftest.dir/conftest.one &&
|
---|
4372 | test -s conftest.dir/conftest.two
|
---|
4373 | then
|
---|
4374 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
4375 | break 3
|
---|
4376 | fi
|
---|
4377 | fi
|
---|
4378 | fi
|
---|
4379 | done
|
---|
4380 | done
|
---|
4381 | ;;
|
---|
4382 | esac
|
---|
4383 |
|
---|
4384 | done
|
---|
4385 | IFS=$as_save_IFS
|
---|
4386 |
|
---|
4387 | rm -rf conftest.one conftest.two conftest.dir
|
---|
4388 |
|
---|
4389 | fi
|
---|
4390 | if test "${ac_cv_path_install+set}" = set; then
|
---|
4391 | INSTALL=$ac_cv_path_install
|
---|
4392 | else
|
---|
4393 | # As a last resort, use the slow shell script. Don't cache a
|
---|
4394 | # value for INSTALL within a source directory, because that will
|
---|
4395 | # break other packages using the cache if that directory is
|
---|
4396 | # removed, or if the value is a relative name.
|
---|
4397 | INSTALL=$ac_install_sh
|
---|
4398 | fi
|
---|
4399 | fi
|
---|
4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
4401 | $as_echo "$INSTALL" >&6; }
|
---|
4402 |
|
---|
4403 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
4404 | # It thinks the first close brace ends the variable substitution.
|
---|
4405 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
4406 |
|
---|
4407 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
4408 |
|
---|
4409 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
4410 |
|
---|
4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
4412 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
4413 | LN_S=$as_ln_s
|
---|
4414 | if test "$LN_S" = "ln -s"; then
|
---|
4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4416 | $as_echo "yes" >&6; }
|
---|
4417 | else
|
---|
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
4419 | $as_echo "no, using $LN_S" >&6; }
|
---|
4420 | fi
|
---|
4421 |
|
---|
4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
4423 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
4424 | set x ${MAKE-make}
|
---|
4425 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
4426 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
4427 | $as_echo_n "(cached) " >&6
|
---|
4428 | else
|
---|
4429 | cat >conftest.make <<\_ACEOF
|
---|
4430 | SHELL = /bin/sh
|
---|
4431 | all:
|
---|
4432 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
4433 | _ACEOF
|
---|
4434 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
4435 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
4436 | *@@@%%%=?*=@@@%%%*)
|
---|
4437 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
4438 | *)
|
---|
4439 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
4440 | esac
|
---|
4441 | rm -f conftest.make
|
---|
4442 | fi
|
---|
4443 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4445 | $as_echo "yes" >&6; }
|
---|
4446 | SET_MAKE=
|
---|
4447 | else
|
---|
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4449 | $as_echo "no" >&6; }
|
---|
4450 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
4451 | fi
|
---|
4452 |
|
---|
4453 | if test -n "$ac_tool_prefix"; then
|
---|
4454 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
4455 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4457 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4458 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
4459 | $as_echo_n "(cached) " >&6
|
---|
4460 | else
|
---|
4461 | if test -n "$RANLIB"; then
|
---|
4462 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
4463 | else
|
---|
4464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4465 | for as_dir in $PATH
|
---|
4466 | do
|
---|
4467 | IFS=$as_save_IFS
|
---|
4468 | test -z "$as_dir" && as_dir=.
|
---|
4469 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4470 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4471 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
4472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4473 | break 2
|
---|
4474 | fi
|
---|
4475 | done
|
---|
4476 | done
|
---|
4477 | IFS=$as_save_IFS
|
---|
4478 |
|
---|
4479 | fi
|
---|
4480 | fi
|
---|
4481 | RANLIB=$ac_cv_prog_RANLIB
|
---|
4482 | if test -n "$RANLIB"; then
|
---|
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
4484 | $as_echo "$RANLIB" >&6; }
|
---|
4485 | else
|
---|
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4487 | $as_echo "no" >&6; }
|
---|
4488 | fi
|
---|
4489 |
|
---|
4490 |
|
---|
4491 | fi
|
---|
4492 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
4493 | ac_ct_RANLIB=$RANLIB
|
---|
4494 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
4495 | set dummy ranlib; ac_word=$2
|
---|
4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4497 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4498 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
4499 | $as_echo_n "(cached) " >&6
|
---|
4500 | else
|
---|
4501 | if test -n "$ac_ct_RANLIB"; then
|
---|
4502 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
4503 | else
|
---|
4504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4505 | for as_dir in $PATH
|
---|
4506 | do
|
---|
4507 | IFS=$as_save_IFS
|
---|
4508 | test -z "$as_dir" && as_dir=.
|
---|
4509 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4511 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
4512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4513 | break 2
|
---|
4514 | fi
|
---|
4515 | done
|
---|
4516 | done
|
---|
4517 | IFS=$as_save_IFS
|
---|
4518 |
|
---|
4519 | fi
|
---|
4520 | fi
|
---|
4521 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
4522 | if test -n "$ac_ct_RANLIB"; then
|
---|
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
4524 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
4525 | else
|
---|
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4527 | $as_echo "no" >&6; }
|
---|
4528 | fi
|
---|
4529 |
|
---|
4530 | if test "x$ac_ct_RANLIB" = x; then
|
---|
4531 | RANLIB=":"
|
---|
4532 | else
|
---|
4533 | case $cross_compiling:$ac_tool_warned in
|
---|
4534 | yes:)
|
---|
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4536 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4537 | ac_tool_warned=yes ;;
|
---|
4538 | esac
|
---|
4539 | RANLIB=$ac_ct_RANLIB
|
---|
4540 | fi
|
---|
4541 | else
|
---|
4542 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
4543 | fi
|
---|
4544 |
|
---|
4545 | if test -n "$ac_tool_prefix"; then
|
---|
4546 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
4547 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4549 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4550 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
4551 | $as_echo_n "(cached) " >&6
|
---|
4552 | else
|
---|
4553 | if test -n "$STRIP"; then
|
---|
4554 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
4555 | else
|
---|
4556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4557 | for as_dir in $PATH
|
---|
4558 | do
|
---|
4559 | IFS=$as_save_IFS
|
---|
4560 | test -z "$as_dir" && as_dir=.
|
---|
4561 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4563 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
4564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4565 | break 2
|
---|
4566 | fi
|
---|
4567 | done
|
---|
4568 | done
|
---|
4569 | IFS=$as_save_IFS
|
---|
4570 |
|
---|
4571 | fi
|
---|
4572 | fi
|
---|
4573 | STRIP=$ac_cv_prog_STRIP
|
---|
4574 | if test -n "$STRIP"; then
|
---|
4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
4576 | $as_echo "$STRIP" >&6; }
|
---|
4577 | else
|
---|
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4579 | $as_echo "no" >&6; }
|
---|
4580 | fi
|
---|
4581 |
|
---|
4582 |
|
---|
4583 | fi
|
---|
4584 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
4585 | ac_ct_STRIP=$STRIP
|
---|
4586 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
4587 | set dummy strip; ac_word=$2
|
---|
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4589 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4590 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
4591 | $as_echo_n "(cached) " >&6
|
---|
4592 | else
|
---|
4593 | if test -n "$ac_ct_STRIP"; then
|
---|
4594 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
4595 | else
|
---|
4596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4597 | for as_dir in $PATH
|
---|
4598 | do
|
---|
4599 | IFS=$as_save_IFS
|
---|
4600 | test -z "$as_dir" && as_dir=.
|
---|
4601 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4602 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4603 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
4604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4605 | break 2
|
---|
4606 | fi
|
---|
4607 | done
|
---|
4608 | done
|
---|
4609 | IFS=$as_save_IFS
|
---|
4610 |
|
---|
4611 | fi
|
---|
4612 | fi
|
---|
4613 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
4614 | if test -n "$ac_ct_STRIP"; then
|
---|
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
4616 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
4617 | else
|
---|
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4619 | $as_echo "no" >&6; }
|
---|
4620 | fi
|
---|
4621 |
|
---|
4622 | if test "x$ac_ct_STRIP" = x; then
|
---|
4623 | STRIP=""
|
---|
4624 | else
|
---|
4625 | case $cross_compiling:$ac_tool_warned in
|
---|
4626 | yes:)
|
---|
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4628 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4629 | ac_tool_warned=yes ;;
|
---|
4630 | esac
|
---|
4631 | STRIP=$ac_ct_STRIP
|
---|
4632 | fi
|
---|
4633 | else
|
---|
4634 | STRIP="$ac_cv_prog_STRIP"
|
---|
4635 | fi
|
---|
4636 |
|
---|
4637 |
|
---|
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
|
---|
4639 | $as_echo_n "checking to see if architecture is 64-bit... " >&6; }
|
---|
4640 | arch_64bit=no
|
---|
4641 | case "$host_cpu" in
|
---|
4642 | x86_64) arch_64bit=yes ;;
|
---|
4643 | esac
|
---|
4644 |
|
---|
4645 | if test "$arch_64bit" = yes; then
|
---|
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4647 | $as_echo "yes" >&6; }
|
---|
4648 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
4649 | ARCH_DEP_FLAGS="-fPIC"
|
---|
4650 | fi
|
---|
4651 | else
|
---|
4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4653 | $as_echo "no" >&6; }
|
---|
4654 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
4655 | ARCH_DEP_FLAGS=
|
---|
4656 | fi
|
---|
4657 | fi
|
---|
4658 |
|
---|
4659 | export ARCH_DEP_FLAGS
|
---|
4660 |
|
---|
4661 |
|
---|
4662 |
|
---|
4663 | #moved CORBA MICO directory test to get version of MICO
|
---|
4664 | if test $USE_CORBA = 1; then
|
---|
4665 |
|
---|
4666 | if test $MICO_DIR = "default"; then
|
---|
4667 | #do something
|
---|
4668 | MICO_INC="-I packages/mico/mico/include"
|
---|
4669 | else
|
---|
4670 | #build the micotest program
|
---|
4671 | MICO_INC= ""
|
---|
4672 | if test $MICO_DIR != yes; then
|
---|
4673 | MICO_INC="-I $MICO_DIR"
|
---|
4674 | fi
|
---|
4675 | fi
|
---|
4676 |
|
---|
4677 | #get MICO_VER value
|
---|
4678 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
4679 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
4680 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
4681 | sh -c "rm micotest"
|
---|
4682 | sh -c "rm micotest.o"
|
---|
4683 |
|
---|
4684 | #do test of MICO_VER
|
---|
4685 | if test MICO_VER != 0; then
|
---|
4686 | $as_echo "#define MICO_VER 1" >>confdefs.h
|
---|
4687 |
|
---|
4688 |
|
---|
4689 | fi
|
---|
4690 | #end USE_CORBA test
|
---|
4691 | fi
|
---|
4692 |
|
---|
4693 |
|
---|
4694 | ac_ext=c
|
---|
4695 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4700 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4701 | # On Suns, sometimes $CPP names a directory.
|
---|
4702 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4703 | CPP=
|
---|
4704 | fi
|
---|
4705 | if test -z "$CPP"; then
|
---|
4706 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
4707 | $as_echo_n "(cached) " >&6
|
---|
4708 | else
|
---|
4709 | # Double quotes because CPP needs to be expanded
|
---|
4710 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4711 | do
|
---|
4712 | ac_preproc_ok=false
|
---|
4713 | for ac_c_preproc_warn_flag in '' yes
|
---|
4714 | do
|
---|
4715 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4716 | # with a fresh cross-compiler works.
|
---|
4717 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4718 | # <limits.h> exists even on freestanding compilers.
|
---|
4719 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4720 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4722 | /* end confdefs.h. */
|
---|
4723 | #ifdef __STDC__
|
---|
4724 | # include <limits.h>
|
---|
4725 | #else
|
---|
4726 | # include <assert.h>
|
---|
4727 | #endif
|
---|
4728 | Syntax error
|
---|
4729 | _ACEOF
|
---|
4730 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4731 |
|
---|
4732 | else
|
---|
4733 | # Broken: fails on valid input.
|
---|
4734 | continue
|
---|
4735 | fi
|
---|
4736 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4737 |
|
---|
4738 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4739 | # can be detected and how.
|
---|
4740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4741 | /* end confdefs.h. */
|
---|
4742 | #include <ac_nonexistent.h>
|
---|
4743 | _ACEOF
|
---|
4744 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4745 | # Broken: success on invalid input.
|
---|
4746 | continue
|
---|
4747 | else
|
---|
4748 | # Passes both tests.
|
---|
4749 | ac_preproc_ok=:
|
---|
4750 | break
|
---|
4751 | fi
|
---|
4752 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4753 |
|
---|
4754 | done
|
---|
4755 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4756 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4757 | if $ac_preproc_ok; then :
|
---|
4758 | break
|
---|
4759 | fi
|
---|
4760 |
|
---|
4761 | done
|
---|
4762 | ac_cv_prog_CPP=$CPP
|
---|
4763 |
|
---|
4764 | fi
|
---|
4765 | CPP=$ac_cv_prog_CPP
|
---|
4766 | else
|
---|
4767 | ac_cv_prog_CPP=$CPP
|
---|
4768 | fi
|
---|
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4770 | $as_echo "$CPP" >&6; }
|
---|
4771 | ac_preproc_ok=false
|
---|
4772 | for ac_c_preproc_warn_flag in '' yes
|
---|
4773 | do
|
---|
4774 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4775 | # with a fresh cross-compiler works.
|
---|
4776 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4777 | # <limits.h> exists even on freestanding compilers.
|
---|
4778 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4779 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4781 | /* end confdefs.h. */
|
---|
4782 | #ifdef __STDC__
|
---|
4783 | # include <limits.h>
|
---|
4784 | #else
|
---|
4785 | # include <assert.h>
|
---|
4786 | #endif
|
---|
4787 | Syntax error
|
---|
4788 | _ACEOF
|
---|
4789 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4790 |
|
---|
4791 | else
|
---|
4792 | # Broken: fails on valid input.
|
---|
4793 | continue
|
---|
4794 | fi
|
---|
4795 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4796 |
|
---|
4797 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4798 | # can be detected and how.
|
---|
4799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4800 | /* end confdefs.h. */
|
---|
4801 | #include <ac_nonexistent.h>
|
---|
4802 | _ACEOF
|
---|
4803 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4804 | # Broken: success on invalid input.
|
---|
4805 | continue
|
---|
4806 | else
|
---|
4807 | # Passes both tests.
|
---|
4808 | ac_preproc_ok=:
|
---|
4809 | break
|
---|
4810 | fi
|
---|
4811 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4812 |
|
---|
4813 | done
|
---|
4814 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4815 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4816 | if $ac_preproc_ok; then :
|
---|
4817 |
|
---|
4818 | else
|
---|
4819 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4820 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4821 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
4822 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
4823 | fi
|
---|
4824 |
|
---|
4825 | ac_ext=c
|
---|
4826 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4827 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4828 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4829 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4830 |
|
---|
4831 |
|
---|
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4833 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4834 | if ${ac_cv_path_GREP+:} false; then :
|
---|
4835 | $as_echo_n "(cached) " >&6
|
---|
4836 | else
|
---|
4837 | if test -z "$GREP"; then
|
---|
4838 | ac_path_GREP_found=false
|
---|
4839 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4841 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4842 | do
|
---|
4843 | IFS=$as_save_IFS
|
---|
4844 | test -z "$as_dir" && as_dir=.
|
---|
4845 | for ac_prog in grep ggrep; do
|
---|
4846 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4847 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4848 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
4849 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4850 | # Check for GNU $ac_path_GREP
|
---|
4851 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4852 | *GNU*)
|
---|
4853 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4854 | *)
|
---|
4855 | ac_count=0
|
---|
4856 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4857 | while :
|
---|
4858 | do
|
---|
4859 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4860 | mv "conftest.tmp" "conftest.in"
|
---|
4861 | cp "conftest.in" "conftest.nl"
|
---|
4862 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4863 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4864 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4865 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4866 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4867 | # Best one so far, save it but keep looking for a better one
|
---|
4868 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4869 | ac_path_GREP_max=$ac_count
|
---|
4870 | fi
|
---|
4871 | # 10*(2^10) chars as input seems more than enough
|
---|
4872 | test $ac_count -gt 10 && break
|
---|
4873 | done
|
---|
4874 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4875 | esac
|
---|
4876 |
|
---|
4877 | $ac_path_GREP_found && break 3
|
---|
4878 | done
|
---|
4879 | done
|
---|
4880 | done
|
---|
4881 | IFS=$as_save_IFS
|
---|
4882 | if test -z "$ac_cv_path_GREP"; then
|
---|
4883 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4884 | fi
|
---|
4885 | else
|
---|
4886 | ac_cv_path_GREP=$GREP
|
---|
4887 | fi
|
---|
4888 |
|
---|
4889 | fi
|
---|
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4891 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4892 | GREP="$ac_cv_path_GREP"
|
---|
4893 |
|
---|
4894 |
|
---|
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4896 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4897 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
4898 | $as_echo_n "(cached) " >&6
|
---|
4899 | else
|
---|
4900 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4901 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4902 | else
|
---|
4903 | if test -z "$EGREP"; then
|
---|
4904 | ac_path_EGREP_found=false
|
---|
4905 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4907 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4908 | do
|
---|
4909 | IFS=$as_save_IFS
|
---|
4910 | test -z "$as_dir" && as_dir=.
|
---|
4911 | for ac_prog in egrep; do
|
---|
4912 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4913 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4914 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
4915 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4916 | # Check for GNU $ac_path_EGREP
|
---|
4917 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4918 | *GNU*)
|
---|
4919 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4920 | *)
|
---|
4921 | ac_count=0
|
---|
4922 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4923 | while :
|
---|
4924 | do
|
---|
4925 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4926 | mv "conftest.tmp" "conftest.in"
|
---|
4927 | cp "conftest.in" "conftest.nl"
|
---|
4928 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4929 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4930 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4931 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4932 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4933 | # Best one so far, save it but keep looking for a better one
|
---|
4934 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4935 | ac_path_EGREP_max=$ac_count
|
---|
4936 | fi
|
---|
4937 | # 10*(2^10) chars as input seems more than enough
|
---|
4938 | test $ac_count -gt 10 && break
|
---|
4939 | done
|
---|
4940 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4941 | esac
|
---|
4942 |
|
---|
4943 | $ac_path_EGREP_found && break 3
|
---|
4944 | done
|
---|
4945 | done
|
---|
4946 | done
|
---|
4947 | IFS=$as_save_IFS
|
---|
4948 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4949 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4950 | fi
|
---|
4951 | else
|
---|
4952 | ac_cv_path_EGREP=$EGREP
|
---|
4953 | fi
|
---|
4954 |
|
---|
4955 | fi
|
---|
4956 | fi
|
---|
4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4958 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4959 | EGREP="$ac_cv_path_EGREP"
|
---|
4960 |
|
---|
4961 |
|
---|
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
4963 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
4964 | if ${ac_cv_header_stdc+:} false; then :
|
---|
4965 | $as_echo_n "(cached) " >&6
|
---|
4966 | else
|
---|
4967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4968 | /* end confdefs.h. */
|
---|
4969 | #include <stdlib.h>
|
---|
4970 | #include <stdarg.h>
|
---|
4971 | #include <string.h>
|
---|
4972 | #include <float.h>
|
---|
4973 |
|
---|
4974 | int
|
---|
4975 | main ()
|
---|
4976 | {
|
---|
4977 |
|
---|
4978 | ;
|
---|
4979 | return 0;
|
---|
4980 | }
|
---|
4981 | _ACEOF
|
---|
4982 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4983 | ac_cv_header_stdc=yes
|
---|
4984 | else
|
---|
4985 | ac_cv_header_stdc=no
|
---|
4986 | fi
|
---|
4987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4988 |
|
---|
4989 | if test $ac_cv_header_stdc = yes; then
|
---|
4990 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
4991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4992 | /* end confdefs.h. */
|
---|
4993 | #include <string.h>
|
---|
4994 |
|
---|
4995 | _ACEOF
|
---|
4996 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
4997 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
4998 |
|
---|
4999 | else
|
---|
5000 | ac_cv_header_stdc=no
|
---|
5001 | fi
|
---|
5002 | rm -f conftest*
|
---|
5003 |
|
---|
5004 | fi
|
---|
5005 |
|
---|
5006 | if test $ac_cv_header_stdc = yes; then
|
---|
5007 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5009 | /* end confdefs.h. */
|
---|
5010 | #include <stdlib.h>
|
---|
5011 |
|
---|
5012 | _ACEOF
|
---|
5013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5014 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
5015 |
|
---|
5016 | else
|
---|
5017 | ac_cv_header_stdc=no
|
---|
5018 | fi
|
---|
5019 | rm -f conftest*
|
---|
5020 |
|
---|
5021 | fi
|
---|
5022 |
|
---|
5023 | if test $ac_cv_header_stdc = yes; then
|
---|
5024 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5025 | if test "$cross_compiling" = yes; then :
|
---|
5026 | :
|
---|
5027 | else
|
---|
5028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5029 | /* end confdefs.h. */
|
---|
5030 | #include <ctype.h>
|
---|
5031 | #include <stdlib.h>
|
---|
5032 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5033 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5034 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5035 | #else
|
---|
5036 | # define ISLOWER(c) \
|
---|
5037 | (('a' <= (c) && (c) <= 'i') \
|
---|
5038 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5039 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5040 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5041 | #endif
|
---|
5042 |
|
---|
5043 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5044 | int
|
---|
5045 | main ()
|
---|
5046 | {
|
---|
5047 | int i;
|
---|
5048 | for (i = 0; i < 256; i++)
|
---|
5049 | if (XOR (islower (i), ISLOWER (i))
|
---|
5050 | || toupper (i) != TOUPPER (i))
|
---|
5051 | return 2;
|
---|
5052 | return 0;
|
---|
5053 | }
|
---|
5054 | _ACEOF
|
---|
5055 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5056 |
|
---|
5057 | else
|
---|
5058 | ac_cv_header_stdc=no
|
---|
5059 | fi
|
---|
5060 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5061 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5062 | fi
|
---|
5063 |
|
---|
5064 | fi
|
---|
5065 | fi
|
---|
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
5067 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
5068 | if test $ac_cv_header_stdc = yes; then
|
---|
5069 |
|
---|
5070 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
5071 |
|
---|
5072 | fi
|
---|
5073 |
|
---|
5074 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
5075 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
5076 | inttypes.h stdint.h unistd.h
|
---|
5077 | do :
|
---|
5078 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5079 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
5080 | "
|
---|
5081 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5082 | cat >>confdefs.h <<_ACEOF
|
---|
5083 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5084 | _ACEOF
|
---|
5085 |
|
---|
5086 | fi
|
---|
5087 |
|
---|
5088 | done
|
---|
5089 |
|
---|
5090 |
|
---|
5091 |
|
---|
5092 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
5093 | if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
---|
5094 | MINIX=yes
|
---|
5095 | else
|
---|
5096 | MINIX=
|
---|
5097 | fi
|
---|
5098 |
|
---|
5099 |
|
---|
5100 | if test "$MINIX" = yes; then
|
---|
5101 |
|
---|
5102 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
5103 |
|
---|
5104 |
|
---|
5105 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
5106 |
|
---|
5107 |
|
---|
5108 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
5109 |
|
---|
5110 | fi
|
---|
5111 |
|
---|
5112 |
|
---|
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
5114 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
5115 | if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
---|
5116 | $as_echo_n "(cached) " >&6
|
---|
5117 | else
|
---|
5118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5119 | /* end confdefs.h. */
|
---|
5120 |
|
---|
5121 | # define __EXTENSIONS__ 1
|
---|
5122 | $ac_includes_default
|
---|
5123 | int
|
---|
5124 | main ()
|
---|
5125 | {
|
---|
5126 |
|
---|
5127 | ;
|
---|
5128 | return 0;
|
---|
5129 | }
|
---|
5130 | _ACEOF
|
---|
5131 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5132 | ac_cv_safe_to_define___extensions__=yes
|
---|
5133 | else
|
---|
5134 | ac_cv_safe_to_define___extensions__=no
|
---|
5135 | fi
|
---|
5136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5137 | fi
|
---|
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
5139 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
5140 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
5141 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
5142 |
|
---|
5143 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
5144 |
|
---|
5145 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
5146 |
|
---|
5147 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
5148 |
|
---|
5149 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
5150 |
|
---|
5151 |
|
---|
5152 |
|
---|
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
5154 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
5155 | if ${ac_cv_search_strerror+:} false; then :
|
---|
5156 | $as_echo_n "(cached) " >&6
|
---|
5157 | else
|
---|
5158 | ac_func_search_save_LIBS=$LIBS
|
---|
5159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5160 | /* end confdefs.h. */
|
---|
5161 |
|
---|
5162 | /* Override any GCC internal prototype to avoid an error.
|
---|
5163 | Use char because int might match the return type of a GCC
|
---|
5164 | builtin and then its argument prototype would still apply. */
|
---|
5165 | #ifdef __cplusplus
|
---|
5166 | extern "C"
|
---|
5167 | #endif
|
---|
5168 | char strerror ();
|
---|
5169 | int
|
---|
5170 | main ()
|
---|
5171 | {
|
---|
5172 | return strerror ();
|
---|
5173 | ;
|
---|
5174 | return 0;
|
---|
5175 | }
|
---|
5176 | _ACEOF
|
---|
5177 | for ac_lib in '' cposix; do
|
---|
5178 | if test -z "$ac_lib"; then
|
---|
5179 | ac_res="none required"
|
---|
5180 | else
|
---|
5181 | ac_res=-l$ac_lib
|
---|
5182 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5183 | fi
|
---|
5184 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5185 | ac_cv_search_strerror=$ac_res
|
---|
5186 | fi
|
---|
5187 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5188 | conftest$ac_exeext
|
---|
5189 | if ${ac_cv_search_strerror+:} false; then :
|
---|
5190 | break
|
---|
5191 | fi
|
---|
5192 | done
|
---|
5193 | if ${ac_cv_search_strerror+:} false; then :
|
---|
5194 |
|
---|
5195 | else
|
---|
5196 | ac_cv_search_strerror=no
|
---|
5197 | fi
|
---|
5198 | rm conftest.$ac_ext
|
---|
5199 | LIBS=$ac_func_search_save_LIBS
|
---|
5200 | fi
|
---|
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
5202 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
5203 | ac_res=$ac_cv_search_strerror
|
---|
5204 | if test "$ac_res" != no; then :
|
---|
5205 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5206 |
|
---|
5207 | fi
|
---|
5208 |
|
---|
5209 |
|
---|
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
5211 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
5212 | if ${ac_cv_prog_cc_stdc+:} false; then :
|
---|
5213 | $as_echo_n "(cached) " >&6
|
---|
5214 | else
|
---|
5215 | ac_cv_prog_cc_stdc=no
|
---|
5216 | ac_save_CFLAGS="$CFLAGS"
|
---|
5217 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
5218 | # breaks some systems' header files.
|
---|
5219 | # AIX -qlanglvl=ansi
|
---|
5220 | # Ultrix and OSF/1 -std1
|
---|
5221 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
5222 | # SVR4 -Xc
|
---|
5223 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
5224 | do
|
---|
5225 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
5226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5227 | /* end confdefs.h. */
|
---|
5228 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
5229 | choke me
|
---|
5230 | #endif
|
---|
5231 |
|
---|
5232 | int
|
---|
5233 | main ()
|
---|
5234 | {
|
---|
5235 | int test (int i, double x);
|
---|
5236 | struct s1 {int (*f) (int a);};
|
---|
5237 | struct s2 {int (*f) (double a);};
|
---|
5238 | ;
|
---|
5239 | return 0;
|
---|
5240 | }
|
---|
5241 | _ACEOF
|
---|
5242 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5243 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
5244 | fi
|
---|
5245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5246 | done
|
---|
5247 | CFLAGS="$ac_save_CFLAGS"
|
---|
5248 |
|
---|
5249 | fi
|
---|
5250 |
|
---|
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
5252 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
5253 | case "x$ac_cv_prog_cc_stdc" in
|
---|
5254 | x|xno) ;;
|
---|
5255 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
5256 | esac
|
---|
5257 |
|
---|
5258 |
|
---|
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
5260 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
5261 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5263 | $as_echo "yes" >&6; }
|
---|
5264 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
5265 |
|
---|
5266 | U= ANSI2KNR=
|
---|
5267 | else
|
---|
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5269 | $as_echo "no" >&6; }
|
---|
5270 | U=_ ANSI2KNR=ansi2knr
|
---|
5271 | fi
|
---|
5272 |
|
---|
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
5274 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
5275 | if ${ac_cv_c_const+:} false; then :
|
---|
5276 | $as_echo_n "(cached) " >&6
|
---|
5277 | else
|
---|
5278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5279 | /* end confdefs.h. */
|
---|
5280 |
|
---|
5281 | int
|
---|
5282 | main ()
|
---|
5283 | {
|
---|
5284 |
|
---|
5285 | #ifndef __cplusplus
|
---|
5286 | /* Ultrix mips cc rejects this sort of thing. */
|
---|
5287 | typedef int charset[2];
|
---|
5288 | const charset cs = { 0, 0 };
|
---|
5289 | /* SunOS 4.1.1 cc rejects this. */
|
---|
5290 | char const *const *pcpcc;
|
---|
5291 | char **ppc;
|
---|
5292 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
5293 | struct point {int x, y;};
|
---|
5294 | static struct point const zero = {0,0};
|
---|
5295 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
5296 | It does not let you subtract one const X* pointer from another in
|
---|
5297 | an arm of an if-expression whose if-part is not a constant
|
---|
5298 | expression */
|
---|
5299 | const char *g = "string";
|
---|
5300 | pcpcc = &g + (g ? g-g : 0);
|
---|
5301 | /* HPUX 7.0 cc rejects these. */
|
---|
5302 | ++pcpcc;
|
---|
5303 | ppc = (char**) pcpcc;
|
---|
5304 | pcpcc = (char const *const *) ppc;
|
---|
5305 | { /* SCO 3.2v4 cc rejects this sort of thing. */
|
---|
5306 | char tx;
|
---|
5307 | char *t = &tx;
|
---|
5308 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
5309 |
|
---|
5310 | *t++ = 0;
|
---|
5311 | if (s) return 0;
|
---|
5312 | }
|
---|
5313 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
5314 | int x[] = {25, 17};
|
---|
5315 | const int *foo = &x[0];
|
---|
5316 | ++foo;
|
---|
5317 | }
|
---|
5318 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
5319 | typedef const int *iptr;
|
---|
5320 | iptr p = 0;
|
---|
5321 | ++p;
|
---|
5322 | }
|
---|
5323 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
---|
5324 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
5325 | struct s { int j; const int *ap[3]; } bx;
|
---|
5326 | struct s *b = &bx; b->j = 5;
|
---|
5327 | }
|
---|
5328 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
5329 | const int foo = 10;
|
---|
5330 | if (!foo) return 0;
|
---|
5331 | }
|
---|
5332 | return !cs[0] && !zero.x;
|
---|
5333 | #endif
|
---|
5334 |
|
---|
5335 | ;
|
---|
5336 | return 0;
|
---|
5337 | }
|
---|
5338 | _ACEOF
|
---|
5339 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5340 | ac_cv_c_const=yes
|
---|
5341 | else
|
---|
5342 | ac_cv_c_const=no
|
---|
5343 | fi
|
---|
5344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5345 | fi
|
---|
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
5347 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
5348 | if test $ac_cv_c_const = no; then
|
---|
5349 |
|
---|
5350 | $as_echo "#define const /**/" >>confdefs.h
|
---|
5351 |
|
---|
5352 | fi
|
---|
5353 |
|
---|
5354 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
5355 | if test "x$ac_cv_type_off_t" = xyes; then :
|
---|
5356 |
|
---|
5357 | else
|
---|
5358 |
|
---|
5359 | cat >>confdefs.h <<_ACEOF
|
---|
5360 | #define off_t long int
|
---|
5361 | _ACEOF
|
---|
5362 |
|
---|
5363 | fi
|
---|
5364 |
|
---|
5365 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
5366 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
5367 |
|
---|
5368 | else
|
---|
5369 |
|
---|
5370 | cat >>confdefs.h <<_ACEOF
|
---|
5371 | #define size_t unsigned int
|
---|
5372 | _ACEOF
|
---|
5373 |
|
---|
5374 | fi
|
---|
5375 |
|
---|
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
5377 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
5378 | if ${ac_cv_header_time+:} false; then :
|
---|
5379 | $as_echo_n "(cached) " >&6
|
---|
5380 | else
|
---|
5381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5382 | /* end confdefs.h. */
|
---|
5383 | #include <sys/types.h>
|
---|
5384 | #include <sys/time.h>
|
---|
5385 | #include <time.h>
|
---|
5386 |
|
---|
5387 | int
|
---|
5388 | main ()
|
---|
5389 | {
|
---|
5390 | if ((struct tm *) 0)
|
---|
5391 | return 0;
|
---|
5392 | ;
|
---|
5393 | return 0;
|
---|
5394 | }
|
---|
5395 | _ACEOF
|
---|
5396 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5397 | ac_cv_header_time=yes
|
---|
5398 | else
|
---|
5399 | ac_cv_header_time=no
|
---|
5400 | fi
|
---|
5401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5402 | fi
|
---|
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
5404 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
5405 | if test $ac_cv_header_time = yes; then
|
---|
5406 |
|
---|
5407 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
5408 |
|
---|
5409 | fi
|
---|
5410 |
|
---|
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
5412 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
5413 | if ${ac_cv_struct_tm+:} false; then :
|
---|
5414 | $as_echo_n "(cached) " >&6
|
---|
5415 | else
|
---|
5416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5417 | /* end confdefs.h. */
|
---|
5418 | #include <sys/types.h>
|
---|
5419 | #include <time.h>
|
---|
5420 |
|
---|
5421 | int
|
---|
5422 | main ()
|
---|
5423 | {
|
---|
5424 | struct tm tm;
|
---|
5425 | int *p = &tm.tm_sec;
|
---|
5426 | return !p;
|
---|
5427 | ;
|
---|
5428 | return 0;
|
---|
5429 | }
|
---|
5430 | _ACEOF
|
---|
5431 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5432 | ac_cv_struct_tm=time.h
|
---|
5433 | else
|
---|
5434 | ac_cv_struct_tm=sys/time.h
|
---|
5435 | fi
|
---|
5436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5437 | fi
|
---|
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
5439 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
5440 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
5441 |
|
---|
5442 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
5443 |
|
---|
5444 | fi
|
---|
5445 |
|
---|
5446 |
|
---|
5447 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
5448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5449 | /* end confdefs.h. */
|
---|
5450 | #include <stdio.h>
|
---|
5451 |
|
---|
5452 | int
|
---|
5453 | main ()
|
---|
5454 | {
|
---|
5455 | FILE *rubbish = popen("yes", "r");
|
---|
5456 | ;
|
---|
5457 | return 0;
|
---|
5458 | }
|
---|
5459 | _ACEOF
|
---|
5460 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5461 |
|
---|
5462 | else
|
---|
5463 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
5464 | fi
|
---|
5465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5466 | fi
|
---|
5467 |
|
---|
5468 |
|
---|
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
5470 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
5471 | if ${ac_cv_lib_g_main+:} false; then :
|
---|
5472 | $as_echo_n "(cached) " >&6
|
---|
5473 | else
|
---|
5474 | ac_check_lib_save_LIBS=$LIBS
|
---|
5475 | LIBS="-lg $LIBS"
|
---|
5476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5477 | /* end confdefs.h. */
|
---|
5478 |
|
---|
5479 |
|
---|
5480 | int
|
---|
5481 | main ()
|
---|
5482 | {
|
---|
5483 | return main ();
|
---|
5484 | ;
|
---|
5485 | return 0;
|
---|
5486 | }
|
---|
5487 | _ACEOF
|
---|
5488 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5489 | ac_cv_lib_g_main=yes
|
---|
5490 | else
|
---|
5491 | ac_cv_lib_g_main=no
|
---|
5492 | fi
|
---|
5493 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5494 | conftest$ac_exeext conftest.$ac_ext
|
---|
5495 | LIBS=$ac_check_lib_save_LIBS
|
---|
5496 | fi
|
---|
5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
5498 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
5499 | if test "x$ac_cv_lib_g_main" = xyes; then :
|
---|
5500 | cat >>confdefs.h <<_ACEOF
|
---|
5501 | #define HAVE_LIBG 1
|
---|
5502 | _ACEOF
|
---|
5503 |
|
---|
5504 | LIBS="-lg $LIBS"
|
---|
5505 |
|
---|
5506 | fi
|
---|
5507 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
5508 |
|
---|
5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
5510 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
5511 | if ${ac_cv_lib_m_main+:} false; then :
|
---|
5512 | $as_echo_n "(cached) " >&6
|
---|
5513 | else
|
---|
5514 | ac_check_lib_save_LIBS=$LIBS
|
---|
5515 | LIBS="-lm $LIBS"
|
---|
5516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5517 | /* end confdefs.h. */
|
---|
5518 |
|
---|
5519 |
|
---|
5520 | int
|
---|
5521 | main ()
|
---|
5522 | {
|
---|
5523 | return main ();
|
---|
5524 | ;
|
---|
5525 | return 0;
|
---|
5526 | }
|
---|
5527 | _ACEOF
|
---|
5528 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5529 | ac_cv_lib_m_main=yes
|
---|
5530 | else
|
---|
5531 | ac_cv_lib_m_main=no
|
---|
5532 | fi
|
---|
5533 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5534 | conftest$ac_exeext conftest.$ac_ext
|
---|
5535 | LIBS=$ac_check_lib_save_LIBS
|
---|
5536 | fi
|
---|
5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
5538 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
5539 | if test "x$ac_cv_lib_m_main" = xyes; then :
|
---|
5540 | cat >>confdefs.h <<_ACEOF
|
---|
5541 | #define HAVE_LIBM 1
|
---|
5542 | _ACEOF
|
---|
5543 |
|
---|
5544 | LIBS="-lm $LIBS"
|
---|
5545 |
|
---|
5546 | fi
|
---|
5547 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
5548 |
|
---|
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
5550 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
5551 | if ${ac_cv_lib_crypt_main+:} false; then :
|
---|
5552 | $as_echo_n "(cached) " >&6
|
---|
5553 | else
|
---|
5554 | ac_check_lib_save_LIBS=$LIBS
|
---|
5555 | LIBS="-lcrypt $LIBS"
|
---|
5556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5557 | /* end confdefs.h. */
|
---|
5558 |
|
---|
5559 |
|
---|
5560 | int
|
---|
5561 | main ()
|
---|
5562 | {
|
---|
5563 | return main ();
|
---|
5564 | ;
|
---|
5565 | return 0;
|
---|
5566 | }
|
---|
5567 | _ACEOF
|
---|
5568 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5569 | ac_cv_lib_crypt_main=yes
|
---|
5570 | else
|
---|
5571 | ac_cv_lib_crypt_main=no
|
---|
5572 | fi
|
---|
5573 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5574 | conftest$ac_exeext conftest.$ac_ext
|
---|
5575 | LIBS=$ac_check_lib_save_LIBS
|
---|
5576 | fi
|
---|
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
5578 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
5579 | if test "x$ac_cv_lib_crypt_main" = xyes; then :
|
---|
5580 | cat >>confdefs.h <<_ACEOF
|
---|
5581 | #define HAVE_LIBCRYPT 1
|
---|
5582 | _ACEOF
|
---|
5583 |
|
---|
5584 | LIBS="-lcrypt $LIBS"
|
---|
5585 |
|
---|
5586 | fi
|
---|
5587 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
5588 |
|
---|
5589 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liconv" >&5
|
---|
5591 | $as_echo_n "checking for main in -liconv... " >&6; }
|
---|
5592 | if ${ac_cv_lib_iconv_main+:} false; then :
|
---|
5593 | $as_echo_n "(cached) " >&6
|
---|
5594 | else
|
---|
5595 | ac_check_lib_save_LIBS=$LIBS
|
---|
5596 | LIBS="-liconv $LIBS"
|
---|
5597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5598 | /* end confdefs.h. */
|
---|
5599 |
|
---|
5600 |
|
---|
5601 | int
|
---|
5602 | main ()
|
---|
5603 | {
|
---|
5604 | return main ();
|
---|
5605 | ;
|
---|
5606 | return 0;
|
---|
5607 | }
|
---|
5608 | _ACEOF
|
---|
5609 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5610 | ac_cv_lib_iconv_main=yes
|
---|
5611 | else
|
---|
5612 | ac_cv_lib_iconv_main=no
|
---|
5613 | fi
|
---|
5614 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5615 | conftest$ac_exeext conftest.$ac_ext
|
---|
5616 | LIBS=$ac_check_lib_save_LIBS
|
---|
5617 | fi
|
---|
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_main" >&5
|
---|
5619 | $as_echo "$ac_cv_lib_iconv_main" >&6; }
|
---|
5620 | if test "x$ac_cv_lib_iconv_main" = xyes; then :
|
---|
5621 | cat >>confdefs.h <<_ACEOF
|
---|
5622 | #define HAVE_LIBICONV 1
|
---|
5623 | _ACEOF
|
---|
5624 |
|
---|
5625 | LIBS="-liconv $LIBS"
|
---|
5626 |
|
---|
5627 | fi
|
---|
5628 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
5629 |
|
---|
5630 | fi
|
---|
5631 |
|
---|
5632 | ac_header_dirent=no
|
---|
5633 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
5634 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
5636 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
5637 | if eval \${$as_ac_Header+:} false; then :
|
---|
5638 | $as_echo_n "(cached) " >&6
|
---|
5639 | else
|
---|
5640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5641 | /* end confdefs.h. */
|
---|
5642 | #include <sys/types.h>
|
---|
5643 | #include <$ac_hdr>
|
---|
5644 |
|
---|
5645 | int
|
---|
5646 | main ()
|
---|
5647 | {
|
---|
5648 | if ((DIR *) 0)
|
---|
5649 | return 0;
|
---|
5650 | ;
|
---|
5651 | return 0;
|
---|
5652 | }
|
---|
5653 | _ACEOF
|
---|
5654 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5655 | eval "$as_ac_Header=yes"
|
---|
5656 | else
|
---|
5657 | eval "$as_ac_Header=no"
|
---|
5658 | fi
|
---|
5659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5660 | fi
|
---|
5661 | eval ac_res=\$$as_ac_Header
|
---|
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
5663 | $as_echo "$ac_res" >&6; }
|
---|
5664 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5665 | cat >>confdefs.h <<_ACEOF
|
---|
5666 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
5667 | _ACEOF
|
---|
5668 |
|
---|
5669 | ac_header_dirent=$ac_hdr; break
|
---|
5670 | fi
|
---|
5671 |
|
---|
5672 | done
|
---|
5673 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
5674 | if test $ac_header_dirent = dirent.h; then
|
---|
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5676 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5677 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5678 | $as_echo_n "(cached) " >&6
|
---|
5679 | else
|
---|
5680 | ac_func_search_save_LIBS=$LIBS
|
---|
5681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5682 | /* end confdefs.h. */
|
---|
5683 |
|
---|
5684 | /* Override any GCC internal prototype to avoid an error.
|
---|
5685 | Use char because int might match the return type of a GCC
|
---|
5686 | builtin and then its argument prototype would still apply. */
|
---|
5687 | #ifdef __cplusplus
|
---|
5688 | extern "C"
|
---|
5689 | #endif
|
---|
5690 | char opendir ();
|
---|
5691 | int
|
---|
5692 | main ()
|
---|
5693 | {
|
---|
5694 | return opendir ();
|
---|
5695 | ;
|
---|
5696 | return 0;
|
---|
5697 | }
|
---|
5698 | _ACEOF
|
---|
5699 | for ac_lib in '' dir; do
|
---|
5700 | if test -z "$ac_lib"; then
|
---|
5701 | ac_res="none required"
|
---|
5702 | else
|
---|
5703 | ac_res=-l$ac_lib
|
---|
5704 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5705 | fi
|
---|
5706 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5707 | ac_cv_search_opendir=$ac_res
|
---|
5708 | fi
|
---|
5709 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5710 | conftest$ac_exeext
|
---|
5711 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5712 | break
|
---|
5713 | fi
|
---|
5714 | done
|
---|
5715 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5716 |
|
---|
5717 | else
|
---|
5718 | ac_cv_search_opendir=no
|
---|
5719 | fi
|
---|
5720 | rm conftest.$ac_ext
|
---|
5721 | LIBS=$ac_func_search_save_LIBS
|
---|
5722 | fi
|
---|
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5724 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5725 | ac_res=$ac_cv_search_opendir
|
---|
5726 | if test "$ac_res" != no; then :
|
---|
5727 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5728 |
|
---|
5729 | fi
|
---|
5730 |
|
---|
5731 | else
|
---|
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
5733 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
5734 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5735 | $as_echo_n "(cached) " >&6
|
---|
5736 | else
|
---|
5737 | ac_func_search_save_LIBS=$LIBS
|
---|
5738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5739 | /* end confdefs.h. */
|
---|
5740 |
|
---|
5741 | /* Override any GCC internal prototype to avoid an error.
|
---|
5742 | Use char because int might match the return type of a GCC
|
---|
5743 | builtin and then its argument prototype would still apply. */
|
---|
5744 | #ifdef __cplusplus
|
---|
5745 | extern "C"
|
---|
5746 | #endif
|
---|
5747 | char opendir ();
|
---|
5748 | int
|
---|
5749 | main ()
|
---|
5750 | {
|
---|
5751 | return opendir ();
|
---|
5752 | ;
|
---|
5753 | return 0;
|
---|
5754 | }
|
---|
5755 | _ACEOF
|
---|
5756 | for ac_lib in '' x; do
|
---|
5757 | if test -z "$ac_lib"; then
|
---|
5758 | ac_res="none required"
|
---|
5759 | else
|
---|
5760 | ac_res=-l$ac_lib
|
---|
5761 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5762 | fi
|
---|
5763 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5764 | ac_cv_search_opendir=$ac_res
|
---|
5765 | fi
|
---|
5766 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5767 | conftest$ac_exeext
|
---|
5768 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5769 | break
|
---|
5770 | fi
|
---|
5771 | done
|
---|
5772 | if ${ac_cv_search_opendir+:} false; then :
|
---|
5773 |
|
---|
5774 | else
|
---|
5775 | ac_cv_search_opendir=no
|
---|
5776 | fi
|
---|
5777 | rm conftest.$ac_ext
|
---|
5778 | LIBS=$ac_func_search_save_LIBS
|
---|
5779 | fi
|
---|
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
5781 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
5782 | ac_res=$ac_cv_search_opendir
|
---|
5783 | if test "$ac_res" != no; then :
|
---|
5784 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5785 |
|
---|
5786 | fi
|
---|
5787 |
|
---|
5788 | fi
|
---|
5789 |
|
---|
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
5791 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
5792 | if ${ac_cv_header_stdc+:} false; then :
|
---|
5793 | $as_echo_n "(cached) " >&6
|
---|
5794 | else
|
---|
5795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5796 | /* end confdefs.h. */
|
---|
5797 | #include <stdlib.h>
|
---|
5798 | #include <stdarg.h>
|
---|
5799 | #include <string.h>
|
---|
5800 | #include <float.h>
|
---|
5801 |
|
---|
5802 | int
|
---|
5803 | main ()
|
---|
5804 | {
|
---|
5805 |
|
---|
5806 | ;
|
---|
5807 | return 0;
|
---|
5808 | }
|
---|
5809 | _ACEOF
|
---|
5810 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5811 | ac_cv_header_stdc=yes
|
---|
5812 | else
|
---|
5813 | ac_cv_header_stdc=no
|
---|
5814 | fi
|
---|
5815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5816 |
|
---|
5817 | if test $ac_cv_header_stdc = yes; then
|
---|
5818 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5820 | /* end confdefs.h. */
|
---|
5821 | #include <string.h>
|
---|
5822 |
|
---|
5823 | _ACEOF
|
---|
5824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5825 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
5826 |
|
---|
5827 | else
|
---|
5828 | ac_cv_header_stdc=no
|
---|
5829 | fi
|
---|
5830 | rm -f conftest*
|
---|
5831 |
|
---|
5832 | fi
|
---|
5833 |
|
---|
5834 | if test $ac_cv_header_stdc = yes; then
|
---|
5835 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
5836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5837 | /* end confdefs.h. */
|
---|
5838 | #include <stdlib.h>
|
---|
5839 |
|
---|
5840 | _ACEOF
|
---|
5841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5842 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
5843 |
|
---|
5844 | else
|
---|
5845 | ac_cv_header_stdc=no
|
---|
5846 | fi
|
---|
5847 | rm -f conftest*
|
---|
5848 |
|
---|
5849 | fi
|
---|
5850 |
|
---|
5851 | if test $ac_cv_header_stdc = yes; then
|
---|
5852 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
5853 | if test "$cross_compiling" = yes; then :
|
---|
5854 | :
|
---|
5855 | else
|
---|
5856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5857 | /* end confdefs.h. */
|
---|
5858 | #include <ctype.h>
|
---|
5859 | #include <stdlib.h>
|
---|
5860 | #if ((' ' & 0x0FF) == 0x020)
|
---|
5861 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
5862 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
5863 | #else
|
---|
5864 | # define ISLOWER(c) \
|
---|
5865 | (('a' <= (c) && (c) <= 'i') \
|
---|
5866 | || ('j' <= (c) && (c) <= 'r') \
|
---|
5867 | || ('s' <= (c) && (c) <= 'z'))
|
---|
5868 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
5869 | #endif
|
---|
5870 |
|
---|
5871 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
5872 | int
|
---|
5873 | main ()
|
---|
5874 | {
|
---|
5875 | int i;
|
---|
5876 | for (i = 0; i < 256; i++)
|
---|
5877 | if (XOR (islower (i), ISLOWER (i))
|
---|
5878 | || toupper (i) != TOUPPER (i))
|
---|
5879 | return 2;
|
---|
5880 | return 0;
|
---|
5881 | }
|
---|
5882 | _ACEOF
|
---|
5883 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
5884 |
|
---|
5885 | else
|
---|
5886 | ac_cv_header_stdc=no
|
---|
5887 | fi
|
---|
5888 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
5889 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
5890 | fi
|
---|
5891 |
|
---|
5892 | fi
|
---|
5893 | fi
|
---|
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
5895 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
5896 | if test $ac_cv_header_stdc = yes; then
|
---|
5897 |
|
---|
5898 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
5899 |
|
---|
5900 | fi
|
---|
5901 |
|
---|
5902 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
5903 | do :
|
---|
5904 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
5905 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
5906 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
5907 | cat >>confdefs.h <<_ACEOF
|
---|
5908 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
5909 | _ACEOF
|
---|
5910 |
|
---|
5911 | fi
|
---|
5912 |
|
---|
5913 | done
|
---|
5914 |
|
---|
5915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5916 | /* end confdefs.h. */
|
---|
5917 | #include <stdio.h>
|
---|
5918 |
|
---|
5919 | _ACEOF
|
---|
5920 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5921 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
5922 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
5923 |
|
---|
5924 | fi
|
---|
5925 | rm -f conftest*
|
---|
5926 |
|
---|
5927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5928 | /* end confdefs.h. */
|
---|
5929 | #include <stdio.h>
|
---|
5930 |
|
---|
5931 | _ACEOF
|
---|
5932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5933 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
5934 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
5935 |
|
---|
5936 | fi
|
---|
5937 | rm -f conftest*
|
---|
5938 |
|
---|
5939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5940 | /* end confdefs.h. */
|
---|
5941 | #include <sys/procfs.h>
|
---|
5942 |
|
---|
5943 | _ACEOF
|
---|
5944 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
5945 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
5946 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
5947 |
|
---|
5948 | fi
|
---|
5949 | rm -f conftest*
|
---|
5950 |
|
---|
5951 |
|
---|
5952 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
5953 | # for constant arguments. Useless!
|
---|
5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
5955 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
5956 | if ${ac_cv_working_alloca_h+:} false; then :
|
---|
5957 | $as_echo_n "(cached) " >&6
|
---|
5958 | else
|
---|
5959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5960 | /* end confdefs.h. */
|
---|
5961 | #include <alloca.h>
|
---|
5962 | int
|
---|
5963 | main ()
|
---|
5964 | {
|
---|
5965 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
5966 | if (p) return 0;
|
---|
5967 | ;
|
---|
5968 | return 0;
|
---|
5969 | }
|
---|
5970 | _ACEOF
|
---|
5971 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
5972 | ac_cv_working_alloca_h=yes
|
---|
5973 | else
|
---|
5974 | ac_cv_working_alloca_h=no
|
---|
5975 | fi
|
---|
5976 | rm -f core conftest.err conftest.$ac_objext \
|
---|
5977 | conftest$ac_exeext conftest.$ac_ext
|
---|
5978 | fi
|
---|
5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
5980 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
5981 | if test $ac_cv_working_alloca_h = yes; then
|
---|
5982 |
|
---|
5983 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
5984 |
|
---|
5985 | fi
|
---|
5986 |
|
---|
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
5988 | $as_echo_n "checking for alloca... " >&6; }
|
---|
5989 | if ${ac_cv_func_alloca_works+:} false; then :
|
---|
5990 | $as_echo_n "(cached) " >&6
|
---|
5991 | else
|
---|
5992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5993 | /* end confdefs.h. */
|
---|
5994 | #ifdef __GNUC__
|
---|
5995 | # define alloca __builtin_alloca
|
---|
5996 | #else
|
---|
5997 | # ifdef _MSC_VER
|
---|
5998 | # include <malloc.h>
|
---|
5999 | # define alloca _alloca
|
---|
6000 | # else
|
---|
6001 | # ifdef HAVE_ALLOCA_H
|
---|
6002 | # include <alloca.h>
|
---|
6003 | # else
|
---|
6004 | # ifdef _AIX
|
---|
6005 | #pragma alloca
|
---|
6006 | # else
|
---|
6007 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
6008 | void *alloca (size_t);
|
---|
6009 | # endif
|
---|
6010 | # endif
|
---|
6011 | # endif
|
---|
6012 | # endif
|
---|
6013 | #endif
|
---|
6014 |
|
---|
6015 | int
|
---|
6016 | main ()
|
---|
6017 | {
|
---|
6018 | char *p = (char *) alloca (1);
|
---|
6019 | if (p) return 0;
|
---|
6020 | ;
|
---|
6021 | return 0;
|
---|
6022 | }
|
---|
6023 | _ACEOF
|
---|
6024 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6025 | ac_cv_func_alloca_works=yes
|
---|
6026 | else
|
---|
6027 | ac_cv_func_alloca_works=no
|
---|
6028 | fi
|
---|
6029 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6030 | conftest$ac_exeext conftest.$ac_ext
|
---|
6031 | fi
|
---|
6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
6033 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
6034 |
|
---|
6035 | if test $ac_cv_func_alloca_works = yes; then
|
---|
6036 |
|
---|
6037 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
6038 |
|
---|
6039 | else
|
---|
6040 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
6041 | # that cause trouble. Some versions do not even contain alloca or
|
---|
6042 | # contain a buggy version. If you still want to use their alloca,
|
---|
6043 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
6044 |
|
---|
6045 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
6046 |
|
---|
6047 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
6048 |
|
---|
6049 |
|
---|
6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
6051 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
6052 | if ${ac_cv_os_cray+:} false; then :
|
---|
6053 | $as_echo_n "(cached) " >&6
|
---|
6054 | else
|
---|
6055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6056 | /* end confdefs.h. */
|
---|
6057 | #if defined CRAY && ! defined CRAY2
|
---|
6058 | webecray
|
---|
6059 | #else
|
---|
6060 | wenotbecray
|
---|
6061 | #endif
|
---|
6062 |
|
---|
6063 | _ACEOF
|
---|
6064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6065 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
6066 | ac_cv_os_cray=yes
|
---|
6067 | else
|
---|
6068 | ac_cv_os_cray=no
|
---|
6069 | fi
|
---|
6070 | rm -f conftest*
|
---|
6071 |
|
---|
6072 | fi
|
---|
6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
6074 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
6075 | if test $ac_cv_os_cray = yes; then
|
---|
6076 | for ac_func in _getb67 GETB67 getb67; do
|
---|
6077 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6078 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
6079 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
6080 |
|
---|
6081 | cat >>confdefs.h <<_ACEOF
|
---|
6082 | #define CRAY_STACKSEG_END $ac_func
|
---|
6083 | _ACEOF
|
---|
6084 |
|
---|
6085 | break
|
---|
6086 | fi
|
---|
6087 |
|
---|
6088 | done
|
---|
6089 | fi
|
---|
6090 |
|
---|
6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
6092 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
6093 | if ${ac_cv_c_stack_direction+:} false; then :
|
---|
6094 | $as_echo_n "(cached) " >&6
|
---|
6095 | else
|
---|
6096 | if test "$cross_compiling" = yes; then :
|
---|
6097 | ac_cv_c_stack_direction=0
|
---|
6098 | else
|
---|
6099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6100 | /* end confdefs.h. */
|
---|
6101 | $ac_includes_default
|
---|
6102 | int
|
---|
6103 | find_stack_direction (int *addr, int depth)
|
---|
6104 | {
|
---|
6105 | int dir, dummy = 0;
|
---|
6106 | if (! addr)
|
---|
6107 | addr = &dummy;
|
---|
6108 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
|
---|
6109 | dir = depth ? find_stack_direction (addr, depth - 1) : 0;
|
---|
6110 | return dir + dummy;
|
---|
6111 | }
|
---|
6112 |
|
---|
6113 | int
|
---|
6114 | main (int argc, char **argv)
|
---|
6115 | {
|
---|
6116 | return find_stack_direction (0, argc + !argv + 20) < 0;
|
---|
6117 | }
|
---|
6118 | _ACEOF
|
---|
6119 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
6120 | ac_cv_c_stack_direction=1
|
---|
6121 | else
|
---|
6122 | ac_cv_c_stack_direction=-1
|
---|
6123 | fi
|
---|
6124 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6125 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6126 | fi
|
---|
6127 |
|
---|
6128 | fi
|
---|
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
6130 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
6131 | cat >>confdefs.h <<_ACEOF
|
---|
6132 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
6133 | _ACEOF
|
---|
6134 |
|
---|
6135 |
|
---|
6136 | fi
|
---|
6137 |
|
---|
6138 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
6139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
6140 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
6141 | if ${ac_cv_prog_gcc_traditional+:} false; then :
|
---|
6142 | $as_echo_n "(cached) " >&6
|
---|
6143 | else
|
---|
6144 | ac_pattern="Autoconf.*'x'"
|
---|
6145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6146 | /* end confdefs.h. */
|
---|
6147 | #include <sgtty.h>
|
---|
6148 | Autoconf TIOCGETP
|
---|
6149 | _ACEOF
|
---|
6150 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6151 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
6152 | ac_cv_prog_gcc_traditional=yes
|
---|
6153 | else
|
---|
6154 | ac_cv_prog_gcc_traditional=no
|
---|
6155 | fi
|
---|
6156 | rm -f conftest*
|
---|
6157 |
|
---|
6158 |
|
---|
6159 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
6160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6161 | /* end confdefs.h. */
|
---|
6162 | #include <termio.h>
|
---|
6163 | Autoconf TCGETA
|
---|
6164 | _ACEOF
|
---|
6165 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
6166 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
6167 | ac_cv_prog_gcc_traditional=yes
|
---|
6168 | fi
|
---|
6169 | rm -f conftest*
|
---|
6170 |
|
---|
6171 | fi
|
---|
6172 | fi
|
---|
6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
6174 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
6175 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
6176 | CC="$CC -traditional"
|
---|
6177 | fi
|
---|
6178 | fi
|
---|
6179 |
|
---|
6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
6181 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
6182 | if ${ac_cv_type_signal+:} false; then :
|
---|
6183 | $as_echo_n "(cached) " >&6
|
---|
6184 | else
|
---|
6185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6186 | /* end confdefs.h. */
|
---|
6187 | #include <sys/types.h>
|
---|
6188 | #include <signal.h>
|
---|
6189 |
|
---|
6190 | int
|
---|
6191 | main ()
|
---|
6192 | {
|
---|
6193 | return *(signal (0, 0)) (0) == 1;
|
---|
6194 | ;
|
---|
6195 | return 0;
|
---|
6196 | }
|
---|
6197 | _ACEOF
|
---|
6198 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6199 | ac_cv_type_signal=int
|
---|
6200 | else
|
---|
6201 | ac_cv_type_signal=void
|
---|
6202 | fi
|
---|
6203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6204 | fi
|
---|
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
6206 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
6207 |
|
---|
6208 | cat >>confdefs.h <<_ACEOF
|
---|
6209 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
6210 | _ACEOF
|
---|
6211 |
|
---|
6212 |
|
---|
6213 | for ac_func in vprintf
|
---|
6214 | do :
|
---|
6215 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
6216 | if test "x$ac_cv_func_vprintf" = xyes; then :
|
---|
6217 | cat >>confdefs.h <<_ACEOF
|
---|
6218 | #define HAVE_VPRINTF 1
|
---|
6219 | _ACEOF
|
---|
6220 |
|
---|
6221 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
6222 | if test "x$ac_cv_func__doprnt" = xyes; then :
|
---|
6223 |
|
---|
6224 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
6225 |
|
---|
6226 | fi
|
---|
6227 |
|
---|
6228 | fi
|
---|
6229 | done
|
---|
6230 |
|
---|
6231 |
|
---|
6232 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
6233 | do :
|
---|
6234 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6235 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
6236 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
|
---|
6237 | cat >>confdefs.h <<_ACEOF
|
---|
6238 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
6239 | _ACEOF
|
---|
6240 |
|
---|
6241 | fi
|
---|
6242 | done
|
---|
6243 |
|
---|
6244 | ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
|
---|
6245 | if test "x$ac_cv_func_ftruncate" = xyes; then :
|
---|
6246 | $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
---|
6247 |
|
---|
6248 | else
|
---|
6249 | case " $LIBOBJS " in
|
---|
6250 | *" ftruncate.$ac_objext "* ) ;;
|
---|
6251 | *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
|
---|
6252 | ;;
|
---|
6253 | esac
|
---|
6254 |
|
---|
6255 | fi
|
---|
6256 |
|
---|
6257 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
|
---|
6258 | if test "x$ac_cv_func_strstr" = xyes; then :
|
---|
6259 | $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
|
---|
6260 |
|
---|
6261 | else
|
---|
6262 | case " $LIBOBJS " in
|
---|
6263 | *" strstr.$ac_objext "* ) ;;
|
---|
6264 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
|
---|
6265 | ;;
|
---|
6266 | esac
|
---|
6267 |
|
---|
6268 | fi
|
---|
6269 |
|
---|
6270 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
|
---|
6271 | if test "x$ac_cv_func_strcasecmp" = xyes; then :
|
---|
6272 | $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
|
---|
6273 |
|
---|
6274 | else
|
---|
6275 | case " $LIBOBJS " in
|
---|
6276 | *" strcasecmp.$ac_objext "* ) ;;
|
---|
6277 | *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
|
---|
6278 | ;;
|
---|
6279 | esac
|
---|
6280 |
|
---|
6281 | fi
|
---|
6282 |
|
---|
6283 |
|
---|
6284 |
|
---|
6285 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
6286 | if test "x$ac_cv_func_textdomain" = xyes; then :
|
---|
6287 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
6288 |
|
---|
6289 | fi
|
---|
6290 |
|
---|
6291 |
|
---|
6292 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
6293 | # ---------------------------------------------------------------------------
|
---|
6294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
6295 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
6296 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
6297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6298 | $as_echo "yes" >&6; }
|
---|
6299 | case " $LIBOBJS " in
|
---|
6300 | *" gmalloc.$ac_objext "* ) ;;
|
---|
6301 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
6302 | ;;
|
---|
6303 | esac
|
---|
6304 |
|
---|
6305 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
6306 |
|
---|
6307 | else
|
---|
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6309 | $as_echo "no" >&6; }
|
---|
6310 | for ac_func in valloc
|
---|
6311 | do :
|
---|
6312 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
6313 | if test "x$ac_cv_func_valloc" = xyes; then :
|
---|
6314 | cat >>confdefs.h <<_ACEOF
|
---|
6315 | #define HAVE_VALLOC 1
|
---|
6316 | _ACEOF
|
---|
6317 |
|
---|
6318 | fi
|
---|
6319 | done
|
---|
6320 |
|
---|
6321 | fi
|
---|
6322 |
|
---|
6323 | # we cannot generate static libraries under Darwin
|
---|
6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
|
---|
6325 | $as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
|
---|
6326 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6328 | $as_echo "yes" >&6; }
|
---|
6329 | STATIC=""
|
---|
6330 | else
|
---|
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6332 | $as_echo "no" >&6; }
|
---|
6333 | STATIC="-static "
|
---|
6334 | fi
|
---|
6335 |
|
---|
6336 |
|
---|
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
6338 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
6339 |
|
---|
6340 | # Check whether --with-dmalloc was given.
|
---|
6341 | if test "${with_dmalloc+set}" = set; then :
|
---|
6342 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
6344 | $as_echo "yes" >&6; }
|
---|
6345 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
6346 |
|
---|
6347 | LIBS="$LIBS -ldmalloc"
|
---|
6348 | LDFLAGS="$LDFLAGS -g"
|
---|
6349 | else
|
---|
6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6351 | $as_echo "no" >&6; }
|
---|
6352 | fi
|
---|
6353 | else
|
---|
6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6355 | $as_echo "no" >&6; }
|
---|
6356 | fi
|
---|
6357 |
|
---|
6358 |
|
---|
6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
6360 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
6361 |
|
---|
6362 | # Check whether --with-regex was given.
|
---|
6363 | if test "${with_regex+set}" = set; then :
|
---|
6364 | withval=$with_regex; if test "$withval" = yes; then
|
---|
6365 | ac_with_regex=1
|
---|
6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
6367 | $as_echo "regex" >&6; }
|
---|
6368 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
6369 |
|
---|
6370 | case " $LIBOBJS " in
|
---|
6371 | *" regex.$ac_objext "* ) ;;
|
---|
6372 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
6373 | ;;
|
---|
6374 | esac
|
---|
6375 |
|
---|
6376 | fi
|
---|
6377 | fi
|
---|
6378 |
|
---|
6379 | if test -z "$ac_with_regex"; then
|
---|
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
6381 | $as_echo "rx" >&6; }
|
---|
6382 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
6383 | if test "x$ac_cv_func_re_rx_search" = xyes; then :
|
---|
6384 |
|
---|
6385 | else
|
---|
6386 | case " $LIBOBJS " in
|
---|
6387 | *" rx.$ac_objext "* ) ;;
|
---|
6388 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
6389 | ;;
|
---|
6390 | esac
|
---|
6391 |
|
---|
6392 | fi
|
---|
6393 |
|
---|
6394 | fi
|
---|
6395 |
|
---|
6396 |
|
---|
6397 | # ---------------------------------------------------------------------------
|
---|
6398 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6399 | case " $LIBOBJS " in
|
---|
6400 | *" xmalloc.$ac_objext "* ) ;;
|
---|
6401 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
6402 | ;;
|
---|
6403 | esac
|
---|
6404 |
|
---|
6405 | case " $LIBOBJS " in
|
---|
6406 | *" error.$ac_objext "* ) ;;
|
---|
6407 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6408 | ;;
|
---|
6409 | esac
|
---|
6410 |
|
---|
6411 | fi
|
---|
6412 |
|
---|
6413 |
|
---|
6414 | # ---------------------------------------------------------------------------
|
---|
6415 |
|
---|
6416 | ac_ext=cpp
|
---|
6417 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
6418 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6419 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6420 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
6421 |
|
---|
6422 |
|
---|
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Perl 5 is available" >&5
|
---|
6424 | $as_echo_n "checking that Perl 5 is available... " >&6; }
|
---|
6425 | success="no"
|
---|
6426 | pl_path="$PATH"
|
---|
6427 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
6428 | for pl_dir in $pl_path; do
|
---|
6429 | test -z "$pl_dir" && pl_dir=.
|
---|
6430 | if test -x $pl_dir/perl; then
|
---|
6431 | success="yes"
|
---|
6432 | break
|
---|
6433 | fi
|
---|
6434 | done
|
---|
6435 | IFS="$pl_save_ifs"
|
---|
6436 |
|
---|
6437 | if test $success = "yes"; then
|
---|
6438 | try=`perl configtest.pl` || try="0"
|
---|
6439 | try=`expr $try \> 5.000`
|
---|
6440 | if test $try = "1"; then
|
---|
6441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
6442 | $as_echo "\"yes\"" >&6; }
|
---|
6443 | else
|
---|
6444 | success="no"
|
---|
6445 | fi
|
---|
6446 | fi
|
---|
6447 |
|
---|
6448 | if test $success = "no"; then
|
---|
6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
6450 | $as_echo "\"no\"" >&6; }
|
---|
6451 | as_fn_error $? "\"Perl 5 not available - cannot install\"" "$LINENO" 5
|
---|
6452 | fi
|
---|
6453 |
|
---|
6454 | success=no
|
---|
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
|
---|
6456 | $as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
|
---|
6457 |
|
---|
6458 |
|
---|
6459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6460 | /* end confdefs.h. */
|
---|
6461 | #include <vector>
|
---|
6462 |
|
---|
6463 | int
|
---|
6464 | main ()
|
---|
6465 | {
|
---|
6466 |
|
---|
6467 | ;
|
---|
6468 | return 0;
|
---|
6469 | }
|
---|
6470 | _ACEOF
|
---|
6471 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6472 | success=yes
|
---|
6473 | fi
|
---|
6474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6475 |
|
---|
6476 | if test $success = "no"; then
|
---|
6477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6478 | /* end confdefs.h. */
|
---|
6479 | #include <vector.h>
|
---|
6480 |
|
---|
6481 | int
|
---|
6482 | main ()
|
---|
6483 | {
|
---|
6484 |
|
---|
6485 | ;
|
---|
6486 | return 0;
|
---|
6487 | }
|
---|
6488 | _ACEOF
|
---|
6489 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6490 | success="yes"
|
---|
6491 | fi
|
---|
6492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6493 | fi
|
---|
6494 |
|
---|
6495 | if test $success = "no"; then
|
---|
6496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6497 | /* end confdefs.h. */
|
---|
6498 | #include <ospace\\std\\vector>
|
---|
6499 |
|
---|
6500 | int
|
---|
6501 | main ()
|
---|
6502 | {
|
---|
6503 |
|
---|
6504 | ;
|
---|
6505 | return 0;
|
---|
6506 | }
|
---|
6507 | _ACEOF
|
---|
6508 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6509 | success="yes"
|
---|
6510 | fi
|
---|
6511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6512 | fi
|
---|
6513 |
|
---|
6514 | if test $success = yes; then
|
---|
6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
6516 | $as_echo "\"no\"" >&6; }
|
---|
6517 | else
|
---|
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
6519 | $as_echo "\"yes\"" >&6; }
|
---|
6520 | as_fn_error $? "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
|
---|
6521 | fi
|
---|
6522 |
|
---|
6523 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
6524 | # check for running bash under cygwin
|
---|
6525 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
6526 | then
|
---|
6527 | gsdlos=windows
|
---|
6528 | fi
|
---|
6529 | if test "x$crossOS" != "x" ; then
|
---|
6530 | gsdlos=$crossOS
|
---|
6531 | gsdlarch=""
|
---|
6532 | fi
|
---|
6533 |
|
---|
6534 |
|
---|
6535 |
|
---|
6536 | # check for endianness
|
---|
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
6538 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
6539 | if ${ac_cv_c_bigendian+:} false; then :
|
---|
6540 | $as_echo_n "(cached) " >&6
|
---|
6541 | else
|
---|
6542 | ac_cv_c_bigendian=unknown
|
---|
6543 | # See if we're dealing with a universal compiler.
|
---|
6544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6545 | /* end confdefs.h. */
|
---|
6546 | #ifndef __APPLE_CC__
|
---|
6547 | not a universal capable compiler
|
---|
6548 | #endif
|
---|
6549 | typedef int dummy;
|
---|
6550 |
|
---|
6551 | _ACEOF
|
---|
6552 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6553 |
|
---|
6554 | # Check for potential -arch flags. It is not universal unless
|
---|
6555 | # there are at least two -arch flags with different values.
|
---|
6556 | ac_arch=
|
---|
6557 | ac_prev=
|
---|
6558 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
6559 | if test -n "$ac_prev"; then
|
---|
6560 | case $ac_word in
|
---|
6561 | i?86 | x86_64 | ppc | ppc64)
|
---|
6562 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
6563 | ac_arch=$ac_word
|
---|
6564 | else
|
---|
6565 | ac_cv_c_bigendian=universal
|
---|
6566 | break
|
---|
6567 | fi
|
---|
6568 | ;;
|
---|
6569 | esac
|
---|
6570 | ac_prev=
|
---|
6571 | elif test "x$ac_word" = "x-arch"; then
|
---|
6572 | ac_prev=arch
|
---|
6573 | fi
|
---|
6574 | done
|
---|
6575 | fi
|
---|
6576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6577 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6578 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
6579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6580 | /* end confdefs.h. */
|
---|
6581 | #include <sys/types.h>
|
---|
6582 | #include <sys/param.h>
|
---|
6583 |
|
---|
6584 | int
|
---|
6585 | main ()
|
---|
6586 | {
|
---|
6587 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
6588 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
6589 | && LITTLE_ENDIAN)
|
---|
6590 | bogus endian macros
|
---|
6591 | #endif
|
---|
6592 |
|
---|
6593 | ;
|
---|
6594 | return 0;
|
---|
6595 | }
|
---|
6596 | _ACEOF
|
---|
6597 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6598 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
6599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6600 | /* end confdefs.h. */
|
---|
6601 | #include <sys/types.h>
|
---|
6602 | #include <sys/param.h>
|
---|
6603 |
|
---|
6604 | int
|
---|
6605 | main ()
|
---|
6606 | {
|
---|
6607 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
6608 | not big endian
|
---|
6609 | #endif
|
---|
6610 |
|
---|
6611 | ;
|
---|
6612 | return 0;
|
---|
6613 | }
|
---|
6614 | _ACEOF
|
---|
6615 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6616 | ac_cv_c_bigendian=yes
|
---|
6617 | else
|
---|
6618 | ac_cv_c_bigendian=no
|
---|
6619 | fi
|
---|
6620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6621 | fi
|
---|
6622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6623 | fi
|
---|
6624 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6625 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
6626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6627 | /* end confdefs.h. */
|
---|
6628 | #include <limits.h>
|
---|
6629 |
|
---|
6630 | int
|
---|
6631 | main ()
|
---|
6632 | {
|
---|
6633 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
6634 | bogus endian macros
|
---|
6635 | #endif
|
---|
6636 |
|
---|
6637 | ;
|
---|
6638 | return 0;
|
---|
6639 | }
|
---|
6640 | _ACEOF
|
---|
6641 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6642 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
6643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6644 | /* end confdefs.h. */
|
---|
6645 | #include <limits.h>
|
---|
6646 |
|
---|
6647 | int
|
---|
6648 | main ()
|
---|
6649 | {
|
---|
6650 | #ifndef _BIG_ENDIAN
|
---|
6651 | not big endian
|
---|
6652 | #endif
|
---|
6653 |
|
---|
6654 | ;
|
---|
6655 | return 0;
|
---|
6656 | }
|
---|
6657 | _ACEOF
|
---|
6658 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6659 | ac_cv_c_bigendian=yes
|
---|
6660 | else
|
---|
6661 | ac_cv_c_bigendian=no
|
---|
6662 | fi
|
---|
6663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6664 | fi
|
---|
6665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6666 | fi
|
---|
6667 | if test $ac_cv_c_bigendian = unknown; then
|
---|
6668 | # Compile a test program.
|
---|
6669 | if test "$cross_compiling" = yes; then :
|
---|
6670 | # Try to guess by grepping values from an object file.
|
---|
6671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6672 | /* end confdefs.h. */
|
---|
6673 | short int ascii_mm[] =
|
---|
6674 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
6675 | short int ascii_ii[] =
|
---|
6676 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
6677 | int use_ascii (int i) {
|
---|
6678 | return ascii_mm[i] + ascii_ii[i];
|
---|
6679 | }
|
---|
6680 | short int ebcdic_ii[] =
|
---|
6681 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
6682 | short int ebcdic_mm[] =
|
---|
6683 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
6684 | int use_ebcdic (int i) {
|
---|
6685 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
6686 | }
|
---|
6687 | extern int foo;
|
---|
6688 |
|
---|
6689 | int
|
---|
6690 | main ()
|
---|
6691 | {
|
---|
6692 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
6693 | ;
|
---|
6694 | return 0;
|
---|
6695 | }
|
---|
6696 | _ACEOF
|
---|
6697 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
6698 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
6699 | ac_cv_c_bigendian=yes
|
---|
6700 | fi
|
---|
6701 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
6702 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
6703 | ac_cv_c_bigendian=no
|
---|
6704 | else
|
---|
6705 | # finding both strings is unlikely to happen, but who knows?
|
---|
6706 | ac_cv_c_bigendian=unknown
|
---|
6707 | fi
|
---|
6708 | fi
|
---|
6709 | fi
|
---|
6710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6711 | else
|
---|
6712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6713 | /* end confdefs.h. */
|
---|
6714 | $ac_includes_default
|
---|
6715 | int
|
---|
6716 | main ()
|
---|
6717 | {
|
---|
6718 |
|
---|
6719 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
6720 | union
|
---|
6721 | {
|
---|
6722 | long int l;
|
---|
6723 | char c[sizeof (long int)];
|
---|
6724 | } u;
|
---|
6725 | u.l = 1;
|
---|
6726 | return u.c[sizeof (long int) - 1] == 1;
|
---|
6727 |
|
---|
6728 | ;
|
---|
6729 | return 0;
|
---|
6730 | }
|
---|
6731 | _ACEOF
|
---|
6732 | if ac_fn_cxx_try_run "$LINENO"; then :
|
---|
6733 | ac_cv_c_bigendian=no
|
---|
6734 | else
|
---|
6735 | ac_cv_c_bigendian=yes
|
---|
6736 | fi
|
---|
6737 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
6738 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6739 | fi
|
---|
6740 |
|
---|
6741 | fi
|
---|
6742 | fi
|
---|
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
6744 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
6745 | case $ac_cv_c_bigendian in #(
|
---|
6746 | yes)
|
---|
6747 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
6748 | ;; #(
|
---|
6749 | no)
|
---|
6750 | ;; #(
|
---|
6751 | universal)
|
---|
6752 |
|
---|
6753 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
6754 |
|
---|
6755 | ;; #(
|
---|
6756 | *)
|
---|
6757 | as_fn_error $? "unknown endianness
|
---|
6758 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
6759 | esac
|
---|
6760 |
|
---|
6761 | # ---------------------------------------------------------------------------
|
---|
6762 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
6763 | case " $LIBOBJS " in
|
---|
6764 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
6765 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
|
---|
6766 | ;;
|
---|
6767 | esac
|
---|
6768 |
|
---|
6769 | case " $LIBOBJS " in
|
---|
6770 | *" error.$ac_objext "* ) ;;
|
---|
6771 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
6772 | ;;
|
---|
6773 | esac
|
---|
6774 |
|
---|
6775 | fi
|
---|
6776 |
|
---|
6777 | # ---------------------------------------------------------------------------
|
---|
6778 |
|
---|
6779 | moduleDirs=""
|
---|
6780 | MODULEDIRS=""
|
---|
6781 | if test -d modules ; then
|
---|
6782 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
6783 | if test -d "$x"; then
|
---|
6784 | d="$x/Makefile.in"
|
---|
6785 | if test -e "$d"; then
|
---|
6786 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
6787 | MODULEDIRS="$MODULEDIRS $x"
|
---|
6788 | fi
|
---|
6789 | fi
|
---|
6790 | done
|
---|
6791 | echo "Making $moduleDirs in modules directory"
|
---|
6792 |
|
---|
6793 | fi
|
---|
6794 |
|
---|
6795 | #----------------------------------------------------------------------------
|
---|
6796 | # GS3 uses this to set up gnome-lib env, GS2 uses the configure in gs2build/toplevel GS2 installation
|
---|
6797 | # For gnome-lib-minimal need to source its ./devel.bash before wvware can even be configured
|
---|
6798 | # For a gnome-lib that's already compiled, don't need to source its ./devel.bash to configure wvware
|
---|
6799 | # If a gnome-lib is not yet compiled, we compile it first with CASCADE-MAKE.sh
|
---|
6800 | # Need to make sure that the gnome-lib-minimal is not the cut-down gnome-lib-minimal (which contains
|
---|
6801 | # only the linux/lib subfolder) that's included with linux and mac binaries, because we can't compile
|
---|
6802 | # wvware with the cut-down one, only run wvware with it. The test for the cut-down version is that
|
---|
6803 | # it does not contain devel.bash.
|
---|
6804 |
|
---|
6805 | if test $ENABLE_GNOMELIB_EXT = 1; then
|
---|
6806 |
|
---|
6807 | if test -z "$GSDLHOME"; then
|
---|
6808 | cd ..
|
---|
6809 | gshome=`pwd`
|
---|
6810 | cd build-src
|
---|
6811 | else
|
---|
6812 | gshome=$GSDLHOME
|
---|
6813 | fi
|
---|
6814 |
|
---|
6815 | if test -f $gshome/ext/gnome-lib-minimal/devel.bash; then
|
---|
6816 | echo "*** gnome-lib (minimal) detected. Sourcing the gnomelib env for configuring wvware..."
|
---|
6817 | cd $gshome/ext/gnome-lib-minimal
|
---|
6818 | source ./devel.bash
|
---|
6819 | cd $gshome/build-src
|
---|
6820 | elif test -d $gshome/ext/gnome-lib; then
|
---|
6821 | if test -d $gshome/ext/gnome-lib/$gsdlos; then
|
---|
6822 | echo "*** Sourcing the gnomelib env for configuring wvware..."
|
---|
6823 | cd $gshome/ext/gnome-lib
|
---|
6824 | source ./devel.bash
|
---|
6825 | cd $gshome/build-src
|
---|
6826 | fi
|
---|
6827 | fi
|
---|
6828 |
|
---|
6829 | fi
|
---|
6830 |
|
---|
6831 | # ---------------------------------------------------------------------------
|
---|
6832 |
|
---|
6833 |
|
---|
6834 | subdirs="$subdirs packages"
|
---|
6835 |
|
---|
6836 |
|
---|
6837 | # the list of folders in the src folder
|
---|
6838 | srclist="src/hashfile/Makefile \
|
---|
6839 | src/phind/generate/Makefile \
|
---|
6840 | src/java/org/nzdl/gsdl/Makefile"
|
---|
6841 |
|
---|
6842 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
6843 |
|
---|
6844 | cat >confcache <<\_ACEOF
|
---|
6845 | # This file is a shell script that caches the results of configure
|
---|
6846 | # tests run on this system so they can be shared between configure
|
---|
6847 | # scripts and configure runs, see configure's option --config-cache.
|
---|
6848 | # It is not useful on other systems. If it contains results you don't
|
---|
6849 | # want to keep, you may remove or edit it.
|
---|
6850 | #
|
---|
6851 | # config.status only pays attention to the cache file if you give it
|
---|
6852 | # the --recheck option to rerun configure.
|
---|
6853 | #
|
---|
6854 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
6855 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
6856 | # following values.
|
---|
6857 |
|
---|
6858 | _ACEOF
|
---|
6859 |
|
---|
6860 | # The following way of writing the cache mishandles newlines in values,
|
---|
6861 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
6862 | # So, we kill variables containing newlines.
|
---|
6863 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
6864 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
6865 | (
|
---|
6866 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
6867 | eval ac_val=\$$ac_var
|
---|
6868 | case $ac_val in #(
|
---|
6869 | *${as_nl}*)
|
---|
6870 | case $ac_var in #(
|
---|
6871 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
6872 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
6873 | esac
|
---|
6874 | case $ac_var in #(
|
---|
6875 | _ | IFS | as_nl) ;; #(
|
---|
6876 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
6877 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
6878 | esac ;;
|
---|
6879 | esac
|
---|
6880 | done
|
---|
6881 |
|
---|
6882 | (set) 2>&1 |
|
---|
6883 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
6884 | *${as_nl}ac_space=\ *)
|
---|
6885 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
6886 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
6887 | sed -n \
|
---|
6888 | "s/'/'\\\\''/g;
|
---|
6889 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
6890 | ;; #(
|
---|
6891 | *)
|
---|
6892 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
6893 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
6894 | ;;
|
---|
6895 | esac |
|
---|
6896 | sort
|
---|
6897 | ) |
|
---|
6898 | sed '
|
---|
6899 | /^ac_cv_env_/b end
|
---|
6900 | t clear
|
---|
6901 | :clear
|
---|
6902 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
6903 | t end
|
---|
6904 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
6905 | :end' >>confcache
|
---|
6906 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
6907 | if test -w "$cache_file"; then
|
---|
6908 | if test "x$cache_file" != "x/dev/null"; then
|
---|
6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
6910 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
6911 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
6912 | cat confcache >"$cache_file"
|
---|
6913 | else
|
---|
6914 | case $cache_file in #(
|
---|
6915 | */* | ?:*)
|
---|
6916 | mv -f confcache "$cache_file"$$ &&
|
---|
6917 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
6918 | *)
|
---|
6919 | mv -f confcache "$cache_file" ;;
|
---|
6920 | esac
|
---|
6921 | fi
|
---|
6922 | fi
|
---|
6923 | else
|
---|
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
6925 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
6926 | fi
|
---|
6927 | fi
|
---|
6928 | rm -f confcache
|
---|
6929 |
|
---|
6930 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
6931 | # Let make expand exec_prefix.
|
---|
6932 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
6933 |
|
---|
6934 | DEFS=-DHAVE_CONFIG_H
|
---|
6935 |
|
---|
6936 | ac_libobjs=
|
---|
6937 | ac_ltlibobjs=
|
---|
6938 | U=
|
---|
6939 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
6940 | # 1. Remove the extension, and $U if already installed.
|
---|
6941 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
6942 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
6943 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
6944 | # will be set to the directory where LIBOBJS objects are built.
|
---|
6945 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
6946 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
6947 | done
|
---|
6948 | LIBOBJS=$ac_libobjs
|
---|
6949 |
|
---|
6950 | LTLIBOBJS=$ac_ltlibobjs
|
---|
6951 |
|
---|
6952 |
|
---|
6953 |
|
---|
6954 |
|
---|
6955 | : "${CONFIG_STATUS=./config.status}"
|
---|
6956 | ac_write_fail=0
|
---|
6957 | ac_clean_files_save=$ac_clean_files
|
---|
6958 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
6960 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
6961 | as_write_fail=0
|
---|
6962 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
6963 | #! $SHELL
|
---|
6964 | # Generated by $as_me.
|
---|
6965 | # Run this file to recreate the current configuration.
|
---|
6966 | # Compiler output produced by configure, useful for debugging
|
---|
6967 | # configure, is in config.log if it exists.
|
---|
6968 |
|
---|
6969 | debug=false
|
---|
6970 | ac_cs_recheck=false
|
---|
6971 | ac_cs_silent=false
|
---|
6972 |
|
---|
6973 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
6974 | export SHELL
|
---|
6975 | _ASEOF
|
---|
6976 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
6977 | ## -------------------- ##
|
---|
6978 | ## M4sh Initialization. ##
|
---|
6979 | ## -------------------- ##
|
---|
6980 |
|
---|
6981 | # Be more Bourne compatible
|
---|
6982 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
6983 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
6984 | emulate sh
|
---|
6985 | NULLCMD=:
|
---|
6986 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
6987 | # is contrary to our usage. Disable this feature.
|
---|
6988 | alias -g '${1+"$@"}'='"$@"'
|
---|
6989 | setopt NO_GLOB_SUBST
|
---|
6990 | else
|
---|
6991 | case `(set -o) 2>/dev/null` in #(
|
---|
6992 | *posix*) :
|
---|
6993 | set -o posix ;; #(
|
---|
6994 | *) :
|
---|
6995 | ;;
|
---|
6996 | esac
|
---|
6997 | fi
|
---|
6998 |
|
---|
6999 |
|
---|
7000 | as_nl='
|
---|
7001 | '
|
---|
7002 | export as_nl
|
---|
7003 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
7004 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
7005 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
7006 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
7007 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
7008 | # but without wasting forks for bash or zsh.
|
---|
7009 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
7010 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
7011 | as_echo='print -r --'
|
---|
7012 | as_echo_n='print -rn --'
|
---|
7013 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
7014 | as_echo='printf %s\n'
|
---|
7015 | as_echo_n='printf %s'
|
---|
7016 | else
|
---|
7017 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
7018 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
7019 | as_echo_n='/usr/ucb/echo -n'
|
---|
7020 | else
|
---|
7021 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
7022 | as_echo_n_body='eval
|
---|
7023 | arg=$1;
|
---|
7024 | case $arg in #(
|
---|
7025 | *"$as_nl"*)
|
---|
7026 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
7027 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
7028 | esac;
|
---|
7029 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
7030 | '
|
---|
7031 | export as_echo_n_body
|
---|
7032 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
7033 | fi
|
---|
7034 | export as_echo_body
|
---|
7035 | as_echo='sh -c $as_echo_body as_echo'
|
---|
7036 | fi
|
---|
7037 |
|
---|
7038 | # The user is always right.
|
---|
7039 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
7040 | PATH_SEPARATOR=:
|
---|
7041 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
7042 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
7043 | PATH_SEPARATOR=';'
|
---|
7044 | }
|
---|
7045 | fi
|
---|
7046 |
|
---|
7047 |
|
---|
7048 | # IFS
|
---|
7049 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
7050 | # there to prevent editors from complaining about space-tab.
|
---|
7051 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
7052 | # splitting by setting IFS to empty value.)
|
---|
7053 | IFS=" "" $as_nl"
|
---|
7054 |
|
---|
7055 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
7056 | as_myself=
|
---|
7057 | case $0 in #((
|
---|
7058 | *[\\/]* ) as_myself=$0 ;;
|
---|
7059 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7060 | for as_dir in $PATH
|
---|
7061 | do
|
---|
7062 | IFS=$as_save_IFS
|
---|
7063 | test -z "$as_dir" && as_dir=.
|
---|
7064 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
7065 | done
|
---|
7066 | IFS=$as_save_IFS
|
---|
7067 |
|
---|
7068 | ;;
|
---|
7069 | esac
|
---|
7070 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
7071 | # in which case we are not to be found in the path.
|
---|
7072 | if test "x$as_myself" = x; then
|
---|
7073 | as_myself=$0
|
---|
7074 | fi
|
---|
7075 | if test ! -f "$as_myself"; then
|
---|
7076 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
7077 | exit 1
|
---|
7078 | fi
|
---|
7079 |
|
---|
7080 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
7081 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
7082 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
7083 | # trigger a bug in pdksh 5.2.14.
|
---|
7084 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
7085 | do eval test x\${$as_var+set} = xset \
|
---|
7086 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
7087 | done
|
---|
7088 | PS1='$ '
|
---|
7089 | PS2='> '
|
---|
7090 | PS4='+ '
|
---|
7091 |
|
---|
7092 | # NLS nuisances.
|
---|
7093 | LC_ALL=C
|
---|
7094 | export LC_ALL
|
---|
7095 | LANGUAGE=C
|
---|
7096 | export LANGUAGE
|
---|
7097 |
|
---|
7098 | # CDPATH.
|
---|
7099 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
7100 |
|
---|
7101 |
|
---|
7102 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
7103 | # ----------------------------------------
|
---|
7104 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
7105 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
7106 | # script with STATUS, using 1 if that was 0.
|
---|
7107 | as_fn_error ()
|
---|
7108 | {
|
---|
7109 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
7110 | if test "$4"; then
|
---|
7111 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
7112 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
7113 | fi
|
---|
7114 | $as_echo "$as_me: error: $2" >&2
|
---|
7115 | as_fn_exit $as_status
|
---|
7116 | } # as_fn_error
|
---|
7117 |
|
---|
7118 |
|
---|
7119 | # as_fn_set_status STATUS
|
---|
7120 | # -----------------------
|
---|
7121 | # Set $? to STATUS, without forking.
|
---|
7122 | as_fn_set_status ()
|
---|
7123 | {
|
---|
7124 | return $1
|
---|
7125 | } # as_fn_set_status
|
---|
7126 |
|
---|
7127 | # as_fn_exit STATUS
|
---|
7128 | # -----------------
|
---|
7129 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
7130 | as_fn_exit ()
|
---|
7131 | {
|
---|
7132 | set +e
|
---|
7133 | as_fn_set_status $1
|
---|
7134 | exit $1
|
---|
7135 | } # as_fn_exit
|
---|
7136 |
|
---|
7137 | # as_fn_unset VAR
|
---|
7138 | # ---------------
|
---|
7139 | # Portably unset VAR.
|
---|
7140 | as_fn_unset ()
|
---|
7141 | {
|
---|
7142 | { eval $1=; unset $1;}
|
---|
7143 | }
|
---|
7144 | as_unset=as_fn_unset
|
---|
7145 | # as_fn_append VAR VALUE
|
---|
7146 | # ----------------------
|
---|
7147 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
7148 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
7149 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
7150 | # implementations.
|
---|
7151 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
7152 | eval 'as_fn_append ()
|
---|
7153 | {
|
---|
7154 | eval $1+=\$2
|
---|
7155 | }'
|
---|
7156 | else
|
---|
7157 | as_fn_append ()
|
---|
7158 | {
|
---|
7159 | eval $1=\$$1\$2
|
---|
7160 | }
|
---|
7161 | fi # as_fn_append
|
---|
7162 |
|
---|
7163 | # as_fn_arith ARG...
|
---|
7164 | # ------------------
|
---|
7165 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
7166 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
7167 | # must be portable across $(()) and expr.
|
---|
7168 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
7169 | eval 'as_fn_arith ()
|
---|
7170 | {
|
---|
7171 | as_val=$(( $* ))
|
---|
7172 | }'
|
---|
7173 | else
|
---|
7174 | as_fn_arith ()
|
---|
7175 | {
|
---|
7176 | as_val=`expr "$@" || test $? -eq 1`
|
---|
7177 | }
|
---|
7178 | fi # as_fn_arith
|
---|
7179 |
|
---|
7180 |
|
---|
7181 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
7182 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
7183 | as_expr=expr
|
---|
7184 | else
|
---|
7185 | as_expr=false
|
---|
7186 | fi
|
---|
7187 |
|
---|
7188 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
7189 | as_basename=basename
|
---|
7190 | else
|
---|
7191 | as_basename=false
|
---|
7192 | fi
|
---|
7193 |
|
---|
7194 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
7195 | as_dirname=dirname
|
---|
7196 | else
|
---|
7197 | as_dirname=false
|
---|
7198 | fi
|
---|
7199 |
|
---|
7200 | as_me=`$as_basename -- "$0" ||
|
---|
7201 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
7202 | X"$0" : 'X\(//\)$' \| \
|
---|
7203 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7204 | $as_echo X/"$0" |
|
---|
7205 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
7206 | s//\1/
|
---|
7207 | q
|
---|
7208 | }
|
---|
7209 | /^X\/\(\/\/\)$/{
|
---|
7210 | s//\1/
|
---|
7211 | q
|
---|
7212 | }
|
---|
7213 | /^X\/\(\/\).*/{
|
---|
7214 | s//\1/
|
---|
7215 | q
|
---|
7216 | }
|
---|
7217 | s/.*/./; q'`
|
---|
7218 |
|
---|
7219 | # Avoid depending upon Character Ranges.
|
---|
7220 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
7221 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
7222 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
7223 | as_cr_digits='0123456789'
|
---|
7224 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
7225 |
|
---|
7226 | ECHO_C= ECHO_N= ECHO_T=
|
---|
7227 | case `echo -n x` in #(((((
|
---|
7228 | -n*)
|
---|
7229 | case `echo 'xy\c'` in
|
---|
7230 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
7231 | xy) ECHO_C='\c';;
|
---|
7232 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
7233 | ECHO_T=' ';;
|
---|
7234 | esac;;
|
---|
7235 | *)
|
---|
7236 | ECHO_N='-n';;
|
---|
7237 | esac
|
---|
7238 |
|
---|
7239 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
7240 | if test -d conf$$.dir; then
|
---|
7241 | rm -f conf$$.dir/conf$$.file
|
---|
7242 | else
|
---|
7243 | rm -f conf$$.dir
|
---|
7244 | mkdir conf$$.dir 2>/dev/null
|
---|
7245 | fi
|
---|
7246 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
7247 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
7248 | as_ln_s='ln -s'
|
---|
7249 | # ... but there are two gotchas:
|
---|
7250 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
7251 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
7252 | # In both cases, we have to default to `cp -pR'.
|
---|
7253 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
7254 | as_ln_s='cp -pR'
|
---|
7255 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
7256 | as_ln_s=ln
|
---|
7257 | else
|
---|
7258 | as_ln_s='cp -pR'
|
---|
7259 | fi
|
---|
7260 | else
|
---|
7261 | as_ln_s='cp -pR'
|
---|
7262 | fi
|
---|
7263 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
7264 | rmdir conf$$.dir 2>/dev/null
|
---|
7265 |
|
---|
7266 |
|
---|
7267 | # as_fn_mkdir_p
|
---|
7268 | # -------------
|
---|
7269 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
7270 | as_fn_mkdir_p ()
|
---|
7271 | {
|
---|
7272 |
|
---|
7273 | case $as_dir in #(
|
---|
7274 | -*) as_dir=./$as_dir;;
|
---|
7275 | esac
|
---|
7276 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
7277 | as_dirs=
|
---|
7278 | while :; do
|
---|
7279 | case $as_dir in #(
|
---|
7280 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
7281 | *) as_qdir=$as_dir;;
|
---|
7282 | esac
|
---|
7283 | as_dirs="'$as_qdir' $as_dirs"
|
---|
7284 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
7285 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7286 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
7287 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
7288 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7289 | $as_echo X"$as_dir" |
|
---|
7290 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7291 | s//\1/
|
---|
7292 | q
|
---|
7293 | }
|
---|
7294 | /^X\(\/\/\)[^/].*/{
|
---|
7295 | s//\1/
|
---|
7296 | q
|
---|
7297 | }
|
---|
7298 | /^X\(\/\/\)$/{
|
---|
7299 | s//\1/
|
---|
7300 | q
|
---|
7301 | }
|
---|
7302 | /^X\(\/\).*/{
|
---|
7303 | s//\1/
|
---|
7304 | q
|
---|
7305 | }
|
---|
7306 | s/.*/./; q'`
|
---|
7307 | test -d "$as_dir" && break
|
---|
7308 | done
|
---|
7309 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
7310 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
7311 |
|
---|
7312 |
|
---|
7313 | } # as_fn_mkdir_p
|
---|
7314 | if mkdir -p . 2>/dev/null; then
|
---|
7315 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
7316 | else
|
---|
7317 | test -d ./-p && rmdir ./-p
|
---|
7318 | as_mkdir_p=false
|
---|
7319 | fi
|
---|
7320 |
|
---|
7321 |
|
---|
7322 | # as_fn_executable_p FILE
|
---|
7323 | # -----------------------
|
---|
7324 | # Test if FILE is an executable regular file.
|
---|
7325 | as_fn_executable_p ()
|
---|
7326 | {
|
---|
7327 | test -f "$1" && test -x "$1"
|
---|
7328 | } # as_fn_executable_p
|
---|
7329 | as_test_x='test -x'
|
---|
7330 | as_executable_p=as_fn_executable_p
|
---|
7331 |
|
---|
7332 | # Sed expression to map a string onto a valid CPP name.
|
---|
7333 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7334 |
|
---|
7335 | # Sed expression to map a string onto a valid variable name.
|
---|
7336 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
7337 |
|
---|
7338 |
|
---|
7339 | exec 6>&1
|
---|
7340 | ## ----------------------------------- ##
|
---|
7341 | ## Main body of $CONFIG_STATUS script. ##
|
---|
7342 | ## ----------------------------------- ##
|
---|
7343 | _ASEOF
|
---|
7344 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
7345 |
|
---|
7346 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7347 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
7348 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
7349 | # values after options handling.
|
---|
7350 | ac_log="
|
---|
7351 | This file was extended by $as_me, which was
|
---|
7352 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
7353 |
|
---|
7354 | CONFIG_FILES = $CONFIG_FILES
|
---|
7355 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
7356 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
7357 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
7358 | $ $0 $@
|
---|
7359 |
|
---|
7360 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
7361 | "
|
---|
7362 |
|
---|
7363 | _ACEOF
|
---|
7364 |
|
---|
7365 | case $ac_config_files in *"
|
---|
7366 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
7367 | esac
|
---|
7368 |
|
---|
7369 | case $ac_config_headers in *"
|
---|
7370 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
7371 | esac
|
---|
7372 |
|
---|
7373 |
|
---|
7374 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7375 | # Files that config.status was made for.
|
---|
7376 | config_files="$ac_config_files"
|
---|
7377 | config_headers="$ac_config_headers"
|
---|
7378 |
|
---|
7379 | _ACEOF
|
---|
7380 |
|
---|
7381 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7382 | ac_cs_usage="\
|
---|
7383 | \`$as_me' instantiates files and other configuration actions
|
---|
7384 | from templates according to the current configuration. Unless the files
|
---|
7385 | and actions are specified as TAGs, all are instantiated by default.
|
---|
7386 |
|
---|
7387 | Usage: $0 [OPTION]... [TAG]...
|
---|
7388 |
|
---|
7389 | -h, --help print this help, then exit
|
---|
7390 | -V, --version print version number and configuration settings, then exit
|
---|
7391 | --config print configuration, then exit
|
---|
7392 | -q, --quiet, --silent
|
---|
7393 | do not print progress messages
|
---|
7394 | -d, --debug don't remove temporary files
|
---|
7395 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
7396 | --file=FILE[:TEMPLATE]
|
---|
7397 | instantiate the configuration file FILE
|
---|
7398 | --header=FILE[:TEMPLATE]
|
---|
7399 | instantiate the configuration header FILE
|
---|
7400 |
|
---|
7401 | Configuration files:
|
---|
7402 | $config_files
|
---|
7403 |
|
---|
7404 | Configuration headers:
|
---|
7405 | $config_headers
|
---|
7406 |
|
---|
7407 | Report bugs to the package provider."
|
---|
7408 |
|
---|
7409 | _ACEOF
|
---|
7410 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7411 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
7412 | ac_cs_version="\\
|
---|
7413 | config.status
|
---|
7414 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
7415 | with options \\"\$ac_cs_config\\"
|
---|
7416 |
|
---|
7417 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
7418 | This config.status script is free software; the Free Software Foundation
|
---|
7419 | gives unlimited permission to copy, distribute and modify it."
|
---|
7420 |
|
---|
7421 | ac_pwd='$ac_pwd'
|
---|
7422 | srcdir='$srcdir'
|
---|
7423 | INSTALL='$INSTALL'
|
---|
7424 | AWK='$AWK'
|
---|
7425 | test -n "\$AWK" || AWK=awk
|
---|
7426 | _ACEOF
|
---|
7427 |
|
---|
7428 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7429 | # The default lists apply if the user does not specify any file.
|
---|
7430 | ac_need_defaults=:
|
---|
7431 | while test $# != 0
|
---|
7432 | do
|
---|
7433 | case $1 in
|
---|
7434 | --*=?*)
|
---|
7435 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7436 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
7437 | ac_shift=:
|
---|
7438 | ;;
|
---|
7439 | --*=)
|
---|
7440 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
7441 | ac_optarg=
|
---|
7442 | ac_shift=:
|
---|
7443 | ;;
|
---|
7444 | *)
|
---|
7445 | ac_option=$1
|
---|
7446 | ac_optarg=$2
|
---|
7447 | ac_shift=shift
|
---|
7448 | ;;
|
---|
7449 | esac
|
---|
7450 |
|
---|
7451 | case $ac_option in
|
---|
7452 | # Handling of the options.
|
---|
7453 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
7454 | ac_cs_recheck=: ;;
|
---|
7455 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
7456 | $as_echo "$ac_cs_version"; exit ;;
|
---|
7457 | --config | --confi | --conf | --con | --co | --c )
|
---|
7458 | $as_echo "$ac_cs_config"; exit ;;
|
---|
7459 | --debug | --debu | --deb | --de | --d | -d )
|
---|
7460 | debug=: ;;
|
---|
7461 | --file | --fil | --fi | --f )
|
---|
7462 | $ac_shift
|
---|
7463 | case $ac_optarg in
|
---|
7464 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7465 | '') as_fn_error $? "missing file argument" ;;
|
---|
7466 | esac
|
---|
7467 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
7468 | ac_need_defaults=false;;
|
---|
7469 | --header | --heade | --head | --hea )
|
---|
7470 | $ac_shift
|
---|
7471 | case $ac_optarg in
|
---|
7472 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
7473 | esac
|
---|
7474 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
7475 | ac_need_defaults=false;;
|
---|
7476 | --he | --h)
|
---|
7477 | # Conflict between --help and --header
|
---|
7478 | as_fn_error $? "ambiguous option: \`$1'
|
---|
7479 | Try \`$0 --help' for more information.";;
|
---|
7480 | --help | --hel | -h )
|
---|
7481 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
7482 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
7483 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
7484 | ac_cs_silent=: ;;
|
---|
7485 |
|
---|
7486 | # This is an error.
|
---|
7487 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
7488 | Try \`$0 --help' for more information." ;;
|
---|
7489 |
|
---|
7490 | *) as_fn_append ac_config_targets " $1"
|
---|
7491 | ac_need_defaults=false ;;
|
---|
7492 |
|
---|
7493 | esac
|
---|
7494 | shift
|
---|
7495 | done
|
---|
7496 |
|
---|
7497 | ac_configure_extra_args=
|
---|
7498 |
|
---|
7499 | if $ac_cs_silent; then
|
---|
7500 | exec 6>/dev/null
|
---|
7501 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
7502 | fi
|
---|
7503 |
|
---|
7504 | _ACEOF
|
---|
7505 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7506 | if \$ac_cs_recheck; then
|
---|
7507 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
7508 | shift
|
---|
7509 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
7510 | CONFIG_SHELL='$SHELL'
|
---|
7511 | export CONFIG_SHELL
|
---|
7512 | exec "\$@"
|
---|
7513 | fi
|
---|
7514 |
|
---|
7515 | _ACEOF
|
---|
7516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7517 | exec 5>>config.log
|
---|
7518 | {
|
---|
7519 | echo
|
---|
7520 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
7521 | ## Running $as_me. ##
|
---|
7522 | _ASBOX
|
---|
7523 | $as_echo "$ac_log"
|
---|
7524 | } >&5
|
---|
7525 |
|
---|
7526 | _ACEOF
|
---|
7527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7528 | _ACEOF
|
---|
7529 |
|
---|
7530 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7531 |
|
---|
7532 | # Handling of arguments.
|
---|
7533 | for ac_config_target in $ac_config_targets
|
---|
7534 | do
|
---|
7535 | case $ac_config_target in
|
---|
7536 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
7537 | "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
7538 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
7539 | "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
7540 | "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
7541 |
|
---|
7542 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
7543 | esac
|
---|
7544 | done
|
---|
7545 |
|
---|
7546 |
|
---|
7547 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
7548 | # then the envvar interface is used. Set only those that are not.
|
---|
7549 | # We use the long form for the default assignment because of an extremely
|
---|
7550 | # bizarre bug on SunOS 4.1.3.
|
---|
7551 | if $ac_need_defaults; then
|
---|
7552 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
7553 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
7554 | fi
|
---|
7555 |
|
---|
7556 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
7557 | # simply because there is no reason against having it here, and in addition,
|
---|
7558 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
7559 | # Hook for its removal unless debugging.
|
---|
7560 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
7561 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
7562 | $debug ||
|
---|
7563 | {
|
---|
7564 | tmp= ac_tmp=
|
---|
7565 | trap 'exit_status=$?
|
---|
7566 | : "${ac_tmp:=$tmp}"
|
---|
7567 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
7568 | ' 0
|
---|
7569 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
7570 | }
|
---|
7571 | # Create a (secure) tmp directory for tmp files.
|
---|
7572 |
|
---|
7573 | {
|
---|
7574 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
7575 | test -d "$tmp"
|
---|
7576 | } ||
|
---|
7577 | {
|
---|
7578 | tmp=./conf$$-$RANDOM
|
---|
7579 | (umask 077 && mkdir "$tmp")
|
---|
7580 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
7581 | ac_tmp=$tmp
|
---|
7582 |
|
---|
7583 | # Set up the scripts for CONFIG_FILES section.
|
---|
7584 | # No need to generate them if there are no CONFIG_FILES.
|
---|
7585 | # This happens for instance with `./config.status config.h'.
|
---|
7586 | if test -n "$CONFIG_FILES"; then
|
---|
7587 |
|
---|
7588 |
|
---|
7589 | ac_cr=`echo X | tr X '\015'`
|
---|
7590 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
7591 | # But we know of no other shell where ac_cr would be empty at this
|
---|
7592 | # point, so we can use a bashism as a fallback.
|
---|
7593 | if test "x$ac_cr" = x; then
|
---|
7594 | eval ac_cr=\$\'\\r\'
|
---|
7595 | fi
|
---|
7596 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
7597 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
7598 | ac_cs_awk_cr='\\r'
|
---|
7599 | else
|
---|
7600 | ac_cs_awk_cr=$ac_cr
|
---|
7601 | fi
|
---|
7602 |
|
---|
7603 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
7604 | _ACEOF
|
---|
7605 |
|
---|
7606 |
|
---|
7607 | {
|
---|
7608 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
7609 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
7610 | echo "_ACEOF"
|
---|
7611 | } >conf$$subs.sh ||
|
---|
7612 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7613 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
7614 | ac_delim='%!_!# '
|
---|
7615 | for ac_last_try in false false false false false :; do
|
---|
7616 | . ./conf$$subs.sh ||
|
---|
7617 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7618 |
|
---|
7619 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
7620 | if test $ac_delim_n = $ac_delim_num; then
|
---|
7621 | break
|
---|
7622 | elif $ac_last_try; then
|
---|
7623 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
7624 | else
|
---|
7625 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7626 | fi
|
---|
7627 | done
|
---|
7628 | rm -f conf$$subs.sh
|
---|
7629 |
|
---|
7630 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7631 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
7632 | _ACEOF
|
---|
7633 | sed -n '
|
---|
7634 | h
|
---|
7635 | s/^/S["/; s/!.*/"]=/
|
---|
7636 | p
|
---|
7637 | g
|
---|
7638 | s/^[^!]*!//
|
---|
7639 | :repl
|
---|
7640 | t repl
|
---|
7641 | s/'"$ac_delim"'$//
|
---|
7642 | t delim
|
---|
7643 | :nl
|
---|
7644 | h
|
---|
7645 | s/\(.\{148\}\)..*/\1/
|
---|
7646 | t more1
|
---|
7647 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
7648 | p
|
---|
7649 | n
|
---|
7650 | b repl
|
---|
7651 | :more1
|
---|
7652 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7653 | p
|
---|
7654 | g
|
---|
7655 | s/.\{148\}//
|
---|
7656 | t nl
|
---|
7657 | :delim
|
---|
7658 | h
|
---|
7659 | s/\(.\{148\}\)..*/\1/
|
---|
7660 | t more2
|
---|
7661 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
7662 | p
|
---|
7663 | b
|
---|
7664 | :more2
|
---|
7665 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
7666 | p
|
---|
7667 | g
|
---|
7668 | s/.\{148\}//
|
---|
7669 | t delim
|
---|
7670 | ' <conf$$subs.awk | sed '
|
---|
7671 | /^[^""]/{
|
---|
7672 | N
|
---|
7673 | s/\n//
|
---|
7674 | }
|
---|
7675 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7676 | rm -f conf$$subs.awk
|
---|
7677 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7678 | _ACAWK
|
---|
7679 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
7680 | for (key in S) S_is_set[key] = 1
|
---|
7681 | FS = ""
|
---|
7682 |
|
---|
7683 | }
|
---|
7684 | {
|
---|
7685 | line = $ 0
|
---|
7686 | nfields = split(line, field, "@")
|
---|
7687 | substed = 0
|
---|
7688 | len = length(field[1])
|
---|
7689 | for (i = 2; i < nfields; i++) {
|
---|
7690 | key = field[i]
|
---|
7691 | keylen = length(key)
|
---|
7692 | if (S_is_set[key]) {
|
---|
7693 | value = S[key]
|
---|
7694 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
7695 | len += length(value) + length(field[++i])
|
---|
7696 | substed = 1
|
---|
7697 | } else
|
---|
7698 | len += 1 + keylen
|
---|
7699 | }
|
---|
7700 |
|
---|
7701 | print line
|
---|
7702 | }
|
---|
7703 |
|
---|
7704 | _ACAWK
|
---|
7705 | _ACEOF
|
---|
7706 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7707 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
7708 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
7709 | else
|
---|
7710 | cat
|
---|
7711 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
7712 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
7713 | _ACEOF
|
---|
7714 |
|
---|
7715 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
7716 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
7717 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
7718 | # (actually we leave an empty line to preserve line numbers).
|
---|
7719 | if test "x$srcdir" = x.; then
|
---|
7720 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
7721 | h
|
---|
7722 | s///
|
---|
7723 | s/^/:/
|
---|
7724 | s/[ ]*$/:/
|
---|
7725 | s/:\$(srcdir):/:/g
|
---|
7726 | s/:\${srcdir}:/:/g
|
---|
7727 | s/:@srcdir@:/:/g
|
---|
7728 | s/^:*//
|
---|
7729 | s/:*$//
|
---|
7730 | x
|
---|
7731 | s/\(=[ ]*\).*/\1/
|
---|
7732 | G
|
---|
7733 | s/\n//
|
---|
7734 | s/^[^=]*=[ ]*$//
|
---|
7735 | }'
|
---|
7736 | fi
|
---|
7737 |
|
---|
7738 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7739 | fi # test -n "$CONFIG_FILES"
|
---|
7740 |
|
---|
7741 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
7742 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
7743 | # This happens for instance with `./config.status Makefile'.
|
---|
7744 | if test -n "$CONFIG_HEADERS"; then
|
---|
7745 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
7746 | BEGIN {
|
---|
7747 | _ACEOF
|
---|
7748 |
|
---|
7749 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
7750 | # here-document in config.status, that substitutes the proper values into
|
---|
7751 | # config.h.in to produce config.h.
|
---|
7752 |
|
---|
7753 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
7754 | # handling of long lines.
|
---|
7755 | ac_delim='%!_!# '
|
---|
7756 | for ac_last_try in false false :; do
|
---|
7757 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
7758 | if test -z "$ac_tt"; then
|
---|
7759 | break
|
---|
7760 | elif $ac_last_try; then
|
---|
7761 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
7762 | else
|
---|
7763 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
7764 | fi
|
---|
7765 | done
|
---|
7766 |
|
---|
7767 | # For the awk script, D is an array of macro values keyed by name,
|
---|
7768 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
7769 | # newline sequences.
|
---|
7770 |
|
---|
7771 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
7772 | sed -n '
|
---|
7773 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7774 | t rset
|
---|
7775 | :rset
|
---|
7776 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
7777 | t def
|
---|
7778 | d
|
---|
7779 | :def
|
---|
7780 | s/\\$//
|
---|
7781 | t bsnl
|
---|
7782 | s/["\\]/\\&/g
|
---|
7783 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7784 | D["\1"]=" \3"/p
|
---|
7785 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
7786 | d
|
---|
7787 | :bsnl
|
---|
7788 | s/["\\]/\\&/g
|
---|
7789 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
7790 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
7791 | t cont
|
---|
7792 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
7793 | t cont
|
---|
7794 | d
|
---|
7795 | :cont
|
---|
7796 | n
|
---|
7797 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
7798 | t clear
|
---|
7799 | :clear
|
---|
7800 | s/\\$//
|
---|
7801 | t bsnlc
|
---|
7802 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
7803 | d
|
---|
7804 | :bsnlc
|
---|
7805 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
7806 | b cont
|
---|
7807 | ' <confdefs.h | sed '
|
---|
7808 | s/'"$ac_delim"'/"\\\
|
---|
7809 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
7810 |
|
---|
7811 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
7812 | for (key in D) D_is_set[key] = 1
|
---|
7813 | FS = ""
|
---|
7814 | }
|
---|
7815 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
7816 | line = \$ 0
|
---|
7817 | split(line, arg, " ")
|
---|
7818 | if (arg[1] == "#") {
|
---|
7819 | defundef = arg[2]
|
---|
7820 | mac1 = arg[3]
|
---|
7821 | } else {
|
---|
7822 | defundef = substr(arg[1], 2)
|
---|
7823 | mac1 = arg[2]
|
---|
7824 | }
|
---|
7825 | split(mac1, mac2, "(") #)
|
---|
7826 | macro = mac2[1]
|
---|
7827 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
7828 | if (D_is_set[macro]) {
|
---|
7829 | # Preserve the white space surrounding the "#".
|
---|
7830 | print prefix "define", macro P[macro] D[macro]
|
---|
7831 | next
|
---|
7832 | } else {
|
---|
7833 | # Replace #undef with comments. This is necessary, for example,
|
---|
7834 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
7835 | # on some systems where configure will not decide to define it.
|
---|
7836 | if (defundef == "undef") {
|
---|
7837 | print "/*", prefix defundef, macro, "*/"
|
---|
7838 | next
|
---|
7839 | }
|
---|
7840 | }
|
---|
7841 | }
|
---|
7842 | { print }
|
---|
7843 | _ACAWK
|
---|
7844 | _ACEOF
|
---|
7845 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7846 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
7847 | fi # test -n "$CONFIG_HEADERS"
|
---|
7848 |
|
---|
7849 |
|
---|
7850 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
|
---|
7851 | shift
|
---|
7852 | for ac_tag
|
---|
7853 | do
|
---|
7854 | case $ac_tag in
|
---|
7855 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
7856 | esac
|
---|
7857 | case $ac_mode$ac_tag in
|
---|
7858 | :[FHL]*:*);;
|
---|
7859 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
7860 | :[FH]-) ac_tag=-:-;;
|
---|
7861 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
7862 | esac
|
---|
7863 | ac_save_IFS=$IFS
|
---|
7864 | IFS=:
|
---|
7865 | set x $ac_tag
|
---|
7866 | IFS=$ac_save_IFS
|
---|
7867 | shift
|
---|
7868 | ac_file=$1
|
---|
7869 | shift
|
---|
7870 |
|
---|
7871 | case $ac_mode in
|
---|
7872 | :L) ac_source=$1;;
|
---|
7873 | :[FH])
|
---|
7874 | ac_file_inputs=
|
---|
7875 | for ac_f
|
---|
7876 | do
|
---|
7877 | case $ac_f in
|
---|
7878 | -) ac_f="$ac_tmp/stdin";;
|
---|
7879 | *) # Look for the file first in the build tree, then in the source tree
|
---|
7880 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
7881 | # because $ac_f cannot contain `:'.
|
---|
7882 | test -f "$ac_f" ||
|
---|
7883 | case $ac_f in
|
---|
7884 | [\\/$]*) false;;
|
---|
7885 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
7886 | esac ||
|
---|
7887 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
7888 | esac
|
---|
7889 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
7890 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
7891 | done
|
---|
7892 |
|
---|
7893 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
7894 | # use $as_me), people would be surprised to read:
|
---|
7895 | # /* config.h. Generated by config.status. */
|
---|
7896 | configure_input='Generated from '`
|
---|
7897 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
7898 | `' by configure.'
|
---|
7899 | if test x"$ac_file" != x-; then
|
---|
7900 | configure_input="$ac_file. $configure_input"
|
---|
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
7902 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
7903 | fi
|
---|
7904 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
7905 | case $configure_input in #(
|
---|
7906 | *\&* | *\|* | *\\* )
|
---|
7907 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
7908 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
7909 | *) ac_sed_conf_input=$configure_input;;
|
---|
7910 | esac
|
---|
7911 |
|
---|
7912 | case $ac_tag in
|
---|
7913 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
7914 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
7915 | esac
|
---|
7916 | ;;
|
---|
7917 | esac
|
---|
7918 |
|
---|
7919 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
7920 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
7921 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
7922 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
7923 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
7924 | $as_echo X"$ac_file" |
|
---|
7925 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
7926 | s//\1/
|
---|
7927 | q
|
---|
7928 | }
|
---|
7929 | /^X\(\/\/\)[^/].*/{
|
---|
7930 | s//\1/
|
---|
7931 | q
|
---|
7932 | }
|
---|
7933 | /^X\(\/\/\)$/{
|
---|
7934 | s//\1/
|
---|
7935 | q
|
---|
7936 | }
|
---|
7937 | /^X\(\/\).*/{
|
---|
7938 | s//\1/
|
---|
7939 | q
|
---|
7940 | }
|
---|
7941 | s/.*/./; q'`
|
---|
7942 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
7943 | ac_builddir=.
|
---|
7944 |
|
---|
7945 | case "$ac_dir" in
|
---|
7946 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7947 | *)
|
---|
7948 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
7949 | # A ".." for each directory in $ac_dir_suffix.
|
---|
7950 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
7951 | case $ac_top_builddir_sub in
|
---|
7952 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
7953 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
7954 | esac ;;
|
---|
7955 | esac
|
---|
7956 | ac_abs_top_builddir=$ac_pwd
|
---|
7957 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
7958 | # for backward compatibility:
|
---|
7959 | ac_top_builddir=$ac_top_build_prefix
|
---|
7960 |
|
---|
7961 | case $srcdir in
|
---|
7962 | .) # We are building in place.
|
---|
7963 | ac_srcdir=.
|
---|
7964 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
7965 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
7966 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
7967 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
7968 | ac_top_srcdir=$srcdir
|
---|
7969 | ac_abs_top_srcdir=$srcdir ;;
|
---|
7970 | *) # Relative name.
|
---|
7971 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
7972 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
7973 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
7974 | esac
|
---|
7975 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
7976 |
|
---|
7977 |
|
---|
7978 | case $ac_mode in
|
---|
7979 | :F)
|
---|
7980 | #
|
---|
7981 | # CONFIG_FILE
|
---|
7982 | #
|
---|
7983 |
|
---|
7984 | case $INSTALL in
|
---|
7985 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
7986 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
7987 | esac
|
---|
7988 | _ACEOF
|
---|
7989 |
|
---|
7990 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
7991 | # If the template does not know about datarootdir, expand it.
|
---|
7992 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
7993 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
7994 | ac_sed_dataroot='
|
---|
7995 | /datarootdir/ {
|
---|
7996 | p
|
---|
7997 | q
|
---|
7998 | }
|
---|
7999 | /@datadir@/p
|
---|
8000 | /@docdir@/p
|
---|
8001 | /@infodir@/p
|
---|
8002 | /@localedir@/p
|
---|
8003 | /@mandir@/p'
|
---|
8004 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
8005 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
8006 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
8008 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
8009 | _ACEOF
|
---|
8010 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8011 | ac_datarootdir_hack='
|
---|
8012 | s&@datadir@&$datadir&g
|
---|
8013 | s&@docdir@&$docdir&g
|
---|
8014 | s&@infodir@&$infodir&g
|
---|
8015 | s&@localedir@&$localedir&g
|
---|
8016 | s&@mandir@&$mandir&g
|
---|
8017 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
8018 | esac
|
---|
8019 | _ACEOF
|
---|
8020 |
|
---|
8021 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
8022 | # Shell code in configure.ac might set extrasub.
|
---|
8023 | # FIXME: do we really want to maintain this feature?
|
---|
8024 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
8025 | ac_sed_extra="$ac_vpsub
|
---|
8026 | $extrasub
|
---|
8027 | _ACEOF
|
---|
8028 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
8029 | :t
|
---|
8030 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
8031 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
8032 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
8033 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
8034 | s&@srcdir@&$ac_srcdir&;t t
|
---|
8035 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
8036 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
8037 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
8038 | s&@builddir@&$ac_builddir&;t t
|
---|
8039 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
8040 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
8041 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
8042 | $ac_datarootdir_hack
|
---|
8043 | "
|
---|
8044 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
8045 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8046 |
|
---|
8047 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
8048 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
8049 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
8050 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8052 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
8053 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
8054 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
8055 |
|
---|
8056 | rm -f "$ac_tmp/stdin"
|
---|
8057 | case $ac_file in
|
---|
8058 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
8059 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
8060 | esac \
|
---|
8061 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8062 | ;;
|
---|
8063 | :H)
|
---|
8064 | #
|
---|
8065 | # CONFIG_HEADER
|
---|
8066 | #
|
---|
8067 | if test x"$ac_file" != x-; then
|
---|
8068 | {
|
---|
8069 | $as_echo "/* $configure_input */" \
|
---|
8070 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
8071 | } >"$ac_tmp/config.h" \
|
---|
8072 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8073 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
8075 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
8076 | else
|
---|
8077 | rm -f "$ac_file"
|
---|
8078 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
8079 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
8080 | fi
|
---|
8081 | else
|
---|
8082 | $as_echo "/* $configure_input */" \
|
---|
8083 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
8084 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
8085 | fi
|
---|
8086 | ;;
|
---|
8087 |
|
---|
8088 |
|
---|
8089 | esac
|
---|
8090 |
|
---|
8091 | done # for ac_tag
|
---|
8092 |
|
---|
8093 |
|
---|
8094 | as_fn_exit 0
|
---|
8095 | _ACEOF
|
---|
8096 | ac_clean_files=$ac_clean_files_save
|
---|
8097 |
|
---|
8098 | test $ac_write_fail = 0 ||
|
---|
8099 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
8100 |
|
---|
8101 |
|
---|
8102 | # configure is writing to config.log, and then calls config.status.
|
---|
8103 | # config.status does its own redirection, appending to config.log.
|
---|
8104 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
8105 | # by configure, so config.status won't be able to write to it; its
|
---|
8106 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
8107 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
8108 | # appended to by config.status. When coming back to configure, we
|
---|
8109 | # need to make the FD available again.
|
---|
8110 | if test "$no_create" != yes; then
|
---|
8111 | ac_cs_success=:
|
---|
8112 | ac_config_status_args=
|
---|
8113 | test "$silent" = yes &&
|
---|
8114 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
8115 | exec 5>/dev/null
|
---|
8116 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
8117 | exec 5>>config.log
|
---|
8118 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
8119 | # would make configure fail if this is the last instruction.
|
---|
8120 | $ac_cs_success || as_fn_exit 1
|
---|
8121 | fi
|
---|
8122 |
|
---|
8123 | #
|
---|
8124 | # CONFIG_SUBDIRS section.
|
---|
8125 | #
|
---|
8126 | if test "$no_recursion" != yes; then
|
---|
8127 |
|
---|
8128 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments
|
---|
8129 | # so they do not pile up.
|
---|
8130 | ac_sub_configure_args=
|
---|
8131 | ac_prev=
|
---|
8132 | eval "set x $ac_configure_args"
|
---|
8133 | shift
|
---|
8134 | for ac_arg
|
---|
8135 | do
|
---|
8136 | if test -n "$ac_prev"; then
|
---|
8137 | ac_prev=
|
---|
8138 | continue
|
---|
8139 | fi
|
---|
8140 | case $ac_arg in
|
---|
8141 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
8142 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
8143 | ac_prev=cache_file ;;
|
---|
8144 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
8145 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
8146 | | --c=*)
|
---|
8147 | ;;
|
---|
8148 | --config-cache | -C)
|
---|
8149 | ;;
|
---|
8150 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
8151 | ac_prev=srcdir ;;
|
---|
8152 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
8153 | ;;
|
---|
8154 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
8155 | ac_prev=prefix ;;
|
---|
8156 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
8157 | ;;
|
---|
8158 | --disable-option-checking)
|
---|
8159 | ;;
|
---|
8160 | *)
|
---|
8161 | case $ac_arg in
|
---|
8162 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
8163 | esac
|
---|
8164 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
|
---|
8165 | esac
|
---|
8166 | done
|
---|
8167 |
|
---|
8168 | # Always prepend --prefix to ensure using the same prefix
|
---|
8169 | # in subdir configurations.
|
---|
8170 | ac_arg="--prefix=$prefix"
|
---|
8171 | case $ac_arg in
|
---|
8172 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
8173 | esac
|
---|
8174 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
---|
8175 |
|
---|
8176 | # Pass --silent
|
---|
8177 | if test "$silent" = yes; then
|
---|
8178 | ac_sub_configure_args="--silent $ac_sub_configure_args"
|
---|
8179 | fi
|
---|
8180 |
|
---|
8181 | # Always prepend --disable-option-checking to silence warnings, since
|
---|
8182 | # different subdirs can have different --enable and --with options.
|
---|
8183 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
|
---|
8184 |
|
---|
8185 | ac_popdir=`pwd`
|
---|
8186 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
8187 |
|
---|
8188 | # Do not complain, so a configure script can configure whichever
|
---|
8189 | # parts of a large source tree are present.
|
---|
8190 | test -d "$srcdir/$ac_dir" || continue
|
---|
8191 |
|
---|
8192 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
---|
8193 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
|
---|
8194 | $as_echo "$ac_msg" >&6
|
---|
8195 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
8196 | ac_builddir=.
|
---|
8197 |
|
---|
8198 | case "$ac_dir" in
|
---|
8199 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8200 | *)
|
---|
8201 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
8202 | # A ".." for each directory in $ac_dir_suffix.
|
---|
8203 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
8204 | case $ac_top_builddir_sub in
|
---|
8205 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
8206 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
8207 | esac ;;
|
---|
8208 | esac
|
---|
8209 | ac_abs_top_builddir=$ac_pwd
|
---|
8210 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
8211 | # for backward compatibility:
|
---|
8212 | ac_top_builddir=$ac_top_build_prefix
|
---|
8213 |
|
---|
8214 | case $srcdir in
|
---|
8215 | .) # We are building in place.
|
---|
8216 | ac_srcdir=.
|
---|
8217 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
8218 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
8219 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
8220 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
8221 | ac_top_srcdir=$srcdir
|
---|
8222 | ac_abs_top_srcdir=$srcdir ;;
|
---|
8223 | *) # Relative name.
|
---|
8224 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
8225 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
8226 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
8227 | esac
|
---|
8228 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
8229 |
|
---|
8230 |
|
---|
8231 | cd "$ac_dir"
|
---|
8232 |
|
---|
8233 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
8234 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
8235 | ac_sub_configure=$ac_srcdir/configure.gnu
|
---|
8236 | elif test -f "$ac_srcdir/configure"; then
|
---|
8237 | ac_sub_configure=$ac_srcdir/configure
|
---|
8238 | elif test -f "$ac_srcdir/configure.in"; then
|
---|
8239 | # This should be Cygnus configure.
|
---|
8240 | ac_sub_configure=$ac_aux_dir/configure
|
---|
8241 | else
|
---|
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
|
---|
8243 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
8244 | ac_sub_configure=
|
---|
8245 | fi
|
---|
8246 |
|
---|
8247 | # The recursion is here.
|
---|
8248 | if test -n "$ac_sub_configure"; then
|
---|
8249 | # Make the cache file name correct relative to the subdirectory.
|
---|
8250 | case $cache_file in
|
---|
8251 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
8252 | *) # Relative name.
|
---|
8253 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
---|
8254 | esac
|
---|
8255 |
|
---|
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
8257 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
8258 | # The eval makes quoting arguments work.
|
---|
8259 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
---|
8260 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
---|
8261 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
---|
8262 | fi
|
---|
8263 |
|
---|
8264 | cd "$ac_popdir"
|
---|
8265 | done
|
---|
8266 | fi
|
---|
8267 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
8269 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
8270 | fi
|
---|
8271 |
|
---|
8272 |
|
---|
8273 |
|
---|