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.0.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.0.0' |
---|
564 | PACKAGE_STRING='cfa-cc 1.0.0.0' |
---|
565 | PACKAGE_BUGREPORT='cforall@plg.uwaterloo.ca' |
---|
566 | PACKAGE_URL='' |
---|
567 | |
---|
568 | # Factoring default headers for most tests. |
---|
569 | ac_includes_default="\ |
---|
570 | #include <stdio.h> |
---|
571 | #ifdef HAVE_SYS_TYPES_H |
---|
572 | # include <sys/types.h> |
---|
573 | #endif |
---|
574 | #ifdef HAVE_SYS_STAT_H |
---|
575 | # include <sys/stat.h> |
---|
576 | #endif |
---|
577 | #ifdef STDC_HEADERS |
---|
578 | # include <stdlib.h> |
---|
579 | # include <stddef.h> |
---|
580 | #else |
---|
581 | # ifdef HAVE_STDLIB_H |
---|
582 | # include <stdlib.h> |
---|
583 | # endif |
---|
584 | #endif |
---|
585 | #ifdef HAVE_STRING_H |
---|
586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
587 | # include <memory.h> |
---|
588 | # endif |
---|
589 | # include <string.h> |
---|
590 | #endif |
---|
591 | #ifdef HAVE_STRINGS_H |
---|
592 | # include <strings.h> |
---|
593 | #endif |
---|
594 | #ifdef HAVE_INTTYPES_H |
---|
595 | # include <inttypes.h> |
---|
596 | #endif |
---|
597 | #ifdef HAVE_STDINT_H |
---|
598 | # include <stdint.h> |
---|
599 | #endif |
---|
600 | #ifdef HAVE_UNISTD_H |
---|
601 | # include <unistd.h> |
---|
602 | #endif" |
---|
603 | |
---|
604 | ac_subst_vars='am__EXEEXT_FALSE |
---|
605 | am__EXEEXT_TRUE |
---|
606 | LTLIBOBJS |
---|
607 | LIBOBJS |
---|
608 | ALLOCA |
---|
609 | EGREP |
---|
610 | GREP |
---|
611 | CPP |
---|
612 | RANLIB |
---|
613 | LEXLIB |
---|
614 | LEX_OUTPUT_ROOT |
---|
615 | LEX |
---|
616 | YFLAGS |
---|
617 | YACC |
---|
618 | am__fastdepCCAS_FALSE |
---|
619 | am__fastdepCCAS_TRUE |
---|
620 | CCASDEPMODE |
---|
621 | CCASFLAGS |
---|
622 | CCAS |
---|
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 | MACHINE_TYPE |
---|
647 | host_os |
---|
648 | host_vendor |
---|
649 | host_cpu |
---|
650 | host |
---|
651 | build_os |
---|
652 | build_vendor |
---|
653 | build_cpu |
---|
654 | build |
---|
655 | CFA_FLAGS |
---|
656 | CFA_LIBDIR |
---|
657 | CFA_BINDIR |
---|
658 | CFA_INCDIR |
---|
659 | CFA_PREFIX |
---|
660 | BUILD_NO_LIB_FALSE |
---|
661 | BUILD_NO_LIB_TRUE |
---|
662 | BUILD_DEBUG_FALSE |
---|
663 | BUILD_DEBUG_TRUE |
---|
664 | BUILD_RELEASE_FALSE |
---|
665 | BUILD_RELEASE_TRUE |
---|
666 | CFA_BACKEND_CC |
---|
667 | BACKEND_CC |
---|
668 | MAINT |
---|
669 | MAINTAINER_MODE_FALSE |
---|
670 | MAINTAINER_MODE_TRUE |
---|
671 | am__untar |
---|
672 | am__tar |
---|
673 | AMTAR |
---|
674 | am__leading_dot |
---|
675 | SET_MAKE |
---|
676 | AWK |
---|
677 | mkdir_p |
---|
678 | MKDIR_P |
---|
679 | INSTALL_STRIP_PROGRAM |
---|
680 | STRIP |
---|
681 | install_sh |
---|
682 | MAKEINFO |
---|
683 | AUTOHEADER |
---|
684 | AUTOMAKE |
---|
685 | AUTOCONF |
---|
686 | ACLOCAL |
---|
687 | VERSION |
---|
688 | PACKAGE |
---|
689 | CYGPATH_W |
---|
690 | am__isrc |
---|
691 | INSTALL_DATA |
---|
692 | INSTALL_SCRIPT |
---|
693 | INSTALL_PROGRAM |
---|
694 | AM_BACKSLASH |
---|
695 | AM_DEFAULT_VERBOSITY |
---|
696 | AM_DEFAULT_V |
---|
697 | AM_V |
---|
698 | target_alias |
---|
699 | host_alias |
---|
700 | build_alias |
---|
701 | LIBS |
---|
702 | ECHO_T |
---|
703 | ECHO_N |
---|
704 | ECHO_C |
---|
705 | DEFS |
---|
706 | mandir |
---|
707 | localedir |
---|
708 | libdir |
---|
709 | psdir |
---|
710 | pdfdir |
---|
711 | dvidir |
---|
712 | htmldir |
---|
713 | infodir |
---|
714 | docdir |
---|
715 | oldincludedir |
---|
716 | includedir |
---|
717 | localstatedir |
---|
718 | sharedstatedir |
---|
719 | sysconfdir |
---|
720 | datadir |
---|
721 | datarootdir |
---|
722 | libexecdir |
---|
723 | sbindir |
---|
724 | bindir |
---|
725 | program_transform_name |
---|
726 | prefix |
---|
727 | exec_prefix |
---|
728 | PACKAGE_URL |
---|
729 | PACKAGE_BUGREPORT |
---|
730 | PACKAGE_STRING |
---|
731 | PACKAGE_VERSION |
---|
732 | PACKAGE_TARNAME |
---|
733 | PACKAGE_NAME |
---|
734 | PATH_SEPARATOR |
---|
735 | SHELL' |
---|
736 | ac_subst_files='' |
---|
737 | ac_user_opts=' |
---|
738 | enable_option_checking |
---|
739 | enable_silent_rules |
---|
740 | enable_maintainer_mode |
---|
741 | with_backend_compiler |
---|
742 | enable_target_release |
---|
743 | enable_target_debug |
---|
744 | enable_dependency_tracking |
---|
745 | ' |
---|
746 | ac_precious_vars='build_alias |
---|
747 | host_alias |
---|
748 | target_alias |
---|
749 | CXX |
---|
750 | CXXFLAGS |
---|
751 | LDFLAGS |
---|
752 | LIBS |
---|
753 | CPPFLAGS |
---|
754 | CCC |
---|
755 | CC |
---|
756 | CFLAGS |
---|
757 | CCAS |
---|
758 | CCASFLAGS |
---|
759 | YACC |
---|
760 | YFLAGS |
---|
761 | CPP' |
---|
762 | |
---|
763 | |
---|
764 | # Initialize some variables set by options. |
---|
765 | ac_init_help= |
---|
766 | ac_init_version=false |
---|
767 | ac_unrecognized_opts= |
---|
768 | ac_unrecognized_sep= |
---|
769 | # The variables have the same names as the options, with |
---|
770 | # dashes changed to underlines. |
---|
771 | cache_file=/dev/null |
---|
772 | exec_prefix=NONE |
---|
773 | no_create= |
---|
774 | no_recursion= |
---|
775 | prefix=NONE |
---|
776 | program_prefix=NONE |
---|
777 | program_suffix=NONE |
---|
778 | program_transform_name=s,x,x, |
---|
779 | silent= |
---|
780 | site= |
---|
781 | srcdir= |
---|
782 | verbose= |
---|
783 | x_includes=NONE |
---|
784 | x_libraries=NONE |
---|
785 | |
---|
786 | # Installation directory options. |
---|
787 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
788 | # and all the variables that are supposed to be based on exec_prefix |
---|
789 | # by default will actually change. |
---|
790 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
791 | # (The list follows the same order as the GNU Coding Standards.) |
---|
792 | bindir='${exec_prefix}/bin' |
---|
793 | sbindir='${exec_prefix}/sbin' |
---|
794 | libexecdir='${exec_prefix}/libexec' |
---|
795 | datarootdir='${prefix}/share' |
---|
796 | datadir='${datarootdir}' |
---|
797 | sysconfdir='${prefix}/etc' |
---|
798 | sharedstatedir='${prefix}/com' |
---|
799 | localstatedir='${prefix}/var' |
---|
800 | includedir='${prefix}/include' |
---|
801 | oldincludedir='/usr/include' |
---|
802 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
803 | infodir='${datarootdir}/info' |
---|
804 | htmldir='${docdir}' |
---|
805 | dvidir='${docdir}' |
---|
806 | pdfdir='${docdir}' |
---|
807 | psdir='${docdir}' |
---|
808 | libdir='${exec_prefix}/lib' |
---|
809 | localedir='${datarootdir}/locale' |
---|
810 | mandir='${datarootdir}/man' |
---|
811 | |
---|
812 | ac_prev= |
---|
813 | ac_dashdash= |
---|
814 | for ac_option |
---|
815 | do |
---|
816 | # If the previous option needs an argument, assign it. |
---|
817 | if test -n "$ac_prev"; then |
---|
818 | eval $ac_prev=\$ac_option |
---|
819 | ac_prev= |
---|
820 | continue |
---|
821 | fi |
---|
822 | |
---|
823 | case $ac_option in |
---|
824 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
825 | *=) ac_optarg= ;; |
---|
826 | *) ac_optarg=yes ;; |
---|
827 | esac |
---|
828 | |
---|
829 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
830 | |
---|
831 | case $ac_dashdash$ac_option in |
---|
832 | --) |
---|
833 | ac_dashdash=yes ;; |
---|
834 | |
---|
835 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
836 | ac_prev=bindir ;; |
---|
837 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
838 | bindir=$ac_optarg ;; |
---|
839 | |
---|
840 | -build | --build | --buil | --bui | --bu) |
---|
841 | ac_prev=build_alias ;; |
---|
842 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
843 | build_alias=$ac_optarg ;; |
---|
844 | |
---|
845 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
846 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
847 | ac_prev=cache_file ;; |
---|
848 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
849 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
850 | cache_file=$ac_optarg ;; |
---|
851 | |
---|
852 | --config-cache | -C) |
---|
853 | cache_file=config.cache ;; |
---|
854 | |
---|
855 | -datadir | --datadir | --datadi | --datad) |
---|
856 | ac_prev=datadir ;; |
---|
857 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
858 | datadir=$ac_optarg ;; |
---|
859 | |
---|
860 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
861 | | --dataroo | --dataro | --datar) |
---|
862 | ac_prev=datarootdir ;; |
---|
863 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
864 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
865 | datarootdir=$ac_optarg ;; |
---|
866 | |
---|
867 | -disable-* | --disable-*) |
---|
868 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
869 | # Reject names that are not valid shell variable names. |
---|
870 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
871 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
872 | ac_useropt_orig=$ac_useropt |
---|
873 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
874 | case $ac_user_opts in |
---|
875 | *" |
---|
876 | "enable_$ac_useropt" |
---|
877 | "*) ;; |
---|
878 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
879 | ac_unrecognized_sep=', ';; |
---|
880 | esac |
---|
881 | eval enable_$ac_useropt=no ;; |
---|
882 | |
---|
883 | -docdir | --docdir | --docdi | --doc | --do) |
---|
884 | ac_prev=docdir ;; |
---|
885 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
886 | docdir=$ac_optarg ;; |
---|
887 | |
---|
888 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
889 | ac_prev=dvidir ;; |
---|
890 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
891 | dvidir=$ac_optarg ;; |
---|
892 | |
---|
893 | -enable-* | --enable-*) |
---|
894 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
895 | # Reject names that are not valid shell variable names. |
---|
896 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
897 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
898 | ac_useropt_orig=$ac_useropt |
---|
899 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
900 | case $ac_user_opts in |
---|
901 | *" |
---|
902 | "enable_$ac_useropt" |
---|
903 | "*) ;; |
---|
904 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
905 | ac_unrecognized_sep=', ';; |
---|
906 | esac |
---|
907 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
908 | |
---|
909 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
910 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
911 | | --exec | --exe | --ex) |
---|
912 | ac_prev=exec_prefix ;; |
---|
913 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
914 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
915 | | --exec=* | --exe=* | --ex=*) |
---|
916 | exec_prefix=$ac_optarg ;; |
---|
917 | |
---|
918 | -gas | --gas | --ga | --g) |
---|
919 | # Obsolete; use --with-gas. |
---|
920 | with_gas=yes ;; |
---|
921 | |
---|
922 | -help | --help | --hel | --he | -h) |
---|
923 | ac_init_help=long ;; |
---|
924 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
925 | ac_init_help=recursive ;; |
---|
926 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
927 | ac_init_help=short ;; |
---|
928 | |
---|
929 | -host | --host | --hos | --ho) |
---|
930 | ac_prev=host_alias ;; |
---|
931 | -host=* | --host=* | --hos=* | --ho=*) |
---|
932 | host_alias=$ac_optarg ;; |
---|
933 | |
---|
934 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
935 | ac_prev=htmldir ;; |
---|
936 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
937 | | --ht=*) |
---|
938 | htmldir=$ac_optarg ;; |
---|
939 | |
---|
940 | -includedir | --includedir | --includedi | --included | --include \ |
---|
941 | | --includ | --inclu | --incl | --inc) |
---|
942 | ac_prev=includedir ;; |
---|
943 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
944 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
945 | includedir=$ac_optarg ;; |
---|
946 | |
---|
947 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
948 | ac_prev=infodir ;; |
---|
949 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
950 | infodir=$ac_optarg ;; |
---|
951 | |
---|
952 | -libdir | --libdir | --libdi | --libd) |
---|
953 | ac_prev=libdir ;; |
---|
954 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
955 | libdir=$ac_optarg ;; |
---|
956 | |
---|
957 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
958 | | --libexe | --libex | --libe) |
---|
959 | ac_prev=libexecdir ;; |
---|
960 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
961 | | --libexe=* | --libex=* | --libe=*) |
---|
962 | libexecdir=$ac_optarg ;; |
---|
963 | |
---|
964 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
965 | ac_prev=localedir ;; |
---|
966 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
967 | localedir=$ac_optarg ;; |
---|
968 | |
---|
969 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
970 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
971 | ac_prev=localstatedir ;; |
---|
972 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
973 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
974 | localstatedir=$ac_optarg ;; |
---|
975 | |
---|
976 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
977 | ac_prev=mandir ;; |
---|
978 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
979 | mandir=$ac_optarg ;; |
---|
980 | |
---|
981 | -nfp | --nfp | --nf) |
---|
982 | # Obsolete; use --without-fp. |
---|
983 | with_fp=no ;; |
---|
984 | |
---|
985 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
986 | | --no-cr | --no-c | -n) |
---|
987 | no_create=yes ;; |
---|
988 | |
---|
989 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
990 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
991 | no_recursion=yes ;; |
---|
992 | |
---|
993 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
994 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
995 | | --oldin | --oldi | --old | --ol | --o) |
---|
996 | ac_prev=oldincludedir ;; |
---|
997 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
998 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
999 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1000 | oldincludedir=$ac_optarg ;; |
---|
1001 | |
---|
1002 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1003 | ac_prev=prefix ;; |
---|
1004 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1005 | prefix=$ac_optarg ;; |
---|
1006 | |
---|
1007 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1008 | | --program-pre | --program-pr | --program-p) |
---|
1009 | ac_prev=program_prefix ;; |
---|
1010 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1011 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1012 | program_prefix=$ac_optarg ;; |
---|
1013 | |
---|
1014 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1015 | | --program-suf | --program-su | --program-s) |
---|
1016 | ac_prev=program_suffix ;; |
---|
1017 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1018 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1019 | program_suffix=$ac_optarg ;; |
---|
1020 | |
---|
1021 | -program-transform-name | --program-transform-name \ |
---|
1022 | | --program-transform-nam | --program-transform-na \ |
---|
1023 | | --program-transform-n | --program-transform- \ |
---|
1024 | | --program-transform | --program-transfor \ |
---|
1025 | | --program-transfo | --program-transf \ |
---|
1026 | | --program-trans | --program-tran \ |
---|
1027 | | --progr-tra | --program-tr | --program-t) |
---|
1028 | ac_prev=program_transform_name ;; |
---|
1029 | -program-transform-name=* | --program-transform-name=* \ |
---|
1030 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1031 | | --program-transform-n=* | --program-transform-=* \ |
---|
1032 | | --program-transform=* | --program-transfor=* \ |
---|
1033 | | --program-transfo=* | --program-transf=* \ |
---|
1034 | | --program-trans=* | --program-tran=* \ |
---|
1035 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1036 | program_transform_name=$ac_optarg ;; |
---|
1037 | |
---|
1038 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1039 | ac_prev=pdfdir ;; |
---|
1040 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1041 | pdfdir=$ac_optarg ;; |
---|
1042 | |
---|
1043 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1044 | ac_prev=psdir ;; |
---|
1045 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1046 | psdir=$ac_optarg ;; |
---|
1047 | |
---|
1048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1049 | | -silent | --silent | --silen | --sile | --sil) |
---|
1050 | silent=yes ;; |
---|
1051 | |
---|
1052 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1053 | ac_prev=sbindir ;; |
---|
1054 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1055 | | --sbi=* | --sb=*) |
---|
1056 | sbindir=$ac_optarg ;; |
---|
1057 | |
---|
1058 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1059 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1060 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1061 | | --sha | --sh) |
---|
1062 | ac_prev=sharedstatedir ;; |
---|
1063 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1064 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1065 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1066 | | --sha=* | --sh=*) |
---|
1067 | sharedstatedir=$ac_optarg ;; |
---|
1068 | |
---|
1069 | -site | --site | --sit) |
---|
1070 | ac_prev=site ;; |
---|
1071 | -site=* | --site=* | --sit=*) |
---|
1072 | site=$ac_optarg ;; |
---|
1073 | |
---|
1074 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1075 | ac_prev=srcdir ;; |
---|
1076 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1077 | srcdir=$ac_optarg ;; |
---|
1078 | |
---|
1079 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1080 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1081 | ac_prev=sysconfdir ;; |
---|
1082 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1083 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1084 | sysconfdir=$ac_optarg ;; |
---|
1085 | |
---|
1086 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1087 | ac_prev=target_alias ;; |
---|
1088 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1089 | target_alias=$ac_optarg ;; |
---|
1090 | |
---|
1091 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1092 | verbose=yes ;; |
---|
1093 | |
---|
1094 | -version | --version | --versio | --versi | --vers | -V) |
---|
1095 | ac_init_version=: ;; |
---|
1096 | |
---|
1097 | -with-* | --with-*) |
---|
1098 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1099 | # Reject names that are not valid shell variable names. |
---|
1100 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1101 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1102 | ac_useropt_orig=$ac_useropt |
---|
1103 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1104 | case $ac_user_opts in |
---|
1105 | *" |
---|
1106 | "with_$ac_useropt" |
---|
1107 | "*) ;; |
---|
1108 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1109 | ac_unrecognized_sep=', ';; |
---|
1110 | esac |
---|
1111 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1112 | |
---|
1113 | -without-* | --without-*) |
---|
1114 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1115 | # Reject names that are not valid shell variable names. |
---|
1116 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1117 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1118 | ac_useropt_orig=$ac_useropt |
---|
1119 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1120 | case $ac_user_opts in |
---|
1121 | *" |
---|
1122 | "with_$ac_useropt" |
---|
1123 | "*) ;; |
---|
1124 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1125 | ac_unrecognized_sep=', ';; |
---|
1126 | esac |
---|
1127 | eval with_$ac_useropt=no ;; |
---|
1128 | |
---|
1129 | --x) |
---|
1130 | # Obsolete; use --with-x. |
---|
1131 | with_x=yes ;; |
---|
1132 | |
---|
1133 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1134 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1135 | ac_prev=x_includes ;; |
---|
1136 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1137 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1138 | x_includes=$ac_optarg ;; |
---|
1139 | |
---|
1140 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1141 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1142 | ac_prev=x_libraries ;; |
---|
1143 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1144 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1145 | x_libraries=$ac_optarg ;; |
---|
1146 | |
---|
1147 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1148 | Try \`$0 --help' for more information" |
---|
1149 | ;; |
---|
1150 | |
---|
1151 | *=*) |
---|
1152 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1153 | # Reject names that are not valid shell variable names. |
---|
1154 | case $ac_envvar in #( |
---|
1155 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1156 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1157 | esac |
---|
1158 | eval $ac_envvar=\$ac_optarg |
---|
1159 | export $ac_envvar ;; |
---|
1160 | |
---|
1161 | *) |
---|
1162 | # FIXME: should be removed in autoconf 3.0. |
---|
1163 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1164 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1165 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1166 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1167 | ;; |
---|
1168 | |
---|
1169 | esac |
---|
1170 | done |
---|
1171 | |
---|
1172 | if test -n "$ac_prev"; then |
---|
1173 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1174 | as_fn_error $? "missing argument to $ac_option" |
---|
1175 | fi |
---|
1176 | |
---|
1177 | if test -n "$ac_unrecognized_opts"; then |
---|
1178 | case $enable_option_checking in |
---|
1179 | no) ;; |
---|
1180 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1181 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1182 | esac |
---|
1183 | fi |
---|
1184 | |
---|
1185 | # Check all directory arguments for consistency. |
---|
1186 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1187 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1188 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1189 | libdir localedir mandir |
---|
1190 | do |
---|
1191 | eval ac_val=\$$ac_var |
---|
1192 | # Remove trailing slashes. |
---|
1193 | case $ac_val in |
---|
1194 | */ ) |
---|
1195 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1196 | eval $ac_var=\$ac_val;; |
---|
1197 | esac |
---|
1198 | # Be sure to have absolute directory names. |
---|
1199 | case $ac_val in |
---|
1200 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1201 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1202 | esac |
---|
1203 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1204 | done |
---|
1205 | |
---|
1206 | # There might be people who depend on the old broken behavior: `$host' |
---|
1207 | # used to hold the argument of --host etc. |
---|
1208 | # FIXME: To remove some day. |
---|
1209 | build=$build_alias |
---|
1210 | host=$host_alias |
---|
1211 | target=$target_alias |
---|
1212 | |
---|
1213 | # FIXME: To remove some day. |
---|
1214 | if test "x$host_alias" != x; then |
---|
1215 | if test "x$build_alias" = x; then |
---|
1216 | cross_compiling=maybe |
---|
1217 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1218 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1219 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1220 | cross_compiling=yes |
---|
1221 | fi |
---|
1222 | fi |
---|
1223 | |
---|
1224 | ac_tool_prefix= |
---|
1225 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1226 | |
---|
1227 | test "$silent" = yes && exec 6>/dev/null |
---|
1228 | |
---|
1229 | |
---|
1230 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1231 | ac_ls_di=`ls -di .` && |
---|
1232 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1233 | as_fn_error $? "working directory cannot be determined" |
---|
1234 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1235 | as_fn_error $? "pwd does not report name of working directory" |
---|
1236 | |
---|
1237 | |
---|
1238 | # Find the source files, if location was not specified. |
---|
1239 | if test -z "$srcdir"; then |
---|
1240 | ac_srcdir_defaulted=yes |
---|
1241 | # Try the directory containing this script, then the parent directory. |
---|
1242 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1243 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1244 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1245 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1246 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1247 | $as_echo X"$as_myself" | |
---|
1248 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1249 | s//\1/ |
---|
1250 | q |
---|
1251 | } |
---|
1252 | /^X\(\/\/\)[^/].*/{ |
---|
1253 | s//\1/ |
---|
1254 | q |
---|
1255 | } |
---|
1256 | /^X\(\/\/\)$/{ |
---|
1257 | s//\1/ |
---|
1258 | q |
---|
1259 | } |
---|
1260 | /^X\(\/\).*/{ |
---|
1261 | s//\1/ |
---|
1262 | q |
---|
1263 | } |
---|
1264 | s/.*/./; q'` |
---|
1265 | srcdir=$ac_confdir |
---|
1266 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1267 | srcdir=.. |
---|
1268 | fi |
---|
1269 | else |
---|
1270 | ac_srcdir_defaulted=no |
---|
1271 | fi |
---|
1272 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1273 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1274 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1275 | fi |
---|
1276 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1277 | ac_abs_confdir=`( |
---|
1278 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1279 | pwd)` |
---|
1280 | # When building in place, set srcdir=. |
---|
1281 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1282 | srcdir=. |
---|
1283 | fi |
---|
1284 | # Remove unnecessary trailing slashes from srcdir. |
---|
1285 | # Double slashes in file names in object file debugging info |
---|
1286 | # mess up M-x gdb in Emacs. |
---|
1287 | case $srcdir in |
---|
1288 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1289 | esac |
---|
1290 | for ac_var in $ac_precious_vars; do |
---|
1291 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1292 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1293 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1294 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1295 | done |
---|
1296 | |
---|
1297 | # |
---|
1298 | # Report the --help message. |
---|
1299 | # |
---|
1300 | if test "$ac_init_help" = "long"; then |
---|
1301 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1302 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1303 | cat <<_ACEOF |
---|
1304 | \`configure' configures cfa-cc 1.0.0.0 to adapt to many kinds of systems. |
---|
1305 | |
---|
1306 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1307 | |
---|
1308 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1309 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1310 | |
---|
1311 | Defaults for the options are specified in brackets. |
---|
1312 | |
---|
1313 | Configuration: |
---|
1314 | -h, --help display this help and exit |
---|
1315 | --help=short display options specific to this package |
---|
1316 | --help=recursive display the short help of all the included packages |
---|
1317 | -V, --version display version information and exit |
---|
1318 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1319 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1320 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1321 | -n, --no-create do not create output files |
---|
1322 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1323 | |
---|
1324 | Installation directories: |
---|
1325 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1326 | [$ac_default_prefix] |
---|
1327 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1328 | [PREFIX] |
---|
1329 | |
---|
1330 | By default, \`make install' will install all the files in |
---|
1331 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1332 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1333 | for instance \`--prefix=\$HOME'. |
---|
1334 | |
---|
1335 | For better control, use the options below. |
---|
1336 | |
---|
1337 | Fine tuning of the installation directories: |
---|
1338 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1339 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1340 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1341 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1342 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1343 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1344 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1345 | --includedir=DIR C header files [PREFIX/include] |
---|
1346 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1347 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1348 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1349 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1350 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1351 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1352 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1353 | --htmldir=DIR html documentation [DOCDIR] |
---|
1354 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1355 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1356 | --psdir=DIR ps documentation [DOCDIR] |
---|
1357 | _ACEOF |
---|
1358 | |
---|
1359 | cat <<\_ACEOF |
---|
1360 | |
---|
1361 | Program names: |
---|
1362 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1363 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1364 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1365 | |
---|
1366 | System types: |
---|
1367 | --build=BUILD configure for building on BUILD [guessed] |
---|
1368 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1369 | _ACEOF |
---|
1370 | fi |
---|
1371 | |
---|
1372 | if test -n "$ac_init_help"; then |
---|
1373 | case $ac_init_help in |
---|
1374 | short | recursive ) echo "Configuration of cfa-cc 1.0.0.0:";; |
---|
1375 | esac |
---|
1376 | cat <<\_ACEOF |
---|
1377 | |
---|
1378 | Optional Features: |
---|
1379 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1380 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1381 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1382 | --enable-silent-rules less verbose build output (undo: `make V=1') |
---|
1383 | --disable-silent-rules verbose build output (undo: `make V=0') |
---|
1384 | --disable-maintainer-mode disable make rules and dependencies not useful |
---|
1385 | (and sometimes confusing) to the casual installer |
---|
1386 | --enable-target-release Build and install the release target |
---|
1387 | --enable-target-debug Build and install the debug target |
---|
1388 | --disable-dependency-tracking speeds up one-time build |
---|
1389 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1390 | |
---|
1391 | Optional Packages: |
---|
1392 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1393 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1394 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) |
---|
1395 | |
---|
1396 | Some influential environment variables: |
---|
1397 | CXX C++ compiler command |
---|
1398 | CXXFLAGS C++ compiler flags |
---|
1399 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1400 | nonstandard directory <lib dir> |
---|
1401 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1402 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1403 | you have headers in a nonstandard directory <include dir> |
---|
1404 | CC C compiler command |
---|
1405 | CFLAGS C compiler flags |
---|
1406 | CCAS assembler compiler command (defaults to CC) |
---|
1407 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
---|
1408 | YACC The `Yet Another Compiler Compiler' implementation to use. |
---|
1409 | Defaults to the first program found out of: `bison -y', `byacc', |
---|
1410 | `yacc'. |
---|
1411 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1412 | This script will default YFLAGS to the empty string to avoid a |
---|
1413 | default value of `-d' given by some make applications. |
---|
1414 | CPP C preprocessor |
---|
1415 | |
---|
1416 | Use these variables to override the choices made by `configure' or to help |
---|
1417 | it to find libraries and programs with nonstandard names/locations. |
---|
1418 | |
---|
1419 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1420 | _ACEOF |
---|
1421 | ac_status=$? |
---|
1422 | fi |
---|
1423 | |
---|
1424 | if test "$ac_init_help" = "recursive"; then |
---|
1425 | # If there are subdirs, report their specific --help. |
---|
1426 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1427 | test -d "$ac_dir" || |
---|
1428 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1429 | continue |
---|
1430 | ac_builddir=. |
---|
1431 | |
---|
1432 | case "$ac_dir" in |
---|
1433 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1434 | *) |
---|
1435 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1436 | # A ".." for each directory in $ac_dir_suffix. |
---|
1437 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1438 | case $ac_top_builddir_sub in |
---|
1439 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1440 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1441 | esac ;; |
---|
1442 | esac |
---|
1443 | ac_abs_top_builddir=$ac_pwd |
---|
1444 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1445 | # for backward compatibility: |
---|
1446 | ac_top_builddir=$ac_top_build_prefix |
---|
1447 | |
---|
1448 | case $srcdir in |
---|
1449 | .) # We are building in place. |
---|
1450 | ac_srcdir=. |
---|
1451 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1452 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1453 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1454 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1455 | ac_top_srcdir=$srcdir |
---|
1456 | ac_abs_top_srcdir=$srcdir ;; |
---|
1457 | *) # Relative name. |
---|
1458 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1459 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1460 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1461 | esac |
---|
1462 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1463 | |
---|
1464 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1465 | # Check for guested configure. |
---|
1466 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1467 | echo && |
---|
1468 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1469 | elif test -f "$ac_srcdir/configure"; then |
---|
1470 | echo && |
---|
1471 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1472 | else |
---|
1473 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1474 | fi || ac_status=$? |
---|
1475 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1476 | done |
---|
1477 | fi |
---|
1478 | |
---|
1479 | test -n "$ac_init_help" && exit $ac_status |
---|
1480 | if $ac_init_version; then |
---|
1481 | cat <<\_ACEOF |
---|
1482 | cfa-cc configure 1.0.0.0 |
---|
1483 | generated by GNU Autoconf 2.68 |
---|
1484 | |
---|
1485 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1486 | This configure script is free software; the Free Software Foundation |
---|
1487 | gives unlimited permission to copy, distribute and modify it. |
---|
1488 | _ACEOF |
---|
1489 | exit |
---|
1490 | fi |
---|
1491 | |
---|
1492 | ## ------------------------ ## |
---|
1493 | ## Autoconf initialization. ## |
---|
1494 | ## ------------------------ ## |
---|
1495 | |
---|
1496 | # ac_fn_cxx_try_compile LINENO |
---|
1497 | # ---------------------------- |
---|
1498 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1499 | ac_fn_cxx_try_compile () |
---|
1500 | { |
---|
1501 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1502 | rm -f conftest.$ac_objext |
---|
1503 | if { { ac_try="$ac_compile" |
---|
1504 | case "(($ac_try" in |
---|
1505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1506 | *) ac_try_echo=$ac_try;; |
---|
1507 | esac |
---|
1508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1509 | $as_echo "$ac_try_echo"; } >&5 |
---|
1510 | (eval "$ac_compile") 2>conftest.err |
---|
1511 | ac_status=$? |
---|
1512 | if test -s conftest.err; then |
---|
1513 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1514 | cat conftest.er1 >&5 |
---|
1515 | mv -f conftest.er1 conftest.err |
---|
1516 | fi |
---|
1517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1518 | test $ac_status = 0; } && { |
---|
1519 | test -z "$ac_cxx_werror_flag" || |
---|
1520 | test ! -s conftest.err |
---|
1521 | } && test -s conftest.$ac_objext; then : |
---|
1522 | ac_retval=0 |
---|
1523 | else |
---|
1524 | $as_echo "$as_me: failed program was:" >&5 |
---|
1525 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1526 | |
---|
1527 | ac_retval=1 |
---|
1528 | fi |
---|
1529 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1530 | as_fn_set_status $ac_retval |
---|
1531 | |
---|
1532 | } # ac_fn_cxx_try_compile |
---|
1533 | |
---|
1534 | # ac_fn_c_try_compile LINENO |
---|
1535 | # -------------------------- |
---|
1536 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1537 | ac_fn_c_try_compile () |
---|
1538 | { |
---|
1539 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1540 | rm -f conftest.$ac_objext |
---|
1541 | if { { ac_try="$ac_compile" |
---|
1542 | case "(($ac_try" in |
---|
1543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1544 | *) ac_try_echo=$ac_try;; |
---|
1545 | esac |
---|
1546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1547 | $as_echo "$ac_try_echo"; } >&5 |
---|
1548 | (eval "$ac_compile") 2>conftest.err |
---|
1549 | ac_status=$? |
---|
1550 | if test -s conftest.err; then |
---|
1551 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1552 | cat conftest.er1 >&5 |
---|
1553 | mv -f conftest.er1 conftest.err |
---|
1554 | fi |
---|
1555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1556 | test $ac_status = 0; } && { |
---|
1557 | test -z "$ac_c_werror_flag" || |
---|
1558 | test ! -s conftest.err |
---|
1559 | } && test -s conftest.$ac_objext; then : |
---|
1560 | ac_retval=0 |
---|
1561 | else |
---|
1562 | $as_echo "$as_me: failed program was:" >&5 |
---|
1563 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1564 | |
---|
1565 | ac_retval=1 |
---|
1566 | fi |
---|
1567 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1568 | as_fn_set_status $ac_retval |
---|
1569 | |
---|
1570 | } # ac_fn_c_try_compile |
---|
1571 | |
---|
1572 | # ac_fn_c_try_link LINENO |
---|
1573 | # ----------------------- |
---|
1574 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1575 | ac_fn_c_try_link () |
---|
1576 | { |
---|
1577 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1578 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1579 | if { { ac_try="$ac_link" |
---|
1580 | case "(($ac_try" in |
---|
1581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1582 | *) ac_try_echo=$ac_try;; |
---|
1583 | esac |
---|
1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1585 | $as_echo "$ac_try_echo"; } >&5 |
---|
1586 | (eval "$ac_link") 2>conftest.err |
---|
1587 | ac_status=$? |
---|
1588 | if test -s conftest.err; then |
---|
1589 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1590 | cat conftest.er1 >&5 |
---|
1591 | mv -f conftest.er1 conftest.err |
---|
1592 | fi |
---|
1593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1594 | test $ac_status = 0; } && { |
---|
1595 | test -z "$ac_c_werror_flag" || |
---|
1596 | test ! -s conftest.err |
---|
1597 | } && test -s conftest$ac_exeext && { |
---|
1598 | test "$cross_compiling" = yes || |
---|
1599 | $as_test_x conftest$ac_exeext |
---|
1600 | }; then : |
---|
1601 | ac_retval=0 |
---|
1602 | else |
---|
1603 | $as_echo "$as_me: failed program was:" >&5 |
---|
1604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1605 | |
---|
1606 | ac_retval=1 |
---|
1607 | fi |
---|
1608 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1609 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1610 | # interfere with the next link command; also delete a directory that is |
---|
1611 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1612 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1613 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1614 | as_fn_set_status $ac_retval |
---|
1615 | |
---|
1616 | } # ac_fn_c_try_link |
---|
1617 | |
---|
1618 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1619 | # ------------------------------------------- |
---|
1620 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1621 | # variable VAR accordingly. |
---|
1622 | ac_fn_c_check_type () |
---|
1623 | { |
---|
1624 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1626 | $as_echo_n "checking for $2... " >&6; } |
---|
1627 | if eval \${$3+:} false; then : |
---|
1628 | $as_echo_n "(cached) " >&6 |
---|
1629 | else |
---|
1630 | eval "$3=no" |
---|
1631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1632 | /* end confdefs.h. */ |
---|
1633 | $4 |
---|
1634 | int |
---|
1635 | main () |
---|
1636 | { |
---|
1637 | if (sizeof ($2)) |
---|
1638 | return 0; |
---|
1639 | ; |
---|
1640 | return 0; |
---|
1641 | } |
---|
1642 | _ACEOF |
---|
1643 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1645 | /* end confdefs.h. */ |
---|
1646 | $4 |
---|
1647 | int |
---|
1648 | main () |
---|
1649 | { |
---|
1650 | if (sizeof (($2))) |
---|
1651 | return 0; |
---|
1652 | ; |
---|
1653 | return 0; |
---|
1654 | } |
---|
1655 | _ACEOF |
---|
1656 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1657 | |
---|
1658 | else |
---|
1659 | eval "$3=yes" |
---|
1660 | fi |
---|
1661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1662 | fi |
---|
1663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1664 | fi |
---|
1665 | eval ac_res=\$$3 |
---|
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1667 | $as_echo "$ac_res" >&6; } |
---|
1668 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1669 | |
---|
1670 | } # ac_fn_c_check_type |
---|
1671 | |
---|
1672 | # ac_fn_c_try_cpp LINENO |
---|
1673 | # ---------------------- |
---|
1674 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1675 | ac_fn_c_try_cpp () |
---|
1676 | { |
---|
1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1678 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1679 | case "(($ac_try" in |
---|
1680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1681 | *) ac_try_echo=$ac_try;; |
---|
1682 | esac |
---|
1683 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1684 | $as_echo "$ac_try_echo"; } >&5 |
---|
1685 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1686 | ac_status=$? |
---|
1687 | if test -s conftest.err; then |
---|
1688 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1689 | cat conftest.er1 >&5 |
---|
1690 | mv -f conftest.er1 conftest.err |
---|
1691 | fi |
---|
1692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1693 | test $ac_status = 0; } > conftest.i && { |
---|
1694 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1695 | test ! -s conftest.err |
---|
1696 | }; then : |
---|
1697 | ac_retval=0 |
---|
1698 | else |
---|
1699 | $as_echo "$as_me: failed program was:" >&5 |
---|
1700 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1701 | |
---|
1702 | ac_retval=1 |
---|
1703 | fi |
---|
1704 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1705 | as_fn_set_status $ac_retval |
---|
1706 | |
---|
1707 | } # ac_fn_c_try_cpp |
---|
1708 | |
---|
1709 | # ac_fn_c_try_run LINENO |
---|
1710 | # ---------------------- |
---|
1711 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1712 | # that executables *can* be run. |
---|
1713 | ac_fn_c_try_run () |
---|
1714 | { |
---|
1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1716 | if { { ac_try="$ac_link" |
---|
1717 | case "(($ac_try" in |
---|
1718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1719 | *) ac_try_echo=$ac_try;; |
---|
1720 | esac |
---|
1721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1722 | $as_echo "$ac_try_echo"; } >&5 |
---|
1723 | (eval "$ac_link") 2>&5 |
---|
1724 | ac_status=$? |
---|
1725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1726 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1727 | { { case "(($ac_try" in |
---|
1728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1729 | *) ac_try_echo=$ac_try;; |
---|
1730 | esac |
---|
1731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1732 | $as_echo "$ac_try_echo"; } >&5 |
---|
1733 | (eval "$ac_try") 2>&5 |
---|
1734 | ac_status=$? |
---|
1735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1736 | test $ac_status = 0; }; }; then : |
---|
1737 | ac_retval=0 |
---|
1738 | else |
---|
1739 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1740 | $as_echo "$as_me: failed program was:" >&5 |
---|
1741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1742 | |
---|
1743 | ac_retval=$ac_status |
---|
1744 | fi |
---|
1745 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1746 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1747 | as_fn_set_status $ac_retval |
---|
1748 | |
---|
1749 | } # ac_fn_c_try_run |
---|
1750 | |
---|
1751 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1752 | # ------------------------------------------------------- |
---|
1753 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1754 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1755 | ac_fn_c_check_header_compile () |
---|
1756 | { |
---|
1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1759 | $as_echo_n "checking for $2... " >&6; } |
---|
1760 | if eval \${$3+:} false; then : |
---|
1761 | $as_echo_n "(cached) " >&6 |
---|
1762 | else |
---|
1763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1764 | /* end confdefs.h. */ |
---|
1765 | $4 |
---|
1766 | #include <$2> |
---|
1767 | _ACEOF |
---|
1768 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1769 | eval "$3=yes" |
---|
1770 | else |
---|
1771 | eval "$3=no" |
---|
1772 | fi |
---|
1773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1774 | fi |
---|
1775 | eval ac_res=\$$3 |
---|
1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1777 | $as_echo "$ac_res" >&6; } |
---|
1778 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1779 | |
---|
1780 | } # ac_fn_c_check_header_compile |
---|
1781 | |
---|
1782 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1783 | # ---------------------------------- |
---|
1784 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1785 | ac_fn_c_check_func () |
---|
1786 | { |
---|
1787 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1789 | $as_echo_n "checking for $2... " >&6; } |
---|
1790 | if eval \${$3+:} false; then : |
---|
1791 | $as_echo_n "(cached) " >&6 |
---|
1792 | else |
---|
1793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1794 | /* end confdefs.h. */ |
---|
1795 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1796 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1797 | #define $2 innocuous_$2 |
---|
1798 | |
---|
1799 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1800 | which can conflict with char $2 (); below. |
---|
1801 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1802 | <limits.h> exists even on freestanding compilers. */ |
---|
1803 | |
---|
1804 | #ifdef __STDC__ |
---|
1805 | # include <limits.h> |
---|
1806 | #else |
---|
1807 | # include <assert.h> |
---|
1808 | #endif |
---|
1809 | |
---|
1810 | #undef $2 |
---|
1811 | |
---|
1812 | /* Override any GCC internal prototype to avoid an error. |
---|
1813 | Use char because int might match the return type of a GCC |
---|
1814 | builtin and then its argument prototype would still apply. */ |
---|
1815 | #ifdef __cplusplus |
---|
1816 | extern "C" |
---|
1817 | #endif |
---|
1818 | char $2 (); |
---|
1819 | /* The GNU C library defines this for functions which it implements |
---|
1820 | to always fail with ENOSYS. Some functions are actually named |
---|
1821 | something starting with __ and the normal name is an alias. */ |
---|
1822 | #if defined __stub_$2 || defined __stub___$2 |
---|
1823 | choke me |
---|
1824 | #endif |
---|
1825 | |
---|
1826 | int |
---|
1827 | main () |
---|
1828 | { |
---|
1829 | return $2 (); |
---|
1830 | ; |
---|
1831 | return 0; |
---|
1832 | } |
---|
1833 | _ACEOF |
---|
1834 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1835 | eval "$3=yes" |
---|
1836 | else |
---|
1837 | eval "$3=no" |
---|
1838 | fi |
---|
1839 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1840 | conftest$ac_exeext conftest.$ac_ext |
---|
1841 | fi |
---|
1842 | eval ac_res=\$$3 |
---|
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1844 | $as_echo "$ac_res" >&6; } |
---|
1845 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1846 | |
---|
1847 | } # ac_fn_c_check_func |
---|
1848 | |
---|
1849 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1850 | # ------------------------------------------------------- |
---|
1851 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1852 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1853 | # accordingly. |
---|
1854 | ac_fn_c_check_header_mongrel () |
---|
1855 | { |
---|
1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1857 | if eval \${$3+:} false; then : |
---|
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1859 | $as_echo_n "checking for $2... " >&6; } |
---|
1860 | if eval \${$3+:} false; then : |
---|
1861 | $as_echo_n "(cached) " >&6 |
---|
1862 | fi |
---|
1863 | eval ac_res=\$$3 |
---|
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1865 | $as_echo "$ac_res" >&6; } |
---|
1866 | else |
---|
1867 | # Is the header compilable? |
---|
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1869 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1871 | /* end confdefs.h. */ |
---|
1872 | $4 |
---|
1873 | #include <$2> |
---|
1874 | _ACEOF |
---|
1875 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1876 | ac_header_compiler=yes |
---|
1877 | else |
---|
1878 | ac_header_compiler=no |
---|
1879 | fi |
---|
1880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1882 | $as_echo "$ac_header_compiler" >&6; } |
---|
1883 | |
---|
1884 | # Is the header present? |
---|
1885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1886 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1888 | /* end confdefs.h. */ |
---|
1889 | #include <$2> |
---|
1890 | _ACEOF |
---|
1891 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1892 | ac_header_preproc=yes |
---|
1893 | else |
---|
1894 | ac_header_preproc=no |
---|
1895 | fi |
---|
1896 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1898 | $as_echo "$ac_header_preproc" >&6; } |
---|
1899 | |
---|
1900 | # So? What about this header? |
---|
1901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1902 | yes:no: ) |
---|
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1904 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1906 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1907 | ;; |
---|
1908 | no:yes:* ) |
---|
1909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1910 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1912 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1914 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1916 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1918 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1919 | ( $as_echo "## --------------------------------------- ## |
---|
1920 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1921 | ## --------------------------------------- ##" |
---|
1922 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1923 | ;; |
---|
1924 | esac |
---|
1925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1926 | $as_echo_n "checking for $2... " >&6; } |
---|
1927 | if eval \${$3+:} false; then : |
---|
1928 | $as_echo_n "(cached) " >&6 |
---|
1929 | else |
---|
1930 | eval "$3=\$ac_header_compiler" |
---|
1931 | fi |
---|
1932 | eval ac_res=\$$3 |
---|
1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1934 | $as_echo "$ac_res" >&6; } |
---|
1935 | fi |
---|
1936 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1937 | |
---|
1938 | } # ac_fn_c_check_header_mongrel |
---|
1939 | |
---|
1940 | # ac_fn_c_find_intX_t LINENO BITS VAR |
---|
1941 | # ----------------------------------- |
---|
1942 | # Finds a signed integer type with width BITS, setting cache variable VAR |
---|
1943 | # accordingly. |
---|
1944 | ac_fn_c_find_intX_t () |
---|
1945 | { |
---|
1946 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
---|
1948 | $as_echo_n "checking for int$2_t... " >&6; } |
---|
1949 | if eval \${$3+:} false; then : |
---|
1950 | $as_echo_n "(cached) " >&6 |
---|
1951 | else |
---|
1952 | eval "$3=no" |
---|
1953 | # Order is important - never check a type that is potentially smaller |
---|
1954 | # than half of the expected target width. |
---|
1955 | for ac_type in int$2_t 'int' 'long int' \ |
---|
1956 | 'long long int' 'short int' 'signed char'; do |
---|
1957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1958 | /* end confdefs.h. */ |
---|
1959 | $ac_includes_default |
---|
1960 | enum { N = $2 / 2 - 1 }; |
---|
1961 | int |
---|
1962 | main () |
---|
1963 | { |
---|
1964 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
---|
1965 | test_array [0] = 0 |
---|
1966 | |
---|
1967 | ; |
---|
1968 | return 0; |
---|
1969 | } |
---|
1970 | _ACEOF |
---|
1971 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1973 | /* end confdefs.h. */ |
---|
1974 | $ac_includes_default |
---|
1975 | enum { N = $2 / 2 - 1 }; |
---|
1976 | int |
---|
1977 | main () |
---|
1978 | { |
---|
1979 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
---|
1980 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
---|
1981 | test_array [0] = 0 |
---|
1982 | |
---|
1983 | ; |
---|
1984 | return 0; |
---|
1985 | } |
---|
1986 | _ACEOF |
---|
1987 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1988 | |
---|
1989 | else |
---|
1990 | case $ac_type in #( |
---|
1991 | int$2_t) : |
---|
1992 | eval "$3=yes" ;; #( |
---|
1993 | *) : |
---|
1994 | eval "$3=\$ac_type" ;; |
---|
1995 | esac |
---|
1996 | fi |
---|
1997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1998 | fi |
---|
1999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2000 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2001 | |
---|
2002 | else |
---|
2003 | break |
---|
2004 | fi |
---|
2005 | done |
---|
2006 | fi |
---|
2007 | eval ac_res=\$$3 |
---|
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2009 | $as_echo "$ac_res" >&6; } |
---|
2010 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2011 | |
---|
2012 | } # ac_fn_c_find_intX_t |
---|
2013 | |
---|
2014 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
---|
2015 | # ------------------------------------ |
---|
2016 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
---|
2017 | # accordingly. |
---|
2018 | ac_fn_c_find_uintX_t () |
---|
2019 | { |
---|
2020 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
---|
2022 | $as_echo_n "checking for uint$2_t... " >&6; } |
---|
2023 | if eval \${$3+:} false; then : |
---|
2024 | $as_echo_n "(cached) " >&6 |
---|
2025 | else |
---|
2026 | eval "$3=no" |
---|
2027 | # Order is important - never check a type that is potentially smaller |
---|
2028 | # than half of the expected target width. |
---|
2029 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
---|
2030 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
---|
2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2032 | /* end confdefs.h. */ |
---|
2033 | $ac_includes_default |
---|
2034 | int |
---|
2035 | main () |
---|
2036 | { |
---|
2037 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
---|
2038 | test_array [0] = 0 |
---|
2039 | |
---|
2040 | ; |
---|
2041 | return 0; |
---|
2042 | } |
---|
2043 | _ACEOF |
---|
2044 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2045 | case $ac_type in #( |
---|
2046 | uint$2_t) : |
---|
2047 | eval "$3=yes" ;; #( |
---|
2048 | *) : |
---|
2049 | eval "$3=\$ac_type" ;; |
---|
2050 | esac |
---|
2051 | fi |
---|
2052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2053 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2054 | |
---|
2055 | else |
---|
2056 | break |
---|
2057 | fi |
---|
2058 | done |
---|
2059 | fi |
---|
2060 | eval ac_res=\$$3 |
---|
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2062 | $as_echo "$ac_res" >&6; } |
---|
2063 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2064 | |
---|
2065 | } # ac_fn_c_find_uintX_t |
---|
2066 | cat >config.log <<_ACEOF |
---|
2067 | This file contains any messages produced by compilers while |
---|
2068 | running configure, to aid debugging if configure makes a mistake. |
---|
2069 | |
---|
2070 | It was created by cfa-cc $as_me 1.0.0.0, which was |
---|
2071 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
2072 | |
---|
2073 | $ $0 $@ |
---|
2074 | |
---|
2075 | _ACEOF |
---|
2076 | exec 5>>config.log |
---|
2077 | { |
---|
2078 | cat <<_ASUNAME |
---|
2079 | ## --------- ## |
---|
2080 | ## Platform. ## |
---|
2081 | ## --------- ## |
---|
2082 | |
---|
2083 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2084 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2085 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2086 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2087 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2088 | |
---|
2089 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2090 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2091 | |
---|
2092 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2093 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2094 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2095 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2096 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2097 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2098 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2099 | |
---|
2100 | _ASUNAME |
---|
2101 | |
---|
2102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2103 | for as_dir in $PATH |
---|
2104 | do |
---|
2105 | IFS=$as_save_IFS |
---|
2106 | test -z "$as_dir" && as_dir=. |
---|
2107 | $as_echo "PATH: $as_dir" |
---|
2108 | done |
---|
2109 | IFS=$as_save_IFS |
---|
2110 | |
---|
2111 | } >&5 |
---|
2112 | |
---|
2113 | cat >&5 <<_ACEOF |
---|
2114 | |
---|
2115 | |
---|
2116 | ## ----------- ## |
---|
2117 | ## Core tests. ## |
---|
2118 | ## ----------- ## |
---|
2119 | |
---|
2120 | _ACEOF |
---|
2121 | |
---|
2122 | |
---|
2123 | # Keep a trace of the command line. |
---|
2124 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2125 | # Strip out --silent because we don't want to record it for future runs. |
---|
2126 | # Also quote any args containing shell meta-characters. |
---|
2127 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2128 | ac_configure_args= |
---|
2129 | ac_configure_args0= |
---|
2130 | ac_configure_args1= |
---|
2131 | ac_must_keep_next=false |
---|
2132 | for ac_pass in 1 2 |
---|
2133 | do |
---|
2134 | for ac_arg |
---|
2135 | do |
---|
2136 | case $ac_arg in |
---|
2137 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2138 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2139 | | -silent | --silent | --silen | --sile | --sil) |
---|
2140 | continue ;; |
---|
2141 | *\'*) |
---|
2142 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2143 | esac |
---|
2144 | case $ac_pass in |
---|
2145 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2146 | 2) |
---|
2147 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2148 | if test $ac_must_keep_next = true; then |
---|
2149 | ac_must_keep_next=false # Got value, back to normal. |
---|
2150 | else |
---|
2151 | case $ac_arg in |
---|
2152 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2153 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2154 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2155 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2156 | case "$ac_configure_args0 " in |
---|
2157 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2158 | esac |
---|
2159 | ;; |
---|
2160 | -* ) ac_must_keep_next=true ;; |
---|
2161 | esac |
---|
2162 | fi |
---|
2163 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2164 | ;; |
---|
2165 | esac |
---|
2166 | done |
---|
2167 | done |
---|
2168 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2169 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2170 | |
---|
2171 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2172 | # config.log. We remove comments because anyway the quotes in there |
---|
2173 | # would cause problems or look ugly. |
---|
2174 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2175 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2176 | trap 'exit_status=$? |
---|
2177 | # Save into config.log some information that might help in debugging. |
---|
2178 | { |
---|
2179 | echo |
---|
2180 | |
---|
2181 | $as_echo "## ---------------- ## |
---|
2182 | ## Cache variables. ## |
---|
2183 | ## ---------------- ##" |
---|
2184 | echo |
---|
2185 | # The following way of writing the cache mishandles newlines in values, |
---|
2186 | ( |
---|
2187 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2188 | eval ac_val=\$$ac_var |
---|
2189 | case $ac_val in #( |
---|
2190 | *${as_nl}*) |
---|
2191 | case $ac_var in #( |
---|
2192 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2193 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2194 | esac |
---|
2195 | case $ac_var in #( |
---|
2196 | _ | IFS | as_nl) ;; #( |
---|
2197 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2198 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2199 | esac ;; |
---|
2200 | esac |
---|
2201 | done |
---|
2202 | (set) 2>&1 | |
---|
2203 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2204 | *${as_nl}ac_space=\ *) |
---|
2205 | sed -n \ |
---|
2206 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2207 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2208 | ;; #( |
---|
2209 | *) |
---|
2210 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2211 | ;; |
---|
2212 | esac | |
---|
2213 | sort |
---|
2214 | ) |
---|
2215 | echo |
---|
2216 | |
---|
2217 | $as_echo "## ----------------- ## |
---|
2218 | ## Output variables. ## |
---|
2219 | ## ----------------- ##" |
---|
2220 | echo |
---|
2221 | for ac_var in $ac_subst_vars |
---|
2222 | do |
---|
2223 | eval ac_val=\$$ac_var |
---|
2224 | case $ac_val in |
---|
2225 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2226 | esac |
---|
2227 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2228 | done | sort |
---|
2229 | echo |
---|
2230 | |
---|
2231 | if test -n "$ac_subst_files"; then |
---|
2232 | $as_echo "## ------------------- ## |
---|
2233 | ## File substitutions. ## |
---|
2234 | ## ------------------- ##" |
---|
2235 | echo |
---|
2236 | for ac_var in $ac_subst_files |
---|
2237 | do |
---|
2238 | eval ac_val=\$$ac_var |
---|
2239 | case $ac_val in |
---|
2240 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2241 | esac |
---|
2242 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2243 | done | sort |
---|
2244 | echo |
---|
2245 | fi |
---|
2246 | |
---|
2247 | if test -s confdefs.h; then |
---|
2248 | $as_echo "## ----------- ## |
---|
2249 | ## confdefs.h. ## |
---|
2250 | ## ----------- ##" |
---|
2251 | echo |
---|
2252 | cat confdefs.h |
---|
2253 | echo |
---|
2254 | fi |
---|
2255 | test "$ac_signal" != 0 && |
---|
2256 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2257 | $as_echo "$as_me: exit $exit_status" |
---|
2258 | } >&5 |
---|
2259 | rm -f core *.core core.conftest.* && |
---|
2260 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2261 | exit $exit_status |
---|
2262 | ' 0 |
---|
2263 | for ac_signal in 1 2 13 15; do |
---|
2264 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2265 | done |
---|
2266 | ac_signal=0 |
---|
2267 | |
---|
2268 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2269 | rm -f -r conftest* confdefs.h |
---|
2270 | |
---|
2271 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2272 | |
---|
2273 | # Predefined preprocessor variables. |
---|
2274 | |
---|
2275 | cat >>confdefs.h <<_ACEOF |
---|
2276 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2277 | _ACEOF |
---|
2278 | |
---|
2279 | cat >>confdefs.h <<_ACEOF |
---|
2280 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2281 | _ACEOF |
---|
2282 | |
---|
2283 | cat >>confdefs.h <<_ACEOF |
---|
2284 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2285 | _ACEOF |
---|
2286 | |
---|
2287 | cat >>confdefs.h <<_ACEOF |
---|
2288 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2289 | _ACEOF |
---|
2290 | |
---|
2291 | cat >>confdefs.h <<_ACEOF |
---|
2292 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2293 | _ACEOF |
---|
2294 | |
---|
2295 | cat >>confdefs.h <<_ACEOF |
---|
2296 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2297 | _ACEOF |
---|
2298 | |
---|
2299 | |
---|
2300 | # Let the site file select an alternate cache file if it wants to. |
---|
2301 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2302 | ac_site_file1=NONE |
---|
2303 | ac_site_file2=NONE |
---|
2304 | if test -n "$CONFIG_SITE"; then |
---|
2305 | # We do not want a PATH search for config.site. |
---|
2306 | case $CONFIG_SITE in #(( |
---|
2307 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2308 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2309 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2310 | esac |
---|
2311 | elif test "x$prefix" != xNONE; then |
---|
2312 | ac_site_file1=$prefix/share/config.site |
---|
2313 | ac_site_file2=$prefix/etc/config.site |
---|
2314 | else |
---|
2315 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2316 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2317 | fi |
---|
2318 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2319 | do |
---|
2320 | test "x$ac_site_file" = xNONE && continue |
---|
2321 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2323 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2324 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2325 | . "$ac_site_file" \ |
---|
2326 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2327 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2328 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2329 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2330 | fi |
---|
2331 | done |
---|
2332 | |
---|
2333 | if test -r "$cache_file"; then |
---|
2334 | # Some versions of bash will fail to source /dev/null (special files |
---|
2335 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2336 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2338 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2339 | case $cache_file in |
---|
2340 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2341 | *) . "./$cache_file";; |
---|
2342 | esac |
---|
2343 | fi |
---|
2344 | else |
---|
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2346 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2347 | >$cache_file |
---|
2348 | fi |
---|
2349 | |
---|
2350 | # Check that the precious variables saved in the cache have kept the same |
---|
2351 | # value. |
---|
2352 | ac_cache_corrupted=false |
---|
2353 | for ac_var in $ac_precious_vars; do |
---|
2354 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2355 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2356 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2357 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2358 | case $ac_old_set,$ac_new_set in |
---|
2359 | set,) |
---|
2360 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2361 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2362 | ac_cache_corrupted=: ;; |
---|
2363 | ,set) |
---|
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2365 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2366 | ac_cache_corrupted=: ;; |
---|
2367 | ,);; |
---|
2368 | *) |
---|
2369 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2370 | # differences in whitespace do not lead to failure. |
---|
2371 | ac_old_val_w=`echo x $ac_old_val` |
---|
2372 | ac_new_val_w=`echo x $ac_new_val` |
---|
2373 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2375 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2376 | ac_cache_corrupted=: |
---|
2377 | else |
---|
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2379 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2380 | eval $ac_var=\$ac_old_val |
---|
2381 | fi |
---|
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2383 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2385 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2386 | fi;; |
---|
2387 | esac |
---|
2388 | # Pass precious variables to config.status. |
---|
2389 | if test "$ac_new_set" = set; then |
---|
2390 | case $ac_new_val in |
---|
2391 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2392 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2393 | esac |
---|
2394 | case " $ac_configure_args " in |
---|
2395 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2396 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2397 | esac |
---|
2398 | fi |
---|
2399 | done |
---|
2400 | if $ac_cache_corrupted; then |
---|
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2402 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2404 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2405 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2406 | fi |
---|
2407 | ## -------------------- ## |
---|
2408 | ## Main body of script. ## |
---|
2409 | ## -------------------- ## |
---|
2410 | |
---|
2411 | ac_ext=c |
---|
2412 | ac_cpp='$CPP $CPPFLAGS' |
---|
2413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2416 | |
---|
2417 | |
---|
2418 | ac_aux_dir= |
---|
2419 | for ac_dir in automake "$srcdir"/automake; do |
---|
2420 | if test -f "$ac_dir/install-sh"; then |
---|
2421 | ac_aux_dir=$ac_dir |
---|
2422 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2423 | break |
---|
2424 | elif test -f "$ac_dir/install.sh"; then |
---|
2425 | ac_aux_dir=$ac_dir |
---|
2426 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2427 | break |
---|
2428 | elif test -f "$ac_dir/shtool"; then |
---|
2429 | ac_aux_dir=$ac_dir |
---|
2430 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2431 | break |
---|
2432 | fi |
---|
2433 | done |
---|
2434 | if test -z "$ac_aux_dir"; then |
---|
2435 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5 |
---|
2436 | fi |
---|
2437 | |
---|
2438 | # These three variables are undocumented and unsupported, |
---|
2439 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2440 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2441 | # whose full name contains unusual characters. |
---|
2442 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2443 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2444 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2445 | |
---|
2446 | |
---|
2447 | #AC_CONFIG_SRCDIR([src/main.cc]) |
---|
2448 | ac_config_headers="$ac_config_headers config.h" |
---|
2449 | |
---|
2450 | # Check whether --enable-silent-rules was given. |
---|
2451 | if test "${enable_silent_rules+set}" = set; then : |
---|
2452 | enableval=$enable_silent_rules; |
---|
2453 | fi |
---|
2454 | |
---|
2455 | case $enable_silent_rules in |
---|
2456 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
2457 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
2458 | *) AM_DEFAULT_VERBOSITY=1;; |
---|
2459 | esac |
---|
2460 | am_make=${MAKE-make} |
---|
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
2462 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
2463 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
2464 | $as_echo_n "(cached) " >&6 |
---|
2465 | else |
---|
2466 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
2467 | BAR0=false |
---|
2468 | BAR1=true |
---|
2469 | V=1 |
---|
2470 | am__doit: |
---|
2471 | @$(TRUE) |
---|
2472 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
2473 | am_cv_make_support_nested_variables=yes |
---|
2474 | else |
---|
2475 | am_cv_make_support_nested_variables=no |
---|
2476 | fi |
---|
2477 | fi |
---|
2478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
2479 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
2480 | if test $am_cv_make_support_nested_variables = yes; then |
---|
2481 | AM_V='$(V)' |
---|
2482 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
2483 | else |
---|
2484 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
2485 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
2486 | fi |
---|
2487 | AM_BACKSLASH='\' |
---|
2488 | |
---|
2489 | |
---|
2490 | if test "x${CXXFLAGS}" = "x"; then |
---|
2491 | export CXXFLAGS="-std=c++11 -g ${CXXFLAGS}" # defaults, no -O2 for debugging and failures |
---|
2492 | else |
---|
2493 | export CXXFLAGS="-std=c++11 ${CXXFLAGS}" # flags from configure command |
---|
2494 | fi |
---|
2495 | |
---|
2496 | am__api_version='1.11' |
---|
2497 | |
---|
2498 | # Find a good install program. We prefer a C program (faster), |
---|
2499 | # so one script is as good as another. But avoid the broken or |
---|
2500 | # incompatible versions: |
---|
2501 | # SysV /etc/install, /usr/sbin/install |
---|
2502 | # SunOS /usr/etc/install |
---|
2503 | # IRIX /sbin/install |
---|
2504 | # AIX /bin/install |
---|
2505 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2506 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2507 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2508 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2509 | # OS/2's system install, which has a completely different semantic |
---|
2510 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2511 | # Reject install programs that cannot install multiple files. |
---|
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2513 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2514 | if test -z "$INSTALL"; then |
---|
2515 | if ${ac_cv_path_install+:} false; then : |
---|
2516 | $as_echo_n "(cached) " >&6 |
---|
2517 | else |
---|
2518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2519 | for as_dir in $PATH |
---|
2520 | do |
---|
2521 | IFS=$as_save_IFS |
---|
2522 | test -z "$as_dir" && as_dir=. |
---|
2523 | # Account for people who put trailing slashes in PATH elements. |
---|
2524 | case $as_dir/ in #(( |
---|
2525 | ./ | .// | /[cC]/* | \ |
---|
2526 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2527 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2528 | /usr/ucb/* ) ;; |
---|
2529 | *) |
---|
2530 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2531 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2532 | # by default. |
---|
2533 | for ac_prog in ginstall scoinst install; do |
---|
2534 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2535 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2536 | if test $ac_prog = install && |
---|
2537 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2538 | # AIX install. It has an incompatible calling convention. |
---|
2539 | : |
---|
2540 | elif test $ac_prog = install && |
---|
2541 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2542 | # program-specific install script used by HP pwplus--don't use. |
---|
2543 | : |
---|
2544 | else |
---|
2545 | rm -rf conftest.one conftest.two conftest.dir |
---|
2546 | echo one > conftest.one |
---|
2547 | echo two > conftest.two |
---|
2548 | mkdir conftest.dir |
---|
2549 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2550 | test -s conftest.one && test -s conftest.two && |
---|
2551 | test -s conftest.dir/conftest.one && |
---|
2552 | test -s conftest.dir/conftest.two |
---|
2553 | then |
---|
2554 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2555 | break 3 |
---|
2556 | fi |
---|
2557 | fi |
---|
2558 | fi |
---|
2559 | done |
---|
2560 | done |
---|
2561 | ;; |
---|
2562 | esac |
---|
2563 | |
---|
2564 | done |
---|
2565 | IFS=$as_save_IFS |
---|
2566 | |
---|
2567 | rm -rf conftest.one conftest.two conftest.dir |
---|
2568 | |
---|
2569 | fi |
---|
2570 | if test "${ac_cv_path_install+set}" = set; then |
---|
2571 | INSTALL=$ac_cv_path_install |
---|
2572 | else |
---|
2573 | # As a last resort, use the slow shell script. Don't cache a |
---|
2574 | # value for INSTALL within a source directory, because that will |
---|
2575 | # break other packages using the cache if that directory is |
---|
2576 | # removed, or if the value is a relative name. |
---|
2577 | INSTALL=$ac_install_sh |
---|
2578 | fi |
---|
2579 | fi |
---|
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2581 | $as_echo "$INSTALL" >&6; } |
---|
2582 | |
---|
2583 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2584 | # It thinks the first close brace ends the variable substitution. |
---|
2585 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2586 | |
---|
2587 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2588 | |
---|
2589 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2590 | |
---|
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2592 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2593 | # Just in case |
---|
2594 | sleep 1 |
---|
2595 | echo timestamp > conftest.file |
---|
2596 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2597 | # name. Accept space and tab only in the latter. |
---|
2598 | am_lf=' |
---|
2599 | ' |
---|
2600 | case `pwd` in |
---|
2601 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2602 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2603 | esac |
---|
2604 | case $srcdir in |
---|
2605 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2606 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
---|
2607 | esac |
---|
2608 | |
---|
2609 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2610 | # arguments. Must try -L first in case configure is actually a |
---|
2611 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2612 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2613 | # directory). |
---|
2614 | if ( |
---|
2615 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2616 | if test "$*" = "X"; then |
---|
2617 | # -L didn't work. |
---|
2618 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2619 | fi |
---|
2620 | rm -f conftest.file |
---|
2621 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2622 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2623 | |
---|
2624 | # If neither matched, then we have a broken ls. This can happen |
---|
2625 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2626 | # broken ls alias from the environment. This has actually |
---|
2627 | # happened. Such a system could not be considered "sane". |
---|
2628 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2629 | alias in your environment" "$LINENO" 5 |
---|
2630 | fi |
---|
2631 | |
---|
2632 | test "$2" = conftest.file |
---|
2633 | ) |
---|
2634 | then |
---|
2635 | # Ok. |
---|
2636 | : |
---|
2637 | else |
---|
2638 | as_fn_error $? "newly created file is older than distributed files! |
---|
2639 | Check your system clock" "$LINENO" 5 |
---|
2640 | fi |
---|
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2642 | $as_echo "yes" >&6; } |
---|
2643 | test "$program_prefix" != NONE && |
---|
2644 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2645 | # Use a double $ so make ignores it. |
---|
2646 | test "$program_suffix" != NONE && |
---|
2647 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2648 | # Double any \ or $. |
---|
2649 | # By default was `s,x,x', remove it if useless. |
---|
2650 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2651 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2652 | |
---|
2653 | # expand $ac_aux_dir to an absolute path |
---|
2654 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2655 | |
---|
2656 | if test x"${MISSING+set}" != xset; then |
---|
2657 | case $am_aux_dir in |
---|
2658 | *\ * | *\ *) |
---|
2659 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2660 | *) |
---|
2661 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2662 | esac |
---|
2663 | fi |
---|
2664 | # Use eval to expand $SHELL |
---|
2665 | if eval "$MISSING --run true"; then |
---|
2666 | am_missing_run="$MISSING --run " |
---|
2667 | else |
---|
2668 | am_missing_run= |
---|
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
---|
2670 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2671 | fi |
---|
2672 | |
---|
2673 | if test x"${install_sh}" != xset; then |
---|
2674 | case $am_aux_dir in |
---|
2675 | *\ * | *\ *) |
---|
2676 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2677 | *) |
---|
2678 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2679 | esac |
---|
2680 | fi |
---|
2681 | |
---|
2682 | # Installed binaries are usually stripped using `strip' when the user |
---|
2683 | # run `make install-strip'. However `strip' might not be the right |
---|
2684 | # tool to use in cross-compilation environments, therefore Automake |
---|
2685 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2686 | if test "$cross_compiling" != no; then |
---|
2687 | if test -n "$ac_tool_prefix"; then |
---|
2688 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2689 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2691 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2692 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2693 | $as_echo_n "(cached) " >&6 |
---|
2694 | else |
---|
2695 | if test -n "$STRIP"; then |
---|
2696 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2697 | else |
---|
2698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2699 | for as_dir in $PATH |
---|
2700 | do |
---|
2701 | IFS=$as_save_IFS |
---|
2702 | test -z "$as_dir" && as_dir=. |
---|
2703 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2705 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2707 | break 2 |
---|
2708 | fi |
---|
2709 | done |
---|
2710 | done |
---|
2711 | IFS=$as_save_IFS |
---|
2712 | |
---|
2713 | fi |
---|
2714 | fi |
---|
2715 | STRIP=$ac_cv_prog_STRIP |
---|
2716 | if test -n "$STRIP"; then |
---|
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2718 | $as_echo "$STRIP" >&6; } |
---|
2719 | else |
---|
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2721 | $as_echo "no" >&6; } |
---|
2722 | fi |
---|
2723 | |
---|
2724 | |
---|
2725 | fi |
---|
2726 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2727 | ac_ct_STRIP=$STRIP |
---|
2728 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2729 | set dummy strip; ac_word=$2 |
---|
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2731 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2732 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2733 | $as_echo_n "(cached) " >&6 |
---|
2734 | else |
---|
2735 | if test -n "$ac_ct_STRIP"; then |
---|
2736 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2737 | else |
---|
2738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2739 | for as_dir in $PATH |
---|
2740 | do |
---|
2741 | IFS=$as_save_IFS |
---|
2742 | test -z "$as_dir" && as_dir=. |
---|
2743 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2745 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2747 | break 2 |
---|
2748 | fi |
---|
2749 | done |
---|
2750 | done |
---|
2751 | IFS=$as_save_IFS |
---|
2752 | |
---|
2753 | fi |
---|
2754 | fi |
---|
2755 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2756 | if test -n "$ac_ct_STRIP"; then |
---|
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2758 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2759 | else |
---|
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2761 | $as_echo "no" >&6; } |
---|
2762 | fi |
---|
2763 | |
---|
2764 | if test "x$ac_ct_STRIP" = x; then |
---|
2765 | STRIP=":" |
---|
2766 | else |
---|
2767 | case $cross_compiling:$ac_tool_warned in |
---|
2768 | yes:) |
---|
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2771 | ac_tool_warned=yes ;; |
---|
2772 | esac |
---|
2773 | STRIP=$ac_ct_STRIP |
---|
2774 | fi |
---|
2775 | else |
---|
2776 | STRIP="$ac_cv_prog_STRIP" |
---|
2777 | fi |
---|
2778 | |
---|
2779 | fi |
---|
2780 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2781 | |
---|
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2783 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2784 | if test -z "$MKDIR_P"; then |
---|
2785 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2786 | $as_echo_n "(cached) " >&6 |
---|
2787 | else |
---|
2788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2789 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2790 | do |
---|
2791 | IFS=$as_save_IFS |
---|
2792 | test -z "$as_dir" && as_dir=. |
---|
2793 | for ac_prog in mkdir gmkdir; do |
---|
2794 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2795 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2796 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2797 | 'mkdir (GNU coreutils) '* | \ |
---|
2798 | 'mkdir (coreutils) '* | \ |
---|
2799 | 'mkdir (fileutils) '4.1*) |
---|
2800 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2801 | break 3;; |
---|
2802 | esac |
---|
2803 | done |
---|
2804 | done |
---|
2805 | done |
---|
2806 | IFS=$as_save_IFS |
---|
2807 | |
---|
2808 | fi |
---|
2809 | |
---|
2810 | test -d ./--version && rmdir ./--version |
---|
2811 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2812 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2813 | else |
---|
2814 | # As a last resort, use the slow shell script. Don't cache a |
---|
2815 | # value for MKDIR_P within a source directory, because that will |
---|
2816 | # break other packages using the cache if that directory is |
---|
2817 | # removed, or if the value is a relative name. |
---|
2818 | MKDIR_P="$ac_install_sh -d" |
---|
2819 | fi |
---|
2820 | fi |
---|
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2822 | $as_echo "$MKDIR_P" >&6; } |
---|
2823 | |
---|
2824 | mkdir_p="$MKDIR_P" |
---|
2825 | case $mkdir_p in |
---|
2826 | [\\/$]* | ?:[\\/]*) ;; |
---|
2827 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2828 | esac |
---|
2829 | |
---|
2830 | for ac_prog in gawk mawk nawk awk |
---|
2831 | do |
---|
2832 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2833 | set dummy $ac_prog; ac_word=$2 |
---|
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2835 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2836 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2837 | $as_echo_n "(cached) " >&6 |
---|
2838 | else |
---|
2839 | if test -n "$AWK"; then |
---|
2840 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2841 | else |
---|
2842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2843 | for as_dir in $PATH |
---|
2844 | do |
---|
2845 | IFS=$as_save_IFS |
---|
2846 | test -z "$as_dir" && as_dir=. |
---|
2847 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2849 | ac_cv_prog_AWK="$ac_prog" |
---|
2850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2851 | break 2 |
---|
2852 | fi |
---|
2853 | done |
---|
2854 | done |
---|
2855 | IFS=$as_save_IFS |
---|
2856 | |
---|
2857 | fi |
---|
2858 | fi |
---|
2859 | AWK=$ac_cv_prog_AWK |
---|
2860 | if test -n "$AWK"; then |
---|
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2862 | $as_echo "$AWK" >&6; } |
---|
2863 | else |
---|
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2865 | $as_echo "no" >&6; } |
---|
2866 | fi |
---|
2867 | |
---|
2868 | |
---|
2869 | test -n "$AWK" && break |
---|
2870 | done |
---|
2871 | |
---|
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2873 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2874 | set x ${MAKE-make} |
---|
2875 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2876 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2877 | $as_echo_n "(cached) " >&6 |
---|
2878 | else |
---|
2879 | cat >conftest.make <<\_ACEOF |
---|
2880 | SHELL = /bin/sh |
---|
2881 | all: |
---|
2882 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2883 | _ACEOF |
---|
2884 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2885 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2886 | *@@@%%%=?*=@@@%%%*) |
---|
2887 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2888 | *) |
---|
2889 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2890 | esac |
---|
2891 | rm -f conftest.make |
---|
2892 | fi |
---|
2893 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2895 | $as_echo "yes" >&6; } |
---|
2896 | SET_MAKE= |
---|
2897 | else |
---|
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2899 | $as_echo "no" >&6; } |
---|
2900 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2901 | fi |
---|
2902 | |
---|
2903 | rm -rf .tst 2>/dev/null |
---|
2904 | mkdir .tst 2>/dev/null |
---|
2905 | if test -d .tst; then |
---|
2906 | am__leading_dot=. |
---|
2907 | else |
---|
2908 | am__leading_dot=_ |
---|
2909 | fi |
---|
2910 | rmdir .tst 2>/dev/null |
---|
2911 | |
---|
2912 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2913 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2914 | # is not polluted with repeated "-I." |
---|
2915 | am__isrc=' -I$(srcdir)' |
---|
2916 | # test to see if srcdir already configured |
---|
2917 | if test -f $srcdir/config.status; then |
---|
2918 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2919 | fi |
---|
2920 | fi |
---|
2921 | |
---|
2922 | # test whether we have cygpath |
---|
2923 | if test -z "$CYGPATH_W"; then |
---|
2924 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2925 | CYGPATH_W='cygpath -w' |
---|
2926 | else |
---|
2927 | CYGPATH_W=echo |
---|
2928 | fi |
---|
2929 | fi |
---|
2930 | |
---|
2931 | |
---|
2932 | # Define the identity of the package. |
---|
2933 | PACKAGE='cfa-cc' |
---|
2934 | VERSION='1.0.0.0' |
---|
2935 | |
---|
2936 | |
---|
2937 | cat >>confdefs.h <<_ACEOF |
---|
2938 | #define PACKAGE "$PACKAGE" |
---|
2939 | _ACEOF |
---|
2940 | |
---|
2941 | |
---|
2942 | cat >>confdefs.h <<_ACEOF |
---|
2943 | #define VERSION "$VERSION" |
---|
2944 | _ACEOF |
---|
2945 | |
---|
2946 | # Some tools Automake needs. |
---|
2947 | |
---|
2948 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2949 | |
---|
2950 | |
---|
2951 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2952 | |
---|
2953 | |
---|
2954 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2955 | |
---|
2956 | |
---|
2957 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2958 | |
---|
2959 | |
---|
2960 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2961 | |
---|
2962 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2963 | # some platforms. |
---|
2964 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
2965 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
2966 | AMTAR='$${TAR-tar}' |
---|
2967 | |
---|
2968 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
2969 | |
---|
2970 | |
---|
2971 | |
---|
2972 | |
---|
2973 | |
---|
2974 | |
---|
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
2976 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
---|
2977 | # Check whether --enable-maintainer-mode was given. |
---|
2978 | if test "${enable_maintainer_mode+set}" = set; then : |
---|
2979 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
---|
2980 | else |
---|
2981 | USE_MAINTAINER_MODE=yes |
---|
2982 | fi |
---|
2983 | |
---|
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
---|
2985 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
---|
2986 | if test $USE_MAINTAINER_MODE = yes; then |
---|
2987 | MAINTAINER_MODE_TRUE= |
---|
2988 | MAINTAINER_MODE_FALSE='#' |
---|
2989 | else |
---|
2990 | MAINTAINER_MODE_TRUE='#' |
---|
2991 | MAINTAINER_MODE_FALSE= |
---|
2992 | fi |
---|
2993 | |
---|
2994 | MAINT=$MAINTAINER_MODE_TRUE |
---|
2995 | |
---|
2996 | # may require auto* software to be installed |
---|
2997 | |
---|
2998 | rm -f version |
---|
2999 | echo ${PACKAGE_VERSION} > version # file containing version number for other tools |
---|
3000 | chmod ugo-w version |
---|
3001 | ver_major=`cut -d '.' -f1 version` # subdivide version number into components at periods |
---|
3002 | ver_minor=`cut -d '.' -f2 version` |
---|
3003 | ver_patch=`cut -d '.' -f3 version` |
---|
3004 | ver_build=`cut -d '.' -f4 version` |
---|
3005 | |
---|
3006 | # AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version']) |
---|
3007 | |
---|
3008 | cat >>confdefs.h <<_ACEOF |
---|
3009 | #define CFA_VERSION_MAJOR ${ver_major} |
---|
3010 | _ACEOF |
---|
3011 | |
---|
3012 | |
---|
3013 | cat >>confdefs.h <<_ACEOF |
---|
3014 | #define CFA_VERSION_MINOR ${ver_minor} |
---|
3015 | _ACEOF |
---|
3016 | |
---|
3017 | |
---|
3018 | cat >>confdefs.h <<_ACEOF |
---|
3019 | #define CFA_VERSION_PATCH ${ver_patch} |
---|
3020 | _ACEOF |
---|
3021 | |
---|
3022 | |
---|
3023 | cat >>confdefs.h <<_ACEOF |
---|
3024 | #define CFA_VERSION_BUILD ${ver_build} |
---|
3025 | _ACEOF |
---|
3026 | |
---|
3027 | |
---|
3028 | cat >>confdefs.h <<_ACEOF |
---|
3029 | #define CFA_VERSION_SHORT "${ver_major}" |
---|
3030 | _ACEOF |
---|
3031 | |
---|
3032 | |
---|
3033 | cat >>confdefs.h <<_ACEOF |
---|
3034 | #define CFA_VERSION "${ver_major}.${ver_minor}" |
---|
3035 | _ACEOF |
---|
3036 | |
---|
3037 | |
---|
3038 | cat >>confdefs.h <<_ACEOF |
---|
3039 | #define CFA_VERSION_LONG "${ver_major}.${ver_minor}.${ver_patch}" |
---|
3040 | _ACEOF |
---|
3041 | |
---|
3042 | |
---|
3043 | cat >>confdefs.h <<_ACEOF |
---|
3044 | #define CFA_VERSION_FULL "${ver_major}.${ver_minor}.${ver_patch}.${ver_build}" |
---|
3045 | _ACEOF |
---|
3046 | |
---|
3047 | |
---|
3048 | # Installation paths |
---|
3049 | |
---|
3050 | |
---|
3051 | # Check whether --with-backend-compiler was given. |
---|
3052 | if test "${with_backend_compiler+set}" = set; then : |
---|
3053 | withval=$with_backend_compiler; backendcompiler=$withval |
---|
3054 | else |
---|
3055 | backendcompiler="" |
---|
3056 | fi |
---|
3057 | |
---|
3058 | if test "x$backendcompiler" != "x"; then |
---|
3059 | BACKEND_CC=${backendcompiler} |
---|
3060 | else |
---|
3061 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3062 | set dummy gcc; ac_word=$2 |
---|
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3064 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3065 | if ${ac_cv_path_BACKEND_CC+:} false; then : |
---|
3066 | $as_echo_n "(cached) " >&6 |
---|
3067 | else |
---|
3068 | case $BACKEND_CC in |
---|
3069 | [\\/]* | ?:[\\/]*) |
---|
3070 | ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path. |
---|
3071 | ;; |
---|
3072 | *) |
---|
3073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3074 | for as_dir in $PATH |
---|
3075 | do |
---|
3076 | IFS=$as_save_IFS |
---|
3077 | test -z "$as_dir" && as_dir=. |
---|
3078 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3079 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3080 | ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext" |
---|
3081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3082 | break 2 |
---|
3083 | fi |
---|
3084 | done |
---|
3085 | done |
---|
3086 | IFS=$as_save_IFS |
---|
3087 | |
---|
3088 | ;; |
---|
3089 | esac |
---|
3090 | fi |
---|
3091 | BACKEND_CC=$ac_cv_path_BACKEND_CC |
---|
3092 | if test -n "$BACKEND_CC"; then |
---|
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&5 |
---|
3094 | $as_echo "$BACKEND_CC" >&6; } |
---|
3095 | else |
---|
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3097 | $as_echo "no" >&6; } |
---|
3098 | fi |
---|
3099 | |
---|
3100 | # check gcc installed |
---|
3101 | if test "x$BACKEND_CC" = "x"; then |
---|
3102 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 |
---|
3103 | exit 1 |
---|
3104 | fi |
---|
3105 | fi |
---|
3106 | |
---|
3107 | cat >>confdefs.h <<_ACEOF |
---|
3108 | #define CFA_BACKEND_CC "${BACKEND_CC}" |
---|
3109 | _ACEOF |
---|
3110 | |
---|
3111 | |
---|
3112 | |
---|
3113 | |
---|
3114 | |
---|
3115 | # Check whether --enable-target-release was given. |
---|
3116 | if test "${enable_target_release+set}" = set; then : |
---|
3117 | enableval=$enable_target_release; |
---|
3118 | fi |
---|
3119 | |
---|
3120 | # Check whether --enable-target-debug was given. |
---|
3121 | if test "${enable_target_debug+set}" = set; then : |
---|
3122 | enableval=$enable_target_debug; |
---|
3123 | fi |
---|
3124 | |
---|
3125 | |
---|
3126 | case "$enable_target_release" in |
---|
3127 | yes) |
---|
3128 | case "$enable_target_debug" in |
---|
3129 | yes) |
---|
3130 | build_release="yes" |
---|
3131 | build_debug="yes" |
---|
3132 | ;; |
---|
3133 | no) |
---|
3134 | build_release="yes" |
---|
3135 | build_debug="no" |
---|
3136 | ;; |
---|
3137 | *) |
---|
3138 | build_release="yes" |
---|
3139 | build_debug="no" |
---|
3140 | ;; |
---|
3141 | esac |
---|
3142 | ;; |
---|
3143 | no) |
---|
3144 | case "$enable_target_debug" in |
---|
3145 | yes) |
---|
3146 | build_release="no" |
---|
3147 | build_debug="yes" |
---|
3148 | ;; |
---|
3149 | no) |
---|
3150 | build_release="no" |
---|
3151 | build_debug="no" |
---|
3152 | ;; |
---|
3153 | *) |
---|
3154 | build_release="no" |
---|
3155 | build_debug="yes" |
---|
3156 | ;; |
---|
3157 | esac |
---|
3158 | ;; |
---|
3159 | *) |
---|
3160 | case "$enable_target_debug" in |
---|
3161 | yes) |
---|
3162 | build_release="no" |
---|
3163 | build_debug="yes" |
---|
3164 | ;; |
---|
3165 | no) |
---|
3166 | build_release="yes" |
---|
3167 | build_debug="no" |
---|
3168 | ;; |
---|
3169 | *) |
---|
3170 | build_release="yes" |
---|
3171 | build_debug="yes" |
---|
3172 | ;; |
---|
3173 | esac |
---|
3174 | ;; |
---|
3175 | esac |
---|
3176 | |
---|
3177 | if test "x$build_release" = "xyes"; then |
---|
3178 | BUILD_RELEASE_TRUE= |
---|
3179 | BUILD_RELEASE_FALSE='#' |
---|
3180 | else |
---|
3181 | BUILD_RELEASE_TRUE='#' |
---|
3182 | BUILD_RELEASE_FALSE= |
---|
3183 | fi |
---|
3184 | |
---|
3185 | if test "x$build_debug" = "xyes"; then |
---|
3186 | BUILD_DEBUG_TRUE= |
---|
3187 | BUILD_DEBUG_FALSE='#' |
---|
3188 | else |
---|
3189 | BUILD_DEBUG_TRUE='#' |
---|
3190 | BUILD_DEBUG_FALSE= |
---|
3191 | fi |
---|
3192 | |
---|
3193 | if test "x$build_release$build_debug" = "xnono"; then |
---|
3194 | BUILD_NO_LIB_TRUE= |
---|
3195 | BUILD_NO_LIB_FALSE='#' |
---|
3196 | else |
---|
3197 | BUILD_NO_LIB_TRUE='#' |
---|
3198 | BUILD_NO_LIB_FALSE= |
---|
3199 | fi |
---|
3200 | |
---|
3201 | |
---|
3202 | if test "x$prefix" = "xNONE"; then |
---|
3203 | cfa_prefix=${ac_default_prefix} |
---|
3204 | else |
---|
3205 | cfa_prefix=${prefix} |
---|
3206 | fi |
---|
3207 | |
---|
3208 | cat >>confdefs.h <<_ACEOF |
---|
3209 | #define CFA_PREFIX "${cfa_prefix}" |
---|
3210 | _ACEOF |
---|
3211 | |
---|
3212 | CFA_PREFIX=${cfa_prefix} |
---|
3213 | |
---|
3214 | |
---|
3215 | if test "$includedir" = '${prefix}/include'; then |
---|
3216 | cfa_incdir="${cfa_prefix}/include/cfa" |
---|
3217 | else |
---|
3218 | cfa_incdir=${includedir} |
---|
3219 | fi |
---|
3220 | |
---|
3221 | cat >>confdefs.h <<_ACEOF |
---|
3222 | #define CFA_INCDIR "${cfa_incdir}" |
---|
3223 | _ACEOF |
---|
3224 | |
---|
3225 | CFA_INCDIR=${cfa_incdir} |
---|
3226 | |
---|
3227 | |
---|
3228 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
3229 | cfa_bindir="${cfa_prefix}/bin" |
---|
3230 | else |
---|
3231 | cfa_bindir=${bindir} |
---|
3232 | fi |
---|
3233 | |
---|
3234 | cat >>confdefs.h <<_ACEOF |
---|
3235 | #define CFA_BINDIR "${cfa_bindir}" |
---|
3236 | _ACEOF |
---|
3237 | |
---|
3238 | CFA_BINDIR=${cfa_bindir} |
---|
3239 | |
---|
3240 | |
---|
3241 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
3242 | cfa_libdir=${cfa_prefix}/lib |
---|
3243 | else |
---|
3244 | cfa_libdir=${libdir} |
---|
3245 | fi |
---|
3246 | |
---|
3247 | cat >>confdefs.h <<_ACEOF |
---|
3248 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
3249 | _ACEOF |
---|
3250 | |
---|
3251 | CFA_LIBDIR=${cfa_libdir} |
---|
3252 | |
---|
3253 | |
---|
3254 | |
---|
3255 | cat >>confdefs.h <<_ACEOF |
---|
3256 | #define CFA_FLAGS "${CFAFLAGS}" |
---|
3257 | _ACEOF |
---|
3258 | |
---|
3259 | CFA_FLAGS=${CFAFLAGS} |
---|
3260 | |
---|
3261 | |
---|
3262 | # Make sure we can run config.sub. |
---|
3263 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
3264 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
3265 | |
---|
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
3267 | $as_echo_n "checking build system type... " >&6; } |
---|
3268 | if ${ac_cv_build+:} false; then : |
---|
3269 | $as_echo_n "(cached) " >&6 |
---|
3270 | else |
---|
3271 | ac_build_alias=$build_alias |
---|
3272 | test "x$ac_build_alias" = x && |
---|
3273 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
3274 | test "x$ac_build_alias" = x && |
---|
3275 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
3276 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
3277 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
3278 | |
---|
3279 | fi |
---|
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
3281 | $as_echo "$ac_cv_build" >&6; } |
---|
3282 | case $ac_cv_build in |
---|
3283 | *-*-*) ;; |
---|
3284 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
3285 | esac |
---|
3286 | build=$ac_cv_build |
---|
3287 | ac_save_IFS=$IFS; IFS='-' |
---|
3288 | set x $ac_cv_build |
---|
3289 | shift |
---|
3290 | build_cpu=$1 |
---|
3291 | build_vendor=$2 |
---|
3292 | shift; shift |
---|
3293 | # Remember, the first character of IFS is used to create $*, |
---|
3294 | # except with old shells: |
---|
3295 | build_os=$* |
---|
3296 | IFS=$ac_save_IFS |
---|
3297 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
3298 | |
---|
3299 | |
---|
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
3301 | $as_echo_n "checking host system type... " >&6; } |
---|
3302 | if ${ac_cv_host+:} false; then : |
---|
3303 | $as_echo_n "(cached) " >&6 |
---|
3304 | else |
---|
3305 | if test "x$host_alias" = x; then |
---|
3306 | ac_cv_host=$ac_cv_build |
---|
3307 | else |
---|
3308 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
3309 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
3310 | fi |
---|
3311 | |
---|
3312 | fi |
---|
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
3314 | $as_echo "$ac_cv_host" >&6; } |
---|
3315 | case $ac_cv_host in |
---|
3316 | *-*-*) ;; |
---|
3317 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
3318 | esac |
---|
3319 | host=$ac_cv_host |
---|
3320 | ac_save_IFS=$IFS; IFS='-' |
---|
3321 | set x $ac_cv_host |
---|
3322 | shift |
---|
3323 | host_cpu=$1 |
---|
3324 | host_vendor=$2 |
---|
3325 | shift; shift |
---|
3326 | # Remember, the first character of IFS is used to create $*, |
---|
3327 | # except with old shells: |
---|
3328 | host_os=$* |
---|
3329 | IFS=$ac_save_IFS |
---|
3330 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
3331 | |
---|
3332 | |
---|
3333 | MACHINE_TYPE=$host_cpu |
---|
3334 | |
---|
3335 | |
---|
3336 | # Checks for programs. |
---|
3337 | ac_ext=cpp |
---|
3338 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3339 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3340 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3341 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3342 | if test -z "$CXX"; then |
---|
3343 | if test -n "$CCC"; then |
---|
3344 | CXX=$CCC |
---|
3345 | else |
---|
3346 | if test -n "$ac_tool_prefix"; then |
---|
3347 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3348 | do |
---|
3349 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3350 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3352 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3353 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3354 | $as_echo_n "(cached) " >&6 |
---|
3355 | else |
---|
3356 | if test -n "$CXX"; then |
---|
3357 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3358 | else |
---|
3359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3360 | for as_dir in $PATH |
---|
3361 | do |
---|
3362 | IFS=$as_save_IFS |
---|
3363 | test -z "$as_dir" && as_dir=. |
---|
3364 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3366 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3368 | break 2 |
---|
3369 | fi |
---|
3370 | done |
---|
3371 | done |
---|
3372 | IFS=$as_save_IFS |
---|
3373 | |
---|
3374 | fi |
---|
3375 | fi |
---|
3376 | CXX=$ac_cv_prog_CXX |
---|
3377 | if test -n "$CXX"; then |
---|
3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3379 | $as_echo "$CXX" >&6; } |
---|
3380 | else |
---|
3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3382 | $as_echo "no" >&6; } |
---|
3383 | fi |
---|
3384 | |
---|
3385 | |
---|
3386 | test -n "$CXX" && break |
---|
3387 | done |
---|
3388 | fi |
---|
3389 | if test -z "$CXX"; then |
---|
3390 | ac_ct_CXX=$CXX |
---|
3391 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3392 | do |
---|
3393 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3394 | set dummy $ac_prog; ac_word=$2 |
---|
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3396 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3397 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3398 | $as_echo_n "(cached) " >&6 |
---|
3399 | else |
---|
3400 | if test -n "$ac_ct_CXX"; then |
---|
3401 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3402 | else |
---|
3403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3404 | for as_dir in $PATH |
---|
3405 | do |
---|
3406 | IFS=$as_save_IFS |
---|
3407 | test -z "$as_dir" && as_dir=. |
---|
3408 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3410 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3412 | break 2 |
---|
3413 | fi |
---|
3414 | done |
---|
3415 | done |
---|
3416 | IFS=$as_save_IFS |
---|
3417 | |
---|
3418 | fi |
---|
3419 | fi |
---|
3420 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3421 | if test -n "$ac_ct_CXX"; then |
---|
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3423 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3424 | else |
---|
3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3426 | $as_echo "no" >&6; } |
---|
3427 | fi |
---|
3428 | |
---|
3429 | |
---|
3430 | test -n "$ac_ct_CXX" && break |
---|
3431 | done |
---|
3432 | |
---|
3433 | if test "x$ac_ct_CXX" = x; then |
---|
3434 | CXX="g++" |
---|
3435 | else |
---|
3436 | case $cross_compiling:$ac_tool_warned in |
---|
3437 | yes:) |
---|
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3439 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3440 | ac_tool_warned=yes ;; |
---|
3441 | esac |
---|
3442 | CXX=$ac_ct_CXX |
---|
3443 | fi |
---|
3444 | fi |
---|
3445 | |
---|
3446 | fi |
---|
3447 | fi |
---|
3448 | # Provide some information about the compiler. |
---|
3449 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3450 | set X $ac_compile |
---|
3451 | ac_compiler=$2 |
---|
3452 | for ac_option in --version -v -V -qversion; do |
---|
3453 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3454 | case "(($ac_try" in |
---|
3455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3456 | *) ac_try_echo=$ac_try;; |
---|
3457 | esac |
---|
3458 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3459 | $as_echo "$ac_try_echo"; } >&5 |
---|
3460 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3461 | ac_status=$? |
---|
3462 | if test -s conftest.err; then |
---|
3463 | sed '10a\ |
---|
3464 | ... rest of stderr output deleted ... |
---|
3465 | 10q' conftest.err >conftest.er1 |
---|
3466 | cat conftest.er1 >&5 |
---|
3467 | fi |
---|
3468 | rm -f conftest.er1 conftest.err |
---|
3469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3470 | test $ac_status = 0; } |
---|
3471 | done |
---|
3472 | |
---|
3473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3474 | /* end confdefs.h. */ |
---|
3475 | |
---|
3476 | int |
---|
3477 | main () |
---|
3478 | { |
---|
3479 | |
---|
3480 | ; |
---|
3481 | return 0; |
---|
3482 | } |
---|
3483 | _ACEOF |
---|
3484 | ac_clean_files_save=$ac_clean_files |
---|
3485 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3486 | # Try to create an executable without -o first, disregard a.out. |
---|
3487 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3488 | # of exeext. |
---|
3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3490 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3491 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3492 | |
---|
3493 | # The possible output files: |
---|
3494 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3495 | |
---|
3496 | ac_rmfiles= |
---|
3497 | for ac_file in $ac_files |
---|
3498 | do |
---|
3499 | case $ac_file in |
---|
3500 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3501 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3502 | esac |
---|
3503 | done |
---|
3504 | rm -f $ac_rmfiles |
---|
3505 | |
---|
3506 | if { { ac_try="$ac_link_default" |
---|
3507 | case "(($ac_try" in |
---|
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3509 | *) ac_try_echo=$ac_try;; |
---|
3510 | esac |
---|
3511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3512 | $as_echo "$ac_try_echo"; } >&5 |
---|
3513 | (eval "$ac_link_default") 2>&5 |
---|
3514 | ac_status=$? |
---|
3515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3516 | test $ac_status = 0; }; then : |
---|
3517 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3518 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3519 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3520 | # so that the user can short-circuit this test for compilers unknown to |
---|
3521 | # Autoconf. |
---|
3522 | for ac_file in $ac_files '' |
---|
3523 | do |
---|
3524 | test -f "$ac_file" || continue |
---|
3525 | case $ac_file in |
---|
3526 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3527 | ;; |
---|
3528 | [ab].out ) |
---|
3529 | # We found the default executable, but exeext='' is most |
---|
3530 | # certainly right. |
---|
3531 | break;; |
---|
3532 | *.* ) |
---|
3533 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3534 | then :; else |
---|
3535 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3536 | fi |
---|
3537 | # We set ac_cv_exeext here because the later test for it is not |
---|
3538 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3539 | # argument, so we may need to know it at that point already. |
---|
3540 | # Even if this section looks crufty: it has the advantage of |
---|
3541 | # actually working. |
---|
3542 | break;; |
---|
3543 | * ) |
---|
3544 | break;; |
---|
3545 | esac |
---|
3546 | done |
---|
3547 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3548 | |
---|
3549 | else |
---|
3550 | ac_file='' |
---|
3551 | fi |
---|
3552 | if test -z "$ac_file"; then : |
---|
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3554 | $as_echo "no" >&6; } |
---|
3555 | $as_echo "$as_me: failed program was:" >&5 |
---|
3556 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3557 | |
---|
3558 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3559 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3560 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3561 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3562 | else |
---|
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3564 | $as_echo "yes" >&6; } |
---|
3565 | fi |
---|
3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3567 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3569 | $as_echo "$ac_file" >&6; } |
---|
3570 | ac_exeext=$ac_cv_exeext |
---|
3571 | |
---|
3572 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3573 | ac_clean_files=$ac_clean_files_save |
---|
3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3575 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3576 | if { { ac_try="$ac_link" |
---|
3577 | case "(($ac_try" in |
---|
3578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3579 | *) ac_try_echo=$ac_try;; |
---|
3580 | esac |
---|
3581 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3582 | $as_echo "$ac_try_echo"; } >&5 |
---|
3583 | (eval "$ac_link") 2>&5 |
---|
3584 | ac_status=$? |
---|
3585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3586 | test $ac_status = 0; }; then : |
---|
3587 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3588 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3589 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3590 | # `rm'. |
---|
3591 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3592 | test -f "$ac_file" || continue |
---|
3593 | case $ac_file in |
---|
3594 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3595 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3596 | break;; |
---|
3597 | * ) break;; |
---|
3598 | esac |
---|
3599 | done |
---|
3600 | else |
---|
3601 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3602 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3603 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3604 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3605 | fi |
---|
3606 | rm -f conftest conftest$ac_cv_exeext |
---|
3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3608 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3609 | |
---|
3610 | rm -f conftest.$ac_ext |
---|
3611 | EXEEXT=$ac_cv_exeext |
---|
3612 | ac_exeext=$EXEEXT |
---|
3613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3614 | /* end confdefs.h. */ |
---|
3615 | #include <stdio.h> |
---|
3616 | int |
---|
3617 | main () |
---|
3618 | { |
---|
3619 | FILE *f = fopen ("conftest.out", "w"); |
---|
3620 | return ferror (f) || fclose (f) != 0; |
---|
3621 | |
---|
3622 | ; |
---|
3623 | return 0; |
---|
3624 | } |
---|
3625 | _ACEOF |
---|
3626 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3627 | # Check that the compiler produces executables we can run. If not, either |
---|
3628 | # the compiler is broken, or we cross compile. |
---|
3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3630 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3631 | if test "$cross_compiling" != yes; then |
---|
3632 | { { ac_try="$ac_link" |
---|
3633 | case "(($ac_try" in |
---|
3634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3635 | *) ac_try_echo=$ac_try;; |
---|
3636 | esac |
---|
3637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3638 | $as_echo "$ac_try_echo"; } >&5 |
---|
3639 | (eval "$ac_link") 2>&5 |
---|
3640 | ac_status=$? |
---|
3641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3642 | test $ac_status = 0; } |
---|
3643 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3644 | { { case "(($ac_try" in |
---|
3645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3646 | *) ac_try_echo=$ac_try;; |
---|
3647 | esac |
---|
3648 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3649 | $as_echo "$ac_try_echo"; } >&5 |
---|
3650 | (eval "$ac_try") 2>&5 |
---|
3651 | ac_status=$? |
---|
3652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3653 | test $ac_status = 0; }; }; then |
---|
3654 | cross_compiling=no |
---|
3655 | else |
---|
3656 | if test "$cross_compiling" = maybe; then |
---|
3657 | cross_compiling=yes |
---|
3658 | else |
---|
3659 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3660 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3661 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3662 | If you meant to cross compile, use \`--host'. |
---|
3663 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3664 | fi |
---|
3665 | fi |
---|
3666 | fi |
---|
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3668 | $as_echo "$cross_compiling" >&6; } |
---|
3669 | |
---|
3670 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3671 | ac_clean_files=$ac_clean_files_save |
---|
3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3673 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3674 | if ${ac_cv_objext+:} false; then : |
---|
3675 | $as_echo_n "(cached) " >&6 |
---|
3676 | else |
---|
3677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3678 | /* end confdefs.h. */ |
---|
3679 | |
---|
3680 | int |
---|
3681 | main () |
---|
3682 | { |
---|
3683 | |
---|
3684 | ; |
---|
3685 | return 0; |
---|
3686 | } |
---|
3687 | _ACEOF |
---|
3688 | rm -f conftest.o conftest.obj |
---|
3689 | if { { ac_try="$ac_compile" |
---|
3690 | case "(($ac_try" in |
---|
3691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3692 | *) ac_try_echo=$ac_try;; |
---|
3693 | esac |
---|
3694 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3695 | $as_echo "$ac_try_echo"; } >&5 |
---|
3696 | (eval "$ac_compile") 2>&5 |
---|
3697 | ac_status=$? |
---|
3698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3699 | test $ac_status = 0; }; then : |
---|
3700 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3701 | test -f "$ac_file" || continue; |
---|
3702 | case $ac_file in |
---|
3703 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3704 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3705 | break;; |
---|
3706 | esac |
---|
3707 | done |
---|
3708 | else |
---|
3709 | $as_echo "$as_me: failed program was:" >&5 |
---|
3710 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3711 | |
---|
3712 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3713 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3714 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3715 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3716 | fi |
---|
3717 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3718 | fi |
---|
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3720 | $as_echo "$ac_cv_objext" >&6; } |
---|
3721 | OBJEXT=$ac_cv_objext |
---|
3722 | ac_objext=$OBJEXT |
---|
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3724 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3725 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3726 | $as_echo_n "(cached) " >&6 |
---|
3727 | else |
---|
3728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3729 | /* end confdefs.h. */ |
---|
3730 | |
---|
3731 | int |
---|
3732 | main () |
---|
3733 | { |
---|
3734 | #ifndef __GNUC__ |
---|
3735 | choke me |
---|
3736 | #endif |
---|
3737 | |
---|
3738 | ; |
---|
3739 | return 0; |
---|
3740 | } |
---|
3741 | _ACEOF |
---|
3742 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3743 | ac_compiler_gnu=yes |
---|
3744 | else |
---|
3745 | ac_compiler_gnu=no |
---|
3746 | fi |
---|
3747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3748 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3749 | |
---|
3750 | fi |
---|
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3752 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3753 | if test $ac_compiler_gnu = yes; then |
---|
3754 | GXX=yes |
---|
3755 | else |
---|
3756 | GXX= |
---|
3757 | fi |
---|
3758 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3759 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3761 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3762 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3763 | $as_echo_n "(cached) " >&6 |
---|
3764 | else |
---|
3765 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3766 | ac_cxx_werror_flag=yes |
---|
3767 | ac_cv_prog_cxx_g=no |
---|
3768 | CXXFLAGS="-g" |
---|
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_cxx_try_compile "$LINENO"; then : |
---|
3781 | ac_cv_prog_cxx_g=yes |
---|
3782 | else |
---|
3783 | CXXFLAGS="" |
---|
3784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3785 | /* end confdefs.h. */ |
---|
3786 | |
---|
3787 | int |
---|
3788 | main () |
---|
3789 | { |
---|
3790 | |
---|
3791 | ; |
---|
3792 | return 0; |
---|
3793 | } |
---|
3794 | _ACEOF |
---|
3795 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3796 | |
---|
3797 | else |
---|
3798 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3799 | CXXFLAGS="-g" |
---|
3800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3801 | /* end confdefs.h. */ |
---|
3802 | |
---|
3803 | int |
---|
3804 | main () |
---|
3805 | { |
---|
3806 | |
---|
3807 | ; |
---|
3808 | return 0; |
---|
3809 | } |
---|
3810 | _ACEOF |
---|
3811 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3812 | ac_cv_prog_cxx_g=yes |
---|
3813 | fi |
---|
3814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3815 | fi |
---|
3816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3817 | fi |
---|
3818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3819 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3820 | fi |
---|
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3822 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3823 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3824 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3825 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3826 | if test "$GXX" = yes; then |
---|
3827 | CXXFLAGS="-g -O2" |
---|
3828 | else |
---|
3829 | CXXFLAGS="-g" |
---|
3830 | fi |
---|
3831 | else |
---|
3832 | if test "$GXX" = yes; then |
---|
3833 | CXXFLAGS="-O2" |
---|
3834 | else |
---|
3835 | CXXFLAGS= |
---|
3836 | fi |
---|
3837 | fi |
---|
3838 | ac_ext=c |
---|
3839 | ac_cpp='$CPP $CPPFLAGS' |
---|
3840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3843 | DEPDIR="${am__leading_dot}deps" |
---|
3844 | |
---|
3845 | ac_config_commands="$ac_config_commands depfiles" |
---|
3846 | |
---|
3847 | |
---|
3848 | am_make=${MAKE-make} |
---|
3849 | cat > confinc << 'END' |
---|
3850 | am__doit: |
---|
3851 | @echo this is the am__doit target |
---|
3852 | .PHONY: am__doit |
---|
3853 | END |
---|
3854 | # If we don't find an include directive, just comment out the code. |
---|
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3856 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3857 | am__include="#" |
---|
3858 | am__quote= |
---|
3859 | _am_result=none |
---|
3860 | # First try GNU make style include. |
---|
3861 | echo "include confinc" > confmf |
---|
3862 | # Ignore all kinds of additional output from `make'. |
---|
3863 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3864 | *the\ am__doit\ target*) |
---|
3865 | am__include=include |
---|
3866 | am__quote= |
---|
3867 | _am_result=GNU |
---|
3868 | ;; |
---|
3869 | esac |
---|
3870 | # Now try BSD make style include. |
---|
3871 | if test "$am__include" = "#"; then |
---|
3872 | echo '.include "confinc"' > confmf |
---|
3873 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3874 | *the\ am__doit\ target*) |
---|
3875 | am__include=.include |
---|
3876 | am__quote="\"" |
---|
3877 | _am_result=BSD |
---|
3878 | ;; |
---|
3879 | esac |
---|
3880 | fi |
---|
3881 | |
---|
3882 | |
---|
3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3884 | $as_echo "$_am_result" >&6; } |
---|
3885 | rm -f confinc confmf |
---|
3886 | |
---|
3887 | # Check whether --enable-dependency-tracking was given. |
---|
3888 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3889 | enableval=$enable_dependency_tracking; |
---|
3890 | fi |
---|
3891 | |
---|
3892 | if test "x$enable_dependency_tracking" != xno; then |
---|
3893 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3894 | AMDEPBACKSLASH='\' |
---|
3895 | am__nodep='_no' |
---|
3896 | fi |
---|
3897 | if test "x$enable_dependency_tracking" != xno; then |
---|
3898 | AMDEP_TRUE= |
---|
3899 | AMDEP_FALSE='#' |
---|
3900 | else |
---|
3901 | AMDEP_TRUE='#' |
---|
3902 | AMDEP_FALSE= |
---|
3903 | fi |
---|
3904 | |
---|
3905 | |
---|
3906 | |
---|
3907 | depcc="$CXX" am_compiler_list= |
---|
3908 | |
---|
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3910 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3911 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
3912 | $as_echo_n "(cached) " >&6 |
---|
3913 | else |
---|
3914 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3915 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3916 | # making bogus files that we don't know about and never remove. For |
---|
3917 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3918 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3919 | # in D'. |
---|
3920 | rm -rf conftest.dir |
---|
3921 | mkdir conftest.dir |
---|
3922 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3923 | # using a relative directory. |
---|
3924 | cp "$am_depcomp" conftest.dir |
---|
3925 | cd conftest.dir |
---|
3926 | # We will build objects and dependencies in a subdirectory because |
---|
3927 | # it helps to detect inapplicable dependency modes. For instance |
---|
3928 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3929 | # side effect of compilation, but ICC will put the dependencies in |
---|
3930 | # the current directory while Tru64 will put them in the object |
---|
3931 | # directory. |
---|
3932 | mkdir sub |
---|
3933 | |
---|
3934 | am_cv_CXX_dependencies_compiler_type=none |
---|
3935 | if test "$am_compiler_list" = ""; then |
---|
3936 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3937 | fi |
---|
3938 | am__universal=false |
---|
3939 | case " $depcc " in #( |
---|
3940 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3941 | esac |
---|
3942 | |
---|
3943 | for depmode in $am_compiler_list; do |
---|
3944 | # Setup a source with many dependencies, because some compilers |
---|
3945 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3946 | # we should not choose a depcomp mode which is confused by this. |
---|
3947 | # |
---|
3948 | # We need to recreate these files for each test, as the compiler may |
---|
3949 | # overwrite some of them when testing with obscure command lines. |
---|
3950 | # This happens at least with the AIX C compiler. |
---|
3951 | : > sub/conftest.c |
---|
3952 | for i in 1 2 3 4 5 6; do |
---|
3953 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3954 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3955 | # Solaris 8's {/usr,}/bin/sh. |
---|
3956 | touch sub/conftst$i.h |
---|
3957 | done |
---|
3958 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3959 | |
---|
3960 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3961 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3962 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
3963 | # versions had trouble with output in subdirs |
---|
3964 | am__obj=sub/conftest.${OBJEXT-o} |
---|
3965 | am__minus_obj="-o $am__obj" |
---|
3966 | case $depmode in |
---|
3967 | gcc) |
---|
3968 | # This depmode causes a compiler race in universal mode. |
---|
3969 | test "$am__universal" = false || continue |
---|
3970 | ;; |
---|
3971 | nosideeffect) |
---|
3972 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3973 | # only be used when explicitly requested |
---|
3974 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3975 | continue |
---|
3976 | else |
---|
3977 | break |
---|
3978 | fi |
---|
3979 | ;; |
---|
3980 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
3981 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
3982 | # not run yet. These depmodes are late enough in the game, and |
---|
3983 | # so weak that their functioning should not be impacted. |
---|
3984 | am__obj=conftest.${OBJEXT-o} |
---|
3985 | am__minus_obj= |
---|
3986 | ;; |
---|
3987 | none) break ;; |
---|
3988 | esac |
---|
3989 | if depmode=$depmode \ |
---|
3990 | source=sub/conftest.c object=$am__obj \ |
---|
3991 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3992 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
3993 | >/dev/null 2>conftest.err && |
---|
3994 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3995 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3996 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
3997 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3998 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3999 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4000 | # that says an option was ignored or not supported. |
---|
4001 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4002 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4003 | # The diagnosis changed in icc 8.0: |
---|
4004 | # icc: Command line remark: option '-MP' not supported |
---|
4005 | if (grep 'ignoring option' conftest.err || |
---|
4006 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4007 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4008 | break |
---|
4009 | fi |
---|
4010 | fi |
---|
4011 | done |
---|
4012 | |
---|
4013 | cd .. |
---|
4014 | rm -rf conftest.dir |
---|
4015 | else |
---|
4016 | am_cv_CXX_dependencies_compiler_type=none |
---|
4017 | fi |
---|
4018 | |
---|
4019 | fi |
---|
4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4021 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4022 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4023 | |
---|
4024 | if |
---|
4025 | test "x$enable_dependency_tracking" != xno \ |
---|
4026 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4027 | am__fastdepCXX_TRUE= |
---|
4028 | am__fastdepCXX_FALSE='#' |
---|
4029 | else |
---|
4030 | am__fastdepCXX_TRUE='#' |
---|
4031 | am__fastdepCXX_FALSE= |
---|
4032 | fi |
---|
4033 | |
---|
4034 | |
---|
4035 | ac_ext=c |
---|
4036 | ac_cpp='$CPP $CPPFLAGS' |
---|
4037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4040 | if test -n "$ac_tool_prefix"; then |
---|
4041 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
4042 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4044 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4045 | if ${ac_cv_prog_CC+:} false; then : |
---|
4046 | $as_echo_n "(cached) " >&6 |
---|
4047 | else |
---|
4048 | if test -n "$CC"; then |
---|
4049 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4050 | else |
---|
4051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4052 | for as_dir in $PATH |
---|
4053 | do |
---|
4054 | IFS=$as_save_IFS |
---|
4055 | test -z "$as_dir" && as_dir=. |
---|
4056 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4058 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
4059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4060 | break 2 |
---|
4061 | fi |
---|
4062 | done |
---|
4063 | done |
---|
4064 | IFS=$as_save_IFS |
---|
4065 | |
---|
4066 | fi |
---|
4067 | fi |
---|
4068 | CC=$ac_cv_prog_CC |
---|
4069 | if test -n "$CC"; then |
---|
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4071 | $as_echo "$CC" >&6; } |
---|
4072 | else |
---|
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4074 | $as_echo "no" >&6; } |
---|
4075 | fi |
---|
4076 | |
---|
4077 | |
---|
4078 | fi |
---|
4079 | if test -z "$ac_cv_prog_CC"; then |
---|
4080 | ac_ct_CC=$CC |
---|
4081 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
4082 | set dummy gcc; ac_word=$2 |
---|
4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4084 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4085 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4086 | $as_echo_n "(cached) " >&6 |
---|
4087 | else |
---|
4088 | if test -n "$ac_ct_CC"; then |
---|
4089 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4090 | else |
---|
4091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4092 | for as_dir in $PATH |
---|
4093 | do |
---|
4094 | IFS=$as_save_IFS |
---|
4095 | test -z "$as_dir" && as_dir=. |
---|
4096 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4098 | ac_cv_prog_ac_ct_CC="gcc" |
---|
4099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4100 | break 2 |
---|
4101 | fi |
---|
4102 | done |
---|
4103 | done |
---|
4104 | IFS=$as_save_IFS |
---|
4105 | |
---|
4106 | fi |
---|
4107 | fi |
---|
4108 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4109 | if test -n "$ac_ct_CC"; then |
---|
4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4111 | $as_echo "$ac_ct_CC" >&6; } |
---|
4112 | else |
---|
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4114 | $as_echo "no" >&6; } |
---|
4115 | fi |
---|
4116 | |
---|
4117 | if test "x$ac_ct_CC" = x; then |
---|
4118 | CC="" |
---|
4119 | else |
---|
4120 | case $cross_compiling:$ac_tool_warned in |
---|
4121 | yes:) |
---|
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4123 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4124 | ac_tool_warned=yes ;; |
---|
4125 | esac |
---|
4126 | CC=$ac_ct_CC |
---|
4127 | fi |
---|
4128 | else |
---|
4129 | CC="$ac_cv_prog_CC" |
---|
4130 | fi |
---|
4131 | |
---|
4132 | if test -z "$CC"; then |
---|
4133 | if test -n "$ac_tool_prefix"; then |
---|
4134 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
4135 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4137 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4138 | if ${ac_cv_prog_CC+:} false; then : |
---|
4139 | $as_echo_n "(cached) " >&6 |
---|
4140 | else |
---|
4141 | if test -n "$CC"; then |
---|
4142 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4143 | else |
---|
4144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4145 | for as_dir in $PATH |
---|
4146 | do |
---|
4147 | IFS=$as_save_IFS |
---|
4148 | test -z "$as_dir" && as_dir=. |
---|
4149 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4151 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
4152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4153 | break 2 |
---|
4154 | fi |
---|
4155 | done |
---|
4156 | done |
---|
4157 | IFS=$as_save_IFS |
---|
4158 | |
---|
4159 | fi |
---|
4160 | fi |
---|
4161 | CC=$ac_cv_prog_CC |
---|
4162 | if test -n "$CC"; then |
---|
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4164 | $as_echo "$CC" >&6; } |
---|
4165 | else |
---|
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4167 | $as_echo "no" >&6; } |
---|
4168 | fi |
---|
4169 | |
---|
4170 | |
---|
4171 | fi |
---|
4172 | fi |
---|
4173 | if test -z "$CC"; then |
---|
4174 | # Extract the first word of "cc", so it can be a program name with args. |
---|
4175 | set dummy cc; ac_word=$2 |
---|
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4177 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4178 | if ${ac_cv_prog_CC+:} false; then : |
---|
4179 | $as_echo_n "(cached) " >&6 |
---|
4180 | else |
---|
4181 | if test -n "$CC"; then |
---|
4182 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4183 | else |
---|
4184 | ac_prog_rejected=no |
---|
4185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4186 | for as_dir in $PATH |
---|
4187 | do |
---|
4188 | IFS=$as_save_IFS |
---|
4189 | test -z "$as_dir" && as_dir=. |
---|
4190 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4192 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
4193 | ac_prog_rejected=yes |
---|
4194 | continue |
---|
4195 | fi |
---|
4196 | ac_cv_prog_CC="cc" |
---|
4197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4198 | break 2 |
---|
4199 | fi |
---|
4200 | done |
---|
4201 | done |
---|
4202 | IFS=$as_save_IFS |
---|
4203 | |
---|
4204 | if test $ac_prog_rejected = yes; then |
---|
4205 | # We found a bogon in the path, so make sure we never use it. |
---|
4206 | set dummy $ac_cv_prog_CC |
---|
4207 | shift |
---|
4208 | if test $# != 0; then |
---|
4209 | # We chose a different compiler from the bogus one. |
---|
4210 | # However, it has the same basename, so the bogon will be chosen |
---|
4211 | # first if we set CC to just the basename; use the full file name. |
---|
4212 | shift |
---|
4213 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
4214 | fi |
---|
4215 | fi |
---|
4216 | fi |
---|
4217 | fi |
---|
4218 | CC=$ac_cv_prog_CC |
---|
4219 | if test -n "$CC"; then |
---|
4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4221 | $as_echo "$CC" >&6; } |
---|
4222 | else |
---|
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4224 | $as_echo "no" >&6; } |
---|
4225 | fi |
---|
4226 | |
---|
4227 | |
---|
4228 | fi |
---|
4229 | if test -z "$CC"; then |
---|
4230 | if test -n "$ac_tool_prefix"; then |
---|
4231 | for ac_prog in cl.exe |
---|
4232 | do |
---|
4233 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4234 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4236 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4237 | if ${ac_cv_prog_CC+:} false; then : |
---|
4238 | $as_echo_n "(cached) " >&6 |
---|
4239 | else |
---|
4240 | if test -n "$CC"; then |
---|
4241 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4242 | else |
---|
4243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4244 | for as_dir in $PATH |
---|
4245 | do |
---|
4246 | IFS=$as_save_IFS |
---|
4247 | test -z "$as_dir" && as_dir=. |
---|
4248 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4250 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
4251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4252 | break 2 |
---|
4253 | fi |
---|
4254 | done |
---|
4255 | done |
---|
4256 | IFS=$as_save_IFS |
---|
4257 | |
---|
4258 | fi |
---|
4259 | fi |
---|
4260 | CC=$ac_cv_prog_CC |
---|
4261 | if test -n "$CC"; then |
---|
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4263 | $as_echo "$CC" >&6; } |
---|
4264 | else |
---|
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4266 | $as_echo "no" >&6; } |
---|
4267 | fi |
---|
4268 | |
---|
4269 | |
---|
4270 | test -n "$CC" && break |
---|
4271 | done |
---|
4272 | fi |
---|
4273 | if test -z "$CC"; then |
---|
4274 | ac_ct_CC=$CC |
---|
4275 | for ac_prog in cl.exe |
---|
4276 | do |
---|
4277 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4278 | set dummy $ac_prog; ac_word=$2 |
---|
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4280 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4281 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4282 | $as_echo_n "(cached) " >&6 |
---|
4283 | else |
---|
4284 | if test -n "$ac_ct_CC"; then |
---|
4285 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4286 | else |
---|
4287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4288 | for as_dir in $PATH |
---|
4289 | do |
---|
4290 | IFS=$as_save_IFS |
---|
4291 | test -z "$as_dir" && as_dir=. |
---|
4292 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4294 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
4295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4296 | break 2 |
---|
4297 | fi |
---|
4298 | done |
---|
4299 | done |
---|
4300 | IFS=$as_save_IFS |
---|
4301 | |
---|
4302 | fi |
---|
4303 | fi |
---|
4304 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4305 | if test -n "$ac_ct_CC"; then |
---|
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4307 | $as_echo "$ac_ct_CC" >&6; } |
---|
4308 | else |
---|
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4310 | $as_echo "no" >&6; } |
---|
4311 | fi |
---|
4312 | |
---|
4313 | |
---|
4314 | test -n "$ac_ct_CC" && break |
---|
4315 | done |
---|
4316 | |
---|
4317 | if test "x$ac_ct_CC" = x; then |
---|
4318 | CC="" |
---|
4319 | else |
---|
4320 | case $cross_compiling:$ac_tool_warned in |
---|
4321 | yes:) |
---|
4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4324 | ac_tool_warned=yes ;; |
---|
4325 | esac |
---|
4326 | CC=$ac_ct_CC |
---|
4327 | fi |
---|
4328 | fi |
---|
4329 | |
---|
4330 | fi |
---|
4331 | |
---|
4332 | |
---|
4333 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4335 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4336 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4337 | |
---|
4338 | # Provide some information about the compiler. |
---|
4339 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4340 | set X $ac_compile |
---|
4341 | ac_compiler=$2 |
---|
4342 | for ac_option in --version -v -V -qversion; do |
---|
4343 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4344 | case "(($ac_try" in |
---|
4345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4346 | *) ac_try_echo=$ac_try;; |
---|
4347 | esac |
---|
4348 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4349 | $as_echo "$ac_try_echo"; } >&5 |
---|
4350 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4351 | ac_status=$? |
---|
4352 | if test -s conftest.err; then |
---|
4353 | sed '10a\ |
---|
4354 | ... rest of stderr output deleted ... |
---|
4355 | 10q' conftest.err >conftest.er1 |
---|
4356 | cat conftest.er1 >&5 |
---|
4357 | fi |
---|
4358 | rm -f conftest.er1 conftest.err |
---|
4359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4360 | test $ac_status = 0; } |
---|
4361 | done |
---|
4362 | |
---|
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4364 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4365 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4366 | $as_echo_n "(cached) " >&6 |
---|
4367 | else |
---|
4368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4369 | /* end confdefs.h. */ |
---|
4370 | |
---|
4371 | int |
---|
4372 | main () |
---|
4373 | { |
---|
4374 | #ifndef __GNUC__ |
---|
4375 | choke me |
---|
4376 | #endif |
---|
4377 | |
---|
4378 | ; |
---|
4379 | return 0; |
---|
4380 | } |
---|
4381 | _ACEOF |
---|
4382 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4383 | ac_compiler_gnu=yes |
---|
4384 | else |
---|
4385 | ac_compiler_gnu=no |
---|
4386 | fi |
---|
4387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4388 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4389 | |
---|
4390 | fi |
---|
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4392 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4393 | if test $ac_compiler_gnu = yes; then |
---|
4394 | GCC=yes |
---|
4395 | else |
---|
4396 | GCC= |
---|
4397 | fi |
---|
4398 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4399 | ac_save_CFLAGS=$CFLAGS |
---|
4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4401 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4402 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4403 | $as_echo_n "(cached) " >&6 |
---|
4404 | else |
---|
4405 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4406 | ac_c_werror_flag=yes |
---|
4407 | ac_cv_prog_cc_g=no |
---|
4408 | CFLAGS="-g" |
---|
4409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4410 | /* end confdefs.h. */ |
---|
4411 | |
---|
4412 | int |
---|
4413 | main () |
---|
4414 | { |
---|
4415 | |
---|
4416 | ; |
---|
4417 | return 0; |
---|
4418 | } |
---|
4419 | _ACEOF |
---|
4420 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4421 | ac_cv_prog_cc_g=yes |
---|
4422 | else |
---|
4423 | CFLAGS="" |
---|
4424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4425 | /* end confdefs.h. */ |
---|
4426 | |
---|
4427 | int |
---|
4428 | main () |
---|
4429 | { |
---|
4430 | |
---|
4431 | ; |
---|
4432 | return 0; |
---|
4433 | } |
---|
4434 | _ACEOF |
---|
4435 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4436 | |
---|
4437 | else |
---|
4438 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4439 | CFLAGS="-g" |
---|
4440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4441 | /* end confdefs.h. */ |
---|
4442 | |
---|
4443 | int |
---|
4444 | main () |
---|
4445 | { |
---|
4446 | |
---|
4447 | ; |
---|
4448 | return 0; |
---|
4449 | } |
---|
4450 | _ACEOF |
---|
4451 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4452 | ac_cv_prog_cc_g=yes |
---|
4453 | fi |
---|
4454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4455 | fi |
---|
4456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4457 | fi |
---|
4458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4459 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4460 | fi |
---|
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4462 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4463 | if test "$ac_test_CFLAGS" = set; then |
---|
4464 | CFLAGS=$ac_save_CFLAGS |
---|
4465 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4466 | if test "$GCC" = yes; then |
---|
4467 | CFLAGS="-g -O2" |
---|
4468 | else |
---|
4469 | CFLAGS="-g" |
---|
4470 | fi |
---|
4471 | else |
---|
4472 | if test "$GCC" = yes; then |
---|
4473 | CFLAGS="-O2" |
---|
4474 | else |
---|
4475 | CFLAGS= |
---|
4476 | fi |
---|
4477 | fi |
---|
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4479 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4480 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4481 | $as_echo_n "(cached) " >&6 |
---|
4482 | else |
---|
4483 | ac_cv_prog_cc_c89=no |
---|
4484 | ac_save_CC=$CC |
---|
4485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4486 | /* end confdefs.h. */ |
---|
4487 | #include <stdarg.h> |
---|
4488 | #include <stdio.h> |
---|
4489 | #include <sys/types.h> |
---|
4490 | #include <sys/stat.h> |
---|
4491 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4492 | struct buf { int x; }; |
---|
4493 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4494 | static char *e (p, i) |
---|
4495 | char **p; |
---|
4496 | int i; |
---|
4497 | { |
---|
4498 | return p[i]; |
---|
4499 | } |
---|
4500 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4501 | { |
---|
4502 | char *s; |
---|
4503 | va_list v; |
---|
4504 | va_start (v,p); |
---|
4505 | s = g (p, va_arg (v,int)); |
---|
4506 | va_end (v); |
---|
4507 | return s; |
---|
4508 | } |
---|
4509 | |
---|
4510 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4511 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4512 | These don't provoke an error unfortunately, instead are silently treated |
---|
4513 | as 'x'. The following induces an error, until -std is added to get |
---|
4514 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4515 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4516 | that's true only with -std. */ |
---|
4517 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4518 | |
---|
4519 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4520 | inside strings and character constants. */ |
---|
4521 | #define FOO(x) 'x' |
---|
4522 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4523 | |
---|
4524 | int test (int i, double x); |
---|
4525 | struct s1 {int (*f) (int a);}; |
---|
4526 | struct s2 {int (*f) (double a);}; |
---|
4527 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4528 | int argc; |
---|
4529 | char **argv; |
---|
4530 | int |
---|
4531 | main () |
---|
4532 | { |
---|
4533 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4534 | ; |
---|
4535 | return 0; |
---|
4536 | } |
---|
4537 | _ACEOF |
---|
4538 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4539 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4540 | do |
---|
4541 | CC="$ac_save_CC $ac_arg" |
---|
4542 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4543 | ac_cv_prog_cc_c89=$ac_arg |
---|
4544 | fi |
---|
4545 | rm -f core conftest.err conftest.$ac_objext |
---|
4546 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4547 | done |
---|
4548 | rm -f conftest.$ac_ext |
---|
4549 | CC=$ac_save_CC |
---|
4550 | |
---|
4551 | fi |
---|
4552 | # AC_CACHE_VAL |
---|
4553 | case "x$ac_cv_prog_cc_c89" in |
---|
4554 | x) |
---|
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4556 | $as_echo "none needed" >&6; } ;; |
---|
4557 | xno) |
---|
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4559 | $as_echo "unsupported" >&6; } ;; |
---|
4560 | *) |
---|
4561 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4563 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4564 | esac |
---|
4565 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4566 | |
---|
4567 | fi |
---|
4568 | |
---|
4569 | ac_ext=c |
---|
4570 | ac_cpp='$CPP $CPPFLAGS' |
---|
4571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4574 | |
---|
4575 | depcc="$CC" am_compiler_list= |
---|
4576 | |
---|
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4578 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4579 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4580 | $as_echo_n "(cached) " >&6 |
---|
4581 | else |
---|
4582 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4583 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4584 | # making bogus files that we don't know about and never remove. For |
---|
4585 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4586 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4587 | # in D'. |
---|
4588 | rm -rf conftest.dir |
---|
4589 | mkdir conftest.dir |
---|
4590 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4591 | # using a relative directory. |
---|
4592 | cp "$am_depcomp" conftest.dir |
---|
4593 | cd conftest.dir |
---|
4594 | # We will build objects and dependencies in a subdirectory because |
---|
4595 | # it helps to detect inapplicable dependency modes. For instance |
---|
4596 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4597 | # side effect of compilation, but ICC will put the dependencies in |
---|
4598 | # the current directory while Tru64 will put them in the object |
---|
4599 | # directory. |
---|
4600 | mkdir sub |
---|
4601 | |
---|
4602 | am_cv_CC_dependencies_compiler_type=none |
---|
4603 | if test "$am_compiler_list" = ""; then |
---|
4604 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4605 | fi |
---|
4606 | am__universal=false |
---|
4607 | case " $depcc " in #( |
---|
4608 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4609 | esac |
---|
4610 | |
---|
4611 | for depmode in $am_compiler_list; do |
---|
4612 | # Setup a source with many dependencies, because some compilers |
---|
4613 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4614 | # we should not choose a depcomp mode which is confused by this. |
---|
4615 | # |
---|
4616 | # We need to recreate these files for each test, as the compiler may |
---|
4617 | # overwrite some of them when testing with obscure command lines. |
---|
4618 | # This happens at least with the AIX C compiler. |
---|
4619 | : > sub/conftest.c |
---|
4620 | for i in 1 2 3 4 5 6; do |
---|
4621 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4622 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4623 | # Solaris 8's {/usr,}/bin/sh. |
---|
4624 | touch sub/conftst$i.h |
---|
4625 | done |
---|
4626 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4627 | |
---|
4628 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4629 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4630 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4631 | # versions had trouble with output in subdirs |
---|
4632 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4633 | am__minus_obj="-o $am__obj" |
---|
4634 | case $depmode in |
---|
4635 | gcc) |
---|
4636 | # This depmode causes a compiler race in universal mode. |
---|
4637 | test "$am__universal" = false || continue |
---|
4638 | ;; |
---|
4639 | nosideeffect) |
---|
4640 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4641 | # only be used when explicitly requested |
---|
4642 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4643 | continue |
---|
4644 | else |
---|
4645 | break |
---|
4646 | fi |
---|
4647 | ;; |
---|
4648 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4649 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4650 | # not run yet. These depmodes are late enough in the game, and |
---|
4651 | # so weak that their functioning should not be impacted. |
---|
4652 | am__obj=conftest.${OBJEXT-o} |
---|
4653 | am__minus_obj= |
---|
4654 | ;; |
---|
4655 | none) break ;; |
---|
4656 | esac |
---|
4657 | if depmode=$depmode \ |
---|
4658 | source=sub/conftest.c object=$am__obj \ |
---|
4659 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4660 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4661 | >/dev/null 2>conftest.err && |
---|
4662 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4663 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4664 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4665 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4666 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4667 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4668 | # that says an option was ignored or not supported. |
---|
4669 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4670 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4671 | # The diagnosis changed in icc 8.0: |
---|
4672 | # icc: Command line remark: option '-MP' not supported |
---|
4673 | if (grep 'ignoring option' conftest.err || |
---|
4674 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4675 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4676 | break |
---|
4677 | fi |
---|
4678 | fi |
---|
4679 | done |
---|
4680 | |
---|
4681 | cd .. |
---|
4682 | rm -rf conftest.dir |
---|
4683 | else |
---|
4684 | am_cv_CC_dependencies_compiler_type=none |
---|
4685 | fi |
---|
4686 | |
---|
4687 | fi |
---|
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4689 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4690 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4691 | |
---|
4692 | if |
---|
4693 | test "x$enable_dependency_tracking" != xno \ |
---|
4694 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4695 | am__fastdepCC_TRUE= |
---|
4696 | am__fastdepCC_FALSE='#' |
---|
4697 | else |
---|
4698 | am__fastdepCC_TRUE='#' |
---|
4699 | am__fastdepCC_FALSE= |
---|
4700 | fi |
---|
4701 | |
---|
4702 | |
---|
4703 | # By default we simply use the C compiler to build assembly code. |
---|
4704 | |
---|
4705 | test "${CCAS+set}" = set || CCAS=$CC |
---|
4706 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
---|
4707 | |
---|
4708 | |
---|
4709 | |
---|
4710 | depcc="$CCAS" am_compiler_list= |
---|
4711 | |
---|
4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4713 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4714 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
---|
4715 | $as_echo_n "(cached) " >&6 |
---|
4716 | else |
---|
4717 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4718 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4719 | # making bogus files that we don't know about and never remove. For |
---|
4720 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4721 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4722 | # in D'. |
---|
4723 | rm -rf conftest.dir |
---|
4724 | mkdir conftest.dir |
---|
4725 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4726 | # using a relative directory. |
---|
4727 | cp "$am_depcomp" conftest.dir |
---|
4728 | cd conftest.dir |
---|
4729 | # We will build objects and dependencies in a subdirectory because |
---|
4730 | # it helps to detect inapplicable dependency modes. For instance |
---|
4731 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4732 | # side effect of compilation, but ICC will put the dependencies in |
---|
4733 | # the current directory while Tru64 will put them in the object |
---|
4734 | # directory. |
---|
4735 | mkdir sub |
---|
4736 | |
---|
4737 | am_cv_CCAS_dependencies_compiler_type=none |
---|
4738 | if test "$am_compiler_list" = ""; then |
---|
4739 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4740 | fi |
---|
4741 | am__universal=false |
---|
4742 | |
---|
4743 | |
---|
4744 | for depmode in $am_compiler_list; do |
---|
4745 | # Setup a source with many dependencies, because some compilers |
---|
4746 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4747 | # we should not choose a depcomp mode which is confused by this. |
---|
4748 | # |
---|
4749 | # We need to recreate these files for each test, as the compiler may |
---|
4750 | # overwrite some of them when testing with obscure command lines. |
---|
4751 | # This happens at least with the AIX C compiler. |
---|
4752 | : > sub/conftest.c |
---|
4753 | for i in 1 2 3 4 5 6; do |
---|
4754 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4755 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4756 | # Solaris 8's {/usr,}/bin/sh. |
---|
4757 | touch sub/conftst$i.h |
---|
4758 | done |
---|
4759 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4760 | |
---|
4761 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4762 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4763 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4764 | # versions had trouble with output in subdirs |
---|
4765 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4766 | am__minus_obj="-o $am__obj" |
---|
4767 | case $depmode in |
---|
4768 | gcc) |
---|
4769 | # This depmode causes a compiler race in universal mode. |
---|
4770 | test "$am__universal" = false || continue |
---|
4771 | ;; |
---|
4772 | nosideeffect) |
---|
4773 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4774 | # only be used when explicitly requested |
---|
4775 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4776 | continue |
---|
4777 | else |
---|
4778 | break |
---|
4779 | fi |
---|
4780 | ;; |
---|
4781 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4782 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4783 | # not run yet. These depmodes are late enough in the game, and |
---|
4784 | # so weak that their functioning should not be impacted. |
---|
4785 | am__obj=conftest.${OBJEXT-o} |
---|
4786 | am__minus_obj= |
---|
4787 | ;; |
---|
4788 | none) break ;; |
---|
4789 | esac |
---|
4790 | if depmode=$depmode \ |
---|
4791 | source=sub/conftest.c object=$am__obj \ |
---|
4792 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4793 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4794 | >/dev/null 2>conftest.err && |
---|
4795 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4796 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4797 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4798 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4799 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4800 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4801 | # that says an option was ignored or not supported. |
---|
4802 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4803 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4804 | # The diagnosis changed in icc 8.0: |
---|
4805 | # icc: Command line remark: option '-MP' not supported |
---|
4806 | if (grep 'ignoring option' conftest.err || |
---|
4807 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4808 | am_cv_CCAS_dependencies_compiler_type=$depmode |
---|
4809 | break |
---|
4810 | fi |
---|
4811 | fi |
---|
4812 | done |
---|
4813 | |
---|
4814 | cd .. |
---|
4815 | rm -rf conftest.dir |
---|
4816 | else |
---|
4817 | am_cv_CCAS_dependencies_compiler_type=none |
---|
4818 | fi |
---|
4819 | |
---|
4820 | fi |
---|
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
---|
4822 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
---|
4823 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
---|
4824 | |
---|
4825 | if |
---|
4826 | test "x$enable_dependency_tracking" != xno \ |
---|
4827 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
---|
4828 | am__fastdepCCAS_TRUE= |
---|
4829 | am__fastdepCCAS_FALSE='#' |
---|
4830 | else |
---|
4831 | am__fastdepCCAS_TRUE='#' |
---|
4832 | am__fastdepCCAS_FALSE= |
---|
4833 | fi |
---|
4834 | |
---|
4835 | |
---|
4836 | if test "x$CC" != xcc; then |
---|
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
---|
4838 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
---|
4839 | else |
---|
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
---|
4841 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
---|
4842 | fi |
---|
4843 | set dummy $CC; ac_cc=`$as_echo "$2" | |
---|
4844 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4845 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
---|
4846 | $as_echo_n "(cached) " >&6 |
---|
4847 | else |
---|
4848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4849 | /* end confdefs.h. */ |
---|
4850 | |
---|
4851 | int |
---|
4852 | main () |
---|
4853 | { |
---|
4854 | |
---|
4855 | ; |
---|
4856 | return 0; |
---|
4857 | } |
---|
4858 | _ACEOF |
---|
4859 | # Make sure it works both with $CC and with simple cc. |
---|
4860 | # We do the test twice because some compilers refuse to overwrite an |
---|
4861 | # existing .o file with -o, though they will create one. |
---|
4862 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4863 | rm -f conftest2.* |
---|
4864 | if { { case "(($ac_try" in |
---|
4865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4866 | *) ac_try_echo=$ac_try;; |
---|
4867 | esac |
---|
4868 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4869 | $as_echo "$ac_try_echo"; } >&5 |
---|
4870 | (eval "$ac_try") 2>&5 |
---|
4871 | ac_status=$? |
---|
4872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4873 | test $ac_status = 0; } && |
---|
4874 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
4875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4876 | *) ac_try_echo=$ac_try;; |
---|
4877 | esac |
---|
4878 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4879 | $as_echo "$ac_try_echo"; } >&5 |
---|
4880 | (eval "$ac_try") 2>&5 |
---|
4881 | ac_status=$? |
---|
4882 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4883 | test $ac_status = 0; }; |
---|
4884 | then |
---|
4885 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
---|
4886 | if test "x$CC" != xcc; then |
---|
4887 | # Test first that cc exists at all. |
---|
4888 | if { ac_try='cc -c conftest.$ac_ext >&5' |
---|
4889 | { { case "(($ac_try" in |
---|
4890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4891 | *) ac_try_echo=$ac_try;; |
---|
4892 | esac |
---|
4893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4894 | $as_echo "$ac_try_echo"; } >&5 |
---|
4895 | (eval "$ac_try") 2>&5 |
---|
4896 | ac_status=$? |
---|
4897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4898 | test $ac_status = 0; }; }; then |
---|
4899 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4900 | rm -f conftest2.* |
---|
4901 | if { { case "(($ac_try" in |
---|
4902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4903 | *) ac_try_echo=$ac_try;; |
---|
4904 | esac |
---|
4905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4906 | $as_echo "$ac_try_echo"; } >&5 |
---|
4907 | (eval "$ac_try") 2>&5 |
---|
4908 | ac_status=$? |
---|
4909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4910 | test $ac_status = 0; } && |
---|
4911 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
4912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4913 | *) ac_try_echo=$ac_try;; |
---|
4914 | esac |
---|
4915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4916 | $as_echo "$ac_try_echo"; } >&5 |
---|
4917 | (eval "$ac_try") 2>&5 |
---|
4918 | ac_status=$? |
---|
4919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4920 | test $ac_status = 0; }; |
---|
4921 | then |
---|
4922 | # cc works too. |
---|
4923 | : |
---|
4924 | else |
---|
4925 | # cc exists but doesn't like -o. |
---|
4926 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4927 | fi |
---|
4928 | fi |
---|
4929 | fi |
---|
4930 | else |
---|
4931 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4932 | fi |
---|
4933 | rm -f core conftest* |
---|
4934 | |
---|
4935 | fi |
---|
4936 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
---|
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4938 | $as_echo "yes" >&6; } |
---|
4939 | else |
---|
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4941 | $as_echo "no" >&6; } |
---|
4942 | |
---|
4943 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
---|
4944 | |
---|
4945 | fi |
---|
4946 | |
---|
4947 | # FIXME: we rely on the cache variable name because |
---|
4948 | # there is no other way. |
---|
4949 | set dummy $CC |
---|
4950 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4951 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
---|
4952 | if test "$am_t" != yes; then |
---|
4953 | # Losing compiler, so override with the script. |
---|
4954 | # FIXME: It is wrong to rewrite CC. |
---|
4955 | # But if we don't then we get into trouble of one sort or another. |
---|
4956 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
4957 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
4958 | CC="$am_aux_dir/compile $CC" |
---|
4959 | fi |
---|
4960 | |
---|
4961 | # deprecated |
---|
4962 | # These are often not installed and people miss seeing the "no", so stop the configure. |
---|
4963 | for ac_prog in 'bison -y' byacc |
---|
4964 | do |
---|
4965 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4966 | set dummy $ac_prog; ac_word=$2 |
---|
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4968 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4969 | if ${ac_cv_prog_YACC+:} false; then : |
---|
4970 | $as_echo_n "(cached) " >&6 |
---|
4971 | else |
---|
4972 | if test -n "$YACC"; then |
---|
4973 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
4974 | else |
---|
4975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4976 | for as_dir in $PATH |
---|
4977 | do |
---|
4978 | IFS=$as_save_IFS |
---|
4979 | test -z "$as_dir" && as_dir=. |
---|
4980 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4982 | ac_cv_prog_YACC="$ac_prog" |
---|
4983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4984 | break 2 |
---|
4985 | fi |
---|
4986 | done |
---|
4987 | done |
---|
4988 | IFS=$as_save_IFS |
---|
4989 | |
---|
4990 | fi |
---|
4991 | fi |
---|
4992 | YACC=$ac_cv_prog_YACC |
---|
4993 | if test -n "$YACC"; then |
---|
4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
---|
4995 | $as_echo "$YACC" >&6; } |
---|
4996 | else |
---|
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4998 | $as_echo "no" >&6; } |
---|
4999 | fi |
---|
5000 | |
---|
5001 | |
---|
5002 | test -n "$YACC" && break |
---|
5003 | done |
---|
5004 | test -n "$YACC" || YACC="yacc" |
---|
5005 | |
---|
5006 | if test "${YACC}" = "yacc" ; then echo "Error: bison required." ; exit 1 ; fi |
---|
5007 | |
---|
5008 | for ac_prog in flex lex |
---|
5009 | do |
---|
5010 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5011 | set dummy $ac_prog; ac_word=$2 |
---|
5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5013 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5014 | if ${ac_cv_prog_LEX+:} false; then : |
---|
5015 | $as_echo_n "(cached) " >&6 |
---|
5016 | else |
---|
5017 | if test -n "$LEX"; then |
---|
5018 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
5019 | else |
---|
5020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5021 | for as_dir in $PATH |
---|
5022 | do |
---|
5023 | IFS=$as_save_IFS |
---|
5024 | test -z "$as_dir" && as_dir=. |
---|
5025 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5027 | ac_cv_prog_LEX="$ac_prog" |
---|
5028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5029 | break 2 |
---|
5030 | fi |
---|
5031 | done |
---|
5032 | done |
---|
5033 | IFS=$as_save_IFS |
---|
5034 | |
---|
5035 | fi |
---|
5036 | fi |
---|
5037 | LEX=$ac_cv_prog_LEX |
---|
5038 | if test -n "$LEX"; then |
---|
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
---|
5040 | $as_echo "$LEX" >&6; } |
---|
5041 | else |
---|
5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5043 | $as_echo "no" >&6; } |
---|
5044 | fi |
---|
5045 | |
---|
5046 | |
---|
5047 | test -n "$LEX" && break |
---|
5048 | done |
---|
5049 | test -n "$LEX" || LEX=":" |
---|
5050 | |
---|
5051 | if test "x$LEX" != "x:"; then |
---|
5052 | cat >conftest.l <<_ACEOF |
---|
5053 | %% |
---|
5054 | a { ECHO; } |
---|
5055 | b { REJECT; } |
---|
5056 | c { yymore (); } |
---|
5057 | d { yyless (1); } |
---|
5058 | e { yyless (input () != 0); } |
---|
5059 | f { unput (yytext[0]); } |
---|
5060 | . { BEGIN INITIAL; } |
---|
5061 | %% |
---|
5062 | #ifdef YYTEXT_POINTER |
---|
5063 | extern char *yytext; |
---|
5064 | #endif |
---|
5065 | int |
---|
5066 | main (void) |
---|
5067 | { |
---|
5068 | return ! yylex () + ! yywrap (); |
---|
5069 | } |
---|
5070 | _ACEOF |
---|
5071 | { { ac_try="$LEX conftest.l" |
---|
5072 | case "(($ac_try" in |
---|
5073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5074 | *) ac_try_echo=$ac_try;; |
---|
5075 | esac |
---|
5076 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5077 | $as_echo "$ac_try_echo"; } >&5 |
---|
5078 | (eval "$LEX conftest.l") 2>&5 |
---|
5079 | ac_status=$? |
---|
5080 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5081 | test $ac_status = 0; } |
---|
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
---|
5083 | $as_echo_n "checking lex output file root... " >&6; } |
---|
5084 | if ${ac_cv_prog_lex_root+:} false; then : |
---|
5085 | $as_echo_n "(cached) " >&6 |
---|
5086 | else |
---|
5087 | |
---|
5088 | if test -f lex.yy.c; then |
---|
5089 | ac_cv_prog_lex_root=lex.yy |
---|
5090 | elif test -f lexyy.c; then |
---|
5091 | ac_cv_prog_lex_root=lexyy |
---|
5092 | else |
---|
5093 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
---|
5094 | fi |
---|
5095 | fi |
---|
5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
---|
5097 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
5098 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
5099 | |
---|
5100 | if test -z "${LEXLIB+set}"; then |
---|
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
---|
5102 | $as_echo_n "checking lex library... " >&6; } |
---|
5103 | if ${ac_cv_lib_lex+:} false; then : |
---|
5104 | $as_echo_n "(cached) " >&6 |
---|
5105 | else |
---|
5106 | |
---|
5107 | ac_save_LIBS=$LIBS |
---|
5108 | ac_cv_lib_lex='none needed' |
---|
5109 | for ac_lib in '' -lfl -ll; do |
---|
5110 | LIBS="$ac_lib $ac_save_LIBS" |
---|
5111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5112 | /* end confdefs.h. */ |
---|
5113 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5114 | _ACEOF |
---|
5115 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5116 | ac_cv_lib_lex=$ac_lib |
---|
5117 | fi |
---|
5118 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5119 | conftest$ac_exeext conftest.$ac_ext |
---|
5120 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
5121 | done |
---|
5122 | LIBS=$ac_save_LIBS |
---|
5123 | |
---|
5124 | fi |
---|
5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
---|
5126 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
5127 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
5128 | fi |
---|
5129 | |
---|
5130 | |
---|
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
---|
5132 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
5133 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
---|
5134 | $as_echo_n "(cached) " >&6 |
---|
5135 | else |
---|
5136 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
5137 | # default is implementation-dependent. Figure out which it is, since |
---|
5138 | # not all implementations provide the %pointer and %array declarations. |
---|
5139 | ac_cv_prog_lex_yytext_pointer=no |
---|
5140 | ac_save_LIBS=$LIBS |
---|
5141 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
5142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5143 | /* end confdefs.h. */ |
---|
5144 | |
---|
5145 | #define YYTEXT_POINTER 1 |
---|
5146 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5147 | _ACEOF |
---|
5148 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5149 | ac_cv_prog_lex_yytext_pointer=yes |
---|
5150 | fi |
---|
5151 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5152 | conftest$ac_exeext conftest.$ac_ext |
---|
5153 | LIBS=$ac_save_LIBS |
---|
5154 | |
---|
5155 | fi |
---|
5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
5157 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
5158 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
5159 | |
---|
5160 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
---|
5161 | |
---|
5162 | fi |
---|
5163 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
5164 | |
---|
5165 | fi |
---|
5166 | if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi |
---|
5167 | |
---|
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
5169 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
5170 | set x ${MAKE-make} |
---|
5171 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
5172 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
5173 | $as_echo_n "(cached) " >&6 |
---|
5174 | else |
---|
5175 | cat >conftest.make <<\_ACEOF |
---|
5176 | SHELL = /bin/sh |
---|
5177 | all: |
---|
5178 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
5179 | _ACEOF |
---|
5180 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
5181 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
5182 | *@@@%%%=?*=@@@%%%*) |
---|
5183 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
5184 | *) |
---|
5185 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
5186 | esac |
---|
5187 | rm -f conftest.make |
---|
5188 | fi |
---|
5189 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5191 | $as_echo "yes" >&6; } |
---|
5192 | SET_MAKE= |
---|
5193 | else |
---|
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5195 | $as_echo "no" >&6; } |
---|
5196 | SET_MAKE="MAKE=${MAKE-make}" |
---|
5197 | fi |
---|
5198 | |
---|
5199 | if test -n "$ac_tool_prefix"; then |
---|
5200 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
5201 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5203 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5204 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
5205 | $as_echo_n "(cached) " >&6 |
---|
5206 | else |
---|
5207 | if test -n "$RANLIB"; then |
---|
5208 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
5209 | else |
---|
5210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5211 | for as_dir in $PATH |
---|
5212 | do |
---|
5213 | IFS=$as_save_IFS |
---|
5214 | test -z "$as_dir" && as_dir=. |
---|
5215 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5217 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
5218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5219 | break 2 |
---|
5220 | fi |
---|
5221 | done |
---|
5222 | done |
---|
5223 | IFS=$as_save_IFS |
---|
5224 | |
---|
5225 | fi |
---|
5226 | fi |
---|
5227 | RANLIB=$ac_cv_prog_RANLIB |
---|
5228 | if test -n "$RANLIB"; then |
---|
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
5230 | $as_echo "$RANLIB" >&6; } |
---|
5231 | else |
---|
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5233 | $as_echo "no" >&6; } |
---|
5234 | fi |
---|
5235 | |
---|
5236 | |
---|
5237 | fi |
---|
5238 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
5239 | ac_ct_RANLIB=$RANLIB |
---|
5240 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
5241 | set dummy ranlib; ac_word=$2 |
---|
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5243 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5244 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
5245 | $as_echo_n "(cached) " >&6 |
---|
5246 | else |
---|
5247 | if test -n "$ac_ct_RANLIB"; then |
---|
5248 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
5249 | else |
---|
5250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5251 | for as_dir in $PATH |
---|
5252 | do |
---|
5253 | IFS=$as_save_IFS |
---|
5254 | test -z "$as_dir" && as_dir=. |
---|
5255 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5256 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5257 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
5258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5259 | break 2 |
---|
5260 | fi |
---|
5261 | done |
---|
5262 | done |
---|
5263 | IFS=$as_save_IFS |
---|
5264 | |
---|
5265 | fi |
---|
5266 | fi |
---|
5267 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
5268 | if test -n "$ac_ct_RANLIB"; then |
---|
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
5270 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
5271 | else |
---|
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5273 | $as_echo "no" >&6; } |
---|
5274 | fi |
---|
5275 | |
---|
5276 | if test "x$ac_ct_RANLIB" = x; then |
---|
5277 | RANLIB=":" |
---|
5278 | else |
---|
5279 | case $cross_compiling:$ac_tool_warned in |
---|
5280 | yes:) |
---|
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5282 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5283 | ac_tool_warned=yes ;; |
---|
5284 | esac |
---|
5285 | RANLIB=$ac_ct_RANLIB |
---|
5286 | fi |
---|
5287 | else |
---|
5288 | RANLIB="$ac_cv_prog_RANLIB" |
---|
5289 | fi |
---|
5290 | |
---|
5291 | |
---|
5292 | # Checks for libraries. |
---|
5293 | |
---|
5294 | # Checks for header files. |
---|
5295 | ac_ext=c |
---|
5296 | ac_cpp='$CPP $CPPFLAGS' |
---|
5297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
5301 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
5302 | # On Suns, sometimes $CPP names a directory. |
---|
5303 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5304 | CPP= |
---|
5305 | fi |
---|
5306 | if test -z "$CPP"; then |
---|
5307 | if ${ac_cv_prog_CPP+:} false; then : |
---|
5308 | $as_echo_n "(cached) " >&6 |
---|
5309 | else |
---|
5310 | # Double quotes because CPP needs to be expanded |
---|
5311 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5312 | do |
---|
5313 | ac_preproc_ok=false |
---|
5314 | for ac_c_preproc_warn_flag in '' yes |
---|
5315 | do |
---|
5316 | # Use a header file that comes with gcc, so configuring glibc |
---|
5317 | # with a fresh cross-compiler works. |
---|
5318 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5319 | # <limits.h> exists even on freestanding compilers. |
---|
5320 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5321 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5323 | /* end confdefs.h. */ |
---|
5324 | #ifdef __STDC__ |
---|
5325 | # include <limits.h> |
---|
5326 | #else |
---|
5327 | # include <assert.h> |
---|
5328 | #endif |
---|
5329 | Syntax error |
---|
5330 | _ACEOF |
---|
5331 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5332 | |
---|
5333 | else |
---|
5334 | # Broken: fails on valid input. |
---|
5335 | continue |
---|
5336 | fi |
---|
5337 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5338 | |
---|
5339 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5340 | # can be detected and how. |
---|
5341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5342 | /* end confdefs.h. */ |
---|
5343 | #include <ac_nonexistent.h> |
---|
5344 | _ACEOF |
---|
5345 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5346 | # Broken: success on invalid input. |
---|
5347 | continue |
---|
5348 | else |
---|
5349 | # Passes both tests. |
---|
5350 | ac_preproc_ok=: |
---|
5351 | break |
---|
5352 | fi |
---|
5353 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5354 | |
---|
5355 | done |
---|
5356 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5357 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5358 | if $ac_preproc_ok; then : |
---|
5359 | break |
---|
5360 | fi |
---|
5361 | |
---|
5362 | done |
---|
5363 | ac_cv_prog_CPP=$CPP |
---|
5364 | |
---|
5365 | fi |
---|
5366 | CPP=$ac_cv_prog_CPP |
---|
5367 | else |
---|
5368 | ac_cv_prog_CPP=$CPP |
---|
5369 | fi |
---|
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
5371 | $as_echo "$CPP" >&6; } |
---|
5372 | ac_preproc_ok=false |
---|
5373 | for ac_c_preproc_warn_flag in '' yes |
---|
5374 | do |
---|
5375 | # Use a header file that comes with gcc, so configuring glibc |
---|
5376 | # with a fresh cross-compiler works. |
---|
5377 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5378 | # <limits.h> exists even on freestanding compilers. |
---|
5379 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5380 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5382 | /* end confdefs.h. */ |
---|
5383 | #ifdef __STDC__ |
---|
5384 | # include <limits.h> |
---|
5385 | #else |
---|
5386 | # include <assert.h> |
---|
5387 | #endif |
---|
5388 | Syntax error |
---|
5389 | _ACEOF |
---|
5390 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5391 | |
---|
5392 | else |
---|
5393 | # Broken: fails on valid input. |
---|
5394 | continue |
---|
5395 | fi |
---|
5396 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5397 | |
---|
5398 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5399 | # can be detected and how. |
---|
5400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5401 | /* end confdefs.h. */ |
---|
5402 | #include <ac_nonexistent.h> |
---|
5403 | _ACEOF |
---|
5404 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5405 | # Broken: success on invalid input. |
---|
5406 | continue |
---|
5407 | else |
---|
5408 | # Passes both tests. |
---|
5409 | ac_preproc_ok=: |
---|
5410 | break |
---|
5411 | fi |
---|
5412 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5413 | |
---|
5414 | done |
---|
5415 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5416 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5417 | if $ac_preproc_ok; then : |
---|
5418 | |
---|
5419 | else |
---|
5420 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5421 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5422 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
5423 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5424 | fi |
---|
5425 | |
---|
5426 | ac_ext=c |
---|
5427 | ac_cpp='$CPP $CPPFLAGS' |
---|
5428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5431 | |
---|
5432 | |
---|
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5434 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5435 | if ${ac_cv_path_GREP+:} false; then : |
---|
5436 | $as_echo_n "(cached) " >&6 |
---|
5437 | else |
---|
5438 | if test -z "$GREP"; then |
---|
5439 | ac_path_GREP_found=false |
---|
5440 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5442 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5443 | do |
---|
5444 | IFS=$as_save_IFS |
---|
5445 | test -z "$as_dir" && as_dir=. |
---|
5446 | for ac_prog in grep ggrep; do |
---|
5447 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5448 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5449 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
5450 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5451 | # Check for GNU $ac_path_GREP |
---|
5452 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5453 | *GNU*) |
---|
5454 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5455 | *) |
---|
5456 | ac_count=0 |
---|
5457 | $as_echo_n 0123456789 >"conftest.in" |
---|
5458 | while : |
---|
5459 | do |
---|
5460 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5461 | mv "conftest.tmp" "conftest.in" |
---|
5462 | cp "conftest.in" "conftest.nl" |
---|
5463 | $as_echo 'GREP' >> "conftest.nl" |
---|
5464 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5465 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5466 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5467 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5468 | # Best one so far, save it but keep looking for a better one |
---|
5469 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5470 | ac_path_GREP_max=$ac_count |
---|
5471 | fi |
---|
5472 | # 10*(2^10) chars as input seems more than enough |
---|
5473 | test $ac_count -gt 10 && break |
---|
5474 | done |
---|
5475 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5476 | esac |
---|
5477 | |
---|
5478 | $ac_path_GREP_found && break 3 |
---|
5479 | done |
---|
5480 | done |
---|
5481 | done |
---|
5482 | IFS=$as_save_IFS |
---|
5483 | if test -z "$ac_cv_path_GREP"; then |
---|
5484 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5485 | fi |
---|
5486 | else |
---|
5487 | ac_cv_path_GREP=$GREP |
---|
5488 | fi |
---|
5489 | |
---|
5490 | fi |
---|
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5492 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5493 | GREP="$ac_cv_path_GREP" |
---|
5494 | |
---|
5495 | |
---|
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5497 | $as_echo_n "checking for egrep... " >&6; } |
---|
5498 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5499 | $as_echo_n "(cached) " >&6 |
---|
5500 | else |
---|
5501 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5502 | then ac_cv_path_EGREP="$GREP -E" |
---|
5503 | else |
---|
5504 | if test -z "$EGREP"; then |
---|
5505 | ac_path_EGREP_found=false |
---|
5506 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5508 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5509 | do |
---|
5510 | IFS=$as_save_IFS |
---|
5511 | test -z "$as_dir" && as_dir=. |
---|
5512 | for ac_prog in egrep; do |
---|
5513 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5514 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5515 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
5516 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5517 | # Check for GNU $ac_path_EGREP |
---|
5518 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5519 | *GNU*) |
---|
5520 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5521 | *) |
---|
5522 | ac_count=0 |
---|
5523 | $as_echo_n 0123456789 >"conftest.in" |
---|
5524 | while : |
---|
5525 | do |
---|
5526 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5527 | mv "conftest.tmp" "conftest.in" |
---|
5528 | cp "conftest.in" "conftest.nl" |
---|
5529 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5530 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5531 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5532 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5533 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5534 | # Best one so far, save it but keep looking for a better one |
---|
5535 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5536 | ac_path_EGREP_max=$ac_count |
---|
5537 | fi |
---|
5538 | # 10*(2^10) chars as input seems more than enough |
---|
5539 | test $ac_count -gt 10 && break |
---|
5540 | done |
---|
5541 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5542 | esac |
---|
5543 | |
---|
5544 | $ac_path_EGREP_found && break 3 |
---|
5545 | done |
---|
5546 | done |
---|
5547 | done |
---|
5548 | IFS=$as_save_IFS |
---|
5549 | if test -z "$ac_cv_path_EGREP"; then |
---|
5550 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5551 | fi |
---|
5552 | else |
---|
5553 | ac_cv_path_EGREP=$EGREP |
---|
5554 | fi |
---|
5555 | |
---|
5556 | fi |
---|
5557 | fi |
---|
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5559 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5560 | EGREP="$ac_cv_path_EGREP" |
---|
5561 | |
---|
5562 | |
---|
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
5564 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
5565 | if ${ac_cv_header_stdc+:} false; then : |
---|
5566 | $as_echo_n "(cached) " >&6 |
---|
5567 | else |
---|
5568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5569 | /* end confdefs.h. */ |
---|
5570 | #include <stdlib.h> |
---|
5571 | #include <stdarg.h> |
---|
5572 | #include <string.h> |
---|
5573 | #include <float.h> |
---|
5574 | |
---|
5575 | int |
---|
5576 | main () |
---|
5577 | { |
---|
5578 | |
---|
5579 | ; |
---|
5580 | return 0; |
---|
5581 | } |
---|
5582 | _ACEOF |
---|
5583 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5584 | ac_cv_header_stdc=yes |
---|
5585 | else |
---|
5586 | ac_cv_header_stdc=no |
---|
5587 | fi |
---|
5588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5589 | |
---|
5590 | if test $ac_cv_header_stdc = yes; then |
---|
5591 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5593 | /* end confdefs.h. */ |
---|
5594 | #include <string.h> |
---|
5595 | |
---|
5596 | _ACEOF |
---|
5597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5598 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
5599 | |
---|
5600 | else |
---|
5601 | ac_cv_header_stdc=no |
---|
5602 | fi |
---|
5603 | rm -f conftest* |
---|
5604 | |
---|
5605 | fi |
---|
5606 | |
---|
5607 | if test $ac_cv_header_stdc = yes; then |
---|
5608 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5610 | /* end confdefs.h. */ |
---|
5611 | #include <stdlib.h> |
---|
5612 | |
---|
5613 | _ACEOF |
---|
5614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5615 | $EGREP "free" >/dev/null 2>&1; then : |
---|
5616 | |
---|
5617 | else |
---|
5618 | ac_cv_header_stdc=no |
---|
5619 | fi |
---|
5620 | rm -f conftest* |
---|
5621 | |
---|
5622 | fi |
---|
5623 | |
---|
5624 | if test $ac_cv_header_stdc = yes; then |
---|
5625 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5626 | if test "$cross_compiling" = yes; then : |
---|
5627 | : |
---|
5628 | else |
---|
5629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5630 | /* end confdefs.h. */ |
---|
5631 | #include <ctype.h> |
---|
5632 | #include <stdlib.h> |
---|
5633 | #if ((' ' & 0x0FF) == 0x020) |
---|
5634 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5635 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5636 | #else |
---|
5637 | # define ISLOWER(c) \ |
---|
5638 | (('a' <= (c) && (c) <= 'i') \ |
---|
5639 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5640 | || ('s' <= (c) && (c) <= 'z')) |
---|
5641 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5642 | #endif |
---|
5643 | |
---|
5644 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5645 | int |
---|
5646 | main () |
---|
5647 | { |
---|
5648 | int i; |
---|
5649 | for (i = 0; i < 256; i++) |
---|
5650 | if (XOR (islower (i), ISLOWER (i)) |
---|
5651 | || toupper (i) != TOUPPER (i)) |
---|
5652 | return 2; |
---|
5653 | return 0; |
---|
5654 | } |
---|
5655 | _ACEOF |
---|
5656 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5657 | |
---|
5658 | else |
---|
5659 | ac_cv_header_stdc=no |
---|
5660 | fi |
---|
5661 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5662 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5663 | fi |
---|
5664 | |
---|
5665 | fi |
---|
5666 | fi |
---|
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
5668 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
5669 | if test $ac_cv_header_stdc = yes; then |
---|
5670 | |
---|
5671 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
5672 | |
---|
5673 | fi |
---|
5674 | |
---|
5675 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5676 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5677 | inttypes.h stdint.h unistd.h |
---|
5678 | do : |
---|
5679 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5680 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
5681 | " |
---|
5682 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5683 | cat >>confdefs.h <<_ACEOF |
---|
5684 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5685 | _ACEOF |
---|
5686 | |
---|
5687 | fi |
---|
5688 | |
---|
5689 | done |
---|
5690 | |
---|
5691 | |
---|
5692 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5693 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5694 | |
---|
5695 | else |
---|
5696 | |
---|
5697 | cat >>confdefs.h <<_ACEOF |
---|
5698 | #define size_t unsigned int |
---|
5699 | _ACEOF |
---|
5700 | |
---|
5701 | fi |
---|
5702 | |
---|
5703 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
5704 | # for constant arguments. Useless! |
---|
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
---|
5706 | $as_echo_n "checking for working alloca.h... " >&6; } |
---|
5707 | if ${ac_cv_working_alloca_h+:} false; then : |
---|
5708 | $as_echo_n "(cached) " >&6 |
---|
5709 | else |
---|
5710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5711 | /* end confdefs.h. */ |
---|
5712 | #include <alloca.h> |
---|
5713 | int |
---|
5714 | main () |
---|
5715 | { |
---|
5716 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
5717 | if (p) return 0; |
---|
5718 | ; |
---|
5719 | return 0; |
---|
5720 | } |
---|
5721 | _ACEOF |
---|
5722 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5723 | ac_cv_working_alloca_h=yes |
---|
5724 | else |
---|
5725 | ac_cv_working_alloca_h=no |
---|
5726 | fi |
---|
5727 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5728 | conftest$ac_exeext conftest.$ac_ext |
---|
5729 | fi |
---|
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
---|
5731 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
---|
5732 | if test $ac_cv_working_alloca_h = yes; then |
---|
5733 | |
---|
5734 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
---|
5735 | |
---|
5736 | fi |
---|
5737 | |
---|
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
---|
5739 | $as_echo_n "checking for alloca... " >&6; } |
---|
5740 | if ${ac_cv_func_alloca_works+:} false; then : |
---|
5741 | $as_echo_n "(cached) " >&6 |
---|
5742 | else |
---|
5743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5744 | /* end confdefs.h. */ |
---|
5745 | #ifdef __GNUC__ |
---|
5746 | # define alloca __builtin_alloca |
---|
5747 | #else |
---|
5748 | # ifdef _MSC_VER |
---|
5749 | # include <malloc.h> |
---|
5750 | # define alloca _alloca |
---|
5751 | # else |
---|
5752 | # ifdef HAVE_ALLOCA_H |
---|
5753 | # include <alloca.h> |
---|
5754 | # else |
---|
5755 | # ifdef _AIX |
---|
5756 | #pragma alloca |
---|
5757 | # else |
---|
5758 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
5759 | void *alloca (size_t); |
---|
5760 | # endif |
---|
5761 | # endif |
---|
5762 | # endif |
---|
5763 | # endif |
---|
5764 | #endif |
---|
5765 | |
---|
5766 | int |
---|
5767 | main () |
---|
5768 | { |
---|
5769 | char *p = (char *) alloca (1); |
---|
5770 | if (p) return 0; |
---|
5771 | ; |
---|
5772 | return 0; |
---|
5773 | } |
---|
5774 | _ACEOF |
---|
5775 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5776 | ac_cv_func_alloca_works=yes |
---|
5777 | else |
---|
5778 | ac_cv_func_alloca_works=no |
---|
5779 | fi |
---|
5780 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5781 | conftest$ac_exeext conftest.$ac_ext |
---|
5782 | fi |
---|
5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
---|
5784 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
---|
5785 | |
---|
5786 | if test $ac_cv_func_alloca_works = yes; then |
---|
5787 | |
---|
5788 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
---|
5789 | |
---|
5790 | else |
---|
5791 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
5792 | # that cause trouble. Some versions do not even contain alloca or |
---|
5793 | # contain a buggy version. If you still want to use their alloca, |
---|
5794 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
5795 | |
---|
5796 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
5797 | |
---|
5798 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
---|
5799 | |
---|
5800 | |
---|
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
5802 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
---|
5803 | if ${ac_cv_os_cray+:} false; then : |
---|
5804 | $as_echo_n "(cached) " >&6 |
---|
5805 | else |
---|
5806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5807 | /* end confdefs.h. */ |
---|
5808 | #if defined CRAY && ! defined CRAY2 |
---|
5809 | webecray |
---|
5810 | #else |
---|
5811 | wenotbecray |
---|
5812 | #endif |
---|
5813 | |
---|
5814 | _ACEOF |
---|
5815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5816 | $EGREP "webecray" >/dev/null 2>&1; then : |
---|
5817 | ac_cv_os_cray=yes |
---|
5818 | else |
---|
5819 | ac_cv_os_cray=no |
---|
5820 | fi |
---|
5821 | rm -f conftest* |
---|
5822 | |
---|
5823 | fi |
---|
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
---|
5825 | $as_echo "$ac_cv_os_cray" >&6; } |
---|
5826 | if test $ac_cv_os_cray = yes; then |
---|
5827 | for ac_func in _getb67 GETB67 getb67; do |
---|
5828 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5829 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5830 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5831 | |
---|
5832 | cat >>confdefs.h <<_ACEOF |
---|
5833 | #define CRAY_STACKSEG_END $ac_func |
---|
5834 | _ACEOF |
---|
5835 | |
---|
5836 | break |
---|
5837 | fi |
---|
5838 | |
---|
5839 | done |
---|
5840 | fi |
---|
5841 | |
---|
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
---|
5843 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
---|
5844 | if ${ac_cv_c_stack_direction+:} false; then : |
---|
5845 | $as_echo_n "(cached) " >&6 |
---|
5846 | else |
---|
5847 | if test "$cross_compiling" = yes; then : |
---|
5848 | ac_cv_c_stack_direction=0 |
---|
5849 | else |
---|
5850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5851 | /* end confdefs.h. */ |
---|
5852 | $ac_includes_default |
---|
5853 | int |
---|
5854 | find_stack_direction () |
---|
5855 | { |
---|
5856 | static char *addr = 0; |
---|
5857 | auto char dummy; |
---|
5858 | if (addr == 0) |
---|
5859 | { |
---|
5860 | addr = &dummy; |
---|
5861 | return find_stack_direction (); |
---|
5862 | } |
---|
5863 | else |
---|
5864 | return (&dummy > addr) ? 1 : -1; |
---|
5865 | } |
---|
5866 | |
---|
5867 | int |
---|
5868 | main () |
---|
5869 | { |
---|
5870 | return find_stack_direction () < 0; |
---|
5871 | } |
---|
5872 | _ACEOF |
---|
5873 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5874 | ac_cv_c_stack_direction=1 |
---|
5875 | else |
---|
5876 | ac_cv_c_stack_direction=-1 |
---|
5877 | fi |
---|
5878 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5879 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5880 | fi |
---|
5881 | |
---|
5882 | fi |
---|
5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
---|
5884 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
---|
5885 | cat >>confdefs.h <<_ACEOF |
---|
5886 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5887 | _ACEOF |
---|
5888 | |
---|
5889 | |
---|
5890 | fi |
---|
5891 | |
---|
5892 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h |
---|
5893 | do : |
---|
5894 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5895 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
5896 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5897 | cat >>confdefs.h <<_ACEOF |
---|
5898 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5899 | _ACEOF |
---|
5900 | |
---|
5901 | fi |
---|
5902 | |
---|
5903 | done |
---|
5904 | |
---|
5905 | |
---|
5906 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
5908 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
5909 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
5910 | $as_echo_n "(cached) " >&6 |
---|
5911 | else |
---|
5912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5913 | /* end confdefs.h. */ |
---|
5914 | |
---|
5915 | #include <stdbool.h> |
---|
5916 | #ifndef bool |
---|
5917 | "error: bool is not defined" |
---|
5918 | #endif |
---|
5919 | #ifndef false |
---|
5920 | "error: false is not defined" |
---|
5921 | #endif |
---|
5922 | #if false |
---|
5923 | "error: false is not 0" |
---|
5924 | #endif |
---|
5925 | #ifndef true |
---|
5926 | "error: true is not defined" |
---|
5927 | #endif |
---|
5928 | #if true != 1 |
---|
5929 | "error: true is not 1" |
---|
5930 | #endif |
---|
5931 | #ifndef __bool_true_false_are_defined |
---|
5932 | "error: __bool_true_false_are_defined is not defined" |
---|
5933 | #endif |
---|
5934 | |
---|
5935 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5936 | |
---|
5937 | char a[true == 1 ? 1 : -1]; |
---|
5938 | char b[false == 0 ? 1 : -1]; |
---|
5939 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5940 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
5941 | /* See body of main program for 'e'. */ |
---|
5942 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
5943 | char g[true]; |
---|
5944 | char h[sizeof (_Bool)]; |
---|
5945 | char i[sizeof s.t]; |
---|
5946 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
5947 | /* The following fails for |
---|
5948 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
5949 | _Bool n[m]; |
---|
5950 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
5951 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
5952 | /* Catch a bug in an HP-UX C compiler. See |
---|
5953 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
5954 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
5955 | */ |
---|
5956 | _Bool q = true; |
---|
5957 | _Bool *pq = &q; |
---|
5958 | |
---|
5959 | int |
---|
5960 | main () |
---|
5961 | { |
---|
5962 | |
---|
5963 | bool e = &s; |
---|
5964 | *pq |= q; |
---|
5965 | *pq |= ! q; |
---|
5966 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
5967 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
5968 | + !m + !n + !o + !p + !q + !pq); |
---|
5969 | |
---|
5970 | ; |
---|
5971 | return 0; |
---|
5972 | } |
---|
5973 | _ACEOF |
---|
5974 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5975 | ac_cv_header_stdbool_h=yes |
---|
5976 | else |
---|
5977 | ac_cv_header_stdbool_h=no |
---|
5978 | fi |
---|
5979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5980 | fi |
---|
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
5982 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
5983 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
5984 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
5985 | |
---|
5986 | cat >>confdefs.h <<_ACEOF |
---|
5987 | #define HAVE__BOOL 1 |
---|
5988 | _ACEOF |
---|
5989 | |
---|
5990 | |
---|
5991 | fi |
---|
5992 | |
---|
5993 | if test $ac_cv_header_stdbool_h = yes; then |
---|
5994 | |
---|
5995 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
5996 | |
---|
5997 | fi |
---|
5998 | |
---|
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
6000 | $as_echo_n "checking for inline... " >&6; } |
---|
6001 | if ${ac_cv_c_inline+:} false; then : |
---|
6002 | $as_echo_n "(cached) " >&6 |
---|
6003 | else |
---|
6004 | ac_cv_c_inline=no |
---|
6005 | for ac_kw in inline __inline__ __inline; do |
---|
6006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6007 | /* end confdefs.h. */ |
---|
6008 | #ifndef __cplusplus |
---|
6009 | typedef int foo_t; |
---|
6010 | static $ac_kw foo_t static_foo () {return 0; } |
---|
6011 | $ac_kw foo_t foo () {return 0; } |
---|
6012 | #endif |
---|
6013 | |
---|
6014 | _ACEOF |
---|
6015 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6016 | ac_cv_c_inline=$ac_kw |
---|
6017 | fi |
---|
6018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6019 | test "$ac_cv_c_inline" != no && break |
---|
6020 | done |
---|
6021 | |
---|
6022 | fi |
---|
6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
6024 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
6025 | |
---|
6026 | case $ac_cv_c_inline in |
---|
6027 | inline | yes) ;; |
---|
6028 | *) |
---|
6029 | case $ac_cv_c_inline in |
---|
6030 | no) ac_val=;; |
---|
6031 | *) ac_val=$ac_cv_c_inline;; |
---|
6032 | esac |
---|
6033 | cat >>confdefs.h <<_ACEOF |
---|
6034 | #ifndef __cplusplus |
---|
6035 | #define inline $ac_val |
---|
6036 | #endif |
---|
6037 | _ACEOF |
---|
6038 | ;; |
---|
6039 | esac |
---|
6040 | |
---|
6041 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
---|
6042 | case $ac_cv_c_int16_t in #( |
---|
6043 | no|yes) ;; #( |
---|
6044 | *) |
---|
6045 | |
---|
6046 | cat >>confdefs.h <<_ACEOF |
---|
6047 | #define int16_t $ac_cv_c_int16_t |
---|
6048 | _ACEOF |
---|
6049 | ;; |
---|
6050 | esac |
---|
6051 | |
---|
6052 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
---|
6053 | case $ac_cv_c_int32_t in #( |
---|
6054 | no|yes) ;; #( |
---|
6055 | *) |
---|
6056 | |
---|
6057 | cat >>confdefs.h <<_ACEOF |
---|
6058 | #define int32_t $ac_cv_c_int32_t |
---|
6059 | _ACEOF |
---|
6060 | ;; |
---|
6061 | esac |
---|
6062 | |
---|
6063 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
---|
6064 | case $ac_cv_c_int8_t in #( |
---|
6065 | no|yes) ;; #( |
---|
6066 | *) |
---|
6067 | |
---|
6068 | cat >>confdefs.h <<_ACEOF |
---|
6069 | #define int8_t $ac_cv_c_int8_t |
---|
6070 | _ACEOF |
---|
6071 | ;; |
---|
6072 | esac |
---|
6073 | |
---|
6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
---|
6075 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
---|
6076 | if ${ac_cv_c_restrict+:} false; then : |
---|
6077 | $as_echo_n "(cached) " >&6 |
---|
6078 | else |
---|
6079 | ac_cv_c_restrict=no |
---|
6080 | # The order here caters to the fact that C++ does not require restrict. |
---|
6081 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
---|
6082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6083 | /* end confdefs.h. */ |
---|
6084 | typedef int * int_ptr; |
---|
6085 | int foo (int_ptr $ac_kw ip) { |
---|
6086 | return ip[0]; |
---|
6087 | } |
---|
6088 | int |
---|
6089 | main () |
---|
6090 | { |
---|
6091 | int s[1]; |
---|
6092 | int * $ac_kw t = s; |
---|
6093 | t[0] = 0; |
---|
6094 | return foo(t) |
---|
6095 | ; |
---|
6096 | return 0; |
---|
6097 | } |
---|
6098 | _ACEOF |
---|
6099 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6100 | ac_cv_c_restrict=$ac_kw |
---|
6101 | fi |
---|
6102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6103 | test "$ac_cv_c_restrict" != no && break |
---|
6104 | done |
---|
6105 | |
---|
6106 | fi |
---|
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
---|
6108 | $as_echo "$ac_cv_c_restrict" >&6; } |
---|
6109 | |
---|
6110 | case $ac_cv_c_restrict in |
---|
6111 | restrict) ;; |
---|
6112 | no) $as_echo "#define restrict /**/" >>confdefs.h |
---|
6113 | ;; |
---|
6114 | *) cat >>confdefs.h <<_ACEOF |
---|
6115 | #define restrict $ac_cv_c_restrict |
---|
6116 | _ACEOF |
---|
6117 | ;; |
---|
6118 | esac |
---|
6119 | |
---|
6120 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
6121 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
6122 | |
---|
6123 | else |
---|
6124 | |
---|
6125 | cat >>confdefs.h <<_ACEOF |
---|
6126 | #define size_t unsigned int |
---|
6127 | _ACEOF |
---|
6128 | |
---|
6129 | fi |
---|
6130 | |
---|
6131 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
---|
6132 | case $ac_cv_c_uint16_t in #( |
---|
6133 | no|yes) ;; #( |
---|
6134 | *) |
---|
6135 | |
---|
6136 | |
---|
6137 | cat >>confdefs.h <<_ACEOF |
---|
6138 | #define uint16_t $ac_cv_c_uint16_t |
---|
6139 | _ACEOF |
---|
6140 | ;; |
---|
6141 | esac |
---|
6142 | |
---|
6143 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
---|
6144 | case $ac_cv_c_uint32_t in #( |
---|
6145 | no|yes) ;; #( |
---|
6146 | *) |
---|
6147 | |
---|
6148 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
---|
6149 | |
---|
6150 | |
---|
6151 | cat >>confdefs.h <<_ACEOF |
---|
6152 | #define uint32_t $ac_cv_c_uint32_t |
---|
6153 | _ACEOF |
---|
6154 | ;; |
---|
6155 | esac |
---|
6156 | |
---|
6157 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
---|
6158 | case $ac_cv_c_uint8_t in #( |
---|
6159 | no|yes) ;; #( |
---|
6160 | *) |
---|
6161 | |
---|
6162 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
---|
6163 | |
---|
6164 | |
---|
6165 | cat >>confdefs.h <<_ACEOF |
---|
6166 | #define uint8_t $ac_cv_c_uint8_t |
---|
6167 | _ACEOF |
---|
6168 | ;; |
---|
6169 | esac |
---|
6170 | |
---|
6171 | |
---|
6172 | # Checks for library functions. |
---|
6173 | for ac_func in memset putenv strchr strtol |
---|
6174 | do : |
---|
6175 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6176 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
6177 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
6178 | cat >>confdefs.h <<_ACEOF |
---|
6179 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6180 | _ACEOF |
---|
6181 | |
---|
6182 | fi |
---|
6183 | done |
---|
6184 | |
---|
6185 | |
---|
6186 | ac_config_files="$ac_config_files Makefile src/driver/Makefile src/Makefile src/benchmark/Makefile src/examples/Makefile src/tests/Makefile src/prelude/Makefile src/libcfa/Makefile" |
---|
6187 | |
---|
6188 | |
---|
6189 | cat >confcache <<\_ACEOF |
---|
6190 | # This file is a shell script that caches the results of configure |
---|
6191 | # tests run on this system so they can be shared between configure |
---|
6192 | # scripts and configure runs, see configure's option --config-cache. |
---|
6193 | # It is not useful on other systems. If it contains results you don't |
---|
6194 | # want to keep, you may remove or edit it. |
---|
6195 | # |
---|
6196 | # config.status only pays attention to the cache file if you give it |
---|
6197 | # the --recheck option to rerun configure. |
---|
6198 | # |
---|
6199 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6200 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6201 | # following values. |
---|
6202 | |
---|
6203 | _ACEOF |
---|
6204 | |
---|
6205 | # The following way of writing the cache mishandles newlines in values, |
---|
6206 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6207 | # So, we kill variables containing newlines. |
---|
6208 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6209 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6210 | ( |
---|
6211 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
6212 | eval ac_val=\$$ac_var |
---|
6213 | case $ac_val in #( |
---|
6214 | *${as_nl}*) |
---|
6215 | case $ac_var in #( |
---|
6216 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
6217 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
6218 | esac |
---|
6219 | case $ac_var in #( |
---|
6220 | _ | IFS | as_nl) ;; #( |
---|
6221 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
6222 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
6223 | esac ;; |
---|
6224 | esac |
---|
6225 | done |
---|
6226 | |
---|
6227 | (set) 2>&1 | |
---|
6228 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
6229 | *${as_nl}ac_space=\ *) |
---|
6230 | # `set' does not quote correctly, so add quotes: double-quote |
---|
6231 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
6232 | sed -n \ |
---|
6233 | "s/'/'\\\\''/g; |
---|
6234 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6235 | ;; #( |
---|
6236 | *) |
---|
6237 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6238 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
6239 | ;; |
---|
6240 | esac | |
---|
6241 | sort |
---|
6242 | ) | |
---|
6243 | sed ' |
---|
6244 | /^ac_cv_env_/b end |
---|
6245 | t clear |
---|
6246 | :clear |
---|
6247 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6248 | t end |
---|
6249 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6250 | :end' >>confcache |
---|
6251 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
6252 | if test -w "$cache_file"; then |
---|
6253 | if test "x$cache_file" != "x/dev/null"; then |
---|
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
6255 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
6256 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
6257 | cat confcache >"$cache_file" |
---|
6258 | else |
---|
6259 | case $cache_file in #( |
---|
6260 | */* | ?:*) |
---|
6261 | mv -f confcache "$cache_file"$$ && |
---|
6262 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
6263 | *) |
---|
6264 | mv -f confcache "$cache_file" ;; |
---|
6265 | esac |
---|
6266 | fi |
---|
6267 | fi |
---|
6268 | else |
---|
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
6270 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
6271 | fi |
---|
6272 | fi |
---|
6273 | rm -f confcache |
---|
6274 | |
---|
6275 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6276 | # Let make expand exec_prefix. |
---|
6277 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6278 | |
---|
6279 | DEFS=-DHAVE_CONFIG_H |
---|
6280 | |
---|
6281 | ac_libobjs= |
---|
6282 | ac_ltlibobjs= |
---|
6283 | U= |
---|
6284 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6285 | # 1. Remove the extension, and $U if already installed. |
---|
6286 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
6287 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
6288 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
6289 | # will be set to the directory where LIBOBJS objects are built. |
---|
6290 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
6291 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
6292 | done |
---|
6293 | LIBOBJS=$ac_libobjs |
---|
6294 | |
---|
6295 | LTLIBOBJS=$ac_ltlibobjs |
---|
6296 | |
---|
6297 | |
---|
6298 | if test -n "$EXEEXT"; then |
---|
6299 | am__EXEEXT_TRUE= |
---|
6300 | am__EXEEXT_FALSE='#' |
---|
6301 | else |
---|
6302 | am__EXEEXT_TRUE='#' |
---|
6303 | am__EXEEXT_FALSE= |
---|
6304 | fi |
---|
6305 | |
---|
6306 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
---|
6307 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
---|
6308 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6309 | fi |
---|
6310 | if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then |
---|
6311 | as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined. |
---|
6312 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6313 | fi |
---|
6314 | if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then |
---|
6315 | as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined. |
---|
6316 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6317 | fi |
---|
6318 | if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then |
---|
6319 | as_fn_error $? "conditional \"BUILD_NO_LIB\" was never defined. |
---|
6320 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6321 | fi |
---|
6322 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6323 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
6324 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6325 | fi |
---|
6326 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6327 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
6328 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6329 | fi |
---|
6330 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6331 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
6332 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6333 | fi |
---|
6334 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
---|
6335 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
---|
6336 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6337 | fi |
---|
6338 | |
---|
6339 | : "${CONFIG_STATUS=./config.status}" |
---|
6340 | ac_write_fail=0 |
---|
6341 | ac_clean_files_save=$ac_clean_files |
---|
6342 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
6344 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6345 | as_write_fail=0 |
---|
6346 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
6347 | #! $SHELL |
---|
6348 | # Generated by $as_me. |
---|
6349 | # Run this file to recreate the current configuration. |
---|
6350 | # Compiler output produced by configure, useful for debugging |
---|
6351 | # configure, is in config.log if it exists. |
---|
6352 | |
---|
6353 | debug=false |
---|
6354 | ac_cs_recheck=false |
---|
6355 | ac_cs_silent=false |
---|
6356 | |
---|
6357 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6358 | export SHELL |
---|
6359 | _ASEOF |
---|
6360 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
6361 | ## -------------------- ## |
---|
6362 | ## M4sh Initialization. ## |
---|
6363 | ## -------------------- ## |
---|
6364 | |
---|
6365 | # Be more Bourne compatible |
---|
6366 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6367 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
6368 | emulate sh |
---|
6369 | NULLCMD=: |
---|
6370 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
6371 | # is contrary to our usage. Disable this feature. |
---|
6372 | alias -g '${1+"$@"}'='"$@"' |
---|
6373 | setopt NO_GLOB_SUBST |
---|
6374 | else |
---|
6375 | case `(set -o) 2>/dev/null` in #( |
---|
6376 | *posix*) : |
---|
6377 | set -o posix ;; #( |
---|
6378 | *) : |
---|
6379 | ;; |
---|
6380 | esac |
---|
6381 | fi |
---|
6382 | |
---|
6383 | |
---|
6384 | as_nl=' |
---|
6385 | ' |
---|
6386 | export as_nl |
---|
6387 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
6388 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
6389 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6390 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6391 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
6392 | # but without wasting forks for bash or zsh. |
---|
6393 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
6394 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6395 | as_echo='print -r --' |
---|
6396 | as_echo_n='print -rn --' |
---|
6397 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6398 | as_echo='printf %s\n' |
---|
6399 | as_echo_n='printf %s' |
---|
6400 | else |
---|
6401 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
6402 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
6403 | as_echo_n='/usr/ucb/echo -n' |
---|
6404 | else |
---|
6405 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
6406 | as_echo_n_body='eval |
---|
6407 | arg=$1; |
---|
6408 | case $arg in #( |
---|
6409 | *"$as_nl"*) |
---|
6410 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
6411 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
6412 | esac; |
---|
6413 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
6414 | ' |
---|
6415 | export as_echo_n_body |
---|
6416 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
6417 | fi |
---|
6418 | export as_echo_body |
---|
6419 | as_echo='sh -c $as_echo_body as_echo' |
---|
6420 | fi |
---|
6421 | |
---|
6422 | # The user is always right. |
---|
6423 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6424 | PATH_SEPARATOR=: |
---|
6425 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
6426 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
6427 | PATH_SEPARATOR=';' |
---|
6428 | } |
---|
6429 | fi |
---|
6430 | |
---|
6431 | |
---|
6432 | # IFS |
---|
6433 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
6434 | # there to prevent editors from complaining about space-tab. |
---|
6435 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
6436 | # splitting by setting IFS to empty value.) |
---|
6437 | IFS=" "" $as_nl" |
---|
6438 | |
---|
6439 | # Find who we are. Look in the path if we contain no directory separator. |
---|
6440 | as_myself= |
---|
6441 | case $0 in #(( |
---|
6442 | *[\\/]* ) as_myself=$0 ;; |
---|
6443 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6444 | for as_dir in $PATH |
---|
6445 | do |
---|
6446 | IFS=$as_save_IFS |
---|
6447 | test -z "$as_dir" && as_dir=. |
---|
6448 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6449 | done |
---|
6450 | IFS=$as_save_IFS |
---|
6451 | |
---|
6452 | ;; |
---|
6453 | esac |
---|
6454 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6455 | # in which case we are not to be found in the path. |
---|
6456 | if test "x$as_myself" = x; then |
---|
6457 | as_myself=$0 |
---|
6458 | fi |
---|
6459 | if test ! -f "$as_myself"; then |
---|
6460 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6461 | exit 1 |
---|
6462 | fi |
---|
6463 | |
---|
6464 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
6465 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
6466 | # suppresses any "Segmentation fault" message there. '((' could |
---|
6467 | # trigger a bug in pdksh 5.2.14. |
---|
6468 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
6469 | do eval test x\${$as_var+set} = xset \ |
---|
6470 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
6471 | done |
---|
6472 | PS1='$ ' |
---|
6473 | PS2='> ' |
---|
6474 | PS4='+ ' |
---|
6475 | |
---|
6476 | # NLS nuisances. |
---|
6477 | LC_ALL=C |
---|
6478 | export LC_ALL |
---|
6479 | LANGUAGE=C |
---|
6480 | export LANGUAGE |
---|
6481 | |
---|
6482 | # CDPATH. |
---|
6483 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
6484 | |
---|
6485 | |
---|
6486 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
6487 | # ---------------------------------------- |
---|
6488 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
6489 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
6490 | # script with STATUS, using 1 if that was 0. |
---|
6491 | as_fn_error () |
---|
6492 | { |
---|
6493 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
6494 | if test "$4"; then |
---|
6495 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
6496 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
6497 | fi |
---|
6498 | $as_echo "$as_me: error: $2" >&2 |
---|
6499 | as_fn_exit $as_status |
---|
6500 | } # as_fn_error |
---|
6501 | |
---|
6502 | |
---|
6503 | # as_fn_set_status STATUS |
---|
6504 | # ----------------------- |
---|
6505 | # Set $? to STATUS, without forking. |
---|
6506 | as_fn_set_status () |
---|
6507 | { |
---|
6508 | return $1 |
---|
6509 | } # as_fn_set_status |
---|
6510 | |
---|
6511 | # as_fn_exit STATUS |
---|
6512 | # ----------------- |
---|
6513 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6514 | as_fn_exit () |
---|
6515 | { |
---|
6516 | set +e |
---|
6517 | as_fn_set_status $1 |
---|
6518 | exit $1 |
---|
6519 | } # as_fn_exit |
---|
6520 | |
---|
6521 | # as_fn_unset VAR |
---|
6522 | # --------------- |
---|
6523 | # Portably unset VAR. |
---|
6524 | as_fn_unset () |
---|
6525 | { |
---|
6526 | { eval $1=; unset $1;} |
---|
6527 | } |
---|
6528 | as_unset=as_fn_unset |
---|
6529 | # as_fn_append VAR VALUE |
---|
6530 | # ---------------------- |
---|
6531 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6532 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6533 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6534 | # implementations. |
---|
6535 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6536 | eval 'as_fn_append () |
---|
6537 | { |
---|
6538 | eval $1+=\$2 |
---|
6539 | }' |
---|
6540 | else |
---|
6541 | as_fn_append () |
---|
6542 | { |
---|
6543 | eval $1=\$$1\$2 |
---|
6544 | } |
---|
6545 | fi # as_fn_append |
---|
6546 | |
---|
6547 | # as_fn_arith ARG... |
---|
6548 | # ------------------ |
---|
6549 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6550 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6551 | # must be portable across $(()) and expr. |
---|
6552 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6553 | eval 'as_fn_arith () |
---|
6554 | { |
---|
6555 | as_val=$(( $* )) |
---|
6556 | }' |
---|
6557 | else |
---|
6558 | as_fn_arith () |
---|
6559 | { |
---|
6560 | as_val=`expr "$@" || test $? -eq 1` |
---|
6561 | } |
---|
6562 | fi # as_fn_arith |
---|
6563 | |
---|
6564 | |
---|
6565 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6566 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6567 | as_expr=expr |
---|
6568 | else |
---|
6569 | as_expr=false |
---|
6570 | fi |
---|
6571 | |
---|
6572 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6573 | as_basename=basename |
---|
6574 | else |
---|
6575 | as_basename=false |
---|
6576 | fi |
---|
6577 | |
---|
6578 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6579 | as_dirname=dirname |
---|
6580 | else |
---|
6581 | as_dirname=false |
---|
6582 | fi |
---|
6583 | |
---|
6584 | as_me=`$as_basename -- "$0" || |
---|
6585 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6586 | X"$0" : 'X\(//\)$' \| \ |
---|
6587 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6588 | $as_echo X/"$0" | |
---|
6589 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6590 | s//\1/ |
---|
6591 | q |
---|
6592 | } |
---|
6593 | /^X\/\(\/\/\)$/{ |
---|
6594 | s//\1/ |
---|
6595 | q |
---|
6596 | } |
---|
6597 | /^X\/\(\/\).*/{ |
---|
6598 | s//\1/ |
---|
6599 | q |
---|
6600 | } |
---|
6601 | s/.*/./; q'` |
---|
6602 | |
---|
6603 | # Avoid depending upon Character Ranges. |
---|
6604 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6605 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6606 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6607 | as_cr_digits='0123456789' |
---|
6608 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6609 | |
---|
6610 | ECHO_C= ECHO_N= ECHO_T= |
---|
6611 | case `echo -n x` in #((((( |
---|
6612 | -n*) |
---|
6613 | case `echo 'xy\c'` in |
---|
6614 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6615 | xy) ECHO_C='\c';; |
---|
6616 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6617 | ECHO_T=' ';; |
---|
6618 | esac;; |
---|
6619 | *) |
---|
6620 | ECHO_N='-n';; |
---|
6621 | esac |
---|
6622 | |
---|
6623 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6624 | if test -d conf$$.dir; then |
---|
6625 | rm -f conf$$.dir/conf$$.file |
---|
6626 | else |
---|
6627 | rm -f conf$$.dir |
---|
6628 | mkdir conf$$.dir 2>/dev/null |
---|
6629 | fi |
---|
6630 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6631 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6632 | as_ln_s='ln -s' |
---|
6633 | # ... but there are two gotchas: |
---|
6634 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6635 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6636 | # In both cases, we have to default to `cp -p'. |
---|
6637 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6638 | as_ln_s='cp -p' |
---|
6639 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6640 | as_ln_s=ln |
---|
6641 | else |
---|
6642 | as_ln_s='cp -p' |
---|
6643 | fi |
---|
6644 | else |
---|
6645 | as_ln_s='cp -p' |
---|
6646 | fi |
---|
6647 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6648 | rmdir conf$$.dir 2>/dev/null |
---|
6649 | |
---|
6650 | |
---|
6651 | # as_fn_mkdir_p |
---|
6652 | # ------------- |
---|
6653 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6654 | as_fn_mkdir_p () |
---|
6655 | { |
---|
6656 | |
---|
6657 | case $as_dir in #( |
---|
6658 | -*) as_dir=./$as_dir;; |
---|
6659 | esac |
---|
6660 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6661 | as_dirs= |
---|
6662 | while :; do |
---|
6663 | case $as_dir in #( |
---|
6664 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6665 | *) as_qdir=$as_dir;; |
---|
6666 | esac |
---|
6667 | as_dirs="'$as_qdir' $as_dirs" |
---|
6668 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6669 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6670 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6671 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6672 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6673 | $as_echo X"$as_dir" | |
---|
6674 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6675 | s//\1/ |
---|
6676 | q |
---|
6677 | } |
---|
6678 | /^X\(\/\/\)[^/].*/{ |
---|
6679 | s//\1/ |
---|
6680 | q |
---|
6681 | } |
---|
6682 | /^X\(\/\/\)$/{ |
---|
6683 | s//\1/ |
---|
6684 | q |
---|
6685 | } |
---|
6686 | /^X\(\/\).*/{ |
---|
6687 | s//\1/ |
---|
6688 | q |
---|
6689 | } |
---|
6690 | s/.*/./; q'` |
---|
6691 | test -d "$as_dir" && break |
---|
6692 | done |
---|
6693 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6694 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6695 | |
---|
6696 | |
---|
6697 | } # as_fn_mkdir_p |
---|
6698 | if mkdir -p . 2>/dev/null; then |
---|
6699 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6700 | else |
---|
6701 | test -d ./-p && rmdir ./-p |
---|
6702 | as_mkdir_p=false |
---|
6703 | fi |
---|
6704 | |
---|
6705 | if test -x / >/dev/null 2>&1; then |
---|
6706 | as_test_x='test -x' |
---|
6707 | else |
---|
6708 | if ls -dL / >/dev/null 2>&1; then |
---|
6709 | as_ls_L_option=L |
---|
6710 | else |
---|
6711 | as_ls_L_option= |
---|
6712 | fi |
---|
6713 | as_test_x=' |
---|
6714 | eval sh -c '\'' |
---|
6715 | if test -d "$1"; then |
---|
6716 | test -d "$1/."; |
---|
6717 | else |
---|
6718 | case $1 in #( |
---|
6719 | -*)set "./$1";; |
---|
6720 | esac; |
---|
6721 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
6722 | ???[sx]*):;;*)false;;esac;fi |
---|
6723 | '\'' sh |
---|
6724 | ' |
---|
6725 | fi |
---|
6726 | as_executable_p=$as_test_x |
---|
6727 | |
---|
6728 | # Sed expression to map a string onto a valid CPP name. |
---|
6729 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6730 | |
---|
6731 | # Sed expression to map a string onto a valid variable name. |
---|
6732 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6733 | |
---|
6734 | |
---|
6735 | exec 6>&1 |
---|
6736 | ## ----------------------------------- ## |
---|
6737 | ## Main body of $CONFIG_STATUS script. ## |
---|
6738 | ## ----------------------------------- ## |
---|
6739 | _ASEOF |
---|
6740 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6741 | |
---|
6742 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6743 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6744 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6745 | # values after options handling. |
---|
6746 | ac_log=" |
---|
6747 | This file was extended by cfa-cc $as_me 1.0.0.0, which was |
---|
6748 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
6749 | |
---|
6750 | CONFIG_FILES = $CONFIG_FILES |
---|
6751 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6752 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6753 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6754 | $ $0 $@ |
---|
6755 | |
---|
6756 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6757 | " |
---|
6758 | |
---|
6759 | _ACEOF |
---|
6760 | |
---|
6761 | case $ac_config_files in *" |
---|
6762 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6763 | esac |
---|
6764 | |
---|
6765 | case $ac_config_headers in *" |
---|
6766 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
6767 | esac |
---|
6768 | |
---|
6769 | |
---|
6770 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6771 | # Files that config.status was made for. |
---|
6772 | config_files="$ac_config_files" |
---|
6773 | config_headers="$ac_config_headers" |
---|
6774 | config_commands="$ac_config_commands" |
---|
6775 | |
---|
6776 | _ACEOF |
---|
6777 | |
---|
6778 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6779 | ac_cs_usage="\ |
---|
6780 | \`$as_me' instantiates files and other configuration actions |
---|
6781 | from templates according to the current configuration. Unless the files |
---|
6782 | and actions are specified as TAGs, all are instantiated by default. |
---|
6783 | |
---|
6784 | Usage: $0 [OPTION]... [TAG]... |
---|
6785 | |
---|
6786 | -h, --help print this help, then exit |
---|
6787 | -V, --version print version number and configuration settings, then exit |
---|
6788 | --config print configuration, then exit |
---|
6789 | -q, --quiet, --silent |
---|
6790 | do not print progress messages |
---|
6791 | -d, --debug don't remove temporary files |
---|
6792 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6793 | --file=FILE[:TEMPLATE] |
---|
6794 | instantiate the configuration file FILE |
---|
6795 | --header=FILE[:TEMPLATE] |
---|
6796 | instantiate the configuration header FILE |
---|
6797 | |
---|
6798 | Configuration files: |
---|
6799 | $config_files |
---|
6800 | |
---|
6801 | Configuration headers: |
---|
6802 | $config_headers |
---|
6803 | |
---|
6804 | Configuration commands: |
---|
6805 | $config_commands |
---|
6806 | |
---|
6807 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
6808 | |
---|
6809 | _ACEOF |
---|
6810 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6811 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6812 | ac_cs_version="\\ |
---|
6813 | cfa-cc config.status 1.0.0.0 |
---|
6814 | configured by $0, generated by GNU Autoconf 2.68, |
---|
6815 | with options \\"\$ac_cs_config\\" |
---|
6816 | |
---|
6817 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
6818 | This config.status script is free software; the Free Software Foundation |
---|
6819 | gives unlimited permission to copy, distribute and modify it." |
---|
6820 | |
---|
6821 | ac_pwd='$ac_pwd' |
---|
6822 | srcdir='$srcdir' |
---|
6823 | INSTALL='$INSTALL' |
---|
6824 | MKDIR_P='$MKDIR_P' |
---|
6825 | AWK='$AWK' |
---|
6826 | test -n "\$AWK" || AWK=awk |
---|
6827 | _ACEOF |
---|
6828 | |
---|
6829 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6830 | # The default lists apply if the user does not specify any file. |
---|
6831 | ac_need_defaults=: |
---|
6832 | while test $# != 0 |
---|
6833 | do |
---|
6834 | case $1 in |
---|
6835 | --*=?*) |
---|
6836 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6837 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6838 | ac_shift=: |
---|
6839 | ;; |
---|
6840 | --*=) |
---|
6841 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6842 | ac_optarg= |
---|
6843 | ac_shift=: |
---|
6844 | ;; |
---|
6845 | *) |
---|
6846 | ac_option=$1 |
---|
6847 | ac_optarg=$2 |
---|
6848 | ac_shift=shift |
---|
6849 | ;; |
---|
6850 | esac |
---|
6851 | |
---|
6852 | case $ac_option in |
---|
6853 | # Handling of the options. |
---|
6854 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6855 | ac_cs_recheck=: ;; |
---|
6856 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6857 | $as_echo "$ac_cs_version"; exit ;; |
---|
6858 | --config | --confi | --conf | --con | --co | --c ) |
---|
6859 | $as_echo "$ac_cs_config"; exit ;; |
---|
6860 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6861 | debug=: ;; |
---|
6862 | --file | --fil | --fi | --f ) |
---|
6863 | $ac_shift |
---|
6864 | case $ac_optarg in |
---|
6865 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6866 | '') as_fn_error $? "missing file argument" ;; |
---|
6867 | esac |
---|
6868 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6869 | ac_need_defaults=false;; |
---|
6870 | --header | --heade | --head | --hea ) |
---|
6871 | $ac_shift |
---|
6872 | case $ac_optarg in |
---|
6873 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6874 | esac |
---|
6875 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
6876 | ac_need_defaults=false;; |
---|
6877 | --he | --h) |
---|
6878 | # Conflict between --help and --header |
---|
6879 | as_fn_error $? "ambiguous option: \`$1' |
---|
6880 | Try \`$0 --help' for more information.";; |
---|
6881 | --help | --hel | -h ) |
---|
6882 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6883 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6884 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6885 | ac_cs_silent=: ;; |
---|
6886 | |
---|
6887 | # This is an error. |
---|
6888 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6889 | Try \`$0 --help' for more information." ;; |
---|
6890 | |
---|
6891 | *) as_fn_append ac_config_targets " $1" |
---|
6892 | ac_need_defaults=false ;; |
---|
6893 | |
---|
6894 | esac |
---|
6895 | shift |
---|
6896 | done |
---|
6897 | |
---|
6898 | ac_configure_extra_args= |
---|
6899 | |
---|
6900 | if $ac_cs_silent; then |
---|
6901 | exec 6>/dev/null |
---|
6902 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6903 | fi |
---|
6904 | |
---|
6905 | _ACEOF |
---|
6906 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6907 | if \$ac_cs_recheck; then |
---|
6908 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6909 | shift |
---|
6910 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6911 | CONFIG_SHELL='$SHELL' |
---|
6912 | export CONFIG_SHELL |
---|
6913 | exec "\$@" |
---|
6914 | fi |
---|
6915 | |
---|
6916 | _ACEOF |
---|
6917 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6918 | exec 5>>config.log |
---|
6919 | { |
---|
6920 | echo |
---|
6921 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6922 | ## Running $as_me. ## |
---|
6923 | _ASBOX |
---|
6924 | $as_echo "$ac_log" |
---|
6925 | } >&5 |
---|
6926 | |
---|
6927 | _ACEOF |
---|
6928 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6929 | # |
---|
6930 | # INIT-COMMANDS |
---|
6931 | # |
---|
6932 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6933 | |
---|
6934 | _ACEOF |
---|
6935 | |
---|
6936 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6937 | |
---|
6938 | # Handling of arguments. |
---|
6939 | for ac_config_target in $ac_config_targets |
---|
6940 | do |
---|
6941 | case $ac_config_target in |
---|
6942 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6943 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
6944 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6945 | "src/driver/Makefile") CONFIG_FILES="$CONFIG_FILES src/driver/Makefile" ;; |
---|
6946 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6947 | "src/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES src/benchmark/Makefile" ;; |
---|
6948 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; |
---|
6949 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; |
---|
6950 | "src/prelude/Makefile") CONFIG_FILES="$CONFIG_FILES src/prelude/Makefile" ;; |
---|
6951 | "src/libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcfa/Makefile" ;; |
---|
6952 | |
---|
6953 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
6954 | esac |
---|
6955 | done |
---|
6956 | |
---|
6957 | |
---|
6958 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6959 | # then the envvar interface is used. Set only those that are not. |
---|
6960 | # We use the long form for the default assignment because of an extremely |
---|
6961 | # bizarre bug on SunOS 4.1.3. |
---|
6962 | if $ac_need_defaults; then |
---|
6963 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6964 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
6965 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
6966 | fi |
---|
6967 | |
---|
6968 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6969 | # simply because there is no reason against having it here, and in addition, |
---|
6970 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6971 | # Hook for its removal unless debugging. |
---|
6972 | # Note that there is a small window in which the directory will not be cleaned: |
---|
6973 | # after its creation but before its name has been assigned to `$tmp'. |
---|
6974 | $debug || |
---|
6975 | { |
---|
6976 | tmp= ac_tmp= |
---|
6977 | trap 'exit_status=$? |
---|
6978 | : "${ac_tmp:=$tmp}" |
---|
6979 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
6980 | ' 0 |
---|
6981 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
6982 | } |
---|
6983 | # Create a (secure) tmp directory for tmp files. |
---|
6984 | |
---|
6985 | { |
---|
6986 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
6987 | test -d "$tmp" |
---|
6988 | } || |
---|
6989 | { |
---|
6990 | tmp=./conf$$-$RANDOM |
---|
6991 | (umask 077 && mkdir "$tmp") |
---|
6992 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
6993 | ac_tmp=$tmp |
---|
6994 | |
---|
6995 | # Set up the scripts for CONFIG_FILES section. |
---|
6996 | # No need to generate them if there are no CONFIG_FILES. |
---|
6997 | # This happens for instance with `./config.status config.h'. |
---|
6998 | if test -n "$CONFIG_FILES"; then |
---|
6999 | |
---|
7000 | |
---|
7001 | ac_cr=`echo X | tr X '\015'` |
---|
7002 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
7003 | # But we know of no other shell where ac_cr would be empty at this |
---|
7004 | # point, so we can use a bashism as a fallback. |
---|
7005 | if test "x$ac_cr" = x; then |
---|
7006 | eval ac_cr=\$\'\\r\' |
---|
7007 | fi |
---|
7008 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
7009 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
7010 | ac_cs_awk_cr='\\r' |
---|
7011 | else |
---|
7012 | ac_cs_awk_cr=$ac_cr |
---|
7013 | fi |
---|
7014 | |
---|
7015 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
7016 | _ACEOF |
---|
7017 | |
---|
7018 | |
---|
7019 | { |
---|
7020 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
7021 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
7022 | echo "_ACEOF" |
---|
7023 | } >conf$$subs.sh || |
---|
7024 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7025 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
7026 | ac_delim='%!_!# ' |
---|
7027 | for ac_last_try in false false false false false :; do |
---|
7028 | . ./conf$$subs.sh || |
---|
7029 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7030 | |
---|
7031 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
7032 | if test $ac_delim_n = $ac_delim_num; then |
---|
7033 | break |
---|
7034 | elif $ac_last_try; then |
---|
7035 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7036 | else |
---|
7037 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7038 | fi |
---|
7039 | done |
---|
7040 | rm -f conf$$subs.sh |
---|
7041 | |
---|
7042 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7043 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
7044 | _ACEOF |
---|
7045 | sed -n ' |
---|
7046 | h |
---|
7047 | s/^/S["/; s/!.*/"]=/ |
---|
7048 | p |
---|
7049 | g |
---|
7050 | s/^[^!]*!// |
---|
7051 | :repl |
---|
7052 | t repl |
---|
7053 | s/'"$ac_delim"'$// |
---|
7054 | t delim |
---|
7055 | :nl |
---|
7056 | h |
---|
7057 | s/\(.\{148\}\)..*/\1/ |
---|
7058 | t more1 |
---|
7059 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7060 | p |
---|
7061 | n |
---|
7062 | b repl |
---|
7063 | :more1 |
---|
7064 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7065 | p |
---|
7066 | g |
---|
7067 | s/.\{148\}// |
---|
7068 | t nl |
---|
7069 | :delim |
---|
7070 | h |
---|
7071 | s/\(.\{148\}\)..*/\1/ |
---|
7072 | t more2 |
---|
7073 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7074 | p |
---|
7075 | b |
---|
7076 | :more2 |
---|
7077 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7078 | p |
---|
7079 | g |
---|
7080 | s/.\{148\}// |
---|
7081 | t delim |
---|
7082 | ' <conf$$subs.awk | sed ' |
---|
7083 | /^[^""]/{ |
---|
7084 | N |
---|
7085 | s/\n// |
---|
7086 | } |
---|
7087 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7088 | rm -f conf$$subs.awk |
---|
7089 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7090 | _ACAWK |
---|
7091 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
7092 | for (key in S) S_is_set[key] = 1 |
---|
7093 | FS = "" |
---|
7094 | |
---|
7095 | } |
---|
7096 | { |
---|
7097 | line = $ 0 |
---|
7098 | nfields = split(line, field, "@") |
---|
7099 | substed = 0 |
---|
7100 | len = length(field[1]) |
---|
7101 | for (i = 2; i < nfields; i++) { |
---|
7102 | key = field[i] |
---|
7103 | keylen = length(key) |
---|
7104 | if (S_is_set[key]) { |
---|
7105 | value = S[key] |
---|
7106 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7107 | len += length(value) + length(field[++i]) |
---|
7108 | substed = 1 |
---|
7109 | } else |
---|
7110 | len += 1 + keylen |
---|
7111 | } |
---|
7112 | |
---|
7113 | print line |
---|
7114 | } |
---|
7115 | |
---|
7116 | _ACAWK |
---|
7117 | _ACEOF |
---|
7118 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7119 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7120 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7121 | else |
---|
7122 | cat |
---|
7123 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
7124 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
7125 | _ACEOF |
---|
7126 | |
---|
7127 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
7128 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
7129 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7130 | # (actually we leave an empty line to preserve line numbers). |
---|
7131 | if test "x$srcdir" = x.; then |
---|
7132 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
7133 | h |
---|
7134 | s/// |
---|
7135 | s/^/:/ |
---|
7136 | s/[ ]*$/:/ |
---|
7137 | s/:\$(srcdir):/:/g |
---|
7138 | s/:\${srcdir}:/:/g |
---|
7139 | s/:@srcdir@:/:/g |
---|
7140 | s/^:*// |
---|
7141 | s/:*$// |
---|
7142 | x |
---|
7143 | s/\(=[ ]*\).*/\1/ |
---|
7144 | G |
---|
7145 | s/\n// |
---|
7146 | s/^[^=]*=[ ]*$// |
---|
7147 | }' |
---|
7148 | fi |
---|
7149 | |
---|
7150 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7151 | fi # test -n "$CONFIG_FILES" |
---|
7152 | |
---|
7153 | # Set up the scripts for CONFIG_HEADERS section. |
---|
7154 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
7155 | # This happens for instance with `./config.status Makefile'. |
---|
7156 | if test -n "$CONFIG_HEADERS"; then |
---|
7157 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
7158 | BEGIN { |
---|
7159 | _ACEOF |
---|
7160 | |
---|
7161 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
7162 | # here-document in config.status, that substitutes the proper values into |
---|
7163 | # config.h.in to produce config.h. |
---|
7164 | |
---|
7165 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
7166 | # handling of long lines. |
---|
7167 | ac_delim='%!_!# ' |
---|
7168 | for ac_last_try in false false :; do |
---|
7169 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
7170 | if test -z "$ac_tt"; then |
---|
7171 | break |
---|
7172 | elif $ac_last_try; then |
---|
7173 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
7174 | else |
---|
7175 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7176 | fi |
---|
7177 | done |
---|
7178 | |
---|
7179 | # For the awk script, D is an array of macro values keyed by name, |
---|
7180 | # likewise P contains macro parameters if any. Preserve backslash |
---|
7181 | # newline sequences. |
---|
7182 | |
---|
7183 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
7184 | sed -n ' |
---|
7185 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7186 | t rset |
---|
7187 | :rset |
---|
7188 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
7189 | t def |
---|
7190 | d |
---|
7191 | :def |
---|
7192 | s/\\$// |
---|
7193 | t bsnl |
---|
7194 | s/["\\]/\\&/g |
---|
7195 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7196 | D["\1"]=" \3"/p |
---|
7197 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
7198 | d |
---|
7199 | :bsnl |
---|
7200 | s/["\\]/\\&/g |
---|
7201 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7202 | D["\1"]=" \3\\\\\\n"\\/p |
---|
7203 | t cont |
---|
7204 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
7205 | t cont |
---|
7206 | d |
---|
7207 | :cont |
---|
7208 | n |
---|
7209 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7210 | t clear |
---|
7211 | :clear |
---|
7212 | s/\\$// |
---|
7213 | t bsnlc |
---|
7214 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
7215 | d |
---|
7216 | :bsnlc |
---|
7217 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
7218 | b cont |
---|
7219 | ' <confdefs.h | sed ' |
---|
7220 | s/'"$ac_delim"'/"\\\ |
---|
7221 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7222 | |
---|
7223 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7224 | for (key in D) D_is_set[key] = 1 |
---|
7225 | FS = "" |
---|
7226 | } |
---|
7227 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
7228 | line = \$ 0 |
---|
7229 | split(line, arg, " ") |
---|
7230 | if (arg[1] == "#") { |
---|
7231 | defundef = arg[2] |
---|
7232 | mac1 = arg[3] |
---|
7233 | } else { |
---|
7234 | defundef = substr(arg[1], 2) |
---|
7235 | mac1 = arg[2] |
---|
7236 | } |
---|
7237 | split(mac1, mac2, "(") #) |
---|
7238 | macro = mac2[1] |
---|
7239 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
7240 | if (D_is_set[macro]) { |
---|
7241 | # Preserve the white space surrounding the "#". |
---|
7242 | print prefix "define", macro P[macro] D[macro] |
---|
7243 | next |
---|
7244 | } else { |
---|
7245 | # Replace #undef with comments. This is necessary, for example, |
---|
7246 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
7247 | # on some systems where configure will not decide to define it. |
---|
7248 | if (defundef == "undef") { |
---|
7249 | print "/*", prefix defundef, macro, "*/" |
---|
7250 | next |
---|
7251 | } |
---|
7252 | } |
---|
7253 | } |
---|
7254 | { print } |
---|
7255 | _ACAWK |
---|
7256 | _ACEOF |
---|
7257 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7258 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
7259 | fi # test -n "$CONFIG_HEADERS" |
---|
7260 | |
---|
7261 | |
---|
7262 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
---|
7263 | shift |
---|
7264 | for ac_tag |
---|
7265 | do |
---|
7266 | case $ac_tag in |
---|
7267 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7268 | esac |
---|
7269 | case $ac_mode$ac_tag in |
---|
7270 | :[FHL]*:*);; |
---|
7271 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
7272 | :[FH]-) ac_tag=-:-;; |
---|
7273 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7274 | esac |
---|
7275 | ac_save_IFS=$IFS |
---|
7276 | IFS=: |
---|
7277 | set x $ac_tag |
---|
7278 | IFS=$ac_save_IFS |
---|
7279 | shift |
---|
7280 | ac_file=$1 |
---|
7281 | shift |
---|
7282 | |
---|
7283 | case $ac_mode in |
---|
7284 | :L) ac_source=$1;; |
---|
7285 | :[FH]) |
---|
7286 | ac_file_inputs= |
---|
7287 | for ac_f |
---|
7288 | do |
---|
7289 | case $ac_f in |
---|
7290 | -) ac_f="$ac_tmp/stdin";; |
---|
7291 | *) # Look for the file first in the build tree, then in the source tree |
---|
7292 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7293 | # because $ac_f cannot contain `:'. |
---|
7294 | test -f "$ac_f" || |
---|
7295 | case $ac_f in |
---|
7296 | [\\/$]*) false;; |
---|
7297 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
7298 | esac || |
---|
7299 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
7300 | esac |
---|
7301 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
7302 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
7303 | done |
---|
7304 | |
---|
7305 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7306 | # use $as_me), people would be surprised to read: |
---|
7307 | # /* config.h. Generated by config.status. */ |
---|
7308 | configure_input='Generated from '` |
---|
7309 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
7310 | `' by configure.' |
---|
7311 | if test x"$ac_file" != x-; then |
---|
7312 | configure_input="$ac_file. $configure_input" |
---|
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
7314 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
7315 | fi |
---|
7316 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
7317 | case $configure_input in #( |
---|
7318 | *\&* | *\|* | *\\* ) |
---|
7319 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
7320 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
7321 | *) ac_sed_conf_input=$configure_input;; |
---|
7322 | esac |
---|
7323 | |
---|
7324 | case $ac_tag in |
---|
7325 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
7326 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
7327 | esac |
---|
7328 | ;; |
---|
7329 | esac |
---|
7330 | |
---|
7331 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
7332 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7333 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7334 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7335 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7336 | $as_echo X"$ac_file" | |
---|
7337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7338 | s//\1/ |
---|
7339 | q |
---|
7340 | } |
---|
7341 | /^X\(\/\/\)[^/].*/{ |
---|
7342 | s//\1/ |
---|
7343 | q |
---|
7344 | } |
---|
7345 | /^X\(\/\/\)$/{ |
---|
7346 | s//\1/ |
---|
7347 | q |
---|
7348 | } |
---|
7349 | /^X\(\/\).*/{ |
---|
7350 | s//\1/ |
---|
7351 | q |
---|
7352 | } |
---|
7353 | s/.*/./; q'` |
---|
7354 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
7355 | ac_builddir=. |
---|
7356 | |
---|
7357 | case "$ac_dir" in |
---|
7358 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7359 | *) |
---|
7360 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
7361 | # A ".." for each directory in $ac_dir_suffix. |
---|
7362 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
7363 | case $ac_top_builddir_sub in |
---|
7364 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7365 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
7366 | esac ;; |
---|
7367 | esac |
---|
7368 | ac_abs_top_builddir=$ac_pwd |
---|
7369 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
7370 | # for backward compatibility: |
---|
7371 | ac_top_builddir=$ac_top_build_prefix |
---|
7372 | |
---|
7373 | case $srcdir in |
---|
7374 | .) # We are building in place. |
---|
7375 | ac_srcdir=. |
---|
7376 | ac_top_srcdir=$ac_top_builddir_sub |
---|
7377 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
7378 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
7379 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7380 | ac_top_srcdir=$srcdir |
---|
7381 | ac_abs_top_srcdir=$srcdir ;; |
---|
7382 | *) # Relative name. |
---|
7383 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
7384 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
7385 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
7386 | esac |
---|
7387 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
7388 | |
---|
7389 | |
---|
7390 | case $ac_mode in |
---|
7391 | :F) |
---|
7392 | # |
---|
7393 | # CONFIG_FILE |
---|
7394 | # |
---|
7395 | |
---|
7396 | case $INSTALL in |
---|
7397 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7398 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
7399 | esac |
---|
7400 | ac_MKDIR_P=$MKDIR_P |
---|
7401 | case $MKDIR_P in |
---|
7402 | [\\/$]* | ?:[\\/]* ) ;; |
---|
7403 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
7404 | esac |
---|
7405 | _ACEOF |
---|
7406 | |
---|
7407 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7408 | # If the template does not know about datarootdir, expand it. |
---|
7409 | # FIXME: This hack should be removed a few years after 2.60. |
---|
7410 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
7411 | ac_sed_dataroot=' |
---|
7412 | /datarootdir/ { |
---|
7413 | p |
---|
7414 | q |
---|
7415 | } |
---|
7416 | /@datadir@/p |
---|
7417 | /@docdir@/p |
---|
7418 | /@infodir@/p |
---|
7419 | /@localedir@/p |
---|
7420 | /@mandir@/p' |
---|
7421 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
7422 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
7423 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
7425 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
7426 | _ACEOF |
---|
7427 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7428 | ac_datarootdir_hack=' |
---|
7429 | s&@datadir@&$datadir&g |
---|
7430 | s&@docdir@&$docdir&g |
---|
7431 | s&@infodir@&$infodir&g |
---|
7432 | s&@localedir@&$localedir&g |
---|
7433 | s&@mandir@&$mandir&g |
---|
7434 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
7435 | esac |
---|
7436 | _ACEOF |
---|
7437 | |
---|
7438 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
7439 | # Shell code in configure.ac might set extrasub. |
---|
7440 | # FIXME: do we really want to maintain this feature? |
---|
7441 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7442 | ac_sed_extra="$ac_vpsub |
---|
7443 | $extrasub |
---|
7444 | _ACEOF |
---|
7445 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7446 | :t |
---|
7447 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7448 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
7449 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
7450 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7451 | s&@srcdir@&$ac_srcdir&;t t |
---|
7452 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7453 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7454 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7455 | s&@builddir@&$ac_builddir&;t t |
---|
7456 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7457 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7458 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
7459 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
7460 | $ac_datarootdir_hack |
---|
7461 | " |
---|
7462 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
7463 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7464 | |
---|
7465 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7466 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
7467 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
7468 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7470 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
7471 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7472 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
7473 | |
---|
7474 | rm -f "$ac_tmp/stdin" |
---|
7475 | case $ac_file in |
---|
7476 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
7477 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
7478 | esac \ |
---|
7479 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7480 | ;; |
---|
7481 | :H) |
---|
7482 | # |
---|
7483 | # CONFIG_HEADER |
---|
7484 | # |
---|
7485 | if test x"$ac_file" != x-; then |
---|
7486 | { |
---|
7487 | $as_echo "/* $configure_input */" \ |
---|
7488 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
7489 | } >"$ac_tmp/config.h" \ |
---|
7490 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7491 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
7493 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7494 | else |
---|
7495 | rm -f "$ac_file" |
---|
7496 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
7497 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7498 | fi |
---|
7499 | else |
---|
7500 | $as_echo "/* $configure_input */" \ |
---|
7501 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
7502 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
7503 | fi |
---|
7504 | # Compute "$ac_file"'s index in $config_headers. |
---|
7505 | _am_arg="$ac_file" |
---|
7506 | _am_stamp_count=1 |
---|
7507 | for _am_header in $config_headers :; do |
---|
7508 | case $_am_header in |
---|
7509 | $_am_arg | $_am_arg:* ) |
---|
7510 | break ;; |
---|
7511 | * ) |
---|
7512 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7513 | esac |
---|
7514 | done |
---|
7515 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
7516 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7517 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
7518 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
7519 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
7520 | $as_echo X"$_am_arg" | |
---|
7521 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7522 | s//\1/ |
---|
7523 | q |
---|
7524 | } |
---|
7525 | /^X\(\/\/\)[^/].*/{ |
---|
7526 | s//\1/ |
---|
7527 | q |
---|
7528 | } |
---|
7529 | /^X\(\/\/\)$/{ |
---|
7530 | s//\1/ |
---|
7531 | q |
---|
7532 | } |
---|
7533 | /^X\(\/\).*/{ |
---|
7534 | s//\1/ |
---|
7535 | q |
---|
7536 | } |
---|
7537 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7538 | ;; |
---|
7539 | |
---|
7540 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
7541 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
7542 | ;; |
---|
7543 | esac |
---|
7544 | |
---|
7545 | |
---|
7546 | case $ac_file$ac_mode in |
---|
7547 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
7548 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
---|
7549 | # are listed without --file. Let's play safe and only enable the eval |
---|
7550 | # if we detect the quoting. |
---|
7551 | case $CONFIG_FILES in |
---|
7552 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
7553 | *) set x $CONFIG_FILES ;; |
---|
7554 | esac |
---|
7555 | shift |
---|
7556 | for mf |
---|
7557 | do |
---|
7558 | # Strip MF so we end up with the name of the file. |
---|
7559 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7560 | # Check whether this is an Automake generated Makefile or not. |
---|
7561 | # We used to match only the files named `Makefile.in', but |
---|
7562 | # some people rename them; so instead we look at the file content. |
---|
7563 | # Grep'ing the first line is not enough: some people post-process |
---|
7564 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7565 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
7566 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
7567 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
7568 | dirpart=`$as_dirname -- "$mf" || |
---|
7569 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7570 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7571 | X"$mf" : 'X\(//\)$' \| \ |
---|
7572 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
7573 | $as_echo X"$mf" | |
---|
7574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7575 | s//\1/ |
---|
7576 | q |
---|
7577 | } |
---|
7578 | /^X\(\/\/\)[^/].*/{ |
---|
7579 | s//\1/ |
---|
7580 | q |
---|
7581 | } |
---|
7582 | /^X\(\/\/\)$/{ |
---|
7583 | s//\1/ |
---|
7584 | q |
---|
7585 | } |
---|
7586 | /^X\(\/\).*/{ |
---|
7587 | s//\1/ |
---|
7588 | q |
---|
7589 | } |
---|
7590 | s/.*/./; q'` |
---|
7591 | else |
---|
7592 | continue |
---|
7593 | fi |
---|
7594 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
7595 | # from the Makefile without running `make'. |
---|
7596 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
7597 | test -z "$DEPDIR" && continue |
---|
7598 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
7599 | test -z "am__include" && continue |
---|
7600 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
7601 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7602 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
7603 | # Find all dependency output files, they are included files with |
---|
7604 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
7605 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
7606 | # expansion. |
---|
7607 | for file in `sed -n " |
---|
7608 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
7609 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7610 | # Make sure the directory exists. |
---|
7611 | test -f "$dirpart/$file" && continue |
---|
7612 | fdir=`$as_dirname -- "$file" || |
---|
7613 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7614 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7615 | X"$file" : 'X\(//\)$' \| \ |
---|
7616 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7617 | $as_echo X"$file" | |
---|
7618 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7619 | s//\1/ |
---|
7620 | q |
---|
7621 | } |
---|
7622 | /^X\(\/\/\)[^/].*/{ |
---|
7623 | s//\1/ |
---|
7624 | q |
---|
7625 | } |
---|
7626 | /^X\(\/\/\)$/{ |
---|
7627 | s//\1/ |
---|
7628 | q |
---|
7629 | } |
---|
7630 | /^X\(\/\).*/{ |
---|
7631 | s//\1/ |
---|
7632 | q |
---|
7633 | } |
---|
7634 | s/.*/./; q'` |
---|
7635 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
7636 | # echo "creating $dirpart/$file" |
---|
7637 | echo '# dummy' > "$dirpart/$file" |
---|
7638 | done |
---|
7639 | done |
---|
7640 | } |
---|
7641 | ;; |
---|
7642 | |
---|
7643 | esac |
---|
7644 | done # for ac_tag |
---|
7645 | |
---|
7646 | |
---|
7647 | as_fn_exit 0 |
---|
7648 | _ACEOF |
---|
7649 | ac_clean_files=$ac_clean_files_save |
---|
7650 | |
---|
7651 | test $ac_write_fail = 0 || |
---|
7652 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
7653 | |
---|
7654 | |
---|
7655 | # configure is writing to config.log, and then calls config.status. |
---|
7656 | # config.status does its own redirection, appending to config.log. |
---|
7657 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7658 | # by configure, so config.status won't be able to write to it; its |
---|
7659 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7660 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7661 | # appended to by config.status. When coming back to configure, we |
---|
7662 | # need to make the FD available again. |
---|
7663 | if test "$no_create" != yes; then |
---|
7664 | ac_cs_success=: |
---|
7665 | ac_config_status_args= |
---|
7666 | test "$silent" = yes && |
---|
7667 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7668 | exec 5>/dev/null |
---|
7669 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7670 | exec 5>>config.log |
---|
7671 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7672 | # would make configure fail if this is the last instruction. |
---|
7673 | $ac_cs_success || as_fn_exit 1 |
---|
7674 | fi |
---|
7675 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7677 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7678 | fi |
---|
7679 | |
---|
7680 | |
---|
7681 | if test -z "$BUILD_RELEASE_TRUE"; then : |
---|
7682 | if test -z "$BUILD_DEBUG_TRUE"; then : |
---|
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release & debug" >&5 |
---|
7684 | $as_echo "$as_me: Building libcfa for target: release & debug" >&6;} |
---|
7685 | else |
---|
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release" >&5 |
---|
7687 | $as_echo "$as_me: Building libcfa for target: release" >&6;} |
---|
7688 | fi |
---|
7689 | else |
---|
7690 | if test -z "$BUILD_DEBUG_TRUE"; then : |
---|
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: debug" >&5 |
---|
7692 | $as_echo "$as_me: Building libcfa for target: debug" >&6;} |
---|
7693 | else |
---|
7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running cfa without libcfa" >&5 |
---|
7695 | $as_echo "$as_me: Running cfa without libcfa" >&6;} |
---|
7696 | fi |
---|
7697 | fi |
---|
7698 | |
---|
7699 | # Final text |
---|
7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5 |
---|
7701 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; } |
---|