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_CONCURRENCY_FALSE |
---|
661 | BUILD_CONCURRENCY_TRUE |
---|
662 | BUILD_NO_LIB_FALSE |
---|
663 | BUILD_NO_LIB_TRUE |
---|
664 | BUILD_DEBUG_FALSE |
---|
665 | BUILD_DEBUG_TRUE |
---|
666 | BUILD_RELEASE_FALSE |
---|
667 | BUILD_RELEASE_TRUE |
---|
668 | CFA_BACKEND_CC |
---|
669 | BACKEND_CC |
---|
670 | CFA_NAME |
---|
671 | MAINT |
---|
672 | MAINTAINER_MODE_FALSE |
---|
673 | MAINTAINER_MODE_TRUE |
---|
674 | am__untar |
---|
675 | am__tar |
---|
676 | AMTAR |
---|
677 | am__leading_dot |
---|
678 | SET_MAKE |
---|
679 | AWK |
---|
680 | mkdir_p |
---|
681 | MKDIR_P |
---|
682 | INSTALL_STRIP_PROGRAM |
---|
683 | STRIP |
---|
684 | install_sh |
---|
685 | MAKEINFO |
---|
686 | AUTOHEADER |
---|
687 | AUTOMAKE |
---|
688 | AUTOCONF |
---|
689 | ACLOCAL |
---|
690 | VERSION |
---|
691 | PACKAGE |
---|
692 | CYGPATH_W |
---|
693 | am__isrc |
---|
694 | INSTALL_DATA |
---|
695 | INSTALL_SCRIPT |
---|
696 | INSTALL_PROGRAM |
---|
697 | AM_BACKSLASH |
---|
698 | AM_DEFAULT_VERBOSITY |
---|
699 | AM_DEFAULT_V |
---|
700 | AM_V |
---|
701 | target_alias |
---|
702 | host_alias |
---|
703 | build_alias |
---|
704 | LIBS |
---|
705 | ECHO_T |
---|
706 | ECHO_N |
---|
707 | ECHO_C |
---|
708 | DEFS |
---|
709 | mandir |
---|
710 | localedir |
---|
711 | libdir |
---|
712 | psdir |
---|
713 | pdfdir |
---|
714 | dvidir |
---|
715 | htmldir |
---|
716 | infodir |
---|
717 | docdir |
---|
718 | oldincludedir |
---|
719 | includedir |
---|
720 | localstatedir |
---|
721 | sharedstatedir |
---|
722 | sysconfdir |
---|
723 | datadir |
---|
724 | datarootdir |
---|
725 | libexecdir |
---|
726 | sbindir |
---|
727 | bindir |
---|
728 | program_transform_name |
---|
729 | prefix |
---|
730 | exec_prefix |
---|
731 | PACKAGE_URL |
---|
732 | PACKAGE_BUGREPORT |
---|
733 | PACKAGE_STRING |
---|
734 | PACKAGE_VERSION |
---|
735 | PACKAGE_TARNAME |
---|
736 | PACKAGE_NAME |
---|
737 | PATH_SEPARATOR |
---|
738 | SHELL' |
---|
739 | ac_subst_files='' |
---|
740 | ac_user_opts=' |
---|
741 | enable_option_checking |
---|
742 | enable_silent_rules |
---|
743 | enable_maintainer_mode |
---|
744 | with_backend_compiler |
---|
745 | enable_target_release |
---|
746 | enable_target_debug |
---|
747 | enable_threading |
---|
748 | enable_dependency_tracking |
---|
749 | ' |
---|
750 | ac_precious_vars='build_alias |
---|
751 | host_alias |
---|
752 | target_alias |
---|
753 | CXX |
---|
754 | CXXFLAGS |
---|
755 | LDFLAGS |
---|
756 | LIBS |
---|
757 | CPPFLAGS |
---|
758 | CCC |
---|
759 | CC |
---|
760 | CFLAGS |
---|
761 | CCAS |
---|
762 | CCASFLAGS |
---|
763 | YACC |
---|
764 | YFLAGS |
---|
765 | CPP' |
---|
766 | |
---|
767 | |
---|
768 | # Initialize some variables set by options. |
---|
769 | ac_init_help= |
---|
770 | ac_init_version=false |
---|
771 | ac_unrecognized_opts= |
---|
772 | ac_unrecognized_sep= |
---|
773 | # The variables have the same names as the options, with |
---|
774 | # dashes changed to underlines. |
---|
775 | cache_file=/dev/null |
---|
776 | exec_prefix=NONE |
---|
777 | no_create= |
---|
778 | no_recursion= |
---|
779 | prefix=NONE |
---|
780 | program_prefix=NONE |
---|
781 | program_suffix=NONE |
---|
782 | program_transform_name=s,x,x, |
---|
783 | silent= |
---|
784 | site= |
---|
785 | srcdir= |
---|
786 | verbose= |
---|
787 | x_includes=NONE |
---|
788 | x_libraries=NONE |
---|
789 | |
---|
790 | # Installation directory options. |
---|
791 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
792 | # and all the variables that are supposed to be based on exec_prefix |
---|
793 | # by default will actually change. |
---|
794 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
795 | # (The list follows the same order as the GNU Coding Standards.) |
---|
796 | bindir='${exec_prefix}/bin' |
---|
797 | sbindir='${exec_prefix}/sbin' |
---|
798 | libexecdir='${exec_prefix}/libexec' |
---|
799 | datarootdir='${prefix}/share' |
---|
800 | datadir='${datarootdir}' |
---|
801 | sysconfdir='${prefix}/etc' |
---|
802 | sharedstatedir='${prefix}/com' |
---|
803 | localstatedir='${prefix}/var' |
---|
804 | includedir='${prefix}/include' |
---|
805 | oldincludedir='/usr/include' |
---|
806 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
807 | infodir='${datarootdir}/info' |
---|
808 | htmldir='${docdir}' |
---|
809 | dvidir='${docdir}' |
---|
810 | pdfdir='${docdir}' |
---|
811 | psdir='${docdir}' |
---|
812 | libdir='${exec_prefix}/lib' |
---|
813 | localedir='${datarootdir}/locale' |
---|
814 | mandir='${datarootdir}/man' |
---|
815 | |
---|
816 | ac_prev= |
---|
817 | ac_dashdash= |
---|
818 | for ac_option |
---|
819 | do |
---|
820 | # If the previous option needs an argument, assign it. |
---|
821 | if test -n "$ac_prev"; then |
---|
822 | eval $ac_prev=\$ac_option |
---|
823 | ac_prev= |
---|
824 | continue |
---|
825 | fi |
---|
826 | |
---|
827 | case $ac_option in |
---|
828 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
829 | *=) ac_optarg= ;; |
---|
830 | *) ac_optarg=yes ;; |
---|
831 | esac |
---|
832 | |
---|
833 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
834 | |
---|
835 | case $ac_dashdash$ac_option in |
---|
836 | --) |
---|
837 | ac_dashdash=yes ;; |
---|
838 | |
---|
839 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
840 | ac_prev=bindir ;; |
---|
841 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
842 | bindir=$ac_optarg ;; |
---|
843 | |
---|
844 | -build | --build | --buil | --bui | --bu) |
---|
845 | ac_prev=build_alias ;; |
---|
846 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
847 | build_alias=$ac_optarg ;; |
---|
848 | |
---|
849 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
850 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
851 | ac_prev=cache_file ;; |
---|
852 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
853 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
854 | cache_file=$ac_optarg ;; |
---|
855 | |
---|
856 | --config-cache | -C) |
---|
857 | cache_file=config.cache ;; |
---|
858 | |
---|
859 | -datadir | --datadir | --datadi | --datad) |
---|
860 | ac_prev=datadir ;; |
---|
861 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
862 | datadir=$ac_optarg ;; |
---|
863 | |
---|
864 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
865 | | --dataroo | --dataro | --datar) |
---|
866 | ac_prev=datarootdir ;; |
---|
867 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
868 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
869 | datarootdir=$ac_optarg ;; |
---|
870 | |
---|
871 | -disable-* | --disable-*) |
---|
872 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
873 | # Reject names that are not valid shell variable names. |
---|
874 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
875 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
876 | ac_useropt_orig=$ac_useropt |
---|
877 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
878 | case $ac_user_opts in |
---|
879 | *" |
---|
880 | "enable_$ac_useropt" |
---|
881 | "*) ;; |
---|
882 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
883 | ac_unrecognized_sep=', ';; |
---|
884 | esac |
---|
885 | eval enable_$ac_useropt=no ;; |
---|
886 | |
---|
887 | -docdir | --docdir | --docdi | --doc | --do) |
---|
888 | ac_prev=docdir ;; |
---|
889 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
890 | docdir=$ac_optarg ;; |
---|
891 | |
---|
892 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
893 | ac_prev=dvidir ;; |
---|
894 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
895 | dvidir=$ac_optarg ;; |
---|
896 | |
---|
897 | -enable-* | --enable-*) |
---|
898 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
899 | # Reject names that are not valid shell variable names. |
---|
900 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
901 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
902 | ac_useropt_orig=$ac_useropt |
---|
903 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
904 | case $ac_user_opts in |
---|
905 | *" |
---|
906 | "enable_$ac_useropt" |
---|
907 | "*) ;; |
---|
908 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
909 | ac_unrecognized_sep=', ';; |
---|
910 | esac |
---|
911 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
912 | |
---|
913 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
914 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
915 | | --exec | --exe | --ex) |
---|
916 | ac_prev=exec_prefix ;; |
---|
917 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
918 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
919 | | --exec=* | --exe=* | --ex=*) |
---|
920 | exec_prefix=$ac_optarg ;; |
---|
921 | |
---|
922 | -gas | --gas | --ga | --g) |
---|
923 | # Obsolete; use --with-gas. |
---|
924 | with_gas=yes ;; |
---|
925 | |
---|
926 | -help | --help | --hel | --he | -h) |
---|
927 | ac_init_help=long ;; |
---|
928 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
929 | ac_init_help=recursive ;; |
---|
930 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
931 | ac_init_help=short ;; |
---|
932 | |
---|
933 | -host | --host | --hos | --ho) |
---|
934 | ac_prev=host_alias ;; |
---|
935 | -host=* | --host=* | --hos=* | --ho=*) |
---|
936 | host_alias=$ac_optarg ;; |
---|
937 | |
---|
938 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
939 | ac_prev=htmldir ;; |
---|
940 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
941 | | --ht=*) |
---|
942 | htmldir=$ac_optarg ;; |
---|
943 | |
---|
944 | -includedir | --includedir | --includedi | --included | --include \ |
---|
945 | | --includ | --inclu | --incl | --inc) |
---|
946 | ac_prev=includedir ;; |
---|
947 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
948 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
949 | includedir=$ac_optarg ;; |
---|
950 | |
---|
951 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
952 | ac_prev=infodir ;; |
---|
953 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
954 | infodir=$ac_optarg ;; |
---|
955 | |
---|
956 | -libdir | --libdir | --libdi | --libd) |
---|
957 | ac_prev=libdir ;; |
---|
958 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
959 | libdir=$ac_optarg ;; |
---|
960 | |
---|
961 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
962 | | --libexe | --libex | --libe) |
---|
963 | ac_prev=libexecdir ;; |
---|
964 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
965 | | --libexe=* | --libex=* | --libe=*) |
---|
966 | libexecdir=$ac_optarg ;; |
---|
967 | |
---|
968 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
969 | ac_prev=localedir ;; |
---|
970 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
971 | localedir=$ac_optarg ;; |
---|
972 | |
---|
973 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
974 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
975 | ac_prev=localstatedir ;; |
---|
976 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
977 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
978 | localstatedir=$ac_optarg ;; |
---|
979 | |
---|
980 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
981 | ac_prev=mandir ;; |
---|
982 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
983 | mandir=$ac_optarg ;; |
---|
984 | |
---|
985 | -nfp | --nfp | --nf) |
---|
986 | # Obsolete; use --without-fp. |
---|
987 | with_fp=no ;; |
---|
988 | |
---|
989 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
990 | | --no-cr | --no-c | -n) |
---|
991 | no_create=yes ;; |
---|
992 | |
---|
993 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
994 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
995 | no_recursion=yes ;; |
---|
996 | |
---|
997 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
998 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
999 | | --oldin | --oldi | --old | --ol | --o) |
---|
1000 | ac_prev=oldincludedir ;; |
---|
1001 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1002 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1003 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1004 | oldincludedir=$ac_optarg ;; |
---|
1005 | |
---|
1006 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1007 | ac_prev=prefix ;; |
---|
1008 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1009 | prefix=$ac_optarg ;; |
---|
1010 | |
---|
1011 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1012 | | --program-pre | --program-pr | --program-p) |
---|
1013 | ac_prev=program_prefix ;; |
---|
1014 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1015 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1016 | program_prefix=$ac_optarg ;; |
---|
1017 | |
---|
1018 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1019 | | --program-suf | --program-su | --program-s) |
---|
1020 | ac_prev=program_suffix ;; |
---|
1021 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1022 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1023 | program_suffix=$ac_optarg ;; |
---|
1024 | |
---|
1025 | -program-transform-name | --program-transform-name \ |
---|
1026 | | --program-transform-nam | --program-transform-na \ |
---|
1027 | | --program-transform-n | --program-transform- \ |
---|
1028 | | --program-transform | --program-transfor \ |
---|
1029 | | --program-transfo | --program-transf \ |
---|
1030 | | --program-trans | --program-tran \ |
---|
1031 | | --progr-tra | --program-tr | --program-t) |
---|
1032 | ac_prev=program_transform_name ;; |
---|
1033 | -program-transform-name=* | --program-transform-name=* \ |
---|
1034 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1035 | | --program-transform-n=* | --program-transform-=* \ |
---|
1036 | | --program-transform=* | --program-transfor=* \ |
---|
1037 | | --program-transfo=* | --program-transf=* \ |
---|
1038 | | --program-trans=* | --program-tran=* \ |
---|
1039 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1040 | program_transform_name=$ac_optarg ;; |
---|
1041 | |
---|
1042 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1043 | ac_prev=pdfdir ;; |
---|
1044 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1045 | pdfdir=$ac_optarg ;; |
---|
1046 | |
---|
1047 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1048 | ac_prev=psdir ;; |
---|
1049 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1050 | psdir=$ac_optarg ;; |
---|
1051 | |
---|
1052 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1053 | | -silent | --silent | --silen | --sile | --sil) |
---|
1054 | silent=yes ;; |
---|
1055 | |
---|
1056 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1057 | ac_prev=sbindir ;; |
---|
1058 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1059 | | --sbi=* | --sb=*) |
---|
1060 | sbindir=$ac_optarg ;; |
---|
1061 | |
---|
1062 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1063 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1064 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1065 | | --sha | --sh) |
---|
1066 | ac_prev=sharedstatedir ;; |
---|
1067 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1068 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1069 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1070 | | --sha=* | --sh=*) |
---|
1071 | sharedstatedir=$ac_optarg ;; |
---|
1072 | |
---|
1073 | -site | --site | --sit) |
---|
1074 | ac_prev=site ;; |
---|
1075 | -site=* | --site=* | --sit=*) |
---|
1076 | site=$ac_optarg ;; |
---|
1077 | |
---|
1078 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1079 | ac_prev=srcdir ;; |
---|
1080 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1081 | srcdir=$ac_optarg ;; |
---|
1082 | |
---|
1083 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1084 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1085 | ac_prev=sysconfdir ;; |
---|
1086 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1087 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1088 | sysconfdir=$ac_optarg ;; |
---|
1089 | |
---|
1090 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1091 | ac_prev=target_alias ;; |
---|
1092 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1093 | target_alias=$ac_optarg ;; |
---|
1094 | |
---|
1095 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1096 | verbose=yes ;; |
---|
1097 | |
---|
1098 | -version | --version | --versio | --versi | --vers | -V) |
---|
1099 | ac_init_version=: ;; |
---|
1100 | |
---|
1101 | -with-* | --with-*) |
---|
1102 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1103 | # Reject names that are not valid shell variable names. |
---|
1104 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1105 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1106 | ac_useropt_orig=$ac_useropt |
---|
1107 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1108 | case $ac_user_opts in |
---|
1109 | *" |
---|
1110 | "with_$ac_useropt" |
---|
1111 | "*) ;; |
---|
1112 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1113 | ac_unrecognized_sep=', ';; |
---|
1114 | esac |
---|
1115 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1116 | |
---|
1117 | -without-* | --without-*) |
---|
1118 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1119 | # Reject names that are not valid shell variable names. |
---|
1120 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1121 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1122 | ac_useropt_orig=$ac_useropt |
---|
1123 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1124 | case $ac_user_opts in |
---|
1125 | *" |
---|
1126 | "with_$ac_useropt" |
---|
1127 | "*) ;; |
---|
1128 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1129 | ac_unrecognized_sep=', ';; |
---|
1130 | esac |
---|
1131 | eval with_$ac_useropt=no ;; |
---|
1132 | |
---|
1133 | --x) |
---|
1134 | # Obsolete; use --with-x. |
---|
1135 | with_x=yes ;; |
---|
1136 | |
---|
1137 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1138 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1139 | ac_prev=x_includes ;; |
---|
1140 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1141 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1142 | x_includes=$ac_optarg ;; |
---|
1143 | |
---|
1144 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1145 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1146 | ac_prev=x_libraries ;; |
---|
1147 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1148 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1149 | x_libraries=$ac_optarg ;; |
---|
1150 | |
---|
1151 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1152 | Try \`$0 --help' for more information" |
---|
1153 | ;; |
---|
1154 | |
---|
1155 | *=*) |
---|
1156 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1157 | # Reject names that are not valid shell variable names. |
---|
1158 | case $ac_envvar in #( |
---|
1159 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1160 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1161 | esac |
---|
1162 | eval $ac_envvar=\$ac_optarg |
---|
1163 | export $ac_envvar ;; |
---|
1164 | |
---|
1165 | *) |
---|
1166 | # FIXME: should be removed in autoconf 3.0. |
---|
1167 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1168 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1169 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1170 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1171 | ;; |
---|
1172 | |
---|
1173 | esac |
---|
1174 | done |
---|
1175 | |
---|
1176 | if test -n "$ac_prev"; then |
---|
1177 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1178 | as_fn_error $? "missing argument to $ac_option" |
---|
1179 | fi |
---|
1180 | |
---|
1181 | if test -n "$ac_unrecognized_opts"; then |
---|
1182 | case $enable_option_checking in |
---|
1183 | no) ;; |
---|
1184 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1185 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1186 | esac |
---|
1187 | fi |
---|
1188 | |
---|
1189 | # Check all directory arguments for consistency. |
---|
1190 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1191 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1192 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1193 | libdir localedir mandir |
---|
1194 | do |
---|
1195 | eval ac_val=\$$ac_var |
---|
1196 | # Remove trailing slashes. |
---|
1197 | case $ac_val in |
---|
1198 | */ ) |
---|
1199 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1200 | eval $ac_var=\$ac_val;; |
---|
1201 | esac |
---|
1202 | # Be sure to have absolute directory names. |
---|
1203 | case $ac_val in |
---|
1204 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1205 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1206 | esac |
---|
1207 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1208 | done |
---|
1209 | |
---|
1210 | # There might be people who depend on the old broken behavior: `$host' |
---|
1211 | # used to hold the argument of --host etc. |
---|
1212 | # FIXME: To remove some day. |
---|
1213 | build=$build_alias |
---|
1214 | host=$host_alias |
---|
1215 | target=$target_alias |
---|
1216 | |
---|
1217 | # FIXME: To remove some day. |
---|
1218 | if test "x$host_alias" != x; then |
---|
1219 | if test "x$build_alias" = x; then |
---|
1220 | cross_compiling=maybe |
---|
1221 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1222 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1223 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1224 | cross_compiling=yes |
---|
1225 | fi |
---|
1226 | fi |
---|
1227 | |
---|
1228 | ac_tool_prefix= |
---|
1229 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1230 | |
---|
1231 | test "$silent" = yes && exec 6>/dev/null |
---|
1232 | |
---|
1233 | |
---|
1234 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1235 | ac_ls_di=`ls -di .` && |
---|
1236 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1237 | as_fn_error $? "working directory cannot be determined" |
---|
1238 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1239 | as_fn_error $? "pwd does not report name of working directory" |
---|
1240 | |
---|
1241 | |
---|
1242 | # Find the source files, if location was not specified. |
---|
1243 | if test -z "$srcdir"; then |
---|
1244 | ac_srcdir_defaulted=yes |
---|
1245 | # Try the directory containing this script, then the parent directory. |
---|
1246 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1247 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1248 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1249 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1250 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1251 | $as_echo X"$as_myself" | |
---|
1252 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1253 | s//\1/ |
---|
1254 | q |
---|
1255 | } |
---|
1256 | /^X\(\/\/\)[^/].*/{ |
---|
1257 | s//\1/ |
---|
1258 | q |
---|
1259 | } |
---|
1260 | /^X\(\/\/\)$/{ |
---|
1261 | s//\1/ |
---|
1262 | q |
---|
1263 | } |
---|
1264 | /^X\(\/\).*/{ |
---|
1265 | s//\1/ |
---|
1266 | q |
---|
1267 | } |
---|
1268 | s/.*/./; q'` |
---|
1269 | srcdir=$ac_confdir |
---|
1270 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1271 | srcdir=.. |
---|
1272 | fi |
---|
1273 | else |
---|
1274 | ac_srcdir_defaulted=no |
---|
1275 | fi |
---|
1276 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1277 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1278 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1279 | fi |
---|
1280 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1281 | ac_abs_confdir=`( |
---|
1282 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1283 | pwd)` |
---|
1284 | # When building in place, set srcdir=. |
---|
1285 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1286 | srcdir=. |
---|
1287 | fi |
---|
1288 | # Remove unnecessary trailing slashes from srcdir. |
---|
1289 | # Double slashes in file names in object file debugging info |
---|
1290 | # mess up M-x gdb in Emacs. |
---|
1291 | case $srcdir in |
---|
1292 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1293 | esac |
---|
1294 | for ac_var in $ac_precious_vars; do |
---|
1295 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1296 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1297 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1298 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1299 | done |
---|
1300 | |
---|
1301 | # |
---|
1302 | # Report the --help message. |
---|
1303 | # |
---|
1304 | if test "$ac_init_help" = "long"; then |
---|
1305 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1306 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1307 | cat <<_ACEOF |
---|
1308 | \`configure' configures cfa-cc 1.0.0.0 to adapt to many kinds of systems. |
---|
1309 | |
---|
1310 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1311 | |
---|
1312 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1313 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1314 | |
---|
1315 | Defaults for the options are specified in brackets. |
---|
1316 | |
---|
1317 | Configuration: |
---|
1318 | -h, --help display this help and exit |
---|
1319 | --help=short display options specific to this package |
---|
1320 | --help=recursive display the short help of all the included packages |
---|
1321 | -V, --version display version information and exit |
---|
1322 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1323 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1324 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1325 | -n, --no-create do not create output files |
---|
1326 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1327 | |
---|
1328 | Installation directories: |
---|
1329 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1330 | [$ac_default_prefix] |
---|
1331 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1332 | [PREFIX] |
---|
1333 | |
---|
1334 | By default, \`make install' will install all the files in |
---|
1335 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1336 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1337 | for instance \`--prefix=\$HOME'. |
---|
1338 | |
---|
1339 | For better control, use the options below. |
---|
1340 | |
---|
1341 | Fine tuning of the installation directories: |
---|
1342 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1343 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1344 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1345 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1346 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1347 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1348 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1349 | --includedir=DIR C header files [PREFIX/include] |
---|
1350 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1351 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1352 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1353 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1354 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1355 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1356 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1357 | --htmldir=DIR html documentation [DOCDIR] |
---|
1358 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1359 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1360 | --psdir=DIR ps documentation [DOCDIR] |
---|
1361 | _ACEOF |
---|
1362 | |
---|
1363 | cat <<\_ACEOF |
---|
1364 | |
---|
1365 | Program names: |
---|
1366 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1367 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1368 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1369 | |
---|
1370 | System types: |
---|
1371 | --build=BUILD configure for building on BUILD [guessed] |
---|
1372 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1373 | _ACEOF |
---|
1374 | fi |
---|
1375 | |
---|
1376 | if test -n "$ac_init_help"; then |
---|
1377 | case $ac_init_help in |
---|
1378 | short | recursive ) echo "Configuration of cfa-cc 1.0.0.0:";; |
---|
1379 | esac |
---|
1380 | cat <<\_ACEOF |
---|
1381 | |
---|
1382 | Optional Features: |
---|
1383 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1384 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1385 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1386 | --enable-silent-rules less verbose build output (undo: `make V=1') |
---|
1387 | --disable-silent-rules verbose build output (undo: `make V=0') |
---|
1388 | --disable-maintainer-mode disable make rules and dependencies not useful |
---|
1389 | (and sometimes confusing) to the casual installer |
---|
1390 | --enable-target-release Build and install the release target |
---|
1391 | --enable-target-debug Build and install the debug target |
---|
1392 | --enable-threading Build and install libcfa with threading support |
---|
1393 | (Enabled by default) |
---|
1394 | --disable-dependency-tracking speeds up one-time build |
---|
1395 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1396 | |
---|
1397 | Optional Packages: |
---|
1398 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1399 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1400 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) |
---|
1401 | |
---|
1402 | Some influential environment variables: |
---|
1403 | CXX C++ compiler command |
---|
1404 | CXXFLAGS C++ compiler flags |
---|
1405 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1406 | nonstandard directory <lib dir> |
---|
1407 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1408 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1409 | you have headers in a nonstandard directory <include dir> |
---|
1410 | CC C compiler command |
---|
1411 | CFLAGS C compiler flags |
---|
1412 | CCAS assembler compiler command (defaults to CC) |
---|
1413 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
---|
1414 | YACC The `Yet Another Compiler Compiler' implementation to use. |
---|
1415 | Defaults to the first program found out of: `bison -y', `byacc', |
---|
1416 | `yacc'. |
---|
1417 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1418 | This script will default YFLAGS to the empty string to avoid a |
---|
1419 | default value of `-d' given by some make applications. |
---|
1420 | CPP C preprocessor |
---|
1421 | |
---|
1422 | Use these variables to override the choices made by `configure' or to help |
---|
1423 | it to find libraries and programs with nonstandard names/locations. |
---|
1424 | |
---|
1425 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1426 | _ACEOF |
---|
1427 | ac_status=$? |
---|
1428 | fi |
---|
1429 | |
---|
1430 | if test "$ac_init_help" = "recursive"; then |
---|
1431 | # If there are subdirs, report their specific --help. |
---|
1432 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1433 | test -d "$ac_dir" || |
---|
1434 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1435 | continue |
---|
1436 | ac_builddir=. |
---|
1437 | |
---|
1438 | case "$ac_dir" in |
---|
1439 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1440 | *) |
---|
1441 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1442 | # A ".." for each directory in $ac_dir_suffix. |
---|
1443 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1444 | case $ac_top_builddir_sub in |
---|
1445 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1446 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1447 | esac ;; |
---|
1448 | esac |
---|
1449 | ac_abs_top_builddir=$ac_pwd |
---|
1450 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1451 | # for backward compatibility: |
---|
1452 | ac_top_builddir=$ac_top_build_prefix |
---|
1453 | |
---|
1454 | case $srcdir in |
---|
1455 | .) # We are building in place. |
---|
1456 | ac_srcdir=. |
---|
1457 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1458 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1459 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1460 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1461 | ac_top_srcdir=$srcdir |
---|
1462 | ac_abs_top_srcdir=$srcdir ;; |
---|
1463 | *) # Relative name. |
---|
1464 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1465 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1466 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1467 | esac |
---|
1468 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1469 | |
---|
1470 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1471 | # Check for guested configure. |
---|
1472 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1473 | echo && |
---|
1474 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1475 | elif test -f "$ac_srcdir/configure"; then |
---|
1476 | echo && |
---|
1477 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1478 | else |
---|
1479 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1480 | fi || ac_status=$? |
---|
1481 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1482 | done |
---|
1483 | fi |
---|
1484 | |
---|
1485 | test -n "$ac_init_help" && exit $ac_status |
---|
1486 | if $ac_init_version; then |
---|
1487 | cat <<\_ACEOF |
---|
1488 | cfa-cc configure 1.0.0.0 |
---|
1489 | generated by GNU Autoconf 2.68 |
---|
1490 | |
---|
1491 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1492 | This configure script is free software; the Free Software Foundation |
---|
1493 | gives unlimited permission to copy, distribute and modify it. |
---|
1494 | _ACEOF |
---|
1495 | exit |
---|
1496 | fi |
---|
1497 | |
---|
1498 | ## ------------------------ ## |
---|
1499 | ## Autoconf initialization. ## |
---|
1500 | ## ------------------------ ## |
---|
1501 | |
---|
1502 | # ac_fn_cxx_try_compile LINENO |
---|
1503 | # ---------------------------- |
---|
1504 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1505 | ac_fn_cxx_try_compile () |
---|
1506 | { |
---|
1507 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1508 | rm -f conftest.$ac_objext |
---|
1509 | if { { ac_try="$ac_compile" |
---|
1510 | case "(($ac_try" in |
---|
1511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1512 | *) ac_try_echo=$ac_try;; |
---|
1513 | esac |
---|
1514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1515 | $as_echo "$ac_try_echo"; } >&5 |
---|
1516 | (eval "$ac_compile") 2>conftest.err |
---|
1517 | ac_status=$? |
---|
1518 | if test -s conftest.err; then |
---|
1519 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1520 | cat conftest.er1 >&5 |
---|
1521 | mv -f conftest.er1 conftest.err |
---|
1522 | fi |
---|
1523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1524 | test $ac_status = 0; } && { |
---|
1525 | test -z "$ac_cxx_werror_flag" || |
---|
1526 | test ! -s conftest.err |
---|
1527 | } && test -s conftest.$ac_objext; then : |
---|
1528 | ac_retval=0 |
---|
1529 | else |
---|
1530 | $as_echo "$as_me: failed program was:" >&5 |
---|
1531 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1532 | |
---|
1533 | ac_retval=1 |
---|
1534 | fi |
---|
1535 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1536 | as_fn_set_status $ac_retval |
---|
1537 | |
---|
1538 | } # ac_fn_cxx_try_compile |
---|
1539 | |
---|
1540 | # ac_fn_c_try_compile LINENO |
---|
1541 | # -------------------------- |
---|
1542 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1543 | ac_fn_c_try_compile () |
---|
1544 | { |
---|
1545 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1546 | rm -f conftest.$ac_objext |
---|
1547 | if { { ac_try="$ac_compile" |
---|
1548 | case "(($ac_try" in |
---|
1549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1550 | *) ac_try_echo=$ac_try;; |
---|
1551 | esac |
---|
1552 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1553 | $as_echo "$ac_try_echo"; } >&5 |
---|
1554 | (eval "$ac_compile") 2>conftest.err |
---|
1555 | ac_status=$? |
---|
1556 | if test -s conftest.err; then |
---|
1557 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1558 | cat conftest.er1 >&5 |
---|
1559 | mv -f conftest.er1 conftest.err |
---|
1560 | fi |
---|
1561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1562 | test $ac_status = 0; } && { |
---|
1563 | test -z "$ac_c_werror_flag" || |
---|
1564 | test ! -s conftest.err |
---|
1565 | } && test -s conftest.$ac_objext; then : |
---|
1566 | ac_retval=0 |
---|
1567 | else |
---|
1568 | $as_echo "$as_me: failed program was:" >&5 |
---|
1569 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1570 | |
---|
1571 | ac_retval=1 |
---|
1572 | fi |
---|
1573 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1574 | as_fn_set_status $ac_retval |
---|
1575 | |
---|
1576 | } # ac_fn_c_try_compile |
---|
1577 | |
---|
1578 | # ac_fn_c_try_link LINENO |
---|
1579 | # ----------------------- |
---|
1580 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1581 | ac_fn_c_try_link () |
---|
1582 | { |
---|
1583 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1584 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1585 | if { { ac_try="$ac_link" |
---|
1586 | case "(($ac_try" in |
---|
1587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1588 | *) ac_try_echo=$ac_try;; |
---|
1589 | esac |
---|
1590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1591 | $as_echo "$ac_try_echo"; } >&5 |
---|
1592 | (eval "$ac_link") 2>conftest.err |
---|
1593 | ac_status=$? |
---|
1594 | if test -s conftest.err; then |
---|
1595 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1596 | cat conftest.er1 >&5 |
---|
1597 | mv -f conftest.er1 conftest.err |
---|
1598 | fi |
---|
1599 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1600 | test $ac_status = 0; } && { |
---|
1601 | test -z "$ac_c_werror_flag" || |
---|
1602 | test ! -s conftest.err |
---|
1603 | } && test -s conftest$ac_exeext && { |
---|
1604 | test "$cross_compiling" = yes || |
---|
1605 | $as_test_x conftest$ac_exeext |
---|
1606 | }; then : |
---|
1607 | ac_retval=0 |
---|
1608 | else |
---|
1609 | $as_echo "$as_me: failed program was:" >&5 |
---|
1610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1611 | |
---|
1612 | ac_retval=1 |
---|
1613 | fi |
---|
1614 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1615 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1616 | # interfere with the next link command; also delete a directory that is |
---|
1617 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1618 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1619 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1620 | as_fn_set_status $ac_retval |
---|
1621 | |
---|
1622 | } # ac_fn_c_try_link |
---|
1623 | |
---|
1624 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1625 | # ------------------------------------------- |
---|
1626 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1627 | # variable VAR accordingly. |
---|
1628 | ac_fn_c_check_type () |
---|
1629 | { |
---|
1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1632 | $as_echo_n "checking for $2... " >&6; } |
---|
1633 | if eval \${$3+:} false; then : |
---|
1634 | $as_echo_n "(cached) " >&6 |
---|
1635 | else |
---|
1636 | eval "$3=no" |
---|
1637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1638 | /* end confdefs.h. */ |
---|
1639 | $4 |
---|
1640 | int |
---|
1641 | main () |
---|
1642 | { |
---|
1643 | if (sizeof ($2)) |
---|
1644 | return 0; |
---|
1645 | ; |
---|
1646 | return 0; |
---|
1647 | } |
---|
1648 | _ACEOF |
---|
1649 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1651 | /* end confdefs.h. */ |
---|
1652 | $4 |
---|
1653 | int |
---|
1654 | main () |
---|
1655 | { |
---|
1656 | if (sizeof (($2))) |
---|
1657 | return 0; |
---|
1658 | ; |
---|
1659 | return 0; |
---|
1660 | } |
---|
1661 | _ACEOF |
---|
1662 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1663 | |
---|
1664 | else |
---|
1665 | eval "$3=yes" |
---|
1666 | fi |
---|
1667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1668 | fi |
---|
1669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1670 | fi |
---|
1671 | eval ac_res=\$$3 |
---|
1672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1673 | $as_echo "$ac_res" >&6; } |
---|
1674 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1675 | |
---|
1676 | } # ac_fn_c_check_type |
---|
1677 | |
---|
1678 | # ac_fn_c_try_cpp LINENO |
---|
1679 | # ---------------------- |
---|
1680 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1681 | ac_fn_c_try_cpp () |
---|
1682 | { |
---|
1683 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1684 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1685 | case "(($ac_try" in |
---|
1686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1687 | *) ac_try_echo=$ac_try;; |
---|
1688 | esac |
---|
1689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1690 | $as_echo "$ac_try_echo"; } >&5 |
---|
1691 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1692 | ac_status=$? |
---|
1693 | if test -s conftest.err; then |
---|
1694 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1695 | cat conftest.er1 >&5 |
---|
1696 | mv -f conftest.er1 conftest.err |
---|
1697 | fi |
---|
1698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1699 | test $ac_status = 0; } > conftest.i && { |
---|
1700 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1701 | test ! -s conftest.err |
---|
1702 | }; then : |
---|
1703 | ac_retval=0 |
---|
1704 | else |
---|
1705 | $as_echo "$as_me: failed program was:" >&5 |
---|
1706 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1707 | |
---|
1708 | ac_retval=1 |
---|
1709 | fi |
---|
1710 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1711 | as_fn_set_status $ac_retval |
---|
1712 | |
---|
1713 | } # ac_fn_c_try_cpp |
---|
1714 | |
---|
1715 | # ac_fn_c_try_run LINENO |
---|
1716 | # ---------------------- |
---|
1717 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1718 | # that executables *can* be run. |
---|
1719 | ac_fn_c_try_run () |
---|
1720 | { |
---|
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1722 | if { { ac_try="$ac_link" |
---|
1723 | case "(($ac_try" in |
---|
1724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1725 | *) ac_try_echo=$ac_try;; |
---|
1726 | esac |
---|
1727 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1728 | $as_echo "$ac_try_echo"; } >&5 |
---|
1729 | (eval "$ac_link") 2>&5 |
---|
1730 | ac_status=$? |
---|
1731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1732 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1733 | { { case "(($ac_try" in |
---|
1734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1735 | *) ac_try_echo=$ac_try;; |
---|
1736 | esac |
---|
1737 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1738 | $as_echo "$ac_try_echo"; } >&5 |
---|
1739 | (eval "$ac_try") 2>&5 |
---|
1740 | ac_status=$? |
---|
1741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1742 | test $ac_status = 0; }; }; then : |
---|
1743 | ac_retval=0 |
---|
1744 | else |
---|
1745 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1746 | $as_echo "$as_me: failed program was:" >&5 |
---|
1747 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1748 | |
---|
1749 | ac_retval=$ac_status |
---|
1750 | fi |
---|
1751 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1752 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1753 | as_fn_set_status $ac_retval |
---|
1754 | |
---|
1755 | } # ac_fn_c_try_run |
---|
1756 | |
---|
1757 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1758 | # ------------------------------------------------------- |
---|
1759 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1760 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1761 | ac_fn_c_check_header_compile () |
---|
1762 | { |
---|
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1765 | $as_echo_n "checking for $2... " >&6; } |
---|
1766 | if eval \${$3+:} false; then : |
---|
1767 | $as_echo_n "(cached) " >&6 |
---|
1768 | else |
---|
1769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1770 | /* end confdefs.h. */ |
---|
1771 | $4 |
---|
1772 | #include <$2> |
---|
1773 | _ACEOF |
---|
1774 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1775 | eval "$3=yes" |
---|
1776 | else |
---|
1777 | eval "$3=no" |
---|
1778 | fi |
---|
1779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1780 | fi |
---|
1781 | eval ac_res=\$$3 |
---|
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1783 | $as_echo "$ac_res" >&6; } |
---|
1784 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1785 | |
---|
1786 | } # ac_fn_c_check_header_compile |
---|
1787 | |
---|
1788 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1789 | # ---------------------------------- |
---|
1790 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1791 | ac_fn_c_check_func () |
---|
1792 | { |
---|
1793 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1795 | $as_echo_n "checking for $2... " >&6; } |
---|
1796 | if eval \${$3+:} false; then : |
---|
1797 | $as_echo_n "(cached) " >&6 |
---|
1798 | else |
---|
1799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1800 | /* end confdefs.h. */ |
---|
1801 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1802 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1803 | #define $2 innocuous_$2 |
---|
1804 | |
---|
1805 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1806 | which can conflict with char $2 (); below. |
---|
1807 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1808 | <limits.h> exists even on freestanding compilers. */ |
---|
1809 | |
---|
1810 | #ifdef __STDC__ |
---|
1811 | # include <limits.h> |
---|
1812 | #else |
---|
1813 | # include <assert.h> |
---|
1814 | #endif |
---|
1815 | |
---|
1816 | #undef $2 |
---|
1817 | |
---|
1818 | /* Override any GCC internal prototype to avoid an error. |
---|
1819 | Use char because int might match the return type of a GCC |
---|
1820 | builtin and then its argument prototype would still apply. */ |
---|
1821 | #ifdef __cplusplus |
---|
1822 | extern "C" |
---|
1823 | #endif |
---|
1824 | char $2 (); |
---|
1825 | /* The GNU C library defines this for functions which it implements |
---|
1826 | to always fail with ENOSYS. Some functions are actually named |
---|
1827 | something starting with __ and the normal name is an alias. */ |
---|
1828 | #if defined __stub_$2 || defined __stub___$2 |
---|
1829 | choke me |
---|
1830 | #endif |
---|
1831 | |
---|
1832 | int |
---|
1833 | main () |
---|
1834 | { |
---|
1835 | return $2 (); |
---|
1836 | ; |
---|
1837 | return 0; |
---|
1838 | } |
---|
1839 | _ACEOF |
---|
1840 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1841 | eval "$3=yes" |
---|
1842 | else |
---|
1843 | eval "$3=no" |
---|
1844 | fi |
---|
1845 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1846 | conftest$ac_exeext conftest.$ac_ext |
---|
1847 | fi |
---|
1848 | eval ac_res=\$$3 |
---|
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1850 | $as_echo "$ac_res" >&6; } |
---|
1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1852 | |
---|
1853 | } # ac_fn_c_check_func |
---|
1854 | |
---|
1855 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1856 | # ------------------------------------------------------- |
---|
1857 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1858 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1859 | # accordingly. |
---|
1860 | ac_fn_c_check_header_mongrel () |
---|
1861 | { |
---|
1862 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1863 | if eval \${$3+:} false; then : |
---|
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1865 | $as_echo_n "checking for $2... " >&6; } |
---|
1866 | if eval \${$3+:} false; then : |
---|
1867 | $as_echo_n "(cached) " >&6 |
---|
1868 | fi |
---|
1869 | eval ac_res=\$$3 |
---|
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1871 | $as_echo "$ac_res" >&6; } |
---|
1872 | else |
---|
1873 | # Is the header compilable? |
---|
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1875 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1877 | /* end confdefs.h. */ |
---|
1878 | $4 |
---|
1879 | #include <$2> |
---|
1880 | _ACEOF |
---|
1881 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1882 | ac_header_compiler=yes |
---|
1883 | else |
---|
1884 | ac_header_compiler=no |
---|
1885 | fi |
---|
1886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1888 | $as_echo "$ac_header_compiler" >&6; } |
---|
1889 | |
---|
1890 | # Is the header present? |
---|
1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1892 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1894 | /* end confdefs.h. */ |
---|
1895 | #include <$2> |
---|
1896 | _ACEOF |
---|
1897 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1898 | ac_header_preproc=yes |
---|
1899 | else |
---|
1900 | ac_header_preproc=no |
---|
1901 | fi |
---|
1902 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1904 | $as_echo "$ac_header_preproc" >&6; } |
---|
1905 | |
---|
1906 | # So? What about this header? |
---|
1907 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1908 | yes:no: ) |
---|
1909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1910 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1912 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1913 | ;; |
---|
1914 | no:yes:* ) |
---|
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1916 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1918 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1920 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1922 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1924 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1925 | ( $as_echo "## --------------------------------------- ## |
---|
1926 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1927 | ## --------------------------------------- ##" |
---|
1928 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1929 | ;; |
---|
1930 | esac |
---|
1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1932 | $as_echo_n "checking for $2... " >&6; } |
---|
1933 | if eval \${$3+:} false; then : |
---|
1934 | $as_echo_n "(cached) " >&6 |
---|
1935 | else |
---|
1936 | eval "$3=\$ac_header_compiler" |
---|
1937 | fi |
---|
1938 | eval ac_res=\$$3 |
---|
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1940 | $as_echo "$ac_res" >&6; } |
---|
1941 | fi |
---|
1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1943 | |
---|
1944 | } # ac_fn_c_check_header_mongrel |
---|
1945 | |
---|
1946 | # ac_fn_c_find_intX_t LINENO BITS VAR |
---|
1947 | # ----------------------------------- |
---|
1948 | # Finds a signed integer type with width BITS, setting cache variable VAR |
---|
1949 | # accordingly. |
---|
1950 | ac_fn_c_find_intX_t () |
---|
1951 | { |
---|
1952 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
---|
1954 | $as_echo_n "checking for int$2_t... " >&6; } |
---|
1955 | if eval \${$3+:} false; then : |
---|
1956 | $as_echo_n "(cached) " >&6 |
---|
1957 | else |
---|
1958 | eval "$3=no" |
---|
1959 | # Order is important - never check a type that is potentially smaller |
---|
1960 | # than half of the expected target width. |
---|
1961 | for ac_type in int$2_t 'int' 'long int' \ |
---|
1962 | 'long long int' 'short int' 'signed char'; do |
---|
1963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1964 | /* end confdefs.h. */ |
---|
1965 | $ac_includes_default |
---|
1966 | enum { N = $2 / 2 - 1 }; |
---|
1967 | int |
---|
1968 | main () |
---|
1969 | { |
---|
1970 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
---|
1971 | test_array [0] = 0 |
---|
1972 | |
---|
1973 | ; |
---|
1974 | return 0; |
---|
1975 | } |
---|
1976 | _ACEOF |
---|
1977 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1979 | /* end confdefs.h. */ |
---|
1980 | $ac_includes_default |
---|
1981 | enum { N = $2 / 2 - 1 }; |
---|
1982 | int |
---|
1983 | main () |
---|
1984 | { |
---|
1985 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
---|
1986 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
---|
1987 | test_array [0] = 0 |
---|
1988 | |
---|
1989 | ; |
---|
1990 | return 0; |
---|
1991 | } |
---|
1992 | _ACEOF |
---|
1993 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1994 | |
---|
1995 | else |
---|
1996 | case $ac_type in #( |
---|
1997 | int$2_t) : |
---|
1998 | eval "$3=yes" ;; #( |
---|
1999 | *) : |
---|
2000 | eval "$3=\$ac_type" ;; |
---|
2001 | esac |
---|
2002 | fi |
---|
2003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2004 | fi |
---|
2005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2006 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2007 | |
---|
2008 | else |
---|
2009 | break |
---|
2010 | fi |
---|
2011 | done |
---|
2012 | fi |
---|
2013 | eval ac_res=\$$3 |
---|
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2015 | $as_echo "$ac_res" >&6; } |
---|
2016 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2017 | |
---|
2018 | } # ac_fn_c_find_intX_t |
---|
2019 | |
---|
2020 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
---|
2021 | # ------------------------------------ |
---|
2022 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
---|
2023 | # accordingly. |
---|
2024 | ac_fn_c_find_uintX_t () |
---|
2025 | { |
---|
2026 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
---|
2028 | $as_echo_n "checking for uint$2_t... " >&6; } |
---|
2029 | if eval \${$3+:} false; then : |
---|
2030 | $as_echo_n "(cached) " >&6 |
---|
2031 | else |
---|
2032 | eval "$3=no" |
---|
2033 | # Order is important - never check a type that is potentially smaller |
---|
2034 | # than half of the expected target width. |
---|
2035 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
---|
2036 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
---|
2037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2038 | /* end confdefs.h. */ |
---|
2039 | $ac_includes_default |
---|
2040 | int |
---|
2041 | main () |
---|
2042 | { |
---|
2043 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
---|
2044 | test_array [0] = 0 |
---|
2045 | |
---|
2046 | ; |
---|
2047 | return 0; |
---|
2048 | } |
---|
2049 | _ACEOF |
---|
2050 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2051 | case $ac_type in #( |
---|
2052 | uint$2_t) : |
---|
2053 | eval "$3=yes" ;; #( |
---|
2054 | *) : |
---|
2055 | eval "$3=\$ac_type" ;; |
---|
2056 | esac |
---|
2057 | fi |
---|
2058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2059 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2060 | |
---|
2061 | else |
---|
2062 | break |
---|
2063 | fi |
---|
2064 | done |
---|
2065 | fi |
---|
2066 | eval ac_res=\$$3 |
---|
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2068 | $as_echo "$ac_res" >&6; } |
---|
2069 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2070 | |
---|
2071 | } # ac_fn_c_find_uintX_t |
---|
2072 | cat >config.log <<_ACEOF |
---|
2073 | This file contains any messages produced by compilers while |
---|
2074 | running configure, to aid debugging if configure makes a mistake. |
---|
2075 | |
---|
2076 | It was created by cfa-cc $as_me 1.0.0.0, which was |
---|
2077 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
2078 | |
---|
2079 | $ $0 $@ |
---|
2080 | |
---|
2081 | _ACEOF |
---|
2082 | exec 5>>config.log |
---|
2083 | { |
---|
2084 | cat <<_ASUNAME |
---|
2085 | ## --------- ## |
---|
2086 | ## Platform. ## |
---|
2087 | ## --------- ## |
---|
2088 | |
---|
2089 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2090 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2091 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2092 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2093 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2094 | |
---|
2095 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2096 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2097 | |
---|
2098 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2099 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2100 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2101 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2102 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2103 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2104 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2105 | |
---|
2106 | _ASUNAME |
---|
2107 | |
---|
2108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2109 | for as_dir in $PATH |
---|
2110 | do |
---|
2111 | IFS=$as_save_IFS |
---|
2112 | test -z "$as_dir" && as_dir=. |
---|
2113 | $as_echo "PATH: $as_dir" |
---|
2114 | done |
---|
2115 | IFS=$as_save_IFS |
---|
2116 | |
---|
2117 | } >&5 |
---|
2118 | |
---|
2119 | cat >&5 <<_ACEOF |
---|
2120 | |
---|
2121 | |
---|
2122 | ## ----------- ## |
---|
2123 | ## Core tests. ## |
---|
2124 | ## ----------- ## |
---|
2125 | |
---|
2126 | _ACEOF |
---|
2127 | |
---|
2128 | |
---|
2129 | # Keep a trace of the command line. |
---|
2130 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2131 | # Strip out --silent because we don't want to record it for future runs. |
---|
2132 | # Also quote any args containing shell meta-characters. |
---|
2133 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2134 | ac_configure_args= |
---|
2135 | ac_configure_args0= |
---|
2136 | ac_configure_args1= |
---|
2137 | ac_must_keep_next=false |
---|
2138 | for ac_pass in 1 2 |
---|
2139 | do |
---|
2140 | for ac_arg |
---|
2141 | do |
---|
2142 | case $ac_arg in |
---|
2143 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2144 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2145 | | -silent | --silent | --silen | --sile | --sil) |
---|
2146 | continue ;; |
---|
2147 | *\'*) |
---|
2148 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2149 | esac |
---|
2150 | case $ac_pass in |
---|
2151 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2152 | 2) |
---|
2153 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2154 | if test $ac_must_keep_next = true; then |
---|
2155 | ac_must_keep_next=false # Got value, back to normal. |
---|
2156 | else |
---|
2157 | case $ac_arg in |
---|
2158 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2159 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2160 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2161 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2162 | case "$ac_configure_args0 " in |
---|
2163 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2164 | esac |
---|
2165 | ;; |
---|
2166 | -* ) ac_must_keep_next=true ;; |
---|
2167 | esac |
---|
2168 | fi |
---|
2169 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2170 | ;; |
---|
2171 | esac |
---|
2172 | done |
---|
2173 | done |
---|
2174 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2175 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2176 | |
---|
2177 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2178 | # config.log. We remove comments because anyway the quotes in there |
---|
2179 | # would cause problems or look ugly. |
---|
2180 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2181 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2182 | trap 'exit_status=$? |
---|
2183 | # Save into config.log some information that might help in debugging. |
---|
2184 | { |
---|
2185 | echo |
---|
2186 | |
---|
2187 | $as_echo "## ---------------- ## |
---|
2188 | ## Cache variables. ## |
---|
2189 | ## ---------------- ##" |
---|
2190 | echo |
---|
2191 | # The following way of writing the cache mishandles newlines in values, |
---|
2192 | ( |
---|
2193 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2194 | eval ac_val=\$$ac_var |
---|
2195 | case $ac_val in #( |
---|
2196 | *${as_nl}*) |
---|
2197 | case $ac_var in #( |
---|
2198 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2199 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2200 | esac |
---|
2201 | case $ac_var in #( |
---|
2202 | _ | IFS | as_nl) ;; #( |
---|
2203 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2204 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2205 | esac ;; |
---|
2206 | esac |
---|
2207 | done |
---|
2208 | (set) 2>&1 | |
---|
2209 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2210 | *${as_nl}ac_space=\ *) |
---|
2211 | sed -n \ |
---|
2212 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2213 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2214 | ;; #( |
---|
2215 | *) |
---|
2216 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2217 | ;; |
---|
2218 | esac | |
---|
2219 | sort |
---|
2220 | ) |
---|
2221 | echo |
---|
2222 | |
---|
2223 | $as_echo "## ----------------- ## |
---|
2224 | ## Output variables. ## |
---|
2225 | ## ----------------- ##" |
---|
2226 | echo |
---|
2227 | for ac_var in $ac_subst_vars |
---|
2228 | do |
---|
2229 | eval ac_val=\$$ac_var |
---|
2230 | case $ac_val in |
---|
2231 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2232 | esac |
---|
2233 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2234 | done | sort |
---|
2235 | echo |
---|
2236 | |
---|
2237 | if test -n "$ac_subst_files"; then |
---|
2238 | $as_echo "## ------------------- ## |
---|
2239 | ## File substitutions. ## |
---|
2240 | ## ------------------- ##" |
---|
2241 | echo |
---|
2242 | for ac_var in $ac_subst_files |
---|
2243 | do |
---|
2244 | eval ac_val=\$$ac_var |
---|
2245 | case $ac_val in |
---|
2246 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2247 | esac |
---|
2248 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2249 | done | sort |
---|
2250 | echo |
---|
2251 | fi |
---|
2252 | |
---|
2253 | if test -s confdefs.h; then |
---|
2254 | $as_echo "## ----------- ## |
---|
2255 | ## confdefs.h. ## |
---|
2256 | ## ----------- ##" |
---|
2257 | echo |
---|
2258 | cat confdefs.h |
---|
2259 | echo |
---|
2260 | fi |
---|
2261 | test "$ac_signal" != 0 && |
---|
2262 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2263 | $as_echo "$as_me: exit $exit_status" |
---|
2264 | } >&5 |
---|
2265 | rm -f core *.core core.conftest.* && |
---|
2266 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2267 | exit $exit_status |
---|
2268 | ' 0 |
---|
2269 | for ac_signal in 1 2 13 15; do |
---|
2270 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2271 | done |
---|
2272 | ac_signal=0 |
---|
2273 | |
---|
2274 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2275 | rm -f -r conftest* confdefs.h |
---|
2276 | |
---|
2277 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2278 | |
---|
2279 | # Predefined preprocessor variables. |
---|
2280 | |
---|
2281 | cat >>confdefs.h <<_ACEOF |
---|
2282 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2283 | _ACEOF |
---|
2284 | |
---|
2285 | cat >>confdefs.h <<_ACEOF |
---|
2286 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2287 | _ACEOF |
---|
2288 | |
---|
2289 | cat >>confdefs.h <<_ACEOF |
---|
2290 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2291 | _ACEOF |
---|
2292 | |
---|
2293 | cat >>confdefs.h <<_ACEOF |
---|
2294 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2295 | _ACEOF |
---|
2296 | |
---|
2297 | cat >>confdefs.h <<_ACEOF |
---|
2298 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2299 | _ACEOF |
---|
2300 | |
---|
2301 | cat >>confdefs.h <<_ACEOF |
---|
2302 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2303 | _ACEOF |
---|
2304 | |
---|
2305 | |
---|
2306 | # Let the site file select an alternate cache file if it wants to. |
---|
2307 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2308 | ac_site_file1=NONE |
---|
2309 | ac_site_file2=NONE |
---|
2310 | if test -n "$CONFIG_SITE"; then |
---|
2311 | # We do not want a PATH search for config.site. |
---|
2312 | case $CONFIG_SITE in #(( |
---|
2313 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2314 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2315 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2316 | esac |
---|
2317 | elif test "x$prefix" != xNONE; then |
---|
2318 | ac_site_file1=$prefix/share/config.site |
---|
2319 | ac_site_file2=$prefix/etc/config.site |
---|
2320 | else |
---|
2321 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2322 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2323 | fi |
---|
2324 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2325 | do |
---|
2326 | test "x$ac_site_file" = xNONE && continue |
---|
2327 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2329 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2330 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2331 | . "$ac_site_file" \ |
---|
2332 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2333 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2334 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2335 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2336 | fi |
---|
2337 | done |
---|
2338 | |
---|
2339 | if test -r "$cache_file"; then |
---|
2340 | # Some versions of bash will fail to source /dev/null (special files |
---|
2341 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2342 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2344 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2345 | case $cache_file in |
---|
2346 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2347 | *) . "./$cache_file";; |
---|
2348 | esac |
---|
2349 | fi |
---|
2350 | else |
---|
2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2352 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2353 | >$cache_file |
---|
2354 | fi |
---|
2355 | |
---|
2356 | # Check that the precious variables saved in the cache have kept the same |
---|
2357 | # value. |
---|
2358 | ac_cache_corrupted=false |
---|
2359 | for ac_var in $ac_precious_vars; do |
---|
2360 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2361 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2362 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2363 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2364 | case $ac_old_set,$ac_new_set in |
---|
2365 | set,) |
---|
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2367 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2368 | ac_cache_corrupted=: ;; |
---|
2369 | ,set) |
---|
2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2371 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2372 | ac_cache_corrupted=: ;; |
---|
2373 | ,);; |
---|
2374 | *) |
---|
2375 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2376 | # differences in whitespace do not lead to failure. |
---|
2377 | ac_old_val_w=`echo x $ac_old_val` |
---|
2378 | ac_new_val_w=`echo x $ac_new_val` |
---|
2379 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2381 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2382 | ac_cache_corrupted=: |
---|
2383 | else |
---|
2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2385 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2386 | eval $ac_var=\$ac_old_val |
---|
2387 | fi |
---|
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2389 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2391 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2392 | fi;; |
---|
2393 | esac |
---|
2394 | # Pass precious variables to config.status. |
---|
2395 | if test "$ac_new_set" = set; then |
---|
2396 | case $ac_new_val in |
---|
2397 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2398 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2399 | esac |
---|
2400 | case " $ac_configure_args " in |
---|
2401 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2402 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2403 | esac |
---|
2404 | fi |
---|
2405 | done |
---|
2406 | if $ac_cache_corrupted; then |
---|
2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2408 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2410 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2411 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2412 | fi |
---|
2413 | ## -------------------- ## |
---|
2414 | ## Main body of script. ## |
---|
2415 | ## -------------------- ## |
---|
2416 | |
---|
2417 | ac_ext=c |
---|
2418 | ac_cpp='$CPP $CPPFLAGS' |
---|
2419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2422 | |
---|
2423 | |
---|
2424 | ac_aux_dir= |
---|
2425 | for ac_dir in automake "$srcdir"/automake; do |
---|
2426 | if test -f "$ac_dir/install-sh"; then |
---|
2427 | ac_aux_dir=$ac_dir |
---|
2428 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2429 | break |
---|
2430 | elif test -f "$ac_dir/install.sh"; then |
---|
2431 | ac_aux_dir=$ac_dir |
---|
2432 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2433 | break |
---|
2434 | elif test -f "$ac_dir/shtool"; then |
---|
2435 | ac_aux_dir=$ac_dir |
---|
2436 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2437 | break |
---|
2438 | fi |
---|
2439 | done |
---|
2440 | if test -z "$ac_aux_dir"; then |
---|
2441 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5 |
---|
2442 | fi |
---|
2443 | |
---|
2444 | # These three variables are undocumented and unsupported, |
---|
2445 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2446 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2447 | # whose full name contains unusual characters. |
---|
2448 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2449 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2450 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2451 | |
---|
2452 | |
---|
2453 | #AC_CONFIG_SRCDIR([src/main.cc]) |
---|
2454 | ac_config_headers="$ac_config_headers config.h" |
---|
2455 | |
---|
2456 | # Check whether --enable-silent-rules was given. |
---|
2457 | if test "${enable_silent_rules+set}" = set; then : |
---|
2458 | enableval=$enable_silent_rules; |
---|
2459 | fi |
---|
2460 | |
---|
2461 | case $enable_silent_rules in |
---|
2462 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
2463 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
2464 | *) AM_DEFAULT_VERBOSITY=1;; |
---|
2465 | esac |
---|
2466 | am_make=${MAKE-make} |
---|
2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
2468 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
2469 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
2470 | $as_echo_n "(cached) " >&6 |
---|
2471 | else |
---|
2472 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
2473 | BAR0=false |
---|
2474 | BAR1=true |
---|
2475 | V=1 |
---|
2476 | am__doit: |
---|
2477 | @$(TRUE) |
---|
2478 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
2479 | am_cv_make_support_nested_variables=yes |
---|
2480 | else |
---|
2481 | am_cv_make_support_nested_variables=no |
---|
2482 | fi |
---|
2483 | fi |
---|
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
2485 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
2486 | if test $am_cv_make_support_nested_variables = yes; then |
---|
2487 | AM_V='$(V)' |
---|
2488 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
2489 | else |
---|
2490 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
2491 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
2492 | fi |
---|
2493 | AM_BACKSLASH='\' |
---|
2494 | |
---|
2495 | |
---|
2496 | if test "x${CXXFLAGS}" = "x"; then |
---|
2497 | export CXXFLAGS="-std=c++11 -g ${CXXFLAGS}" # defaults, no -O2 for debugging and failures |
---|
2498 | else |
---|
2499 | export CXXFLAGS="-std=c++11 ${CXXFLAGS}" # flags from configure command |
---|
2500 | fi |
---|
2501 | |
---|
2502 | am__api_version='1.11' |
---|
2503 | |
---|
2504 | # Find a good install program. We prefer a C program (faster), |
---|
2505 | # so one script is as good as another. But avoid the broken or |
---|
2506 | # incompatible versions: |
---|
2507 | # SysV /etc/install, /usr/sbin/install |
---|
2508 | # SunOS /usr/etc/install |
---|
2509 | # IRIX /sbin/install |
---|
2510 | # AIX /bin/install |
---|
2511 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2512 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2513 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2514 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2515 | # OS/2's system install, which has a completely different semantic |
---|
2516 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2517 | # Reject install programs that cannot install multiple files. |
---|
2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2519 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2520 | if test -z "$INSTALL"; then |
---|
2521 | if ${ac_cv_path_install+:} false; then : |
---|
2522 | $as_echo_n "(cached) " >&6 |
---|
2523 | else |
---|
2524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2525 | for as_dir in $PATH |
---|
2526 | do |
---|
2527 | IFS=$as_save_IFS |
---|
2528 | test -z "$as_dir" && as_dir=. |
---|
2529 | # Account for people who put trailing slashes in PATH elements. |
---|
2530 | case $as_dir/ in #(( |
---|
2531 | ./ | .// | /[cC]/* | \ |
---|
2532 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2533 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2534 | /usr/ucb/* ) ;; |
---|
2535 | *) |
---|
2536 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2537 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2538 | # by default. |
---|
2539 | for ac_prog in ginstall scoinst install; do |
---|
2540 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2541 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2542 | if test $ac_prog = install && |
---|
2543 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2544 | # AIX install. It has an incompatible calling convention. |
---|
2545 | : |
---|
2546 | elif test $ac_prog = install && |
---|
2547 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2548 | # program-specific install script used by HP pwplus--don't use. |
---|
2549 | : |
---|
2550 | else |
---|
2551 | rm -rf conftest.one conftest.two conftest.dir |
---|
2552 | echo one > conftest.one |
---|
2553 | echo two > conftest.two |
---|
2554 | mkdir conftest.dir |
---|
2555 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2556 | test -s conftest.one && test -s conftest.two && |
---|
2557 | test -s conftest.dir/conftest.one && |
---|
2558 | test -s conftest.dir/conftest.two |
---|
2559 | then |
---|
2560 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2561 | break 3 |
---|
2562 | fi |
---|
2563 | fi |
---|
2564 | fi |
---|
2565 | done |
---|
2566 | done |
---|
2567 | ;; |
---|
2568 | esac |
---|
2569 | |
---|
2570 | done |
---|
2571 | IFS=$as_save_IFS |
---|
2572 | |
---|
2573 | rm -rf conftest.one conftest.two conftest.dir |
---|
2574 | |
---|
2575 | fi |
---|
2576 | if test "${ac_cv_path_install+set}" = set; then |
---|
2577 | INSTALL=$ac_cv_path_install |
---|
2578 | else |
---|
2579 | # As a last resort, use the slow shell script. Don't cache a |
---|
2580 | # value for INSTALL within a source directory, because that will |
---|
2581 | # break other packages using the cache if that directory is |
---|
2582 | # removed, or if the value is a relative name. |
---|
2583 | INSTALL=$ac_install_sh |
---|
2584 | fi |
---|
2585 | fi |
---|
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2587 | $as_echo "$INSTALL" >&6; } |
---|
2588 | |
---|
2589 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2590 | # It thinks the first close brace ends the variable substitution. |
---|
2591 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2592 | |
---|
2593 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2594 | |
---|
2595 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2596 | |
---|
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2598 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2599 | # Just in case |
---|
2600 | sleep 1 |
---|
2601 | echo timestamp > conftest.file |
---|
2602 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2603 | # name. Accept space and tab only in the latter. |
---|
2604 | am_lf=' |
---|
2605 | ' |
---|
2606 | case `pwd` in |
---|
2607 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2608 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2609 | esac |
---|
2610 | case $srcdir in |
---|
2611 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2612 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
---|
2613 | esac |
---|
2614 | |
---|
2615 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2616 | # arguments. Must try -L first in case configure is actually a |
---|
2617 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2618 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2619 | # directory). |
---|
2620 | if ( |
---|
2621 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2622 | if test "$*" = "X"; then |
---|
2623 | # -L didn't work. |
---|
2624 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2625 | fi |
---|
2626 | rm -f conftest.file |
---|
2627 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2628 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2629 | |
---|
2630 | # If neither matched, then we have a broken ls. This can happen |
---|
2631 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2632 | # broken ls alias from the environment. This has actually |
---|
2633 | # happened. Such a system could not be considered "sane". |
---|
2634 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2635 | alias in your environment" "$LINENO" 5 |
---|
2636 | fi |
---|
2637 | |
---|
2638 | test "$2" = conftest.file |
---|
2639 | ) |
---|
2640 | then |
---|
2641 | # Ok. |
---|
2642 | : |
---|
2643 | else |
---|
2644 | as_fn_error $? "newly created file is older than distributed files! |
---|
2645 | Check your system clock" "$LINENO" 5 |
---|
2646 | fi |
---|
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2648 | $as_echo "yes" >&6; } |
---|
2649 | test "$program_prefix" != NONE && |
---|
2650 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2651 | # Use a double $ so make ignores it. |
---|
2652 | test "$program_suffix" != NONE && |
---|
2653 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2654 | # Double any \ or $. |
---|
2655 | # By default was `s,x,x', remove it if useless. |
---|
2656 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2657 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2658 | |
---|
2659 | # expand $ac_aux_dir to an absolute path |
---|
2660 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2661 | |
---|
2662 | if test x"${MISSING+set}" != xset; then |
---|
2663 | case $am_aux_dir in |
---|
2664 | *\ * | *\ *) |
---|
2665 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2666 | *) |
---|
2667 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2668 | esac |
---|
2669 | fi |
---|
2670 | # Use eval to expand $SHELL |
---|
2671 | if eval "$MISSING --run true"; then |
---|
2672 | am_missing_run="$MISSING --run " |
---|
2673 | else |
---|
2674 | am_missing_run= |
---|
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
---|
2676 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2677 | fi |
---|
2678 | |
---|
2679 | if test x"${install_sh}" != xset; then |
---|
2680 | case $am_aux_dir in |
---|
2681 | *\ * | *\ *) |
---|
2682 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2683 | *) |
---|
2684 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2685 | esac |
---|
2686 | fi |
---|
2687 | |
---|
2688 | # Installed binaries are usually stripped using `strip' when the user |
---|
2689 | # run `make install-strip'. However `strip' might not be the right |
---|
2690 | # tool to use in cross-compilation environments, therefore Automake |
---|
2691 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2692 | if test "$cross_compiling" != no; then |
---|
2693 | if test -n "$ac_tool_prefix"; then |
---|
2694 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2695 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2697 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2698 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2699 | $as_echo_n "(cached) " >&6 |
---|
2700 | else |
---|
2701 | if test -n "$STRIP"; then |
---|
2702 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2703 | else |
---|
2704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2705 | for as_dir in $PATH |
---|
2706 | do |
---|
2707 | IFS=$as_save_IFS |
---|
2708 | test -z "$as_dir" && as_dir=. |
---|
2709 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2711 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2712 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2713 | break 2 |
---|
2714 | fi |
---|
2715 | done |
---|
2716 | done |
---|
2717 | IFS=$as_save_IFS |
---|
2718 | |
---|
2719 | fi |
---|
2720 | fi |
---|
2721 | STRIP=$ac_cv_prog_STRIP |
---|
2722 | if test -n "$STRIP"; then |
---|
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2724 | $as_echo "$STRIP" >&6; } |
---|
2725 | else |
---|
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2727 | $as_echo "no" >&6; } |
---|
2728 | fi |
---|
2729 | |
---|
2730 | |
---|
2731 | fi |
---|
2732 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2733 | ac_ct_STRIP=$STRIP |
---|
2734 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2735 | set dummy strip; ac_word=$2 |
---|
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2737 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2738 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2739 | $as_echo_n "(cached) " >&6 |
---|
2740 | else |
---|
2741 | if test -n "$ac_ct_STRIP"; then |
---|
2742 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2743 | else |
---|
2744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2745 | for as_dir in $PATH |
---|
2746 | do |
---|
2747 | IFS=$as_save_IFS |
---|
2748 | test -z "$as_dir" && as_dir=. |
---|
2749 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2751 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2753 | break 2 |
---|
2754 | fi |
---|
2755 | done |
---|
2756 | done |
---|
2757 | IFS=$as_save_IFS |
---|
2758 | |
---|
2759 | fi |
---|
2760 | fi |
---|
2761 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2762 | if test -n "$ac_ct_STRIP"; then |
---|
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2764 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2765 | else |
---|
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2767 | $as_echo "no" >&6; } |
---|
2768 | fi |
---|
2769 | |
---|
2770 | if test "x$ac_ct_STRIP" = x; then |
---|
2771 | STRIP=":" |
---|
2772 | else |
---|
2773 | case $cross_compiling:$ac_tool_warned in |
---|
2774 | yes:) |
---|
2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2776 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2777 | ac_tool_warned=yes ;; |
---|
2778 | esac |
---|
2779 | STRIP=$ac_ct_STRIP |
---|
2780 | fi |
---|
2781 | else |
---|
2782 | STRIP="$ac_cv_prog_STRIP" |
---|
2783 | fi |
---|
2784 | |
---|
2785 | fi |
---|
2786 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2787 | |
---|
2788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2789 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2790 | if test -z "$MKDIR_P"; then |
---|
2791 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2792 | $as_echo_n "(cached) " >&6 |
---|
2793 | else |
---|
2794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2795 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2796 | do |
---|
2797 | IFS=$as_save_IFS |
---|
2798 | test -z "$as_dir" && as_dir=. |
---|
2799 | for ac_prog in mkdir gmkdir; do |
---|
2800 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2801 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2802 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2803 | 'mkdir (GNU coreutils) '* | \ |
---|
2804 | 'mkdir (coreutils) '* | \ |
---|
2805 | 'mkdir (fileutils) '4.1*) |
---|
2806 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2807 | break 3;; |
---|
2808 | esac |
---|
2809 | done |
---|
2810 | done |
---|
2811 | done |
---|
2812 | IFS=$as_save_IFS |
---|
2813 | |
---|
2814 | fi |
---|
2815 | |
---|
2816 | test -d ./--version && rmdir ./--version |
---|
2817 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2818 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2819 | else |
---|
2820 | # As a last resort, use the slow shell script. Don't cache a |
---|
2821 | # value for MKDIR_P within a source directory, because that will |
---|
2822 | # break other packages using the cache if that directory is |
---|
2823 | # removed, or if the value is a relative name. |
---|
2824 | MKDIR_P="$ac_install_sh -d" |
---|
2825 | fi |
---|
2826 | fi |
---|
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2828 | $as_echo "$MKDIR_P" >&6; } |
---|
2829 | |
---|
2830 | mkdir_p="$MKDIR_P" |
---|
2831 | case $mkdir_p in |
---|
2832 | [\\/$]* | ?:[\\/]*) ;; |
---|
2833 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2834 | esac |
---|
2835 | |
---|
2836 | for ac_prog in gawk mawk nawk awk |
---|
2837 | do |
---|
2838 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2839 | set dummy $ac_prog; ac_word=$2 |
---|
2840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2841 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2842 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2843 | $as_echo_n "(cached) " >&6 |
---|
2844 | else |
---|
2845 | if test -n "$AWK"; then |
---|
2846 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2847 | else |
---|
2848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2849 | for as_dir in $PATH |
---|
2850 | do |
---|
2851 | IFS=$as_save_IFS |
---|
2852 | test -z "$as_dir" && as_dir=. |
---|
2853 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2855 | ac_cv_prog_AWK="$ac_prog" |
---|
2856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2857 | break 2 |
---|
2858 | fi |
---|
2859 | done |
---|
2860 | done |
---|
2861 | IFS=$as_save_IFS |
---|
2862 | |
---|
2863 | fi |
---|
2864 | fi |
---|
2865 | AWK=$ac_cv_prog_AWK |
---|
2866 | if test -n "$AWK"; then |
---|
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2868 | $as_echo "$AWK" >&6; } |
---|
2869 | else |
---|
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2871 | $as_echo "no" >&6; } |
---|
2872 | fi |
---|
2873 | |
---|
2874 | |
---|
2875 | test -n "$AWK" && break |
---|
2876 | done |
---|
2877 | |
---|
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2879 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2880 | set x ${MAKE-make} |
---|
2881 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2882 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2883 | $as_echo_n "(cached) " >&6 |
---|
2884 | else |
---|
2885 | cat >conftest.make <<\_ACEOF |
---|
2886 | SHELL = /bin/sh |
---|
2887 | all: |
---|
2888 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2889 | _ACEOF |
---|
2890 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2891 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2892 | *@@@%%%=?*=@@@%%%*) |
---|
2893 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2894 | *) |
---|
2895 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2896 | esac |
---|
2897 | rm -f conftest.make |
---|
2898 | fi |
---|
2899 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2901 | $as_echo "yes" >&6; } |
---|
2902 | SET_MAKE= |
---|
2903 | else |
---|
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2905 | $as_echo "no" >&6; } |
---|
2906 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2907 | fi |
---|
2908 | |
---|
2909 | rm -rf .tst 2>/dev/null |
---|
2910 | mkdir .tst 2>/dev/null |
---|
2911 | if test -d .tst; then |
---|
2912 | am__leading_dot=. |
---|
2913 | else |
---|
2914 | am__leading_dot=_ |
---|
2915 | fi |
---|
2916 | rmdir .tst 2>/dev/null |
---|
2917 | |
---|
2918 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2919 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2920 | # is not polluted with repeated "-I." |
---|
2921 | am__isrc=' -I$(srcdir)' |
---|
2922 | # test to see if srcdir already configured |
---|
2923 | if test -f $srcdir/config.status; then |
---|
2924 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2925 | fi |
---|
2926 | fi |
---|
2927 | |
---|
2928 | # test whether we have cygpath |
---|
2929 | if test -z "$CYGPATH_W"; then |
---|
2930 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2931 | CYGPATH_W='cygpath -w' |
---|
2932 | else |
---|
2933 | CYGPATH_W=echo |
---|
2934 | fi |
---|
2935 | fi |
---|
2936 | |
---|
2937 | |
---|
2938 | # Define the identity of the package. |
---|
2939 | PACKAGE='cfa-cc' |
---|
2940 | VERSION='1.0.0.0' |
---|
2941 | |
---|
2942 | |
---|
2943 | cat >>confdefs.h <<_ACEOF |
---|
2944 | #define PACKAGE "$PACKAGE" |
---|
2945 | _ACEOF |
---|
2946 | |
---|
2947 | |
---|
2948 | cat >>confdefs.h <<_ACEOF |
---|
2949 | #define VERSION "$VERSION" |
---|
2950 | _ACEOF |
---|
2951 | |
---|
2952 | # Some tools Automake needs. |
---|
2953 | |
---|
2954 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2955 | |
---|
2956 | |
---|
2957 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2958 | |
---|
2959 | |
---|
2960 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2961 | |
---|
2962 | |
---|
2963 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2964 | |
---|
2965 | |
---|
2966 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2967 | |
---|
2968 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2969 | # some platforms. |
---|
2970 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
2971 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
2972 | AMTAR='$${TAR-tar}' |
---|
2973 | |
---|
2974 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
2975 | |
---|
2976 | |
---|
2977 | |
---|
2978 | |
---|
2979 | |
---|
2980 | |
---|
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
2982 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
---|
2983 | # Check whether --enable-maintainer-mode was given. |
---|
2984 | if test "${enable_maintainer_mode+set}" = set; then : |
---|
2985 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
---|
2986 | else |
---|
2987 | USE_MAINTAINER_MODE=yes |
---|
2988 | fi |
---|
2989 | |
---|
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
---|
2991 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
---|
2992 | if test $USE_MAINTAINER_MODE = yes; then |
---|
2993 | MAINTAINER_MODE_TRUE= |
---|
2994 | MAINTAINER_MODE_FALSE='#' |
---|
2995 | else |
---|
2996 | MAINTAINER_MODE_TRUE='#' |
---|
2997 | MAINTAINER_MODE_FALSE= |
---|
2998 | fi |
---|
2999 | |
---|
3000 | MAINT=$MAINTAINER_MODE_TRUE |
---|
3001 | |
---|
3002 | # may require auto* software to be installed |
---|
3003 | |
---|
3004 | # Allow program name tansformation |
---|
3005 | # will fille program_transform_name with appropriate sed regex |
---|
3006 | |
---|
3007 | #autoconf escapes $ and \ since automake wiill un-escape them. |
---|
3008 | #Since we need to use the sed transform in autoconf we need to manualy un-escape these characters |
---|
3009 | name_transform=`echo ${program_transform_name} | sed 's/\\$\\$/\\$/g' | sed 's/\\\\\\\/\\\/g'` |
---|
3010 | cfa_name=`echo cfa | sed ${name_transform}` |
---|
3011 | cc1_name=`echo cc1 | sed ${name_transform}` |
---|
3012 | cpp_name=`echo cfa-cpp | sed ${name_transform}` |
---|
3013 | |
---|
3014 | #Trasforming cc1 will break compilation |
---|
3015 | if ! test "${cc1_name}" = "cc1"; then |
---|
3016 | as_fn_error $? "Program transform must not modify cc1. |
---|
3017 | --program-sufix and --program-prefix not supported. |
---|
3018 | Use -program-transform-name='s/cfa$/[Desired name here]/' instead" "$LINENO" 5 |
---|
3019 | fi |
---|
3020 | #We could support transforming cfa-cpp but since it is located in a unique subfolder we don't need to |
---|
3021 | if ! test "${cpp_name}" = "cfa-cpp"; then |
---|
3022 | as_fn_error $? "Program transform must not modify cfa-cpp. |
---|
3023 | --program-sufix and --program-prefix not supported. |
---|
3024 | Use -program-transform-name='s/cfa$/[Desired name here]/' instead" "$LINENO" 5 |
---|
3025 | fi |
---|
3026 | |
---|
3027 | #Define the new name of the installed command |
---|
3028 | CFA_NAME=${cfa_name} |
---|
3029 | |
---|
3030 | |
---|
3031 | rm -f version |
---|
3032 | echo ${PACKAGE_VERSION} > version # file containing version number for other tools |
---|
3033 | chmod ugo-w version |
---|
3034 | ver_major=`cut -d '.' -f1 version` # subdivide version number into components at periods |
---|
3035 | ver_minor=`cut -d '.' -f2 version` |
---|
3036 | ver_patch=`cut -d '.' -f3 version` |
---|
3037 | ver_build=`cut -d '.' -f4 version` |
---|
3038 | |
---|
3039 | # AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version']) |
---|
3040 | |
---|
3041 | cat >>confdefs.h <<_ACEOF |
---|
3042 | #define CFA_VERSION_MAJOR ${ver_major} |
---|
3043 | _ACEOF |
---|
3044 | |
---|
3045 | |
---|
3046 | cat >>confdefs.h <<_ACEOF |
---|
3047 | #define CFA_VERSION_MINOR ${ver_minor} |
---|
3048 | _ACEOF |
---|
3049 | |
---|
3050 | |
---|
3051 | cat >>confdefs.h <<_ACEOF |
---|
3052 | #define CFA_VERSION_PATCH ${ver_patch} |
---|
3053 | _ACEOF |
---|
3054 | |
---|
3055 | |
---|
3056 | cat >>confdefs.h <<_ACEOF |
---|
3057 | #define CFA_VERSION_BUILD ${ver_build} |
---|
3058 | _ACEOF |
---|
3059 | |
---|
3060 | |
---|
3061 | cat >>confdefs.h <<_ACEOF |
---|
3062 | #define CFA_VERSION_SHORT "${ver_major}" |
---|
3063 | _ACEOF |
---|
3064 | |
---|
3065 | |
---|
3066 | cat >>confdefs.h <<_ACEOF |
---|
3067 | #define CFA_VERSION "${ver_major}.${ver_minor}" |
---|
3068 | _ACEOF |
---|
3069 | |
---|
3070 | |
---|
3071 | cat >>confdefs.h <<_ACEOF |
---|
3072 | #define CFA_VERSION_LONG "${ver_major}.${ver_minor}.${ver_patch}" |
---|
3073 | _ACEOF |
---|
3074 | |
---|
3075 | |
---|
3076 | cat >>confdefs.h <<_ACEOF |
---|
3077 | #define CFA_VERSION_FULL "${ver_major}.${ver_minor}.${ver_patch}.${ver_build}" |
---|
3078 | _ACEOF |
---|
3079 | |
---|
3080 | |
---|
3081 | # Installation paths |
---|
3082 | |
---|
3083 | |
---|
3084 | # Check whether --with-backend-compiler was given. |
---|
3085 | if test "${with_backend_compiler+set}" = set; then : |
---|
3086 | withval=$with_backend_compiler; backendcompiler=$withval |
---|
3087 | else |
---|
3088 | backendcompiler="" |
---|
3089 | fi |
---|
3090 | |
---|
3091 | if test "x$backendcompiler" != "x"; then |
---|
3092 | BACKEND_CC=${backendcompiler} |
---|
3093 | else |
---|
3094 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3095 | set dummy gcc; ac_word=$2 |
---|
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3097 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3098 | if ${ac_cv_path_BACKEND_CC+:} false; then : |
---|
3099 | $as_echo_n "(cached) " >&6 |
---|
3100 | else |
---|
3101 | case $BACKEND_CC in |
---|
3102 | [\\/]* | ?:[\\/]*) |
---|
3103 | ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path. |
---|
3104 | ;; |
---|
3105 | *) |
---|
3106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3107 | for as_dir in $PATH |
---|
3108 | do |
---|
3109 | IFS=$as_save_IFS |
---|
3110 | test -z "$as_dir" && as_dir=. |
---|
3111 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3113 | ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext" |
---|
3114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3115 | break 2 |
---|
3116 | fi |
---|
3117 | done |
---|
3118 | done |
---|
3119 | IFS=$as_save_IFS |
---|
3120 | |
---|
3121 | ;; |
---|
3122 | esac |
---|
3123 | fi |
---|
3124 | BACKEND_CC=$ac_cv_path_BACKEND_CC |
---|
3125 | if test -n "$BACKEND_CC"; then |
---|
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&5 |
---|
3127 | $as_echo "$BACKEND_CC" >&6; } |
---|
3128 | else |
---|
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3130 | $as_echo "no" >&6; } |
---|
3131 | fi |
---|
3132 | |
---|
3133 | # check gcc installed |
---|
3134 | if test "x$BACKEND_CC" = "x"; then |
---|
3135 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 |
---|
3136 | exit 1 |
---|
3137 | fi |
---|
3138 | fi |
---|
3139 | |
---|
3140 | cat >>confdefs.h <<_ACEOF |
---|
3141 | #define CFA_BACKEND_CC "${BACKEND_CC}" |
---|
3142 | _ACEOF |
---|
3143 | |
---|
3144 | |
---|
3145 | |
---|
3146 | |
---|
3147 | |
---|
3148 | # Check whether --enable-target-release was given. |
---|
3149 | if test "${enable_target_release+set}" = set; then : |
---|
3150 | enableval=$enable_target_release; |
---|
3151 | fi |
---|
3152 | |
---|
3153 | # Check whether --enable-target-debug was given. |
---|
3154 | if test "${enable_target_debug+set}" = set; then : |
---|
3155 | enableval=$enable_target_debug; |
---|
3156 | fi |
---|
3157 | |
---|
3158 | # Check whether --enable-threading was given. |
---|
3159 | if test "${enable_threading+set}" = set; then : |
---|
3160 | enableval=$enable_threading; case "${enableval}" in |
---|
3161 | yes) build_threading="yes" ;; |
---|
3162 | no) build_threading="no" ;; |
---|
3163 | *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; |
---|
3164 | esac |
---|
3165 | else |
---|
3166 | build_threading="yes" |
---|
3167 | fi |
---|
3168 | |
---|
3169 | |
---|
3170 | case "$enable_target_release" in |
---|
3171 | yes) |
---|
3172 | case "$enable_target_debug" in |
---|
3173 | yes) |
---|
3174 | build_release="yes" |
---|
3175 | build_debug="yes" |
---|
3176 | ;; |
---|
3177 | no) |
---|
3178 | build_release="yes" |
---|
3179 | build_debug="no" |
---|
3180 | ;; |
---|
3181 | *) |
---|
3182 | build_release="yes" |
---|
3183 | build_debug="no" |
---|
3184 | ;; |
---|
3185 | esac |
---|
3186 | ;; |
---|
3187 | no) |
---|
3188 | case "$enable_target_debug" in |
---|
3189 | yes) |
---|
3190 | build_release="no" |
---|
3191 | build_debug="yes" |
---|
3192 | ;; |
---|
3193 | no) |
---|
3194 | build_release="no" |
---|
3195 | build_debug="no" |
---|
3196 | ;; |
---|
3197 | *) |
---|
3198 | build_release="no" |
---|
3199 | build_debug="yes" |
---|
3200 | ;; |
---|
3201 | esac |
---|
3202 | ;; |
---|
3203 | *) |
---|
3204 | case "$enable_target_debug" in |
---|
3205 | yes) |
---|
3206 | build_release="no" |
---|
3207 | build_debug="yes" |
---|
3208 | ;; |
---|
3209 | no) |
---|
3210 | build_release="yes" |
---|
3211 | build_debug="no" |
---|
3212 | ;; |
---|
3213 | *) |
---|
3214 | build_release="yes" |
---|
3215 | build_debug="yes" |
---|
3216 | ;; |
---|
3217 | esac |
---|
3218 | ;; |
---|
3219 | esac |
---|
3220 | |
---|
3221 | if test "x$build_release" = "xyes"; then |
---|
3222 | BUILD_RELEASE_TRUE= |
---|
3223 | BUILD_RELEASE_FALSE='#' |
---|
3224 | else |
---|
3225 | BUILD_RELEASE_TRUE='#' |
---|
3226 | BUILD_RELEASE_FALSE= |
---|
3227 | fi |
---|
3228 | |
---|
3229 | if test "x$build_debug" = "xyes"; then |
---|
3230 | BUILD_DEBUG_TRUE= |
---|
3231 | BUILD_DEBUG_FALSE='#' |
---|
3232 | else |
---|
3233 | BUILD_DEBUG_TRUE='#' |
---|
3234 | BUILD_DEBUG_FALSE= |
---|
3235 | fi |
---|
3236 | |
---|
3237 | if test "x$build_release$build_debug" = "xnono"; then |
---|
3238 | BUILD_NO_LIB_TRUE= |
---|
3239 | BUILD_NO_LIB_FALSE='#' |
---|
3240 | else |
---|
3241 | BUILD_NO_LIB_TRUE='#' |
---|
3242 | BUILD_NO_LIB_FALSE= |
---|
3243 | fi |
---|
3244 | |
---|
3245 | if test "x$build_threading" = "xyes"; then |
---|
3246 | BUILD_CONCURRENCY_TRUE= |
---|
3247 | BUILD_CONCURRENCY_FALSE='#' |
---|
3248 | else |
---|
3249 | BUILD_CONCURRENCY_TRUE='#' |
---|
3250 | BUILD_CONCURRENCY_FALSE= |
---|
3251 | fi |
---|
3252 | |
---|
3253 | |
---|
3254 | if test "x$prefix" = "xNONE"; then |
---|
3255 | cfa_prefix=${ac_default_prefix} |
---|
3256 | else |
---|
3257 | cfa_prefix=${prefix} |
---|
3258 | fi |
---|
3259 | |
---|
3260 | cat >>confdefs.h <<_ACEOF |
---|
3261 | #define CFA_PREFIX "${cfa_prefix}" |
---|
3262 | _ACEOF |
---|
3263 | |
---|
3264 | CFA_PREFIX=${cfa_prefix} |
---|
3265 | |
---|
3266 | |
---|
3267 | if test "$includedir" = '${prefix}/include'; then |
---|
3268 | cfa_incdir="${cfa_prefix}/include/${cfa_name}" |
---|
3269 | else |
---|
3270 | cfa_incdir=${includedir} |
---|
3271 | fi |
---|
3272 | |
---|
3273 | cat >>confdefs.h <<_ACEOF |
---|
3274 | #define CFA_INCDIR "${cfa_incdir}" |
---|
3275 | _ACEOF |
---|
3276 | |
---|
3277 | CFA_INCDIR=${cfa_incdir} |
---|
3278 | |
---|
3279 | |
---|
3280 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
3281 | cfa_bindir="${cfa_prefix}/bin" |
---|
3282 | else |
---|
3283 | cfa_bindir=${bindir} |
---|
3284 | fi |
---|
3285 | |
---|
3286 | cat >>confdefs.h <<_ACEOF |
---|
3287 | #define CFA_BINDIR "${cfa_bindir}" |
---|
3288 | _ACEOF |
---|
3289 | |
---|
3290 | CFA_BINDIR=${cfa_bindir} |
---|
3291 | |
---|
3292 | |
---|
3293 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
3294 | cfa_libdir="${cfa_prefix}/lib/${cfa_name}" |
---|
3295 | else |
---|
3296 | cfa_libdir=${libdir} |
---|
3297 | fi |
---|
3298 | |
---|
3299 | cat >>confdefs.h <<_ACEOF |
---|
3300 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
3301 | _ACEOF |
---|
3302 | |
---|
3303 | CFA_LIBDIR=${cfa_libdir} |
---|
3304 | |
---|
3305 | |
---|
3306 | |
---|
3307 | cat >>confdefs.h <<_ACEOF |
---|
3308 | #define CFA_FLAGS "${CFAFLAGS}" |
---|
3309 | _ACEOF |
---|
3310 | |
---|
3311 | CFA_FLAGS=${CFAFLAGS} |
---|
3312 | |
---|
3313 | |
---|
3314 | # Make sure we can run config.sub. |
---|
3315 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
3316 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
3317 | |
---|
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
3319 | $as_echo_n "checking build system type... " >&6; } |
---|
3320 | if ${ac_cv_build+:} false; then : |
---|
3321 | $as_echo_n "(cached) " >&6 |
---|
3322 | else |
---|
3323 | ac_build_alias=$build_alias |
---|
3324 | test "x$ac_build_alias" = x && |
---|
3325 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
3326 | test "x$ac_build_alias" = x && |
---|
3327 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
3328 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
3329 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
3330 | |
---|
3331 | fi |
---|
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
3333 | $as_echo "$ac_cv_build" >&6; } |
---|
3334 | case $ac_cv_build in |
---|
3335 | *-*-*) ;; |
---|
3336 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
3337 | esac |
---|
3338 | build=$ac_cv_build |
---|
3339 | ac_save_IFS=$IFS; IFS='-' |
---|
3340 | set x $ac_cv_build |
---|
3341 | shift |
---|
3342 | build_cpu=$1 |
---|
3343 | build_vendor=$2 |
---|
3344 | shift; shift |
---|
3345 | # Remember, the first character of IFS is used to create $*, |
---|
3346 | # except with old shells: |
---|
3347 | build_os=$* |
---|
3348 | IFS=$ac_save_IFS |
---|
3349 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
3350 | |
---|
3351 | |
---|
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
3353 | $as_echo_n "checking host system type... " >&6; } |
---|
3354 | if ${ac_cv_host+:} false; then : |
---|
3355 | $as_echo_n "(cached) " >&6 |
---|
3356 | else |
---|
3357 | if test "x$host_alias" = x; then |
---|
3358 | ac_cv_host=$ac_cv_build |
---|
3359 | else |
---|
3360 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
3361 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
3362 | fi |
---|
3363 | |
---|
3364 | fi |
---|
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
3366 | $as_echo "$ac_cv_host" >&6; } |
---|
3367 | case $ac_cv_host in |
---|
3368 | *-*-*) ;; |
---|
3369 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
3370 | esac |
---|
3371 | host=$ac_cv_host |
---|
3372 | ac_save_IFS=$IFS; IFS='-' |
---|
3373 | set x $ac_cv_host |
---|
3374 | shift |
---|
3375 | host_cpu=$1 |
---|
3376 | host_vendor=$2 |
---|
3377 | shift; shift |
---|
3378 | # Remember, the first character of IFS is used to create $*, |
---|
3379 | # except with old shells: |
---|
3380 | host_os=$* |
---|
3381 | IFS=$ac_save_IFS |
---|
3382 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
3383 | |
---|
3384 | |
---|
3385 | MACHINE_TYPE=$host_cpu |
---|
3386 | |
---|
3387 | |
---|
3388 | # Checks for programs. |
---|
3389 | ac_ext=cpp |
---|
3390 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3391 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3392 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3393 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3394 | if test -z "$CXX"; then |
---|
3395 | if test -n "$CCC"; then |
---|
3396 | CXX=$CCC |
---|
3397 | else |
---|
3398 | if test -n "$ac_tool_prefix"; then |
---|
3399 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3400 | do |
---|
3401 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3402 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3404 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3405 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3406 | $as_echo_n "(cached) " >&6 |
---|
3407 | else |
---|
3408 | if test -n "$CXX"; then |
---|
3409 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3410 | else |
---|
3411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3412 | for as_dir in $PATH |
---|
3413 | do |
---|
3414 | IFS=$as_save_IFS |
---|
3415 | test -z "$as_dir" && as_dir=. |
---|
3416 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3418 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3420 | break 2 |
---|
3421 | fi |
---|
3422 | done |
---|
3423 | done |
---|
3424 | IFS=$as_save_IFS |
---|
3425 | |
---|
3426 | fi |
---|
3427 | fi |
---|
3428 | CXX=$ac_cv_prog_CXX |
---|
3429 | if test -n "$CXX"; then |
---|
3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3431 | $as_echo "$CXX" >&6; } |
---|
3432 | else |
---|
3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3434 | $as_echo "no" >&6; } |
---|
3435 | fi |
---|
3436 | |
---|
3437 | |
---|
3438 | test -n "$CXX" && break |
---|
3439 | done |
---|
3440 | fi |
---|
3441 | if test -z "$CXX"; then |
---|
3442 | ac_ct_CXX=$CXX |
---|
3443 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3444 | do |
---|
3445 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3446 | set dummy $ac_prog; ac_word=$2 |
---|
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3448 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3449 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3450 | $as_echo_n "(cached) " >&6 |
---|
3451 | else |
---|
3452 | if test -n "$ac_ct_CXX"; then |
---|
3453 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3454 | else |
---|
3455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3456 | for as_dir in $PATH |
---|
3457 | do |
---|
3458 | IFS=$as_save_IFS |
---|
3459 | test -z "$as_dir" && as_dir=. |
---|
3460 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3462 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3464 | break 2 |
---|
3465 | fi |
---|
3466 | done |
---|
3467 | done |
---|
3468 | IFS=$as_save_IFS |
---|
3469 | |
---|
3470 | fi |
---|
3471 | fi |
---|
3472 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3473 | if test -n "$ac_ct_CXX"; then |
---|
3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3475 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3476 | else |
---|
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3478 | $as_echo "no" >&6; } |
---|
3479 | fi |
---|
3480 | |
---|
3481 | |
---|
3482 | test -n "$ac_ct_CXX" && break |
---|
3483 | done |
---|
3484 | |
---|
3485 | if test "x$ac_ct_CXX" = x; then |
---|
3486 | CXX="g++" |
---|
3487 | else |
---|
3488 | case $cross_compiling:$ac_tool_warned in |
---|
3489 | yes:) |
---|
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3491 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3492 | ac_tool_warned=yes ;; |
---|
3493 | esac |
---|
3494 | CXX=$ac_ct_CXX |
---|
3495 | fi |
---|
3496 | fi |
---|
3497 | |
---|
3498 | fi |
---|
3499 | fi |
---|
3500 | # Provide some information about the compiler. |
---|
3501 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3502 | set X $ac_compile |
---|
3503 | ac_compiler=$2 |
---|
3504 | for ac_option in --version -v -V -qversion; do |
---|
3505 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3506 | case "(($ac_try" in |
---|
3507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3508 | *) ac_try_echo=$ac_try;; |
---|
3509 | esac |
---|
3510 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3511 | $as_echo "$ac_try_echo"; } >&5 |
---|
3512 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3513 | ac_status=$? |
---|
3514 | if test -s conftest.err; then |
---|
3515 | sed '10a\ |
---|
3516 | ... rest of stderr output deleted ... |
---|
3517 | 10q' conftest.err >conftest.er1 |
---|
3518 | cat conftest.er1 >&5 |
---|
3519 | fi |
---|
3520 | rm -f conftest.er1 conftest.err |
---|
3521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3522 | test $ac_status = 0; } |
---|
3523 | done |
---|
3524 | |
---|
3525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3526 | /* end confdefs.h. */ |
---|
3527 | |
---|
3528 | int |
---|
3529 | main () |
---|
3530 | { |
---|
3531 | |
---|
3532 | ; |
---|
3533 | return 0; |
---|
3534 | } |
---|
3535 | _ACEOF |
---|
3536 | ac_clean_files_save=$ac_clean_files |
---|
3537 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3538 | # Try to create an executable without -o first, disregard a.out. |
---|
3539 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3540 | # of exeext. |
---|
3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3542 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3543 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3544 | |
---|
3545 | # The possible output files: |
---|
3546 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3547 | |
---|
3548 | ac_rmfiles= |
---|
3549 | for ac_file in $ac_files |
---|
3550 | do |
---|
3551 | case $ac_file in |
---|
3552 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3553 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3554 | esac |
---|
3555 | done |
---|
3556 | rm -f $ac_rmfiles |
---|
3557 | |
---|
3558 | if { { ac_try="$ac_link_default" |
---|
3559 | case "(($ac_try" in |
---|
3560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3561 | *) ac_try_echo=$ac_try;; |
---|
3562 | esac |
---|
3563 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3564 | $as_echo "$ac_try_echo"; } >&5 |
---|
3565 | (eval "$ac_link_default") 2>&5 |
---|
3566 | ac_status=$? |
---|
3567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3568 | test $ac_status = 0; }; then : |
---|
3569 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3570 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3571 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3572 | # so that the user can short-circuit this test for compilers unknown to |
---|
3573 | # Autoconf. |
---|
3574 | for ac_file in $ac_files '' |
---|
3575 | do |
---|
3576 | test -f "$ac_file" || continue |
---|
3577 | case $ac_file in |
---|
3578 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3579 | ;; |
---|
3580 | [ab].out ) |
---|
3581 | # We found the default executable, but exeext='' is most |
---|
3582 | # certainly right. |
---|
3583 | break;; |
---|
3584 | *.* ) |
---|
3585 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3586 | then :; else |
---|
3587 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3588 | fi |
---|
3589 | # We set ac_cv_exeext here because the later test for it is not |
---|
3590 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3591 | # argument, so we may need to know it at that point already. |
---|
3592 | # Even if this section looks crufty: it has the advantage of |
---|
3593 | # actually working. |
---|
3594 | break;; |
---|
3595 | * ) |
---|
3596 | break;; |
---|
3597 | esac |
---|
3598 | done |
---|
3599 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3600 | |
---|
3601 | else |
---|
3602 | ac_file='' |
---|
3603 | fi |
---|
3604 | if test -z "$ac_file"; then : |
---|
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3606 | $as_echo "no" >&6; } |
---|
3607 | $as_echo "$as_me: failed program was:" >&5 |
---|
3608 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3609 | |
---|
3610 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3611 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3612 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3613 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3614 | else |
---|
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3616 | $as_echo "yes" >&6; } |
---|
3617 | fi |
---|
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3619 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3621 | $as_echo "$ac_file" >&6; } |
---|
3622 | ac_exeext=$ac_cv_exeext |
---|
3623 | |
---|
3624 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3625 | ac_clean_files=$ac_clean_files_save |
---|
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3627 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3628 | if { { ac_try="$ac_link" |
---|
3629 | case "(($ac_try" in |
---|
3630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3631 | *) ac_try_echo=$ac_try;; |
---|
3632 | esac |
---|
3633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3634 | $as_echo "$ac_try_echo"; } >&5 |
---|
3635 | (eval "$ac_link") 2>&5 |
---|
3636 | ac_status=$? |
---|
3637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3638 | test $ac_status = 0; }; then : |
---|
3639 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3640 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3641 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3642 | # `rm'. |
---|
3643 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3644 | test -f "$ac_file" || continue |
---|
3645 | case $ac_file in |
---|
3646 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3647 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3648 | break;; |
---|
3649 | * ) break;; |
---|
3650 | esac |
---|
3651 | done |
---|
3652 | else |
---|
3653 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3654 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3655 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3656 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3657 | fi |
---|
3658 | rm -f conftest conftest$ac_cv_exeext |
---|
3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3660 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3661 | |
---|
3662 | rm -f conftest.$ac_ext |
---|
3663 | EXEEXT=$ac_cv_exeext |
---|
3664 | ac_exeext=$EXEEXT |
---|
3665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3666 | /* end confdefs.h. */ |
---|
3667 | #include <stdio.h> |
---|
3668 | int |
---|
3669 | main () |
---|
3670 | { |
---|
3671 | FILE *f = fopen ("conftest.out", "w"); |
---|
3672 | return ferror (f) || fclose (f) != 0; |
---|
3673 | |
---|
3674 | ; |
---|
3675 | return 0; |
---|
3676 | } |
---|
3677 | _ACEOF |
---|
3678 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3679 | # Check that the compiler produces executables we can run. If not, either |
---|
3680 | # the compiler is broken, or we cross compile. |
---|
3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3682 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3683 | if test "$cross_compiling" != yes; then |
---|
3684 | { { ac_try="$ac_link" |
---|
3685 | case "(($ac_try" in |
---|
3686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3687 | *) ac_try_echo=$ac_try;; |
---|
3688 | esac |
---|
3689 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3690 | $as_echo "$ac_try_echo"; } >&5 |
---|
3691 | (eval "$ac_link") 2>&5 |
---|
3692 | ac_status=$? |
---|
3693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3694 | test $ac_status = 0; } |
---|
3695 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3696 | { { case "(($ac_try" in |
---|
3697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3698 | *) ac_try_echo=$ac_try;; |
---|
3699 | esac |
---|
3700 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3701 | $as_echo "$ac_try_echo"; } >&5 |
---|
3702 | (eval "$ac_try") 2>&5 |
---|
3703 | ac_status=$? |
---|
3704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3705 | test $ac_status = 0; }; }; then |
---|
3706 | cross_compiling=no |
---|
3707 | else |
---|
3708 | if test "$cross_compiling" = maybe; then |
---|
3709 | cross_compiling=yes |
---|
3710 | else |
---|
3711 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3712 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3713 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3714 | If you meant to cross compile, use \`--host'. |
---|
3715 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3716 | fi |
---|
3717 | fi |
---|
3718 | fi |
---|
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3720 | $as_echo "$cross_compiling" >&6; } |
---|
3721 | |
---|
3722 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3723 | ac_clean_files=$ac_clean_files_save |
---|
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3725 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3726 | if ${ac_cv_objext+:} false; then : |
---|
3727 | $as_echo_n "(cached) " >&6 |
---|
3728 | else |
---|
3729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3730 | /* end confdefs.h. */ |
---|
3731 | |
---|
3732 | int |
---|
3733 | main () |
---|
3734 | { |
---|
3735 | |
---|
3736 | ; |
---|
3737 | return 0; |
---|
3738 | } |
---|
3739 | _ACEOF |
---|
3740 | rm -f conftest.o conftest.obj |
---|
3741 | if { { ac_try="$ac_compile" |
---|
3742 | case "(($ac_try" in |
---|
3743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3744 | *) ac_try_echo=$ac_try;; |
---|
3745 | esac |
---|
3746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3747 | $as_echo "$ac_try_echo"; } >&5 |
---|
3748 | (eval "$ac_compile") 2>&5 |
---|
3749 | ac_status=$? |
---|
3750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3751 | test $ac_status = 0; }; then : |
---|
3752 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3753 | test -f "$ac_file" || continue; |
---|
3754 | case $ac_file in |
---|
3755 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3756 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3757 | break;; |
---|
3758 | esac |
---|
3759 | done |
---|
3760 | else |
---|
3761 | $as_echo "$as_me: failed program was:" >&5 |
---|
3762 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3763 | |
---|
3764 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3765 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3766 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3767 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3768 | fi |
---|
3769 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3770 | fi |
---|
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3772 | $as_echo "$ac_cv_objext" >&6; } |
---|
3773 | OBJEXT=$ac_cv_objext |
---|
3774 | ac_objext=$OBJEXT |
---|
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3776 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3777 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3778 | $as_echo_n "(cached) " >&6 |
---|
3779 | else |
---|
3780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3781 | /* end confdefs.h. */ |
---|
3782 | |
---|
3783 | int |
---|
3784 | main () |
---|
3785 | { |
---|
3786 | #ifndef __GNUC__ |
---|
3787 | choke me |
---|
3788 | #endif |
---|
3789 | |
---|
3790 | ; |
---|
3791 | return 0; |
---|
3792 | } |
---|
3793 | _ACEOF |
---|
3794 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3795 | ac_compiler_gnu=yes |
---|
3796 | else |
---|
3797 | ac_compiler_gnu=no |
---|
3798 | fi |
---|
3799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3800 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3801 | |
---|
3802 | fi |
---|
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3804 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3805 | if test $ac_compiler_gnu = yes; then |
---|
3806 | GXX=yes |
---|
3807 | else |
---|
3808 | GXX= |
---|
3809 | fi |
---|
3810 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3811 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3813 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3814 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3815 | $as_echo_n "(cached) " >&6 |
---|
3816 | else |
---|
3817 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3818 | ac_cxx_werror_flag=yes |
---|
3819 | ac_cv_prog_cxx_g=no |
---|
3820 | CXXFLAGS="-g" |
---|
3821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3822 | /* end confdefs.h. */ |
---|
3823 | |
---|
3824 | int |
---|
3825 | main () |
---|
3826 | { |
---|
3827 | |
---|
3828 | ; |
---|
3829 | return 0; |
---|
3830 | } |
---|
3831 | _ACEOF |
---|
3832 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3833 | ac_cv_prog_cxx_g=yes |
---|
3834 | else |
---|
3835 | CXXFLAGS="" |
---|
3836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3837 | /* end confdefs.h. */ |
---|
3838 | |
---|
3839 | int |
---|
3840 | main () |
---|
3841 | { |
---|
3842 | |
---|
3843 | ; |
---|
3844 | return 0; |
---|
3845 | } |
---|
3846 | _ACEOF |
---|
3847 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3848 | |
---|
3849 | else |
---|
3850 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3851 | CXXFLAGS="-g" |
---|
3852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3853 | /* end confdefs.h. */ |
---|
3854 | |
---|
3855 | int |
---|
3856 | main () |
---|
3857 | { |
---|
3858 | |
---|
3859 | ; |
---|
3860 | return 0; |
---|
3861 | } |
---|
3862 | _ACEOF |
---|
3863 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3864 | ac_cv_prog_cxx_g=yes |
---|
3865 | fi |
---|
3866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3867 | fi |
---|
3868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3869 | fi |
---|
3870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3871 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3872 | fi |
---|
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3874 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3875 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3876 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3877 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3878 | if test "$GXX" = yes; then |
---|
3879 | CXXFLAGS="-g -O2" |
---|
3880 | else |
---|
3881 | CXXFLAGS="-g" |
---|
3882 | fi |
---|
3883 | else |
---|
3884 | if test "$GXX" = yes; then |
---|
3885 | CXXFLAGS="-O2" |
---|
3886 | else |
---|
3887 | CXXFLAGS= |
---|
3888 | fi |
---|
3889 | fi |
---|
3890 | ac_ext=c |
---|
3891 | ac_cpp='$CPP $CPPFLAGS' |
---|
3892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3895 | DEPDIR="${am__leading_dot}deps" |
---|
3896 | |
---|
3897 | ac_config_commands="$ac_config_commands depfiles" |
---|
3898 | |
---|
3899 | |
---|
3900 | am_make=${MAKE-make} |
---|
3901 | cat > confinc << 'END' |
---|
3902 | am__doit: |
---|
3903 | @echo this is the am__doit target |
---|
3904 | .PHONY: am__doit |
---|
3905 | END |
---|
3906 | # If we don't find an include directive, just comment out the code. |
---|
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3908 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3909 | am__include="#" |
---|
3910 | am__quote= |
---|
3911 | _am_result=none |
---|
3912 | # First try GNU make style include. |
---|
3913 | echo "include confinc" > confmf |
---|
3914 | # Ignore all kinds of additional output from `make'. |
---|
3915 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3916 | *the\ am__doit\ target*) |
---|
3917 | am__include=include |
---|
3918 | am__quote= |
---|
3919 | _am_result=GNU |
---|
3920 | ;; |
---|
3921 | esac |
---|
3922 | # Now try BSD make style include. |
---|
3923 | if test "$am__include" = "#"; then |
---|
3924 | echo '.include "confinc"' > confmf |
---|
3925 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3926 | *the\ am__doit\ target*) |
---|
3927 | am__include=.include |
---|
3928 | am__quote="\"" |
---|
3929 | _am_result=BSD |
---|
3930 | ;; |
---|
3931 | esac |
---|
3932 | fi |
---|
3933 | |
---|
3934 | |
---|
3935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3936 | $as_echo "$_am_result" >&6; } |
---|
3937 | rm -f confinc confmf |
---|
3938 | |
---|
3939 | # Check whether --enable-dependency-tracking was given. |
---|
3940 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3941 | enableval=$enable_dependency_tracking; |
---|
3942 | fi |
---|
3943 | |
---|
3944 | if test "x$enable_dependency_tracking" != xno; then |
---|
3945 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3946 | AMDEPBACKSLASH='\' |
---|
3947 | am__nodep='_no' |
---|
3948 | fi |
---|
3949 | if test "x$enable_dependency_tracking" != xno; then |
---|
3950 | AMDEP_TRUE= |
---|
3951 | AMDEP_FALSE='#' |
---|
3952 | else |
---|
3953 | AMDEP_TRUE='#' |
---|
3954 | AMDEP_FALSE= |
---|
3955 | fi |
---|
3956 | |
---|
3957 | |
---|
3958 | |
---|
3959 | depcc="$CXX" am_compiler_list= |
---|
3960 | |
---|
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3962 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3963 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
3964 | $as_echo_n "(cached) " >&6 |
---|
3965 | else |
---|
3966 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3967 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3968 | # making bogus files that we don't know about and never remove. For |
---|
3969 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3970 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3971 | # in D'. |
---|
3972 | rm -rf conftest.dir |
---|
3973 | mkdir conftest.dir |
---|
3974 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3975 | # using a relative directory. |
---|
3976 | cp "$am_depcomp" conftest.dir |
---|
3977 | cd conftest.dir |
---|
3978 | # We will build objects and dependencies in a subdirectory because |
---|
3979 | # it helps to detect inapplicable dependency modes. For instance |
---|
3980 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3981 | # side effect of compilation, but ICC will put the dependencies in |
---|
3982 | # the current directory while Tru64 will put them in the object |
---|
3983 | # directory. |
---|
3984 | mkdir sub |
---|
3985 | |
---|
3986 | am_cv_CXX_dependencies_compiler_type=none |
---|
3987 | if test "$am_compiler_list" = ""; then |
---|
3988 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3989 | fi |
---|
3990 | am__universal=false |
---|
3991 | case " $depcc " in #( |
---|
3992 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3993 | esac |
---|
3994 | |
---|
3995 | for depmode in $am_compiler_list; do |
---|
3996 | # Setup a source with many dependencies, because some compilers |
---|
3997 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3998 | # we should not choose a depcomp mode which is confused by this. |
---|
3999 | # |
---|
4000 | # We need to recreate these files for each test, as the compiler may |
---|
4001 | # overwrite some of them when testing with obscure command lines. |
---|
4002 | # This happens at least with the AIX C compiler. |
---|
4003 | : > sub/conftest.c |
---|
4004 | for i in 1 2 3 4 5 6; do |
---|
4005 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4006 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4007 | # Solaris 8's {/usr,}/bin/sh. |
---|
4008 | touch sub/conftst$i.h |
---|
4009 | done |
---|
4010 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4011 | |
---|
4012 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4013 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4014 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4015 | # versions had trouble with output in subdirs |
---|
4016 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4017 | am__minus_obj="-o $am__obj" |
---|
4018 | case $depmode in |
---|
4019 | gcc) |
---|
4020 | # This depmode causes a compiler race in universal mode. |
---|
4021 | test "$am__universal" = false || continue |
---|
4022 | ;; |
---|
4023 | nosideeffect) |
---|
4024 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4025 | # only be used when explicitly requested |
---|
4026 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4027 | continue |
---|
4028 | else |
---|
4029 | break |
---|
4030 | fi |
---|
4031 | ;; |
---|
4032 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4033 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4034 | # not run yet. These depmodes are late enough in the game, and |
---|
4035 | # so weak that their functioning should not be impacted. |
---|
4036 | am__obj=conftest.${OBJEXT-o} |
---|
4037 | am__minus_obj= |
---|
4038 | ;; |
---|
4039 | none) break ;; |
---|
4040 | esac |
---|
4041 | if depmode=$depmode \ |
---|
4042 | source=sub/conftest.c object=$am__obj \ |
---|
4043 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4044 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4045 | >/dev/null 2>conftest.err && |
---|
4046 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4047 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4048 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4049 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4050 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4051 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4052 | # that says an option was ignored or not supported. |
---|
4053 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4054 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4055 | # The diagnosis changed in icc 8.0: |
---|
4056 | # icc: Command line remark: option '-MP' not supported |
---|
4057 | if (grep 'ignoring option' conftest.err || |
---|
4058 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4059 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4060 | break |
---|
4061 | fi |
---|
4062 | fi |
---|
4063 | done |
---|
4064 | |
---|
4065 | cd .. |
---|
4066 | rm -rf conftest.dir |
---|
4067 | else |
---|
4068 | am_cv_CXX_dependencies_compiler_type=none |
---|
4069 | fi |
---|
4070 | |
---|
4071 | fi |
---|
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4073 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4074 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4075 | |
---|
4076 | if |
---|
4077 | test "x$enable_dependency_tracking" != xno \ |
---|
4078 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4079 | am__fastdepCXX_TRUE= |
---|
4080 | am__fastdepCXX_FALSE='#' |
---|
4081 | else |
---|
4082 | am__fastdepCXX_TRUE='#' |
---|
4083 | am__fastdepCXX_FALSE= |
---|
4084 | fi |
---|
4085 | |
---|
4086 | |
---|
4087 | ac_ext=c |
---|
4088 | ac_cpp='$CPP $CPPFLAGS' |
---|
4089 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4090 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4091 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4092 | if test -n "$ac_tool_prefix"; then |
---|
4093 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
4094 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4096 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4097 | if ${ac_cv_prog_CC+:} false; then : |
---|
4098 | $as_echo_n "(cached) " >&6 |
---|
4099 | else |
---|
4100 | if test -n "$CC"; then |
---|
4101 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4102 | else |
---|
4103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4104 | for as_dir in $PATH |
---|
4105 | do |
---|
4106 | IFS=$as_save_IFS |
---|
4107 | test -z "$as_dir" && as_dir=. |
---|
4108 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4110 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
4111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4112 | break 2 |
---|
4113 | fi |
---|
4114 | done |
---|
4115 | done |
---|
4116 | IFS=$as_save_IFS |
---|
4117 | |
---|
4118 | fi |
---|
4119 | fi |
---|
4120 | CC=$ac_cv_prog_CC |
---|
4121 | if test -n "$CC"; then |
---|
4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4123 | $as_echo "$CC" >&6; } |
---|
4124 | else |
---|
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4126 | $as_echo "no" >&6; } |
---|
4127 | fi |
---|
4128 | |
---|
4129 | |
---|
4130 | fi |
---|
4131 | if test -z "$ac_cv_prog_CC"; then |
---|
4132 | ac_ct_CC=$CC |
---|
4133 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
4134 | set dummy gcc; ac_word=$2 |
---|
4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4136 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4137 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4138 | $as_echo_n "(cached) " >&6 |
---|
4139 | else |
---|
4140 | if test -n "$ac_ct_CC"; then |
---|
4141 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4142 | else |
---|
4143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4144 | for as_dir in $PATH |
---|
4145 | do |
---|
4146 | IFS=$as_save_IFS |
---|
4147 | test -z "$as_dir" && as_dir=. |
---|
4148 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4150 | ac_cv_prog_ac_ct_CC="gcc" |
---|
4151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4152 | break 2 |
---|
4153 | fi |
---|
4154 | done |
---|
4155 | done |
---|
4156 | IFS=$as_save_IFS |
---|
4157 | |
---|
4158 | fi |
---|
4159 | fi |
---|
4160 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4161 | if test -n "$ac_ct_CC"; then |
---|
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4163 | $as_echo "$ac_ct_CC" >&6; } |
---|
4164 | else |
---|
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4166 | $as_echo "no" >&6; } |
---|
4167 | fi |
---|
4168 | |
---|
4169 | if test "x$ac_ct_CC" = x; then |
---|
4170 | CC="" |
---|
4171 | else |
---|
4172 | case $cross_compiling:$ac_tool_warned in |
---|
4173 | yes:) |
---|
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4175 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4176 | ac_tool_warned=yes ;; |
---|
4177 | esac |
---|
4178 | CC=$ac_ct_CC |
---|
4179 | fi |
---|
4180 | else |
---|
4181 | CC="$ac_cv_prog_CC" |
---|
4182 | fi |
---|
4183 | |
---|
4184 | if test -z "$CC"; then |
---|
4185 | if test -n "$ac_tool_prefix"; then |
---|
4186 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
4187 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4189 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4190 | if ${ac_cv_prog_CC+:} false; then : |
---|
4191 | $as_echo_n "(cached) " >&6 |
---|
4192 | else |
---|
4193 | if test -n "$CC"; then |
---|
4194 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4195 | else |
---|
4196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4197 | for as_dir in $PATH |
---|
4198 | do |
---|
4199 | IFS=$as_save_IFS |
---|
4200 | test -z "$as_dir" && as_dir=. |
---|
4201 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4203 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
4204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4205 | break 2 |
---|
4206 | fi |
---|
4207 | done |
---|
4208 | done |
---|
4209 | IFS=$as_save_IFS |
---|
4210 | |
---|
4211 | fi |
---|
4212 | fi |
---|
4213 | CC=$ac_cv_prog_CC |
---|
4214 | if test -n "$CC"; then |
---|
4215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4216 | $as_echo "$CC" >&6; } |
---|
4217 | else |
---|
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4219 | $as_echo "no" >&6; } |
---|
4220 | fi |
---|
4221 | |
---|
4222 | |
---|
4223 | fi |
---|
4224 | fi |
---|
4225 | if test -z "$CC"; then |
---|
4226 | # Extract the first word of "cc", so it can be a program name with args. |
---|
4227 | set dummy cc; ac_word=$2 |
---|
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4229 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4230 | if ${ac_cv_prog_CC+:} false; then : |
---|
4231 | $as_echo_n "(cached) " >&6 |
---|
4232 | else |
---|
4233 | if test -n "$CC"; then |
---|
4234 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4235 | else |
---|
4236 | ac_prog_rejected=no |
---|
4237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4238 | for as_dir in $PATH |
---|
4239 | do |
---|
4240 | IFS=$as_save_IFS |
---|
4241 | test -z "$as_dir" && as_dir=. |
---|
4242 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4244 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
4245 | ac_prog_rejected=yes |
---|
4246 | continue |
---|
4247 | fi |
---|
4248 | ac_cv_prog_CC="cc" |
---|
4249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4250 | break 2 |
---|
4251 | fi |
---|
4252 | done |
---|
4253 | done |
---|
4254 | IFS=$as_save_IFS |
---|
4255 | |
---|
4256 | if test $ac_prog_rejected = yes; then |
---|
4257 | # We found a bogon in the path, so make sure we never use it. |
---|
4258 | set dummy $ac_cv_prog_CC |
---|
4259 | shift |
---|
4260 | if test $# != 0; then |
---|
4261 | # We chose a different compiler from the bogus one. |
---|
4262 | # However, it has the same basename, so the bogon will be chosen |
---|
4263 | # first if we set CC to just the basename; use the full file name. |
---|
4264 | shift |
---|
4265 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
4266 | fi |
---|
4267 | fi |
---|
4268 | fi |
---|
4269 | fi |
---|
4270 | CC=$ac_cv_prog_CC |
---|
4271 | if test -n "$CC"; then |
---|
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4273 | $as_echo "$CC" >&6; } |
---|
4274 | else |
---|
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4276 | $as_echo "no" >&6; } |
---|
4277 | fi |
---|
4278 | |
---|
4279 | |
---|
4280 | fi |
---|
4281 | if test -z "$CC"; then |
---|
4282 | if test -n "$ac_tool_prefix"; then |
---|
4283 | for ac_prog in cl.exe |
---|
4284 | do |
---|
4285 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4286 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4288 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4289 | if ${ac_cv_prog_CC+:} false; then : |
---|
4290 | $as_echo_n "(cached) " >&6 |
---|
4291 | else |
---|
4292 | if test -n "$CC"; then |
---|
4293 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4294 | else |
---|
4295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4296 | for as_dir in $PATH |
---|
4297 | do |
---|
4298 | IFS=$as_save_IFS |
---|
4299 | test -z "$as_dir" && as_dir=. |
---|
4300 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4302 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
4303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4304 | break 2 |
---|
4305 | fi |
---|
4306 | done |
---|
4307 | done |
---|
4308 | IFS=$as_save_IFS |
---|
4309 | |
---|
4310 | fi |
---|
4311 | fi |
---|
4312 | CC=$ac_cv_prog_CC |
---|
4313 | if test -n "$CC"; then |
---|
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4315 | $as_echo "$CC" >&6; } |
---|
4316 | else |
---|
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4318 | $as_echo "no" >&6; } |
---|
4319 | fi |
---|
4320 | |
---|
4321 | |
---|
4322 | test -n "$CC" && break |
---|
4323 | done |
---|
4324 | fi |
---|
4325 | if test -z "$CC"; then |
---|
4326 | ac_ct_CC=$CC |
---|
4327 | for ac_prog in cl.exe |
---|
4328 | do |
---|
4329 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4330 | set dummy $ac_prog; ac_word=$2 |
---|
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4332 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4333 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4334 | $as_echo_n "(cached) " >&6 |
---|
4335 | else |
---|
4336 | if test -n "$ac_ct_CC"; then |
---|
4337 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4338 | else |
---|
4339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4340 | for as_dir in $PATH |
---|
4341 | do |
---|
4342 | IFS=$as_save_IFS |
---|
4343 | test -z "$as_dir" && as_dir=. |
---|
4344 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4346 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
4347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4348 | break 2 |
---|
4349 | fi |
---|
4350 | done |
---|
4351 | done |
---|
4352 | IFS=$as_save_IFS |
---|
4353 | |
---|
4354 | fi |
---|
4355 | fi |
---|
4356 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4357 | if test -n "$ac_ct_CC"; then |
---|
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4359 | $as_echo "$ac_ct_CC" >&6; } |
---|
4360 | else |
---|
4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4362 | $as_echo "no" >&6; } |
---|
4363 | fi |
---|
4364 | |
---|
4365 | |
---|
4366 | test -n "$ac_ct_CC" && break |
---|
4367 | done |
---|
4368 | |
---|
4369 | if test "x$ac_ct_CC" = x; then |
---|
4370 | CC="" |
---|
4371 | else |
---|
4372 | case $cross_compiling:$ac_tool_warned in |
---|
4373 | yes:) |
---|
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4375 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4376 | ac_tool_warned=yes ;; |
---|
4377 | esac |
---|
4378 | CC=$ac_ct_CC |
---|
4379 | fi |
---|
4380 | fi |
---|
4381 | |
---|
4382 | fi |
---|
4383 | |
---|
4384 | |
---|
4385 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4386 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4387 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4388 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4389 | |
---|
4390 | # Provide some information about the compiler. |
---|
4391 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4392 | set X $ac_compile |
---|
4393 | ac_compiler=$2 |
---|
4394 | for ac_option in --version -v -V -qversion; do |
---|
4395 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4396 | case "(($ac_try" in |
---|
4397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4398 | *) ac_try_echo=$ac_try;; |
---|
4399 | esac |
---|
4400 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4401 | $as_echo "$ac_try_echo"; } >&5 |
---|
4402 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4403 | ac_status=$? |
---|
4404 | if test -s conftest.err; then |
---|
4405 | sed '10a\ |
---|
4406 | ... rest of stderr output deleted ... |
---|
4407 | 10q' conftest.err >conftest.er1 |
---|
4408 | cat conftest.er1 >&5 |
---|
4409 | fi |
---|
4410 | rm -f conftest.er1 conftest.err |
---|
4411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4412 | test $ac_status = 0; } |
---|
4413 | done |
---|
4414 | |
---|
4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4416 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4417 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4418 | $as_echo_n "(cached) " >&6 |
---|
4419 | else |
---|
4420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4421 | /* end confdefs.h. */ |
---|
4422 | |
---|
4423 | int |
---|
4424 | main () |
---|
4425 | { |
---|
4426 | #ifndef __GNUC__ |
---|
4427 | choke me |
---|
4428 | #endif |
---|
4429 | |
---|
4430 | ; |
---|
4431 | return 0; |
---|
4432 | } |
---|
4433 | _ACEOF |
---|
4434 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4435 | ac_compiler_gnu=yes |
---|
4436 | else |
---|
4437 | ac_compiler_gnu=no |
---|
4438 | fi |
---|
4439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4440 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4441 | |
---|
4442 | fi |
---|
4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4444 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4445 | if test $ac_compiler_gnu = yes; then |
---|
4446 | GCC=yes |
---|
4447 | else |
---|
4448 | GCC= |
---|
4449 | fi |
---|
4450 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4451 | ac_save_CFLAGS=$CFLAGS |
---|
4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4453 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4454 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4455 | $as_echo_n "(cached) " >&6 |
---|
4456 | else |
---|
4457 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4458 | ac_c_werror_flag=yes |
---|
4459 | ac_cv_prog_cc_g=no |
---|
4460 | CFLAGS="-g" |
---|
4461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4462 | /* end confdefs.h. */ |
---|
4463 | |
---|
4464 | int |
---|
4465 | main () |
---|
4466 | { |
---|
4467 | |
---|
4468 | ; |
---|
4469 | return 0; |
---|
4470 | } |
---|
4471 | _ACEOF |
---|
4472 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4473 | ac_cv_prog_cc_g=yes |
---|
4474 | else |
---|
4475 | CFLAGS="" |
---|
4476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4477 | /* end confdefs.h. */ |
---|
4478 | |
---|
4479 | int |
---|
4480 | main () |
---|
4481 | { |
---|
4482 | |
---|
4483 | ; |
---|
4484 | return 0; |
---|
4485 | } |
---|
4486 | _ACEOF |
---|
4487 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4488 | |
---|
4489 | else |
---|
4490 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4491 | CFLAGS="-g" |
---|
4492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4493 | /* end confdefs.h. */ |
---|
4494 | |
---|
4495 | int |
---|
4496 | main () |
---|
4497 | { |
---|
4498 | |
---|
4499 | ; |
---|
4500 | return 0; |
---|
4501 | } |
---|
4502 | _ACEOF |
---|
4503 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4504 | ac_cv_prog_cc_g=yes |
---|
4505 | fi |
---|
4506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4507 | fi |
---|
4508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4509 | fi |
---|
4510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4511 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4512 | fi |
---|
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4514 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4515 | if test "$ac_test_CFLAGS" = set; then |
---|
4516 | CFLAGS=$ac_save_CFLAGS |
---|
4517 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4518 | if test "$GCC" = yes; then |
---|
4519 | CFLAGS="-g -O2" |
---|
4520 | else |
---|
4521 | CFLAGS="-g" |
---|
4522 | fi |
---|
4523 | else |
---|
4524 | if test "$GCC" = yes; then |
---|
4525 | CFLAGS="-O2" |
---|
4526 | else |
---|
4527 | CFLAGS= |
---|
4528 | fi |
---|
4529 | fi |
---|
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4531 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4532 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4533 | $as_echo_n "(cached) " >&6 |
---|
4534 | else |
---|
4535 | ac_cv_prog_cc_c89=no |
---|
4536 | ac_save_CC=$CC |
---|
4537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4538 | /* end confdefs.h. */ |
---|
4539 | #include <stdarg.h> |
---|
4540 | #include <stdio.h> |
---|
4541 | #include <sys/types.h> |
---|
4542 | #include <sys/stat.h> |
---|
4543 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4544 | struct buf { int x; }; |
---|
4545 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4546 | static char *e (p, i) |
---|
4547 | char **p; |
---|
4548 | int i; |
---|
4549 | { |
---|
4550 | return p[i]; |
---|
4551 | } |
---|
4552 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4553 | { |
---|
4554 | char *s; |
---|
4555 | va_list v; |
---|
4556 | va_start (v,p); |
---|
4557 | s = g (p, va_arg (v,int)); |
---|
4558 | va_end (v); |
---|
4559 | return s; |
---|
4560 | } |
---|
4561 | |
---|
4562 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4563 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4564 | These don't provoke an error unfortunately, instead are silently treated |
---|
4565 | as 'x'. The following induces an error, until -std is added to get |
---|
4566 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4567 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4568 | that's true only with -std. */ |
---|
4569 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4570 | |
---|
4571 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4572 | inside strings and character constants. */ |
---|
4573 | #define FOO(x) 'x' |
---|
4574 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4575 | |
---|
4576 | int test (int i, double x); |
---|
4577 | struct s1 {int (*f) (int a);}; |
---|
4578 | struct s2 {int (*f) (double a);}; |
---|
4579 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4580 | int argc; |
---|
4581 | char **argv; |
---|
4582 | int |
---|
4583 | main () |
---|
4584 | { |
---|
4585 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4586 | ; |
---|
4587 | return 0; |
---|
4588 | } |
---|
4589 | _ACEOF |
---|
4590 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4591 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4592 | do |
---|
4593 | CC="$ac_save_CC $ac_arg" |
---|
4594 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4595 | ac_cv_prog_cc_c89=$ac_arg |
---|
4596 | fi |
---|
4597 | rm -f core conftest.err conftest.$ac_objext |
---|
4598 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4599 | done |
---|
4600 | rm -f conftest.$ac_ext |
---|
4601 | CC=$ac_save_CC |
---|
4602 | |
---|
4603 | fi |
---|
4604 | # AC_CACHE_VAL |
---|
4605 | case "x$ac_cv_prog_cc_c89" in |
---|
4606 | x) |
---|
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4608 | $as_echo "none needed" >&6; } ;; |
---|
4609 | xno) |
---|
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4611 | $as_echo "unsupported" >&6; } ;; |
---|
4612 | *) |
---|
4613 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4615 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4616 | esac |
---|
4617 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4618 | |
---|
4619 | fi |
---|
4620 | |
---|
4621 | ac_ext=c |
---|
4622 | ac_cpp='$CPP $CPPFLAGS' |
---|
4623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4626 | |
---|
4627 | depcc="$CC" am_compiler_list= |
---|
4628 | |
---|
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4630 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4631 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4632 | $as_echo_n "(cached) " >&6 |
---|
4633 | else |
---|
4634 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4635 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4636 | # making bogus files that we don't know about and never remove. For |
---|
4637 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4638 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4639 | # in D'. |
---|
4640 | rm -rf conftest.dir |
---|
4641 | mkdir conftest.dir |
---|
4642 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4643 | # using a relative directory. |
---|
4644 | cp "$am_depcomp" conftest.dir |
---|
4645 | cd conftest.dir |
---|
4646 | # We will build objects and dependencies in a subdirectory because |
---|
4647 | # it helps to detect inapplicable dependency modes. For instance |
---|
4648 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4649 | # side effect of compilation, but ICC will put the dependencies in |
---|
4650 | # the current directory while Tru64 will put them in the object |
---|
4651 | # directory. |
---|
4652 | mkdir sub |
---|
4653 | |
---|
4654 | am_cv_CC_dependencies_compiler_type=none |
---|
4655 | if test "$am_compiler_list" = ""; then |
---|
4656 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4657 | fi |
---|
4658 | am__universal=false |
---|
4659 | case " $depcc " in #( |
---|
4660 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4661 | esac |
---|
4662 | |
---|
4663 | for depmode in $am_compiler_list; do |
---|
4664 | # Setup a source with many dependencies, because some compilers |
---|
4665 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4666 | # we should not choose a depcomp mode which is confused by this. |
---|
4667 | # |
---|
4668 | # We need to recreate these files for each test, as the compiler may |
---|
4669 | # overwrite some of them when testing with obscure command lines. |
---|
4670 | # This happens at least with the AIX C compiler. |
---|
4671 | : > sub/conftest.c |
---|
4672 | for i in 1 2 3 4 5 6; do |
---|
4673 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4674 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4675 | # Solaris 8's {/usr,}/bin/sh. |
---|
4676 | touch sub/conftst$i.h |
---|
4677 | done |
---|
4678 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4679 | |
---|
4680 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4681 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4682 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4683 | # versions had trouble with output in subdirs |
---|
4684 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4685 | am__minus_obj="-o $am__obj" |
---|
4686 | case $depmode in |
---|
4687 | gcc) |
---|
4688 | # This depmode causes a compiler race in universal mode. |
---|
4689 | test "$am__universal" = false || continue |
---|
4690 | ;; |
---|
4691 | nosideeffect) |
---|
4692 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4693 | # only be used when explicitly requested |
---|
4694 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4695 | continue |
---|
4696 | else |
---|
4697 | break |
---|
4698 | fi |
---|
4699 | ;; |
---|
4700 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4701 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4702 | # not run yet. These depmodes are late enough in the game, and |
---|
4703 | # so weak that their functioning should not be impacted. |
---|
4704 | am__obj=conftest.${OBJEXT-o} |
---|
4705 | am__minus_obj= |
---|
4706 | ;; |
---|
4707 | none) break ;; |
---|
4708 | esac |
---|
4709 | if depmode=$depmode \ |
---|
4710 | source=sub/conftest.c object=$am__obj \ |
---|
4711 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4712 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4713 | >/dev/null 2>conftest.err && |
---|
4714 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4715 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4716 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4717 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4718 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4719 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4720 | # that says an option was ignored or not supported. |
---|
4721 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4722 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4723 | # The diagnosis changed in icc 8.0: |
---|
4724 | # icc: Command line remark: option '-MP' not supported |
---|
4725 | if (grep 'ignoring option' conftest.err || |
---|
4726 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4727 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4728 | break |
---|
4729 | fi |
---|
4730 | fi |
---|
4731 | done |
---|
4732 | |
---|
4733 | cd .. |
---|
4734 | rm -rf conftest.dir |
---|
4735 | else |
---|
4736 | am_cv_CC_dependencies_compiler_type=none |
---|
4737 | fi |
---|
4738 | |
---|
4739 | fi |
---|
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4741 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4742 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4743 | |
---|
4744 | if |
---|
4745 | test "x$enable_dependency_tracking" != xno \ |
---|
4746 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4747 | am__fastdepCC_TRUE= |
---|
4748 | am__fastdepCC_FALSE='#' |
---|
4749 | else |
---|
4750 | am__fastdepCC_TRUE='#' |
---|
4751 | am__fastdepCC_FALSE= |
---|
4752 | fi |
---|
4753 | |
---|
4754 | |
---|
4755 | # By default we simply use the C compiler to build assembly code. |
---|
4756 | |
---|
4757 | test "${CCAS+set}" = set || CCAS=$CC |
---|
4758 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
---|
4759 | |
---|
4760 | |
---|
4761 | |
---|
4762 | depcc="$CCAS" am_compiler_list= |
---|
4763 | |
---|
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4765 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4766 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
---|
4767 | $as_echo_n "(cached) " >&6 |
---|
4768 | else |
---|
4769 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4770 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4771 | # making bogus files that we don't know about and never remove. For |
---|
4772 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4773 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4774 | # in D'. |
---|
4775 | rm -rf conftest.dir |
---|
4776 | mkdir conftest.dir |
---|
4777 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4778 | # using a relative directory. |
---|
4779 | cp "$am_depcomp" conftest.dir |
---|
4780 | cd conftest.dir |
---|
4781 | # We will build objects and dependencies in a subdirectory because |
---|
4782 | # it helps to detect inapplicable dependency modes. For instance |
---|
4783 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4784 | # side effect of compilation, but ICC will put the dependencies in |
---|
4785 | # the current directory while Tru64 will put them in the object |
---|
4786 | # directory. |
---|
4787 | mkdir sub |
---|
4788 | |
---|
4789 | am_cv_CCAS_dependencies_compiler_type=none |
---|
4790 | if test "$am_compiler_list" = ""; then |
---|
4791 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4792 | fi |
---|
4793 | am__universal=false |
---|
4794 | |
---|
4795 | |
---|
4796 | for depmode in $am_compiler_list; do |
---|
4797 | # Setup a source with many dependencies, because some compilers |
---|
4798 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4799 | # we should not choose a depcomp mode which is confused by this. |
---|
4800 | # |
---|
4801 | # We need to recreate these files for each test, as the compiler may |
---|
4802 | # overwrite some of them when testing with obscure command lines. |
---|
4803 | # This happens at least with the AIX C compiler. |
---|
4804 | : > sub/conftest.c |
---|
4805 | for i in 1 2 3 4 5 6; do |
---|
4806 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4807 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4808 | # Solaris 8's {/usr,}/bin/sh. |
---|
4809 | touch sub/conftst$i.h |
---|
4810 | done |
---|
4811 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4812 | |
---|
4813 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4814 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4815 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4816 | # versions had trouble with output in subdirs |
---|
4817 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4818 | am__minus_obj="-o $am__obj" |
---|
4819 | case $depmode in |
---|
4820 | gcc) |
---|
4821 | # This depmode causes a compiler race in universal mode. |
---|
4822 | test "$am__universal" = false || continue |
---|
4823 | ;; |
---|
4824 | nosideeffect) |
---|
4825 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4826 | # only be used when explicitly requested |
---|
4827 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4828 | continue |
---|
4829 | else |
---|
4830 | break |
---|
4831 | fi |
---|
4832 | ;; |
---|
4833 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4834 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4835 | # not run yet. These depmodes are late enough in the game, and |
---|
4836 | # so weak that their functioning should not be impacted. |
---|
4837 | am__obj=conftest.${OBJEXT-o} |
---|
4838 | am__minus_obj= |
---|
4839 | ;; |
---|
4840 | none) break ;; |
---|
4841 | esac |
---|
4842 | if depmode=$depmode \ |
---|
4843 | source=sub/conftest.c object=$am__obj \ |
---|
4844 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4845 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4846 | >/dev/null 2>conftest.err && |
---|
4847 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4848 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4849 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4850 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4851 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4852 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4853 | # that says an option was ignored or not supported. |
---|
4854 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4855 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4856 | # The diagnosis changed in icc 8.0: |
---|
4857 | # icc: Command line remark: option '-MP' not supported |
---|
4858 | if (grep 'ignoring option' conftest.err || |
---|
4859 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4860 | am_cv_CCAS_dependencies_compiler_type=$depmode |
---|
4861 | break |
---|
4862 | fi |
---|
4863 | fi |
---|
4864 | done |
---|
4865 | |
---|
4866 | cd .. |
---|
4867 | rm -rf conftest.dir |
---|
4868 | else |
---|
4869 | am_cv_CCAS_dependencies_compiler_type=none |
---|
4870 | fi |
---|
4871 | |
---|
4872 | fi |
---|
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
---|
4874 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
---|
4875 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
---|
4876 | |
---|
4877 | if |
---|
4878 | test "x$enable_dependency_tracking" != xno \ |
---|
4879 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
---|
4880 | am__fastdepCCAS_TRUE= |
---|
4881 | am__fastdepCCAS_FALSE='#' |
---|
4882 | else |
---|
4883 | am__fastdepCCAS_TRUE='#' |
---|
4884 | am__fastdepCCAS_FALSE= |
---|
4885 | fi |
---|
4886 | |
---|
4887 | |
---|
4888 | if test "x$CC" != xcc; then |
---|
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
---|
4890 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
---|
4891 | else |
---|
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
---|
4893 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
---|
4894 | fi |
---|
4895 | set dummy $CC; ac_cc=`$as_echo "$2" | |
---|
4896 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4897 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
---|
4898 | $as_echo_n "(cached) " >&6 |
---|
4899 | else |
---|
4900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4901 | /* end confdefs.h. */ |
---|
4902 | |
---|
4903 | int |
---|
4904 | main () |
---|
4905 | { |
---|
4906 | |
---|
4907 | ; |
---|
4908 | return 0; |
---|
4909 | } |
---|
4910 | _ACEOF |
---|
4911 | # Make sure it works both with $CC and with simple cc. |
---|
4912 | # We do the test twice because some compilers refuse to overwrite an |
---|
4913 | # existing .o file with -o, though they will create one. |
---|
4914 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4915 | rm -f conftest2.* |
---|
4916 | if { { case "(($ac_try" in |
---|
4917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4918 | *) ac_try_echo=$ac_try;; |
---|
4919 | esac |
---|
4920 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4921 | $as_echo "$ac_try_echo"; } >&5 |
---|
4922 | (eval "$ac_try") 2>&5 |
---|
4923 | ac_status=$? |
---|
4924 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4925 | test $ac_status = 0; } && |
---|
4926 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
4927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4928 | *) ac_try_echo=$ac_try;; |
---|
4929 | esac |
---|
4930 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4931 | $as_echo "$ac_try_echo"; } >&5 |
---|
4932 | (eval "$ac_try") 2>&5 |
---|
4933 | ac_status=$? |
---|
4934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4935 | test $ac_status = 0; }; |
---|
4936 | then |
---|
4937 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
---|
4938 | if test "x$CC" != xcc; then |
---|
4939 | # Test first that cc exists at all. |
---|
4940 | if { ac_try='cc -c conftest.$ac_ext >&5' |
---|
4941 | { { case "(($ac_try" in |
---|
4942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4943 | *) ac_try_echo=$ac_try;; |
---|
4944 | esac |
---|
4945 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4946 | $as_echo "$ac_try_echo"; } >&5 |
---|
4947 | (eval "$ac_try") 2>&5 |
---|
4948 | ac_status=$? |
---|
4949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4950 | test $ac_status = 0; }; }; then |
---|
4951 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4952 | rm -f conftest2.* |
---|
4953 | if { { case "(($ac_try" in |
---|
4954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4955 | *) ac_try_echo=$ac_try;; |
---|
4956 | esac |
---|
4957 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4958 | $as_echo "$ac_try_echo"; } >&5 |
---|
4959 | (eval "$ac_try") 2>&5 |
---|
4960 | ac_status=$? |
---|
4961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4962 | test $ac_status = 0; } && |
---|
4963 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
4964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4965 | *) ac_try_echo=$ac_try;; |
---|
4966 | esac |
---|
4967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4968 | $as_echo "$ac_try_echo"; } >&5 |
---|
4969 | (eval "$ac_try") 2>&5 |
---|
4970 | ac_status=$? |
---|
4971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4972 | test $ac_status = 0; }; |
---|
4973 | then |
---|
4974 | # cc works too. |
---|
4975 | : |
---|
4976 | else |
---|
4977 | # cc exists but doesn't like -o. |
---|
4978 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4979 | fi |
---|
4980 | fi |
---|
4981 | fi |
---|
4982 | else |
---|
4983 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4984 | fi |
---|
4985 | rm -f core conftest* |
---|
4986 | |
---|
4987 | fi |
---|
4988 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
---|
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
4990 | $as_echo "yes" >&6; } |
---|
4991 | else |
---|
4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4993 | $as_echo "no" >&6; } |
---|
4994 | |
---|
4995 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
---|
4996 | |
---|
4997 | fi |
---|
4998 | |
---|
4999 | # FIXME: we rely on the cache variable name because |
---|
5000 | # there is no other way. |
---|
5001 | set dummy $CC |
---|
5002 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
5003 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
---|
5004 | if test "$am_t" != yes; then |
---|
5005 | # Losing compiler, so override with the script. |
---|
5006 | # FIXME: It is wrong to rewrite CC. |
---|
5007 | # But if we don't then we get into trouble of one sort or another. |
---|
5008 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
5009 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
5010 | CC="$am_aux_dir/compile $CC" |
---|
5011 | fi |
---|
5012 | |
---|
5013 | # deprecated |
---|
5014 | # These are often not installed and people miss seeing the "no", so stop the configure. |
---|
5015 | for ac_prog in 'bison -y' byacc |
---|
5016 | do |
---|
5017 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5018 | set dummy $ac_prog; ac_word=$2 |
---|
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5020 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5021 | if ${ac_cv_prog_YACC+:} false; then : |
---|
5022 | $as_echo_n "(cached) " >&6 |
---|
5023 | else |
---|
5024 | if test -n "$YACC"; then |
---|
5025 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
5026 | else |
---|
5027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5028 | for as_dir in $PATH |
---|
5029 | do |
---|
5030 | IFS=$as_save_IFS |
---|
5031 | test -z "$as_dir" && as_dir=. |
---|
5032 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5034 | ac_cv_prog_YACC="$ac_prog" |
---|
5035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5036 | break 2 |
---|
5037 | fi |
---|
5038 | done |
---|
5039 | done |
---|
5040 | IFS=$as_save_IFS |
---|
5041 | |
---|
5042 | fi |
---|
5043 | fi |
---|
5044 | YACC=$ac_cv_prog_YACC |
---|
5045 | if test -n "$YACC"; then |
---|
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
---|
5047 | $as_echo "$YACC" >&6; } |
---|
5048 | else |
---|
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5050 | $as_echo "no" >&6; } |
---|
5051 | fi |
---|
5052 | |
---|
5053 | |
---|
5054 | test -n "$YACC" && break |
---|
5055 | done |
---|
5056 | test -n "$YACC" || YACC="yacc" |
---|
5057 | |
---|
5058 | if test "${YACC}" = "yacc" ; then echo "Error: bison required." ; exit 1 ; fi |
---|
5059 | |
---|
5060 | for ac_prog in flex lex |
---|
5061 | do |
---|
5062 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5063 | set dummy $ac_prog; ac_word=$2 |
---|
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5065 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5066 | if ${ac_cv_prog_LEX+:} false; then : |
---|
5067 | $as_echo_n "(cached) " >&6 |
---|
5068 | else |
---|
5069 | if test -n "$LEX"; then |
---|
5070 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
5071 | else |
---|
5072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5073 | for as_dir in $PATH |
---|
5074 | do |
---|
5075 | IFS=$as_save_IFS |
---|
5076 | test -z "$as_dir" && as_dir=. |
---|
5077 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5079 | ac_cv_prog_LEX="$ac_prog" |
---|
5080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5081 | break 2 |
---|
5082 | fi |
---|
5083 | done |
---|
5084 | done |
---|
5085 | IFS=$as_save_IFS |
---|
5086 | |
---|
5087 | fi |
---|
5088 | fi |
---|
5089 | LEX=$ac_cv_prog_LEX |
---|
5090 | if test -n "$LEX"; then |
---|
5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
---|
5092 | $as_echo "$LEX" >&6; } |
---|
5093 | else |
---|
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5095 | $as_echo "no" >&6; } |
---|
5096 | fi |
---|
5097 | |
---|
5098 | |
---|
5099 | test -n "$LEX" && break |
---|
5100 | done |
---|
5101 | test -n "$LEX" || LEX=":" |
---|
5102 | |
---|
5103 | if test "x$LEX" != "x:"; then |
---|
5104 | cat >conftest.l <<_ACEOF |
---|
5105 | %% |
---|
5106 | a { ECHO; } |
---|
5107 | b { REJECT; } |
---|
5108 | c { yymore (); } |
---|
5109 | d { yyless (1); } |
---|
5110 | e { yyless (input () != 0); } |
---|
5111 | f { unput (yytext[0]); } |
---|
5112 | . { BEGIN INITIAL; } |
---|
5113 | %% |
---|
5114 | #ifdef YYTEXT_POINTER |
---|
5115 | extern char *yytext; |
---|
5116 | #endif |
---|
5117 | int |
---|
5118 | main (void) |
---|
5119 | { |
---|
5120 | return ! yylex () + ! yywrap (); |
---|
5121 | } |
---|
5122 | _ACEOF |
---|
5123 | { { ac_try="$LEX conftest.l" |
---|
5124 | case "(($ac_try" in |
---|
5125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5126 | *) ac_try_echo=$ac_try;; |
---|
5127 | esac |
---|
5128 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5129 | $as_echo "$ac_try_echo"; } >&5 |
---|
5130 | (eval "$LEX conftest.l") 2>&5 |
---|
5131 | ac_status=$? |
---|
5132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5133 | test $ac_status = 0; } |
---|
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
---|
5135 | $as_echo_n "checking lex output file root... " >&6; } |
---|
5136 | if ${ac_cv_prog_lex_root+:} false; then : |
---|
5137 | $as_echo_n "(cached) " >&6 |
---|
5138 | else |
---|
5139 | |
---|
5140 | if test -f lex.yy.c; then |
---|
5141 | ac_cv_prog_lex_root=lex.yy |
---|
5142 | elif test -f lexyy.c; then |
---|
5143 | ac_cv_prog_lex_root=lexyy |
---|
5144 | else |
---|
5145 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
---|
5146 | fi |
---|
5147 | fi |
---|
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
---|
5149 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
5150 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
5151 | |
---|
5152 | if test -z "${LEXLIB+set}"; then |
---|
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
---|
5154 | $as_echo_n "checking lex library... " >&6; } |
---|
5155 | if ${ac_cv_lib_lex+:} false; then : |
---|
5156 | $as_echo_n "(cached) " >&6 |
---|
5157 | else |
---|
5158 | |
---|
5159 | ac_save_LIBS=$LIBS |
---|
5160 | ac_cv_lib_lex='none needed' |
---|
5161 | for ac_lib in '' -lfl -ll; do |
---|
5162 | LIBS="$ac_lib $ac_save_LIBS" |
---|
5163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5164 | /* end confdefs.h. */ |
---|
5165 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5166 | _ACEOF |
---|
5167 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5168 | ac_cv_lib_lex=$ac_lib |
---|
5169 | fi |
---|
5170 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5171 | conftest$ac_exeext conftest.$ac_ext |
---|
5172 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
5173 | done |
---|
5174 | LIBS=$ac_save_LIBS |
---|
5175 | |
---|
5176 | fi |
---|
5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
---|
5178 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
5179 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
5180 | fi |
---|
5181 | |
---|
5182 | |
---|
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
---|
5184 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
5185 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
---|
5186 | $as_echo_n "(cached) " >&6 |
---|
5187 | else |
---|
5188 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
5189 | # default is implementation-dependent. Figure out which it is, since |
---|
5190 | # not all implementations provide the %pointer and %array declarations. |
---|
5191 | ac_cv_prog_lex_yytext_pointer=no |
---|
5192 | ac_save_LIBS=$LIBS |
---|
5193 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
5194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5195 | /* end confdefs.h. */ |
---|
5196 | |
---|
5197 | #define YYTEXT_POINTER 1 |
---|
5198 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5199 | _ACEOF |
---|
5200 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5201 | ac_cv_prog_lex_yytext_pointer=yes |
---|
5202 | fi |
---|
5203 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5204 | conftest$ac_exeext conftest.$ac_ext |
---|
5205 | LIBS=$ac_save_LIBS |
---|
5206 | |
---|
5207 | fi |
---|
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
5209 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
5210 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
5211 | |
---|
5212 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
---|
5213 | |
---|
5214 | fi |
---|
5215 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
5216 | |
---|
5217 | fi |
---|
5218 | if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi |
---|
5219 | |
---|
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
5221 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
5222 | set x ${MAKE-make} |
---|
5223 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
5224 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
5225 | $as_echo_n "(cached) " >&6 |
---|
5226 | else |
---|
5227 | cat >conftest.make <<\_ACEOF |
---|
5228 | SHELL = /bin/sh |
---|
5229 | all: |
---|
5230 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
5231 | _ACEOF |
---|
5232 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
5233 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
5234 | *@@@%%%=?*=@@@%%%*) |
---|
5235 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
5236 | *) |
---|
5237 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
5238 | esac |
---|
5239 | rm -f conftest.make |
---|
5240 | fi |
---|
5241 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5243 | $as_echo "yes" >&6; } |
---|
5244 | SET_MAKE= |
---|
5245 | else |
---|
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5247 | $as_echo "no" >&6; } |
---|
5248 | SET_MAKE="MAKE=${MAKE-make}" |
---|
5249 | fi |
---|
5250 | |
---|
5251 | if test -n "$ac_tool_prefix"; then |
---|
5252 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
5253 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5255 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5256 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
5257 | $as_echo_n "(cached) " >&6 |
---|
5258 | else |
---|
5259 | if test -n "$RANLIB"; then |
---|
5260 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
5261 | else |
---|
5262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5263 | for as_dir in $PATH |
---|
5264 | do |
---|
5265 | IFS=$as_save_IFS |
---|
5266 | test -z "$as_dir" && as_dir=. |
---|
5267 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5269 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
5270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5271 | break 2 |
---|
5272 | fi |
---|
5273 | done |
---|
5274 | done |
---|
5275 | IFS=$as_save_IFS |
---|
5276 | |
---|
5277 | fi |
---|
5278 | fi |
---|
5279 | RANLIB=$ac_cv_prog_RANLIB |
---|
5280 | if test -n "$RANLIB"; then |
---|
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
5282 | $as_echo "$RANLIB" >&6; } |
---|
5283 | else |
---|
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5285 | $as_echo "no" >&6; } |
---|
5286 | fi |
---|
5287 | |
---|
5288 | |
---|
5289 | fi |
---|
5290 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
5291 | ac_ct_RANLIB=$RANLIB |
---|
5292 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
5293 | set dummy ranlib; ac_word=$2 |
---|
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5295 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5296 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
5297 | $as_echo_n "(cached) " >&6 |
---|
5298 | else |
---|
5299 | if test -n "$ac_ct_RANLIB"; then |
---|
5300 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
5301 | else |
---|
5302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5303 | for as_dir in $PATH |
---|
5304 | do |
---|
5305 | IFS=$as_save_IFS |
---|
5306 | test -z "$as_dir" && as_dir=. |
---|
5307 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5309 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
5310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5311 | break 2 |
---|
5312 | fi |
---|
5313 | done |
---|
5314 | done |
---|
5315 | IFS=$as_save_IFS |
---|
5316 | |
---|
5317 | fi |
---|
5318 | fi |
---|
5319 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
5320 | if test -n "$ac_ct_RANLIB"; then |
---|
5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
5322 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
5323 | else |
---|
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5325 | $as_echo "no" >&6; } |
---|
5326 | fi |
---|
5327 | |
---|
5328 | if test "x$ac_ct_RANLIB" = x; then |
---|
5329 | RANLIB=":" |
---|
5330 | else |
---|
5331 | case $cross_compiling:$ac_tool_warned in |
---|
5332 | yes:) |
---|
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5334 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5335 | ac_tool_warned=yes ;; |
---|
5336 | esac |
---|
5337 | RANLIB=$ac_ct_RANLIB |
---|
5338 | fi |
---|
5339 | else |
---|
5340 | RANLIB="$ac_cv_prog_RANLIB" |
---|
5341 | fi |
---|
5342 | |
---|
5343 | |
---|
5344 | # Checks for libraries. |
---|
5345 | |
---|
5346 | # Checks for header files. |
---|
5347 | ac_ext=c |
---|
5348 | ac_cpp='$CPP $CPPFLAGS' |
---|
5349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
5353 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
5354 | # On Suns, sometimes $CPP names a directory. |
---|
5355 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5356 | CPP= |
---|
5357 | fi |
---|
5358 | if test -z "$CPP"; then |
---|
5359 | if ${ac_cv_prog_CPP+:} false; then : |
---|
5360 | $as_echo_n "(cached) " >&6 |
---|
5361 | else |
---|
5362 | # Double quotes because CPP needs to be expanded |
---|
5363 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5364 | do |
---|
5365 | ac_preproc_ok=false |
---|
5366 | for ac_c_preproc_warn_flag in '' yes |
---|
5367 | do |
---|
5368 | # Use a header file that comes with gcc, so configuring glibc |
---|
5369 | # with a fresh cross-compiler works. |
---|
5370 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5371 | # <limits.h> exists even on freestanding compilers. |
---|
5372 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5373 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5375 | /* end confdefs.h. */ |
---|
5376 | #ifdef __STDC__ |
---|
5377 | # include <limits.h> |
---|
5378 | #else |
---|
5379 | # include <assert.h> |
---|
5380 | #endif |
---|
5381 | Syntax error |
---|
5382 | _ACEOF |
---|
5383 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5384 | |
---|
5385 | else |
---|
5386 | # Broken: fails on valid input. |
---|
5387 | continue |
---|
5388 | fi |
---|
5389 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5390 | |
---|
5391 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5392 | # can be detected and how. |
---|
5393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5394 | /* end confdefs.h. */ |
---|
5395 | #include <ac_nonexistent.h> |
---|
5396 | _ACEOF |
---|
5397 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5398 | # Broken: success on invalid input. |
---|
5399 | continue |
---|
5400 | else |
---|
5401 | # Passes both tests. |
---|
5402 | ac_preproc_ok=: |
---|
5403 | break |
---|
5404 | fi |
---|
5405 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5406 | |
---|
5407 | done |
---|
5408 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5409 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5410 | if $ac_preproc_ok; then : |
---|
5411 | break |
---|
5412 | fi |
---|
5413 | |
---|
5414 | done |
---|
5415 | ac_cv_prog_CPP=$CPP |
---|
5416 | |
---|
5417 | fi |
---|
5418 | CPP=$ac_cv_prog_CPP |
---|
5419 | else |
---|
5420 | ac_cv_prog_CPP=$CPP |
---|
5421 | fi |
---|
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
5423 | $as_echo "$CPP" >&6; } |
---|
5424 | ac_preproc_ok=false |
---|
5425 | for ac_c_preproc_warn_flag in '' yes |
---|
5426 | do |
---|
5427 | # Use a header file that comes with gcc, so configuring glibc |
---|
5428 | # with a fresh cross-compiler works. |
---|
5429 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5430 | # <limits.h> exists even on freestanding compilers. |
---|
5431 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5432 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5434 | /* end confdefs.h. */ |
---|
5435 | #ifdef __STDC__ |
---|
5436 | # include <limits.h> |
---|
5437 | #else |
---|
5438 | # include <assert.h> |
---|
5439 | #endif |
---|
5440 | Syntax error |
---|
5441 | _ACEOF |
---|
5442 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5443 | |
---|
5444 | else |
---|
5445 | # Broken: fails on valid input. |
---|
5446 | continue |
---|
5447 | fi |
---|
5448 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5449 | |
---|
5450 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5451 | # can be detected and how. |
---|
5452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5453 | /* end confdefs.h. */ |
---|
5454 | #include <ac_nonexistent.h> |
---|
5455 | _ACEOF |
---|
5456 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5457 | # Broken: success on invalid input. |
---|
5458 | continue |
---|
5459 | else |
---|
5460 | # Passes both tests. |
---|
5461 | ac_preproc_ok=: |
---|
5462 | break |
---|
5463 | fi |
---|
5464 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5465 | |
---|
5466 | done |
---|
5467 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5468 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5469 | if $ac_preproc_ok; then : |
---|
5470 | |
---|
5471 | else |
---|
5472 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5474 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
5475 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5476 | fi |
---|
5477 | |
---|
5478 | ac_ext=c |
---|
5479 | ac_cpp='$CPP $CPPFLAGS' |
---|
5480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5483 | |
---|
5484 | |
---|
5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5486 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5487 | if ${ac_cv_path_GREP+:} false; then : |
---|
5488 | $as_echo_n "(cached) " >&6 |
---|
5489 | else |
---|
5490 | if test -z "$GREP"; then |
---|
5491 | ac_path_GREP_found=false |
---|
5492 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5494 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5495 | do |
---|
5496 | IFS=$as_save_IFS |
---|
5497 | test -z "$as_dir" && as_dir=. |
---|
5498 | for ac_prog in grep ggrep; do |
---|
5499 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5500 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5501 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
5502 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5503 | # Check for GNU $ac_path_GREP |
---|
5504 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5505 | *GNU*) |
---|
5506 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5507 | *) |
---|
5508 | ac_count=0 |
---|
5509 | $as_echo_n 0123456789 >"conftest.in" |
---|
5510 | while : |
---|
5511 | do |
---|
5512 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5513 | mv "conftest.tmp" "conftest.in" |
---|
5514 | cp "conftest.in" "conftest.nl" |
---|
5515 | $as_echo 'GREP' >> "conftest.nl" |
---|
5516 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5517 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5518 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5519 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5520 | # Best one so far, save it but keep looking for a better one |
---|
5521 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5522 | ac_path_GREP_max=$ac_count |
---|
5523 | fi |
---|
5524 | # 10*(2^10) chars as input seems more than enough |
---|
5525 | test $ac_count -gt 10 && break |
---|
5526 | done |
---|
5527 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5528 | esac |
---|
5529 | |
---|
5530 | $ac_path_GREP_found && break 3 |
---|
5531 | done |
---|
5532 | done |
---|
5533 | done |
---|
5534 | IFS=$as_save_IFS |
---|
5535 | if test -z "$ac_cv_path_GREP"; then |
---|
5536 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5537 | fi |
---|
5538 | else |
---|
5539 | ac_cv_path_GREP=$GREP |
---|
5540 | fi |
---|
5541 | |
---|
5542 | fi |
---|
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5544 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5545 | GREP="$ac_cv_path_GREP" |
---|
5546 | |
---|
5547 | |
---|
5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5549 | $as_echo_n "checking for egrep... " >&6; } |
---|
5550 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5551 | $as_echo_n "(cached) " >&6 |
---|
5552 | else |
---|
5553 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5554 | then ac_cv_path_EGREP="$GREP -E" |
---|
5555 | else |
---|
5556 | if test -z "$EGREP"; then |
---|
5557 | ac_path_EGREP_found=false |
---|
5558 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5560 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5561 | do |
---|
5562 | IFS=$as_save_IFS |
---|
5563 | test -z "$as_dir" && as_dir=. |
---|
5564 | for ac_prog in egrep; do |
---|
5565 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5566 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5567 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
5568 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5569 | # Check for GNU $ac_path_EGREP |
---|
5570 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5571 | *GNU*) |
---|
5572 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5573 | *) |
---|
5574 | ac_count=0 |
---|
5575 | $as_echo_n 0123456789 >"conftest.in" |
---|
5576 | while : |
---|
5577 | do |
---|
5578 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5579 | mv "conftest.tmp" "conftest.in" |
---|
5580 | cp "conftest.in" "conftest.nl" |
---|
5581 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5582 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5583 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5584 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5585 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5586 | # Best one so far, save it but keep looking for a better one |
---|
5587 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5588 | ac_path_EGREP_max=$ac_count |
---|
5589 | fi |
---|
5590 | # 10*(2^10) chars as input seems more than enough |
---|
5591 | test $ac_count -gt 10 && break |
---|
5592 | done |
---|
5593 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5594 | esac |
---|
5595 | |
---|
5596 | $ac_path_EGREP_found && break 3 |
---|
5597 | done |
---|
5598 | done |
---|
5599 | done |
---|
5600 | IFS=$as_save_IFS |
---|
5601 | if test -z "$ac_cv_path_EGREP"; then |
---|
5602 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5603 | fi |
---|
5604 | else |
---|
5605 | ac_cv_path_EGREP=$EGREP |
---|
5606 | fi |
---|
5607 | |
---|
5608 | fi |
---|
5609 | fi |
---|
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5611 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5612 | EGREP="$ac_cv_path_EGREP" |
---|
5613 | |
---|
5614 | |
---|
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
5616 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
5617 | if ${ac_cv_header_stdc+:} false; then : |
---|
5618 | $as_echo_n "(cached) " >&6 |
---|
5619 | else |
---|
5620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5621 | /* end confdefs.h. */ |
---|
5622 | #include <stdlib.h> |
---|
5623 | #include <stdarg.h> |
---|
5624 | #include <string.h> |
---|
5625 | #include <float.h> |
---|
5626 | |
---|
5627 | int |
---|
5628 | main () |
---|
5629 | { |
---|
5630 | |
---|
5631 | ; |
---|
5632 | return 0; |
---|
5633 | } |
---|
5634 | _ACEOF |
---|
5635 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5636 | ac_cv_header_stdc=yes |
---|
5637 | else |
---|
5638 | ac_cv_header_stdc=no |
---|
5639 | fi |
---|
5640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5641 | |
---|
5642 | if test $ac_cv_header_stdc = yes; then |
---|
5643 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5645 | /* end confdefs.h. */ |
---|
5646 | #include <string.h> |
---|
5647 | |
---|
5648 | _ACEOF |
---|
5649 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5650 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
5651 | |
---|
5652 | else |
---|
5653 | ac_cv_header_stdc=no |
---|
5654 | fi |
---|
5655 | rm -f conftest* |
---|
5656 | |
---|
5657 | fi |
---|
5658 | |
---|
5659 | if test $ac_cv_header_stdc = yes; then |
---|
5660 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5662 | /* end confdefs.h. */ |
---|
5663 | #include <stdlib.h> |
---|
5664 | |
---|
5665 | _ACEOF |
---|
5666 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5667 | $EGREP "free" >/dev/null 2>&1; then : |
---|
5668 | |
---|
5669 | else |
---|
5670 | ac_cv_header_stdc=no |
---|
5671 | fi |
---|
5672 | rm -f conftest* |
---|
5673 | |
---|
5674 | fi |
---|
5675 | |
---|
5676 | if test $ac_cv_header_stdc = yes; then |
---|
5677 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5678 | if test "$cross_compiling" = yes; then : |
---|
5679 | : |
---|
5680 | else |
---|
5681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5682 | /* end confdefs.h. */ |
---|
5683 | #include <ctype.h> |
---|
5684 | #include <stdlib.h> |
---|
5685 | #if ((' ' & 0x0FF) == 0x020) |
---|
5686 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5687 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5688 | #else |
---|
5689 | # define ISLOWER(c) \ |
---|
5690 | (('a' <= (c) && (c) <= 'i') \ |
---|
5691 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5692 | || ('s' <= (c) && (c) <= 'z')) |
---|
5693 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5694 | #endif |
---|
5695 | |
---|
5696 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5697 | int |
---|
5698 | main () |
---|
5699 | { |
---|
5700 | int i; |
---|
5701 | for (i = 0; i < 256; i++) |
---|
5702 | if (XOR (islower (i), ISLOWER (i)) |
---|
5703 | || toupper (i) != TOUPPER (i)) |
---|
5704 | return 2; |
---|
5705 | return 0; |
---|
5706 | } |
---|
5707 | _ACEOF |
---|
5708 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5709 | |
---|
5710 | else |
---|
5711 | ac_cv_header_stdc=no |
---|
5712 | fi |
---|
5713 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5714 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5715 | fi |
---|
5716 | |
---|
5717 | fi |
---|
5718 | fi |
---|
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
5720 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
5721 | if test $ac_cv_header_stdc = yes; then |
---|
5722 | |
---|
5723 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
5724 | |
---|
5725 | fi |
---|
5726 | |
---|
5727 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5728 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5729 | inttypes.h stdint.h unistd.h |
---|
5730 | do : |
---|
5731 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5732 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
5733 | " |
---|
5734 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5735 | cat >>confdefs.h <<_ACEOF |
---|
5736 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5737 | _ACEOF |
---|
5738 | |
---|
5739 | fi |
---|
5740 | |
---|
5741 | done |
---|
5742 | |
---|
5743 | |
---|
5744 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5745 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5746 | |
---|
5747 | else |
---|
5748 | |
---|
5749 | cat >>confdefs.h <<_ACEOF |
---|
5750 | #define size_t unsigned int |
---|
5751 | _ACEOF |
---|
5752 | |
---|
5753 | fi |
---|
5754 | |
---|
5755 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
5756 | # for constant arguments. Useless! |
---|
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
---|
5758 | $as_echo_n "checking for working alloca.h... " >&6; } |
---|
5759 | if ${ac_cv_working_alloca_h+:} false; then : |
---|
5760 | $as_echo_n "(cached) " >&6 |
---|
5761 | else |
---|
5762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5763 | /* end confdefs.h. */ |
---|
5764 | #include <alloca.h> |
---|
5765 | int |
---|
5766 | main () |
---|
5767 | { |
---|
5768 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
5769 | if (p) return 0; |
---|
5770 | ; |
---|
5771 | return 0; |
---|
5772 | } |
---|
5773 | _ACEOF |
---|
5774 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5775 | ac_cv_working_alloca_h=yes |
---|
5776 | else |
---|
5777 | ac_cv_working_alloca_h=no |
---|
5778 | fi |
---|
5779 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5780 | conftest$ac_exeext conftest.$ac_ext |
---|
5781 | fi |
---|
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
---|
5783 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
---|
5784 | if test $ac_cv_working_alloca_h = yes; then |
---|
5785 | |
---|
5786 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
---|
5787 | |
---|
5788 | fi |
---|
5789 | |
---|
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
---|
5791 | $as_echo_n "checking for alloca... " >&6; } |
---|
5792 | if ${ac_cv_func_alloca_works+:} false; then : |
---|
5793 | $as_echo_n "(cached) " >&6 |
---|
5794 | else |
---|
5795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5796 | /* end confdefs.h. */ |
---|
5797 | #ifdef __GNUC__ |
---|
5798 | # define alloca __builtin_alloca |
---|
5799 | #else |
---|
5800 | # ifdef _MSC_VER |
---|
5801 | # include <malloc.h> |
---|
5802 | # define alloca _alloca |
---|
5803 | # else |
---|
5804 | # ifdef HAVE_ALLOCA_H |
---|
5805 | # include <alloca.h> |
---|
5806 | # else |
---|
5807 | # ifdef _AIX |
---|
5808 | #pragma alloca |
---|
5809 | # else |
---|
5810 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
5811 | void *alloca (size_t); |
---|
5812 | # endif |
---|
5813 | # endif |
---|
5814 | # endif |
---|
5815 | # endif |
---|
5816 | #endif |
---|
5817 | |
---|
5818 | int |
---|
5819 | main () |
---|
5820 | { |
---|
5821 | char *p = (char *) alloca (1); |
---|
5822 | if (p) return 0; |
---|
5823 | ; |
---|
5824 | return 0; |
---|
5825 | } |
---|
5826 | _ACEOF |
---|
5827 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5828 | ac_cv_func_alloca_works=yes |
---|
5829 | else |
---|
5830 | ac_cv_func_alloca_works=no |
---|
5831 | fi |
---|
5832 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5833 | conftest$ac_exeext conftest.$ac_ext |
---|
5834 | fi |
---|
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
---|
5836 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
---|
5837 | |
---|
5838 | if test $ac_cv_func_alloca_works = yes; then |
---|
5839 | |
---|
5840 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
---|
5841 | |
---|
5842 | else |
---|
5843 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
5844 | # that cause trouble. Some versions do not even contain alloca or |
---|
5845 | # contain a buggy version. If you still want to use their alloca, |
---|
5846 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
5847 | |
---|
5848 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
5849 | |
---|
5850 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
---|
5851 | |
---|
5852 | |
---|
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
5854 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
---|
5855 | if ${ac_cv_os_cray+:} false; then : |
---|
5856 | $as_echo_n "(cached) " >&6 |
---|
5857 | else |
---|
5858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5859 | /* end confdefs.h. */ |
---|
5860 | #if defined CRAY && ! defined CRAY2 |
---|
5861 | webecray |
---|
5862 | #else |
---|
5863 | wenotbecray |
---|
5864 | #endif |
---|
5865 | |
---|
5866 | _ACEOF |
---|
5867 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5868 | $EGREP "webecray" >/dev/null 2>&1; then : |
---|
5869 | ac_cv_os_cray=yes |
---|
5870 | else |
---|
5871 | ac_cv_os_cray=no |
---|
5872 | fi |
---|
5873 | rm -f conftest* |
---|
5874 | |
---|
5875 | fi |
---|
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
---|
5877 | $as_echo "$ac_cv_os_cray" >&6; } |
---|
5878 | if test $ac_cv_os_cray = yes; then |
---|
5879 | for ac_func in _getb67 GETB67 getb67; do |
---|
5880 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5881 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5882 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5883 | |
---|
5884 | cat >>confdefs.h <<_ACEOF |
---|
5885 | #define CRAY_STACKSEG_END $ac_func |
---|
5886 | _ACEOF |
---|
5887 | |
---|
5888 | break |
---|
5889 | fi |
---|
5890 | |
---|
5891 | done |
---|
5892 | fi |
---|
5893 | |
---|
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
---|
5895 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
---|
5896 | if ${ac_cv_c_stack_direction+:} false; then : |
---|
5897 | $as_echo_n "(cached) " >&6 |
---|
5898 | else |
---|
5899 | if test "$cross_compiling" = yes; then : |
---|
5900 | ac_cv_c_stack_direction=0 |
---|
5901 | else |
---|
5902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5903 | /* end confdefs.h. */ |
---|
5904 | $ac_includes_default |
---|
5905 | int |
---|
5906 | find_stack_direction () |
---|
5907 | { |
---|
5908 | static char *addr = 0; |
---|
5909 | auto char dummy; |
---|
5910 | if (addr == 0) |
---|
5911 | { |
---|
5912 | addr = &dummy; |
---|
5913 | return find_stack_direction (); |
---|
5914 | } |
---|
5915 | else |
---|
5916 | return (&dummy > addr) ? 1 : -1; |
---|
5917 | } |
---|
5918 | |
---|
5919 | int |
---|
5920 | main () |
---|
5921 | { |
---|
5922 | return find_stack_direction () < 0; |
---|
5923 | } |
---|
5924 | _ACEOF |
---|
5925 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5926 | ac_cv_c_stack_direction=1 |
---|
5927 | else |
---|
5928 | ac_cv_c_stack_direction=-1 |
---|
5929 | fi |
---|
5930 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5931 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5932 | fi |
---|
5933 | |
---|
5934 | fi |
---|
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
---|
5936 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
---|
5937 | cat >>confdefs.h <<_ACEOF |
---|
5938 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5939 | _ACEOF |
---|
5940 | |
---|
5941 | |
---|
5942 | fi |
---|
5943 | |
---|
5944 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h |
---|
5945 | do : |
---|
5946 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5947 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
5948 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5949 | cat >>confdefs.h <<_ACEOF |
---|
5950 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5951 | _ACEOF |
---|
5952 | |
---|
5953 | fi |
---|
5954 | |
---|
5955 | done |
---|
5956 | |
---|
5957 | |
---|
5958 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
5960 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
5961 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
5962 | $as_echo_n "(cached) " >&6 |
---|
5963 | else |
---|
5964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5965 | /* end confdefs.h. */ |
---|
5966 | |
---|
5967 | #include <stdbool.h> |
---|
5968 | #ifndef bool |
---|
5969 | "error: bool is not defined" |
---|
5970 | #endif |
---|
5971 | #ifndef false |
---|
5972 | "error: false is not defined" |
---|
5973 | #endif |
---|
5974 | #if false |
---|
5975 | "error: false is not 0" |
---|
5976 | #endif |
---|
5977 | #ifndef true |
---|
5978 | "error: true is not defined" |
---|
5979 | #endif |
---|
5980 | #if true != 1 |
---|
5981 | "error: true is not 1" |
---|
5982 | #endif |
---|
5983 | #ifndef __bool_true_false_are_defined |
---|
5984 | "error: __bool_true_false_are_defined is not defined" |
---|
5985 | #endif |
---|
5986 | |
---|
5987 | struct s { _Bool s: 1; _Bool t; } s; |
---|
5988 | |
---|
5989 | char a[true == 1 ? 1 : -1]; |
---|
5990 | char b[false == 0 ? 1 : -1]; |
---|
5991 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
5992 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
5993 | /* See body of main program for 'e'. */ |
---|
5994 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
5995 | char g[true]; |
---|
5996 | char h[sizeof (_Bool)]; |
---|
5997 | char i[sizeof s.t]; |
---|
5998 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
5999 | /* The following fails for |
---|
6000 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
6001 | _Bool n[m]; |
---|
6002 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
6003 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
6004 | /* Catch a bug in an HP-UX C compiler. See |
---|
6005 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
6006 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
6007 | */ |
---|
6008 | _Bool q = true; |
---|
6009 | _Bool *pq = &q; |
---|
6010 | |
---|
6011 | int |
---|
6012 | main () |
---|
6013 | { |
---|
6014 | |
---|
6015 | bool e = &s; |
---|
6016 | *pq |= q; |
---|
6017 | *pq |= ! q; |
---|
6018 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
6019 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
6020 | + !m + !n + !o + !p + !q + !pq); |
---|
6021 | |
---|
6022 | ; |
---|
6023 | return 0; |
---|
6024 | } |
---|
6025 | _ACEOF |
---|
6026 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6027 | ac_cv_header_stdbool_h=yes |
---|
6028 | else |
---|
6029 | ac_cv_header_stdbool_h=no |
---|
6030 | fi |
---|
6031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6032 | fi |
---|
6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
6034 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
6035 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
6036 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
6037 | |
---|
6038 | cat >>confdefs.h <<_ACEOF |
---|
6039 | #define HAVE__BOOL 1 |
---|
6040 | _ACEOF |
---|
6041 | |
---|
6042 | |
---|
6043 | fi |
---|
6044 | |
---|
6045 | if test $ac_cv_header_stdbool_h = yes; then |
---|
6046 | |
---|
6047 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
6048 | |
---|
6049 | fi |
---|
6050 | |
---|
6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
6052 | $as_echo_n "checking for inline... " >&6; } |
---|
6053 | if ${ac_cv_c_inline+:} false; then : |
---|
6054 | $as_echo_n "(cached) " >&6 |
---|
6055 | else |
---|
6056 | ac_cv_c_inline=no |
---|
6057 | for ac_kw in inline __inline__ __inline; do |
---|
6058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6059 | /* end confdefs.h. */ |
---|
6060 | #ifndef __cplusplus |
---|
6061 | typedef int foo_t; |
---|
6062 | static $ac_kw foo_t static_foo () {return 0; } |
---|
6063 | $ac_kw foo_t foo () {return 0; } |
---|
6064 | #endif |
---|
6065 | |
---|
6066 | _ACEOF |
---|
6067 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6068 | ac_cv_c_inline=$ac_kw |
---|
6069 | fi |
---|
6070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6071 | test "$ac_cv_c_inline" != no && break |
---|
6072 | done |
---|
6073 | |
---|
6074 | fi |
---|
6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
6076 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
6077 | |
---|
6078 | case $ac_cv_c_inline in |
---|
6079 | inline | yes) ;; |
---|
6080 | *) |
---|
6081 | case $ac_cv_c_inline in |
---|
6082 | no) ac_val=;; |
---|
6083 | *) ac_val=$ac_cv_c_inline;; |
---|
6084 | esac |
---|
6085 | cat >>confdefs.h <<_ACEOF |
---|
6086 | #ifndef __cplusplus |
---|
6087 | #define inline $ac_val |
---|
6088 | #endif |
---|
6089 | _ACEOF |
---|
6090 | ;; |
---|
6091 | esac |
---|
6092 | |
---|
6093 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
---|
6094 | case $ac_cv_c_int16_t in #( |
---|
6095 | no|yes) ;; #( |
---|
6096 | *) |
---|
6097 | |
---|
6098 | cat >>confdefs.h <<_ACEOF |
---|
6099 | #define int16_t $ac_cv_c_int16_t |
---|
6100 | _ACEOF |
---|
6101 | ;; |
---|
6102 | esac |
---|
6103 | |
---|
6104 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
---|
6105 | case $ac_cv_c_int32_t in #( |
---|
6106 | no|yes) ;; #( |
---|
6107 | *) |
---|
6108 | |
---|
6109 | cat >>confdefs.h <<_ACEOF |
---|
6110 | #define int32_t $ac_cv_c_int32_t |
---|
6111 | _ACEOF |
---|
6112 | ;; |
---|
6113 | esac |
---|
6114 | |
---|
6115 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
---|
6116 | case $ac_cv_c_int8_t in #( |
---|
6117 | no|yes) ;; #( |
---|
6118 | *) |
---|
6119 | |
---|
6120 | cat >>confdefs.h <<_ACEOF |
---|
6121 | #define int8_t $ac_cv_c_int8_t |
---|
6122 | _ACEOF |
---|
6123 | ;; |
---|
6124 | esac |
---|
6125 | |
---|
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
---|
6127 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
---|
6128 | if ${ac_cv_c_restrict+:} false; then : |
---|
6129 | $as_echo_n "(cached) " >&6 |
---|
6130 | else |
---|
6131 | ac_cv_c_restrict=no |
---|
6132 | # The order here caters to the fact that C++ does not require restrict. |
---|
6133 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
---|
6134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6135 | /* end confdefs.h. */ |
---|
6136 | typedef int * int_ptr; |
---|
6137 | int foo (int_ptr $ac_kw ip) { |
---|
6138 | return ip[0]; |
---|
6139 | } |
---|
6140 | int |
---|
6141 | main () |
---|
6142 | { |
---|
6143 | int s[1]; |
---|
6144 | int * $ac_kw t = s; |
---|
6145 | t[0] = 0; |
---|
6146 | return foo(t) |
---|
6147 | ; |
---|
6148 | return 0; |
---|
6149 | } |
---|
6150 | _ACEOF |
---|
6151 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6152 | ac_cv_c_restrict=$ac_kw |
---|
6153 | fi |
---|
6154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6155 | test "$ac_cv_c_restrict" != no && break |
---|
6156 | done |
---|
6157 | |
---|
6158 | fi |
---|
6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
---|
6160 | $as_echo "$ac_cv_c_restrict" >&6; } |
---|
6161 | |
---|
6162 | case $ac_cv_c_restrict in |
---|
6163 | restrict) ;; |
---|
6164 | no) $as_echo "#define restrict /**/" >>confdefs.h |
---|
6165 | ;; |
---|
6166 | *) cat >>confdefs.h <<_ACEOF |
---|
6167 | #define restrict $ac_cv_c_restrict |
---|
6168 | _ACEOF |
---|
6169 | ;; |
---|
6170 | esac |
---|
6171 | |
---|
6172 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
6173 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
6174 | |
---|
6175 | else |
---|
6176 | |
---|
6177 | cat >>confdefs.h <<_ACEOF |
---|
6178 | #define size_t unsigned int |
---|
6179 | _ACEOF |
---|
6180 | |
---|
6181 | fi |
---|
6182 | |
---|
6183 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
---|
6184 | case $ac_cv_c_uint16_t in #( |
---|
6185 | no|yes) ;; #( |
---|
6186 | *) |
---|
6187 | |
---|
6188 | |
---|
6189 | cat >>confdefs.h <<_ACEOF |
---|
6190 | #define uint16_t $ac_cv_c_uint16_t |
---|
6191 | _ACEOF |
---|
6192 | ;; |
---|
6193 | esac |
---|
6194 | |
---|
6195 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
---|
6196 | case $ac_cv_c_uint32_t in #( |
---|
6197 | no|yes) ;; #( |
---|
6198 | *) |
---|
6199 | |
---|
6200 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
---|
6201 | |
---|
6202 | |
---|
6203 | cat >>confdefs.h <<_ACEOF |
---|
6204 | #define uint32_t $ac_cv_c_uint32_t |
---|
6205 | _ACEOF |
---|
6206 | ;; |
---|
6207 | esac |
---|
6208 | |
---|
6209 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
---|
6210 | case $ac_cv_c_uint8_t in #( |
---|
6211 | no|yes) ;; #( |
---|
6212 | *) |
---|
6213 | |
---|
6214 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
---|
6215 | |
---|
6216 | |
---|
6217 | cat >>confdefs.h <<_ACEOF |
---|
6218 | #define uint8_t $ac_cv_c_uint8_t |
---|
6219 | _ACEOF |
---|
6220 | ;; |
---|
6221 | esac |
---|
6222 | |
---|
6223 | |
---|
6224 | # Checks for library functions. |
---|
6225 | for ac_func in memset putenv strchr strtol |
---|
6226 | do : |
---|
6227 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6228 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
6229 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
6230 | cat >>confdefs.h <<_ACEOF |
---|
6231 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6232 | _ACEOF |
---|
6233 | |
---|
6234 | fi |
---|
6235 | done |
---|
6236 | |
---|
6237 | |
---|
6238 | 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" |
---|
6239 | |
---|
6240 | |
---|
6241 | cat >confcache <<\_ACEOF |
---|
6242 | # This file is a shell script that caches the results of configure |
---|
6243 | # tests run on this system so they can be shared between configure |
---|
6244 | # scripts and configure runs, see configure's option --config-cache. |
---|
6245 | # It is not useful on other systems. If it contains results you don't |
---|
6246 | # want to keep, you may remove or edit it. |
---|
6247 | # |
---|
6248 | # config.status only pays attention to the cache file if you give it |
---|
6249 | # the --recheck option to rerun configure. |
---|
6250 | # |
---|
6251 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6252 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6253 | # following values. |
---|
6254 | |
---|
6255 | _ACEOF |
---|
6256 | |
---|
6257 | # The following way of writing the cache mishandles newlines in values, |
---|
6258 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6259 | # So, we kill variables containing newlines. |
---|
6260 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6261 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6262 | ( |
---|
6263 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
6264 | eval ac_val=\$$ac_var |
---|
6265 | case $ac_val in #( |
---|
6266 | *${as_nl}*) |
---|
6267 | case $ac_var in #( |
---|
6268 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
6269 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
6270 | esac |
---|
6271 | case $ac_var in #( |
---|
6272 | _ | IFS | as_nl) ;; #( |
---|
6273 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
6274 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
6275 | esac ;; |
---|
6276 | esac |
---|
6277 | done |
---|
6278 | |
---|
6279 | (set) 2>&1 | |
---|
6280 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
6281 | *${as_nl}ac_space=\ *) |
---|
6282 | # `set' does not quote correctly, so add quotes: double-quote |
---|
6283 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
6284 | sed -n \ |
---|
6285 | "s/'/'\\\\''/g; |
---|
6286 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6287 | ;; #( |
---|
6288 | *) |
---|
6289 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6290 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
6291 | ;; |
---|
6292 | esac | |
---|
6293 | sort |
---|
6294 | ) | |
---|
6295 | sed ' |
---|
6296 | /^ac_cv_env_/b end |
---|
6297 | t clear |
---|
6298 | :clear |
---|
6299 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6300 | t end |
---|
6301 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6302 | :end' >>confcache |
---|
6303 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
6304 | if test -w "$cache_file"; then |
---|
6305 | if test "x$cache_file" != "x/dev/null"; then |
---|
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
6307 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
6308 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
6309 | cat confcache >"$cache_file" |
---|
6310 | else |
---|
6311 | case $cache_file in #( |
---|
6312 | */* | ?:*) |
---|
6313 | mv -f confcache "$cache_file"$$ && |
---|
6314 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
6315 | *) |
---|
6316 | mv -f confcache "$cache_file" ;; |
---|
6317 | esac |
---|
6318 | fi |
---|
6319 | fi |
---|
6320 | else |
---|
6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
6322 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
6323 | fi |
---|
6324 | fi |
---|
6325 | rm -f confcache |
---|
6326 | |
---|
6327 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6328 | # Let make expand exec_prefix. |
---|
6329 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6330 | |
---|
6331 | DEFS=-DHAVE_CONFIG_H |
---|
6332 | |
---|
6333 | ac_libobjs= |
---|
6334 | ac_ltlibobjs= |
---|
6335 | U= |
---|
6336 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6337 | # 1. Remove the extension, and $U if already installed. |
---|
6338 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
6339 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
6340 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
6341 | # will be set to the directory where LIBOBJS objects are built. |
---|
6342 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
6343 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
6344 | done |
---|
6345 | LIBOBJS=$ac_libobjs |
---|
6346 | |
---|
6347 | LTLIBOBJS=$ac_ltlibobjs |
---|
6348 | |
---|
6349 | |
---|
6350 | if test -n "$EXEEXT"; then |
---|
6351 | am__EXEEXT_TRUE= |
---|
6352 | am__EXEEXT_FALSE='#' |
---|
6353 | else |
---|
6354 | am__EXEEXT_TRUE='#' |
---|
6355 | am__EXEEXT_FALSE= |
---|
6356 | fi |
---|
6357 | |
---|
6358 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
---|
6359 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
---|
6360 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6361 | fi |
---|
6362 | if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then |
---|
6363 | as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined. |
---|
6364 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6365 | fi |
---|
6366 | if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then |
---|
6367 | as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined. |
---|
6368 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6369 | fi |
---|
6370 | if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then |
---|
6371 | as_fn_error $? "conditional \"BUILD_NO_LIB\" was never defined. |
---|
6372 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6373 | fi |
---|
6374 | if test -z "${BUILD_CONCURRENCY_TRUE}" && test -z "${BUILD_CONCURRENCY_FALSE}"; then |
---|
6375 | as_fn_error $? "conditional \"BUILD_CONCURRENCY\" was never defined. |
---|
6376 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6377 | fi |
---|
6378 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6379 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
6380 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6381 | fi |
---|
6382 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6383 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
6384 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6385 | fi |
---|
6386 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6387 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
6388 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6389 | fi |
---|
6390 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
---|
6391 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
---|
6392 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6393 | fi |
---|
6394 | |
---|
6395 | : "${CONFIG_STATUS=./config.status}" |
---|
6396 | ac_write_fail=0 |
---|
6397 | ac_clean_files_save=$ac_clean_files |
---|
6398 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
6400 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6401 | as_write_fail=0 |
---|
6402 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
6403 | #! $SHELL |
---|
6404 | # Generated by $as_me. |
---|
6405 | # Run this file to recreate the current configuration. |
---|
6406 | # Compiler output produced by configure, useful for debugging |
---|
6407 | # configure, is in config.log if it exists. |
---|
6408 | |
---|
6409 | debug=false |
---|
6410 | ac_cs_recheck=false |
---|
6411 | ac_cs_silent=false |
---|
6412 | |
---|
6413 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6414 | export SHELL |
---|
6415 | _ASEOF |
---|
6416 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
6417 | ## -------------------- ## |
---|
6418 | ## M4sh Initialization. ## |
---|
6419 | ## -------------------- ## |
---|
6420 | |
---|
6421 | # Be more Bourne compatible |
---|
6422 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6423 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
6424 | emulate sh |
---|
6425 | NULLCMD=: |
---|
6426 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
6427 | # is contrary to our usage. Disable this feature. |
---|
6428 | alias -g '${1+"$@"}'='"$@"' |
---|
6429 | setopt NO_GLOB_SUBST |
---|
6430 | else |
---|
6431 | case `(set -o) 2>/dev/null` in #( |
---|
6432 | *posix*) : |
---|
6433 | set -o posix ;; #( |
---|
6434 | *) : |
---|
6435 | ;; |
---|
6436 | esac |
---|
6437 | fi |
---|
6438 | |
---|
6439 | |
---|
6440 | as_nl=' |
---|
6441 | ' |
---|
6442 | export as_nl |
---|
6443 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
6444 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
6445 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6446 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6447 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
6448 | # but without wasting forks for bash or zsh. |
---|
6449 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
6450 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6451 | as_echo='print -r --' |
---|
6452 | as_echo_n='print -rn --' |
---|
6453 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6454 | as_echo='printf %s\n' |
---|
6455 | as_echo_n='printf %s' |
---|
6456 | else |
---|
6457 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
6458 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
6459 | as_echo_n='/usr/ucb/echo -n' |
---|
6460 | else |
---|
6461 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
6462 | as_echo_n_body='eval |
---|
6463 | arg=$1; |
---|
6464 | case $arg in #( |
---|
6465 | *"$as_nl"*) |
---|
6466 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
6467 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
6468 | esac; |
---|
6469 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
6470 | ' |
---|
6471 | export as_echo_n_body |
---|
6472 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
6473 | fi |
---|
6474 | export as_echo_body |
---|
6475 | as_echo='sh -c $as_echo_body as_echo' |
---|
6476 | fi |
---|
6477 | |
---|
6478 | # The user is always right. |
---|
6479 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6480 | PATH_SEPARATOR=: |
---|
6481 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
6482 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
6483 | PATH_SEPARATOR=';' |
---|
6484 | } |
---|
6485 | fi |
---|
6486 | |
---|
6487 | |
---|
6488 | # IFS |
---|
6489 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
6490 | # there to prevent editors from complaining about space-tab. |
---|
6491 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
6492 | # splitting by setting IFS to empty value.) |
---|
6493 | IFS=" "" $as_nl" |
---|
6494 | |
---|
6495 | # Find who we are. Look in the path if we contain no directory separator. |
---|
6496 | as_myself= |
---|
6497 | case $0 in #(( |
---|
6498 | *[\\/]* ) as_myself=$0 ;; |
---|
6499 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6500 | for as_dir in $PATH |
---|
6501 | do |
---|
6502 | IFS=$as_save_IFS |
---|
6503 | test -z "$as_dir" && as_dir=. |
---|
6504 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6505 | done |
---|
6506 | IFS=$as_save_IFS |
---|
6507 | |
---|
6508 | ;; |
---|
6509 | esac |
---|
6510 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6511 | # in which case we are not to be found in the path. |
---|
6512 | if test "x$as_myself" = x; then |
---|
6513 | as_myself=$0 |
---|
6514 | fi |
---|
6515 | if test ! -f "$as_myself"; then |
---|
6516 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6517 | exit 1 |
---|
6518 | fi |
---|
6519 | |
---|
6520 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
6521 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
6522 | # suppresses any "Segmentation fault" message there. '((' could |
---|
6523 | # trigger a bug in pdksh 5.2.14. |
---|
6524 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
6525 | do eval test x\${$as_var+set} = xset \ |
---|
6526 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
6527 | done |
---|
6528 | PS1='$ ' |
---|
6529 | PS2='> ' |
---|
6530 | PS4='+ ' |
---|
6531 | |
---|
6532 | # NLS nuisances. |
---|
6533 | LC_ALL=C |
---|
6534 | export LC_ALL |
---|
6535 | LANGUAGE=C |
---|
6536 | export LANGUAGE |
---|
6537 | |
---|
6538 | # CDPATH. |
---|
6539 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
6540 | |
---|
6541 | |
---|
6542 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
6543 | # ---------------------------------------- |
---|
6544 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
6545 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
6546 | # script with STATUS, using 1 if that was 0. |
---|
6547 | as_fn_error () |
---|
6548 | { |
---|
6549 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
6550 | if test "$4"; then |
---|
6551 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
6552 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
6553 | fi |
---|
6554 | $as_echo "$as_me: error: $2" >&2 |
---|
6555 | as_fn_exit $as_status |
---|
6556 | } # as_fn_error |
---|
6557 | |
---|
6558 | |
---|
6559 | # as_fn_set_status STATUS |
---|
6560 | # ----------------------- |
---|
6561 | # Set $? to STATUS, without forking. |
---|
6562 | as_fn_set_status () |
---|
6563 | { |
---|
6564 | return $1 |
---|
6565 | } # as_fn_set_status |
---|
6566 | |
---|
6567 | # as_fn_exit STATUS |
---|
6568 | # ----------------- |
---|
6569 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6570 | as_fn_exit () |
---|
6571 | { |
---|
6572 | set +e |
---|
6573 | as_fn_set_status $1 |
---|
6574 | exit $1 |
---|
6575 | } # as_fn_exit |
---|
6576 | |
---|
6577 | # as_fn_unset VAR |
---|
6578 | # --------------- |
---|
6579 | # Portably unset VAR. |
---|
6580 | as_fn_unset () |
---|
6581 | { |
---|
6582 | { eval $1=; unset $1;} |
---|
6583 | } |
---|
6584 | as_unset=as_fn_unset |
---|
6585 | # as_fn_append VAR VALUE |
---|
6586 | # ---------------------- |
---|
6587 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6588 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6589 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6590 | # implementations. |
---|
6591 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6592 | eval 'as_fn_append () |
---|
6593 | { |
---|
6594 | eval $1+=\$2 |
---|
6595 | }' |
---|
6596 | else |
---|
6597 | as_fn_append () |
---|
6598 | { |
---|
6599 | eval $1=\$$1\$2 |
---|
6600 | } |
---|
6601 | fi # as_fn_append |
---|
6602 | |
---|
6603 | # as_fn_arith ARG... |
---|
6604 | # ------------------ |
---|
6605 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6606 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6607 | # must be portable across $(()) and expr. |
---|
6608 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6609 | eval 'as_fn_arith () |
---|
6610 | { |
---|
6611 | as_val=$(( $* )) |
---|
6612 | }' |
---|
6613 | else |
---|
6614 | as_fn_arith () |
---|
6615 | { |
---|
6616 | as_val=`expr "$@" || test $? -eq 1` |
---|
6617 | } |
---|
6618 | fi # as_fn_arith |
---|
6619 | |
---|
6620 | |
---|
6621 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6622 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6623 | as_expr=expr |
---|
6624 | else |
---|
6625 | as_expr=false |
---|
6626 | fi |
---|
6627 | |
---|
6628 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6629 | as_basename=basename |
---|
6630 | else |
---|
6631 | as_basename=false |
---|
6632 | fi |
---|
6633 | |
---|
6634 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6635 | as_dirname=dirname |
---|
6636 | else |
---|
6637 | as_dirname=false |
---|
6638 | fi |
---|
6639 | |
---|
6640 | as_me=`$as_basename -- "$0" || |
---|
6641 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6642 | X"$0" : 'X\(//\)$' \| \ |
---|
6643 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6644 | $as_echo X/"$0" | |
---|
6645 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6646 | s//\1/ |
---|
6647 | q |
---|
6648 | } |
---|
6649 | /^X\/\(\/\/\)$/{ |
---|
6650 | s//\1/ |
---|
6651 | q |
---|
6652 | } |
---|
6653 | /^X\/\(\/\).*/{ |
---|
6654 | s//\1/ |
---|
6655 | q |
---|
6656 | } |
---|
6657 | s/.*/./; q'` |
---|
6658 | |
---|
6659 | # Avoid depending upon Character Ranges. |
---|
6660 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6661 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6662 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6663 | as_cr_digits='0123456789' |
---|
6664 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6665 | |
---|
6666 | ECHO_C= ECHO_N= ECHO_T= |
---|
6667 | case `echo -n x` in #((((( |
---|
6668 | -n*) |
---|
6669 | case `echo 'xy\c'` in |
---|
6670 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6671 | xy) ECHO_C='\c';; |
---|
6672 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6673 | ECHO_T=' ';; |
---|
6674 | esac;; |
---|
6675 | *) |
---|
6676 | ECHO_N='-n';; |
---|
6677 | esac |
---|
6678 | |
---|
6679 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6680 | if test -d conf$$.dir; then |
---|
6681 | rm -f conf$$.dir/conf$$.file |
---|
6682 | else |
---|
6683 | rm -f conf$$.dir |
---|
6684 | mkdir conf$$.dir 2>/dev/null |
---|
6685 | fi |
---|
6686 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6687 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6688 | as_ln_s='ln -s' |
---|
6689 | # ... but there are two gotchas: |
---|
6690 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6691 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6692 | # In both cases, we have to default to `cp -p'. |
---|
6693 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6694 | as_ln_s='cp -p' |
---|
6695 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6696 | as_ln_s=ln |
---|
6697 | else |
---|
6698 | as_ln_s='cp -p' |
---|
6699 | fi |
---|
6700 | else |
---|
6701 | as_ln_s='cp -p' |
---|
6702 | fi |
---|
6703 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6704 | rmdir conf$$.dir 2>/dev/null |
---|
6705 | |
---|
6706 | |
---|
6707 | # as_fn_mkdir_p |
---|
6708 | # ------------- |
---|
6709 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6710 | as_fn_mkdir_p () |
---|
6711 | { |
---|
6712 | |
---|
6713 | case $as_dir in #( |
---|
6714 | -*) as_dir=./$as_dir;; |
---|
6715 | esac |
---|
6716 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6717 | as_dirs= |
---|
6718 | while :; do |
---|
6719 | case $as_dir in #( |
---|
6720 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6721 | *) as_qdir=$as_dir;; |
---|
6722 | esac |
---|
6723 | as_dirs="'$as_qdir' $as_dirs" |
---|
6724 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6725 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6726 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6727 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6728 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6729 | $as_echo X"$as_dir" | |
---|
6730 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6731 | s//\1/ |
---|
6732 | q |
---|
6733 | } |
---|
6734 | /^X\(\/\/\)[^/].*/{ |
---|
6735 | s//\1/ |
---|
6736 | q |
---|
6737 | } |
---|
6738 | /^X\(\/\/\)$/{ |
---|
6739 | s//\1/ |
---|
6740 | q |
---|
6741 | } |
---|
6742 | /^X\(\/\).*/{ |
---|
6743 | s//\1/ |
---|
6744 | q |
---|
6745 | } |
---|
6746 | s/.*/./; q'` |
---|
6747 | test -d "$as_dir" && break |
---|
6748 | done |
---|
6749 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6750 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6751 | |
---|
6752 | |
---|
6753 | } # as_fn_mkdir_p |
---|
6754 | if mkdir -p . 2>/dev/null; then |
---|
6755 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6756 | else |
---|
6757 | test -d ./-p && rmdir ./-p |
---|
6758 | as_mkdir_p=false |
---|
6759 | fi |
---|
6760 | |
---|
6761 | if test -x / >/dev/null 2>&1; then |
---|
6762 | as_test_x='test -x' |
---|
6763 | else |
---|
6764 | if ls -dL / >/dev/null 2>&1; then |
---|
6765 | as_ls_L_option=L |
---|
6766 | else |
---|
6767 | as_ls_L_option= |
---|
6768 | fi |
---|
6769 | as_test_x=' |
---|
6770 | eval sh -c '\'' |
---|
6771 | if test -d "$1"; then |
---|
6772 | test -d "$1/."; |
---|
6773 | else |
---|
6774 | case $1 in #( |
---|
6775 | -*)set "./$1";; |
---|
6776 | esac; |
---|
6777 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
6778 | ???[sx]*):;;*)false;;esac;fi |
---|
6779 | '\'' sh |
---|
6780 | ' |
---|
6781 | fi |
---|
6782 | as_executable_p=$as_test_x |
---|
6783 | |
---|
6784 | # Sed expression to map a string onto a valid CPP name. |
---|
6785 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6786 | |
---|
6787 | # Sed expression to map a string onto a valid variable name. |
---|
6788 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6789 | |
---|
6790 | |
---|
6791 | exec 6>&1 |
---|
6792 | ## ----------------------------------- ## |
---|
6793 | ## Main body of $CONFIG_STATUS script. ## |
---|
6794 | ## ----------------------------------- ## |
---|
6795 | _ASEOF |
---|
6796 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6797 | |
---|
6798 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6799 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6800 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6801 | # values after options handling. |
---|
6802 | ac_log=" |
---|
6803 | This file was extended by cfa-cc $as_me 1.0.0.0, which was |
---|
6804 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
6805 | |
---|
6806 | CONFIG_FILES = $CONFIG_FILES |
---|
6807 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6808 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6809 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6810 | $ $0 $@ |
---|
6811 | |
---|
6812 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6813 | " |
---|
6814 | |
---|
6815 | _ACEOF |
---|
6816 | |
---|
6817 | case $ac_config_files in *" |
---|
6818 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6819 | esac |
---|
6820 | |
---|
6821 | case $ac_config_headers in *" |
---|
6822 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
6823 | esac |
---|
6824 | |
---|
6825 | |
---|
6826 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6827 | # Files that config.status was made for. |
---|
6828 | config_files="$ac_config_files" |
---|
6829 | config_headers="$ac_config_headers" |
---|
6830 | config_commands="$ac_config_commands" |
---|
6831 | |
---|
6832 | _ACEOF |
---|
6833 | |
---|
6834 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6835 | ac_cs_usage="\ |
---|
6836 | \`$as_me' instantiates files and other configuration actions |
---|
6837 | from templates according to the current configuration. Unless the files |
---|
6838 | and actions are specified as TAGs, all are instantiated by default. |
---|
6839 | |
---|
6840 | Usage: $0 [OPTION]... [TAG]... |
---|
6841 | |
---|
6842 | -h, --help print this help, then exit |
---|
6843 | -V, --version print version number and configuration settings, then exit |
---|
6844 | --config print configuration, then exit |
---|
6845 | -q, --quiet, --silent |
---|
6846 | do not print progress messages |
---|
6847 | -d, --debug don't remove temporary files |
---|
6848 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6849 | --file=FILE[:TEMPLATE] |
---|
6850 | instantiate the configuration file FILE |
---|
6851 | --header=FILE[:TEMPLATE] |
---|
6852 | instantiate the configuration header FILE |
---|
6853 | |
---|
6854 | Configuration files: |
---|
6855 | $config_files |
---|
6856 | |
---|
6857 | Configuration headers: |
---|
6858 | $config_headers |
---|
6859 | |
---|
6860 | Configuration commands: |
---|
6861 | $config_commands |
---|
6862 | |
---|
6863 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
6864 | |
---|
6865 | _ACEOF |
---|
6866 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6867 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6868 | ac_cs_version="\\ |
---|
6869 | cfa-cc config.status 1.0.0.0 |
---|
6870 | configured by $0, generated by GNU Autoconf 2.68, |
---|
6871 | with options \\"\$ac_cs_config\\" |
---|
6872 | |
---|
6873 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
6874 | This config.status script is free software; the Free Software Foundation |
---|
6875 | gives unlimited permission to copy, distribute and modify it." |
---|
6876 | |
---|
6877 | ac_pwd='$ac_pwd' |
---|
6878 | srcdir='$srcdir' |
---|
6879 | INSTALL='$INSTALL' |
---|
6880 | MKDIR_P='$MKDIR_P' |
---|
6881 | AWK='$AWK' |
---|
6882 | test -n "\$AWK" || AWK=awk |
---|
6883 | _ACEOF |
---|
6884 | |
---|
6885 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6886 | # The default lists apply if the user does not specify any file. |
---|
6887 | ac_need_defaults=: |
---|
6888 | while test $# != 0 |
---|
6889 | do |
---|
6890 | case $1 in |
---|
6891 | --*=?*) |
---|
6892 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6893 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6894 | ac_shift=: |
---|
6895 | ;; |
---|
6896 | --*=) |
---|
6897 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6898 | ac_optarg= |
---|
6899 | ac_shift=: |
---|
6900 | ;; |
---|
6901 | *) |
---|
6902 | ac_option=$1 |
---|
6903 | ac_optarg=$2 |
---|
6904 | ac_shift=shift |
---|
6905 | ;; |
---|
6906 | esac |
---|
6907 | |
---|
6908 | case $ac_option in |
---|
6909 | # Handling of the options. |
---|
6910 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6911 | ac_cs_recheck=: ;; |
---|
6912 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6913 | $as_echo "$ac_cs_version"; exit ;; |
---|
6914 | --config | --confi | --conf | --con | --co | --c ) |
---|
6915 | $as_echo "$ac_cs_config"; exit ;; |
---|
6916 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6917 | debug=: ;; |
---|
6918 | --file | --fil | --fi | --f ) |
---|
6919 | $ac_shift |
---|
6920 | case $ac_optarg in |
---|
6921 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6922 | '') as_fn_error $? "missing file argument" ;; |
---|
6923 | esac |
---|
6924 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6925 | ac_need_defaults=false;; |
---|
6926 | --header | --heade | --head | --hea ) |
---|
6927 | $ac_shift |
---|
6928 | case $ac_optarg in |
---|
6929 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6930 | esac |
---|
6931 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
6932 | ac_need_defaults=false;; |
---|
6933 | --he | --h) |
---|
6934 | # Conflict between --help and --header |
---|
6935 | as_fn_error $? "ambiguous option: \`$1' |
---|
6936 | Try \`$0 --help' for more information.";; |
---|
6937 | --help | --hel | -h ) |
---|
6938 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6939 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6940 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6941 | ac_cs_silent=: ;; |
---|
6942 | |
---|
6943 | # This is an error. |
---|
6944 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6945 | Try \`$0 --help' for more information." ;; |
---|
6946 | |
---|
6947 | *) as_fn_append ac_config_targets " $1" |
---|
6948 | ac_need_defaults=false ;; |
---|
6949 | |
---|
6950 | esac |
---|
6951 | shift |
---|
6952 | done |
---|
6953 | |
---|
6954 | ac_configure_extra_args= |
---|
6955 | |
---|
6956 | if $ac_cs_silent; then |
---|
6957 | exec 6>/dev/null |
---|
6958 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6959 | fi |
---|
6960 | |
---|
6961 | _ACEOF |
---|
6962 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6963 | if \$ac_cs_recheck; then |
---|
6964 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6965 | shift |
---|
6966 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6967 | CONFIG_SHELL='$SHELL' |
---|
6968 | export CONFIG_SHELL |
---|
6969 | exec "\$@" |
---|
6970 | fi |
---|
6971 | |
---|
6972 | _ACEOF |
---|
6973 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6974 | exec 5>>config.log |
---|
6975 | { |
---|
6976 | echo |
---|
6977 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6978 | ## Running $as_me. ## |
---|
6979 | _ASBOX |
---|
6980 | $as_echo "$ac_log" |
---|
6981 | } >&5 |
---|
6982 | |
---|
6983 | _ACEOF |
---|
6984 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6985 | # |
---|
6986 | # INIT-COMMANDS |
---|
6987 | # |
---|
6988 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
6989 | |
---|
6990 | _ACEOF |
---|
6991 | |
---|
6992 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6993 | |
---|
6994 | # Handling of arguments. |
---|
6995 | for ac_config_target in $ac_config_targets |
---|
6996 | do |
---|
6997 | case $ac_config_target in |
---|
6998 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
6999 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
7000 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7001 | "src/driver/Makefile") CONFIG_FILES="$CONFIG_FILES src/driver/Makefile" ;; |
---|
7002 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
7003 | "src/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES src/benchmark/Makefile" ;; |
---|
7004 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; |
---|
7005 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; |
---|
7006 | "src/prelude/Makefile") CONFIG_FILES="$CONFIG_FILES src/prelude/Makefile" ;; |
---|
7007 | "src/libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcfa/Makefile" ;; |
---|
7008 | |
---|
7009 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
7010 | esac |
---|
7011 | done |
---|
7012 | |
---|
7013 | |
---|
7014 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7015 | # then the envvar interface is used. Set only those that are not. |
---|
7016 | # We use the long form for the default assignment because of an extremely |
---|
7017 | # bizarre bug on SunOS 4.1.3. |
---|
7018 | if $ac_need_defaults; then |
---|
7019 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7020 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
7021 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
7022 | fi |
---|
7023 | |
---|
7024 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7025 | # simply because there is no reason against having it here, and in addition, |
---|
7026 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7027 | # Hook for its removal unless debugging. |
---|
7028 | # Note that there is a small window in which the directory will not be cleaned: |
---|
7029 | # after its creation but before its name has been assigned to `$tmp'. |
---|
7030 | $debug || |
---|
7031 | { |
---|
7032 | tmp= ac_tmp= |
---|
7033 | trap 'exit_status=$? |
---|
7034 | : "${ac_tmp:=$tmp}" |
---|
7035 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
7036 | ' 0 |
---|
7037 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
7038 | } |
---|
7039 | # Create a (secure) tmp directory for tmp files. |
---|
7040 | |
---|
7041 | { |
---|
7042 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
7043 | test -d "$tmp" |
---|
7044 | } || |
---|
7045 | { |
---|
7046 | tmp=./conf$$-$RANDOM |
---|
7047 | (umask 077 && mkdir "$tmp") |
---|
7048 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
7049 | ac_tmp=$tmp |
---|
7050 | |
---|
7051 | # Set up the scripts for CONFIG_FILES section. |
---|
7052 | # No need to generate them if there are no CONFIG_FILES. |
---|
7053 | # This happens for instance with `./config.status config.h'. |
---|
7054 | if test -n "$CONFIG_FILES"; then |
---|
7055 | |
---|
7056 | |
---|
7057 | ac_cr=`echo X | tr X '\015'` |
---|
7058 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
7059 | # But we know of no other shell where ac_cr would be empty at this |
---|
7060 | # point, so we can use a bashism as a fallback. |
---|
7061 | if test "x$ac_cr" = x; then |
---|
7062 | eval ac_cr=\$\'\\r\' |
---|
7063 | fi |
---|
7064 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
7065 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
7066 | ac_cs_awk_cr='\\r' |
---|
7067 | else |
---|
7068 | ac_cs_awk_cr=$ac_cr |
---|
7069 | fi |
---|
7070 | |
---|
7071 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
7072 | _ACEOF |
---|
7073 | |
---|
7074 | |
---|
7075 | { |
---|
7076 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
7077 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
7078 | echo "_ACEOF" |
---|
7079 | } >conf$$subs.sh || |
---|
7080 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7081 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
7082 | ac_delim='%!_!# ' |
---|
7083 | for ac_last_try in false false false false false :; do |
---|
7084 | . ./conf$$subs.sh || |
---|
7085 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7086 | |
---|
7087 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
7088 | if test $ac_delim_n = $ac_delim_num; then |
---|
7089 | break |
---|
7090 | elif $ac_last_try; then |
---|
7091 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7092 | else |
---|
7093 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7094 | fi |
---|
7095 | done |
---|
7096 | rm -f conf$$subs.sh |
---|
7097 | |
---|
7098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7099 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
7100 | _ACEOF |
---|
7101 | sed -n ' |
---|
7102 | h |
---|
7103 | s/^/S["/; s/!.*/"]=/ |
---|
7104 | p |
---|
7105 | g |
---|
7106 | s/^[^!]*!// |
---|
7107 | :repl |
---|
7108 | t repl |
---|
7109 | s/'"$ac_delim"'$// |
---|
7110 | t delim |
---|
7111 | :nl |
---|
7112 | h |
---|
7113 | s/\(.\{148\}\)..*/\1/ |
---|
7114 | t more1 |
---|
7115 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7116 | p |
---|
7117 | n |
---|
7118 | b repl |
---|
7119 | :more1 |
---|
7120 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7121 | p |
---|
7122 | g |
---|
7123 | s/.\{148\}// |
---|
7124 | t nl |
---|
7125 | :delim |
---|
7126 | h |
---|
7127 | s/\(.\{148\}\)..*/\1/ |
---|
7128 | t more2 |
---|
7129 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7130 | p |
---|
7131 | b |
---|
7132 | :more2 |
---|
7133 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7134 | p |
---|
7135 | g |
---|
7136 | s/.\{148\}// |
---|
7137 | t delim |
---|
7138 | ' <conf$$subs.awk | sed ' |
---|
7139 | /^[^""]/{ |
---|
7140 | N |
---|
7141 | s/\n// |
---|
7142 | } |
---|
7143 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7144 | rm -f conf$$subs.awk |
---|
7145 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7146 | _ACAWK |
---|
7147 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
7148 | for (key in S) S_is_set[key] = 1 |
---|
7149 | FS = "" |
---|
7150 | |
---|
7151 | } |
---|
7152 | { |
---|
7153 | line = $ 0 |
---|
7154 | nfields = split(line, field, "@") |
---|
7155 | substed = 0 |
---|
7156 | len = length(field[1]) |
---|
7157 | for (i = 2; i < nfields; i++) { |
---|
7158 | key = field[i] |
---|
7159 | keylen = length(key) |
---|
7160 | if (S_is_set[key]) { |
---|
7161 | value = S[key] |
---|
7162 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7163 | len += length(value) + length(field[++i]) |
---|
7164 | substed = 1 |
---|
7165 | } else |
---|
7166 | len += 1 + keylen |
---|
7167 | } |
---|
7168 | |
---|
7169 | print line |
---|
7170 | } |
---|
7171 | |
---|
7172 | _ACAWK |
---|
7173 | _ACEOF |
---|
7174 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7175 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7176 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7177 | else |
---|
7178 | cat |
---|
7179 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
7180 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
7181 | _ACEOF |
---|
7182 | |
---|
7183 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
7184 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
7185 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7186 | # (actually we leave an empty line to preserve line numbers). |
---|
7187 | if test "x$srcdir" = x.; then |
---|
7188 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
7189 | h |
---|
7190 | s/// |
---|
7191 | s/^/:/ |
---|
7192 | s/[ ]*$/:/ |
---|
7193 | s/:\$(srcdir):/:/g |
---|
7194 | s/:\${srcdir}:/:/g |
---|
7195 | s/:@srcdir@:/:/g |
---|
7196 | s/^:*// |
---|
7197 | s/:*$// |
---|
7198 | x |
---|
7199 | s/\(=[ ]*\).*/\1/ |
---|
7200 | G |
---|
7201 | s/\n// |
---|
7202 | s/^[^=]*=[ ]*$// |
---|
7203 | }' |
---|
7204 | fi |
---|
7205 | |
---|
7206 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7207 | fi # test -n "$CONFIG_FILES" |
---|
7208 | |
---|
7209 | # Set up the scripts for CONFIG_HEADERS section. |
---|
7210 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
7211 | # This happens for instance with `./config.status Makefile'. |
---|
7212 | if test -n "$CONFIG_HEADERS"; then |
---|
7213 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
7214 | BEGIN { |
---|
7215 | _ACEOF |
---|
7216 | |
---|
7217 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
7218 | # here-document in config.status, that substitutes the proper values into |
---|
7219 | # config.h.in to produce config.h. |
---|
7220 | |
---|
7221 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
7222 | # handling of long lines. |
---|
7223 | ac_delim='%!_!# ' |
---|
7224 | for ac_last_try in false false :; do |
---|
7225 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
7226 | if test -z "$ac_tt"; then |
---|
7227 | break |
---|
7228 | elif $ac_last_try; then |
---|
7229 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
7230 | else |
---|
7231 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7232 | fi |
---|
7233 | done |
---|
7234 | |
---|
7235 | # For the awk script, D is an array of macro values keyed by name, |
---|
7236 | # likewise P contains macro parameters if any. Preserve backslash |
---|
7237 | # newline sequences. |
---|
7238 | |
---|
7239 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
7240 | sed -n ' |
---|
7241 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7242 | t rset |
---|
7243 | :rset |
---|
7244 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
7245 | t def |
---|
7246 | d |
---|
7247 | :def |
---|
7248 | s/\\$// |
---|
7249 | t bsnl |
---|
7250 | s/["\\]/\\&/g |
---|
7251 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7252 | D["\1"]=" \3"/p |
---|
7253 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
7254 | d |
---|
7255 | :bsnl |
---|
7256 | s/["\\]/\\&/g |
---|
7257 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7258 | D["\1"]=" \3\\\\\\n"\\/p |
---|
7259 | t cont |
---|
7260 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
7261 | t cont |
---|
7262 | d |
---|
7263 | :cont |
---|
7264 | n |
---|
7265 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7266 | t clear |
---|
7267 | :clear |
---|
7268 | s/\\$// |
---|
7269 | t bsnlc |
---|
7270 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
7271 | d |
---|
7272 | :bsnlc |
---|
7273 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
7274 | b cont |
---|
7275 | ' <confdefs.h | sed ' |
---|
7276 | s/'"$ac_delim"'/"\\\ |
---|
7277 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7278 | |
---|
7279 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7280 | for (key in D) D_is_set[key] = 1 |
---|
7281 | FS = "" |
---|
7282 | } |
---|
7283 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
7284 | line = \$ 0 |
---|
7285 | split(line, arg, " ") |
---|
7286 | if (arg[1] == "#") { |
---|
7287 | defundef = arg[2] |
---|
7288 | mac1 = arg[3] |
---|
7289 | } else { |
---|
7290 | defundef = substr(arg[1], 2) |
---|
7291 | mac1 = arg[2] |
---|
7292 | } |
---|
7293 | split(mac1, mac2, "(") #) |
---|
7294 | macro = mac2[1] |
---|
7295 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
7296 | if (D_is_set[macro]) { |
---|
7297 | # Preserve the white space surrounding the "#". |
---|
7298 | print prefix "define", macro P[macro] D[macro] |
---|
7299 | next |
---|
7300 | } else { |
---|
7301 | # Replace #undef with comments. This is necessary, for example, |
---|
7302 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
7303 | # on some systems where configure will not decide to define it. |
---|
7304 | if (defundef == "undef") { |
---|
7305 | print "/*", prefix defundef, macro, "*/" |
---|
7306 | next |
---|
7307 | } |
---|
7308 | } |
---|
7309 | } |
---|
7310 | { print } |
---|
7311 | _ACAWK |
---|
7312 | _ACEOF |
---|
7313 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7314 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
7315 | fi # test -n "$CONFIG_HEADERS" |
---|
7316 | |
---|
7317 | |
---|
7318 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
---|
7319 | shift |
---|
7320 | for ac_tag |
---|
7321 | do |
---|
7322 | case $ac_tag in |
---|
7323 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7324 | esac |
---|
7325 | case $ac_mode$ac_tag in |
---|
7326 | :[FHL]*:*);; |
---|
7327 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
7328 | :[FH]-) ac_tag=-:-;; |
---|
7329 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7330 | esac |
---|
7331 | ac_save_IFS=$IFS |
---|
7332 | IFS=: |
---|
7333 | set x $ac_tag |
---|
7334 | IFS=$ac_save_IFS |
---|
7335 | shift |
---|
7336 | ac_file=$1 |
---|
7337 | shift |
---|
7338 | |
---|
7339 | case $ac_mode in |
---|
7340 | :L) ac_source=$1;; |
---|
7341 | :[FH]) |
---|
7342 | ac_file_inputs= |
---|
7343 | for ac_f |
---|
7344 | do |
---|
7345 | case $ac_f in |
---|
7346 | -) ac_f="$ac_tmp/stdin";; |
---|
7347 | *) # Look for the file first in the build tree, then in the source tree |
---|
7348 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7349 | # because $ac_f cannot contain `:'. |
---|
7350 | test -f "$ac_f" || |
---|
7351 | case $ac_f in |
---|
7352 | [\\/$]*) false;; |
---|
7353 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
7354 | esac || |
---|
7355 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
7356 | esac |
---|
7357 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
7358 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
7359 | done |
---|
7360 | |
---|
7361 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7362 | # use $as_me), people would be surprised to read: |
---|
7363 | # /* config.h. Generated by config.status. */ |
---|
7364 | configure_input='Generated from '` |
---|
7365 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
7366 | `' by configure.' |
---|
7367 | if test x"$ac_file" != x-; then |
---|
7368 | configure_input="$ac_file. $configure_input" |
---|
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
7370 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
7371 | fi |
---|
7372 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
7373 | case $configure_input in #( |
---|
7374 | *\&* | *\|* | *\\* ) |
---|
7375 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
7376 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
7377 | *) ac_sed_conf_input=$configure_input;; |
---|
7378 | esac |
---|
7379 | |
---|
7380 | case $ac_tag in |
---|
7381 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
7382 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
7383 | esac |
---|
7384 | ;; |
---|
7385 | esac |
---|
7386 | |
---|
7387 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
7388 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7389 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7390 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7391 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7392 | $as_echo X"$ac_file" | |
---|
7393 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7394 | s//\1/ |
---|
7395 | q |
---|
7396 | } |
---|
7397 | /^X\(\/\/\)[^/].*/{ |
---|
7398 | s//\1/ |
---|
7399 | q |
---|
7400 | } |
---|
7401 | /^X\(\/\/\)$/{ |
---|
7402 | s//\1/ |
---|
7403 | q |
---|
7404 | } |
---|
7405 | /^X\(\/\).*/{ |
---|
7406 | s//\1/ |
---|
7407 | q |
---|
7408 | } |
---|
7409 | s/.*/./; q'` |
---|
7410 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
7411 | ac_builddir=. |
---|
7412 | |
---|
7413 | case "$ac_dir" in |
---|
7414 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7415 | *) |
---|
7416 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
7417 | # A ".." for each directory in $ac_dir_suffix. |
---|
7418 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
7419 | case $ac_top_builddir_sub in |
---|
7420 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7421 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
7422 | esac ;; |
---|
7423 | esac |
---|
7424 | ac_abs_top_builddir=$ac_pwd |
---|
7425 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
7426 | # for backward compatibility: |
---|
7427 | ac_top_builddir=$ac_top_build_prefix |
---|
7428 | |
---|
7429 | case $srcdir in |
---|
7430 | .) # We are building in place. |
---|
7431 | ac_srcdir=. |
---|
7432 | ac_top_srcdir=$ac_top_builddir_sub |
---|
7433 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
7434 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
7435 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7436 | ac_top_srcdir=$srcdir |
---|
7437 | ac_abs_top_srcdir=$srcdir ;; |
---|
7438 | *) # Relative name. |
---|
7439 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
7440 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
7441 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
7442 | esac |
---|
7443 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
7444 | |
---|
7445 | |
---|
7446 | case $ac_mode in |
---|
7447 | :F) |
---|
7448 | # |
---|
7449 | # CONFIG_FILE |
---|
7450 | # |
---|
7451 | |
---|
7452 | case $INSTALL in |
---|
7453 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7454 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
7455 | esac |
---|
7456 | ac_MKDIR_P=$MKDIR_P |
---|
7457 | case $MKDIR_P in |
---|
7458 | [\\/$]* | ?:[\\/]* ) ;; |
---|
7459 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
7460 | esac |
---|
7461 | _ACEOF |
---|
7462 | |
---|
7463 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7464 | # If the template does not know about datarootdir, expand it. |
---|
7465 | # FIXME: This hack should be removed a few years after 2.60. |
---|
7466 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
7467 | ac_sed_dataroot=' |
---|
7468 | /datarootdir/ { |
---|
7469 | p |
---|
7470 | q |
---|
7471 | } |
---|
7472 | /@datadir@/p |
---|
7473 | /@docdir@/p |
---|
7474 | /@infodir@/p |
---|
7475 | /@localedir@/p |
---|
7476 | /@mandir@/p' |
---|
7477 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
7478 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
7479 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
7481 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
7482 | _ACEOF |
---|
7483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7484 | ac_datarootdir_hack=' |
---|
7485 | s&@datadir@&$datadir&g |
---|
7486 | s&@docdir@&$docdir&g |
---|
7487 | s&@infodir@&$infodir&g |
---|
7488 | s&@localedir@&$localedir&g |
---|
7489 | s&@mandir@&$mandir&g |
---|
7490 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
7491 | esac |
---|
7492 | _ACEOF |
---|
7493 | |
---|
7494 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
7495 | # Shell code in configure.ac might set extrasub. |
---|
7496 | # FIXME: do we really want to maintain this feature? |
---|
7497 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7498 | ac_sed_extra="$ac_vpsub |
---|
7499 | $extrasub |
---|
7500 | _ACEOF |
---|
7501 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7502 | :t |
---|
7503 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7504 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
7505 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
7506 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7507 | s&@srcdir@&$ac_srcdir&;t t |
---|
7508 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7509 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7510 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7511 | s&@builddir@&$ac_builddir&;t t |
---|
7512 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7513 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7514 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
7515 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
7516 | $ac_datarootdir_hack |
---|
7517 | " |
---|
7518 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
7519 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7520 | |
---|
7521 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7522 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
7523 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
7524 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
7525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7526 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
7527 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7528 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
7529 | |
---|
7530 | rm -f "$ac_tmp/stdin" |
---|
7531 | case $ac_file in |
---|
7532 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
7533 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
7534 | esac \ |
---|
7535 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7536 | ;; |
---|
7537 | :H) |
---|
7538 | # |
---|
7539 | # CONFIG_HEADER |
---|
7540 | # |
---|
7541 | if test x"$ac_file" != x-; then |
---|
7542 | { |
---|
7543 | $as_echo "/* $configure_input */" \ |
---|
7544 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
7545 | } >"$ac_tmp/config.h" \ |
---|
7546 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7547 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
7549 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7550 | else |
---|
7551 | rm -f "$ac_file" |
---|
7552 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
7553 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7554 | fi |
---|
7555 | else |
---|
7556 | $as_echo "/* $configure_input */" \ |
---|
7557 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
7558 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
7559 | fi |
---|
7560 | # Compute "$ac_file"'s index in $config_headers. |
---|
7561 | _am_arg="$ac_file" |
---|
7562 | _am_stamp_count=1 |
---|
7563 | for _am_header in $config_headers :; do |
---|
7564 | case $_am_header in |
---|
7565 | $_am_arg | $_am_arg:* ) |
---|
7566 | break ;; |
---|
7567 | * ) |
---|
7568 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7569 | esac |
---|
7570 | done |
---|
7571 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
7572 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7573 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
7574 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
7575 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
7576 | $as_echo X"$_am_arg" | |
---|
7577 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7578 | s//\1/ |
---|
7579 | q |
---|
7580 | } |
---|
7581 | /^X\(\/\/\)[^/].*/{ |
---|
7582 | s//\1/ |
---|
7583 | q |
---|
7584 | } |
---|
7585 | /^X\(\/\/\)$/{ |
---|
7586 | s//\1/ |
---|
7587 | q |
---|
7588 | } |
---|
7589 | /^X\(\/\).*/{ |
---|
7590 | s//\1/ |
---|
7591 | q |
---|
7592 | } |
---|
7593 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7594 | ;; |
---|
7595 | |
---|
7596 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
7597 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
7598 | ;; |
---|
7599 | esac |
---|
7600 | |
---|
7601 | |
---|
7602 | case $ac_file$ac_mode in |
---|
7603 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
7604 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
---|
7605 | # are listed without --file. Let's play safe and only enable the eval |
---|
7606 | # if we detect the quoting. |
---|
7607 | case $CONFIG_FILES in |
---|
7608 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
7609 | *) set x $CONFIG_FILES ;; |
---|
7610 | esac |
---|
7611 | shift |
---|
7612 | for mf |
---|
7613 | do |
---|
7614 | # Strip MF so we end up with the name of the file. |
---|
7615 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7616 | # Check whether this is an Automake generated Makefile or not. |
---|
7617 | # We used to match only the files named `Makefile.in', but |
---|
7618 | # some people rename them; so instead we look at the file content. |
---|
7619 | # Grep'ing the first line is not enough: some people post-process |
---|
7620 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7621 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
7622 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
7623 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
7624 | dirpart=`$as_dirname -- "$mf" || |
---|
7625 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7626 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7627 | X"$mf" : 'X\(//\)$' \| \ |
---|
7628 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
7629 | $as_echo X"$mf" | |
---|
7630 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7631 | s//\1/ |
---|
7632 | q |
---|
7633 | } |
---|
7634 | /^X\(\/\/\)[^/].*/{ |
---|
7635 | s//\1/ |
---|
7636 | q |
---|
7637 | } |
---|
7638 | /^X\(\/\/\)$/{ |
---|
7639 | s//\1/ |
---|
7640 | q |
---|
7641 | } |
---|
7642 | /^X\(\/\).*/{ |
---|
7643 | s//\1/ |
---|
7644 | q |
---|
7645 | } |
---|
7646 | s/.*/./; q'` |
---|
7647 | else |
---|
7648 | continue |
---|
7649 | fi |
---|
7650 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
7651 | # from the Makefile without running `make'. |
---|
7652 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
7653 | test -z "$DEPDIR" && continue |
---|
7654 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
7655 | test -z "am__include" && continue |
---|
7656 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
7657 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7658 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
7659 | # Find all dependency output files, they are included files with |
---|
7660 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
7661 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
7662 | # expansion. |
---|
7663 | for file in `sed -n " |
---|
7664 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
7665 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7666 | # Make sure the directory exists. |
---|
7667 | test -f "$dirpart/$file" && continue |
---|
7668 | fdir=`$as_dirname -- "$file" || |
---|
7669 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7670 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7671 | X"$file" : 'X\(//\)$' \| \ |
---|
7672 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7673 | $as_echo X"$file" | |
---|
7674 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7675 | s//\1/ |
---|
7676 | q |
---|
7677 | } |
---|
7678 | /^X\(\/\/\)[^/].*/{ |
---|
7679 | s//\1/ |
---|
7680 | q |
---|
7681 | } |
---|
7682 | /^X\(\/\/\)$/{ |
---|
7683 | s//\1/ |
---|
7684 | q |
---|
7685 | } |
---|
7686 | /^X\(\/\).*/{ |
---|
7687 | s//\1/ |
---|
7688 | q |
---|
7689 | } |
---|
7690 | s/.*/./; q'` |
---|
7691 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
7692 | # echo "creating $dirpart/$file" |
---|
7693 | echo '# dummy' > "$dirpart/$file" |
---|
7694 | done |
---|
7695 | done |
---|
7696 | } |
---|
7697 | ;; |
---|
7698 | |
---|
7699 | esac |
---|
7700 | done # for ac_tag |
---|
7701 | |
---|
7702 | |
---|
7703 | as_fn_exit 0 |
---|
7704 | _ACEOF |
---|
7705 | ac_clean_files=$ac_clean_files_save |
---|
7706 | |
---|
7707 | test $ac_write_fail = 0 || |
---|
7708 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
7709 | |
---|
7710 | |
---|
7711 | # configure is writing to config.log, and then calls config.status. |
---|
7712 | # config.status does its own redirection, appending to config.log. |
---|
7713 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7714 | # by configure, so config.status won't be able to write to it; its |
---|
7715 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7716 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7717 | # appended to by config.status. When coming back to configure, we |
---|
7718 | # need to make the FD available again. |
---|
7719 | if test "$no_create" != yes; then |
---|
7720 | ac_cs_success=: |
---|
7721 | ac_config_status_args= |
---|
7722 | test "$silent" = yes && |
---|
7723 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7724 | exec 5>/dev/null |
---|
7725 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7726 | exec 5>>config.log |
---|
7727 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7728 | # would make configure fail if this is the last instruction. |
---|
7729 | $ac_cs_success || as_fn_exit 1 |
---|
7730 | fi |
---|
7731 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7733 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7734 | fi |
---|
7735 | |
---|
7736 | |
---|
7737 | if test -z "$BUILD_RELEASE_TRUE"; then : |
---|
7738 | if test -z "$BUILD_DEBUG_TRUE"; then : |
---|
7739 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release & debug" >&5 |
---|
7740 | $as_echo "$as_me: Building libcfa for target: release & debug" >&6;} |
---|
7741 | else |
---|
7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release" >&5 |
---|
7743 | $as_echo "$as_me: Building libcfa for target: release" >&6;} |
---|
7744 | fi |
---|
7745 | else |
---|
7746 | if test -z "$BUILD_DEBUG_TRUE"; then : |
---|
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: debug" >&5 |
---|
7748 | $as_echo "$as_me: Building libcfa for target: debug" >&6;} |
---|
7749 | else |
---|
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running cfa without libcfa" >&5 |
---|
7751 | $as_echo "$as_me: Running cfa without libcfa" >&6;} |
---|
7752 | fi |
---|
7753 | fi |
---|
7754 | |
---|
7755 | # Final text |
---|
7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5 |
---|
7757 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; } |
---|