1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.68 for cfa-cc 1.0. |
---|
4 | # |
---|
5 | # Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
---|
10 | # Foundation, Inc. |
---|
11 | # |
---|
12 | # |
---|
13 | # This configure script is free software; the Free Software Foundation |
---|
14 | # gives unlimited permission to copy, distribute and modify it. |
---|
15 | ## -------------------- ## |
---|
16 | ## M4sh Initialization. ## |
---|
17 | ## -------------------- ## |
---|
18 | |
---|
19 | # Be more Bourne compatible |
---|
20 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | setopt NO_GLOB_SUBST |
---|
28 | else |
---|
29 | case `(set -o) 2>/dev/null` in #( |
---|
30 | *posix*) : |
---|
31 | set -o posix ;; #( |
---|
32 | *) : |
---|
33 | ;; |
---|
34 | esac |
---|
35 | fi |
---|
36 | |
---|
37 | |
---|
38 | as_nl=' |
---|
39 | ' |
---|
40 | export as_nl |
---|
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
46 | # but without wasting forks for bash or zsh. |
---|
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
49 | as_echo='print -r --' |
---|
50 | as_echo_n='print -rn --' |
---|
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
52 | as_echo='printf %s\n' |
---|
53 | as_echo_n='printf %s' |
---|
54 | else |
---|
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
57 | as_echo_n='/usr/ucb/echo -n' |
---|
58 | else |
---|
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
60 | as_echo_n_body='eval |
---|
61 | arg=$1; |
---|
62 | case $arg in #( |
---|
63 | *"$as_nl"*) |
---|
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
66 | esac; |
---|
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
68 | ' |
---|
69 | export as_echo_n_body |
---|
70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
71 | fi |
---|
72 | export as_echo_body |
---|
73 | as_echo='sh -c $as_echo_body as_echo' |
---|
74 | fi |
---|
75 | |
---|
76 | # The user is always right. |
---|
77 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
78 | PATH_SEPARATOR=: |
---|
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
81 | PATH_SEPARATOR=';' |
---|
82 | } |
---|
83 | fi |
---|
84 | |
---|
85 | |
---|
86 | # IFS |
---|
87 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
88 | # there to prevent editors from complaining about space-tab. |
---|
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
90 | # splitting by setting IFS to empty value.) |
---|
91 | IFS=" "" $as_nl" |
---|
92 | |
---|
93 | # Find who we are. Look in the path if we contain no directory separator. |
---|
94 | as_myself= |
---|
95 | case $0 in #(( |
---|
96 | *[\\/]* ) as_myself=$0 ;; |
---|
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
98 | for as_dir in $PATH |
---|
99 | do |
---|
100 | IFS=$as_save_IFS |
---|
101 | test -z "$as_dir" && as_dir=. |
---|
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
103 | done |
---|
104 | IFS=$as_save_IFS |
---|
105 | |
---|
106 | ;; |
---|
107 | esac |
---|
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
109 | # in which case we are not to be found in the path. |
---|
110 | if test "x$as_myself" = x; then |
---|
111 | as_myself=$0 |
---|
112 | fi |
---|
113 | if test ! -f "$as_myself"; then |
---|
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
115 | exit 1 |
---|
116 | fi |
---|
117 | |
---|
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
120 | # suppresses any "Segmentation fault" message there. '((' could |
---|
121 | # trigger a bug in pdksh 5.2.14. |
---|
122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
123 | do eval test x\${$as_var+set} = xset \ |
---|
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
125 | done |
---|
126 | PS1='$ ' |
---|
127 | PS2='> ' |
---|
128 | PS4='+ ' |
---|
129 | |
---|
130 | # NLS nuisances. |
---|
131 | LC_ALL=C |
---|
132 | export LC_ALL |
---|
133 | LANGUAGE=C |
---|
134 | export LANGUAGE |
---|
135 | |
---|
136 | # CDPATH. |
---|
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
138 | |
---|
139 | if test "x$CONFIG_SHELL" = x; then |
---|
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
141 | emulate sh |
---|
142 | NULLCMD=: |
---|
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
144 | # is contrary to our usage. Disable this feature. |
---|
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
146 | setopt NO_GLOB_SUBST |
---|
147 | else |
---|
148 | case \`(set -o) 2>/dev/null\` in #( |
---|
149 | *posix*) : |
---|
150 | set -o posix ;; #( |
---|
151 | *) : |
---|
152 | ;; |
---|
153 | esac |
---|
154 | fi |
---|
155 | " |
---|
156 | as_required="as_fn_return () { (exit \$1); } |
---|
157 | as_fn_success () { as_fn_return 0; } |
---|
158 | as_fn_failure () { as_fn_return 1; } |
---|
159 | as_fn_ret_success () { return 0; } |
---|
160 | as_fn_ret_failure () { return 1; } |
---|
161 | |
---|
162 | exitcode=0 |
---|
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
168 | |
---|
169 | else |
---|
170 | exitcode=1; echo positional parameters were not saved. |
---|
171 | fi |
---|
172 | test x\$exitcode = x0 || exit 1" |
---|
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
177 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
178 | if (eval "$as_required") 2>/dev/null; then : |
---|
179 | as_have_required=yes |
---|
180 | else |
---|
181 | as_have_required=no |
---|
182 | fi |
---|
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
184 | |
---|
185 | else |
---|
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
187 | as_found=false |
---|
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
189 | do |
---|
190 | IFS=$as_save_IFS |
---|
191 | test -z "$as_dir" && as_dir=. |
---|
192 | as_found=: |
---|
193 | case $as_dir in #( |
---|
194 | /*) |
---|
195 | for as_base in sh bash ksh sh5; do |
---|
196 | # Try only shells that exist, to save several forks. |
---|
197 | as_shell=$as_dir/$as_base |
---|
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
200 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
202 | break 2 |
---|
203 | fi |
---|
204 | fi |
---|
205 | done;; |
---|
206 | esac |
---|
207 | as_found=false |
---|
208 | done |
---|
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
211 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
212 | fi; } |
---|
213 | IFS=$as_save_IFS |
---|
214 | |
---|
215 | |
---|
216 | if test "x$CONFIG_SHELL" != x; then : |
---|
217 | # We cannot yet assume a decent shell, so we have to provide a |
---|
218 | # neutralization value for shells without unset; and this also |
---|
219 | # works around shells that cannot unset nonexistent variables. |
---|
220 | # Preserve -v and -x to the replacement shell. |
---|
221 | BASH_ENV=/dev/null |
---|
222 | ENV=/dev/null |
---|
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
224 | export CONFIG_SHELL |
---|
225 | case $- in # (((( |
---|
226 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
227 | *v* ) as_opts=-v ;; |
---|
228 | *x* ) as_opts=-x ;; |
---|
229 | * ) as_opts= ;; |
---|
230 | esac |
---|
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
---|
232 | fi |
---|
233 | |
---|
234 | if test x$as_have_required = xno; then : |
---|
235 | $as_echo "$0: This script requires a shell more modern than all" |
---|
236 | $as_echo "$0: the shells that I found on your system." |
---|
237 | if test x${ZSH_VERSION+set} = xset ; then |
---|
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
240 | else |
---|
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
242 | $0: cforall@plg.uwaterloo.ca about your system, including |
---|
243 | $0: any error possibly output before this message. Then |
---|
244 | $0: install a modern shell, or manually run the script |
---|
245 | $0: under such a shell if you do have one." |
---|
246 | fi |
---|
247 | exit 1 |
---|
248 | fi |
---|
249 | fi |
---|
250 | fi |
---|
251 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
252 | export SHELL |
---|
253 | # Unset more variables known to interfere with behavior of common tools. |
---|
254 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
255 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
256 | |
---|
257 | ## --------------------- ## |
---|
258 | ## M4sh Shell Functions. ## |
---|
259 | ## --------------------- ## |
---|
260 | # as_fn_unset VAR |
---|
261 | # --------------- |
---|
262 | # Portably unset VAR. |
---|
263 | as_fn_unset () |
---|
264 | { |
---|
265 | { eval $1=; unset $1;} |
---|
266 | } |
---|
267 | as_unset=as_fn_unset |
---|
268 | |
---|
269 | # as_fn_set_status STATUS |
---|
270 | # ----------------------- |
---|
271 | # Set $? to STATUS, without forking. |
---|
272 | as_fn_set_status () |
---|
273 | { |
---|
274 | return $1 |
---|
275 | } # as_fn_set_status |
---|
276 | |
---|
277 | # as_fn_exit STATUS |
---|
278 | # ----------------- |
---|
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
280 | as_fn_exit () |
---|
281 | { |
---|
282 | set +e |
---|
283 | as_fn_set_status $1 |
---|
284 | exit $1 |
---|
285 | } # as_fn_exit |
---|
286 | |
---|
287 | # as_fn_mkdir_p |
---|
288 | # ------------- |
---|
289 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
290 | as_fn_mkdir_p () |
---|
291 | { |
---|
292 | |
---|
293 | case $as_dir in #( |
---|
294 | -*) as_dir=./$as_dir;; |
---|
295 | esac |
---|
296 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
297 | as_dirs= |
---|
298 | while :; do |
---|
299 | case $as_dir in #( |
---|
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
301 | *) as_qdir=$as_dir;; |
---|
302 | esac |
---|
303 | as_dirs="'$as_qdir' $as_dirs" |
---|
304 | as_dir=`$as_dirname -- "$as_dir" || |
---|
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
307 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
309 | $as_echo X"$as_dir" | |
---|
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
311 | s//\1/ |
---|
312 | q |
---|
313 | } |
---|
314 | /^X\(\/\/\)[^/].*/{ |
---|
315 | s//\1/ |
---|
316 | q |
---|
317 | } |
---|
318 | /^X\(\/\/\)$/{ |
---|
319 | s//\1/ |
---|
320 | q |
---|
321 | } |
---|
322 | /^X\(\/\).*/{ |
---|
323 | s//\1/ |
---|
324 | q |
---|
325 | } |
---|
326 | s/.*/./; q'` |
---|
327 | test -d "$as_dir" && break |
---|
328 | done |
---|
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
331 | |
---|
332 | |
---|
333 | } # as_fn_mkdir_p |
---|
334 | # as_fn_append VAR VALUE |
---|
335 | # ---------------------- |
---|
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
337 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
338 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
339 | # implementations. |
---|
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
341 | eval 'as_fn_append () |
---|
342 | { |
---|
343 | eval $1+=\$2 |
---|
344 | }' |
---|
345 | else |
---|
346 | as_fn_append () |
---|
347 | { |
---|
348 | eval $1=\$$1\$2 |
---|
349 | } |
---|
350 | fi # as_fn_append |
---|
351 | |
---|
352 | # as_fn_arith ARG... |
---|
353 | # ------------------ |
---|
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
356 | # must be portable across $(()) and expr. |
---|
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
358 | eval 'as_fn_arith () |
---|
359 | { |
---|
360 | as_val=$(( $* )) |
---|
361 | }' |
---|
362 | else |
---|
363 | as_fn_arith () |
---|
364 | { |
---|
365 | as_val=`expr "$@" || test $? -eq 1` |
---|
366 | } |
---|
367 | fi # as_fn_arith |
---|
368 | |
---|
369 | |
---|
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
371 | # ---------------------------------------- |
---|
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
374 | # script with STATUS, using 1 if that was 0. |
---|
375 | as_fn_error () |
---|
376 | { |
---|
377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
378 | if test "$4"; then |
---|
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
381 | fi |
---|
382 | $as_echo "$as_me: error: $2" >&2 |
---|
383 | as_fn_exit $as_status |
---|
384 | } # as_fn_error |
---|
385 | |
---|
386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
388 | as_expr=expr |
---|
389 | else |
---|
390 | as_expr=false |
---|
391 | fi |
---|
392 | |
---|
393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
394 | as_basename=basename |
---|
395 | else |
---|
396 | as_basename=false |
---|
397 | fi |
---|
398 | |
---|
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
400 | as_dirname=dirname |
---|
401 | else |
---|
402 | as_dirname=false |
---|
403 | fi |
---|
404 | |
---|
405 | as_me=`$as_basename -- "$0" || |
---|
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
407 | X"$0" : 'X\(//\)$' \| \ |
---|
408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
409 | $as_echo X/"$0" | |
---|
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
411 | s//\1/ |
---|
412 | q |
---|
413 | } |
---|
414 | /^X\/\(\/\/\)$/{ |
---|
415 | s//\1/ |
---|
416 | q |
---|
417 | } |
---|
418 | /^X\/\(\/\).*/{ |
---|
419 | s//\1/ |
---|
420 | q |
---|
421 | } |
---|
422 | s/.*/./; q'` |
---|
423 | |
---|
424 | # Avoid depending upon Character Ranges. |
---|
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
428 | as_cr_digits='0123456789' |
---|
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
430 | |
---|
431 | |
---|
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
437 | sed -n ' |
---|
438 | p |
---|
439 | /[$]LINENO/= |
---|
440 | ' <$as_myself | |
---|
441 | sed ' |
---|
442 | s/[$]LINENO.*/&-/ |
---|
443 | t lineno |
---|
444 | b |
---|
445 | :lineno |
---|
446 | N |
---|
447 | :loop |
---|
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
449 | t loop |
---|
450 | s/-\n.*// |
---|
451 | ' >$as_me.lineno && |
---|
452 | chmod +x "$as_me.lineno" || |
---|
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
454 | |
---|
455 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
456 | # (the dirname of $[0] is not the place where we might find the |
---|
457 | # original and so on. Autoconf is especially sensitive to this). |
---|
458 | . "./$as_me.lineno" |
---|
459 | # Exit status is that of the last command. |
---|
460 | exit |
---|
461 | } |
---|
462 | |
---|
463 | ECHO_C= ECHO_N= ECHO_T= |
---|
464 | case `echo -n x` in #((((( |
---|
465 | -n*) |
---|
466 | case `echo 'xy\c'` in |
---|
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
468 | xy) ECHO_C='\c';; |
---|
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
470 | ECHO_T=' ';; |
---|
471 | esac;; |
---|
472 | *) |
---|
473 | ECHO_N='-n';; |
---|
474 | esac |
---|
475 | |
---|
476 | rm -f conf$$ conf$$.exe conf$$.file |
---|
477 | if test -d conf$$.dir; then |
---|
478 | rm -f conf$$.dir/conf$$.file |
---|
479 | else |
---|
480 | rm -f conf$$.dir |
---|
481 | mkdir conf$$.dir 2>/dev/null |
---|
482 | fi |
---|
483 | if (echo >conf$$.file) 2>/dev/null; then |
---|
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
485 | as_ln_s='ln -s' |
---|
486 | # ... but there are two gotchas: |
---|
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
489 | # In both cases, we have to default to `cp -p'. |
---|
490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
491 | as_ln_s='cp -p' |
---|
492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
493 | as_ln_s=ln |
---|
494 | else |
---|
495 | as_ln_s='cp -p' |
---|
496 | fi |
---|
497 | else |
---|
498 | as_ln_s='cp -p' |
---|
499 | fi |
---|
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
501 | rmdir conf$$.dir 2>/dev/null |
---|
502 | |
---|
503 | if mkdir -p . 2>/dev/null; then |
---|
504 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
505 | else |
---|
506 | test -d ./-p && rmdir ./-p |
---|
507 | as_mkdir_p=false |
---|
508 | fi |
---|
509 | |
---|
510 | if test -x / >/dev/null 2>&1; then |
---|
511 | as_test_x='test -x' |
---|
512 | else |
---|
513 | if ls -dL / >/dev/null 2>&1; then |
---|
514 | as_ls_L_option=L |
---|
515 | else |
---|
516 | as_ls_L_option= |
---|
517 | fi |
---|
518 | as_test_x=' |
---|
519 | eval sh -c '\'' |
---|
520 | if test -d "$1"; then |
---|
521 | test -d "$1/."; |
---|
522 | else |
---|
523 | case $1 in #( |
---|
524 | -*)set "./$1";; |
---|
525 | esac; |
---|
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
527 | ???[sx]*):;;*)false;;esac;fi |
---|
528 | '\'' sh |
---|
529 | ' |
---|
530 | fi |
---|
531 | as_executable_p=$as_test_x |
---|
532 | |
---|
533 | # Sed expression to map a string onto a valid CPP name. |
---|
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
535 | |
---|
536 | # Sed expression to map a string onto a valid variable name. |
---|
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
538 | |
---|
539 | |
---|
540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
541 | exec 6>&1 |
---|
542 | |
---|
543 | # Name of the host. |
---|
544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
545 | # so uname gets run too. |
---|
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
547 | |
---|
548 | # |
---|
549 | # Initializations. |
---|
550 | # |
---|
551 | ac_default_prefix=/usr/local |
---|
552 | ac_clean_files= |
---|
553 | ac_config_libobj_dir=. |
---|
554 | LIBOBJS= |
---|
555 | cross_compiling=no |
---|
556 | subdirs= |
---|
557 | MFLAGS= |
---|
558 | MAKEFLAGS= |
---|
559 | |
---|
560 | # Identity of this package. |
---|
561 | PACKAGE_NAME='cfa-cc' |
---|
562 | PACKAGE_TARNAME='cfa-cc' |
---|
563 | PACKAGE_VERSION='1.0' |
---|
564 | PACKAGE_STRING='cfa-cc 1.0' |
---|
565 | PACKAGE_BUGREPORT='cforall@plg.uwaterloo.ca' |
---|
566 | PACKAGE_URL='' |
---|
567 | |
---|
568 | ac_unique_file="translator/main.cc" |
---|
569 | # Factoring default headers for most tests. |
---|
570 | ac_includes_default="\ |
---|
571 | #include <stdio.h> |
---|
572 | #ifdef HAVE_SYS_TYPES_H |
---|
573 | # include <sys/types.h> |
---|
574 | #endif |
---|
575 | #ifdef HAVE_SYS_STAT_H |
---|
576 | # include <sys/stat.h> |
---|
577 | #endif |
---|
578 | #ifdef STDC_HEADERS |
---|
579 | # include <stdlib.h> |
---|
580 | # include <stddef.h> |
---|
581 | #else |
---|
582 | # ifdef HAVE_STDLIB_H |
---|
583 | # include <stdlib.h> |
---|
584 | # endif |
---|
585 | #endif |
---|
586 | #ifdef HAVE_STRING_H |
---|
587 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
588 | # include <memory.h> |
---|
589 | # endif |
---|
590 | # include <string.h> |
---|
591 | #endif |
---|
592 | #ifdef HAVE_STRINGS_H |
---|
593 | # include <strings.h> |
---|
594 | #endif |
---|
595 | #ifdef HAVE_INTTYPES_H |
---|
596 | # include <inttypes.h> |
---|
597 | #endif |
---|
598 | #ifdef HAVE_STDINT_H |
---|
599 | # include <stdint.h> |
---|
600 | #endif |
---|
601 | #ifdef HAVE_UNISTD_H |
---|
602 | # include <unistd.h> |
---|
603 | #endif" |
---|
604 | |
---|
605 | ac_subst_vars='am__EXEEXT_FALSE |
---|
606 | am__EXEEXT_TRUE |
---|
607 | LTLIBOBJS |
---|
608 | LIBOBJS |
---|
609 | CFA_LIBDIR |
---|
610 | CFA_BINDIR |
---|
611 | CFA_INCDIR |
---|
612 | CFA_PREFIX |
---|
613 | CPP_PATH |
---|
614 | BACKEND_CC |
---|
615 | GCC_PATH |
---|
616 | preludedir |
---|
617 | EGREP |
---|
618 | GREP |
---|
619 | CPP |
---|
620 | LEXLIB |
---|
621 | LEX_OUTPUT_ROOT |
---|
622 | LEX |
---|
623 | am__fastdepCC_FALSE |
---|
624 | am__fastdepCC_TRUE |
---|
625 | CCDEPMODE |
---|
626 | ac_ct_CC |
---|
627 | CFLAGS |
---|
628 | CC |
---|
629 | am__fastdepCXX_FALSE |
---|
630 | am__fastdepCXX_TRUE |
---|
631 | CXXDEPMODE |
---|
632 | am__nodep |
---|
633 | AMDEPBACKSLASH |
---|
634 | AMDEP_FALSE |
---|
635 | AMDEP_TRUE |
---|
636 | am__quote |
---|
637 | am__include |
---|
638 | DEPDIR |
---|
639 | OBJEXT |
---|
640 | EXEEXT |
---|
641 | ac_ct_CXX |
---|
642 | CPPFLAGS |
---|
643 | LDFLAGS |
---|
644 | CXXFLAGS |
---|
645 | CXX |
---|
646 | YFLAGS |
---|
647 | YACC |
---|
648 | am__untar |
---|
649 | am__tar |
---|
650 | AMTAR |
---|
651 | am__leading_dot |
---|
652 | SET_MAKE |
---|
653 | AWK |
---|
654 | mkdir_p |
---|
655 | MKDIR_P |
---|
656 | INSTALL_STRIP_PROGRAM |
---|
657 | STRIP |
---|
658 | install_sh |
---|
659 | MAKEINFO |
---|
660 | AUTOHEADER |
---|
661 | AUTOMAKE |
---|
662 | AUTOCONF |
---|
663 | ACLOCAL |
---|
664 | VERSION |
---|
665 | PACKAGE |
---|
666 | CYGPATH_W |
---|
667 | am__isrc |
---|
668 | INSTALL_DATA |
---|
669 | INSTALL_SCRIPT |
---|
670 | INSTALL_PROGRAM |
---|
671 | target_alias |
---|
672 | host_alias |
---|
673 | build_alias |
---|
674 | LIBS |
---|
675 | ECHO_T |
---|
676 | ECHO_N |
---|
677 | ECHO_C |
---|
678 | DEFS |
---|
679 | mandir |
---|
680 | localedir |
---|
681 | libdir |
---|
682 | psdir |
---|
683 | pdfdir |
---|
684 | dvidir |
---|
685 | htmldir |
---|
686 | infodir |
---|
687 | docdir |
---|
688 | oldincludedir |
---|
689 | includedir |
---|
690 | localstatedir |
---|
691 | sharedstatedir |
---|
692 | sysconfdir |
---|
693 | datadir |
---|
694 | datarootdir |
---|
695 | libexecdir |
---|
696 | sbindir |
---|
697 | bindir |
---|
698 | program_transform_name |
---|
699 | prefix |
---|
700 | exec_prefix |
---|
701 | PACKAGE_URL |
---|
702 | PACKAGE_BUGREPORT |
---|
703 | PACKAGE_STRING |
---|
704 | PACKAGE_VERSION |
---|
705 | PACKAGE_TARNAME |
---|
706 | PACKAGE_NAME |
---|
707 | PATH_SEPARATOR |
---|
708 | SHELL' |
---|
709 | ac_subst_files='' |
---|
710 | ac_user_opts=' |
---|
711 | enable_option_checking |
---|
712 | enable_dependency_tracking |
---|
713 | with_preludedir |
---|
714 | with_backend_compiler |
---|
715 | ' |
---|
716 | ac_precious_vars='build_alias |
---|
717 | host_alias |
---|
718 | target_alias |
---|
719 | YACC |
---|
720 | YFLAGS |
---|
721 | CXX |
---|
722 | CXXFLAGS |
---|
723 | LDFLAGS |
---|
724 | LIBS |
---|
725 | CPPFLAGS |
---|
726 | CCC |
---|
727 | CC |
---|
728 | CFLAGS |
---|
729 | CPP' |
---|
730 | |
---|
731 | |
---|
732 | # Initialize some variables set by options. |
---|
733 | ac_init_help= |
---|
734 | ac_init_version=false |
---|
735 | ac_unrecognized_opts= |
---|
736 | ac_unrecognized_sep= |
---|
737 | # The variables have the same names as the options, with |
---|
738 | # dashes changed to underlines. |
---|
739 | cache_file=/dev/null |
---|
740 | exec_prefix=NONE |
---|
741 | no_create= |
---|
742 | no_recursion= |
---|
743 | prefix=NONE |
---|
744 | program_prefix=NONE |
---|
745 | program_suffix=NONE |
---|
746 | program_transform_name=s,x,x, |
---|
747 | silent= |
---|
748 | site= |
---|
749 | srcdir= |
---|
750 | verbose= |
---|
751 | x_includes=NONE |
---|
752 | x_libraries=NONE |
---|
753 | |
---|
754 | # Installation directory options. |
---|
755 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
756 | # and all the variables that are supposed to be based on exec_prefix |
---|
757 | # by default will actually change. |
---|
758 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
759 | # (The list follows the same order as the GNU Coding Standards.) |
---|
760 | bindir='${exec_prefix}/bin' |
---|
761 | sbindir='${exec_prefix}/sbin' |
---|
762 | libexecdir='${exec_prefix}/libexec' |
---|
763 | datarootdir='${prefix}/share' |
---|
764 | datadir='${datarootdir}' |
---|
765 | sysconfdir='${prefix}/etc' |
---|
766 | sharedstatedir='${prefix}/com' |
---|
767 | localstatedir='${prefix}/var' |
---|
768 | includedir='${prefix}/include' |
---|
769 | oldincludedir='/usr/include' |
---|
770 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
771 | infodir='${datarootdir}/info' |
---|
772 | htmldir='${docdir}' |
---|
773 | dvidir='${docdir}' |
---|
774 | pdfdir='${docdir}' |
---|
775 | psdir='${docdir}' |
---|
776 | libdir='${exec_prefix}/lib' |
---|
777 | localedir='${datarootdir}/locale' |
---|
778 | mandir='${datarootdir}/man' |
---|
779 | |
---|
780 | ac_prev= |
---|
781 | ac_dashdash= |
---|
782 | for ac_option |
---|
783 | do |
---|
784 | # If the previous option needs an argument, assign it. |
---|
785 | if test -n "$ac_prev"; then |
---|
786 | eval $ac_prev=\$ac_option |
---|
787 | ac_prev= |
---|
788 | continue |
---|
789 | fi |
---|
790 | |
---|
791 | case $ac_option in |
---|
792 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
793 | *=) ac_optarg= ;; |
---|
794 | *) ac_optarg=yes ;; |
---|
795 | esac |
---|
796 | |
---|
797 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
798 | |
---|
799 | case $ac_dashdash$ac_option in |
---|
800 | --) |
---|
801 | ac_dashdash=yes ;; |
---|
802 | |
---|
803 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
804 | ac_prev=bindir ;; |
---|
805 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
806 | bindir=$ac_optarg ;; |
---|
807 | |
---|
808 | -build | --build | --buil | --bui | --bu) |
---|
809 | ac_prev=build_alias ;; |
---|
810 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
811 | build_alias=$ac_optarg ;; |
---|
812 | |
---|
813 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
814 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
815 | ac_prev=cache_file ;; |
---|
816 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
817 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
818 | cache_file=$ac_optarg ;; |
---|
819 | |
---|
820 | --config-cache | -C) |
---|
821 | cache_file=config.cache ;; |
---|
822 | |
---|
823 | -datadir | --datadir | --datadi | --datad) |
---|
824 | ac_prev=datadir ;; |
---|
825 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
826 | datadir=$ac_optarg ;; |
---|
827 | |
---|
828 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
829 | | --dataroo | --dataro | --datar) |
---|
830 | ac_prev=datarootdir ;; |
---|
831 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
832 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
833 | datarootdir=$ac_optarg ;; |
---|
834 | |
---|
835 | -disable-* | --disable-*) |
---|
836 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
837 | # Reject names that are not valid shell variable names. |
---|
838 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
839 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
840 | ac_useropt_orig=$ac_useropt |
---|
841 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
842 | case $ac_user_opts in |
---|
843 | *" |
---|
844 | "enable_$ac_useropt" |
---|
845 | "*) ;; |
---|
846 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
847 | ac_unrecognized_sep=', ';; |
---|
848 | esac |
---|
849 | eval enable_$ac_useropt=no ;; |
---|
850 | |
---|
851 | -docdir | --docdir | --docdi | --doc | --do) |
---|
852 | ac_prev=docdir ;; |
---|
853 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
854 | docdir=$ac_optarg ;; |
---|
855 | |
---|
856 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
857 | ac_prev=dvidir ;; |
---|
858 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
859 | dvidir=$ac_optarg ;; |
---|
860 | |
---|
861 | -enable-* | --enable-*) |
---|
862 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
863 | # Reject names that are not valid shell variable names. |
---|
864 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
865 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
866 | ac_useropt_orig=$ac_useropt |
---|
867 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
868 | case $ac_user_opts in |
---|
869 | *" |
---|
870 | "enable_$ac_useropt" |
---|
871 | "*) ;; |
---|
872 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
873 | ac_unrecognized_sep=', ';; |
---|
874 | esac |
---|
875 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
876 | |
---|
877 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
878 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
879 | | --exec | --exe | --ex) |
---|
880 | ac_prev=exec_prefix ;; |
---|
881 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
882 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
883 | | --exec=* | --exe=* | --ex=*) |
---|
884 | exec_prefix=$ac_optarg ;; |
---|
885 | |
---|
886 | -gas | --gas | --ga | --g) |
---|
887 | # Obsolete; use --with-gas. |
---|
888 | with_gas=yes ;; |
---|
889 | |
---|
890 | -help | --help | --hel | --he | -h) |
---|
891 | ac_init_help=long ;; |
---|
892 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
893 | ac_init_help=recursive ;; |
---|
894 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
895 | ac_init_help=short ;; |
---|
896 | |
---|
897 | -host | --host | --hos | --ho) |
---|
898 | ac_prev=host_alias ;; |
---|
899 | -host=* | --host=* | --hos=* | --ho=*) |
---|
900 | host_alias=$ac_optarg ;; |
---|
901 | |
---|
902 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
903 | ac_prev=htmldir ;; |
---|
904 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
905 | | --ht=*) |
---|
906 | htmldir=$ac_optarg ;; |
---|
907 | |
---|
908 | -includedir | --includedir | --includedi | --included | --include \ |
---|
909 | | --includ | --inclu | --incl | --inc) |
---|
910 | ac_prev=includedir ;; |
---|
911 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
912 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
913 | includedir=$ac_optarg ;; |
---|
914 | |
---|
915 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
916 | ac_prev=infodir ;; |
---|
917 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
918 | infodir=$ac_optarg ;; |
---|
919 | |
---|
920 | -libdir | --libdir | --libdi | --libd) |
---|
921 | ac_prev=libdir ;; |
---|
922 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
923 | libdir=$ac_optarg ;; |
---|
924 | |
---|
925 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
926 | | --libexe | --libex | --libe) |
---|
927 | ac_prev=libexecdir ;; |
---|
928 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
929 | | --libexe=* | --libex=* | --libe=*) |
---|
930 | libexecdir=$ac_optarg ;; |
---|
931 | |
---|
932 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
933 | ac_prev=localedir ;; |
---|
934 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
935 | localedir=$ac_optarg ;; |
---|
936 | |
---|
937 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
938 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
939 | ac_prev=localstatedir ;; |
---|
940 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
941 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
942 | localstatedir=$ac_optarg ;; |
---|
943 | |
---|
944 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
945 | ac_prev=mandir ;; |
---|
946 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
947 | mandir=$ac_optarg ;; |
---|
948 | |
---|
949 | -nfp | --nfp | --nf) |
---|
950 | # Obsolete; use --without-fp. |
---|
951 | with_fp=no ;; |
---|
952 | |
---|
953 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
954 | | --no-cr | --no-c | -n) |
---|
955 | no_create=yes ;; |
---|
956 | |
---|
957 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
958 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
959 | no_recursion=yes ;; |
---|
960 | |
---|
961 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
962 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
963 | | --oldin | --oldi | --old | --ol | --o) |
---|
964 | ac_prev=oldincludedir ;; |
---|
965 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
966 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
967 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
968 | oldincludedir=$ac_optarg ;; |
---|
969 | |
---|
970 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
971 | ac_prev=prefix ;; |
---|
972 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
973 | prefix=$ac_optarg ;; |
---|
974 | |
---|
975 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
976 | | --program-pre | --program-pr | --program-p) |
---|
977 | ac_prev=program_prefix ;; |
---|
978 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
979 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
980 | program_prefix=$ac_optarg ;; |
---|
981 | |
---|
982 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
983 | | --program-suf | --program-su | --program-s) |
---|
984 | ac_prev=program_suffix ;; |
---|
985 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
986 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
987 | program_suffix=$ac_optarg ;; |
---|
988 | |
---|
989 | -program-transform-name | --program-transform-name \ |
---|
990 | | --program-transform-nam | --program-transform-na \ |
---|
991 | | --program-transform-n | --program-transform- \ |
---|
992 | | --program-transform | --program-transfor \ |
---|
993 | | --program-transfo | --program-transf \ |
---|
994 | | --program-trans | --program-tran \ |
---|
995 | | --progr-tra | --program-tr | --program-t) |
---|
996 | ac_prev=program_transform_name ;; |
---|
997 | -program-transform-name=* | --program-transform-name=* \ |
---|
998 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
999 | | --program-transform-n=* | --program-transform-=* \ |
---|
1000 | | --program-transform=* | --program-transfor=* \ |
---|
1001 | | --program-transfo=* | --program-transf=* \ |
---|
1002 | | --program-trans=* | --program-tran=* \ |
---|
1003 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1004 | program_transform_name=$ac_optarg ;; |
---|
1005 | |
---|
1006 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1007 | ac_prev=pdfdir ;; |
---|
1008 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1009 | pdfdir=$ac_optarg ;; |
---|
1010 | |
---|
1011 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1012 | ac_prev=psdir ;; |
---|
1013 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1014 | psdir=$ac_optarg ;; |
---|
1015 | |
---|
1016 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1017 | | -silent | --silent | --silen | --sile | --sil) |
---|
1018 | silent=yes ;; |
---|
1019 | |
---|
1020 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1021 | ac_prev=sbindir ;; |
---|
1022 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1023 | | --sbi=* | --sb=*) |
---|
1024 | sbindir=$ac_optarg ;; |
---|
1025 | |
---|
1026 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1027 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1028 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1029 | | --sha | --sh) |
---|
1030 | ac_prev=sharedstatedir ;; |
---|
1031 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1032 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1033 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1034 | | --sha=* | --sh=*) |
---|
1035 | sharedstatedir=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -site | --site | --sit) |
---|
1038 | ac_prev=site ;; |
---|
1039 | -site=* | --site=* | --sit=*) |
---|
1040 | site=$ac_optarg ;; |
---|
1041 | |
---|
1042 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1043 | ac_prev=srcdir ;; |
---|
1044 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1045 | srcdir=$ac_optarg ;; |
---|
1046 | |
---|
1047 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1048 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1049 | ac_prev=sysconfdir ;; |
---|
1050 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1051 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1052 | sysconfdir=$ac_optarg ;; |
---|
1053 | |
---|
1054 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1055 | ac_prev=target_alias ;; |
---|
1056 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1057 | target_alias=$ac_optarg ;; |
---|
1058 | |
---|
1059 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1060 | verbose=yes ;; |
---|
1061 | |
---|
1062 | -version | --version | --versio | --versi | --vers | -V) |
---|
1063 | ac_init_version=: ;; |
---|
1064 | |
---|
1065 | -with-* | --with-*) |
---|
1066 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1067 | # Reject names that are not valid shell variable names. |
---|
1068 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1069 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1070 | ac_useropt_orig=$ac_useropt |
---|
1071 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1072 | case $ac_user_opts in |
---|
1073 | *" |
---|
1074 | "with_$ac_useropt" |
---|
1075 | "*) ;; |
---|
1076 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1077 | ac_unrecognized_sep=', ';; |
---|
1078 | esac |
---|
1079 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1080 | |
---|
1081 | -without-* | --without-*) |
---|
1082 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1083 | # Reject names that are not valid shell variable names. |
---|
1084 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1085 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1086 | ac_useropt_orig=$ac_useropt |
---|
1087 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1088 | case $ac_user_opts in |
---|
1089 | *" |
---|
1090 | "with_$ac_useropt" |
---|
1091 | "*) ;; |
---|
1092 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1093 | ac_unrecognized_sep=', ';; |
---|
1094 | esac |
---|
1095 | eval with_$ac_useropt=no ;; |
---|
1096 | |
---|
1097 | --x) |
---|
1098 | # Obsolete; use --with-x. |
---|
1099 | with_x=yes ;; |
---|
1100 | |
---|
1101 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1102 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1103 | ac_prev=x_includes ;; |
---|
1104 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1105 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1106 | x_includes=$ac_optarg ;; |
---|
1107 | |
---|
1108 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1109 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1110 | ac_prev=x_libraries ;; |
---|
1111 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1112 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1113 | x_libraries=$ac_optarg ;; |
---|
1114 | |
---|
1115 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1116 | Try \`$0 --help' for more information" |
---|
1117 | ;; |
---|
1118 | |
---|
1119 | *=*) |
---|
1120 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1121 | # Reject names that are not valid shell variable names. |
---|
1122 | case $ac_envvar in #( |
---|
1123 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1124 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1125 | esac |
---|
1126 | eval $ac_envvar=\$ac_optarg |
---|
1127 | export $ac_envvar ;; |
---|
1128 | |
---|
1129 | *) |
---|
1130 | # FIXME: should be removed in autoconf 3.0. |
---|
1131 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1132 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1133 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1134 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1135 | ;; |
---|
1136 | |
---|
1137 | esac |
---|
1138 | done |
---|
1139 | |
---|
1140 | if test -n "$ac_prev"; then |
---|
1141 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1142 | as_fn_error $? "missing argument to $ac_option" |
---|
1143 | fi |
---|
1144 | |
---|
1145 | if test -n "$ac_unrecognized_opts"; then |
---|
1146 | case $enable_option_checking in |
---|
1147 | no) ;; |
---|
1148 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1149 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1150 | esac |
---|
1151 | fi |
---|
1152 | |
---|
1153 | # Check all directory arguments for consistency. |
---|
1154 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1155 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1156 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1157 | libdir localedir mandir |
---|
1158 | do |
---|
1159 | eval ac_val=\$$ac_var |
---|
1160 | # Remove trailing slashes. |
---|
1161 | case $ac_val in |
---|
1162 | */ ) |
---|
1163 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1164 | eval $ac_var=\$ac_val;; |
---|
1165 | esac |
---|
1166 | # Be sure to have absolute directory names. |
---|
1167 | case $ac_val in |
---|
1168 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1169 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1170 | esac |
---|
1171 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1172 | done |
---|
1173 | |
---|
1174 | # There might be people who depend on the old broken behavior: `$host' |
---|
1175 | # used to hold the argument of --host etc. |
---|
1176 | # FIXME: To remove some day. |
---|
1177 | build=$build_alias |
---|
1178 | host=$host_alias |
---|
1179 | target=$target_alias |
---|
1180 | |
---|
1181 | # FIXME: To remove some day. |
---|
1182 | if test "x$host_alias" != x; then |
---|
1183 | if test "x$build_alias" = x; then |
---|
1184 | cross_compiling=maybe |
---|
1185 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1186 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1187 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1188 | cross_compiling=yes |
---|
1189 | fi |
---|
1190 | fi |
---|
1191 | |
---|
1192 | ac_tool_prefix= |
---|
1193 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1194 | |
---|
1195 | test "$silent" = yes && exec 6>/dev/null |
---|
1196 | |
---|
1197 | |
---|
1198 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1199 | ac_ls_di=`ls -di .` && |
---|
1200 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1201 | as_fn_error $? "working directory cannot be determined" |
---|
1202 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1203 | as_fn_error $? "pwd does not report name of working directory" |
---|
1204 | |
---|
1205 | |
---|
1206 | # Find the source files, if location was not specified. |
---|
1207 | if test -z "$srcdir"; then |
---|
1208 | ac_srcdir_defaulted=yes |
---|
1209 | # Try the directory containing this script, then the parent directory. |
---|
1210 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1211 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1212 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1213 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1214 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1215 | $as_echo X"$as_myself" | |
---|
1216 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1217 | s//\1/ |
---|
1218 | q |
---|
1219 | } |
---|
1220 | /^X\(\/\/\)[^/].*/{ |
---|
1221 | s//\1/ |
---|
1222 | q |
---|
1223 | } |
---|
1224 | /^X\(\/\/\)$/{ |
---|
1225 | s//\1/ |
---|
1226 | q |
---|
1227 | } |
---|
1228 | /^X\(\/\).*/{ |
---|
1229 | s//\1/ |
---|
1230 | q |
---|
1231 | } |
---|
1232 | s/.*/./; q'` |
---|
1233 | srcdir=$ac_confdir |
---|
1234 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1235 | srcdir=.. |
---|
1236 | fi |
---|
1237 | else |
---|
1238 | ac_srcdir_defaulted=no |
---|
1239 | fi |
---|
1240 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1241 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1242 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1243 | fi |
---|
1244 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1245 | ac_abs_confdir=`( |
---|
1246 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1247 | pwd)` |
---|
1248 | # When building in place, set srcdir=. |
---|
1249 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1250 | srcdir=. |
---|
1251 | fi |
---|
1252 | # Remove unnecessary trailing slashes from srcdir. |
---|
1253 | # Double slashes in file names in object file debugging info |
---|
1254 | # mess up M-x gdb in Emacs. |
---|
1255 | case $srcdir in |
---|
1256 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1257 | esac |
---|
1258 | for ac_var in $ac_precious_vars; do |
---|
1259 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1260 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1261 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1262 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1263 | done |
---|
1264 | |
---|
1265 | # |
---|
1266 | # Report the --help message. |
---|
1267 | # |
---|
1268 | if test "$ac_init_help" = "long"; then |
---|
1269 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1270 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1271 | cat <<_ACEOF |
---|
1272 | \`configure' configures cfa-cc 1.0 to adapt to many kinds of systems. |
---|
1273 | |
---|
1274 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1275 | |
---|
1276 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1277 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1278 | |
---|
1279 | Defaults for the options are specified in brackets. |
---|
1280 | |
---|
1281 | Configuration: |
---|
1282 | -h, --help display this help and exit |
---|
1283 | --help=short display options specific to this package |
---|
1284 | --help=recursive display the short help of all the included packages |
---|
1285 | -V, --version display version information and exit |
---|
1286 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1287 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1288 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1289 | -n, --no-create do not create output files |
---|
1290 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1291 | |
---|
1292 | Installation directories: |
---|
1293 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1294 | [$ac_default_prefix] |
---|
1295 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1296 | [PREFIX] |
---|
1297 | |
---|
1298 | By default, \`make install' will install all the files in |
---|
1299 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1300 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1301 | for instance \`--prefix=\$HOME'. |
---|
1302 | |
---|
1303 | For better control, use the options below. |
---|
1304 | |
---|
1305 | Fine tuning of the installation directories: |
---|
1306 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1307 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1308 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1309 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1310 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1311 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1312 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1313 | --includedir=DIR C header files [PREFIX/include] |
---|
1314 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1315 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1316 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1317 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1318 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1319 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1320 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1321 | --htmldir=DIR html documentation [DOCDIR] |
---|
1322 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1323 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1324 | --psdir=DIR ps documentation [DOCDIR] |
---|
1325 | _ACEOF |
---|
1326 | |
---|
1327 | cat <<\_ACEOF |
---|
1328 | |
---|
1329 | Program names: |
---|
1330 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1331 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1332 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1333 | _ACEOF |
---|
1334 | fi |
---|
1335 | |
---|
1336 | if test -n "$ac_init_help"; then |
---|
1337 | case $ac_init_help in |
---|
1338 | short | recursive ) echo "Configuration of cfa-cc 1.0:";; |
---|
1339 | esac |
---|
1340 | cat <<\_ACEOF |
---|
1341 | |
---|
1342 | Optional Features: |
---|
1343 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1344 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1345 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1346 | --disable-dependency-tracking speeds up one-time build |
---|
1347 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1348 | |
---|
1349 | Optional Packages: |
---|
1350 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1351 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1352 | --with-preludedir=DIR DIR that contains prelude.cf and other necessary files |
---|
1353 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) |
---|
1354 | |
---|
1355 | Some influential environment variables: |
---|
1356 | YACC The `Yet Another Compiler Compiler' implementation to use. |
---|
1357 | Defaults to the first program found out of: `bison -y', `byacc', |
---|
1358 | `yacc'. |
---|
1359 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1360 | This script will default YFLAGS to the empty string to avoid a |
---|
1361 | default value of `-d' given by some make applications. |
---|
1362 | CXX C++ compiler command |
---|
1363 | CXXFLAGS C++ compiler flags |
---|
1364 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1365 | nonstandard directory <lib dir> |
---|
1366 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1367 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1368 | you have headers in a nonstandard directory <include dir> |
---|
1369 | CC C compiler command |
---|
1370 | CFLAGS C compiler flags |
---|
1371 | CPP C preprocessor |
---|
1372 | |
---|
1373 | Use these variables to override the choices made by `configure' or to help |
---|
1374 | it to find libraries and programs with nonstandard names/locations. |
---|
1375 | |
---|
1376 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1377 | _ACEOF |
---|
1378 | ac_status=$? |
---|
1379 | fi |
---|
1380 | |
---|
1381 | if test "$ac_init_help" = "recursive"; then |
---|
1382 | # If there are subdirs, report their specific --help. |
---|
1383 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1384 | test -d "$ac_dir" || |
---|
1385 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1386 | continue |
---|
1387 | ac_builddir=. |
---|
1388 | |
---|
1389 | case "$ac_dir" in |
---|
1390 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1391 | *) |
---|
1392 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1393 | # A ".." for each directory in $ac_dir_suffix. |
---|
1394 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1395 | case $ac_top_builddir_sub in |
---|
1396 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1397 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1398 | esac ;; |
---|
1399 | esac |
---|
1400 | ac_abs_top_builddir=$ac_pwd |
---|
1401 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1402 | # for backward compatibility: |
---|
1403 | ac_top_builddir=$ac_top_build_prefix |
---|
1404 | |
---|
1405 | case $srcdir in |
---|
1406 | .) # We are building in place. |
---|
1407 | ac_srcdir=. |
---|
1408 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1409 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1410 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1411 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1412 | ac_top_srcdir=$srcdir |
---|
1413 | ac_abs_top_srcdir=$srcdir ;; |
---|
1414 | *) # Relative name. |
---|
1415 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1416 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1417 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1418 | esac |
---|
1419 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1420 | |
---|
1421 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1422 | # Check for guested configure. |
---|
1423 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1424 | echo && |
---|
1425 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1426 | elif test -f "$ac_srcdir/configure"; then |
---|
1427 | echo && |
---|
1428 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1429 | else |
---|
1430 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1431 | fi || ac_status=$? |
---|
1432 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1433 | done |
---|
1434 | fi |
---|
1435 | |
---|
1436 | test -n "$ac_init_help" && exit $ac_status |
---|
1437 | if $ac_init_version; then |
---|
1438 | cat <<\_ACEOF |
---|
1439 | cfa-cc configure 1.0 |
---|
1440 | generated by GNU Autoconf 2.68 |
---|
1441 | |
---|
1442 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1443 | This configure script is free software; the Free Software Foundation |
---|
1444 | gives unlimited permission to copy, distribute and modify it. |
---|
1445 | _ACEOF |
---|
1446 | exit |
---|
1447 | fi |
---|
1448 | |
---|
1449 | ## ------------------------ ## |
---|
1450 | ## Autoconf initialization. ## |
---|
1451 | ## ------------------------ ## |
---|
1452 | |
---|
1453 | # ac_fn_cxx_try_compile LINENO |
---|
1454 | # ---------------------------- |
---|
1455 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1456 | ac_fn_cxx_try_compile () |
---|
1457 | { |
---|
1458 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1459 | rm -f conftest.$ac_objext |
---|
1460 | if { { ac_try="$ac_compile" |
---|
1461 | case "(($ac_try" in |
---|
1462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1463 | *) ac_try_echo=$ac_try;; |
---|
1464 | esac |
---|
1465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1466 | $as_echo "$ac_try_echo"; } >&5 |
---|
1467 | (eval "$ac_compile") 2>conftest.err |
---|
1468 | ac_status=$? |
---|
1469 | if test -s conftest.err; then |
---|
1470 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1471 | cat conftest.er1 >&5 |
---|
1472 | mv -f conftest.er1 conftest.err |
---|
1473 | fi |
---|
1474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1475 | test $ac_status = 0; } && { |
---|
1476 | test -z "$ac_cxx_werror_flag" || |
---|
1477 | test ! -s conftest.err |
---|
1478 | } && test -s conftest.$ac_objext; then : |
---|
1479 | ac_retval=0 |
---|
1480 | else |
---|
1481 | $as_echo "$as_me: failed program was:" >&5 |
---|
1482 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1483 | |
---|
1484 | ac_retval=1 |
---|
1485 | fi |
---|
1486 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1487 | as_fn_set_status $ac_retval |
---|
1488 | |
---|
1489 | } # ac_fn_cxx_try_compile |
---|
1490 | |
---|
1491 | # ac_fn_c_try_compile LINENO |
---|
1492 | # -------------------------- |
---|
1493 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1494 | ac_fn_c_try_compile () |
---|
1495 | { |
---|
1496 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1497 | rm -f conftest.$ac_objext |
---|
1498 | if { { ac_try="$ac_compile" |
---|
1499 | case "(($ac_try" in |
---|
1500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1501 | *) ac_try_echo=$ac_try;; |
---|
1502 | esac |
---|
1503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1504 | $as_echo "$ac_try_echo"; } >&5 |
---|
1505 | (eval "$ac_compile") 2>conftest.err |
---|
1506 | ac_status=$? |
---|
1507 | if test -s conftest.err; then |
---|
1508 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1509 | cat conftest.er1 >&5 |
---|
1510 | mv -f conftest.er1 conftest.err |
---|
1511 | fi |
---|
1512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1513 | test $ac_status = 0; } && { |
---|
1514 | test -z "$ac_c_werror_flag" || |
---|
1515 | test ! -s conftest.err |
---|
1516 | } && test -s conftest.$ac_objext; then : |
---|
1517 | ac_retval=0 |
---|
1518 | else |
---|
1519 | $as_echo "$as_me: failed program was:" >&5 |
---|
1520 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1521 | |
---|
1522 | ac_retval=1 |
---|
1523 | fi |
---|
1524 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1525 | as_fn_set_status $ac_retval |
---|
1526 | |
---|
1527 | } # ac_fn_c_try_compile |
---|
1528 | |
---|
1529 | # ac_fn_c_try_link LINENO |
---|
1530 | # ----------------------- |
---|
1531 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1532 | ac_fn_c_try_link () |
---|
1533 | { |
---|
1534 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1535 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1536 | if { { ac_try="$ac_link" |
---|
1537 | case "(($ac_try" in |
---|
1538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1539 | *) ac_try_echo=$ac_try;; |
---|
1540 | esac |
---|
1541 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1542 | $as_echo "$ac_try_echo"; } >&5 |
---|
1543 | (eval "$ac_link") 2>conftest.err |
---|
1544 | ac_status=$? |
---|
1545 | if test -s conftest.err; then |
---|
1546 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1547 | cat conftest.er1 >&5 |
---|
1548 | mv -f conftest.er1 conftest.err |
---|
1549 | fi |
---|
1550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1551 | test $ac_status = 0; } && { |
---|
1552 | test -z "$ac_c_werror_flag" || |
---|
1553 | test ! -s conftest.err |
---|
1554 | } && test -s conftest$ac_exeext && { |
---|
1555 | test "$cross_compiling" = yes || |
---|
1556 | $as_test_x conftest$ac_exeext |
---|
1557 | }; then : |
---|
1558 | ac_retval=0 |
---|
1559 | else |
---|
1560 | $as_echo "$as_me: failed program was:" >&5 |
---|
1561 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1562 | |
---|
1563 | ac_retval=1 |
---|
1564 | fi |
---|
1565 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1566 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1567 | # interfere with the next link command; also delete a directory that is |
---|
1568 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1569 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1570 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1571 | as_fn_set_status $ac_retval |
---|
1572 | |
---|
1573 | } # ac_fn_c_try_link |
---|
1574 | |
---|
1575 | # ac_fn_c_try_cpp LINENO |
---|
1576 | # ---------------------- |
---|
1577 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1578 | ac_fn_c_try_cpp () |
---|
1579 | { |
---|
1580 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1581 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1582 | case "(($ac_try" in |
---|
1583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1584 | *) ac_try_echo=$ac_try;; |
---|
1585 | esac |
---|
1586 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1587 | $as_echo "$ac_try_echo"; } >&5 |
---|
1588 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1589 | ac_status=$? |
---|
1590 | if test -s conftest.err; then |
---|
1591 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1592 | cat conftest.er1 >&5 |
---|
1593 | mv -f conftest.er1 conftest.err |
---|
1594 | fi |
---|
1595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1596 | test $ac_status = 0; } > conftest.i && { |
---|
1597 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1598 | test ! -s conftest.err |
---|
1599 | }; then : |
---|
1600 | ac_retval=0 |
---|
1601 | else |
---|
1602 | $as_echo "$as_me: failed program was:" >&5 |
---|
1603 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1604 | |
---|
1605 | ac_retval=1 |
---|
1606 | fi |
---|
1607 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1608 | as_fn_set_status $ac_retval |
---|
1609 | |
---|
1610 | } # ac_fn_c_try_cpp |
---|
1611 | |
---|
1612 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1613 | # ------------------------------------------------------- |
---|
1614 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1615 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1616 | # accordingly. |
---|
1617 | ac_fn_c_check_header_mongrel () |
---|
1618 | { |
---|
1619 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1620 | if eval \${$3+:} false; then : |
---|
1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1622 | $as_echo_n "checking for $2... " >&6; } |
---|
1623 | if eval \${$3+:} false; then : |
---|
1624 | $as_echo_n "(cached) " >&6 |
---|
1625 | fi |
---|
1626 | eval ac_res=\$$3 |
---|
1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1628 | $as_echo "$ac_res" >&6; } |
---|
1629 | else |
---|
1630 | # Is the header compilable? |
---|
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1632 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1634 | /* end confdefs.h. */ |
---|
1635 | $4 |
---|
1636 | #include <$2> |
---|
1637 | _ACEOF |
---|
1638 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1639 | ac_header_compiler=yes |
---|
1640 | else |
---|
1641 | ac_header_compiler=no |
---|
1642 | fi |
---|
1643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1645 | $as_echo "$ac_header_compiler" >&6; } |
---|
1646 | |
---|
1647 | # Is the header present? |
---|
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1649 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1651 | /* end confdefs.h. */ |
---|
1652 | #include <$2> |
---|
1653 | _ACEOF |
---|
1654 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1655 | ac_header_preproc=yes |
---|
1656 | else |
---|
1657 | ac_header_preproc=no |
---|
1658 | fi |
---|
1659 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1661 | $as_echo "$ac_header_preproc" >&6; } |
---|
1662 | |
---|
1663 | # So? What about this header? |
---|
1664 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1665 | yes:no: ) |
---|
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1667 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1669 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1670 | ;; |
---|
1671 | no:yes:* ) |
---|
1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1673 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1675 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1677 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1679 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1681 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1682 | ( $as_echo "## --------------------------------------- ## |
---|
1683 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1684 | ## --------------------------------------- ##" |
---|
1685 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1686 | ;; |
---|
1687 | esac |
---|
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1689 | $as_echo_n "checking for $2... " >&6; } |
---|
1690 | if eval \${$3+:} false; then : |
---|
1691 | $as_echo_n "(cached) " >&6 |
---|
1692 | else |
---|
1693 | eval "$3=\$ac_header_compiler" |
---|
1694 | fi |
---|
1695 | eval ac_res=\$$3 |
---|
1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1697 | $as_echo "$ac_res" >&6; } |
---|
1698 | fi |
---|
1699 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1700 | |
---|
1701 | } # ac_fn_c_check_header_mongrel |
---|
1702 | |
---|
1703 | # ac_fn_c_try_run LINENO |
---|
1704 | # ---------------------- |
---|
1705 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1706 | # that executables *can* be run. |
---|
1707 | ac_fn_c_try_run () |
---|
1708 | { |
---|
1709 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1710 | if { { ac_try="$ac_link" |
---|
1711 | case "(($ac_try" in |
---|
1712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1713 | *) ac_try_echo=$ac_try;; |
---|
1714 | esac |
---|
1715 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1716 | $as_echo "$ac_try_echo"; } >&5 |
---|
1717 | (eval "$ac_link") 2>&5 |
---|
1718 | ac_status=$? |
---|
1719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1720 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1721 | { { case "(($ac_try" in |
---|
1722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1723 | *) ac_try_echo=$ac_try;; |
---|
1724 | esac |
---|
1725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1726 | $as_echo "$ac_try_echo"; } >&5 |
---|
1727 | (eval "$ac_try") 2>&5 |
---|
1728 | ac_status=$? |
---|
1729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1730 | test $ac_status = 0; }; }; then : |
---|
1731 | ac_retval=0 |
---|
1732 | else |
---|
1733 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1734 | $as_echo "$as_me: failed program was:" >&5 |
---|
1735 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1736 | |
---|
1737 | ac_retval=$ac_status |
---|
1738 | fi |
---|
1739 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1740 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1741 | as_fn_set_status $ac_retval |
---|
1742 | |
---|
1743 | } # ac_fn_c_try_run |
---|
1744 | |
---|
1745 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1746 | # ------------------------------------------------------- |
---|
1747 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1748 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1749 | ac_fn_c_check_header_compile () |
---|
1750 | { |
---|
1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1753 | $as_echo_n "checking for $2... " >&6; } |
---|
1754 | if eval \${$3+:} false; then : |
---|
1755 | $as_echo_n "(cached) " >&6 |
---|
1756 | else |
---|
1757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1758 | /* end confdefs.h. */ |
---|
1759 | $4 |
---|
1760 | #include <$2> |
---|
1761 | _ACEOF |
---|
1762 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1763 | eval "$3=yes" |
---|
1764 | else |
---|
1765 | eval "$3=no" |
---|
1766 | fi |
---|
1767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1768 | fi |
---|
1769 | eval ac_res=\$$3 |
---|
1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1771 | $as_echo "$ac_res" >&6; } |
---|
1772 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1773 | |
---|
1774 | } # ac_fn_c_check_header_compile |
---|
1775 | cat >config.log <<_ACEOF |
---|
1776 | This file contains any messages produced by compilers while |
---|
1777 | running configure, to aid debugging if configure makes a mistake. |
---|
1778 | |
---|
1779 | It was created by cfa-cc $as_me 1.0, which was |
---|
1780 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
1781 | |
---|
1782 | $ $0 $@ |
---|
1783 | |
---|
1784 | _ACEOF |
---|
1785 | exec 5>>config.log |
---|
1786 | { |
---|
1787 | cat <<_ASUNAME |
---|
1788 | ## --------- ## |
---|
1789 | ## Platform. ## |
---|
1790 | ## --------- ## |
---|
1791 | |
---|
1792 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1793 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1794 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1795 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1796 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1797 | |
---|
1798 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1799 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1800 | |
---|
1801 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1802 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1803 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1804 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1805 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1806 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1807 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1808 | |
---|
1809 | _ASUNAME |
---|
1810 | |
---|
1811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1812 | for as_dir in $PATH |
---|
1813 | do |
---|
1814 | IFS=$as_save_IFS |
---|
1815 | test -z "$as_dir" && as_dir=. |
---|
1816 | $as_echo "PATH: $as_dir" |
---|
1817 | done |
---|
1818 | IFS=$as_save_IFS |
---|
1819 | |
---|
1820 | } >&5 |
---|
1821 | |
---|
1822 | cat >&5 <<_ACEOF |
---|
1823 | |
---|
1824 | |
---|
1825 | ## ----------- ## |
---|
1826 | ## Core tests. ## |
---|
1827 | ## ----------- ## |
---|
1828 | |
---|
1829 | _ACEOF |
---|
1830 | |
---|
1831 | |
---|
1832 | # Keep a trace of the command line. |
---|
1833 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1834 | # Strip out --silent because we don't want to record it for future runs. |
---|
1835 | # Also quote any args containing shell meta-characters. |
---|
1836 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1837 | ac_configure_args= |
---|
1838 | ac_configure_args0= |
---|
1839 | ac_configure_args1= |
---|
1840 | ac_must_keep_next=false |
---|
1841 | for ac_pass in 1 2 |
---|
1842 | do |
---|
1843 | for ac_arg |
---|
1844 | do |
---|
1845 | case $ac_arg in |
---|
1846 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1847 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1848 | | -silent | --silent | --silen | --sile | --sil) |
---|
1849 | continue ;; |
---|
1850 | *\'*) |
---|
1851 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1852 | esac |
---|
1853 | case $ac_pass in |
---|
1854 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
1855 | 2) |
---|
1856 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
1857 | if test $ac_must_keep_next = true; then |
---|
1858 | ac_must_keep_next=false # Got value, back to normal. |
---|
1859 | else |
---|
1860 | case $ac_arg in |
---|
1861 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1862 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1863 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1864 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1865 | case "$ac_configure_args0 " in |
---|
1866 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1867 | esac |
---|
1868 | ;; |
---|
1869 | -* ) ac_must_keep_next=true ;; |
---|
1870 | esac |
---|
1871 | fi |
---|
1872 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
1873 | ;; |
---|
1874 | esac |
---|
1875 | done |
---|
1876 | done |
---|
1877 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
1878 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
1879 | |
---|
1880 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1881 | # config.log. We remove comments because anyway the quotes in there |
---|
1882 | # would cause problems or look ugly. |
---|
1883 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1884 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1885 | trap 'exit_status=$? |
---|
1886 | # Save into config.log some information that might help in debugging. |
---|
1887 | { |
---|
1888 | echo |
---|
1889 | |
---|
1890 | $as_echo "## ---------------- ## |
---|
1891 | ## Cache variables. ## |
---|
1892 | ## ---------------- ##" |
---|
1893 | echo |
---|
1894 | # The following way of writing the cache mishandles newlines in values, |
---|
1895 | ( |
---|
1896 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1897 | eval ac_val=\$$ac_var |
---|
1898 | case $ac_val in #( |
---|
1899 | *${as_nl}*) |
---|
1900 | case $ac_var in #( |
---|
1901 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
1902 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
1903 | esac |
---|
1904 | case $ac_var in #( |
---|
1905 | _ | IFS | as_nl) ;; #( |
---|
1906 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
1907 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
1908 | esac ;; |
---|
1909 | esac |
---|
1910 | done |
---|
1911 | (set) 2>&1 | |
---|
1912 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1913 | *${as_nl}ac_space=\ *) |
---|
1914 | sed -n \ |
---|
1915 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1916 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1917 | ;; #( |
---|
1918 | *) |
---|
1919 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1920 | ;; |
---|
1921 | esac | |
---|
1922 | sort |
---|
1923 | ) |
---|
1924 | echo |
---|
1925 | |
---|
1926 | $as_echo "## ----------------- ## |
---|
1927 | ## Output variables. ## |
---|
1928 | ## ----------------- ##" |
---|
1929 | echo |
---|
1930 | for ac_var in $ac_subst_vars |
---|
1931 | do |
---|
1932 | eval ac_val=\$$ac_var |
---|
1933 | case $ac_val in |
---|
1934 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1935 | esac |
---|
1936 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1937 | done | sort |
---|
1938 | echo |
---|
1939 | |
---|
1940 | if test -n "$ac_subst_files"; then |
---|
1941 | $as_echo "## ------------------- ## |
---|
1942 | ## File substitutions. ## |
---|
1943 | ## ------------------- ##" |
---|
1944 | echo |
---|
1945 | for ac_var in $ac_subst_files |
---|
1946 | do |
---|
1947 | eval ac_val=\$$ac_var |
---|
1948 | case $ac_val in |
---|
1949 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1950 | esac |
---|
1951 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1952 | done | sort |
---|
1953 | echo |
---|
1954 | fi |
---|
1955 | |
---|
1956 | if test -s confdefs.h; then |
---|
1957 | $as_echo "## ----------- ## |
---|
1958 | ## confdefs.h. ## |
---|
1959 | ## ----------- ##" |
---|
1960 | echo |
---|
1961 | cat confdefs.h |
---|
1962 | echo |
---|
1963 | fi |
---|
1964 | test "$ac_signal" != 0 && |
---|
1965 | $as_echo "$as_me: caught signal $ac_signal" |
---|
1966 | $as_echo "$as_me: exit $exit_status" |
---|
1967 | } >&5 |
---|
1968 | rm -f core *.core core.conftest.* && |
---|
1969 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1970 | exit $exit_status |
---|
1971 | ' 0 |
---|
1972 | for ac_signal in 1 2 13 15; do |
---|
1973 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
1974 | done |
---|
1975 | ac_signal=0 |
---|
1976 | |
---|
1977 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1978 | rm -f -r conftest* confdefs.h |
---|
1979 | |
---|
1980 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
1981 | |
---|
1982 | # Predefined preprocessor variables. |
---|
1983 | |
---|
1984 | cat >>confdefs.h <<_ACEOF |
---|
1985 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1986 | _ACEOF |
---|
1987 | |
---|
1988 | cat >>confdefs.h <<_ACEOF |
---|
1989 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1990 | _ACEOF |
---|
1991 | |
---|
1992 | cat >>confdefs.h <<_ACEOF |
---|
1993 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1994 | _ACEOF |
---|
1995 | |
---|
1996 | cat >>confdefs.h <<_ACEOF |
---|
1997 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1998 | _ACEOF |
---|
1999 | |
---|
2000 | cat >>confdefs.h <<_ACEOF |
---|
2001 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2002 | _ACEOF |
---|
2003 | |
---|
2004 | cat >>confdefs.h <<_ACEOF |
---|
2005 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2006 | _ACEOF |
---|
2007 | |
---|
2008 | |
---|
2009 | # Let the site file select an alternate cache file if it wants to. |
---|
2010 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2011 | ac_site_file1=NONE |
---|
2012 | ac_site_file2=NONE |
---|
2013 | if test -n "$CONFIG_SITE"; then |
---|
2014 | # We do not want a PATH search for config.site. |
---|
2015 | case $CONFIG_SITE in #(( |
---|
2016 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2017 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2018 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2019 | esac |
---|
2020 | elif test "x$prefix" != xNONE; then |
---|
2021 | ac_site_file1=$prefix/share/config.site |
---|
2022 | ac_site_file2=$prefix/etc/config.site |
---|
2023 | else |
---|
2024 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2025 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2026 | fi |
---|
2027 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2028 | do |
---|
2029 | test "x$ac_site_file" = xNONE && continue |
---|
2030 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2032 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2033 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2034 | . "$ac_site_file" \ |
---|
2035 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2037 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2038 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2039 | fi |
---|
2040 | done |
---|
2041 | |
---|
2042 | if test -r "$cache_file"; then |
---|
2043 | # Some versions of bash will fail to source /dev/null (special files |
---|
2044 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2045 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2047 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2048 | case $cache_file in |
---|
2049 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2050 | *) . "./$cache_file";; |
---|
2051 | esac |
---|
2052 | fi |
---|
2053 | else |
---|
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2055 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2056 | >$cache_file |
---|
2057 | fi |
---|
2058 | |
---|
2059 | # Check that the precious variables saved in the cache have kept the same |
---|
2060 | # value. |
---|
2061 | ac_cache_corrupted=false |
---|
2062 | for ac_var in $ac_precious_vars; do |
---|
2063 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2064 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2065 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2066 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2067 | case $ac_old_set,$ac_new_set in |
---|
2068 | set,) |
---|
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2070 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2071 | ac_cache_corrupted=: ;; |
---|
2072 | ,set) |
---|
2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2074 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2075 | ac_cache_corrupted=: ;; |
---|
2076 | ,);; |
---|
2077 | *) |
---|
2078 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2079 | # differences in whitespace do not lead to failure. |
---|
2080 | ac_old_val_w=`echo x $ac_old_val` |
---|
2081 | ac_new_val_w=`echo x $ac_new_val` |
---|
2082 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2084 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2085 | ac_cache_corrupted=: |
---|
2086 | else |
---|
2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2088 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2089 | eval $ac_var=\$ac_old_val |
---|
2090 | fi |
---|
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2092 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2094 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2095 | fi;; |
---|
2096 | esac |
---|
2097 | # Pass precious variables to config.status. |
---|
2098 | if test "$ac_new_set" = set; then |
---|
2099 | case $ac_new_val in |
---|
2100 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2101 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2102 | esac |
---|
2103 | case " $ac_configure_args " in |
---|
2104 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2105 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2106 | esac |
---|
2107 | fi |
---|
2108 | done |
---|
2109 | if $ac_cache_corrupted; then |
---|
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2111 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2113 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2114 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2115 | fi |
---|
2116 | ## -------------------- ## |
---|
2117 | ## Main body of script. ## |
---|
2118 | ## -------------------- ## |
---|
2119 | |
---|
2120 | ac_ext=c |
---|
2121 | ac_cpp='$CPP $CPPFLAGS' |
---|
2122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2125 | |
---|
2126 | |
---|
2127 | |
---|
2128 | |
---|
2129 | am__api_version='1.11' |
---|
2130 | |
---|
2131 | ac_aux_dir= |
---|
2132 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
2133 | if test -f "$ac_dir/install-sh"; then |
---|
2134 | ac_aux_dir=$ac_dir |
---|
2135 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2136 | break |
---|
2137 | elif test -f "$ac_dir/install.sh"; then |
---|
2138 | ac_aux_dir=$ac_dir |
---|
2139 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2140 | break |
---|
2141 | elif test -f "$ac_dir/shtool"; then |
---|
2142 | ac_aux_dir=$ac_dir |
---|
2143 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2144 | break |
---|
2145 | fi |
---|
2146 | done |
---|
2147 | if test -z "$ac_aux_dir"; then |
---|
2148 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
---|
2149 | fi |
---|
2150 | |
---|
2151 | # These three variables are undocumented and unsupported, |
---|
2152 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2153 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2154 | # whose full name contains unusual characters. |
---|
2155 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2156 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2157 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2158 | |
---|
2159 | |
---|
2160 | # Find a good install program. We prefer a C program (faster), |
---|
2161 | # so one script is as good as another. But avoid the broken or |
---|
2162 | # incompatible versions: |
---|
2163 | # SysV /etc/install, /usr/sbin/install |
---|
2164 | # SunOS /usr/etc/install |
---|
2165 | # IRIX /sbin/install |
---|
2166 | # AIX /bin/install |
---|
2167 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2168 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2169 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2170 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2171 | # OS/2's system install, which has a completely different semantic |
---|
2172 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2173 | # Reject install programs that cannot install multiple files. |
---|
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2175 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2176 | if test -z "$INSTALL"; then |
---|
2177 | if ${ac_cv_path_install+:} false; then : |
---|
2178 | $as_echo_n "(cached) " >&6 |
---|
2179 | else |
---|
2180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2181 | for as_dir in $PATH |
---|
2182 | do |
---|
2183 | IFS=$as_save_IFS |
---|
2184 | test -z "$as_dir" && as_dir=. |
---|
2185 | # Account for people who put trailing slashes in PATH elements. |
---|
2186 | case $as_dir/ in #(( |
---|
2187 | ./ | .// | /[cC]/* | \ |
---|
2188 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2189 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2190 | /usr/ucb/* ) ;; |
---|
2191 | *) |
---|
2192 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2193 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2194 | # by default. |
---|
2195 | for ac_prog in ginstall scoinst install; do |
---|
2196 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2197 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2198 | if test $ac_prog = install && |
---|
2199 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2200 | # AIX install. It has an incompatible calling convention. |
---|
2201 | : |
---|
2202 | elif test $ac_prog = install && |
---|
2203 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2204 | # program-specific install script used by HP pwplus--don't use. |
---|
2205 | : |
---|
2206 | else |
---|
2207 | rm -rf conftest.one conftest.two conftest.dir |
---|
2208 | echo one > conftest.one |
---|
2209 | echo two > conftest.two |
---|
2210 | mkdir conftest.dir |
---|
2211 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2212 | test -s conftest.one && test -s conftest.two && |
---|
2213 | test -s conftest.dir/conftest.one && |
---|
2214 | test -s conftest.dir/conftest.two |
---|
2215 | then |
---|
2216 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2217 | break 3 |
---|
2218 | fi |
---|
2219 | fi |
---|
2220 | fi |
---|
2221 | done |
---|
2222 | done |
---|
2223 | ;; |
---|
2224 | esac |
---|
2225 | |
---|
2226 | done |
---|
2227 | IFS=$as_save_IFS |
---|
2228 | |
---|
2229 | rm -rf conftest.one conftest.two conftest.dir |
---|
2230 | |
---|
2231 | fi |
---|
2232 | if test "${ac_cv_path_install+set}" = set; then |
---|
2233 | INSTALL=$ac_cv_path_install |
---|
2234 | else |
---|
2235 | # As a last resort, use the slow shell script. Don't cache a |
---|
2236 | # value for INSTALL within a source directory, because that will |
---|
2237 | # break other packages using the cache if that directory is |
---|
2238 | # removed, or if the value is a relative name. |
---|
2239 | INSTALL=$ac_install_sh |
---|
2240 | fi |
---|
2241 | fi |
---|
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2243 | $as_echo "$INSTALL" >&6; } |
---|
2244 | |
---|
2245 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2246 | # It thinks the first close brace ends the variable substitution. |
---|
2247 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2248 | |
---|
2249 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2250 | |
---|
2251 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2252 | |
---|
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2254 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2255 | # Just in case |
---|
2256 | sleep 1 |
---|
2257 | echo timestamp > conftest.file |
---|
2258 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2259 | # name. Accept space and tab only in the latter. |
---|
2260 | am_lf=' |
---|
2261 | ' |
---|
2262 | case `pwd` in |
---|
2263 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2264 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2265 | esac |
---|
2266 | case $srcdir in |
---|
2267 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2268 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
---|
2269 | esac |
---|
2270 | |
---|
2271 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2272 | # arguments. Must try -L first in case configure is actually a |
---|
2273 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2274 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2275 | # directory). |
---|
2276 | if ( |
---|
2277 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2278 | if test "$*" = "X"; then |
---|
2279 | # -L didn't work. |
---|
2280 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2281 | fi |
---|
2282 | rm -f conftest.file |
---|
2283 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2284 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2285 | |
---|
2286 | # If neither matched, then we have a broken ls. This can happen |
---|
2287 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2288 | # broken ls alias from the environment. This has actually |
---|
2289 | # happened. Such a system could not be considered "sane". |
---|
2290 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2291 | alias in your environment" "$LINENO" 5 |
---|
2292 | fi |
---|
2293 | |
---|
2294 | test "$2" = conftest.file |
---|
2295 | ) |
---|
2296 | then |
---|
2297 | # Ok. |
---|
2298 | : |
---|
2299 | else |
---|
2300 | as_fn_error $? "newly created file is older than distributed files! |
---|
2301 | Check your system clock" "$LINENO" 5 |
---|
2302 | fi |
---|
2303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2304 | $as_echo "yes" >&6; } |
---|
2305 | test "$program_prefix" != NONE && |
---|
2306 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2307 | # Use a double $ so make ignores it. |
---|
2308 | test "$program_suffix" != NONE && |
---|
2309 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2310 | # Double any \ or $. |
---|
2311 | # By default was `s,x,x', remove it if useless. |
---|
2312 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2313 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2314 | |
---|
2315 | # expand $ac_aux_dir to an absolute path |
---|
2316 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2317 | |
---|
2318 | if test x"${MISSING+set}" != xset; then |
---|
2319 | case $am_aux_dir in |
---|
2320 | *\ * | *\ *) |
---|
2321 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2322 | *) |
---|
2323 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2324 | esac |
---|
2325 | fi |
---|
2326 | # Use eval to expand $SHELL |
---|
2327 | if eval "$MISSING --run true"; then |
---|
2328 | am_missing_run="$MISSING --run " |
---|
2329 | else |
---|
2330 | am_missing_run= |
---|
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
---|
2332 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2333 | fi |
---|
2334 | |
---|
2335 | if test x"${install_sh}" != xset; then |
---|
2336 | case $am_aux_dir in |
---|
2337 | *\ * | *\ *) |
---|
2338 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2339 | *) |
---|
2340 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2341 | esac |
---|
2342 | fi |
---|
2343 | |
---|
2344 | # Installed binaries are usually stripped using `strip' when the user |
---|
2345 | # run `make install-strip'. However `strip' might not be the right |
---|
2346 | # tool to use in cross-compilation environments, therefore Automake |
---|
2347 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2348 | if test "$cross_compiling" != no; then |
---|
2349 | if test -n "$ac_tool_prefix"; then |
---|
2350 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2351 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2353 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2354 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2355 | $as_echo_n "(cached) " >&6 |
---|
2356 | else |
---|
2357 | if test -n "$STRIP"; then |
---|
2358 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2359 | else |
---|
2360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2361 | for as_dir in $PATH |
---|
2362 | do |
---|
2363 | IFS=$as_save_IFS |
---|
2364 | test -z "$as_dir" && as_dir=. |
---|
2365 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2367 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2369 | break 2 |
---|
2370 | fi |
---|
2371 | done |
---|
2372 | done |
---|
2373 | IFS=$as_save_IFS |
---|
2374 | |
---|
2375 | fi |
---|
2376 | fi |
---|
2377 | STRIP=$ac_cv_prog_STRIP |
---|
2378 | if test -n "$STRIP"; then |
---|
2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2380 | $as_echo "$STRIP" >&6; } |
---|
2381 | else |
---|
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2383 | $as_echo "no" >&6; } |
---|
2384 | fi |
---|
2385 | |
---|
2386 | |
---|
2387 | fi |
---|
2388 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2389 | ac_ct_STRIP=$STRIP |
---|
2390 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2391 | set dummy strip; ac_word=$2 |
---|
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2393 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2394 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2395 | $as_echo_n "(cached) " >&6 |
---|
2396 | else |
---|
2397 | if test -n "$ac_ct_STRIP"; then |
---|
2398 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2399 | else |
---|
2400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2401 | for as_dir in $PATH |
---|
2402 | do |
---|
2403 | IFS=$as_save_IFS |
---|
2404 | test -z "$as_dir" && as_dir=. |
---|
2405 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2407 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2409 | break 2 |
---|
2410 | fi |
---|
2411 | done |
---|
2412 | done |
---|
2413 | IFS=$as_save_IFS |
---|
2414 | |
---|
2415 | fi |
---|
2416 | fi |
---|
2417 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2418 | if test -n "$ac_ct_STRIP"; then |
---|
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2420 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2421 | else |
---|
2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2423 | $as_echo "no" >&6; } |
---|
2424 | fi |
---|
2425 | |
---|
2426 | if test "x$ac_ct_STRIP" = x; then |
---|
2427 | STRIP=":" |
---|
2428 | else |
---|
2429 | case $cross_compiling:$ac_tool_warned in |
---|
2430 | yes:) |
---|
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2432 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2433 | ac_tool_warned=yes ;; |
---|
2434 | esac |
---|
2435 | STRIP=$ac_ct_STRIP |
---|
2436 | fi |
---|
2437 | else |
---|
2438 | STRIP="$ac_cv_prog_STRIP" |
---|
2439 | fi |
---|
2440 | |
---|
2441 | fi |
---|
2442 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2443 | |
---|
2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2445 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2446 | if test -z "$MKDIR_P"; then |
---|
2447 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2448 | $as_echo_n "(cached) " >&6 |
---|
2449 | else |
---|
2450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2451 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2452 | do |
---|
2453 | IFS=$as_save_IFS |
---|
2454 | test -z "$as_dir" && as_dir=. |
---|
2455 | for ac_prog in mkdir gmkdir; do |
---|
2456 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2457 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2458 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2459 | 'mkdir (GNU coreutils) '* | \ |
---|
2460 | 'mkdir (coreutils) '* | \ |
---|
2461 | 'mkdir (fileutils) '4.1*) |
---|
2462 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2463 | break 3;; |
---|
2464 | esac |
---|
2465 | done |
---|
2466 | done |
---|
2467 | done |
---|
2468 | IFS=$as_save_IFS |
---|
2469 | |
---|
2470 | fi |
---|
2471 | |
---|
2472 | test -d ./--version && rmdir ./--version |
---|
2473 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2474 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2475 | else |
---|
2476 | # As a last resort, use the slow shell script. Don't cache a |
---|
2477 | # value for MKDIR_P within a source directory, because that will |
---|
2478 | # break other packages using the cache if that directory is |
---|
2479 | # removed, or if the value is a relative name. |
---|
2480 | MKDIR_P="$ac_install_sh -d" |
---|
2481 | fi |
---|
2482 | fi |
---|
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2484 | $as_echo "$MKDIR_P" >&6; } |
---|
2485 | |
---|
2486 | mkdir_p="$MKDIR_P" |
---|
2487 | case $mkdir_p in |
---|
2488 | [\\/$]* | ?:[\\/]*) ;; |
---|
2489 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2490 | esac |
---|
2491 | |
---|
2492 | for ac_prog in gawk mawk nawk awk |
---|
2493 | do |
---|
2494 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2495 | set dummy $ac_prog; ac_word=$2 |
---|
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2497 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2498 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2499 | $as_echo_n "(cached) " >&6 |
---|
2500 | else |
---|
2501 | if test -n "$AWK"; then |
---|
2502 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2503 | else |
---|
2504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2505 | for as_dir in $PATH |
---|
2506 | do |
---|
2507 | IFS=$as_save_IFS |
---|
2508 | test -z "$as_dir" && as_dir=. |
---|
2509 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2511 | ac_cv_prog_AWK="$ac_prog" |
---|
2512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2513 | break 2 |
---|
2514 | fi |
---|
2515 | done |
---|
2516 | done |
---|
2517 | IFS=$as_save_IFS |
---|
2518 | |
---|
2519 | fi |
---|
2520 | fi |
---|
2521 | AWK=$ac_cv_prog_AWK |
---|
2522 | if test -n "$AWK"; then |
---|
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2524 | $as_echo "$AWK" >&6; } |
---|
2525 | else |
---|
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2527 | $as_echo "no" >&6; } |
---|
2528 | fi |
---|
2529 | |
---|
2530 | |
---|
2531 | test -n "$AWK" && break |
---|
2532 | done |
---|
2533 | |
---|
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2535 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2536 | set x ${MAKE-make} |
---|
2537 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2538 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2539 | $as_echo_n "(cached) " >&6 |
---|
2540 | else |
---|
2541 | cat >conftest.make <<\_ACEOF |
---|
2542 | SHELL = /bin/sh |
---|
2543 | all: |
---|
2544 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2545 | _ACEOF |
---|
2546 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2547 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2548 | *@@@%%%=?*=@@@%%%*) |
---|
2549 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2550 | *) |
---|
2551 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2552 | esac |
---|
2553 | rm -f conftest.make |
---|
2554 | fi |
---|
2555 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2557 | $as_echo "yes" >&6; } |
---|
2558 | SET_MAKE= |
---|
2559 | else |
---|
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2561 | $as_echo "no" >&6; } |
---|
2562 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2563 | fi |
---|
2564 | |
---|
2565 | rm -rf .tst 2>/dev/null |
---|
2566 | mkdir .tst 2>/dev/null |
---|
2567 | if test -d .tst; then |
---|
2568 | am__leading_dot=. |
---|
2569 | else |
---|
2570 | am__leading_dot=_ |
---|
2571 | fi |
---|
2572 | rmdir .tst 2>/dev/null |
---|
2573 | |
---|
2574 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2575 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2576 | # is not polluted with repeated "-I." |
---|
2577 | am__isrc=' -I$(srcdir)' |
---|
2578 | # test to see if srcdir already configured |
---|
2579 | if test -f $srcdir/config.status; then |
---|
2580 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2581 | fi |
---|
2582 | fi |
---|
2583 | |
---|
2584 | # test whether we have cygpath |
---|
2585 | if test -z "$CYGPATH_W"; then |
---|
2586 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2587 | CYGPATH_W='cygpath -w' |
---|
2588 | else |
---|
2589 | CYGPATH_W=echo |
---|
2590 | fi |
---|
2591 | fi |
---|
2592 | |
---|
2593 | |
---|
2594 | # Define the identity of the package. |
---|
2595 | PACKAGE='cfa-cc' |
---|
2596 | VERSION='1.0' |
---|
2597 | |
---|
2598 | |
---|
2599 | cat >>confdefs.h <<_ACEOF |
---|
2600 | #define PACKAGE "$PACKAGE" |
---|
2601 | _ACEOF |
---|
2602 | |
---|
2603 | |
---|
2604 | cat >>confdefs.h <<_ACEOF |
---|
2605 | #define VERSION "$VERSION" |
---|
2606 | _ACEOF |
---|
2607 | |
---|
2608 | # Some tools Automake needs. |
---|
2609 | |
---|
2610 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2611 | |
---|
2612 | |
---|
2613 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2614 | |
---|
2615 | |
---|
2616 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2617 | |
---|
2618 | |
---|
2619 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2620 | |
---|
2621 | |
---|
2622 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2623 | |
---|
2624 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2625 | # some platforms. |
---|
2626 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
2627 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
2628 | AMTAR='$${TAR-tar}' |
---|
2629 | |
---|
2630 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
2631 | |
---|
2632 | |
---|
2633 | |
---|
2634 | |
---|
2635 | # do not follow GNU standard |
---|
2636 | ac_config_headers="$ac_config_headers config.h" |
---|
2637 | |
---|
2638 | |
---|
2639 | for ac_prog in 'bison -y' byacc |
---|
2640 | do |
---|
2641 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2642 | set dummy $ac_prog; ac_word=$2 |
---|
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2644 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2645 | if ${ac_cv_prog_YACC+:} false; then : |
---|
2646 | $as_echo_n "(cached) " >&6 |
---|
2647 | else |
---|
2648 | if test -n "$YACC"; then |
---|
2649 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
2650 | else |
---|
2651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2652 | for as_dir in $PATH |
---|
2653 | do |
---|
2654 | IFS=$as_save_IFS |
---|
2655 | test -z "$as_dir" && as_dir=. |
---|
2656 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2658 | ac_cv_prog_YACC="$ac_prog" |
---|
2659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2660 | break 2 |
---|
2661 | fi |
---|
2662 | done |
---|
2663 | done |
---|
2664 | IFS=$as_save_IFS |
---|
2665 | |
---|
2666 | fi |
---|
2667 | fi |
---|
2668 | YACC=$ac_cv_prog_YACC |
---|
2669 | if test -n "$YACC"; then |
---|
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
---|
2671 | $as_echo "$YACC" >&6; } |
---|
2672 | else |
---|
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2674 | $as_echo "no" >&6; } |
---|
2675 | fi |
---|
2676 | |
---|
2677 | |
---|
2678 | test -n "$YACC" && break |
---|
2679 | done |
---|
2680 | test -n "$YACC" || YACC="yacc" |
---|
2681 | |
---|
2682 | ac_ext=cpp |
---|
2683 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2684 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2685 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2686 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
2687 | if test -z "$CXX"; then |
---|
2688 | if test -n "$CCC"; then |
---|
2689 | CXX=$CCC |
---|
2690 | else |
---|
2691 | if test -n "$ac_tool_prefix"; then |
---|
2692 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
2693 | do |
---|
2694 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2695 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2697 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2698 | if ${ac_cv_prog_CXX+:} false; then : |
---|
2699 | $as_echo_n "(cached) " >&6 |
---|
2700 | else |
---|
2701 | if test -n "$CXX"; then |
---|
2702 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
2703 | else |
---|
2704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2705 | for as_dir in $PATH |
---|
2706 | do |
---|
2707 | IFS=$as_save_IFS |
---|
2708 | test -z "$as_dir" && as_dir=. |
---|
2709 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2711 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
2712 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2713 | break 2 |
---|
2714 | fi |
---|
2715 | done |
---|
2716 | done |
---|
2717 | IFS=$as_save_IFS |
---|
2718 | |
---|
2719 | fi |
---|
2720 | fi |
---|
2721 | CXX=$ac_cv_prog_CXX |
---|
2722 | if test -n "$CXX"; then |
---|
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
2724 | $as_echo "$CXX" >&6; } |
---|
2725 | else |
---|
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2727 | $as_echo "no" >&6; } |
---|
2728 | fi |
---|
2729 | |
---|
2730 | |
---|
2731 | test -n "$CXX" && break |
---|
2732 | done |
---|
2733 | fi |
---|
2734 | if test -z "$CXX"; then |
---|
2735 | ac_ct_CXX=$CXX |
---|
2736 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
2737 | do |
---|
2738 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2739 | set dummy $ac_prog; ac_word=$2 |
---|
2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2741 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2742 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
2743 | $as_echo_n "(cached) " >&6 |
---|
2744 | else |
---|
2745 | if test -n "$ac_ct_CXX"; then |
---|
2746 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
2747 | else |
---|
2748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2749 | for as_dir in $PATH |
---|
2750 | do |
---|
2751 | IFS=$as_save_IFS |
---|
2752 | test -z "$as_dir" && as_dir=. |
---|
2753 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2755 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
2756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2757 | break 2 |
---|
2758 | fi |
---|
2759 | done |
---|
2760 | done |
---|
2761 | IFS=$as_save_IFS |
---|
2762 | |
---|
2763 | fi |
---|
2764 | fi |
---|
2765 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
2766 | if test -n "$ac_ct_CXX"; then |
---|
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
2768 | $as_echo "$ac_ct_CXX" >&6; } |
---|
2769 | else |
---|
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2771 | $as_echo "no" >&6; } |
---|
2772 | fi |
---|
2773 | |
---|
2774 | |
---|
2775 | test -n "$ac_ct_CXX" && break |
---|
2776 | done |
---|
2777 | |
---|
2778 | if test "x$ac_ct_CXX" = x; then |
---|
2779 | CXX="g++" |
---|
2780 | else |
---|
2781 | case $cross_compiling:$ac_tool_warned in |
---|
2782 | yes:) |
---|
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2784 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2785 | ac_tool_warned=yes ;; |
---|
2786 | esac |
---|
2787 | CXX=$ac_ct_CXX |
---|
2788 | fi |
---|
2789 | fi |
---|
2790 | |
---|
2791 | fi |
---|
2792 | fi |
---|
2793 | # Provide some information about the compiler. |
---|
2794 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
2795 | set X $ac_compile |
---|
2796 | ac_compiler=$2 |
---|
2797 | for ac_option in --version -v -V -qversion; do |
---|
2798 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2799 | case "(($ac_try" in |
---|
2800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2801 | *) ac_try_echo=$ac_try;; |
---|
2802 | esac |
---|
2803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2804 | $as_echo "$ac_try_echo"; } >&5 |
---|
2805 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2806 | ac_status=$? |
---|
2807 | if test -s conftest.err; then |
---|
2808 | sed '10a\ |
---|
2809 | ... rest of stderr output deleted ... |
---|
2810 | 10q' conftest.err >conftest.er1 |
---|
2811 | cat conftest.er1 >&5 |
---|
2812 | fi |
---|
2813 | rm -f conftest.er1 conftest.err |
---|
2814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2815 | test $ac_status = 0; } |
---|
2816 | done |
---|
2817 | |
---|
2818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2819 | /* end confdefs.h. */ |
---|
2820 | |
---|
2821 | int |
---|
2822 | main () |
---|
2823 | { |
---|
2824 | |
---|
2825 | ; |
---|
2826 | return 0; |
---|
2827 | } |
---|
2828 | _ACEOF |
---|
2829 | ac_clean_files_save=$ac_clean_files |
---|
2830 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2831 | # Try to create an executable without -o first, disregard a.out. |
---|
2832 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2833 | # of exeext. |
---|
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
2835 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
2836 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2837 | |
---|
2838 | # The possible output files: |
---|
2839 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2840 | |
---|
2841 | ac_rmfiles= |
---|
2842 | for ac_file in $ac_files |
---|
2843 | do |
---|
2844 | case $ac_file in |
---|
2845 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2846 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2847 | esac |
---|
2848 | done |
---|
2849 | rm -f $ac_rmfiles |
---|
2850 | |
---|
2851 | if { { ac_try="$ac_link_default" |
---|
2852 | case "(($ac_try" in |
---|
2853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2854 | *) ac_try_echo=$ac_try;; |
---|
2855 | esac |
---|
2856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2857 | $as_echo "$ac_try_echo"; } >&5 |
---|
2858 | (eval "$ac_link_default") 2>&5 |
---|
2859 | ac_status=$? |
---|
2860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2861 | test $ac_status = 0; }; then : |
---|
2862 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2863 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2864 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2865 | # so that the user can short-circuit this test for compilers unknown to |
---|
2866 | # Autoconf. |
---|
2867 | for ac_file in $ac_files '' |
---|
2868 | do |
---|
2869 | test -f "$ac_file" || continue |
---|
2870 | case $ac_file in |
---|
2871 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2872 | ;; |
---|
2873 | [ab].out ) |
---|
2874 | # We found the default executable, but exeext='' is most |
---|
2875 | # certainly right. |
---|
2876 | break;; |
---|
2877 | *.* ) |
---|
2878 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2879 | then :; else |
---|
2880 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2881 | fi |
---|
2882 | # We set ac_cv_exeext here because the later test for it is not |
---|
2883 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2884 | # argument, so we may need to know it at that point already. |
---|
2885 | # Even if this section looks crufty: it has the advantage of |
---|
2886 | # actually working. |
---|
2887 | break;; |
---|
2888 | * ) |
---|
2889 | break;; |
---|
2890 | esac |
---|
2891 | done |
---|
2892 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2893 | |
---|
2894 | else |
---|
2895 | ac_file='' |
---|
2896 | fi |
---|
2897 | if test -z "$ac_file"; then : |
---|
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2899 | $as_echo "no" >&6; } |
---|
2900 | $as_echo "$as_me: failed program was:" >&5 |
---|
2901 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2902 | |
---|
2903 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2904 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2905 | as_fn_error 77 "C++ compiler cannot create executables |
---|
2906 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2907 | else |
---|
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2909 | $as_echo "yes" >&6; } |
---|
2910 | fi |
---|
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
2912 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
2914 | $as_echo "$ac_file" >&6; } |
---|
2915 | ac_exeext=$ac_cv_exeext |
---|
2916 | |
---|
2917 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2918 | ac_clean_files=$ac_clean_files_save |
---|
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
2920 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2921 | if { { ac_try="$ac_link" |
---|
2922 | case "(($ac_try" in |
---|
2923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2924 | *) ac_try_echo=$ac_try;; |
---|
2925 | esac |
---|
2926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2927 | $as_echo "$ac_try_echo"; } >&5 |
---|
2928 | (eval "$ac_link") 2>&5 |
---|
2929 | ac_status=$? |
---|
2930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2931 | test $ac_status = 0; }; then : |
---|
2932 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2933 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2934 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2935 | # `rm'. |
---|
2936 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2937 | test -f "$ac_file" || continue |
---|
2938 | case $ac_file in |
---|
2939 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2940 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2941 | break;; |
---|
2942 | * ) break;; |
---|
2943 | esac |
---|
2944 | done |
---|
2945 | else |
---|
2946 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2947 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2948 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
2949 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2950 | fi |
---|
2951 | rm -f conftest conftest$ac_cv_exeext |
---|
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
2953 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2954 | |
---|
2955 | rm -f conftest.$ac_ext |
---|
2956 | EXEEXT=$ac_cv_exeext |
---|
2957 | ac_exeext=$EXEEXT |
---|
2958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2959 | /* end confdefs.h. */ |
---|
2960 | #include <stdio.h> |
---|
2961 | int |
---|
2962 | main () |
---|
2963 | { |
---|
2964 | FILE *f = fopen ("conftest.out", "w"); |
---|
2965 | return ferror (f) || fclose (f) != 0; |
---|
2966 | |
---|
2967 | ; |
---|
2968 | return 0; |
---|
2969 | } |
---|
2970 | _ACEOF |
---|
2971 | ac_clean_files="$ac_clean_files conftest.out" |
---|
2972 | # Check that the compiler produces executables we can run. If not, either |
---|
2973 | # the compiler is broken, or we cross compile. |
---|
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
2975 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2976 | if test "$cross_compiling" != yes; then |
---|
2977 | { { ac_try="$ac_link" |
---|
2978 | case "(($ac_try" in |
---|
2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2980 | *) ac_try_echo=$ac_try;; |
---|
2981 | esac |
---|
2982 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2983 | $as_echo "$ac_try_echo"; } >&5 |
---|
2984 | (eval "$ac_link") 2>&5 |
---|
2985 | ac_status=$? |
---|
2986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2987 | test $ac_status = 0; } |
---|
2988 | if { ac_try='./conftest$ac_cv_exeext' |
---|
2989 | { { case "(($ac_try" in |
---|
2990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2991 | *) ac_try_echo=$ac_try;; |
---|
2992 | esac |
---|
2993 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2994 | $as_echo "$ac_try_echo"; } >&5 |
---|
2995 | (eval "$ac_try") 2>&5 |
---|
2996 | ac_status=$? |
---|
2997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2998 | test $ac_status = 0; }; }; then |
---|
2999 | cross_compiling=no |
---|
3000 | else |
---|
3001 | if test "$cross_compiling" = maybe; then |
---|
3002 | cross_compiling=yes |
---|
3003 | else |
---|
3004 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3005 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3006 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3007 | If you meant to cross compile, use \`--host'. |
---|
3008 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3009 | fi |
---|
3010 | fi |
---|
3011 | fi |
---|
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3013 | $as_echo "$cross_compiling" >&6; } |
---|
3014 | |
---|
3015 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3016 | ac_clean_files=$ac_clean_files_save |
---|
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3018 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3019 | if ${ac_cv_objext+:} false; then : |
---|
3020 | $as_echo_n "(cached) " >&6 |
---|
3021 | else |
---|
3022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3023 | /* end confdefs.h. */ |
---|
3024 | |
---|
3025 | int |
---|
3026 | main () |
---|
3027 | { |
---|
3028 | |
---|
3029 | ; |
---|
3030 | return 0; |
---|
3031 | } |
---|
3032 | _ACEOF |
---|
3033 | rm -f conftest.o conftest.obj |
---|
3034 | if { { ac_try="$ac_compile" |
---|
3035 | case "(($ac_try" in |
---|
3036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3037 | *) ac_try_echo=$ac_try;; |
---|
3038 | esac |
---|
3039 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3040 | $as_echo "$ac_try_echo"; } >&5 |
---|
3041 | (eval "$ac_compile") 2>&5 |
---|
3042 | ac_status=$? |
---|
3043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3044 | test $ac_status = 0; }; then : |
---|
3045 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3046 | test -f "$ac_file" || continue; |
---|
3047 | case $ac_file in |
---|
3048 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3049 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3050 | break;; |
---|
3051 | esac |
---|
3052 | done |
---|
3053 | else |
---|
3054 | $as_echo "$as_me: failed program was:" >&5 |
---|
3055 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3056 | |
---|
3057 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3058 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3059 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3060 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3061 | fi |
---|
3062 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3063 | fi |
---|
3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3065 | $as_echo "$ac_cv_objext" >&6; } |
---|
3066 | OBJEXT=$ac_cv_objext |
---|
3067 | ac_objext=$OBJEXT |
---|
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3069 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3070 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3071 | $as_echo_n "(cached) " >&6 |
---|
3072 | else |
---|
3073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3074 | /* end confdefs.h. */ |
---|
3075 | |
---|
3076 | int |
---|
3077 | main () |
---|
3078 | { |
---|
3079 | #ifndef __GNUC__ |
---|
3080 | choke me |
---|
3081 | #endif |
---|
3082 | |
---|
3083 | ; |
---|
3084 | return 0; |
---|
3085 | } |
---|
3086 | _ACEOF |
---|
3087 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3088 | ac_compiler_gnu=yes |
---|
3089 | else |
---|
3090 | ac_compiler_gnu=no |
---|
3091 | fi |
---|
3092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3093 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3094 | |
---|
3095 | fi |
---|
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3097 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3098 | if test $ac_compiler_gnu = yes; then |
---|
3099 | GXX=yes |
---|
3100 | else |
---|
3101 | GXX= |
---|
3102 | fi |
---|
3103 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3104 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3106 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3107 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3108 | $as_echo_n "(cached) " >&6 |
---|
3109 | else |
---|
3110 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3111 | ac_cxx_werror_flag=yes |
---|
3112 | ac_cv_prog_cxx_g=no |
---|
3113 | CXXFLAGS="-g" |
---|
3114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3115 | /* end confdefs.h. */ |
---|
3116 | |
---|
3117 | int |
---|
3118 | main () |
---|
3119 | { |
---|
3120 | |
---|
3121 | ; |
---|
3122 | return 0; |
---|
3123 | } |
---|
3124 | _ACEOF |
---|
3125 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3126 | ac_cv_prog_cxx_g=yes |
---|
3127 | else |
---|
3128 | CXXFLAGS="" |
---|
3129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3130 | /* end confdefs.h. */ |
---|
3131 | |
---|
3132 | int |
---|
3133 | main () |
---|
3134 | { |
---|
3135 | |
---|
3136 | ; |
---|
3137 | return 0; |
---|
3138 | } |
---|
3139 | _ACEOF |
---|
3140 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3141 | |
---|
3142 | else |
---|
3143 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3144 | CXXFLAGS="-g" |
---|
3145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3146 | /* end confdefs.h. */ |
---|
3147 | |
---|
3148 | int |
---|
3149 | main () |
---|
3150 | { |
---|
3151 | |
---|
3152 | ; |
---|
3153 | return 0; |
---|
3154 | } |
---|
3155 | _ACEOF |
---|
3156 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3157 | ac_cv_prog_cxx_g=yes |
---|
3158 | fi |
---|
3159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3160 | fi |
---|
3161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3162 | fi |
---|
3163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3164 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3165 | fi |
---|
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3167 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3168 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3169 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3170 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3171 | if test "$GXX" = yes; then |
---|
3172 | CXXFLAGS="-g -O2" |
---|
3173 | else |
---|
3174 | CXXFLAGS="-g" |
---|
3175 | fi |
---|
3176 | else |
---|
3177 | if test "$GXX" = yes; then |
---|
3178 | CXXFLAGS="-O2" |
---|
3179 | else |
---|
3180 | CXXFLAGS= |
---|
3181 | fi |
---|
3182 | fi |
---|
3183 | ac_ext=c |
---|
3184 | ac_cpp='$CPP $CPPFLAGS' |
---|
3185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3188 | DEPDIR="${am__leading_dot}deps" |
---|
3189 | |
---|
3190 | ac_config_commands="$ac_config_commands depfiles" |
---|
3191 | |
---|
3192 | |
---|
3193 | am_make=${MAKE-make} |
---|
3194 | cat > confinc << 'END' |
---|
3195 | am__doit: |
---|
3196 | @echo this is the am__doit target |
---|
3197 | .PHONY: am__doit |
---|
3198 | END |
---|
3199 | # If we don't find an include directive, just comment out the code. |
---|
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3201 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3202 | am__include="#" |
---|
3203 | am__quote= |
---|
3204 | _am_result=none |
---|
3205 | # First try GNU make style include. |
---|
3206 | echo "include confinc" > confmf |
---|
3207 | # Ignore all kinds of additional output from `make'. |
---|
3208 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3209 | *the\ am__doit\ target*) |
---|
3210 | am__include=include |
---|
3211 | am__quote= |
---|
3212 | _am_result=GNU |
---|
3213 | ;; |
---|
3214 | esac |
---|
3215 | # Now try BSD make style include. |
---|
3216 | if test "$am__include" = "#"; then |
---|
3217 | echo '.include "confinc"' > confmf |
---|
3218 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3219 | *the\ am__doit\ target*) |
---|
3220 | am__include=.include |
---|
3221 | am__quote="\"" |
---|
3222 | _am_result=BSD |
---|
3223 | ;; |
---|
3224 | esac |
---|
3225 | fi |
---|
3226 | |
---|
3227 | |
---|
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3229 | $as_echo "$_am_result" >&6; } |
---|
3230 | rm -f confinc confmf |
---|
3231 | |
---|
3232 | # Check whether --enable-dependency-tracking was given. |
---|
3233 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3234 | enableval=$enable_dependency_tracking; |
---|
3235 | fi |
---|
3236 | |
---|
3237 | if test "x$enable_dependency_tracking" != xno; then |
---|
3238 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3239 | AMDEPBACKSLASH='\' |
---|
3240 | am__nodep='_no' |
---|
3241 | fi |
---|
3242 | if test "x$enable_dependency_tracking" != xno; then |
---|
3243 | AMDEP_TRUE= |
---|
3244 | AMDEP_FALSE='#' |
---|
3245 | else |
---|
3246 | AMDEP_TRUE='#' |
---|
3247 | AMDEP_FALSE= |
---|
3248 | fi |
---|
3249 | |
---|
3250 | |
---|
3251 | |
---|
3252 | depcc="$CXX" am_compiler_list= |
---|
3253 | |
---|
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3255 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3256 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
3257 | $as_echo_n "(cached) " >&6 |
---|
3258 | else |
---|
3259 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3260 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3261 | # making bogus files that we don't know about and never remove. For |
---|
3262 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3263 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3264 | # in D'. |
---|
3265 | rm -rf conftest.dir |
---|
3266 | mkdir conftest.dir |
---|
3267 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3268 | # using a relative directory. |
---|
3269 | cp "$am_depcomp" conftest.dir |
---|
3270 | cd conftest.dir |
---|
3271 | # We will build objects and dependencies in a subdirectory because |
---|
3272 | # it helps to detect inapplicable dependency modes. For instance |
---|
3273 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3274 | # side effect of compilation, but ICC will put the dependencies in |
---|
3275 | # the current directory while Tru64 will put them in the object |
---|
3276 | # directory. |
---|
3277 | mkdir sub |
---|
3278 | |
---|
3279 | am_cv_CXX_dependencies_compiler_type=none |
---|
3280 | if test "$am_compiler_list" = ""; then |
---|
3281 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3282 | fi |
---|
3283 | am__universal=false |
---|
3284 | case " $depcc " in #( |
---|
3285 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3286 | esac |
---|
3287 | |
---|
3288 | for depmode in $am_compiler_list; do |
---|
3289 | # Setup a source with many dependencies, because some compilers |
---|
3290 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3291 | # we should not choose a depcomp mode which is confused by this. |
---|
3292 | # |
---|
3293 | # We need to recreate these files for each test, as the compiler may |
---|
3294 | # overwrite some of them when testing with obscure command lines. |
---|
3295 | # This happens at least with the AIX C compiler. |
---|
3296 | : > sub/conftest.c |
---|
3297 | for i in 1 2 3 4 5 6; do |
---|
3298 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3299 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3300 | # Solaris 8's {/usr,}/bin/sh. |
---|
3301 | touch sub/conftst$i.h |
---|
3302 | done |
---|
3303 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3304 | |
---|
3305 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3306 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3307 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
3308 | # versions had trouble with output in subdirs |
---|
3309 | am__obj=sub/conftest.${OBJEXT-o} |
---|
3310 | am__minus_obj="-o $am__obj" |
---|
3311 | case $depmode in |
---|
3312 | gcc) |
---|
3313 | # This depmode causes a compiler race in universal mode. |
---|
3314 | test "$am__universal" = false || continue |
---|
3315 | ;; |
---|
3316 | nosideeffect) |
---|
3317 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3318 | # only be used when explicitly requested |
---|
3319 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3320 | continue |
---|
3321 | else |
---|
3322 | break |
---|
3323 | fi |
---|
3324 | ;; |
---|
3325 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
3326 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
3327 | # not run yet. These depmodes are late enough in the game, and |
---|
3328 | # so weak that their functioning should not be impacted. |
---|
3329 | am__obj=conftest.${OBJEXT-o} |
---|
3330 | am__minus_obj= |
---|
3331 | ;; |
---|
3332 | none) break ;; |
---|
3333 | esac |
---|
3334 | if depmode=$depmode \ |
---|
3335 | source=sub/conftest.c object=$am__obj \ |
---|
3336 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3337 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
3338 | >/dev/null 2>conftest.err && |
---|
3339 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3340 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3341 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
3342 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3343 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3344 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3345 | # that says an option was ignored or not supported. |
---|
3346 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3347 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3348 | # The diagnosis changed in icc 8.0: |
---|
3349 | # icc: Command line remark: option '-MP' not supported |
---|
3350 | if (grep 'ignoring option' conftest.err || |
---|
3351 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3352 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
3353 | break |
---|
3354 | fi |
---|
3355 | fi |
---|
3356 | done |
---|
3357 | |
---|
3358 | cd .. |
---|
3359 | rm -rf conftest.dir |
---|
3360 | else |
---|
3361 | am_cv_CXX_dependencies_compiler_type=none |
---|
3362 | fi |
---|
3363 | |
---|
3364 | fi |
---|
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
3366 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
3367 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
3368 | |
---|
3369 | if |
---|
3370 | test "x$enable_dependency_tracking" != xno \ |
---|
3371 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
3372 | am__fastdepCXX_TRUE= |
---|
3373 | am__fastdepCXX_FALSE='#' |
---|
3374 | else |
---|
3375 | am__fastdepCXX_TRUE='#' |
---|
3376 | am__fastdepCXX_FALSE= |
---|
3377 | fi |
---|
3378 | |
---|
3379 | |
---|
3380 | ac_ext=c |
---|
3381 | ac_cpp='$CPP $CPPFLAGS' |
---|
3382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3385 | if test -n "$ac_tool_prefix"; then |
---|
3386 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
3387 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3389 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3390 | if ${ac_cv_prog_CC+:} false; then : |
---|
3391 | $as_echo_n "(cached) " >&6 |
---|
3392 | else |
---|
3393 | if test -n "$CC"; then |
---|
3394 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3395 | else |
---|
3396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3397 | for as_dir in $PATH |
---|
3398 | do |
---|
3399 | IFS=$as_save_IFS |
---|
3400 | test -z "$as_dir" && as_dir=. |
---|
3401 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3403 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
3404 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3405 | break 2 |
---|
3406 | fi |
---|
3407 | done |
---|
3408 | done |
---|
3409 | IFS=$as_save_IFS |
---|
3410 | |
---|
3411 | fi |
---|
3412 | fi |
---|
3413 | CC=$ac_cv_prog_CC |
---|
3414 | if test -n "$CC"; then |
---|
3415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3416 | $as_echo "$CC" >&6; } |
---|
3417 | else |
---|
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3419 | $as_echo "no" >&6; } |
---|
3420 | fi |
---|
3421 | |
---|
3422 | |
---|
3423 | fi |
---|
3424 | if test -z "$ac_cv_prog_CC"; then |
---|
3425 | ac_ct_CC=$CC |
---|
3426 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3427 | set dummy gcc; ac_word=$2 |
---|
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3429 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3430 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3431 | $as_echo_n "(cached) " >&6 |
---|
3432 | else |
---|
3433 | if test -n "$ac_ct_CC"; then |
---|
3434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3435 | else |
---|
3436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3437 | for as_dir in $PATH |
---|
3438 | do |
---|
3439 | IFS=$as_save_IFS |
---|
3440 | test -z "$as_dir" && as_dir=. |
---|
3441 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3443 | ac_cv_prog_ac_ct_CC="gcc" |
---|
3444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3445 | break 2 |
---|
3446 | fi |
---|
3447 | done |
---|
3448 | done |
---|
3449 | IFS=$as_save_IFS |
---|
3450 | |
---|
3451 | fi |
---|
3452 | fi |
---|
3453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3454 | if test -n "$ac_ct_CC"; then |
---|
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3456 | $as_echo "$ac_ct_CC" >&6; } |
---|
3457 | else |
---|
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3459 | $as_echo "no" >&6; } |
---|
3460 | fi |
---|
3461 | |
---|
3462 | if test "x$ac_ct_CC" = x; then |
---|
3463 | CC="" |
---|
3464 | else |
---|
3465 | case $cross_compiling:$ac_tool_warned in |
---|
3466 | yes:) |
---|
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3468 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3469 | ac_tool_warned=yes ;; |
---|
3470 | esac |
---|
3471 | CC=$ac_ct_CC |
---|
3472 | fi |
---|
3473 | else |
---|
3474 | CC="$ac_cv_prog_CC" |
---|
3475 | fi |
---|
3476 | |
---|
3477 | if test -z "$CC"; then |
---|
3478 | if test -n "$ac_tool_prefix"; then |
---|
3479 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
3480 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3482 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3483 | if ${ac_cv_prog_CC+:} false; then : |
---|
3484 | $as_echo_n "(cached) " >&6 |
---|
3485 | else |
---|
3486 | if test -n "$CC"; then |
---|
3487 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3488 | else |
---|
3489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3490 | for as_dir in $PATH |
---|
3491 | do |
---|
3492 | IFS=$as_save_IFS |
---|
3493 | test -z "$as_dir" && as_dir=. |
---|
3494 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3496 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
3497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3498 | break 2 |
---|
3499 | fi |
---|
3500 | done |
---|
3501 | done |
---|
3502 | IFS=$as_save_IFS |
---|
3503 | |
---|
3504 | fi |
---|
3505 | fi |
---|
3506 | CC=$ac_cv_prog_CC |
---|
3507 | if test -n "$CC"; then |
---|
3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3509 | $as_echo "$CC" >&6; } |
---|
3510 | else |
---|
3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3512 | $as_echo "no" >&6; } |
---|
3513 | fi |
---|
3514 | |
---|
3515 | |
---|
3516 | fi |
---|
3517 | fi |
---|
3518 | if test -z "$CC"; then |
---|
3519 | # Extract the first word of "cc", so it can be a program name with args. |
---|
3520 | set dummy cc; ac_word=$2 |
---|
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3522 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3523 | if ${ac_cv_prog_CC+:} false; then : |
---|
3524 | $as_echo_n "(cached) " >&6 |
---|
3525 | else |
---|
3526 | if test -n "$CC"; then |
---|
3527 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3528 | else |
---|
3529 | ac_prog_rejected=no |
---|
3530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3531 | for as_dir in $PATH |
---|
3532 | do |
---|
3533 | IFS=$as_save_IFS |
---|
3534 | test -z "$as_dir" && as_dir=. |
---|
3535 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3537 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3538 | ac_prog_rejected=yes |
---|
3539 | continue |
---|
3540 | fi |
---|
3541 | ac_cv_prog_CC="cc" |
---|
3542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3543 | break 2 |
---|
3544 | fi |
---|
3545 | done |
---|
3546 | done |
---|
3547 | IFS=$as_save_IFS |
---|
3548 | |
---|
3549 | if test $ac_prog_rejected = yes; then |
---|
3550 | # We found a bogon in the path, so make sure we never use it. |
---|
3551 | set dummy $ac_cv_prog_CC |
---|
3552 | shift |
---|
3553 | if test $# != 0; then |
---|
3554 | # We chose a different compiler from the bogus one. |
---|
3555 | # However, it has the same basename, so the bogon will be chosen |
---|
3556 | # first if we set CC to just the basename; use the full file name. |
---|
3557 | shift |
---|
3558 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3559 | fi |
---|
3560 | fi |
---|
3561 | fi |
---|
3562 | fi |
---|
3563 | CC=$ac_cv_prog_CC |
---|
3564 | if test -n "$CC"; then |
---|
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3566 | $as_echo "$CC" >&6; } |
---|
3567 | else |
---|
3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3569 | $as_echo "no" >&6; } |
---|
3570 | fi |
---|
3571 | |
---|
3572 | |
---|
3573 | fi |
---|
3574 | if test -z "$CC"; then |
---|
3575 | if test -n "$ac_tool_prefix"; then |
---|
3576 | for ac_prog in cl.exe |
---|
3577 | do |
---|
3578 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3579 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3581 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3582 | if ${ac_cv_prog_CC+:} false; then : |
---|
3583 | $as_echo_n "(cached) " >&6 |
---|
3584 | else |
---|
3585 | if test -n "$CC"; then |
---|
3586 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3587 | else |
---|
3588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3589 | for as_dir in $PATH |
---|
3590 | do |
---|
3591 | IFS=$as_save_IFS |
---|
3592 | test -z "$as_dir" && as_dir=. |
---|
3593 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3595 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3597 | break 2 |
---|
3598 | fi |
---|
3599 | done |
---|
3600 | done |
---|
3601 | IFS=$as_save_IFS |
---|
3602 | |
---|
3603 | fi |
---|
3604 | fi |
---|
3605 | CC=$ac_cv_prog_CC |
---|
3606 | if test -n "$CC"; then |
---|
3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3608 | $as_echo "$CC" >&6; } |
---|
3609 | else |
---|
3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3611 | $as_echo "no" >&6; } |
---|
3612 | fi |
---|
3613 | |
---|
3614 | |
---|
3615 | test -n "$CC" && break |
---|
3616 | done |
---|
3617 | fi |
---|
3618 | if test -z "$CC"; then |
---|
3619 | ac_ct_CC=$CC |
---|
3620 | for ac_prog in cl.exe |
---|
3621 | do |
---|
3622 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3623 | set dummy $ac_prog; ac_word=$2 |
---|
3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3625 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3626 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3627 | $as_echo_n "(cached) " >&6 |
---|
3628 | else |
---|
3629 | if test -n "$ac_ct_CC"; then |
---|
3630 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3631 | else |
---|
3632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3633 | for as_dir in $PATH |
---|
3634 | do |
---|
3635 | IFS=$as_save_IFS |
---|
3636 | test -z "$as_dir" && as_dir=. |
---|
3637 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3639 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3641 | break 2 |
---|
3642 | fi |
---|
3643 | done |
---|
3644 | done |
---|
3645 | IFS=$as_save_IFS |
---|
3646 | |
---|
3647 | fi |
---|
3648 | fi |
---|
3649 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3650 | if test -n "$ac_ct_CC"; then |
---|
3651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3652 | $as_echo "$ac_ct_CC" >&6; } |
---|
3653 | else |
---|
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3655 | $as_echo "no" >&6; } |
---|
3656 | fi |
---|
3657 | |
---|
3658 | |
---|
3659 | test -n "$ac_ct_CC" && break |
---|
3660 | done |
---|
3661 | |
---|
3662 | if test "x$ac_ct_CC" = x; then |
---|
3663 | CC="" |
---|
3664 | else |
---|
3665 | case $cross_compiling:$ac_tool_warned in |
---|
3666 | yes:) |
---|
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3668 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3669 | ac_tool_warned=yes ;; |
---|
3670 | esac |
---|
3671 | CC=$ac_ct_CC |
---|
3672 | fi |
---|
3673 | fi |
---|
3674 | |
---|
3675 | fi |
---|
3676 | |
---|
3677 | |
---|
3678 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3679 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3680 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3681 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3682 | |
---|
3683 | # Provide some information about the compiler. |
---|
3684 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3685 | set X $ac_compile |
---|
3686 | ac_compiler=$2 |
---|
3687 | for ac_option in --version -v -V -qversion; do |
---|
3688 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3689 | case "(($ac_try" in |
---|
3690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3691 | *) ac_try_echo=$ac_try;; |
---|
3692 | esac |
---|
3693 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3694 | $as_echo "$ac_try_echo"; } >&5 |
---|
3695 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3696 | ac_status=$? |
---|
3697 | if test -s conftest.err; then |
---|
3698 | sed '10a\ |
---|
3699 | ... rest of stderr output deleted ... |
---|
3700 | 10q' conftest.err >conftest.er1 |
---|
3701 | cat conftest.er1 >&5 |
---|
3702 | fi |
---|
3703 | rm -f conftest.er1 conftest.err |
---|
3704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3705 | test $ac_status = 0; } |
---|
3706 | done |
---|
3707 | |
---|
3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3709 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3710 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3711 | $as_echo_n "(cached) " >&6 |
---|
3712 | else |
---|
3713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3714 | /* end confdefs.h. */ |
---|
3715 | |
---|
3716 | int |
---|
3717 | main () |
---|
3718 | { |
---|
3719 | #ifndef __GNUC__ |
---|
3720 | choke me |
---|
3721 | #endif |
---|
3722 | |
---|
3723 | ; |
---|
3724 | return 0; |
---|
3725 | } |
---|
3726 | _ACEOF |
---|
3727 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3728 | ac_compiler_gnu=yes |
---|
3729 | else |
---|
3730 | ac_compiler_gnu=no |
---|
3731 | fi |
---|
3732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3733 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3734 | |
---|
3735 | fi |
---|
3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3737 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3738 | if test $ac_compiler_gnu = yes; then |
---|
3739 | GCC=yes |
---|
3740 | else |
---|
3741 | GCC= |
---|
3742 | fi |
---|
3743 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3744 | ac_save_CFLAGS=$CFLAGS |
---|
3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3746 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3747 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3748 | $as_echo_n "(cached) " >&6 |
---|
3749 | else |
---|
3750 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3751 | ac_c_werror_flag=yes |
---|
3752 | ac_cv_prog_cc_g=no |
---|
3753 | CFLAGS="-g" |
---|
3754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3755 | /* end confdefs.h. */ |
---|
3756 | |
---|
3757 | int |
---|
3758 | main () |
---|
3759 | { |
---|
3760 | |
---|
3761 | ; |
---|
3762 | return 0; |
---|
3763 | } |
---|
3764 | _ACEOF |
---|
3765 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3766 | ac_cv_prog_cc_g=yes |
---|
3767 | else |
---|
3768 | CFLAGS="" |
---|
3769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3770 | /* end confdefs.h. */ |
---|
3771 | |
---|
3772 | int |
---|
3773 | main () |
---|
3774 | { |
---|
3775 | |
---|
3776 | ; |
---|
3777 | return 0; |
---|
3778 | } |
---|
3779 | _ACEOF |
---|
3780 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3781 | |
---|
3782 | else |
---|
3783 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3784 | CFLAGS="-g" |
---|
3785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3786 | /* end confdefs.h. */ |
---|
3787 | |
---|
3788 | int |
---|
3789 | main () |
---|
3790 | { |
---|
3791 | |
---|
3792 | ; |
---|
3793 | return 0; |
---|
3794 | } |
---|
3795 | _ACEOF |
---|
3796 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3797 | ac_cv_prog_cc_g=yes |
---|
3798 | fi |
---|
3799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3800 | fi |
---|
3801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3802 | fi |
---|
3803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3804 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3805 | fi |
---|
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3807 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3808 | if test "$ac_test_CFLAGS" = set; then |
---|
3809 | CFLAGS=$ac_save_CFLAGS |
---|
3810 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3811 | if test "$GCC" = yes; then |
---|
3812 | CFLAGS="-g -O2" |
---|
3813 | else |
---|
3814 | CFLAGS="-g" |
---|
3815 | fi |
---|
3816 | else |
---|
3817 | if test "$GCC" = yes; then |
---|
3818 | CFLAGS="-O2" |
---|
3819 | else |
---|
3820 | CFLAGS= |
---|
3821 | fi |
---|
3822 | fi |
---|
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3824 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3825 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3826 | $as_echo_n "(cached) " >&6 |
---|
3827 | else |
---|
3828 | ac_cv_prog_cc_c89=no |
---|
3829 | ac_save_CC=$CC |
---|
3830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3831 | /* end confdefs.h. */ |
---|
3832 | #include <stdarg.h> |
---|
3833 | #include <stdio.h> |
---|
3834 | #include <sys/types.h> |
---|
3835 | #include <sys/stat.h> |
---|
3836 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3837 | struct buf { int x; }; |
---|
3838 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3839 | static char *e (p, i) |
---|
3840 | char **p; |
---|
3841 | int i; |
---|
3842 | { |
---|
3843 | return p[i]; |
---|
3844 | } |
---|
3845 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3846 | { |
---|
3847 | char *s; |
---|
3848 | va_list v; |
---|
3849 | va_start (v,p); |
---|
3850 | s = g (p, va_arg (v,int)); |
---|
3851 | va_end (v); |
---|
3852 | return s; |
---|
3853 | } |
---|
3854 | |
---|
3855 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3856 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3857 | These don't provoke an error unfortunately, instead are silently treated |
---|
3858 | as 'x'. The following induces an error, until -std is added to get |
---|
3859 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3860 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3861 | that's true only with -std. */ |
---|
3862 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3863 | |
---|
3864 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3865 | inside strings and character constants. */ |
---|
3866 | #define FOO(x) 'x' |
---|
3867 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3868 | |
---|
3869 | int test (int i, double x); |
---|
3870 | struct s1 {int (*f) (int a);}; |
---|
3871 | struct s2 {int (*f) (double a);}; |
---|
3872 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3873 | int argc; |
---|
3874 | char **argv; |
---|
3875 | int |
---|
3876 | main () |
---|
3877 | { |
---|
3878 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3879 | ; |
---|
3880 | return 0; |
---|
3881 | } |
---|
3882 | _ACEOF |
---|
3883 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3884 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3885 | do |
---|
3886 | CC="$ac_save_CC $ac_arg" |
---|
3887 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3888 | ac_cv_prog_cc_c89=$ac_arg |
---|
3889 | fi |
---|
3890 | rm -f core conftest.err conftest.$ac_objext |
---|
3891 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3892 | done |
---|
3893 | rm -f conftest.$ac_ext |
---|
3894 | CC=$ac_save_CC |
---|
3895 | |
---|
3896 | fi |
---|
3897 | # AC_CACHE_VAL |
---|
3898 | case "x$ac_cv_prog_cc_c89" in |
---|
3899 | x) |
---|
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3901 | $as_echo "none needed" >&6; } ;; |
---|
3902 | xno) |
---|
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3904 | $as_echo "unsupported" >&6; } ;; |
---|
3905 | *) |
---|
3906 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3908 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3909 | esac |
---|
3910 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3911 | |
---|
3912 | fi |
---|
3913 | |
---|
3914 | ac_ext=c |
---|
3915 | ac_cpp='$CPP $CPPFLAGS' |
---|
3916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3919 | |
---|
3920 | depcc="$CC" am_compiler_list= |
---|
3921 | |
---|
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3923 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3924 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
3925 | $as_echo_n "(cached) " >&6 |
---|
3926 | else |
---|
3927 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3928 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3929 | # making bogus files that we don't know about and never remove. For |
---|
3930 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3931 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3932 | # in D'. |
---|
3933 | rm -rf conftest.dir |
---|
3934 | mkdir conftest.dir |
---|
3935 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3936 | # using a relative directory. |
---|
3937 | cp "$am_depcomp" conftest.dir |
---|
3938 | cd conftest.dir |
---|
3939 | # We will build objects and dependencies in a subdirectory because |
---|
3940 | # it helps to detect inapplicable dependency modes. For instance |
---|
3941 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3942 | # side effect of compilation, but ICC will put the dependencies in |
---|
3943 | # the current directory while Tru64 will put them in the object |
---|
3944 | # directory. |
---|
3945 | mkdir sub |
---|
3946 | |
---|
3947 | am_cv_CC_dependencies_compiler_type=none |
---|
3948 | if test "$am_compiler_list" = ""; then |
---|
3949 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3950 | fi |
---|
3951 | am__universal=false |
---|
3952 | case " $depcc " in #( |
---|
3953 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3954 | esac |
---|
3955 | |
---|
3956 | for depmode in $am_compiler_list; do |
---|
3957 | # Setup a source with many dependencies, because some compilers |
---|
3958 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3959 | # we should not choose a depcomp mode which is confused by this. |
---|
3960 | # |
---|
3961 | # We need to recreate these files for each test, as the compiler may |
---|
3962 | # overwrite some of them when testing with obscure command lines. |
---|
3963 | # This happens at least with the AIX C compiler. |
---|
3964 | : > sub/conftest.c |
---|
3965 | for i in 1 2 3 4 5 6; do |
---|
3966 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3967 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3968 | # Solaris 8's {/usr,}/bin/sh. |
---|
3969 | touch sub/conftst$i.h |
---|
3970 | done |
---|
3971 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3972 | |
---|
3973 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3974 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3975 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
3976 | # versions had trouble with output in subdirs |
---|
3977 | am__obj=sub/conftest.${OBJEXT-o} |
---|
3978 | am__minus_obj="-o $am__obj" |
---|
3979 | case $depmode in |
---|
3980 | gcc) |
---|
3981 | # This depmode causes a compiler race in universal mode. |
---|
3982 | test "$am__universal" = false || continue |
---|
3983 | ;; |
---|
3984 | nosideeffect) |
---|
3985 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3986 | # only be used when explicitly requested |
---|
3987 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3988 | continue |
---|
3989 | else |
---|
3990 | break |
---|
3991 | fi |
---|
3992 | ;; |
---|
3993 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
3994 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
3995 | # not run yet. These depmodes are late enough in the game, and |
---|
3996 | # so weak that their functioning should not be impacted. |
---|
3997 | am__obj=conftest.${OBJEXT-o} |
---|
3998 | am__minus_obj= |
---|
3999 | ;; |
---|
4000 | none) break ;; |
---|
4001 | esac |
---|
4002 | if depmode=$depmode \ |
---|
4003 | source=sub/conftest.c object=$am__obj \ |
---|
4004 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4005 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4006 | >/dev/null 2>conftest.err && |
---|
4007 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4008 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4009 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4010 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4011 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4012 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4013 | # that says an option was ignored or not supported. |
---|
4014 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4015 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4016 | # The diagnosis changed in icc 8.0: |
---|
4017 | # icc: Command line remark: option '-MP' not supported |
---|
4018 | if (grep 'ignoring option' conftest.err || |
---|
4019 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4020 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4021 | break |
---|
4022 | fi |
---|
4023 | fi |
---|
4024 | done |
---|
4025 | |
---|
4026 | cd .. |
---|
4027 | rm -rf conftest.dir |
---|
4028 | else |
---|
4029 | am_cv_CC_dependencies_compiler_type=none |
---|
4030 | fi |
---|
4031 | |
---|
4032 | fi |
---|
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4034 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4035 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4036 | |
---|
4037 | if |
---|
4038 | test "x$enable_dependency_tracking" != xno \ |
---|
4039 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4040 | am__fastdepCC_TRUE= |
---|
4041 | am__fastdepCC_FALSE='#' |
---|
4042 | else |
---|
4043 | am__fastdepCC_TRUE='#' |
---|
4044 | am__fastdepCC_FALSE= |
---|
4045 | fi |
---|
4046 | |
---|
4047 | # ??? |
---|
4048 | |
---|
4049 | for ac_prog in flex lex |
---|
4050 | do |
---|
4051 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4052 | set dummy $ac_prog; ac_word=$2 |
---|
4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4054 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4055 | if ${ac_cv_prog_LEX+:} false; then : |
---|
4056 | $as_echo_n "(cached) " >&6 |
---|
4057 | else |
---|
4058 | if test -n "$LEX"; then |
---|
4059 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
4060 | else |
---|
4061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4062 | for as_dir in $PATH |
---|
4063 | do |
---|
4064 | IFS=$as_save_IFS |
---|
4065 | test -z "$as_dir" && as_dir=. |
---|
4066 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4068 | ac_cv_prog_LEX="$ac_prog" |
---|
4069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4070 | break 2 |
---|
4071 | fi |
---|
4072 | done |
---|
4073 | done |
---|
4074 | IFS=$as_save_IFS |
---|
4075 | |
---|
4076 | fi |
---|
4077 | fi |
---|
4078 | LEX=$ac_cv_prog_LEX |
---|
4079 | if test -n "$LEX"; then |
---|
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
---|
4081 | $as_echo "$LEX" >&6; } |
---|
4082 | else |
---|
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4084 | $as_echo "no" >&6; } |
---|
4085 | fi |
---|
4086 | |
---|
4087 | |
---|
4088 | test -n "$LEX" && break |
---|
4089 | done |
---|
4090 | test -n "$LEX" || LEX=":" |
---|
4091 | |
---|
4092 | if test "x$LEX" != "x:"; then |
---|
4093 | cat >conftest.l <<_ACEOF |
---|
4094 | %% |
---|
4095 | a { ECHO; } |
---|
4096 | b { REJECT; } |
---|
4097 | c { yymore (); } |
---|
4098 | d { yyless (1); } |
---|
4099 | e { yyless (input () != 0); } |
---|
4100 | f { unput (yytext[0]); } |
---|
4101 | . { BEGIN INITIAL; } |
---|
4102 | %% |
---|
4103 | #ifdef YYTEXT_POINTER |
---|
4104 | extern char *yytext; |
---|
4105 | #endif |
---|
4106 | int |
---|
4107 | main (void) |
---|
4108 | { |
---|
4109 | return ! yylex () + ! yywrap (); |
---|
4110 | } |
---|
4111 | _ACEOF |
---|
4112 | { { ac_try="$LEX conftest.l" |
---|
4113 | case "(($ac_try" in |
---|
4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4115 | *) ac_try_echo=$ac_try;; |
---|
4116 | esac |
---|
4117 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4118 | $as_echo "$ac_try_echo"; } >&5 |
---|
4119 | (eval "$LEX conftest.l") 2>&5 |
---|
4120 | ac_status=$? |
---|
4121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4122 | test $ac_status = 0; } |
---|
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
---|
4124 | $as_echo_n "checking lex output file root... " >&6; } |
---|
4125 | if ${ac_cv_prog_lex_root+:} false; then : |
---|
4126 | $as_echo_n "(cached) " >&6 |
---|
4127 | else |
---|
4128 | |
---|
4129 | if test -f lex.yy.c; then |
---|
4130 | ac_cv_prog_lex_root=lex.yy |
---|
4131 | elif test -f lexyy.c; then |
---|
4132 | ac_cv_prog_lex_root=lexyy |
---|
4133 | else |
---|
4134 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
---|
4135 | fi |
---|
4136 | fi |
---|
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
---|
4138 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
4139 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
4140 | |
---|
4141 | if test -z "${LEXLIB+set}"; then |
---|
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
---|
4143 | $as_echo_n "checking lex library... " >&6; } |
---|
4144 | if ${ac_cv_lib_lex+:} false; then : |
---|
4145 | $as_echo_n "(cached) " >&6 |
---|
4146 | else |
---|
4147 | |
---|
4148 | ac_save_LIBS=$LIBS |
---|
4149 | ac_cv_lib_lex='none needed' |
---|
4150 | for ac_lib in '' -lfl -ll; do |
---|
4151 | LIBS="$ac_lib $ac_save_LIBS" |
---|
4152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4153 | /* end confdefs.h. */ |
---|
4154 | `cat $LEX_OUTPUT_ROOT.c` |
---|
4155 | _ACEOF |
---|
4156 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4157 | ac_cv_lib_lex=$ac_lib |
---|
4158 | fi |
---|
4159 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4160 | conftest$ac_exeext conftest.$ac_ext |
---|
4161 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
4162 | done |
---|
4163 | LIBS=$ac_save_LIBS |
---|
4164 | |
---|
4165 | fi |
---|
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
---|
4167 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
4168 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
4169 | fi |
---|
4170 | |
---|
4171 | |
---|
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
---|
4173 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
4174 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
---|
4175 | $as_echo_n "(cached) " >&6 |
---|
4176 | else |
---|
4177 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
4178 | # default is implementation-dependent. Figure out which it is, since |
---|
4179 | # not all implementations provide the %pointer and %array declarations. |
---|
4180 | ac_cv_prog_lex_yytext_pointer=no |
---|
4181 | ac_save_LIBS=$LIBS |
---|
4182 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
4183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4184 | /* end confdefs.h. */ |
---|
4185 | |
---|
4186 | #define YYTEXT_POINTER 1 |
---|
4187 | `cat $LEX_OUTPUT_ROOT.c` |
---|
4188 | _ACEOF |
---|
4189 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4190 | ac_cv_prog_lex_yytext_pointer=yes |
---|
4191 | fi |
---|
4192 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4193 | conftest$ac_exeext conftest.$ac_ext |
---|
4194 | LIBS=$ac_save_LIBS |
---|
4195 | |
---|
4196 | fi |
---|
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
4198 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
4199 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
4200 | |
---|
4201 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
---|
4202 | |
---|
4203 | fi |
---|
4204 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
4205 | |
---|
4206 | fi |
---|
4207 | if test "$LEX" = :; then |
---|
4208 | LEX=${am_missing_run}flex |
---|
4209 | fi |
---|
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
4211 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
4212 | set x ${MAKE-make} |
---|
4213 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
4214 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
4215 | $as_echo_n "(cached) " >&6 |
---|
4216 | else |
---|
4217 | cat >conftest.make <<\_ACEOF |
---|
4218 | SHELL = /bin/sh |
---|
4219 | all: |
---|
4220 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
4221 | _ACEOF |
---|
4222 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
4223 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
4224 | *@@@%%%=?*=@@@%%%*) |
---|
4225 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
4226 | *) |
---|
4227 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
4228 | esac |
---|
4229 | rm -f conftest.make |
---|
4230 | fi |
---|
4231 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4233 | $as_echo "yes" >&6; } |
---|
4234 | SET_MAKE= |
---|
4235 | else |
---|
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4237 | $as_echo "no" >&6; } |
---|
4238 | SET_MAKE="MAKE=${MAKE-make}" |
---|
4239 | fi |
---|
4240 | |
---|
4241 | |
---|
4242 | |
---|
4243 | |
---|
4244 | ac_ext=c |
---|
4245 | ac_cpp='$CPP $CPPFLAGS' |
---|
4246 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4247 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4248 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
4250 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
4251 | # On Suns, sometimes $CPP names a directory. |
---|
4252 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4253 | CPP= |
---|
4254 | fi |
---|
4255 | if test -z "$CPP"; then |
---|
4256 | if ${ac_cv_prog_CPP+:} false; then : |
---|
4257 | $as_echo_n "(cached) " >&6 |
---|
4258 | else |
---|
4259 | # Double quotes because CPP needs to be expanded |
---|
4260 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4261 | do |
---|
4262 | ac_preproc_ok=false |
---|
4263 | for ac_c_preproc_warn_flag in '' yes |
---|
4264 | do |
---|
4265 | # Use a header file that comes with gcc, so configuring glibc |
---|
4266 | # with a fresh cross-compiler works. |
---|
4267 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4268 | # <limits.h> exists even on freestanding compilers. |
---|
4269 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4270 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4272 | /* end confdefs.h. */ |
---|
4273 | #ifdef __STDC__ |
---|
4274 | # include <limits.h> |
---|
4275 | #else |
---|
4276 | # include <assert.h> |
---|
4277 | #endif |
---|
4278 | Syntax error |
---|
4279 | _ACEOF |
---|
4280 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4281 | |
---|
4282 | else |
---|
4283 | # Broken: fails on valid input. |
---|
4284 | continue |
---|
4285 | fi |
---|
4286 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4287 | |
---|
4288 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4289 | # can be detected and how. |
---|
4290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4291 | /* end confdefs.h. */ |
---|
4292 | #include <ac_nonexistent.h> |
---|
4293 | _ACEOF |
---|
4294 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4295 | # Broken: success on invalid input. |
---|
4296 | continue |
---|
4297 | else |
---|
4298 | # Passes both tests. |
---|
4299 | ac_preproc_ok=: |
---|
4300 | break |
---|
4301 | fi |
---|
4302 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4303 | |
---|
4304 | done |
---|
4305 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4306 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4307 | if $ac_preproc_ok; then : |
---|
4308 | break |
---|
4309 | fi |
---|
4310 | |
---|
4311 | done |
---|
4312 | ac_cv_prog_CPP=$CPP |
---|
4313 | |
---|
4314 | fi |
---|
4315 | CPP=$ac_cv_prog_CPP |
---|
4316 | else |
---|
4317 | ac_cv_prog_CPP=$CPP |
---|
4318 | fi |
---|
4319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
4320 | $as_echo "$CPP" >&6; } |
---|
4321 | ac_preproc_ok=false |
---|
4322 | for ac_c_preproc_warn_flag in '' yes |
---|
4323 | do |
---|
4324 | # Use a header file that comes with gcc, so configuring glibc |
---|
4325 | # with a fresh cross-compiler works. |
---|
4326 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4327 | # <limits.h> exists even on freestanding compilers. |
---|
4328 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4329 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4331 | /* end confdefs.h. */ |
---|
4332 | #ifdef __STDC__ |
---|
4333 | # include <limits.h> |
---|
4334 | #else |
---|
4335 | # include <assert.h> |
---|
4336 | #endif |
---|
4337 | Syntax error |
---|
4338 | _ACEOF |
---|
4339 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4340 | |
---|
4341 | else |
---|
4342 | # Broken: fails on valid input. |
---|
4343 | continue |
---|
4344 | fi |
---|
4345 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4346 | |
---|
4347 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4348 | # can be detected and how. |
---|
4349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4350 | /* end confdefs.h. */ |
---|
4351 | #include <ac_nonexistent.h> |
---|
4352 | _ACEOF |
---|
4353 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
4354 | # Broken: success on invalid input. |
---|
4355 | continue |
---|
4356 | else |
---|
4357 | # Passes both tests. |
---|
4358 | ac_preproc_ok=: |
---|
4359 | break |
---|
4360 | fi |
---|
4361 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
4362 | |
---|
4363 | done |
---|
4364 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4365 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
4366 | if $ac_preproc_ok; then : |
---|
4367 | |
---|
4368 | else |
---|
4369 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4370 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4371 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
4372 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4373 | fi |
---|
4374 | |
---|
4375 | ac_ext=c |
---|
4376 | ac_cpp='$CPP $CPPFLAGS' |
---|
4377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4380 | |
---|
4381 | |
---|
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4383 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4384 | if ${ac_cv_path_GREP+:} false; then : |
---|
4385 | $as_echo_n "(cached) " >&6 |
---|
4386 | else |
---|
4387 | if test -z "$GREP"; then |
---|
4388 | ac_path_GREP_found=false |
---|
4389 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4391 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4392 | do |
---|
4393 | IFS=$as_save_IFS |
---|
4394 | test -z "$as_dir" && as_dir=. |
---|
4395 | for ac_prog in grep ggrep; do |
---|
4396 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4397 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4398 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
4399 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4400 | # Check for GNU $ac_path_GREP |
---|
4401 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4402 | *GNU*) |
---|
4403 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4404 | *) |
---|
4405 | ac_count=0 |
---|
4406 | $as_echo_n 0123456789 >"conftest.in" |
---|
4407 | while : |
---|
4408 | do |
---|
4409 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4410 | mv "conftest.tmp" "conftest.in" |
---|
4411 | cp "conftest.in" "conftest.nl" |
---|
4412 | $as_echo 'GREP' >> "conftest.nl" |
---|
4413 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4414 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4415 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4416 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4417 | # Best one so far, save it but keep looking for a better one |
---|
4418 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4419 | ac_path_GREP_max=$ac_count |
---|
4420 | fi |
---|
4421 | # 10*(2^10) chars as input seems more than enough |
---|
4422 | test $ac_count -gt 10 && break |
---|
4423 | done |
---|
4424 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4425 | esac |
---|
4426 | |
---|
4427 | $ac_path_GREP_found && break 3 |
---|
4428 | done |
---|
4429 | done |
---|
4430 | done |
---|
4431 | IFS=$as_save_IFS |
---|
4432 | if test -z "$ac_cv_path_GREP"; then |
---|
4433 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4434 | fi |
---|
4435 | else |
---|
4436 | ac_cv_path_GREP=$GREP |
---|
4437 | fi |
---|
4438 | |
---|
4439 | fi |
---|
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4441 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4442 | GREP="$ac_cv_path_GREP" |
---|
4443 | |
---|
4444 | |
---|
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4446 | $as_echo_n "checking for egrep... " >&6; } |
---|
4447 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4448 | $as_echo_n "(cached) " >&6 |
---|
4449 | else |
---|
4450 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4451 | then ac_cv_path_EGREP="$GREP -E" |
---|
4452 | else |
---|
4453 | if test -z "$EGREP"; then |
---|
4454 | ac_path_EGREP_found=false |
---|
4455 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4457 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4458 | do |
---|
4459 | IFS=$as_save_IFS |
---|
4460 | test -z "$as_dir" && as_dir=. |
---|
4461 | for ac_prog in egrep; do |
---|
4462 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4463 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4464 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
4465 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4466 | # Check for GNU $ac_path_EGREP |
---|
4467 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4468 | *GNU*) |
---|
4469 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4470 | *) |
---|
4471 | ac_count=0 |
---|
4472 | $as_echo_n 0123456789 >"conftest.in" |
---|
4473 | while : |
---|
4474 | do |
---|
4475 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4476 | mv "conftest.tmp" "conftest.in" |
---|
4477 | cp "conftest.in" "conftest.nl" |
---|
4478 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4479 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4480 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4481 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4482 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4483 | # Best one so far, save it but keep looking for a better one |
---|
4484 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4485 | ac_path_EGREP_max=$ac_count |
---|
4486 | fi |
---|
4487 | # 10*(2^10) chars as input seems more than enough |
---|
4488 | test $ac_count -gt 10 && break |
---|
4489 | done |
---|
4490 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4491 | esac |
---|
4492 | |
---|
4493 | $ac_path_EGREP_found && break 3 |
---|
4494 | done |
---|
4495 | done |
---|
4496 | done |
---|
4497 | IFS=$as_save_IFS |
---|
4498 | if test -z "$ac_cv_path_EGREP"; then |
---|
4499 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4500 | fi |
---|
4501 | else |
---|
4502 | ac_cv_path_EGREP=$EGREP |
---|
4503 | fi |
---|
4504 | |
---|
4505 | fi |
---|
4506 | fi |
---|
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4508 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4509 | EGREP="$ac_cv_path_EGREP" |
---|
4510 | |
---|
4511 | |
---|
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
4513 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
4514 | if ${ac_cv_header_stdc+:} false; then : |
---|
4515 | $as_echo_n "(cached) " >&6 |
---|
4516 | else |
---|
4517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4518 | /* end confdefs.h. */ |
---|
4519 | #include <stdlib.h> |
---|
4520 | #include <stdarg.h> |
---|
4521 | #include <string.h> |
---|
4522 | #include <float.h> |
---|
4523 | |
---|
4524 | int |
---|
4525 | main () |
---|
4526 | { |
---|
4527 | |
---|
4528 | ; |
---|
4529 | return 0; |
---|
4530 | } |
---|
4531 | _ACEOF |
---|
4532 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4533 | ac_cv_header_stdc=yes |
---|
4534 | else |
---|
4535 | ac_cv_header_stdc=no |
---|
4536 | fi |
---|
4537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4538 | |
---|
4539 | if test $ac_cv_header_stdc = yes; then |
---|
4540 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4542 | /* end confdefs.h. */ |
---|
4543 | #include <string.h> |
---|
4544 | |
---|
4545 | _ACEOF |
---|
4546 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4547 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
4548 | |
---|
4549 | else |
---|
4550 | ac_cv_header_stdc=no |
---|
4551 | fi |
---|
4552 | rm -f conftest* |
---|
4553 | |
---|
4554 | fi |
---|
4555 | |
---|
4556 | if test $ac_cv_header_stdc = yes; then |
---|
4557 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4559 | /* end confdefs.h. */ |
---|
4560 | #include <stdlib.h> |
---|
4561 | |
---|
4562 | _ACEOF |
---|
4563 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4564 | $EGREP "free" >/dev/null 2>&1; then : |
---|
4565 | |
---|
4566 | else |
---|
4567 | ac_cv_header_stdc=no |
---|
4568 | fi |
---|
4569 | rm -f conftest* |
---|
4570 | |
---|
4571 | fi |
---|
4572 | |
---|
4573 | if test $ac_cv_header_stdc = yes; then |
---|
4574 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4575 | if test "$cross_compiling" = yes; then : |
---|
4576 | : |
---|
4577 | else |
---|
4578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4579 | /* end confdefs.h. */ |
---|
4580 | #include <ctype.h> |
---|
4581 | #include <stdlib.h> |
---|
4582 | #if ((' ' & 0x0FF) == 0x020) |
---|
4583 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4584 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4585 | #else |
---|
4586 | # define ISLOWER(c) \ |
---|
4587 | (('a' <= (c) && (c) <= 'i') \ |
---|
4588 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4589 | || ('s' <= (c) && (c) <= 'z')) |
---|
4590 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4591 | #endif |
---|
4592 | |
---|
4593 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4594 | int |
---|
4595 | main () |
---|
4596 | { |
---|
4597 | int i; |
---|
4598 | for (i = 0; i < 256; i++) |
---|
4599 | if (XOR (islower (i), ISLOWER (i)) |
---|
4600 | || toupper (i) != TOUPPER (i)) |
---|
4601 | return 2; |
---|
4602 | return 0; |
---|
4603 | } |
---|
4604 | _ACEOF |
---|
4605 | if ac_fn_c_try_run "$LINENO"; then : |
---|
4606 | |
---|
4607 | else |
---|
4608 | ac_cv_header_stdc=no |
---|
4609 | fi |
---|
4610 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
4611 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4612 | fi |
---|
4613 | |
---|
4614 | fi |
---|
4615 | fi |
---|
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
4617 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
4618 | if test $ac_cv_header_stdc = yes; then |
---|
4619 | |
---|
4620 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
4621 | |
---|
4622 | fi |
---|
4623 | |
---|
4624 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4625 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4626 | inttypes.h stdint.h unistd.h |
---|
4627 | do : |
---|
4628 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4629 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
4630 | " |
---|
4631 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4632 | cat >>confdefs.h <<_ACEOF |
---|
4633 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4634 | _ACEOF |
---|
4635 | |
---|
4636 | fi |
---|
4637 | |
---|
4638 | done |
---|
4639 | |
---|
4640 | |
---|
4641 | for ac_header in malloc.h unistd.h |
---|
4642 | do : |
---|
4643 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4644 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
4645 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
4646 | cat >>confdefs.h <<_ACEOF |
---|
4647 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4648 | _ACEOF |
---|
4649 | |
---|
4650 | fi |
---|
4651 | |
---|
4652 | done |
---|
4653 | |
---|
4654 | |
---|
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
---|
4656 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
---|
4657 | if ${ac_cv_c_const+:} false; then : |
---|
4658 | $as_echo_n "(cached) " >&6 |
---|
4659 | else |
---|
4660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4661 | /* end confdefs.h. */ |
---|
4662 | |
---|
4663 | int |
---|
4664 | main () |
---|
4665 | { |
---|
4666 | /* FIXME: Include the comments suggested by Paul. */ |
---|
4667 | #ifndef __cplusplus |
---|
4668 | /* Ultrix mips cc rejects this. */ |
---|
4669 | typedef int charset[2]; |
---|
4670 | const charset cs; |
---|
4671 | /* SunOS 4.1.1 cc rejects this. */ |
---|
4672 | char const *const *pcpcc; |
---|
4673 | char **ppc; |
---|
4674 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
4675 | struct point {int x, y;}; |
---|
4676 | static struct point const zero = {0,0}; |
---|
4677 | /* AIX XL C 1.02.0.0 rejects this. |
---|
4678 | It does not let you subtract one const X* pointer from another in |
---|
4679 | an arm of an if-expression whose if-part is not a constant |
---|
4680 | expression */ |
---|
4681 | const char *g = "string"; |
---|
4682 | pcpcc = &g + (g ? g-g : 0); |
---|
4683 | /* HPUX 7.0 cc rejects these. */ |
---|
4684 | ++pcpcc; |
---|
4685 | ppc = (char**) pcpcc; |
---|
4686 | pcpcc = (char const *const *) ppc; |
---|
4687 | { /* SCO 3.2v4 cc rejects this. */ |
---|
4688 | char *t; |
---|
4689 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
4690 | |
---|
4691 | *t++ = 0; |
---|
4692 | if (s) return 0; |
---|
4693 | } |
---|
4694 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
4695 | int x[] = {25, 17}; |
---|
4696 | const int *foo = &x[0]; |
---|
4697 | ++foo; |
---|
4698 | } |
---|
4699 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
4700 | typedef const int *iptr; |
---|
4701 | iptr p = 0; |
---|
4702 | ++p; |
---|
4703 | } |
---|
4704 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
4705 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
4706 | struct s { int j; const int *ap[3]; }; |
---|
4707 | struct s *b; b->j = 5; |
---|
4708 | } |
---|
4709 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
4710 | const int foo = 10; |
---|
4711 | if (!foo) return 0; |
---|
4712 | } |
---|
4713 | return !cs[0] && !zero.x; |
---|
4714 | #endif |
---|
4715 | |
---|
4716 | ; |
---|
4717 | return 0; |
---|
4718 | } |
---|
4719 | _ACEOF |
---|
4720 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4721 | ac_cv_c_const=yes |
---|
4722 | else |
---|
4723 | ac_cv_c_const=no |
---|
4724 | fi |
---|
4725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4726 | fi |
---|
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
---|
4728 | $as_echo "$ac_cv_c_const" >&6; } |
---|
4729 | if test $ac_cv_c_const = no; then |
---|
4730 | |
---|
4731 | $as_echo "#define const /**/" >>confdefs.h |
---|
4732 | |
---|
4733 | fi |
---|
4734 | |
---|
4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
4736 | $as_echo_n "checking for inline... " >&6; } |
---|
4737 | if ${ac_cv_c_inline+:} false; then : |
---|
4738 | $as_echo_n "(cached) " >&6 |
---|
4739 | else |
---|
4740 | ac_cv_c_inline=no |
---|
4741 | for ac_kw in inline __inline__ __inline; do |
---|
4742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4743 | /* end confdefs.h. */ |
---|
4744 | #ifndef __cplusplus |
---|
4745 | typedef int foo_t; |
---|
4746 | static $ac_kw foo_t static_foo () {return 0; } |
---|
4747 | $ac_kw foo_t foo () {return 0; } |
---|
4748 | #endif |
---|
4749 | |
---|
4750 | _ACEOF |
---|
4751 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4752 | ac_cv_c_inline=$ac_kw |
---|
4753 | fi |
---|
4754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4755 | test "$ac_cv_c_inline" != no && break |
---|
4756 | done |
---|
4757 | |
---|
4758 | fi |
---|
4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
4760 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
4761 | |
---|
4762 | case $ac_cv_c_inline in |
---|
4763 | inline | yes) ;; |
---|
4764 | *) |
---|
4765 | case $ac_cv_c_inline in |
---|
4766 | no) ac_val=;; |
---|
4767 | *) ac_val=$ac_cv_c_inline;; |
---|
4768 | esac |
---|
4769 | cat >>confdefs.h <<_ACEOF |
---|
4770 | #ifndef __cplusplus |
---|
4771 | #define inline $ac_val |
---|
4772 | #endif |
---|
4773 | _ACEOF |
---|
4774 | ;; |
---|
4775 | esac |
---|
4776 | |
---|
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
4778 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
---|
4779 | if ${ac_cv_struct_tm+:} false; then : |
---|
4780 | $as_echo_n "(cached) " >&6 |
---|
4781 | else |
---|
4782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4783 | /* end confdefs.h. */ |
---|
4784 | #include <sys/types.h> |
---|
4785 | #include <time.h> |
---|
4786 | |
---|
4787 | int |
---|
4788 | main () |
---|
4789 | { |
---|
4790 | struct tm tm; |
---|
4791 | int *p = &tm.tm_sec; |
---|
4792 | return !p; |
---|
4793 | ; |
---|
4794 | return 0; |
---|
4795 | } |
---|
4796 | _ACEOF |
---|
4797 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4798 | ac_cv_struct_tm=time.h |
---|
4799 | else |
---|
4800 | ac_cv_struct_tm=sys/time.h |
---|
4801 | fi |
---|
4802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4803 | fi |
---|
4804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
---|
4805 | $as_echo "$ac_cv_struct_tm" >&6; } |
---|
4806 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
4807 | |
---|
4808 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
---|
4809 | |
---|
4810 | fi |
---|
4811 | |
---|
4812 | |
---|
4813 | test "${prefix}" != "NONE" || prefix=$ac_default_prefix |
---|
4814 | |
---|
4815 | preludedir=${prefix}/share/cfa |
---|
4816 | |
---|
4817 | # Check whether --with-preludedir was given. |
---|
4818 | if test "${with_preludedir+set}" = set; then : |
---|
4819 | withval=$with_preludedir; preludedir=$withval |
---|
4820 | fi |
---|
4821 | |
---|
4822 | |
---|
4823 | |
---|
4824 | |
---|
4825 | # Check whether --with-backend-compiler was given. |
---|
4826 | if test "${with_backend_compiler+set}" = set; then : |
---|
4827 | withval=$with_backend_compiler; backcompiler=$withval |
---|
4828 | else |
---|
4829 | backcompiler="" |
---|
4830 | fi |
---|
4831 | |
---|
4832 | if test x$backcompiler != x; then |
---|
4833 | cat >>confdefs.h <<_ACEOF |
---|
4834 | #define GCC_PATH "${backcompiler}" |
---|
4835 | _ACEOF |
---|
4836 | |
---|
4837 | BACKEND_CC=${backcompiler} |
---|
4838 | else |
---|
4839 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
4840 | set dummy gcc; ac_word=$2 |
---|
4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4842 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4843 | if ${ac_cv_path_GCC_PATH+:} false; then : |
---|
4844 | $as_echo_n "(cached) " >&6 |
---|
4845 | else |
---|
4846 | case $GCC_PATH in |
---|
4847 | [\\/]* | ?:[\\/]*) |
---|
4848 | ac_cv_path_GCC_PATH="$GCC_PATH" # Let the user override the test with a path. |
---|
4849 | ;; |
---|
4850 | *) |
---|
4851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4852 | for as_dir in $PATH |
---|
4853 | do |
---|
4854 | IFS=$as_save_IFS |
---|
4855 | test -z "$as_dir" && as_dir=. |
---|
4856 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4858 | ac_cv_path_GCC_PATH="$as_dir/$ac_word$ac_exec_ext" |
---|
4859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4860 | break 2 |
---|
4861 | fi |
---|
4862 | done |
---|
4863 | done |
---|
4864 | IFS=$as_save_IFS |
---|
4865 | |
---|
4866 | test -z "$ac_cv_path_GCC_PATH" && ac_cv_path_GCC_PATH="N/A" |
---|
4867 | ;; |
---|
4868 | esac |
---|
4869 | fi |
---|
4870 | GCC_PATH=$ac_cv_path_GCC_PATH |
---|
4871 | if test -n "$GCC_PATH"; then |
---|
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_PATH" >&5 |
---|
4873 | $as_echo "$GCC_PATH" >&6; } |
---|
4874 | else |
---|
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4876 | $as_echo "no" >&6; } |
---|
4877 | fi |
---|
4878 | |
---|
4879 | |
---|
4880 | if test "$GCC_PATH" = "N/A"; then |
---|
4881 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 |
---|
4882 | exit 1 |
---|
4883 | fi |
---|
4884 | |
---|
4885 | cat >>confdefs.h <<_ACEOF |
---|
4886 | #define GCC_PATH "${GCC_PATH}" |
---|
4887 | _ACEOF |
---|
4888 | |
---|
4889 | BACKEND_CC=${GCC_PATH} |
---|
4890 | fi |
---|
4891 | |
---|
4892 | |
---|
4893 | # Extract the first word of "cpp", so it can be a program name with args. |
---|
4894 | set dummy cpp; ac_word=$2 |
---|
4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4896 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4897 | if ${ac_cv_path_CPP_PATH+:} false; then : |
---|
4898 | $as_echo_n "(cached) " >&6 |
---|
4899 | else |
---|
4900 | case $CPP_PATH in |
---|
4901 | [\\/]* | ?:[\\/]*) |
---|
4902 | ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path. |
---|
4903 | ;; |
---|
4904 | *) |
---|
4905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4906 | for as_dir in $PATH |
---|
4907 | do |
---|
4908 | IFS=$as_save_IFS |
---|
4909 | test -z "$as_dir" && as_dir=. |
---|
4910 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4912 | ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext" |
---|
4913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4914 | break 2 |
---|
4915 | fi |
---|
4916 | done |
---|
4917 | done |
---|
4918 | IFS=$as_save_IFS |
---|
4919 | |
---|
4920 | test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="N/A" |
---|
4921 | ;; |
---|
4922 | esac |
---|
4923 | fi |
---|
4924 | CPP_PATH=$ac_cv_path_CPP_PATH |
---|
4925 | if test -n "$CPP_PATH"; then |
---|
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_PATH" >&5 |
---|
4927 | $as_echo "$CPP_PATH" >&6; } |
---|
4928 | else |
---|
4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4930 | $as_echo "no" >&6; } |
---|
4931 | fi |
---|
4932 | |
---|
4933 | |
---|
4934 | if test "$CPP_PATH" = "N/A"; then |
---|
4935 | as_fn_error $? "cpp not found" "$LINENO" 5 |
---|
4936 | exit 1 |
---|
4937 | fi |
---|
4938 | |
---|
4939 | cat >>confdefs.h <<_ACEOF |
---|
4940 | #define CPP_PATH "${CPP_PATH}" |
---|
4941 | _ACEOF |
---|
4942 | |
---|
4943 | |
---|
4944 | # Purify instrumenting |
---|
4945 | |
---|
4946 | CFA_PREFIX= |
---|
4947 | if test "x$prefix" = "xNONE"; then |
---|
4948 | cfa_prefix=${ac_default_prefix} |
---|
4949 | else |
---|
4950 | cfa_prefix=${prefix} |
---|
4951 | fi |
---|
4952 | |
---|
4953 | cat >>confdefs.h <<_ACEOF |
---|
4954 | #define CFA_PREFIX "${cfa_prefix}" |
---|
4955 | _ACEOF |
---|
4956 | |
---|
4957 | CFA_PREFIX=${cfa_prefix} |
---|
4958 | |
---|
4959 | |
---|
4960 | CFA_INCDIR= |
---|
4961 | if test "$includedir" = '${prefix}/include'; then |
---|
4962 | cfa_incdir="${cfa_prefix}/include" |
---|
4963 | else |
---|
4964 | cfa_incdir=${$includedir} |
---|
4965 | fi |
---|
4966 | |
---|
4967 | cat >>confdefs.h <<_ACEOF |
---|
4968 | #define CFA_INCDIR "${cfa_incdir}" |
---|
4969 | _ACEOF |
---|
4970 | |
---|
4971 | CFA_INCDIR=${cfa_incdir} |
---|
4972 | |
---|
4973 | |
---|
4974 | CFA_BINDIR= |
---|
4975 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
4976 | cfa_bindir="${cfa_prefix}/bin" |
---|
4977 | else |
---|
4978 | cfa_bindir=${bindir} |
---|
4979 | fi |
---|
4980 | |
---|
4981 | cat >>confdefs.h <<_ACEOF |
---|
4982 | #define CFA_BINDIR "${cfa_bindir}" |
---|
4983 | _ACEOF |
---|
4984 | |
---|
4985 | CFA_BINDIR=${cfa_bindir} |
---|
4986 | |
---|
4987 | |
---|
4988 | CFA_LIBDIR= |
---|
4989 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
4990 | cfa_libdir=${cfa_prefix}/lib |
---|
4991 | else |
---|
4992 | cfa_libdir=${libdir} |
---|
4993 | fi |
---|
4994 | |
---|
4995 | cat >>confdefs.h <<_ACEOF |
---|
4996 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
4997 | _ACEOF |
---|
4998 | |
---|
4999 | CFA_LIBDIR=${cfa_libdir} |
---|
5000 | |
---|
5001 | |
---|
5002 | ac_config_files="$ac_config_files Makefile translator/Makefile driver/Makefile libcfa/Makefile translator/examples/Makefile" |
---|
5003 | |
---|
5004 | cat >confcache <<\_ACEOF |
---|
5005 | # This file is a shell script that caches the results of configure |
---|
5006 | # tests run on this system so they can be shared between configure |
---|
5007 | # scripts and configure runs, see configure's option --config-cache. |
---|
5008 | # It is not useful on other systems. If it contains results you don't |
---|
5009 | # want to keep, you may remove or edit it. |
---|
5010 | # |
---|
5011 | # config.status only pays attention to the cache file if you give it |
---|
5012 | # the --recheck option to rerun configure. |
---|
5013 | # |
---|
5014 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5015 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5016 | # following values. |
---|
5017 | |
---|
5018 | _ACEOF |
---|
5019 | |
---|
5020 | # The following way of writing the cache mishandles newlines in values, |
---|
5021 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5022 | # So, we kill variables containing newlines. |
---|
5023 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5024 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5025 | ( |
---|
5026 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
5027 | eval ac_val=\$$ac_var |
---|
5028 | case $ac_val in #( |
---|
5029 | *${as_nl}*) |
---|
5030 | case $ac_var in #( |
---|
5031 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
5032 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
5033 | esac |
---|
5034 | case $ac_var in #( |
---|
5035 | _ | IFS | as_nl) ;; #( |
---|
5036 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
5037 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
5038 | esac ;; |
---|
5039 | esac |
---|
5040 | done |
---|
5041 | |
---|
5042 | (set) 2>&1 | |
---|
5043 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
5044 | *${as_nl}ac_space=\ *) |
---|
5045 | # `set' does not quote correctly, so add quotes: double-quote |
---|
5046 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
5047 | sed -n \ |
---|
5048 | "s/'/'\\\\''/g; |
---|
5049 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5050 | ;; #( |
---|
5051 | *) |
---|
5052 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5053 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
5054 | ;; |
---|
5055 | esac | |
---|
5056 | sort |
---|
5057 | ) | |
---|
5058 | sed ' |
---|
5059 | /^ac_cv_env_/b end |
---|
5060 | t clear |
---|
5061 | :clear |
---|
5062 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5063 | t end |
---|
5064 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5065 | :end' >>confcache |
---|
5066 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
5067 | if test -w "$cache_file"; then |
---|
5068 | if test "x$cache_file" != "x/dev/null"; then |
---|
5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
5070 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
5071 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
5072 | cat confcache >"$cache_file" |
---|
5073 | else |
---|
5074 | case $cache_file in #( |
---|
5075 | */* | ?:*) |
---|
5076 | mv -f confcache "$cache_file"$$ && |
---|
5077 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
5078 | *) |
---|
5079 | mv -f confcache "$cache_file" ;; |
---|
5080 | esac |
---|
5081 | fi |
---|
5082 | fi |
---|
5083 | else |
---|
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
5085 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
5086 | fi |
---|
5087 | fi |
---|
5088 | rm -f confcache |
---|
5089 | |
---|
5090 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5091 | # Let make expand exec_prefix. |
---|
5092 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5093 | |
---|
5094 | DEFS=-DHAVE_CONFIG_H |
---|
5095 | |
---|
5096 | ac_libobjs= |
---|
5097 | ac_ltlibobjs= |
---|
5098 | U= |
---|
5099 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5100 | # 1. Remove the extension, and $U if already installed. |
---|
5101 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
5102 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
5103 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
5104 | # will be set to the directory where LIBOBJS objects are built. |
---|
5105 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
5106 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
5107 | done |
---|
5108 | LIBOBJS=$ac_libobjs |
---|
5109 | |
---|
5110 | LTLIBOBJS=$ac_ltlibobjs |
---|
5111 | |
---|
5112 | |
---|
5113 | if test -n "$EXEEXT"; then |
---|
5114 | am__EXEEXT_TRUE= |
---|
5115 | am__EXEEXT_FALSE='#' |
---|
5116 | else |
---|
5117 | am__EXEEXT_TRUE='#' |
---|
5118 | am__EXEEXT_FALSE= |
---|
5119 | fi |
---|
5120 | |
---|
5121 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
5122 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
5123 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5124 | fi |
---|
5125 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
5126 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
5127 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5128 | fi |
---|
5129 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
5130 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
5131 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
5132 | fi |
---|
5133 | |
---|
5134 | : "${CONFIG_STATUS=./config.status}" |
---|
5135 | ac_write_fail=0 |
---|
5136 | ac_clean_files_save=$ac_clean_files |
---|
5137 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
5139 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5140 | as_write_fail=0 |
---|
5141 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
5142 | #! $SHELL |
---|
5143 | # Generated by $as_me. |
---|
5144 | # Run this file to recreate the current configuration. |
---|
5145 | # Compiler output produced by configure, useful for debugging |
---|
5146 | # configure, is in config.log if it exists. |
---|
5147 | |
---|
5148 | debug=false |
---|
5149 | ac_cs_recheck=false |
---|
5150 | ac_cs_silent=false |
---|
5151 | |
---|
5152 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5153 | export SHELL |
---|
5154 | _ASEOF |
---|
5155 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
5156 | ## -------------------- ## |
---|
5157 | ## M4sh Initialization. ## |
---|
5158 | ## -------------------- ## |
---|
5159 | |
---|
5160 | # Be more Bourne compatible |
---|
5161 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5162 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
5163 | emulate sh |
---|
5164 | NULLCMD=: |
---|
5165 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
5166 | # is contrary to our usage. Disable this feature. |
---|
5167 | alias -g '${1+"$@"}'='"$@"' |
---|
5168 | setopt NO_GLOB_SUBST |
---|
5169 | else |
---|
5170 | case `(set -o) 2>/dev/null` in #( |
---|
5171 | *posix*) : |
---|
5172 | set -o posix ;; #( |
---|
5173 | *) : |
---|
5174 | ;; |
---|
5175 | esac |
---|
5176 | fi |
---|
5177 | |
---|
5178 | |
---|
5179 | as_nl=' |
---|
5180 | ' |
---|
5181 | export as_nl |
---|
5182 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
5183 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5184 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5185 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5186 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
5187 | # but without wasting forks for bash or zsh. |
---|
5188 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
5189 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5190 | as_echo='print -r --' |
---|
5191 | as_echo_n='print -rn --' |
---|
5192 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5193 | as_echo='printf %s\n' |
---|
5194 | as_echo_n='printf %s' |
---|
5195 | else |
---|
5196 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
5197 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
5198 | as_echo_n='/usr/ucb/echo -n' |
---|
5199 | else |
---|
5200 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
5201 | as_echo_n_body='eval |
---|
5202 | arg=$1; |
---|
5203 | case $arg in #( |
---|
5204 | *"$as_nl"*) |
---|
5205 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
5206 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
5207 | esac; |
---|
5208 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
5209 | ' |
---|
5210 | export as_echo_n_body |
---|
5211 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
5212 | fi |
---|
5213 | export as_echo_body |
---|
5214 | as_echo='sh -c $as_echo_body as_echo' |
---|
5215 | fi |
---|
5216 | |
---|
5217 | # The user is always right. |
---|
5218 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5219 | PATH_SEPARATOR=: |
---|
5220 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
5221 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
5222 | PATH_SEPARATOR=';' |
---|
5223 | } |
---|
5224 | fi |
---|
5225 | |
---|
5226 | |
---|
5227 | # IFS |
---|
5228 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
5229 | # there to prevent editors from complaining about space-tab. |
---|
5230 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
5231 | # splitting by setting IFS to empty value.) |
---|
5232 | IFS=" "" $as_nl" |
---|
5233 | |
---|
5234 | # Find who we are. Look in the path if we contain no directory separator. |
---|
5235 | as_myself= |
---|
5236 | case $0 in #(( |
---|
5237 | *[\\/]* ) as_myself=$0 ;; |
---|
5238 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5239 | for as_dir in $PATH |
---|
5240 | do |
---|
5241 | IFS=$as_save_IFS |
---|
5242 | test -z "$as_dir" && as_dir=. |
---|
5243 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5244 | done |
---|
5245 | IFS=$as_save_IFS |
---|
5246 | |
---|
5247 | ;; |
---|
5248 | esac |
---|
5249 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5250 | # in which case we are not to be found in the path. |
---|
5251 | if test "x$as_myself" = x; then |
---|
5252 | as_myself=$0 |
---|
5253 | fi |
---|
5254 | if test ! -f "$as_myself"; then |
---|
5255 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
5256 | exit 1 |
---|
5257 | fi |
---|
5258 | |
---|
5259 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
5260 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
5261 | # suppresses any "Segmentation fault" message there. '((' could |
---|
5262 | # trigger a bug in pdksh 5.2.14. |
---|
5263 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
5264 | do eval test x\${$as_var+set} = xset \ |
---|
5265 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
5266 | done |
---|
5267 | PS1='$ ' |
---|
5268 | PS2='> ' |
---|
5269 | PS4='+ ' |
---|
5270 | |
---|
5271 | # NLS nuisances. |
---|
5272 | LC_ALL=C |
---|
5273 | export LC_ALL |
---|
5274 | LANGUAGE=C |
---|
5275 | export LANGUAGE |
---|
5276 | |
---|
5277 | # CDPATH. |
---|
5278 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
5279 | |
---|
5280 | |
---|
5281 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
5282 | # ---------------------------------------- |
---|
5283 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
5284 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
5285 | # script with STATUS, using 1 if that was 0. |
---|
5286 | as_fn_error () |
---|
5287 | { |
---|
5288 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
5289 | if test "$4"; then |
---|
5290 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
5291 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
5292 | fi |
---|
5293 | $as_echo "$as_me: error: $2" >&2 |
---|
5294 | as_fn_exit $as_status |
---|
5295 | } # as_fn_error |
---|
5296 | |
---|
5297 | |
---|
5298 | # as_fn_set_status STATUS |
---|
5299 | # ----------------------- |
---|
5300 | # Set $? to STATUS, without forking. |
---|
5301 | as_fn_set_status () |
---|
5302 | { |
---|
5303 | return $1 |
---|
5304 | } # as_fn_set_status |
---|
5305 | |
---|
5306 | # as_fn_exit STATUS |
---|
5307 | # ----------------- |
---|
5308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
5309 | as_fn_exit () |
---|
5310 | { |
---|
5311 | set +e |
---|
5312 | as_fn_set_status $1 |
---|
5313 | exit $1 |
---|
5314 | } # as_fn_exit |
---|
5315 | |
---|
5316 | # as_fn_unset VAR |
---|
5317 | # --------------- |
---|
5318 | # Portably unset VAR. |
---|
5319 | as_fn_unset () |
---|
5320 | { |
---|
5321 | { eval $1=; unset $1;} |
---|
5322 | } |
---|
5323 | as_unset=as_fn_unset |
---|
5324 | # as_fn_append VAR VALUE |
---|
5325 | # ---------------------- |
---|
5326 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
5327 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
5328 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
5329 | # implementations. |
---|
5330 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
5331 | eval 'as_fn_append () |
---|
5332 | { |
---|
5333 | eval $1+=\$2 |
---|
5334 | }' |
---|
5335 | else |
---|
5336 | as_fn_append () |
---|
5337 | { |
---|
5338 | eval $1=\$$1\$2 |
---|
5339 | } |
---|
5340 | fi # as_fn_append |
---|
5341 | |
---|
5342 | # as_fn_arith ARG... |
---|
5343 | # ------------------ |
---|
5344 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
5345 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
5346 | # must be portable across $(()) and expr. |
---|
5347 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
5348 | eval 'as_fn_arith () |
---|
5349 | { |
---|
5350 | as_val=$(( $* )) |
---|
5351 | }' |
---|
5352 | else |
---|
5353 | as_fn_arith () |
---|
5354 | { |
---|
5355 | as_val=`expr "$@" || test $? -eq 1` |
---|
5356 | } |
---|
5357 | fi # as_fn_arith |
---|
5358 | |
---|
5359 | |
---|
5360 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
5361 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
5362 | as_expr=expr |
---|
5363 | else |
---|
5364 | as_expr=false |
---|
5365 | fi |
---|
5366 | |
---|
5367 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
5368 | as_basename=basename |
---|
5369 | else |
---|
5370 | as_basename=false |
---|
5371 | fi |
---|
5372 | |
---|
5373 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
5374 | as_dirname=dirname |
---|
5375 | else |
---|
5376 | as_dirname=false |
---|
5377 | fi |
---|
5378 | |
---|
5379 | as_me=`$as_basename -- "$0" || |
---|
5380 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5381 | X"$0" : 'X\(//\)$' \| \ |
---|
5382 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
5383 | $as_echo X/"$0" | |
---|
5384 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
5385 | s//\1/ |
---|
5386 | q |
---|
5387 | } |
---|
5388 | /^X\/\(\/\/\)$/{ |
---|
5389 | s//\1/ |
---|
5390 | q |
---|
5391 | } |
---|
5392 | /^X\/\(\/\).*/{ |
---|
5393 | s//\1/ |
---|
5394 | q |
---|
5395 | } |
---|
5396 | s/.*/./; q'` |
---|
5397 | |
---|
5398 | # Avoid depending upon Character Ranges. |
---|
5399 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5400 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5401 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5402 | as_cr_digits='0123456789' |
---|
5403 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5404 | |
---|
5405 | ECHO_C= ECHO_N= ECHO_T= |
---|
5406 | case `echo -n x` in #((((( |
---|
5407 | -n*) |
---|
5408 | case `echo 'xy\c'` in |
---|
5409 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
5410 | xy) ECHO_C='\c';; |
---|
5411 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
5412 | ECHO_T=' ';; |
---|
5413 | esac;; |
---|
5414 | *) |
---|
5415 | ECHO_N='-n';; |
---|
5416 | esac |
---|
5417 | |
---|
5418 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5419 | if test -d conf$$.dir; then |
---|
5420 | rm -f conf$$.dir/conf$$.file |
---|
5421 | else |
---|
5422 | rm -f conf$$.dir |
---|
5423 | mkdir conf$$.dir 2>/dev/null |
---|
5424 | fi |
---|
5425 | if (echo >conf$$.file) 2>/dev/null; then |
---|
5426 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5427 | as_ln_s='ln -s' |
---|
5428 | # ... but there are two gotchas: |
---|
5429 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
5430 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
5431 | # In both cases, we have to default to `cp -p'. |
---|
5432 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
5433 | as_ln_s='cp -p' |
---|
5434 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5435 | as_ln_s=ln |
---|
5436 | else |
---|
5437 | as_ln_s='cp -p' |
---|
5438 | fi |
---|
5439 | else |
---|
5440 | as_ln_s='cp -p' |
---|
5441 | fi |
---|
5442 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
5443 | rmdir conf$$.dir 2>/dev/null |
---|
5444 | |
---|
5445 | |
---|
5446 | # as_fn_mkdir_p |
---|
5447 | # ------------- |
---|
5448 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
5449 | as_fn_mkdir_p () |
---|
5450 | { |
---|
5451 | |
---|
5452 | case $as_dir in #( |
---|
5453 | -*) as_dir=./$as_dir;; |
---|
5454 | esac |
---|
5455 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
5456 | as_dirs= |
---|
5457 | while :; do |
---|
5458 | case $as_dir in #( |
---|
5459 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
5460 | *) as_qdir=$as_dir;; |
---|
5461 | esac |
---|
5462 | as_dirs="'$as_qdir' $as_dirs" |
---|
5463 | as_dir=`$as_dirname -- "$as_dir" || |
---|
5464 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5465 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
5466 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
5467 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
5468 | $as_echo X"$as_dir" | |
---|
5469 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
5470 | s//\1/ |
---|
5471 | q |
---|
5472 | } |
---|
5473 | /^X\(\/\/\)[^/].*/{ |
---|
5474 | s//\1/ |
---|
5475 | q |
---|
5476 | } |
---|
5477 | /^X\(\/\/\)$/{ |
---|
5478 | s//\1/ |
---|
5479 | q |
---|
5480 | } |
---|
5481 | /^X\(\/\).*/{ |
---|
5482 | s//\1/ |
---|
5483 | q |
---|
5484 | } |
---|
5485 | s/.*/./; q'` |
---|
5486 | test -d "$as_dir" && break |
---|
5487 | done |
---|
5488 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
5489 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
5490 | |
---|
5491 | |
---|
5492 | } # as_fn_mkdir_p |
---|
5493 | if mkdir -p . 2>/dev/null; then |
---|
5494 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
5495 | else |
---|
5496 | test -d ./-p && rmdir ./-p |
---|
5497 | as_mkdir_p=false |
---|
5498 | fi |
---|
5499 | |
---|
5500 | if test -x / >/dev/null 2>&1; then |
---|
5501 | as_test_x='test -x' |
---|
5502 | else |
---|
5503 | if ls -dL / >/dev/null 2>&1; then |
---|
5504 | as_ls_L_option=L |
---|
5505 | else |
---|
5506 | as_ls_L_option= |
---|
5507 | fi |
---|
5508 | as_test_x=' |
---|
5509 | eval sh -c '\'' |
---|
5510 | if test -d "$1"; then |
---|
5511 | test -d "$1/."; |
---|
5512 | else |
---|
5513 | case $1 in #( |
---|
5514 | -*)set "./$1";; |
---|
5515 | esac; |
---|
5516 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
5517 | ???[sx]*):;;*)false;;esac;fi |
---|
5518 | '\'' sh |
---|
5519 | ' |
---|
5520 | fi |
---|
5521 | as_executable_p=$as_test_x |
---|
5522 | |
---|
5523 | # Sed expression to map a string onto a valid CPP name. |
---|
5524 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
5525 | |
---|
5526 | # Sed expression to map a string onto a valid variable name. |
---|
5527 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
5528 | |
---|
5529 | |
---|
5530 | exec 6>&1 |
---|
5531 | ## ----------------------------------- ## |
---|
5532 | ## Main body of $CONFIG_STATUS script. ## |
---|
5533 | ## ----------------------------------- ## |
---|
5534 | _ASEOF |
---|
5535 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
5536 | |
---|
5537 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5538 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
5539 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5540 | # values after options handling. |
---|
5541 | ac_log=" |
---|
5542 | This file was extended by cfa-cc $as_me 1.0, which was |
---|
5543 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
5544 | |
---|
5545 | CONFIG_FILES = $CONFIG_FILES |
---|
5546 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
5547 | CONFIG_LINKS = $CONFIG_LINKS |
---|
5548 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
5549 | $ $0 $@ |
---|
5550 | |
---|
5551 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
5552 | " |
---|
5553 | |
---|
5554 | _ACEOF |
---|
5555 | |
---|
5556 | case $ac_config_files in *" |
---|
5557 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
5558 | esac |
---|
5559 | |
---|
5560 | case $ac_config_headers in *" |
---|
5561 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
5562 | esac |
---|
5563 | |
---|
5564 | |
---|
5565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5566 | # Files that config.status was made for. |
---|
5567 | config_files="$ac_config_files" |
---|
5568 | config_headers="$ac_config_headers" |
---|
5569 | config_commands="$ac_config_commands" |
---|
5570 | |
---|
5571 | _ACEOF |
---|
5572 | |
---|
5573 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5574 | ac_cs_usage="\ |
---|
5575 | \`$as_me' instantiates files and other configuration actions |
---|
5576 | from templates according to the current configuration. Unless the files |
---|
5577 | and actions are specified as TAGs, all are instantiated by default. |
---|
5578 | |
---|
5579 | Usage: $0 [OPTION]... [TAG]... |
---|
5580 | |
---|
5581 | -h, --help print this help, then exit |
---|
5582 | -V, --version print version number and configuration settings, then exit |
---|
5583 | --config print configuration, then exit |
---|
5584 | -q, --quiet, --silent |
---|
5585 | do not print progress messages |
---|
5586 | -d, --debug don't remove temporary files |
---|
5587 | --recheck update $as_me by reconfiguring in the same conditions |
---|
5588 | --file=FILE[:TEMPLATE] |
---|
5589 | instantiate the configuration file FILE |
---|
5590 | --header=FILE[:TEMPLATE] |
---|
5591 | instantiate the configuration header FILE |
---|
5592 | |
---|
5593 | Configuration files: |
---|
5594 | $config_files |
---|
5595 | |
---|
5596 | Configuration headers: |
---|
5597 | $config_headers |
---|
5598 | |
---|
5599 | Configuration commands: |
---|
5600 | $config_commands |
---|
5601 | |
---|
5602 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
5603 | |
---|
5604 | _ACEOF |
---|
5605 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5606 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
5607 | ac_cs_version="\\ |
---|
5608 | cfa-cc config.status 1.0 |
---|
5609 | configured by $0, generated by GNU Autoconf 2.68, |
---|
5610 | with options \\"\$ac_cs_config\\" |
---|
5611 | |
---|
5612 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
5613 | This config.status script is free software; the Free Software Foundation |
---|
5614 | gives unlimited permission to copy, distribute and modify it." |
---|
5615 | |
---|
5616 | ac_pwd='$ac_pwd' |
---|
5617 | srcdir='$srcdir' |
---|
5618 | INSTALL='$INSTALL' |
---|
5619 | MKDIR_P='$MKDIR_P' |
---|
5620 | AWK='$AWK' |
---|
5621 | test -n "\$AWK" || AWK=awk |
---|
5622 | _ACEOF |
---|
5623 | |
---|
5624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5625 | # The default lists apply if the user does not specify any file. |
---|
5626 | ac_need_defaults=: |
---|
5627 | while test $# != 0 |
---|
5628 | do |
---|
5629 | case $1 in |
---|
5630 | --*=?*) |
---|
5631 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
5632 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
5633 | ac_shift=: |
---|
5634 | ;; |
---|
5635 | --*=) |
---|
5636 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
5637 | ac_optarg= |
---|
5638 | ac_shift=: |
---|
5639 | ;; |
---|
5640 | *) |
---|
5641 | ac_option=$1 |
---|
5642 | ac_optarg=$2 |
---|
5643 | ac_shift=shift |
---|
5644 | ;; |
---|
5645 | esac |
---|
5646 | |
---|
5647 | case $ac_option in |
---|
5648 | # Handling of the options. |
---|
5649 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5650 | ac_cs_recheck=: ;; |
---|
5651 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
5652 | $as_echo "$ac_cs_version"; exit ;; |
---|
5653 | --config | --confi | --conf | --con | --co | --c ) |
---|
5654 | $as_echo "$ac_cs_config"; exit ;; |
---|
5655 | --debug | --debu | --deb | --de | --d | -d ) |
---|
5656 | debug=: ;; |
---|
5657 | --file | --fil | --fi | --f ) |
---|
5658 | $ac_shift |
---|
5659 | case $ac_optarg in |
---|
5660 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
5661 | '') as_fn_error $? "missing file argument" ;; |
---|
5662 | esac |
---|
5663 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
5664 | ac_need_defaults=false;; |
---|
5665 | --header | --heade | --head | --hea ) |
---|
5666 | $ac_shift |
---|
5667 | case $ac_optarg in |
---|
5668 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
5669 | esac |
---|
5670 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
5671 | ac_need_defaults=false;; |
---|
5672 | --he | --h) |
---|
5673 | # Conflict between --help and --header |
---|
5674 | as_fn_error $? "ambiguous option: \`$1' |
---|
5675 | Try \`$0 --help' for more information.";; |
---|
5676 | --help | --hel | -h ) |
---|
5677 | $as_echo "$ac_cs_usage"; exit ;; |
---|
5678 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
5679 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
5680 | ac_cs_silent=: ;; |
---|
5681 | |
---|
5682 | # This is an error. |
---|
5683 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
5684 | Try \`$0 --help' for more information." ;; |
---|
5685 | |
---|
5686 | *) as_fn_append ac_config_targets " $1" |
---|
5687 | ac_need_defaults=false ;; |
---|
5688 | |
---|
5689 | esac |
---|
5690 | shift |
---|
5691 | done |
---|
5692 | |
---|
5693 | ac_configure_extra_args= |
---|
5694 | |
---|
5695 | if $ac_cs_silent; then |
---|
5696 | exec 6>/dev/null |
---|
5697 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
5698 | fi |
---|
5699 | |
---|
5700 | _ACEOF |
---|
5701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5702 | if \$ac_cs_recheck; then |
---|
5703 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
5704 | shift |
---|
5705 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
5706 | CONFIG_SHELL='$SHELL' |
---|
5707 | export CONFIG_SHELL |
---|
5708 | exec "\$@" |
---|
5709 | fi |
---|
5710 | |
---|
5711 | _ACEOF |
---|
5712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5713 | exec 5>>config.log |
---|
5714 | { |
---|
5715 | echo |
---|
5716 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
5717 | ## Running $as_me. ## |
---|
5718 | _ASBOX |
---|
5719 | $as_echo "$ac_log" |
---|
5720 | } >&5 |
---|
5721 | |
---|
5722 | _ACEOF |
---|
5723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5724 | # |
---|
5725 | # INIT-COMMANDS |
---|
5726 | # |
---|
5727 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
5728 | |
---|
5729 | _ACEOF |
---|
5730 | |
---|
5731 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5732 | |
---|
5733 | # Handling of arguments. |
---|
5734 | for ac_config_target in $ac_config_targets |
---|
5735 | do |
---|
5736 | case $ac_config_target in |
---|
5737 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
5738 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
5739 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
5740 | "translator/Makefile") CONFIG_FILES="$CONFIG_FILES translator/Makefile" ;; |
---|
5741 | "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;; |
---|
5742 | "libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES libcfa/Makefile" ;; |
---|
5743 | "translator/examples/Makefile") CONFIG_FILES="$CONFIG_FILES translator/examples/Makefile" ;; |
---|
5744 | |
---|
5745 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
5746 | esac |
---|
5747 | done |
---|
5748 | |
---|
5749 | |
---|
5750 | # If the user did not use the arguments to specify the items to instantiate, |
---|
5751 | # then the envvar interface is used. Set only those that are not. |
---|
5752 | # We use the long form for the default assignment because of an extremely |
---|
5753 | # bizarre bug on SunOS 4.1.3. |
---|
5754 | if $ac_need_defaults; then |
---|
5755 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
5756 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
5757 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
5758 | fi |
---|
5759 | |
---|
5760 | # Have a temporary directory for convenience. Make it in the build tree |
---|
5761 | # simply because there is no reason against having it here, and in addition, |
---|
5762 | # creating and moving files from /tmp can sometimes cause problems. |
---|
5763 | # Hook for its removal unless debugging. |
---|
5764 | # Note that there is a small window in which the directory will not be cleaned: |
---|
5765 | # after its creation but before its name has been assigned to `$tmp'. |
---|
5766 | $debug || |
---|
5767 | { |
---|
5768 | tmp= ac_tmp= |
---|
5769 | trap 'exit_status=$? |
---|
5770 | : "${ac_tmp:=$tmp}" |
---|
5771 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
5772 | ' 0 |
---|
5773 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
5774 | } |
---|
5775 | # Create a (secure) tmp directory for tmp files. |
---|
5776 | |
---|
5777 | { |
---|
5778 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
5779 | test -d "$tmp" |
---|
5780 | } || |
---|
5781 | { |
---|
5782 | tmp=./conf$$-$RANDOM |
---|
5783 | (umask 077 && mkdir "$tmp") |
---|
5784 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
5785 | ac_tmp=$tmp |
---|
5786 | |
---|
5787 | # Set up the scripts for CONFIG_FILES section. |
---|
5788 | # No need to generate them if there are no CONFIG_FILES. |
---|
5789 | # This happens for instance with `./config.status config.h'. |
---|
5790 | if test -n "$CONFIG_FILES"; then |
---|
5791 | |
---|
5792 | |
---|
5793 | ac_cr=`echo X | tr X '\015'` |
---|
5794 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
5795 | # But we know of no other shell where ac_cr would be empty at this |
---|
5796 | # point, so we can use a bashism as a fallback. |
---|
5797 | if test "x$ac_cr" = x; then |
---|
5798 | eval ac_cr=\$\'\\r\' |
---|
5799 | fi |
---|
5800 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
5801 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
5802 | ac_cs_awk_cr='\\r' |
---|
5803 | else |
---|
5804 | ac_cs_awk_cr=$ac_cr |
---|
5805 | fi |
---|
5806 | |
---|
5807 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
5808 | _ACEOF |
---|
5809 | |
---|
5810 | |
---|
5811 | { |
---|
5812 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
5813 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
5814 | echo "_ACEOF" |
---|
5815 | } >conf$$subs.sh || |
---|
5816 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5817 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
5818 | ac_delim='%!_!# ' |
---|
5819 | for ac_last_try in false false false false false :; do |
---|
5820 | . ./conf$$subs.sh || |
---|
5821 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5822 | |
---|
5823 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
5824 | if test $ac_delim_n = $ac_delim_num; then |
---|
5825 | break |
---|
5826 | elif $ac_last_try; then |
---|
5827 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5828 | else |
---|
5829 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
5830 | fi |
---|
5831 | done |
---|
5832 | rm -f conf$$subs.sh |
---|
5833 | |
---|
5834 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5835 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
5836 | _ACEOF |
---|
5837 | sed -n ' |
---|
5838 | h |
---|
5839 | s/^/S["/; s/!.*/"]=/ |
---|
5840 | p |
---|
5841 | g |
---|
5842 | s/^[^!]*!// |
---|
5843 | :repl |
---|
5844 | t repl |
---|
5845 | s/'"$ac_delim"'$// |
---|
5846 | t delim |
---|
5847 | :nl |
---|
5848 | h |
---|
5849 | s/\(.\{148\}\)..*/\1/ |
---|
5850 | t more1 |
---|
5851 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
5852 | p |
---|
5853 | n |
---|
5854 | b repl |
---|
5855 | :more1 |
---|
5856 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
5857 | p |
---|
5858 | g |
---|
5859 | s/.\{148\}// |
---|
5860 | t nl |
---|
5861 | :delim |
---|
5862 | h |
---|
5863 | s/\(.\{148\}\)..*/\1/ |
---|
5864 | t more2 |
---|
5865 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
5866 | p |
---|
5867 | b |
---|
5868 | :more2 |
---|
5869 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
5870 | p |
---|
5871 | g |
---|
5872 | s/.\{148\}// |
---|
5873 | t delim |
---|
5874 | ' <conf$$subs.awk | sed ' |
---|
5875 | /^[^""]/{ |
---|
5876 | N |
---|
5877 | s/\n// |
---|
5878 | } |
---|
5879 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
5880 | rm -f conf$$subs.awk |
---|
5881 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5882 | _ACAWK |
---|
5883 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
5884 | for (key in S) S_is_set[key] = 1 |
---|
5885 | FS = "" |
---|
5886 | |
---|
5887 | } |
---|
5888 | { |
---|
5889 | line = $ 0 |
---|
5890 | nfields = split(line, field, "@") |
---|
5891 | substed = 0 |
---|
5892 | len = length(field[1]) |
---|
5893 | for (i = 2; i < nfields; i++) { |
---|
5894 | key = field[i] |
---|
5895 | keylen = length(key) |
---|
5896 | if (S_is_set[key]) { |
---|
5897 | value = S[key] |
---|
5898 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
5899 | len += length(value) + length(field[++i]) |
---|
5900 | substed = 1 |
---|
5901 | } else |
---|
5902 | len += 1 + keylen |
---|
5903 | } |
---|
5904 | |
---|
5905 | print line |
---|
5906 | } |
---|
5907 | |
---|
5908 | _ACAWK |
---|
5909 | _ACEOF |
---|
5910 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5911 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
5912 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
5913 | else |
---|
5914 | cat |
---|
5915 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
5916 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
5917 | _ACEOF |
---|
5918 | |
---|
5919 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
5920 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
5921 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
5922 | # (actually we leave an empty line to preserve line numbers). |
---|
5923 | if test "x$srcdir" = x.; then |
---|
5924 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
5925 | h |
---|
5926 | s/// |
---|
5927 | s/^/:/ |
---|
5928 | s/[ ]*$/:/ |
---|
5929 | s/:\$(srcdir):/:/g |
---|
5930 | s/:\${srcdir}:/:/g |
---|
5931 | s/:@srcdir@:/:/g |
---|
5932 | s/^:*// |
---|
5933 | s/:*$// |
---|
5934 | x |
---|
5935 | s/\(=[ ]*\).*/\1/ |
---|
5936 | G |
---|
5937 | s/\n// |
---|
5938 | s/^[^=]*=[ ]*$// |
---|
5939 | }' |
---|
5940 | fi |
---|
5941 | |
---|
5942 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5943 | fi # test -n "$CONFIG_FILES" |
---|
5944 | |
---|
5945 | # Set up the scripts for CONFIG_HEADERS section. |
---|
5946 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
5947 | # This happens for instance with `./config.status Makefile'. |
---|
5948 | if test -n "$CONFIG_HEADERS"; then |
---|
5949 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
5950 | BEGIN { |
---|
5951 | _ACEOF |
---|
5952 | |
---|
5953 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
5954 | # here-document in config.status, that substitutes the proper values into |
---|
5955 | # config.h.in to produce config.h. |
---|
5956 | |
---|
5957 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
5958 | # handling of long lines. |
---|
5959 | ac_delim='%!_!# ' |
---|
5960 | for ac_last_try in false false :; do |
---|
5961 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
5962 | if test -z "$ac_tt"; then |
---|
5963 | break |
---|
5964 | elif $ac_last_try; then |
---|
5965 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
5966 | else |
---|
5967 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
5968 | fi |
---|
5969 | done |
---|
5970 | |
---|
5971 | # For the awk script, D is an array of macro values keyed by name, |
---|
5972 | # likewise P contains macro parameters if any. Preserve backslash |
---|
5973 | # newline sequences. |
---|
5974 | |
---|
5975 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
5976 | sed -n ' |
---|
5977 | s/.\{148\}/&'"$ac_delim"'/g |
---|
5978 | t rset |
---|
5979 | :rset |
---|
5980 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
5981 | t def |
---|
5982 | d |
---|
5983 | :def |
---|
5984 | s/\\$// |
---|
5985 | t bsnl |
---|
5986 | s/["\\]/\\&/g |
---|
5987 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
5988 | D["\1"]=" \3"/p |
---|
5989 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
5990 | d |
---|
5991 | :bsnl |
---|
5992 | s/["\\]/\\&/g |
---|
5993 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
5994 | D["\1"]=" \3\\\\\\n"\\/p |
---|
5995 | t cont |
---|
5996 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
5997 | t cont |
---|
5998 | d |
---|
5999 | :cont |
---|
6000 | n |
---|
6001 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6002 | t clear |
---|
6003 | :clear |
---|
6004 | s/\\$// |
---|
6005 | t bsnlc |
---|
6006 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
6007 | d |
---|
6008 | :bsnlc |
---|
6009 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
6010 | b cont |
---|
6011 | ' <confdefs.h | sed ' |
---|
6012 | s/'"$ac_delim"'/"\\\ |
---|
6013 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6014 | |
---|
6015 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6016 | for (key in D) D_is_set[key] = 1 |
---|
6017 | FS = "" |
---|
6018 | } |
---|
6019 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
6020 | line = \$ 0 |
---|
6021 | split(line, arg, " ") |
---|
6022 | if (arg[1] == "#") { |
---|
6023 | defundef = arg[2] |
---|
6024 | mac1 = arg[3] |
---|
6025 | } else { |
---|
6026 | defundef = substr(arg[1], 2) |
---|
6027 | mac1 = arg[2] |
---|
6028 | } |
---|
6029 | split(mac1, mac2, "(") #) |
---|
6030 | macro = mac2[1] |
---|
6031 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
6032 | if (D_is_set[macro]) { |
---|
6033 | # Preserve the white space surrounding the "#". |
---|
6034 | print prefix "define", macro P[macro] D[macro] |
---|
6035 | next |
---|
6036 | } else { |
---|
6037 | # Replace #undef with comments. This is necessary, for example, |
---|
6038 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
6039 | # on some systems where configure will not decide to define it. |
---|
6040 | if (defundef == "undef") { |
---|
6041 | print "/*", prefix defundef, macro, "*/" |
---|
6042 | next |
---|
6043 | } |
---|
6044 | } |
---|
6045 | } |
---|
6046 | { print } |
---|
6047 | _ACAWK |
---|
6048 | _ACEOF |
---|
6049 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6050 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
6051 | fi # test -n "$CONFIG_HEADERS" |
---|
6052 | |
---|
6053 | |
---|
6054 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
---|
6055 | shift |
---|
6056 | for ac_tag |
---|
6057 | do |
---|
6058 | case $ac_tag in |
---|
6059 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
6060 | esac |
---|
6061 | case $ac_mode$ac_tag in |
---|
6062 | :[FHL]*:*);; |
---|
6063 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
6064 | :[FH]-) ac_tag=-:-;; |
---|
6065 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
6066 | esac |
---|
6067 | ac_save_IFS=$IFS |
---|
6068 | IFS=: |
---|
6069 | set x $ac_tag |
---|
6070 | IFS=$ac_save_IFS |
---|
6071 | shift |
---|
6072 | ac_file=$1 |
---|
6073 | shift |
---|
6074 | |
---|
6075 | case $ac_mode in |
---|
6076 | :L) ac_source=$1;; |
---|
6077 | :[FH]) |
---|
6078 | ac_file_inputs= |
---|
6079 | for ac_f |
---|
6080 | do |
---|
6081 | case $ac_f in |
---|
6082 | -) ac_f="$ac_tmp/stdin";; |
---|
6083 | *) # Look for the file first in the build tree, then in the source tree |
---|
6084 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
6085 | # because $ac_f cannot contain `:'. |
---|
6086 | test -f "$ac_f" || |
---|
6087 | case $ac_f in |
---|
6088 | [\\/$]*) false;; |
---|
6089 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
6090 | esac || |
---|
6091 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
6092 | esac |
---|
6093 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
6094 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
6095 | done |
---|
6096 | |
---|
6097 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6098 | # use $as_me), people would be surprised to read: |
---|
6099 | # /* config.h. Generated by config.status. */ |
---|
6100 | configure_input='Generated from '` |
---|
6101 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
6102 | `' by configure.' |
---|
6103 | if test x"$ac_file" != x-; then |
---|
6104 | configure_input="$ac_file. $configure_input" |
---|
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
6106 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
6107 | fi |
---|
6108 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
6109 | case $configure_input in #( |
---|
6110 | *\&* | *\|* | *\\* ) |
---|
6111 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
6112 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
6113 | *) ac_sed_conf_input=$configure_input;; |
---|
6114 | esac |
---|
6115 | |
---|
6116 | case $ac_tag in |
---|
6117 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
6118 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
6119 | esac |
---|
6120 | ;; |
---|
6121 | esac |
---|
6122 | |
---|
6123 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
6124 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6125 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6126 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6127 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6128 | $as_echo X"$ac_file" | |
---|
6129 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6130 | s//\1/ |
---|
6131 | q |
---|
6132 | } |
---|
6133 | /^X\(\/\/\)[^/].*/{ |
---|
6134 | s//\1/ |
---|
6135 | q |
---|
6136 | } |
---|
6137 | /^X\(\/\/\)$/{ |
---|
6138 | s//\1/ |
---|
6139 | q |
---|
6140 | } |
---|
6141 | /^X\(\/\).*/{ |
---|
6142 | s//\1/ |
---|
6143 | q |
---|
6144 | } |
---|
6145 | s/.*/./; q'` |
---|
6146 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
6147 | ac_builddir=. |
---|
6148 | |
---|
6149 | case "$ac_dir" in |
---|
6150 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6151 | *) |
---|
6152 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
6153 | # A ".." for each directory in $ac_dir_suffix. |
---|
6154 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
6155 | case $ac_top_builddir_sub in |
---|
6156 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6157 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
6158 | esac ;; |
---|
6159 | esac |
---|
6160 | ac_abs_top_builddir=$ac_pwd |
---|
6161 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
6162 | # for backward compatibility: |
---|
6163 | ac_top_builddir=$ac_top_build_prefix |
---|
6164 | |
---|
6165 | case $srcdir in |
---|
6166 | .) # We are building in place. |
---|
6167 | ac_srcdir=. |
---|
6168 | ac_top_srcdir=$ac_top_builddir_sub |
---|
6169 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
6170 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
6171 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6172 | ac_top_srcdir=$srcdir |
---|
6173 | ac_abs_top_srcdir=$srcdir ;; |
---|
6174 | *) # Relative name. |
---|
6175 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
6176 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
6177 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
6178 | esac |
---|
6179 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
6180 | |
---|
6181 | |
---|
6182 | case $ac_mode in |
---|
6183 | :F) |
---|
6184 | # |
---|
6185 | # CONFIG_FILE |
---|
6186 | # |
---|
6187 | |
---|
6188 | case $INSTALL in |
---|
6189 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6190 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
6191 | esac |
---|
6192 | ac_MKDIR_P=$MKDIR_P |
---|
6193 | case $MKDIR_P in |
---|
6194 | [\\/$]* | ?:[\\/]* ) ;; |
---|
6195 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
6196 | esac |
---|
6197 | _ACEOF |
---|
6198 | |
---|
6199 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6200 | # If the template does not know about datarootdir, expand it. |
---|
6201 | # FIXME: This hack should be removed a few years after 2.60. |
---|
6202 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
6203 | ac_sed_dataroot=' |
---|
6204 | /datarootdir/ { |
---|
6205 | p |
---|
6206 | q |
---|
6207 | } |
---|
6208 | /@datadir@/p |
---|
6209 | /@docdir@/p |
---|
6210 | /@infodir@/p |
---|
6211 | /@localedir@/p |
---|
6212 | /@mandir@/p' |
---|
6213 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
6214 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
6215 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
6216 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
6217 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
6218 | _ACEOF |
---|
6219 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6220 | ac_datarootdir_hack=' |
---|
6221 | s&@datadir@&$datadir&g |
---|
6222 | s&@docdir@&$docdir&g |
---|
6223 | s&@infodir@&$infodir&g |
---|
6224 | s&@localedir@&$localedir&g |
---|
6225 | s&@mandir@&$mandir&g |
---|
6226 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
6227 | esac |
---|
6228 | _ACEOF |
---|
6229 | |
---|
6230 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
6231 | # Shell code in configure.ac might set extrasub. |
---|
6232 | # FIXME: do we really want to maintain this feature? |
---|
6233 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6234 | ac_sed_extra="$ac_vpsub |
---|
6235 | $extrasub |
---|
6236 | _ACEOF |
---|
6237 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6238 | :t |
---|
6239 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6240 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
6241 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
6242 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
6243 | s&@srcdir@&$ac_srcdir&;t t |
---|
6244 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
6245 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
6246 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
6247 | s&@builddir@&$ac_builddir&;t t |
---|
6248 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
6249 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
6250 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
6251 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
6252 | $ac_datarootdir_hack |
---|
6253 | " |
---|
6254 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
6255 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6256 | |
---|
6257 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
6258 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
6259 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
6260 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6262 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
6263 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6264 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
6265 | |
---|
6266 | rm -f "$ac_tmp/stdin" |
---|
6267 | case $ac_file in |
---|
6268 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
6269 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
6270 | esac \ |
---|
6271 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6272 | ;; |
---|
6273 | :H) |
---|
6274 | # |
---|
6275 | # CONFIG_HEADER |
---|
6276 | # |
---|
6277 | if test x"$ac_file" != x-; then |
---|
6278 | { |
---|
6279 | $as_echo "/* $configure_input */" \ |
---|
6280 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
6281 | } >"$ac_tmp/config.h" \ |
---|
6282 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6283 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
6285 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
6286 | else |
---|
6287 | rm -f "$ac_file" |
---|
6288 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
6289 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6290 | fi |
---|
6291 | else |
---|
6292 | $as_echo "/* $configure_input */" \ |
---|
6293 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
6294 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
6295 | fi |
---|
6296 | # Compute "$ac_file"'s index in $config_headers. |
---|
6297 | _am_arg="$ac_file" |
---|
6298 | _am_stamp_count=1 |
---|
6299 | for _am_header in $config_headers :; do |
---|
6300 | case $_am_header in |
---|
6301 | $_am_arg | $_am_arg:* ) |
---|
6302 | break ;; |
---|
6303 | * ) |
---|
6304 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
6305 | esac |
---|
6306 | done |
---|
6307 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
6308 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6309 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
6310 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
6311 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
6312 | $as_echo X"$_am_arg" | |
---|
6313 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6314 | s//\1/ |
---|
6315 | q |
---|
6316 | } |
---|
6317 | /^X\(\/\/\)[^/].*/{ |
---|
6318 | s//\1/ |
---|
6319 | q |
---|
6320 | } |
---|
6321 | /^X\(\/\/\)$/{ |
---|
6322 | s//\1/ |
---|
6323 | q |
---|
6324 | } |
---|
6325 | /^X\(\/\).*/{ |
---|
6326 | s//\1/ |
---|
6327 | q |
---|
6328 | } |
---|
6329 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
6330 | ;; |
---|
6331 | |
---|
6332 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
6333 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
6334 | ;; |
---|
6335 | esac |
---|
6336 | |
---|
6337 | |
---|
6338 | case $ac_file$ac_mode in |
---|
6339 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
6340 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
---|
6341 | # are listed without --file. Let's play safe and only enable the eval |
---|
6342 | # if we detect the quoting. |
---|
6343 | case $CONFIG_FILES in |
---|
6344 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
6345 | *) set x $CONFIG_FILES ;; |
---|
6346 | esac |
---|
6347 | shift |
---|
6348 | for mf |
---|
6349 | do |
---|
6350 | # Strip MF so we end up with the name of the file. |
---|
6351 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
6352 | # Check whether this is an Automake generated Makefile or not. |
---|
6353 | # We used to match only the files named `Makefile.in', but |
---|
6354 | # some people rename them; so instead we look at the file content. |
---|
6355 | # Grep'ing the first line is not enough: some people post-process |
---|
6356 | # each Makefile.in and add a new line on top of each file to say so. |
---|
6357 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
6358 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
6359 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
6360 | dirpart=`$as_dirname -- "$mf" || |
---|
6361 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6362 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
6363 | X"$mf" : 'X\(//\)$' \| \ |
---|
6364 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
6365 | $as_echo X"$mf" | |
---|
6366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6367 | s//\1/ |
---|
6368 | q |
---|
6369 | } |
---|
6370 | /^X\(\/\/\)[^/].*/{ |
---|
6371 | s//\1/ |
---|
6372 | q |
---|
6373 | } |
---|
6374 | /^X\(\/\/\)$/{ |
---|
6375 | s//\1/ |
---|
6376 | q |
---|
6377 | } |
---|
6378 | /^X\(\/\).*/{ |
---|
6379 | s//\1/ |
---|
6380 | q |
---|
6381 | } |
---|
6382 | s/.*/./; q'` |
---|
6383 | else |
---|
6384 | continue |
---|
6385 | fi |
---|
6386 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
6387 | # from the Makefile without running `make'. |
---|
6388 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
6389 | test -z "$DEPDIR" && continue |
---|
6390 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
6391 | test -z "am__include" && continue |
---|
6392 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
6393 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
6394 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
6395 | # Find all dependency output files, they are included files with |
---|
6396 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
6397 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
6398 | # expansion. |
---|
6399 | for file in `sed -n " |
---|
6400 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
6401 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
6402 | # Make sure the directory exists. |
---|
6403 | test -f "$dirpart/$file" && continue |
---|
6404 | fdir=`$as_dirname -- "$file" || |
---|
6405 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6406 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
6407 | X"$file" : 'X\(//\)$' \| \ |
---|
6408 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6409 | $as_echo X"$file" | |
---|
6410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6411 | s//\1/ |
---|
6412 | q |
---|
6413 | } |
---|
6414 | /^X\(\/\/\)[^/].*/{ |
---|
6415 | s//\1/ |
---|
6416 | q |
---|
6417 | } |
---|
6418 | /^X\(\/\/\)$/{ |
---|
6419 | s//\1/ |
---|
6420 | q |
---|
6421 | } |
---|
6422 | /^X\(\/\).*/{ |
---|
6423 | s//\1/ |
---|
6424 | q |
---|
6425 | } |
---|
6426 | s/.*/./; q'` |
---|
6427 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
6428 | # echo "creating $dirpart/$file" |
---|
6429 | echo '# dummy' > "$dirpart/$file" |
---|
6430 | done |
---|
6431 | done |
---|
6432 | } |
---|
6433 | ;; |
---|
6434 | |
---|
6435 | esac |
---|
6436 | done # for ac_tag |
---|
6437 | |
---|
6438 | |
---|
6439 | as_fn_exit 0 |
---|
6440 | _ACEOF |
---|
6441 | ac_clean_files=$ac_clean_files_save |
---|
6442 | |
---|
6443 | test $ac_write_fail = 0 || |
---|
6444 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
6445 | |
---|
6446 | |
---|
6447 | # configure is writing to config.log, and then calls config.status. |
---|
6448 | # config.status does its own redirection, appending to config.log. |
---|
6449 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6450 | # by configure, so config.status won't be able to write to it; its |
---|
6451 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6452 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6453 | # appended to by config.status. When coming back to configure, we |
---|
6454 | # need to make the FD available again. |
---|
6455 | if test "$no_create" != yes; then |
---|
6456 | ac_cs_success=: |
---|
6457 | ac_config_status_args= |
---|
6458 | test "$silent" = yes && |
---|
6459 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6460 | exec 5>/dev/null |
---|
6461 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6462 | exec 5>>config.log |
---|
6463 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6464 | # would make configure fail if this is the last instruction. |
---|
6465 | $ac_cs_success || as_fn_exit 1 |
---|
6466 | fi |
---|
6467 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
6469 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
6470 | fi |
---|
6471 | |
---|
6472 | |
---|
6473 | |
---|
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make install\"." >&5 |
---|
6475 | $as_echo "Cforall configuraton completed. Type \"make install\"." >&6; } |
---|