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