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 | CFA_FLAGS |
---|
647 | MACHINE_TYPE |
---|
648 | host_os |
---|
649 | host_vendor |
---|
650 | host_cpu |
---|
651 | host |
---|
652 | build_os |
---|
653 | build_vendor |
---|
654 | build_cpu |
---|
655 | build |
---|
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_cfa_name |
---|
745 | with_backend_compiler |
---|
746 | enable_target_release |
---|
747 | enable_target_debug |
---|
748 | enable_threading |
---|
749 | enable_dependency_tracking |
---|
750 | ' |
---|
751 | ac_precious_vars='build_alias |
---|
752 | host_alias |
---|
753 | target_alias |
---|
754 | CXX |
---|
755 | CXXFLAGS |
---|
756 | LDFLAGS |
---|
757 | LIBS |
---|
758 | CPPFLAGS |
---|
759 | CCC |
---|
760 | CC |
---|
761 | CFLAGS |
---|
762 | CCAS |
---|
763 | CCASFLAGS |
---|
764 | YACC |
---|
765 | YFLAGS |
---|
766 | CPP' |
---|
767 | |
---|
768 | |
---|
769 | # Initialize some variables set by options. |
---|
770 | ac_init_help= |
---|
771 | ac_init_version=false |
---|
772 | ac_unrecognized_opts= |
---|
773 | ac_unrecognized_sep= |
---|
774 | # The variables have the same names as the options, with |
---|
775 | # dashes changed to underlines. |
---|
776 | cache_file=/dev/null |
---|
777 | exec_prefix=NONE |
---|
778 | no_create= |
---|
779 | no_recursion= |
---|
780 | prefix=NONE |
---|
781 | program_prefix=NONE |
---|
782 | program_suffix=NONE |
---|
783 | program_transform_name=s,x,x, |
---|
784 | silent= |
---|
785 | site= |
---|
786 | srcdir= |
---|
787 | verbose= |
---|
788 | x_includes=NONE |
---|
789 | x_libraries=NONE |
---|
790 | |
---|
791 | # Installation directory options. |
---|
792 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
793 | # and all the variables that are supposed to be based on exec_prefix |
---|
794 | # by default will actually change. |
---|
795 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
796 | # (The list follows the same order as the GNU Coding Standards.) |
---|
797 | bindir='${exec_prefix}/bin' |
---|
798 | sbindir='${exec_prefix}/sbin' |
---|
799 | libexecdir='${exec_prefix}/libexec' |
---|
800 | datarootdir='${prefix}/share' |
---|
801 | datadir='${datarootdir}' |
---|
802 | sysconfdir='${prefix}/etc' |
---|
803 | sharedstatedir='${prefix}/com' |
---|
804 | localstatedir='${prefix}/var' |
---|
805 | includedir='${prefix}/include' |
---|
806 | oldincludedir='/usr/include' |
---|
807 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
808 | infodir='${datarootdir}/info' |
---|
809 | htmldir='${docdir}' |
---|
810 | dvidir='${docdir}' |
---|
811 | pdfdir='${docdir}' |
---|
812 | psdir='${docdir}' |
---|
813 | libdir='${exec_prefix}/lib' |
---|
814 | localedir='${datarootdir}/locale' |
---|
815 | mandir='${datarootdir}/man' |
---|
816 | |
---|
817 | ac_prev= |
---|
818 | ac_dashdash= |
---|
819 | for ac_option |
---|
820 | do |
---|
821 | # If the previous option needs an argument, assign it. |
---|
822 | if test -n "$ac_prev"; then |
---|
823 | eval $ac_prev=\$ac_option |
---|
824 | ac_prev= |
---|
825 | continue |
---|
826 | fi |
---|
827 | |
---|
828 | case $ac_option in |
---|
829 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
830 | *=) ac_optarg= ;; |
---|
831 | *) ac_optarg=yes ;; |
---|
832 | esac |
---|
833 | |
---|
834 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
835 | |
---|
836 | case $ac_dashdash$ac_option in |
---|
837 | --) |
---|
838 | ac_dashdash=yes ;; |
---|
839 | |
---|
840 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
841 | ac_prev=bindir ;; |
---|
842 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
843 | bindir=$ac_optarg ;; |
---|
844 | |
---|
845 | -build | --build | --buil | --bui | --bu) |
---|
846 | ac_prev=build_alias ;; |
---|
847 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
848 | build_alias=$ac_optarg ;; |
---|
849 | |
---|
850 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
851 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
852 | ac_prev=cache_file ;; |
---|
853 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
854 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
855 | cache_file=$ac_optarg ;; |
---|
856 | |
---|
857 | --config-cache | -C) |
---|
858 | cache_file=config.cache ;; |
---|
859 | |
---|
860 | -datadir | --datadir | --datadi | --datad) |
---|
861 | ac_prev=datadir ;; |
---|
862 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
863 | datadir=$ac_optarg ;; |
---|
864 | |
---|
865 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
866 | | --dataroo | --dataro | --datar) |
---|
867 | ac_prev=datarootdir ;; |
---|
868 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
869 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
870 | datarootdir=$ac_optarg ;; |
---|
871 | |
---|
872 | -disable-* | --disable-*) |
---|
873 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
874 | # Reject names that are not valid shell variable names. |
---|
875 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
876 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
877 | ac_useropt_orig=$ac_useropt |
---|
878 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
879 | case $ac_user_opts in |
---|
880 | *" |
---|
881 | "enable_$ac_useropt" |
---|
882 | "*) ;; |
---|
883 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
884 | ac_unrecognized_sep=', ';; |
---|
885 | esac |
---|
886 | eval enable_$ac_useropt=no ;; |
---|
887 | |
---|
888 | -docdir | --docdir | --docdi | --doc | --do) |
---|
889 | ac_prev=docdir ;; |
---|
890 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
891 | docdir=$ac_optarg ;; |
---|
892 | |
---|
893 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
894 | ac_prev=dvidir ;; |
---|
895 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
896 | dvidir=$ac_optarg ;; |
---|
897 | |
---|
898 | -enable-* | --enable-*) |
---|
899 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
900 | # Reject names that are not valid shell variable names. |
---|
901 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
902 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
903 | ac_useropt_orig=$ac_useropt |
---|
904 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
905 | case $ac_user_opts in |
---|
906 | *" |
---|
907 | "enable_$ac_useropt" |
---|
908 | "*) ;; |
---|
909 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
910 | ac_unrecognized_sep=', ';; |
---|
911 | esac |
---|
912 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
913 | |
---|
914 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
915 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
916 | | --exec | --exe | --ex) |
---|
917 | ac_prev=exec_prefix ;; |
---|
918 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
919 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
920 | | --exec=* | --exe=* | --ex=*) |
---|
921 | exec_prefix=$ac_optarg ;; |
---|
922 | |
---|
923 | -gas | --gas | --ga | --g) |
---|
924 | # Obsolete; use --with-gas. |
---|
925 | with_gas=yes ;; |
---|
926 | |
---|
927 | -help | --help | --hel | --he | -h) |
---|
928 | ac_init_help=long ;; |
---|
929 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
930 | ac_init_help=recursive ;; |
---|
931 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
932 | ac_init_help=short ;; |
---|
933 | |
---|
934 | -host | --host | --hos | --ho) |
---|
935 | ac_prev=host_alias ;; |
---|
936 | -host=* | --host=* | --hos=* | --ho=*) |
---|
937 | host_alias=$ac_optarg ;; |
---|
938 | |
---|
939 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
940 | ac_prev=htmldir ;; |
---|
941 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
942 | | --ht=*) |
---|
943 | htmldir=$ac_optarg ;; |
---|
944 | |
---|
945 | -includedir | --includedir | --includedi | --included | --include \ |
---|
946 | | --includ | --inclu | --incl | --inc) |
---|
947 | ac_prev=includedir ;; |
---|
948 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
949 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
950 | includedir=$ac_optarg ;; |
---|
951 | |
---|
952 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
953 | ac_prev=infodir ;; |
---|
954 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
955 | infodir=$ac_optarg ;; |
---|
956 | |
---|
957 | -libdir | --libdir | --libdi | --libd) |
---|
958 | ac_prev=libdir ;; |
---|
959 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
960 | libdir=$ac_optarg ;; |
---|
961 | |
---|
962 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
963 | | --libexe | --libex | --libe) |
---|
964 | ac_prev=libexecdir ;; |
---|
965 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
966 | | --libexe=* | --libex=* | --libe=*) |
---|
967 | libexecdir=$ac_optarg ;; |
---|
968 | |
---|
969 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
970 | ac_prev=localedir ;; |
---|
971 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
972 | localedir=$ac_optarg ;; |
---|
973 | |
---|
974 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
975 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
976 | ac_prev=localstatedir ;; |
---|
977 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
978 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
979 | localstatedir=$ac_optarg ;; |
---|
980 | |
---|
981 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
982 | ac_prev=mandir ;; |
---|
983 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
984 | mandir=$ac_optarg ;; |
---|
985 | |
---|
986 | -nfp | --nfp | --nf) |
---|
987 | # Obsolete; use --without-fp. |
---|
988 | with_fp=no ;; |
---|
989 | |
---|
990 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
991 | | --no-cr | --no-c | -n) |
---|
992 | no_create=yes ;; |
---|
993 | |
---|
994 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
995 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
996 | no_recursion=yes ;; |
---|
997 | |
---|
998 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
999 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1000 | | --oldin | --oldi | --old | --ol | --o) |
---|
1001 | ac_prev=oldincludedir ;; |
---|
1002 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1003 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1004 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1005 | oldincludedir=$ac_optarg ;; |
---|
1006 | |
---|
1007 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1008 | ac_prev=prefix ;; |
---|
1009 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1010 | prefix=$ac_optarg ;; |
---|
1011 | |
---|
1012 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1013 | | --program-pre | --program-pr | --program-p) |
---|
1014 | ac_prev=program_prefix ;; |
---|
1015 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1016 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1017 | program_prefix=$ac_optarg ;; |
---|
1018 | |
---|
1019 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1020 | | --program-suf | --program-su | --program-s) |
---|
1021 | ac_prev=program_suffix ;; |
---|
1022 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1023 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1024 | program_suffix=$ac_optarg ;; |
---|
1025 | |
---|
1026 | -program-transform-name | --program-transform-name \ |
---|
1027 | | --program-transform-nam | --program-transform-na \ |
---|
1028 | | --program-transform-n | --program-transform- \ |
---|
1029 | | --program-transform | --program-transfor \ |
---|
1030 | | --program-transfo | --program-transf \ |
---|
1031 | | --program-trans | --program-tran \ |
---|
1032 | | --progr-tra | --program-tr | --program-t) |
---|
1033 | ac_prev=program_transform_name ;; |
---|
1034 | -program-transform-name=* | --program-transform-name=* \ |
---|
1035 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1036 | | --program-transform-n=* | --program-transform-=* \ |
---|
1037 | | --program-transform=* | --program-transfor=* \ |
---|
1038 | | --program-transfo=* | --program-transf=* \ |
---|
1039 | | --program-trans=* | --program-tran=* \ |
---|
1040 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1041 | program_transform_name=$ac_optarg ;; |
---|
1042 | |
---|
1043 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1044 | ac_prev=pdfdir ;; |
---|
1045 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1046 | pdfdir=$ac_optarg ;; |
---|
1047 | |
---|
1048 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1049 | ac_prev=psdir ;; |
---|
1050 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1051 | psdir=$ac_optarg ;; |
---|
1052 | |
---|
1053 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1054 | | -silent | --silent | --silen | --sile | --sil) |
---|
1055 | silent=yes ;; |
---|
1056 | |
---|
1057 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1058 | ac_prev=sbindir ;; |
---|
1059 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1060 | | --sbi=* | --sb=*) |
---|
1061 | sbindir=$ac_optarg ;; |
---|
1062 | |
---|
1063 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1064 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1065 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1066 | | --sha | --sh) |
---|
1067 | ac_prev=sharedstatedir ;; |
---|
1068 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1069 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1070 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1071 | | --sha=* | --sh=*) |
---|
1072 | sharedstatedir=$ac_optarg ;; |
---|
1073 | |
---|
1074 | -site | --site | --sit) |
---|
1075 | ac_prev=site ;; |
---|
1076 | -site=* | --site=* | --sit=*) |
---|
1077 | site=$ac_optarg ;; |
---|
1078 | |
---|
1079 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1080 | ac_prev=srcdir ;; |
---|
1081 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1082 | srcdir=$ac_optarg ;; |
---|
1083 | |
---|
1084 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1085 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1086 | ac_prev=sysconfdir ;; |
---|
1087 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1088 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1089 | sysconfdir=$ac_optarg ;; |
---|
1090 | |
---|
1091 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1092 | ac_prev=target_alias ;; |
---|
1093 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1094 | target_alias=$ac_optarg ;; |
---|
1095 | |
---|
1096 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1097 | verbose=yes ;; |
---|
1098 | |
---|
1099 | -version | --version | --versio | --versi | --vers | -V) |
---|
1100 | ac_init_version=: ;; |
---|
1101 | |
---|
1102 | -with-* | --with-*) |
---|
1103 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1104 | # Reject names that are not valid shell variable names. |
---|
1105 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1106 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1107 | ac_useropt_orig=$ac_useropt |
---|
1108 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1109 | case $ac_user_opts in |
---|
1110 | *" |
---|
1111 | "with_$ac_useropt" |
---|
1112 | "*) ;; |
---|
1113 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1114 | ac_unrecognized_sep=', ';; |
---|
1115 | esac |
---|
1116 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1117 | |
---|
1118 | -without-* | --without-*) |
---|
1119 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1120 | # Reject names that are not valid shell variable names. |
---|
1121 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1122 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1123 | ac_useropt_orig=$ac_useropt |
---|
1124 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1125 | case $ac_user_opts in |
---|
1126 | *" |
---|
1127 | "with_$ac_useropt" |
---|
1128 | "*) ;; |
---|
1129 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1130 | ac_unrecognized_sep=', ';; |
---|
1131 | esac |
---|
1132 | eval with_$ac_useropt=no ;; |
---|
1133 | |
---|
1134 | --x) |
---|
1135 | # Obsolete; use --with-x. |
---|
1136 | with_x=yes ;; |
---|
1137 | |
---|
1138 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1139 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1140 | ac_prev=x_includes ;; |
---|
1141 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1142 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1143 | x_includes=$ac_optarg ;; |
---|
1144 | |
---|
1145 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1146 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1147 | ac_prev=x_libraries ;; |
---|
1148 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1149 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1150 | x_libraries=$ac_optarg ;; |
---|
1151 | |
---|
1152 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1153 | Try \`$0 --help' for more information" |
---|
1154 | ;; |
---|
1155 | |
---|
1156 | *=*) |
---|
1157 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1158 | # Reject names that are not valid shell variable names. |
---|
1159 | case $ac_envvar in #( |
---|
1160 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1161 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1162 | esac |
---|
1163 | eval $ac_envvar=\$ac_optarg |
---|
1164 | export $ac_envvar ;; |
---|
1165 | |
---|
1166 | *) |
---|
1167 | # FIXME: should be removed in autoconf 3.0. |
---|
1168 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1169 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1170 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1171 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1172 | ;; |
---|
1173 | |
---|
1174 | esac |
---|
1175 | done |
---|
1176 | |
---|
1177 | if test -n "$ac_prev"; then |
---|
1178 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1179 | as_fn_error $? "missing argument to $ac_option" |
---|
1180 | fi |
---|
1181 | |
---|
1182 | if test -n "$ac_unrecognized_opts"; then |
---|
1183 | case $enable_option_checking in |
---|
1184 | no) ;; |
---|
1185 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1186 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1187 | esac |
---|
1188 | fi |
---|
1189 | |
---|
1190 | # Check all directory arguments for consistency. |
---|
1191 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1192 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1193 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1194 | libdir localedir mandir |
---|
1195 | do |
---|
1196 | eval ac_val=\$$ac_var |
---|
1197 | # Remove trailing slashes. |
---|
1198 | case $ac_val in |
---|
1199 | */ ) |
---|
1200 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1201 | eval $ac_var=\$ac_val;; |
---|
1202 | esac |
---|
1203 | # Be sure to have absolute directory names. |
---|
1204 | case $ac_val in |
---|
1205 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1206 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1207 | esac |
---|
1208 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1209 | done |
---|
1210 | |
---|
1211 | # There might be people who depend on the old broken behavior: `$host' |
---|
1212 | # used to hold the argument of --host etc. |
---|
1213 | # FIXME: To remove some day. |
---|
1214 | build=$build_alias |
---|
1215 | host=$host_alias |
---|
1216 | target=$target_alias |
---|
1217 | |
---|
1218 | # FIXME: To remove some day. |
---|
1219 | if test "x$host_alias" != x; then |
---|
1220 | if test "x$build_alias" = x; then |
---|
1221 | cross_compiling=maybe |
---|
1222 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1223 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1224 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1225 | cross_compiling=yes |
---|
1226 | fi |
---|
1227 | fi |
---|
1228 | |
---|
1229 | ac_tool_prefix= |
---|
1230 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1231 | |
---|
1232 | test "$silent" = yes && exec 6>/dev/null |
---|
1233 | |
---|
1234 | |
---|
1235 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1236 | ac_ls_di=`ls -di .` && |
---|
1237 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1238 | as_fn_error $? "working directory cannot be determined" |
---|
1239 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1240 | as_fn_error $? "pwd does not report name of working directory" |
---|
1241 | |
---|
1242 | |
---|
1243 | # Find the source files, if location was not specified. |
---|
1244 | if test -z "$srcdir"; then |
---|
1245 | ac_srcdir_defaulted=yes |
---|
1246 | # Try the directory containing this script, then the parent directory. |
---|
1247 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1248 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1249 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1250 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1251 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1252 | $as_echo X"$as_myself" | |
---|
1253 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1254 | s//\1/ |
---|
1255 | q |
---|
1256 | } |
---|
1257 | /^X\(\/\/\)[^/].*/{ |
---|
1258 | s//\1/ |
---|
1259 | q |
---|
1260 | } |
---|
1261 | /^X\(\/\/\)$/{ |
---|
1262 | s//\1/ |
---|
1263 | q |
---|
1264 | } |
---|
1265 | /^X\(\/\).*/{ |
---|
1266 | s//\1/ |
---|
1267 | q |
---|
1268 | } |
---|
1269 | s/.*/./; q'` |
---|
1270 | srcdir=$ac_confdir |
---|
1271 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1272 | srcdir=.. |
---|
1273 | fi |
---|
1274 | else |
---|
1275 | ac_srcdir_defaulted=no |
---|
1276 | fi |
---|
1277 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1278 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1279 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1280 | fi |
---|
1281 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1282 | ac_abs_confdir=`( |
---|
1283 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1284 | pwd)` |
---|
1285 | # When building in place, set srcdir=. |
---|
1286 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1287 | srcdir=. |
---|
1288 | fi |
---|
1289 | # Remove unnecessary trailing slashes from srcdir. |
---|
1290 | # Double slashes in file names in object file debugging info |
---|
1291 | # mess up M-x gdb in Emacs. |
---|
1292 | case $srcdir in |
---|
1293 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1294 | esac |
---|
1295 | for ac_var in $ac_precious_vars; do |
---|
1296 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1297 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1298 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1299 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1300 | done |
---|
1301 | |
---|
1302 | # |
---|
1303 | # Report the --help message. |
---|
1304 | # |
---|
1305 | if test "$ac_init_help" = "long"; then |
---|
1306 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1307 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1308 | cat <<_ACEOF |
---|
1309 | \`configure' configures cfa-cc 1.0.0.0 to adapt to many kinds of systems. |
---|
1310 | |
---|
1311 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1312 | |
---|
1313 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1314 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1315 | |
---|
1316 | Defaults for the options are specified in brackets. |
---|
1317 | |
---|
1318 | Configuration: |
---|
1319 | -h, --help display this help and exit |
---|
1320 | --help=short display options specific to this package |
---|
1321 | --help=recursive display the short help of all the included packages |
---|
1322 | -V, --version display version information and exit |
---|
1323 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1324 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1325 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1326 | -n, --no-create do not create output files |
---|
1327 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1328 | |
---|
1329 | Installation directories: |
---|
1330 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1331 | [$ac_default_prefix] |
---|
1332 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1333 | [PREFIX] |
---|
1334 | |
---|
1335 | By default, \`make install' will install all the files in |
---|
1336 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1337 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1338 | for instance \`--prefix=\$HOME'. |
---|
1339 | |
---|
1340 | For better control, use the options below. |
---|
1341 | |
---|
1342 | Fine tuning of the installation directories: |
---|
1343 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1344 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1345 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1346 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1347 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1348 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1349 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1350 | --includedir=DIR C header files [PREFIX/include] |
---|
1351 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1352 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1353 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1354 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1355 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1356 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1357 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1358 | --htmldir=DIR html documentation [DOCDIR] |
---|
1359 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1360 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1361 | --psdir=DIR ps documentation [DOCDIR] |
---|
1362 | _ACEOF |
---|
1363 | |
---|
1364 | cat <<\_ACEOF |
---|
1365 | |
---|
1366 | Program names: |
---|
1367 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1368 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1369 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1370 | |
---|
1371 | System types: |
---|
1372 | --build=BUILD configure for building on BUILD [guessed] |
---|
1373 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1374 | _ACEOF |
---|
1375 | fi |
---|
1376 | |
---|
1377 | if test -n "$ac_init_help"; then |
---|
1378 | case $ac_init_help in |
---|
1379 | short | recursive ) echo "Configuration of cfa-cc 1.0.0.0:";; |
---|
1380 | esac |
---|
1381 | cat <<\_ACEOF |
---|
1382 | |
---|
1383 | Optional Features: |
---|
1384 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1385 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1386 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1387 | --enable-silent-rules less verbose build output (undo: `make V=1') |
---|
1388 | --disable-silent-rules verbose build output (undo: `make V=0') |
---|
1389 | --disable-maintainer-mode disable make rules and dependencies not useful |
---|
1390 | (and sometimes confusing) to the casual installer |
---|
1391 | --enable-target-release Build and install the release target |
---|
1392 | --enable-target-debug Build and install the debug target |
---|
1393 | --enable-threading Build and install libcfa with threading support |
---|
1394 | (Enabled by default) |
---|
1395 | --disable-dependency-tracking speeds up one-time build |
---|
1396 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1397 | |
---|
1398 | Optional Packages: |
---|
1399 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1400 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1401 | --with-cfa-name=NAME NAME too which cfa will be installed |
---|
1402 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) |
---|
1403 | |
---|
1404 | Some influential environment variables: |
---|
1405 | CXX C++ compiler command |
---|
1406 | CXXFLAGS C++ compiler flags |
---|
1407 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1408 | nonstandard directory <lib dir> |
---|
1409 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1410 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1411 | you have headers in a nonstandard directory <include dir> |
---|
1412 | CC C compiler command |
---|
1413 | CFLAGS C compiler flags |
---|
1414 | CCAS assembler compiler command (defaults to CC) |
---|
1415 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
---|
1416 | YACC The `Yet Another Compiler Compiler' implementation to use. |
---|
1417 | Defaults to the first program found out of: `bison -y', `byacc', |
---|
1418 | `yacc'. |
---|
1419 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1420 | This script will default YFLAGS to the empty string to avoid a |
---|
1421 | default value of `-d' given by some make applications. |
---|
1422 | CPP C preprocessor |
---|
1423 | |
---|
1424 | Use these variables to override the choices made by `configure' or to help |
---|
1425 | it to find libraries and programs with nonstandard names/locations. |
---|
1426 | |
---|
1427 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1428 | _ACEOF |
---|
1429 | ac_status=$? |
---|
1430 | fi |
---|
1431 | |
---|
1432 | if test "$ac_init_help" = "recursive"; then |
---|
1433 | # If there are subdirs, report their specific --help. |
---|
1434 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1435 | test -d "$ac_dir" || |
---|
1436 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1437 | continue |
---|
1438 | ac_builddir=. |
---|
1439 | |
---|
1440 | case "$ac_dir" in |
---|
1441 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1442 | *) |
---|
1443 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1444 | # A ".." for each directory in $ac_dir_suffix. |
---|
1445 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1446 | case $ac_top_builddir_sub in |
---|
1447 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1448 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1449 | esac ;; |
---|
1450 | esac |
---|
1451 | ac_abs_top_builddir=$ac_pwd |
---|
1452 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1453 | # for backward compatibility: |
---|
1454 | ac_top_builddir=$ac_top_build_prefix |
---|
1455 | |
---|
1456 | case $srcdir in |
---|
1457 | .) # We are building in place. |
---|
1458 | ac_srcdir=. |
---|
1459 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1460 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1461 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1462 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1463 | ac_top_srcdir=$srcdir |
---|
1464 | ac_abs_top_srcdir=$srcdir ;; |
---|
1465 | *) # Relative name. |
---|
1466 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1467 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1468 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1469 | esac |
---|
1470 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1471 | |
---|
1472 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1473 | # Check for guested configure. |
---|
1474 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1475 | echo && |
---|
1476 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1477 | elif test -f "$ac_srcdir/configure"; then |
---|
1478 | echo && |
---|
1479 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1480 | else |
---|
1481 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1482 | fi || ac_status=$? |
---|
1483 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1484 | done |
---|
1485 | fi |
---|
1486 | |
---|
1487 | test -n "$ac_init_help" && exit $ac_status |
---|
1488 | if $ac_init_version; then |
---|
1489 | cat <<\_ACEOF |
---|
1490 | cfa-cc configure 1.0.0.0 |
---|
1491 | generated by GNU Autoconf 2.68 |
---|
1492 | |
---|
1493 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1494 | This configure script is free software; the Free Software Foundation |
---|
1495 | gives unlimited permission to copy, distribute and modify it. |
---|
1496 | _ACEOF |
---|
1497 | exit |
---|
1498 | fi |
---|
1499 | |
---|
1500 | ## ------------------------ ## |
---|
1501 | ## Autoconf initialization. ## |
---|
1502 | ## ------------------------ ## |
---|
1503 | |
---|
1504 | # ac_fn_cxx_try_compile LINENO |
---|
1505 | # ---------------------------- |
---|
1506 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1507 | ac_fn_cxx_try_compile () |
---|
1508 | { |
---|
1509 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1510 | rm -f conftest.$ac_objext |
---|
1511 | if { { ac_try="$ac_compile" |
---|
1512 | case "(($ac_try" in |
---|
1513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1514 | *) ac_try_echo=$ac_try;; |
---|
1515 | esac |
---|
1516 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1517 | $as_echo "$ac_try_echo"; } >&5 |
---|
1518 | (eval "$ac_compile") 2>conftest.err |
---|
1519 | ac_status=$? |
---|
1520 | if test -s conftest.err; then |
---|
1521 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1522 | cat conftest.er1 >&5 |
---|
1523 | mv -f conftest.er1 conftest.err |
---|
1524 | fi |
---|
1525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1526 | test $ac_status = 0; } && { |
---|
1527 | test -z "$ac_cxx_werror_flag" || |
---|
1528 | test ! -s conftest.err |
---|
1529 | } && test -s conftest.$ac_objext; then : |
---|
1530 | ac_retval=0 |
---|
1531 | else |
---|
1532 | $as_echo "$as_me: failed program was:" >&5 |
---|
1533 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1534 | |
---|
1535 | ac_retval=1 |
---|
1536 | fi |
---|
1537 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1538 | as_fn_set_status $ac_retval |
---|
1539 | |
---|
1540 | } # ac_fn_cxx_try_compile |
---|
1541 | |
---|
1542 | # ac_fn_c_try_compile LINENO |
---|
1543 | # -------------------------- |
---|
1544 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1545 | ac_fn_c_try_compile () |
---|
1546 | { |
---|
1547 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1548 | rm -f conftest.$ac_objext |
---|
1549 | if { { ac_try="$ac_compile" |
---|
1550 | case "(($ac_try" in |
---|
1551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1552 | *) ac_try_echo=$ac_try;; |
---|
1553 | esac |
---|
1554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1555 | $as_echo "$ac_try_echo"; } >&5 |
---|
1556 | (eval "$ac_compile") 2>conftest.err |
---|
1557 | ac_status=$? |
---|
1558 | if test -s conftest.err; then |
---|
1559 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1560 | cat conftest.er1 >&5 |
---|
1561 | mv -f conftest.er1 conftest.err |
---|
1562 | fi |
---|
1563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1564 | test $ac_status = 0; } && { |
---|
1565 | test -z "$ac_c_werror_flag" || |
---|
1566 | test ! -s conftest.err |
---|
1567 | } && test -s conftest.$ac_objext; then : |
---|
1568 | ac_retval=0 |
---|
1569 | else |
---|
1570 | $as_echo "$as_me: failed program was:" >&5 |
---|
1571 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1572 | |
---|
1573 | ac_retval=1 |
---|
1574 | fi |
---|
1575 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1576 | as_fn_set_status $ac_retval |
---|
1577 | |
---|
1578 | } # ac_fn_c_try_compile |
---|
1579 | |
---|
1580 | # ac_fn_c_try_link LINENO |
---|
1581 | # ----------------------- |
---|
1582 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1583 | ac_fn_c_try_link () |
---|
1584 | { |
---|
1585 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1586 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1587 | if { { ac_try="$ac_link" |
---|
1588 | case "(($ac_try" in |
---|
1589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1590 | *) ac_try_echo=$ac_try;; |
---|
1591 | esac |
---|
1592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1593 | $as_echo "$ac_try_echo"; } >&5 |
---|
1594 | (eval "$ac_link") 2>conftest.err |
---|
1595 | ac_status=$? |
---|
1596 | if test -s conftest.err; then |
---|
1597 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1598 | cat conftest.er1 >&5 |
---|
1599 | mv -f conftest.er1 conftest.err |
---|
1600 | fi |
---|
1601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1602 | test $ac_status = 0; } && { |
---|
1603 | test -z "$ac_c_werror_flag" || |
---|
1604 | test ! -s conftest.err |
---|
1605 | } && test -s conftest$ac_exeext && { |
---|
1606 | test "$cross_compiling" = yes || |
---|
1607 | $as_test_x conftest$ac_exeext |
---|
1608 | }; then : |
---|
1609 | ac_retval=0 |
---|
1610 | else |
---|
1611 | $as_echo "$as_me: failed program was:" >&5 |
---|
1612 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1613 | |
---|
1614 | ac_retval=1 |
---|
1615 | fi |
---|
1616 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1617 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1618 | # interfere with the next link command; also delete a directory that is |
---|
1619 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1620 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1621 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1622 | as_fn_set_status $ac_retval |
---|
1623 | |
---|
1624 | } # ac_fn_c_try_link |
---|
1625 | |
---|
1626 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1627 | # ------------------------------------------- |
---|
1628 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1629 | # variable VAR accordingly. |
---|
1630 | ac_fn_c_check_type () |
---|
1631 | { |
---|
1632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1634 | $as_echo_n "checking for $2... " >&6; } |
---|
1635 | if eval \${$3+:} false; then : |
---|
1636 | $as_echo_n "(cached) " >&6 |
---|
1637 | else |
---|
1638 | eval "$3=no" |
---|
1639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1640 | /* end confdefs.h. */ |
---|
1641 | $4 |
---|
1642 | int |
---|
1643 | main () |
---|
1644 | { |
---|
1645 | if (sizeof ($2)) |
---|
1646 | return 0; |
---|
1647 | ; |
---|
1648 | return 0; |
---|
1649 | } |
---|
1650 | _ACEOF |
---|
1651 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1653 | /* end confdefs.h. */ |
---|
1654 | $4 |
---|
1655 | int |
---|
1656 | main () |
---|
1657 | { |
---|
1658 | if (sizeof (($2))) |
---|
1659 | return 0; |
---|
1660 | ; |
---|
1661 | return 0; |
---|
1662 | } |
---|
1663 | _ACEOF |
---|
1664 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1665 | |
---|
1666 | else |
---|
1667 | eval "$3=yes" |
---|
1668 | fi |
---|
1669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1670 | fi |
---|
1671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1672 | fi |
---|
1673 | eval ac_res=\$$3 |
---|
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1675 | $as_echo "$ac_res" >&6; } |
---|
1676 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1677 | |
---|
1678 | } # ac_fn_c_check_type |
---|
1679 | |
---|
1680 | # ac_fn_c_try_cpp LINENO |
---|
1681 | # ---------------------- |
---|
1682 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1683 | ac_fn_c_try_cpp () |
---|
1684 | { |
---|
1685 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1686 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1687 | case "(($ac_try" in |
---|
1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1689 | *) ac_try_echo=$ac_try;; |
---|
1690 | esac |
---|
1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1692 | $as_echo "$ac_try_echo"; } >&5 |
---|
1693 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1694 | ac_status=$? |
---|
1695 | if test -s conftest.err; then |
---|
1696 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1697 | cat conftest.er1 >&5 |
---|
1698 | mv -f conftest.er1 conftest.err |
---|
1699 | fi |
---|
1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1701 | test $ac_status = 0; } > conftest.i && { |
---|
1702 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1703 | test ! -s conftest.err |
---|
1704 | }; then : |
---|
1705 | ac_retval=0 |
---|
1706 | else |
---|
1707 | $as_echo "$as_me: failed program was:" >&5 |
---|
1708 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1709 | |
---|
1710 | ac_retval=1 |
---|
1711 | fi |
---|
1712 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1713 | as_fn_set_status $ac_retval |
---|
1714 | |
---|
1715 | } # ac_fn_c_try_cpp |
---|
1716 | |
---|
1717 | # ac_fn_c_try_run LINENO |
---|
1718 | # ---------------------- |
---|
1719 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1720 | # that executables *can* be run. |
---|
1721 | ac_fn_c_try_run () |
---|
1722 | { |
---|
1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1724 | if { { ac_try="$ac_link" |
---|
1725 | case "(($ac_try" in |
---|
1726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1727 | *) ac_try_echo=$ac_try;; |
---|
1728 | esac |
---|
1729 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1730 | $as_echo "$ac_try_echo"; } >&5 |
---|
1731 | (eval "$ac_link") 2>&5 |
---|
1732 | ac_status=$? |
---|
1733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1734 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1735 | { { case "(($ac_try" in |
---|
1736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1737 | *) ac_try_echo=$ac_try;; |
---|
1738 | esac |
---|
1739 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1740 | $as_echo "$ac_try_echo"; } >&5 |
---|
1741 | (eval "$ac_try") 2>&5 |
---|
1742 | ac_status=$? |
---|
1743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1744 | test $ac_status = 0; }; }; then : |
---|
1745 | ac_retval=0 |
---|
1746 | else |
---|
1747 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1748 | $as_echo "$as_me: failed program was:" >&5 |
---|
1749 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1750 | |
---|
1751 | ac_retval=$ac_status |
---|
1752 | fi |
---|
1753 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1754 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1755 | as_fn_set_status $ac_retval |
---|
1756 | |
---|
1757 | } # ac_fn_c_try_run |
---|
1758 | |
---|
1759 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1760 | # ------------------------------------------------------- |
---|
1761 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1762 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1763 | ac_fn_c_check_header_compile () |
---|
1764 | { |
---|
1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1767 | $as_echo_n "checking for $2... " >&6; } |
---|
1768 | if eval \${$3+:} false; then : |
---|
1769 | $as_echo_n "(cached) " >&6 |
---|
1770 | else |
---|
1771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1772 | /* end confdefs.h. */ |
---|
1773 | $4 |
---|
1774 | #include <$2> |
---|
1775 | _ACEOF |
---|
1776 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1777 | eval "$3=yes" |
---|
1778 | else |
---|
1779 | eval "$3=no" |
---|
1780 | fi |
---|
1781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1782 | fi |
---|
1783 | eval ac_res=\$$3 |
---|
1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1785 | $as_echo "$ac_res" >&6; } |
---|
1786 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1787 | |
---|
1788 | } # ac_fn_c_check_header_compile |
---|
1789 | |
---|
1790 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1791 | # ---------------------------------- |
---|
1792 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1793 | ac_fn_c_check_func () |
---|
1794 | { |
---|
1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1797 | $as_echo_n "checking for $2... " >&6; } |
---|
1798 | if eval \${$3+:} false; then : |
---|
1799 | $as_echo_n "(cached) " >&6 |
---|
1800 | else |
---|
1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1802 | /* end confdefs.h. */ |
---|
1803 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1804 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1805 | #define $2 innocuous_$2 |
---|
1806 | |
---|
1807 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1808 | which can conflict with char $2 (); below. |
---|
1809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1810 | <limits.h> exists even on freestanding compilers. */ |
---|
1811 | |
---|
1812 | #ifdef __STDC__ |
---|
1813 | # include <limits.h> |
---|
1814 | #else |
---|
1815 | # include <assert.h> |
---|
1816 | #endif |
---|
1817 | |
---|
1818 | #undef $2 |
---|
1819 | |
---|
1820 | /* Override any GCC internal prototype to avoid an error. |
---|
1821 | Use char because int might match the return type of a GCC |
---|
1822 | builtin and then its argument prototype would still apply. */ |
---|
1823 | #ifdef __cplusplus |
---|
1824 | extern "C" |
---|
1825 | #endif |
---|
1826 | char $2 (); |
---|
1827 | /* The GNU C library defines this for functions which it implements |
---|
1828 | to always fail with ENOSYS. Some functions are actually named |
---|
1829 | something starting with __ and the normal name is an alias. */ |
---|
1830 | #if defined __stub_$2 || defined __stub___$2 |
---|
1831 | choke me |
---|
1832 | #endif |
---|
1833 | |
---|
1834 | int |
---|
1835 | main () |
---|
1836 | { |
---|
1837 | return $2 (); |
---|
1838 | ; |
---|
1839 | return 0; |
---|
1840 | } |
---|
1841 | _ACEOF |
---|
1842 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1843 | eval "$3=yes" |
---|
1844 | else |
---|
1845 | eval "$3=no" |
---|
1846 | fi |
---|
1847 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1848 | conftest$ac_exeext conftest.$ac_ext |
---|
1849 | fi |
---|
1850 | eval ac_res=\$$3 |
---|
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1852 | $as_echo "$ac_res" >&6; } |
---|
1853 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1854 | |
---|
1855 | } # ac_fn_c_check_func |
---|
1856 | |
---|
1857 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1858 | # ------------------------------------------------------- |
---|
1859 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1860 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1861 | # accordingly. |
---|
1862 | ac_fn_c_check_header_mongrel () |
---|
1863 | { |
---|
1864 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1865 | if eval \${$3+:} false; then : |
---|
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1867 | $as_echo_n "checking for $2... " >&6; } |
---|
1868 | if eval \${$3+:} false; then : |
---|
1869 | $as_echo_n "(cached) " >&6 |
---|
1870 | fi |
---|
1871 | eval ac_res=\$$3 |
---|
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1873 | $as_echo "$ac_res" >&6; } |
---|
1874 | else |
---|
1875 | # Is the header compilable? |
---|
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1877 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1879 | /* end confdefs.h. */ |
---|
1880 | $4 |
---|
1881 | #include <$2> |
---|
1882 | _ACEOF |
---|
1883 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1884 | ac_header_compiler=yes |
---|
1885 | else |
---|
1886 | ac_header_compiler=no |
---|
1887 | fi |
---|
1888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1890 | $as_echo "$ac_header_compiler" >&6; } |
---|
1891 | |
---|
1892 | # Is the header present? |
---|
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1894 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1896 | /* end confdefs.h. */ |
---|
1897 | #include <$2> |
---|
1898 | _ACEOF |
---|
1899 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1900 | ac_header_preproc=yes |
---|
1901 | else |
---|
1902 | ac_header_preproc=no |
---|
1903 | fi |
---|
1904 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1906 | $as_echo "$ac_header_preproc" >&6; } |
---|
1907 | |
---|
1908 | # So? What about this header? |
---|
1909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1910 | yes:no: ) |
---|
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1912 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1914 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1915 | ;; |
---|
1916 | no:yes:* ) |
---|
1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1918 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1920 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1922 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1924 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1926 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1927 | ( $as_echo "## --------------------------------------- ## |
---|
1928 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1929 | ## --------------------------------------- ##" |
---|
1930 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1931 | ;; |
---|
1932 | esac |
---|
1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1934 | $as_echo_n "checking for $2... " >&6; } |
---|
1935 | if eval \${$3+:} false; then : |
---|
1936 | $as_echo_n "(cached) " >&6 |
---|
1937 | else |
---|
1938 | eval "$3=\$ac_header_compiler" |
---|
1939 | fi |
---|
1940 | eval ac_res=\$$3 |
---|
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1942 | $as_echo "$ac_res" >&6; } |
---|
1943 | fi |
---|
1944 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1945 | |
---|
1946 | } # ac_fn_c_check_header_mongrel |
---|
1947 | |
---|
1948 | # ac_fn_c_find_intX_t LINENO BITS VAR |
---|
1949 | # ----------------------------------- |
---|
1950 | # Finds a signed integer type with width BITS, setting cache variable VAR |
---|
1951 | # accordingly. |
---|
1952 | ac_fn_c_find_intX_t () |
---|
1953 | { |
---|
1954 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
---|
1956 | $as_echo_n "checking for int$2_t... " >&6; } |
---|
1957 | if eval \${$3+:} false; then : |
---|
1958 | $as_echo_n "(cached) " >&6 |
---|
1959 | else |
---|
1960 | eval "$3=no" |
---|
1961 | # Order is important - never check a type that is potentially smaller |
---|
1962 | # than half of the expected target width. |
---|
1963 | for ac_type in int$2_t 'int' 'long int' \ |
---|
1964 | 'long long int' 'short int' 'signed char'; do |
---|
1965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1966 | /* end confdefs.h. */ |
---|
1967 | $ac_includes_default |
---|
1968 | enum { N = $2 / 2 - 1 }; |
---|
1969 | int |
---|
1970 | main () |
---|
1971 | { |
---|
1972 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
---|
1973 | test_array [0] = 0 |
---|
1974 | |
---|
1975 | ; |
---|
1976 | return 0; |
---|
1977 | } |
---|
1978 | _ACEOF |
---|
1979 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1981 | /* end confdefs.h. */ |
---|
1982 | $ac_includes_default |
---|
1983 | enum { N = $2 / 2 - 1 }; |
---|
1984 | int |
---|
1985 | main () |
---|
1986 | { |
---|
1987 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
---|
1988 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
---|
1989 | test_array [0] = 0 |
---|
1990 | |
---|
1991 | ; |
---|
1992 | return 0; |
---|
1993 | } |
---|
1994 | _ACEOF |
---|
1995 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1996 | |
---|
1997 | else |
---|
1998 | case $ac_type in #( |
---|
1999 | int$2_t) : |
---|
2000 | eval "$3=yes" ;; #( |
---|
2001 | *) : |
---|
2002 | eval "$3=\$ac_type" ;; |
---|
2003 | esac |
---|
2004 | fi |
---|
2005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2006 | fi |
---|
2007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2008 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2009 | |
---|
2010 | else |
---|
2011 | break |
---|
2012 | fi |
---|
2013 | done |
---|
2014 | fi |
---|
2015 | eval ac_res=\$$3 |
---|
2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2017 | $as_echo "$ac_res" >&6; } |
---|
2018 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2019 | |
---|
2020 | } # ac_fn_c_find_intX_t |
---|
2021 | |
---|
2022 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
---|
2023 | # ------------------------------------ |
---|
2024 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
---|
2025 | # accordingly. |
---|
2026 | ac_fn_c_find_uintX_t () |
---|
2027 | { |
---|
2028 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
---|
2030 | $as_echo_n "checking for uint$2_t... " >&6; } |
---|
2031 | if eval \${$3+:} false; then : |
---|
2032 | $as_echo_n "(cached) " >&6 |
---|
2033 | else |
---|
2034 | eval "$3=no" |
---|
2035 | # Order is important - never check a type that is potentially smaller |
---|
2036 | # than half of the expected target width. |
---|
2037 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
---|
2038 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
---|
2039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2040 | /* end confdefs.h. */ |
---|
2041 | $ac_includes_default |
---|
2042 | int |
---|
2043 | main () |
---|
2044 | { |
---|
2045 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
---|
2046 | test_array [0] = 0 |
---|
2047 | |
---|
2048 | ; |
---|
2049 | return 0; |
---|
2050 | } |
---|
2051 | _ACEOF |
---|
2052 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2053 | case $ac_type in #( |
---|
2054 | uint$2_t) : |
---|
2055 | eval "$3=yes" ;; #( |
---|
2056 | *) : |
---|
2057 | eval "$3=\$ac_type" ;; |
---|
2058 | esac |
---|
2059 | fi |
---|
2060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2061 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2062 | |
---|
2063 | else |
---|
2064 | break |
---|
2065 | fi |
---|
2066 | done |
---|
2067 | fi |
---|
2068 | eval ac_res=\$$3 |
---|
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2070 | $as_echo "$ac_res" >&6; } |
---|
2071 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2072 | |
---|
2073 | } # ac_fn_c_find_uintX_t |
---|
2074 | cat >config.log <<_ACEOF |
---|
2075 | This file contains any messages produced by compilers while |
---|
2076 | running configure, to aid debugging if configure makes a mistake. |
---|
2077 | |
---|
2078 | It was created by cfa-cc $as_me 1.0.0.0, which was |
---|
2079 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
2080 | |
---|
2081 | $ $0 $@ |
---|
2082 | |
---|
2083 | _ACEOF |
---|
2084 | exec 5>>config.log |
---|
2085 | { |
---|
2086 | cat <<_ASUNAME |
---|
2087 | ## --------- ## |
---|
2088 | ## Platform. ## |
---|
2089 | ## --------- ## |
---|
2090 | |
---|
2091 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2092 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2093 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2094 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2095 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2096 | |
---|
2097 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2098 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2099 | |
---|
2100 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2101 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2102 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2103 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2104 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2105 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2106 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2107 | |
---|
2108 | _ASUNAME |
---|
2109 | |
---|
2110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2111 | for as_dir in $PATH |
---|
2112 | do |
---|
2113 | IFS=$as_save_IFS |
---|
2114 | test -z "$as_dir" && as_dir=. |
---|
2115 | $as_echo "PATH: $as_dir" |
---|
2116 | done |
---|
2117 | IFS=$as_save_IFS |
---|
2118 | |
---|
2119 | } >&5 |
---|
2120 | |
---|
2121 | cat >&5 <<_ACEOF |
---|
2122 | |
---|
2123 | |
---|
2124 | ## ----------- ## |
---|
2125 | ## Core tests. ## |
---|
2126 | ## ----------- ## |
---|
2127 | |
---|
2128 | _ACEOF |
---|
2129 | |
---|
2130 | |
---|
2131 | # Keep a trace of the command line. |
---|
2132 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2133 | # Strip out --silent because we don't want to record it for future runs. |
---|
2134 | # Also quote any args containing shell meta-characters. |
---|
2135 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2136 | ac_configure_args= |
---|
2137 | ac_configure_args0= |
---|
2138 | ac_configure_args1= |
---|
2139 | ac_must_keep_next=false |
---|
2140 | for ac_pass in 1 2 |
---|
2141 | do |
---|
2142 | for ac_arg |
---|
2143 | do |
---|
2144 | case $ac_arg in |
---|
2145 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2146 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2147 | | -silent | --silent | --silen | --sile | --sil) |
---|
2148 | continue ;; |
---|
2149 | *\'*) |
---|
2150 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2151 | esac |
---|
2152 | case $ac_pass in |
---|
2153 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2154 | 2) |
---|
2155 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2156 | if test $ac_must_keep_next = true; then |
---|
2157 | ac_must_keep_next=false # Got value, back to normal. |
---|
2158 | else |
---|
2159 | case $ac_arg in |
---|
2160 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2161 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2162 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2163 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2164 | case "$ac_configure_args0 " in |
---|
2165 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2166 | esac |
---|
2167 | ;; |
---|
2168 | -* ) ac_must_keep_next=true ;; |
---|
2169 | esac |
---|
2170 | fi |
---|
2171 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2172 | ;; |
---|
2173 | esac |
---|
2174 | done |
---|
2175 | done |
---|
2176 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2177 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2178 | |
---|
2179 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2180 | # config.log. We remove comments because anyway the quotes in there |
---|
2181 | # would cause problems or look ugly. |
---|
2182 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2183 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2184 | trap 'exit_status=$? |
---|
2185 | # Save into config.log some information that might help in debugging. |
---|
2186 | { |
---|
2187 | echo |
---|
2188 | |
---|
2189 | $as_echo "## ---------------- ## |
---|
2190 | ## Cache variables. ## |
---|
2191 | ## ---------------- ##" |
---|
2192 | echo |
---|
2193 | # The following way of writing the cache mishandles newlines in values, |
---|
2194 | ( |
---|
2195 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2196 | eval ac_val=\$$ac_var |
---|
2197 | case $ac_val in #( |
---|
2198 | *${as_nl}*) |
---|
2199 | case $ac_var in #( |
---|
2200 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2201 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2202 | esac |
---|
2203 | case $ac_var in #( |
---|
2204 | _ | IFS | as_nl) ;; #( |
---|
2205 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2206 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2207 | esac ;; |
---|
2208 | esac |
---|
2209 | done |
---|
2210 | (set) 2>&1 | |
---|
2211 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2212 | *${as_nl}ac_space=\ *) |
---|
2213 | sed -n \ |
---|
2214 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2215 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2216 | ;; #( |
---|
2217 | *) |
---|
2218 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2219 | ;; |
---|
2220 | esac | |
---|
2221 | sort |
---|
2222 | ) |
---|
2223 | echo |
---|
2224 | |
---|
2225 | $as_echo "## ----------------- ## |
---|
2226 | ## Output variables. ## |
---|
2227 | ## ----------------- ##" |
---|
2228 | echo |
---|
2229 | for ac_var in $ac_subst_vars |
---|
2230 | do |
---|
2231 | eval ac_val=\$$ac_var |
---|
2232 | case $ac_val in |
---|
2233 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2234 | esac |
---|
2235 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2236 | done | sort |
---|
2237 | echo |
---|
2238 | |
---|
2239 | if test -n "$ac_subst_files"; then |
---|
2240 | $as_echo "## ------------------- ## |
---|
2241 | ## File substitutions. ## |
---|
2242 | ## ------------------- ##" |
---|
2243 | echo |
---|
2244 | for ac_var in $ac_subst_files |
---|
2245 | do |
---|
2246 | eval ac_val=\$$ac_var |
---|
2247 | case $ac_val in |
---|
2248 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2249 | esac |
---|
2250 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2251 | done | sort |
---|
2252 | echo |
---|
2253 | fi |
---|
2254 | |
---|
2255 | if test -s confdefs.h; then |
---|
2256 | $as_echo "## ----------- ## |
---|
2257 | ## confdefs.h. ## |
---|
2258 | ## ----------- ##" |
---|
2259 | echo |
---|
2260 | cat confdefs.h |
---|
2261 | echo |
---|
2262 | fi |
---|
2263 | test "$ac_signal" != 0 && |
---|
2264 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2265 | $as_echo "$as_me: exit $exit_status" |
---|
2266 | } >&5 |
---|
2267 | rm -f core *.core core.conftest.* && |
---|
2268 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2269 | exit $exit_status |
---|
2270 | ' 0 |
---|
2271 | for ac_signal in 1 2 13 15; do |
---|
2272 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2273 | done |
---|
2274 | ac_signal=0 |
---|
2275 | |
---|
2276 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2277 | rm -f -r conftest* confdefs.h |
---|
2278 | |
---|
2279 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2280 | |
---|
2281 | # Predefined preprocessor variables. |
---|
2282 | |
---|
2283 | cat >>confdefs.h <<_ACEOF |
---|
2284 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2285 | _ACEOF |
---|
2286 | |
---|
2287 | cat >>confdefs.h <<_ACEOF |
---|
2288 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2289 | _ACEOF |
---|
2290 | |
---|
2291 | cat >>confdefs.h <<_ACEOF |
---|
2292 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2293 | _ACEOF |
---|
2294 | |
---|
2295 | cat >>confdefs.h <<_ACEOF |
---|
2296 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2297 | _ACEOF |
---|
2298 | |
---|
2299 | cat >>confdefs.h <<_ACEOF |
---|
2300 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2301 | _ACEOF |
---|
2302 | |
---|
2303 | cat >>confdefs.h <<_ACEOF |
---|
2304 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2305 | _ACEOF |
---|
2306 | |
---|
2307 | |
---|
2308 | # Let the site file select an alternate cache file if it wants to. |
---|
2309 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2310 | ac_site_file1=NONE |
---|
2311 | ac_site_file2=NONE |
---|
2312 | if test -n "$CONFIG_SITE"; then |
---|
2313 | # We do not want a PATH search for config.site. |
---|
2314 | case $CONFIG_SITE in #(( |
---|
2315 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2316 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2317 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2318 | esac |
---|
2319 | elif test "x$prefix" != xNONE; then |
---|
2320 | ac_site_file1=$prefix/share/config.site |
---|
2321 | ac_site_file2=$prefix/etc/config.site |
---|
2322 | else |
---|
2323 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2324 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2325 | fi |
---|
2326 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2327 | do |
---|
2328 | test "x$ac_site_file" = xNONE && continue |
---|
2329 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2331 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2332 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2333 | . "$ac_site_file" \ |
---|
2334 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2335 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2336 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2337 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2338 | fi |
---|
2339 | done |
---|
2340 | |
---|
2341 | if test -r "$cache_file"; then |
---|
2342 | # Some versions of bash will fail to source /dev/null (special files |
---|
2343 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2344 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2346 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2347 | case $cache_file in |
---|
2348 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2349 | *) . "./$cache_file";; |
---|
2350 | esac |
---|
2351 | fi |
---|
2352 | else |
---|
2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2354 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2355 | >$cache_file |
---|
2356 | fi |
---|
2357 | |
---|
2358 | # Check that the precious variables saved in the cache have kept the same |
---|
2359 | # value. |
---|
2360 | ac_cache_corrupted=false |
---|
2361 | for ac_var in $ac_precious_vars; do |
---|
2362 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2363 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2364 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2365 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2366 | case $ac_old_set,$ac_new_set in |
---|
2367 | set,) |
---|
2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2369 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2370 | ac_cache_corrupted=: ;; |
---|
2371 | ,set) |
---|
2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2373 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2374 | ac_cache_corrupted=: ;; |
---|
2375 | ,);; |
---|
2376 | *) |
---|
2377 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2378 | # differences in whitespace do not lead to failure. |
---|
2379 | ac_old_val_w=`echo x $ac_old_val` |
---|
2380 | ac_new_val_w=`echo x $ac_new_val` |
---|
2381 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2383 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2384 | ac_cache_corrupted=: |
---|
2385 | else |
---|
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2387 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2388 | eval $ac_var=\$ac_old_val |
---|
2389 | fi |
---|
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2391 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2393 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2394 | fi;; |
---|
2395 | esac |
---|
2396 | # Pass precious variables to config.status. |
---|
2397 | if test "$ac_new_set" = set; then |
---|
2398 | case $ac_new_val in |
---|
2399 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2400 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2401 | esac |
---|
2402 | case " $ac_configure_args " in |
---|
2403 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2404 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2405 | esac |
---|
2406 | fi |
---|
2407 | done |
---|
2408 | if $ac_cache_corrupted; then |
---|
2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2410 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2412 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2413 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2414 | fi |
---|
2415 | ## -------------------- ## |
---|
2416 | ## Main body of script. ## |
---|
2417 | ## -------------------- ## |
---|
2418 | |
---|
2419 | ac_ext=c |
---|
2420 | ac_cpp='$CPP $CPPFLAGS' |
---|
2421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2424 | |
---|
2425 | |
---|
2426 | ac_aux_dir= |
---|
2427 | for ac_dir in automake "$srcdir"/automake; do |
---|
2428 | if test -f "$ac_dir/install-sh"; then |
---|
2429 | ac_aux_dir=$ac_dir |
---|
2430 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2431 | break |
---|
2432 | elif test -f "$ac_dir/install.sh"; then |
---|
2433 | ac_aux_dir=$ac_dir |
---|
2434 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2435 | break |
---|
2436 | elif test -f "$ac_dir/shtool"; then |
---|
2437 | ac_aux_dir=$ac_dir |
---|
2438 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2439 | break |
---|
2440 | fi |
---|
2441 | done |
---|
2442 | if test -z "$ac_aux_dir"; then |
---|
2443 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5 |
---|
2444 | fi |
---|
2445 | |
---|
2446 | # These three variables are undocumented and unsupported, |
---|
2447 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2448 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2449 | # whose full name contains unusual characters. |
---|
2450 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2451 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2452 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2453 | |
---|
2454 | |
---|
2455 | #AC_CONFIG_SRCDIR([src/main.cc]) |
---|
2456 | ac_config_headers="$ac_config_headers config.h" |
---|
2457 | |
---|
2458 | # Check whether --enable-silent-rules was given. |
---|
2459 | if test "${enable_silent_rules+set}" = set; then : |
---|
2460 | enableval=$enable_silent_rules; |
---|
2461 | fi |
---|
2462 | |
---|
2463 | case $enable_silent_rules in |
---|
2464 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
2465 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
2466 | *) AM_DEFAULT_VERBOSITY=1;; |
---|
2467 | esac |
---|
2468 | am_make=${MAKE-make} |
---|
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
2470 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
2471 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
2472 | $as_echo_n "(cached) " >&6 |
---|
2473 | else |
---|
2474 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
2475 | BAR0=false |
---|
2476 | BAR1=true |
---|
2477 | V=1 |
---|
2478 | am__doit: |
---|
2479 | @$(TRUE) |
---|
2480 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
2481 | am_cv_make_support_nested_variables=yes |
---|
2482 | else |
---|
2483 | am_cv_make_support_nested_variables=no |
---|
2484 | fi |
---|
2485 | fi |
---|
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
2487 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
2488 | if test $am_cv_make_support_nested_variables = yes; then |
---|
2489 | AM_V='$(V)' |
---|
2490 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
2491 | else |
---|
2492 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
2493 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
2494 | fi |
---|
2495 | AM_BACKSLASH='\' |
---|
2496 | |
---|
2497 | |
---|
2498 | if test "x${CXXFLAGS}" = "x"; then |
---|
2499 | export CXXFLAGS="-std=c++11 -g ${CXXFLAGS}" # defaults, no -O2 for debugging and failures |
---|
2500 | else |
---|
2501 | export CXXFLAGS="-std=c++11 ${CXXFLAGS}" # flags from configure command |
---|
2502 | fi |
---|
2503 | |
---|
2504 | am__api_version='1.11' |
---|
2505 | |
---|
2506 | # Find a good install program. We prefer a C program (faster), |
---|
2507 | # so one script is as good as another. But avoid the broken or |
---|
2508 | # incompatible versions: |
---|
2509 | # SysV /etc/install, /usr/sbin/install |
---|
2510 | # SunOS /usr/etc/install |
---|
2511 | # IRIX /sbin/install |
---|
2512 | # AIX /bin/install |
---|
2513 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2514 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2515 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2516 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2517 | # OS/2's system install, which has a completely different semantic |
---|
2518 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2519 | # Reject install programs that cannot install multiple files. |
---|
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2521 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2522 | if test -z "$INSTALL"; then |
---|
2523 | if ${ac_cv_path_install+:} false; then : |
---|
2524 | $as_echo_n "(cached) " >&6 |
---|
2525 | else |
---|
2526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2527 | for as_dir in $PATH |
---|
2528 | do |
---|
2529 | IFS=$as_save_IFS |
---|
2530 | test -z "$as_dir" && as_dir=. |
---|
2531 | # Account for people who put trailing slashes in PATH elements. |
---|
2532 | case $as_dir/ in #(( |
---|
2533 | ./ | .// | /[cC]/* | \ |
---|
2534 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2535 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2536 | /usr/ucb/* ) ;; |
---|
2537 | *) |
---|
2538 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2539 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2540 | # by default. |
---|
2541 | for ac_prog in ginstall scoinst install; do |
---|
2542 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2543 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2544 | if test $ac_prog = install && |
---|
2545 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2546 | # AIX install. It has an incompatible calling convention. |
---|
2547 | : |
---|
2548 | elif test $ac_prog = install && |
---|
2549 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2550 | # program-specific install script used by HP pwplus--don't use. |
---|
2551 | : |
---|
2552 | else |
---|
2553 | rm -rf conftest.one conftest.two conftest.dir |
---|
2554 | echo one > conftest.one |
---|
2555 | echo two > conftest.two |
---|
2556 | mkdir conftest.dir |
---|
2557 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2558 | test -s conftest.one && test -s conftest.two && |
---|
2559 | test -s conftest.dir/conftest.one && |
---|
2560 | test -s conftest.dir/conftest.two |
---|
2561 | then |
---|
2562 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2563 | break 3 |
---|
2564 | fi |
---|
2565 | fi |
---|
2566 | fi |
---|
2567 | done |
---|
2568 | done |
---|
2569 | ;; |
---|
2570 | esac |
---|
2571 | |
---|
2572 | done |
---|
2573 | IFS=$as_save_IFS |
---|
2574 | |
---|
2575 | rm -rf conftest.one conftest.two conftest.dir |
---|
2576 | |
---|
2577 | fi |
---|
2578 | if test "${ac_cv_path_install+set}" = set; then |
---|
2579 | INSTALL=$ac_cv_path_install |
---|
2580 | else |
---|
2581 | # As a last resort, use the slow shell script. Don't cache a |
---|
2582 | # value for INSTALL within a source directory, because that will |
---|
2583 | # break other packages using the cache if that directory is |
---|
2584 | # removed, or if the value is a relative name. |
---|
2585 | INSTALL=$ac_install_sh |
---|
2586 | fi |
---|
2587 | fi |
---|
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2589 | $as_echo "$INSTALL" >&6; } |
---|
2590 | |
---|
2591 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2592 | # It thinks the first close brace ends the variable substitution. |
---|
2593 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2594 | |
---|
2595 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2596 | |
---|
2597 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2598 | |
---|
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2600 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2601 | # Just in case |
---|
2602 | sleep 1 |
---|
2603 | echo timestamp > conftest.file |
---|
2604 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2605 | # name. Accept space and tab only in the latter. |
---|
2606 | am_lf=' |
---|
2607 | ' |
---|
2608 | case `pwd` in |
---|
2609 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2610 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2611 | esac |
---|
2612 | case $srcdir in |
---|
2613 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2614 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
---|
2615 | esac |
---|
2616 | |
---|
2617 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2618 | # arguments. Must try -L first in case configure is actually a |
---|
2619 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2620 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2621 | # directory). |
---|
2622 | if ( |
---|
2623 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2624 | if test "$*" = "X"; then |
---|
2625 | # -L didn't work. |
---|
2626 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2627 | fi |
---|
2628 | rm -f conftest.file |
---|
2629 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2630 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2631 | |
---|
2632 | # If neither matched, then we have a broken ls. This can happen |
---|
2633 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2634 | # broken ls alias from the environment. This has actually |
---|
2635 | # happened. Such a system could not be considered "sane". |
---|
2636 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2637 | alias in your environment" "$LINENO" 5 |
---|
2638 | fi |
---|
2639 | |
---|
2640 | test "$2" = conftest.file |
---|
2641 | ) |
---|
2642 | then |
---|
2643 | # Ok. |
---|
2644 | : |
---|
2645 | else |
---|
2646 | as_fn_error $? "newly created file is older than distributed files! |
---|
2647 | Check your system clock" "$LINENO" 5 |
---|
2648 | fi |
---|
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2650 | $as_echo "yes" >&6; } |
---|
2651 | test "$program_prefix" != NONE && |
---|
2652 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2653 | # Use a double $ so make ignores it. |
---|
2654 | test "$program_suffix" != NONE && |
---|
2655 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2656 | # Double any \ or $. |
---|
2657 | # By default was `s,x,x', remove it if useless. |
---|
2658 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2659 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2660 | |
---|
2661 | # expand $ac_aux_dir to an absolute path |
---|
2662 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2663 | |
---|
2664 | if test x"${MISSING+set}" != xset; then |
---|
2665 | case $am_aux_dir in |
---|
2666 | *\ * | *\ *) |
---|
2667 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2668 | *) |
---|
2669 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2670 | esac |
---|
2671 | fi |
---|
2672 | # Use eval to expand $SHELL |
---|
2673 | if eval "$MISSING --run true"; then |
---|
2674 | am_missing_run="$MISSING --run " |
---|
2675 | else |
---|
2676 | am_missing_run= |
---|
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
---|
2678 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2679 | fi |
---|
2680 | |
---|
2681 | if test x"${install_sh}" != xset; then |
---|
2682 | case $am_aux_dir in |
---|
2683 | *\ * | *\ *) |
---|
2684 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2685 | *) |
---|
2686 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2687 | esac |
---|
2688 | fi |
---|
2689 | |
---|
2690 | # Installed binaries are usually stripped using `strip' when the user |
---|
2691 | # run `make install-strip'. However `strip' might not be the right |
---|
2692 | # tool to use in cross-compilation environments, therefore Automake |
---|
2693 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2694 | if test "$cross_compiling" != no; then |
---|
2695 | if test -n "$ac_tool_prefix"; then |
---|
2696 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2697 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2699 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2700 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2701 | $as_echo_n "(cached) " >&6 |
---|
2702 | else |
---|
2703 | if test -n "$STRIP"; then |
---|
2704 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2705 | else |
---|
2706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2707 | for as_dir in $PATH |
---|
2708 | do |
---|
2709 | IFS=$as_save_IFS |
---|
2710 | test -z "$as_dir" && as_dir=. |
---|
2711 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2713 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2715 | break 2 |
---|
2716 | fi |
---|
2717 | done |
---|
2718 | done |
---|
2719 | IFS=$as_save_IFS |
---|
2720 | |
---|
2721 | fi |
---|
2722 | fi |
---|
2723 | STRIP=$ac_cv_prog_STRIP |
---|
2724 | if test -n "$STRIP"; then |
---|
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2726 | $as_echo "$STRIP" >&6; } |
---|
2727 | else |
---|
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2729 | $as_echo "no" >&6; } |
---|
2730 | fi |
---|
2731 | |
---|
2732 | |
---|
2733 | fi |
---|
2734 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2735 | ac_ct_STRIP=$STRIP |
---|
2736 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2737 | set dummy strip; ac_word=$2 |
---|
2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2739 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2740 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2741 | $as_echo_n "(cached) " >&6 |
---|
2742 | else |
---|
2743 | if test -n "$ac_ct_STRIP"; then |
---|
2744 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2745 | else |
---|
2746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2747 | for as_dir in $PATH |
---|
2748 | do |
---|
2749 | IFS=$as_save_IFS |
---|
2750 | test -z "$as_dir" && as_dir=. |
---|
2751 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2753 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2755 | break 2 |
---|
2756 | fi |
---|
2757 | done |
---|
2758 | done |
---|
2759 | IFS=$as_save_IFS |
---|
2760 | |
---|
2761 | fi |
---|
2762 | fi |
---|
2763 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2764 | if test -n "$ac_ct_STRIP"; then |
---|
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2766 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2767 | else |
---|
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2769 | $as_echo "no" >&6; } |
---|
2770 | fi |
---|
2771 | |
---|
2772 | if test "x$ac_ct_STRIP" = x; then |
---|
2773 | STRIP=":" |
---|
2774 | else |
---|
2775 | case $cross_compiling:$ac_tool_warned in |
---|
2776 | yes:) |
---|
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2778 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2779 | ac_tool_warned=yes ;; |
---|
2780 | esac |
---|
2781 | STRIP=$ac_ct_STRIP |
---|
2782 | fi |
---|
2783 | else |
---|
2784 | STRIP="$ac_cv_prog_STRIP" |
---|
2785 | fi |
---|
2786 | |
---|
2787 | fi |
---|
2788 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2789 | |
---|
2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2791 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2792 | if test -z "$MKDIR_P"; then |
---|
2793 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2794 | $as_echo_n "(cached) " >&6 |
---|
2795 | else |
---|
2796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2797 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2798 | do |
---|
2799 | IFS=$as_save_IFS |
---|
2800 | test -z "$as_dir" && as_dir=. |
---|
2801 | for ac_prog in mkdir gmkdir; do |
---|
2802 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2803 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2804 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2805 | 'mkdir (GNU coreutils) '* | \ |
---|
2806 | 'mkdir (coreutils) '* | \ |
---|
2807 | 'mkdir (fileutils) '4.1*) |
---|
2808 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2809 | break 3;; |
---|
2810 | esac |
---|
2811 | done |
---|
2812 | done |
---|
2813 | done |
---|
2814 | IFS=$as_save_IFS |
---|
2815 | |
---|
2816 | fi |
---|
2817 | |
---|
2818 | test -d ./--version && rmdir ./--version |
---|
2819 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2820 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2821 | else |
---|
2822 | # As a last resort, use the slow shell script. Don't cache a |
---|
2823 | # value for MKDIR_P within a source directory, because that will |
---|
2824 | # break other packages using the cache if that directory is |
---|
2825 | # removed, or if the value is a relative name. |
---|
2826 | MKDIR_P="$ac_install_sh -d" |
---|
2827 | fi |
---|
2828 | fi |
---|
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2830 | $as_echo "$MKDIR_P" >&6; } |
---|
2831 | |
---|
2832 | mkdir_p="$MKDIR_P" |
---|
2833 | case $mkdir_p in |
---|
2834 | [\\/$]* | ?:[\\/]*) ;; |
---|
2835 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2836 | esac |
---|
2837 | |
---|
2838 | for ac_prog in gawk mawk nawk awk |
---|
2839 | do |
---|
2840 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2841 | set dummy $ac_prog; ac_word=$2 |
---|
2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2843 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2844 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2845 | $as_echo_n "(cached) " >&6 |
---|
2846 | else |
---|
2847 | if test -n "$AWK"; then |
---|
2848 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2849 | else |
---|
2850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2851 | for as_dir in $PATH |
---|
2852 | do |
---|
2853 | IFS=$as_save_IFS |
---|
2854 | test -z "$as_dir" && as_dir=. |
---|
2855 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2857 | ac_cv_prog_AWK="$ac_prog" |
---|
2858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2859 | break 2 |
---|
2860 | fi |
---|
2861 | done |
---|
2862 | done |
---|
2863 | IFS=$as_save_IFS |
---|
2864 | |
---|
2865 | fi |
---|
2866 | fi |
---|
2867 | AWK=$ac_cv_prog_AWK |
---|
2868 | if test -n "$AWK"; then |
---|
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2870 | $as_echo "$AWK" >&6; } |
---|
2871 | else |
---|
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2873 | $as_echo "no" >&6; } |
---|
2874 | fi |
---|
2875 | |
---|
2876 | |
---|
2877 | test -n "$AWK" && break |
---|
2878 | done |
---|
2879 | |
---|
2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2881 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2882 | set x ${MAKE-make} |
---|
2883 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2884 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2885 | $as_echo_n "(cached) " >&6 |
---|
2886 | else |
---|
2887 | cat >conftest.make <<\_ACEOF |
---|
2888 | SHELL = /bin/sh |
---|
2889 | all: |
---|
2890 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2891 | _ACEOF |
---|
2892 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2893 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2894 | *@@@%%%=?*=@@@%%%*) |
---|
2895 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2896 | *) |
---|
2897 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2898 | esac |
---|
2899 | rm -f conftest.make |
---|
2900 | fi |
---|
2901 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2903 | $as_echo "yes" >&6; } |
---|
2904 | SET_MAKE= |
---|
2905 | else |
---|
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2907 | $as_echo "no" >&6; } |
---|
2908 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2909 | fi |
---|
2910 | |
---|
2911 | rm -rf .tst 2>/dev/null |
---|
2912 | mkdir .tst 2>/dev/null |
---|
2913 | if test -d .tst; then |
---|
2914 | am__leading_dot=. |
---|
2915 | else |
---|
2916 | am__leading_dot=_ |
---|
2917 | fi |
---|
2918 | rmdir .tst 2>/dev/null |
---|
2919 | |
---|
2920 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2921 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2922 | # is not polluted with repeated "-I." |
---|
2923 | am__isrc=' -I$(srcdir)' |
---|
2924 | # test to see if srcdir already configured |
---|
2925 | if test -f $srcdir/config.status; then |
---|
2926 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2927 | fi |
---|
2928 | fi |
---|
2929 | |
---|
2930 | # test whether we have cygpath |
---|
2931 | if test -z "$CYGPATH_W"; then |
---|
2932 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2933 | CYGPATH_W='cygpath -w' |
---|
2934 | else |
---|
2935 | CYGPATH_W=echo |
---|
2936 | fi |
---|
2937 | fi |
---|
2938 | |
---|
2939 | |
---|
2940 | # Define the identity of the package. |
---|
2941 | PACKAGE='cfa-cc' |
---|
2942 | VERSION='1.0.0.0' |
---|
2943 | |
---|
2944 | |
---|
2945 | cat >>confdefs.h <<_ACEOF |
---|
2946 | #define PACKAGE "$PACKAGE" |
---|
2947 | _ACEOF |
---|
2948 | |
---|
2949 | |
---|
2950 | cat >>confdefs.h <<_ACEOF |
---|
2951 | #define VERSION "$VERSION" |
---|
2952 | _ACEOF |
---|
2953 | |
---|
2954 | # Some tools Automake needs. |
---|
2955 | |
---|
2956 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2957 | |
---|
2958 | |
---|
2959 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2960 | |
---|
2961 | |
---|
2962 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2963 | |
---|
2964 | |
---|
2965 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2966 | |
---|
2967 | |
---|
2968 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2969 | |
---|
2970 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2971 | # some platforms. |
---|
2972 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
2973 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
2974 | AMTAR='$${TAR-tar}' |
---|
2975 | |
---|
2976 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
2977 | |
---|
2978 | |
---|
2979 | |
---|
2980 | |
---|
2981 | |
---|
2982 | |
---|
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
2984 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
---|
2985 | # Check whether --enable-maintainer-mode was given. |
---|
2986 | if test "${enable_maintainer_mode+set}" = set; then : |
---|
2987 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
---|
2988 | else |
---|
2989 | USE_MAINTAINER_MODE=yes |
---|
2990 | fi |
---|
2991 | |
---|
2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
---|
2993 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
---|
2994 | if test $USE_MAINTAINER_MODE = yes; then |
---|
2995 | MAINTAINER_MODE_TRUE= |
---|
2996 | MAINTAINER_MODE_FALSE='#' |
---|
2997 | else |
---|
2998 | MAINTAINER_MODE_TRUE='#' |
---|
2999 | MAINTAINER_MODE_FALSE= |
---|
3000 | fi |
---|
3001 | |
---|
3002 | MAINT=$MAINTAINER_MODE_TRUE |
---|
3003 | |
---|
3004 | # may require auto* software to be installed |
---|
3005 | |
---|
3006 | # Allow program name tansformation |
---|
3007 | # will fill program_transform_name with appropriate sed regex |
---|
3008 | |
---|
3009 | |
---|
3010 | #Trasforming cc1 will break compilation |
---|
3011 | if test "${program_transform_name}" = ""; then |
---|
3012 | as_fn_error $? "Program transform not supported. |
---|
3013 | Use --with-cfa-name='[Desired name here]' instead" "$LINENO" 5 |
---|
3014 | fi |
---|
3015 | |
---|
3016 | |
---|
3017 | # Check whether --with-cfa-name was given. |
---|
3018 | if test "${with_cfa_name+set}" = set; then : |
---|
3019 | withval=$with_cfa_name; cfa_name=$withval |
---|
3020 | else |
---|
3021 | cfa_name="cfa" |
---|
3022 | fi |
---|
3023 | |
---|
3024 | |
---|
3025 | #Define the new name of the installed command |
---|
3026 | CFA_NAME=${cfa_name} |
---|
3027 | |
---|
3028 | |
---|
3029 | rm -f version |
---|
3030 | echo ${PACKAGE_VERSION} > version # file containing version number for other tools |
---|
3031 | chmod ugo-w version |
---|
3032 | ver_major=`cut -d '.' -f1 version` # subdivide version number into components at periods |
---|
3033 | ver_minor=`cut -d '.' -f2 version` |
---|
3034 | ver_patch=`cut -d '.' -f3 version` |
---|
3035 | ver_build=`cut -d '.' -f4 version` |
---|
3036 | |
---|
3037 | # AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version']) |
---|
3038 | |
---|
3039 | cat >>confdefs.h <<_ACEOF |
---|
3040 | #define CFA_VERSION_MAJOR ${ver_major} |
---|
3041 | _ACEOF |
---|
3042 | |
---|
3043 | |
---|
3044 | cat >>confdefs.h <<_ACEOF |
---|
3045 | #define CFA_VERSION_MINOR ${ver_minor} |
---|
3046 | _ACEOF |
---|
3047 | |
---|
3048 | |
---|
3049 | cat >>confdefs.h <<_ACEOF |
---|
3050 | #define CFA_VERSION_PATCH ${ver_patch} |
---|
3051 | _ACEOF |
---|
3052 | |
---|
3053 | |
---|
3054 | cat >>confdefs.h <<_ACEOF |
---|
3055 | #define CFA_VERSION_BUILD ${ver_build} |
---|
3056 | _ACEOF |
---|
3057 | |
---|
3058 | |
---|
3059 | cat >>confdefs.h <<_ACEOF |
---|
3060 | #define CFA_VERSION_SHORT "${ver_major}" |
---|
3061 | _ACEOF |
---|
3062 | |
---|
3063 | |
---|
3064 | cat >>confdefs.h <<_ACEOF |
---|
3065 | #define CFA_VERSION "${ver_major}.${ver_minor}" |
---|
3066 | _ACEOF |
---|
3067 | |
---|
3068 | |
---|
3069 | cat >>confdefs.h <<_ACEOF |
---|
3070 | #define CFA_VERSION_LONG "${ver_major}.${ver_minor}.${ver_patch}" |
---|
3071 | _ACEOF |
---|
3072 | |
---|
3073 | |
---|
3074 | cat >>confdefs.h <<_ACEOF |
---|
3075 | #define CFA_VERSION_FULL "${ver_major}.${ver_minor}.${ver_patch}.${ver_build}" |
---|
3076 | _ACEOF |
---|
3077 | |
---|
3078 | |
---|
3079 | # Installation paths |
---|
3080 | |
---|
3081 | |
---|
3082 | # Check whether --with-backend-compiler was given. |
---|
3083 | if test "${with_backend_compiler+set}" = set; then : |
---|
3084 | withval=$with_backend_compiler; backendcompiler=$withval |
---|
3085 | else |
---|
3086 | backendcompiler="" |
---|
3087 | fi |
---|
3088 | |
---|
3089 | if test "x$backendcompiler" != "x"; then |
---|
3090 | BACKEND_CC=${backendcompiler} |
---|
3091 | else |
---|
3092 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3093 | set dummy gcc; ac_word=$2 |
---|
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3095 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3096 | if ${ac_cv_path_BACKEND_CC+:} false; then : |
---|
3097 | $as_echo_n "(cached) " >&6 |
---|
3098 | else |
---|
3099 | case $BACKEND_CC in |
---|
3100 | [\\/]* | ?:[\\/]*) |
---|
3101 | ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path. |
---|
3102 | ;; |
---|
3103 | *) |
---|
3104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3105 | for as_dir in $PATH |
---|
3106 | do |
---|
3107 | IFS=$as_save_IFS |
---|
3108 | test -z "$as_dir" && as_dir=. |
---|
3109 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3111 | ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext" |
---|
3112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3113 | break 2 |
---|
3114 | fi |
---|
3115 | done |
---|
3116 | done |
---|
3117 | IFS=$as_save_IFS |
---|
3118 | |
---|
3119 | ;; |
---|
3120 | esac |
---|
3121 | fi |
---|
3122 | BACKEND_CC=$ac_cv_path_BACKEND_CC |
---|
3123 | if test -n "$BACKEND_CC"; then |
---|
3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&5 |
---|
3125 | $as_echo "$BACKEND_CC" >&6; } |
---|
3126 | else |
---|
3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3128 | $as_echo "no" >&6; } |
---|
3129 | fi |
---|
3130 | |
---|
3131 | # check gcc installed |
---|
3132 | if test "x$BACKEND_CC" = "x"; then |
---|
3133 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 |
---|
3134 | exit 1 |
---|
3135 | fi |
---|
3136 | fi |
---|
3137 | |
---|
3138 | cat >>confdefs.h <<_ACEOF |
---|
3139 | #define CFA_BACKEND_CC "${BACKEND_CC}" |
---|
3140 | _ACEOF |
---|
3141 | |
---|
3142 | |
---|
3143 | |
---|
3144 | |
---|
3145 | |
---|
3146 | # Check whether --enable-target-release was given. |
---|
3147 | if test "${enable_target_release+set}" = set; then : |
---|
3148 | enableval=$enable_target_release; |
---|
3149 | fi |
---|
3150 | |
---|
3151 | # Check whether --enable-target-debug was given. |
---|
3152 | if test "${enable_target_debug+set}" = set; then : |
---|
3153 | enableval=$enable_target_debug; |
---|
3154 | fi |
---|
3155 | |
---|
3156 | # Check whether --enable-threading was given. |
---|
3157 | if test "${enable_threading+set}" = set; then : |
---|
3158 | enableval=$enable_threading; case "${enableval}" in |
---|
3159 | yes) build_threading="yes" ;; |
---|
3160 | no) build_threading="no" ;; |
---|
3161 | *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; |
---|
3162 | esac |
---|
3163 | else |
---|
3164 | build_threading="yes" |
---|
3165 | fi |
---|
3166 | |
---|
3167 | |
---|
3168 | case "$enable_target_release" in |
---|
3169 | yes) |
---|
3170 | case "$enable_target_debug" in |
---|
3171 | yes) |
---|
3172 | build_release="yes" |
---|
3173 | build_debug="yes" |
---|
3174 | ;; |
---|
3175 | no) |
---|
3176 | build_release="yes" |
---|
3177 | build_debug="no" |
---|
3178 | ;; |
---|
3179 | *) |
---|
3180 | build_release="yes" |
---|
3181 | build_debug="no" |
---|
3182 | ;; |
---|
3183 | esac |
---|
3184 | ;; |
---|
3185 | no) |
---|
3186 | case "$enable_target_debug" in |
---|
3187 | yes) |
---|
3188 | build_release="no" |
---|
3189 | build_debug="yes" |
---|
3190 | ;; |
---|
3191 | no) |
---|
3192 | build_release="no" |
---|
3193 | build_debug="no" |
---|
3194 | ;; |
---|
3195 | *) |
---|
3196 | build_release="no" |
---|
3197 | build_debug="yes" |
---|
3198 | ;; |
---|
3199 | esac |
---|
3200 | ;; |
---|
3201 | *) |
---|
3202 | case "$enable_target_debug" in |
---|
3203 | yes) |
---|
3204 | build_release="no" |
---|
3205 | build_debug="yes" |
---|
3206 | ;; |
---|
3207 | no) |
---|
3208 | build_release="yes" |
---|
3209 | build_debug="no" |
---|
3210 | ;; |
---|
3211 | *) |
---|
3212 | build_release="yes" |
---|
3213 | build_debug="yes" |
---|
3214 | ;; |
---|
3215 | esac |
---|
3216 | ;; |
---|
3217 | esac |
---|
3218 | |
---|
3219 | if test "x$build_release" = "xyes"; then |
---|
3220 | BUILD_RELEASE_TRUE= |
---|
3221 | BUILD_RELEASE_FALSE='#' |
---|
3222 | else |
---|
3223 | BUILD_RELEASE_TRUE='#' |
---|
3224 | BUILD_RELEASE_FALSE= |
---|
3225 | fi |
---|
3226 | |
---|
3227 | if test "x$build_debug" = "xyes"; then |
---|
3228 | BUILD_DEBUG_TRUE= |
---|
3229 | BUILD_DEBUG_FALSE='#' |
---|
3230 | else |
---|
3231 | BUILD_DEBUG_TRUE='#' |
---|
3232 | BUILD_DEBUG_FALSE= |
---|
3233 | fi |
---|
3234 | |
---|
3235 | if test "x$build_release$build_debug" = "xnono"; then |
---|
3236 | BUILD_NO_LIB_TRUE= |
---|
3237 | BUILD_NO_LIB_FALSE='#' |
---|
3238 | else |
---|
3239 | BUILD_NO_LIB_TRUE='#' |
---|
3240 | BUILD_NO_LIB_FALSE= |
---|
3241 | fi |
---|
3242 | |
---|
3243 | if test "x$build_threading" = "xyes"; then |
---|
3244 | BUILD_CONCURRENCY_TRUE= |
---|
3245 | BUILD_CONCURRENCY_FALSE='#' |
---|
3246 | else |
---|
3247 | BUILD_CONCURRENCY_TRUE='#' |
---|
3248 | BUILD_CONCURRENCY_FALSE= |
---|
3249 | fi |
---|
3250 | |
---|
3251 | |
---|
3252 | if test "x$prefix" = "xNONE"; then |
---|
3253 | cfa_prefix=${ac_default_prefix} |
---|
3254 | else |
---|
3255 | cfa_prefix=${prefix} |
---|
3256 | fi |
---|
3257 | |
---|
3258 | cat >>confdefs.h <<_ACEOF |
---|
3259 | #define CFA_PREFIX "${cfa_prefix}" |
---|
3260 | _ACEOF |
---|
3261 | |
---|
3262 | CFA_PREFIX=${cfa_prefix} |
---|
3263 | |
---|
3264 | |
---|
3265 | if test "$includedir" = '${prefix}/include'; then |
---|
3266 | cfa_incdir="${cfa_prefix}/include/${cfa_name}" |
---|
3267 | else |
---|
3268 | cfa_incdir=${includedir} |
---|
3269 | fi |
---|
3270 | |
---|
3271 | cat >>confdefs.h <<_ACEOF |
---|
3272 | #define CFA_INCDIR "${cfa_incdir}" |
---|
3273 | _ACEOF |
---|
3274 | |
---|
3275 | CFA_INCDIR=${cfa_incdir} |
---|
3276 | |
---|
3277 | |
---|
3278 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
3279 | cfa_bindir="${cfa_prefix}/bin" |
---|
3280 | else |
---|
3281 | cfa_bindir=${bindir} |
---|
3282 | fi |
---|
3283 | |
---|
3284 | cat >>confdefs.h <<_ACEOF |
---|
3285 | #define CFA_BINDIR "${cfa_bindir}" |
---|
3286 | _ACEOF |
---|
3287 | |
---|
3288 | CFA_BINDIR=${cfa_bindir} |
---|
3289 | |
---|
3290 | |
---|
3291 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
3292 | cfa_libdir="${cfa_prefix}/lib/${cfa_name}" |
---|
3293 | else |
---|
3294 | cfa_libdir=${libdir} |
---|
3295 | fi |
---|
3296 | |
---|
3297 | cat >>confdefs.h <<_ACEOF |
---|
3298 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
3299 | _ACEOF |
---|
3300 | |
---|
3301 | CFA_LIBDIR=${cfa_libdir} |
---|
3302 | |
---|
3303 | |
---|
3304 | # Make sure we can run config.sub. |
---|
3305 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
3306 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
3307 | |
---|
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
3309 | $as_echo_n "checking build system type... " >&6; } |
---|
3310 | if ${ac_cv_build+:} false; then : |
---|
3311 | $as_echo_n "(cached) " >&6 |
---|
3312 | else |
---|
3313 | ac_build_alias=$build_alias |
---|
3314 | test "x$ac_build_alias" = x && |
---|
3315 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
3316 | test "x$ac_build_alias" = x && |
---|
3317 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
3318 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
3319 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
3320 | |
---|
3321 | fi |
---|
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
3323 | $as_echo "$ac_cv_build" >&6; } |
---|
3324 | case $ac_cv_build in |
---|
3325 | *-*-*) ;; |
---|
3326 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
3327 | esac |
---|
3328 | build=$ac_cv_build |
---|
3329 | ac_save_IFS=$IFS; IFS='-' |
---|
3330 | set x $ac_cv_build |
---|
3331 | shift |
---|
3332 | build_cpu=$1 |
---|
3333 | build_vendor=$2 |
---|
3334 | shift; shift |
---|
3335 | # Remember, the first character of IFS is used to create $*, |
---|
3336 | # except with old shells: |
---|
3337 | build_os=$* |
---|
3338 | IFS=$ac_save_IFS |
---|
3339 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
3340 | |
---|
3341 | |
---|
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
3343 | $as_echo_n "checking host system type... " >&6; } |
---|
3344 | if ${ac_cv_host+:} false; then : |
---|
3345 | $as_echo_n "(cached) " >&6 |
---|
3346 | else |
---|
3347 | if test "x$host_alias" = x; then |
---|
3348 | ac_cv_host=$ac_cv_build |
---|
3349 | else |
---|
3350 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
3351 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
3352 | fi |
---|
3353 | |
---|
3354 | fi |
---|
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
3356 | $as_echo "$ac_cv_host" >&6; } |
---|
3357 | case $ac_cv_host in |
---|
3358 | *-*-*) ;; |
---|
3359 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
3360 | esac |
---|
3361 | host=$ac_cv_host |
---|
3362 | ac_save_IFS=$IFS; IFS='-' |
---|
3363 | set x $ac_cv_host |
---|
3364 | shift |
---|
3365 | host_cpu=$1 |
---|
3366 | host_vendor=$2 |
---|
3367 | shift; shift |
---|
3368 | # Remember, the first character of IFS is used to create $*, |
---|
3369 | # except with old shells: |
---|
3370 | host_os=$* |
---|
3371 | IFS=$ac_save_IFS |
---|
3372 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
3373 | |
---|
3374 | |
---|
3375 | MACHINE_TYPE=$host_cpu |
---|
3376 | |
---|
3377 | |
---|
3378 | if ! test "$host_cpu" = "$build_cpu"; then |
---|
3379 | case $host_cpu in |
---|
3380 | i386) |
---|
3381 | CFLAGS+="-m32" |
---|
3382 | CXXFLAGS+="-m32" |
---|
3383 | CFAFLAGS+="-m32" |
---|
3384 | LDFLAGS+="-m32" |
---|
3385 | ;; |
---|
3386 | i686) |
---|
3387 | CFLAGS+="-m32" |
---|
3388 | CXXFLAGS+="-m32" |
---|
3389 | CFAFLAGS+="-m32" |
---|
3390 | LDFLAGS+="-m32" |
---|
3391 | ;; |
---|
3392 | x86_64) |
---|
3393 | CFLAGS+="-m64" |
---|
3394 | CXXFLAGS+="-m64" |
---|
3395 | CFAFLAGS+="-m64" |
---|
3396 | LDFLAGS+="-m64" |
---|
3397 | ;; |
---|
3398 | esac |
---|
3399 | fi |
---|
3400 | |
---|
3401 | |
---|
3402 | cat >>confdefs.h <<_ACEOF |
---|
3403 | #define CFA_FLAGS "${CFAFLAGS}" |
---|
3404 | _ACEOF |
---|
3405 | |
---|
3406 | CFA_FLAGS=${CFAFLAGS} |
---|
3407 | |
---|
3408 | |
---|
3409 | # Checks for programs. |
---|
3410 | ac_ext=cpp |
---|
3411 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3413 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3415 | if test -z "$CXX"; then |
---|
3416 | if test -n "$CCC"; then |
---|
3417 | CXX=$CCC |
---|
3418 | else |
---|
3419 | if test -n "$ac_tool_prefix"; then |
---|
3420 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3421 | do |
---|
3422 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3423 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3425 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3426 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3427 | $as_echo_n "(cached) " >&6 |
---|
3428 | else |
---|
3429 | if test -n "$CXX"; then |
---|
3430 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3431 | else |
---|
3432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3433 | for as_dir in $PATH |
---|
3434 | do |
---|
3435 | IFS=$as_save_IFS |
---|
3436 | test -z "$as_dir" && as_dir=. |
---|
3437 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3439 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3441 | break 2 |
---|
3442 | fi |
---|
3443 | done |
---|
3444 | done |
---|
3445 | IFS=$as_save_IFS |
---|
3446 | |
---|
3447 | fi |
---|
3448 | fi |
---|
3449 | CXX=$ac_cv_prog_CXX |
---|
3450 | if test -n "$CXX"; then |
---|
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3452 | $as_echo "$CXX" >&6; } |
---|
3453 | else |
---|
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3455 | $as_echo "no" >&6; } |
---|
3456 | fi |
---|
3457 | |
---|
3458 | |
---|
3459 | test -n "$CXX" && break |
---|
3460 | done |
---|
3461 | fi |
---|
3462 | if test -z "$CXX"; then |
---|
3463 | ac_ct_CXX=$CXX |
---|
3464 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3465 | do |
---|
3466 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3467 | set dummy $ac_prog; ac_word=$2 |
---|
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3469 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3470 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3471 | $as_echo_n "(cached) " >&6 |
---|
3472 | else |
---|
3473 | if test -n "$ac_ct_CXX"; then |
---|
3474 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3475 | else |
---|
3476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3477 | for as_dir in $PATH |
---|
3478 | do |
---|
3479 | IFS=$as_save_IFS |
---|
3480 | test -z "$as_dir" && as_dir=. |
---|
3481 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3483 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3485 | break 2 |
---|
3486 | fi |
---|
3487 | done |
---|
3488 | done |
---|
3489 | IFS=$as_save_IFS |
---|
3490 | |
---|
3491 | fi |
---|
3492 | fi |
---|
3493 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3494 | if test -n "$ac_ct_CXX"; then |
---|
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3496 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3497 | else |
---|
3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3499 | $as_echo "no" >&6; } |
---|
3500 | fi |
---|
3501 | |
---|
3502 | |
---|
3503 | test -n "$ac_ct_CXX" && break |
---|
3504 | done |
---|
3505 | |
---|
3506 | if test "x$ac_ct_CXX" = x; then |
---|
3507 | CXX="g++" |
---|
3508 | else |
---|
3509 | case $cross_compiling:$ac_tool_warned in |
---|
3510 | yes:) |
---|
3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3512 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3513 | ac_tool_warned=yes ;; |
---|
3514 | esac |
---|
3515 | CXX=$ac_ct_CXX |
---|
3516 | fi |
---|
3517 | fi |
---|
3518 | |
---|
3519 | fi |
---|
3520 | fi |
---|
3521 | # Provide some information about the compiler. |
---|
3522 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3523 | set X $ac_compile |
---|
3524 | ac_compiler=$2 |
---|
3525 | for ac_option in --version -v -V -qversion; do |
---|
3526 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3527 | case "(($ac_try" in |
---|
3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3529 | *) ac_try_echo=$ac_try;; |
---|
3530 | esac |
---|
3531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3532 | $as_echo "$ac_try_echo"; } >&5 |
---|
3533 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3534 | ac_status=$? |
---|
3535 | if test -s conftest.err; then |
---|
3536 | sed '10a\ |
---|
3537 | ... rest of stderr output deleted ... |
---|
3538 | 10q' conftest.err >conftest.er1 |
---|
3539 | cat conftest.er1 >&5 |
---|
3540 | fi |
---|
3541 | rm -f conftest.er1 conftest.err |
---|
3542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3543 | test $ac_status = 0; } |
---|
3544 | done |
---|
3545 | |
---|
3546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3547 | /* end confdefs.h. */ |
---|
3548 | |
---|
3549 | int |
---|
3550 | main () |
---|
3551 | { |
---|
3552 | |
---|
3553 | ; |
---|
3554 | return 0; |
---|
3555 | } |
---|
3556 | _ACEOF |
---|
3557 | ac_clean_files_save=$ac_clean_files |
---|
3558 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3559 | # Try to create an executable without -o first, disregard a.out. |
---|
3560 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3561 | # of exeext. |
---|
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3563 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3564 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3565 | |
---|
3566 | # The possible output files: |
---|
3567 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3568 | |
---|
3569 | ac_rmfiles= |
---|
3570 | for ac_file in $ac_files |
---|
3571 | do |
---|
3572 | case $ac_file in |
---|
3573 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3574 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3575 | esac |
---|
3576 | done |
---|
3577 | rm -f $ac_rmfiles |
---|
3578 | |
---|
3579 | if { { ac_try="$ac_link_default" |
---|
3580 | case "(($ac_try" in |
---|
3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3582 | *) ac_try_echo=$ac_try;; |
---|
3583 | esac |
---|
3584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3585 | $as_echo "$ac_try_echo"; } >&5 |
---|
3586 | (eval "$ac_link_default") 2>&5 |
---|
3587 | ac_status=$? |
---|
3588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3589 | test $ac_status = 0; }; then : |
---|
3590 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3591 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3592 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3593 | # so that the user can short-circuit this test for compilers unknown to |
---|
3594 | # Autoconf. |
---|
3595 | for ac_file in $ac_files '' |
---|
3596 | do |
---|
3597 | test -f "$ac_file" || continue |
---|
3598 | case $ac_file in |
---|
3599 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3600 | ;; |
---|
3601 | [ab].out ) |
---|
3602 | # We found the default executable, but exeext='' is most |
---|
3603 | # certainly right. |
---|
3604 | break;; |
---|
3605 | *.* ) |
---|
3606 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3607 | then :; else |
---|
3608 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3609 | fi |
---|
3610 | # We set ac_cv_exeext here because the later test for it is not |
---|
3611 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3612 | # argument, so we may need to know it at that point already. |
---|
3613 | # Even if this section looks crufty: it has the advantage of |
---|
3614 | # actually working. |
---|
3615 | break;; |
---|
3616 | * ) |
---|
3617 | break;; |
---|
3618 | esac |
---|
3619 | done |
---|
3620 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3621 | |
---|
3622 | else |
---|
3623 | ac_file='' |
---|
3624 | fi |
---|
3625 | if test -z "$ac_file"; then : |
---|
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3627 | $as_echo "no" >&6; } |
---|
3628 | $as_echo "$as_me: failed program was:" >&5 |
---|
3629 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3630 | |
---|
3631 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3632 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3633 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3634 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3635 | else |
---|
3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3637 | $as_echo "yes" >&6; } |
---|
3638 | fi |
---|
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3640 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3642 | $as_echo "$ac_file" >&6; } |
---|
3643 | ac_exeext=$ac_cv_exeext |
---|
3644 | |
---|
3645 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3646 | ac_clean_files=$ac_clean_files_save |
---|
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3648 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3649 | if { { ac_try="$ac_link" |
---|
3650 | case "(($ac_try" in |
---|
3651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3652 | *) ac_try_echo=$ac_try;; |
---|
3653 | esac |
---|
3654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3655 | $as_echo "$ac_try_echo"; } >&5 |
---|
3656 | (eval "$ac_link") 2>&5 |
---|
3657 | ac_status=$? |
---|
3658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3659 | test $ac_status = 0; }; then : |
---|
3660 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3661 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3662 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3663 | # `rm'. |
---|
3664 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3665 | test -f "$ac_file" || continue |
---|
3666 | case $ac_file in |
---|
3667 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3668 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3669 | break;; |
---|
3670 | * ) break;; |
---|
3671 | esac |
---|
3672 | done |
---|
3673 | else |
---|
3674 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3675 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3676 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3677 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3678 | fi |
---|
3679 | rm -f conftest conftest$ac_cv_exeext |
---|
3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3681 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3682 | |
---|
3683 | rm -f conftest.$ac_ext |
---|
3684 | EXEEXT=$ac_cv_exeext |
---|
3685 | ac_exeext=$EXEEXT |
---|
3686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3687 | /* end confdefs.h. */ |
---|
3688 | #include <stdio.h> |
---|
3689 | int |
---|
3690 | main () |
---|
3691 | { |
---|
3692 | FILE *f = fopen ("conftest.out", "w"); |
---|
3693 | return ferror (f) || fclose (f) != 0; |
---|
3694 | |
---|
3695 | ; |
---|
3696 | return 0; |
---|
3697 | } |
---|
3698 | _ACEOF |
---|
3699 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3700 | # Check that the compiler produces executables we can run. If not, either |
---|
3701 | # the compiler is broken, or we cross compile. |
---|
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3703 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3704 | if test "$cross_compiling" != yes; then |
---|
3705 | { { ac_try="$ac_link" |
---|
3706 | case "(($ac_try" in |
---|
3707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3708 | *) ac_try_echo=$ac_try;; |
---|
3709 | esac |
---|
3710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3711 | $as_echo "$ac_try_echo"; } >&5 |
---|
3712 | (eval "$ac_link") 2>&5 |
---|
3713 | ac_status=$? |
---|
3714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3715 | test $ac_status = 0; } |
---|
3716 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3717 | { { case "(($ac_try" in |
---|
3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3719 | *) ac_try_echo=$ac_try;; |
---|
3720 | esac |
---|
3721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3722 | $as_echo "$ac_try_echo"; } >&5 |
---|
3723 | (eval "$ac_try") 2>&5 |
---|
3724 | ac_status=$? |
---|
3725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3726 | test $ac_status = 0; }; }; then |
---|
3727 | cross_compiling=no |
---|
3728 | else |
---|
3729 | if test "$cross_compiling" = maybe; then |
---|
3730 | cross_compiling=yes |
---|
3731 | else |
---|
3732 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3733 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3734 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3735 | If you meant to cross compile, use \`--host'. |
---|
3736 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3737 | fi |
---|
3738 | fi |
---|
3739 | fi |
---|
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3741 | $as_echo "$cross_compiling" >&6; } |
---|
3742 | |
---|
3743 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3744 | ac_clean_files=$ac_clean_files_save |
---|
3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3746 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3747 | if ${ac_cv_objext+:} false; then : |
---|
3748 | $as_echo_n "(cached) " >&6 |
---|
3749 | else |
---|
3750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3751 | /* end confdefs.h. */ |
---|
3752 | |
---|
3753 | int |
---|
3754 | main () |
---|
3755 | { |
---|
3756 | |
---|
3757 | ; |
---|
3758 | return 0; |
---|
3759 | } |
---|
3760 | _ACEOF |
---|
3761 | rm -f conftest.o conftest.obj |
---|
3762 | if { { ac_try="$ac_compile" |
---|
3763 | case "(($ac_try" in |
---|
3764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3765 | *) ac_try_echo=$ac_try;; |
---|
3766 | esac |
---|
3767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3768 | $as_echo "$ac_try_echo"; } >&5 |
---|
3769 | (eval "$ac_compile") 2>&5 |
---|
3770 | ac_status=$? |
---|
3771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3772 | test $ac_status = 0; }; then : |
---|
3773 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3774 | test -f "$ac_file" || continue; |
---|
3775 | case $ac_file in |
---|
3776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3777 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3778 | break;; |
---|
3779 | esac |
---|
3780 | done |
---|
3781 | else |
---|
3782 | $as_echo "$as_me: failed program was:" >&5 |
---|
3783 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3784 | |
---|
3785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3787 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3788 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3789 | fi |
---|
3790 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3791 | fi |
---|
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3793 | $as_echo "$ac_cv_objext" >&6; } |
---|
3794 | OBJEXT=$ac_cv_objext |
---|
3795 | ac_objext=$OBJEXT |
---|
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3797 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3798 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3799 | $as_echo_n "(cached) " >&6 |
---|
3800 | else |
---|
3801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3802 | /* end confdefs.h. */ |
---|
3803 | |
---|
3804 | int |
---|
3805 | main () |
---|
3806 | { |
---|
3807 | #ifndef __GNUC__ |
---|
3808 | choke me |
---|
3809 | #endif |
---|
3810 | |
---|
3811 | ; |
---|
3812 | return 0; |
---|
3813 | } |
---|
3814 | _ACEOF |
---|
3815 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3816 | ac_compiler_gnu=yes |
---|
3817 | else |
---|
3818 | ac_compiler_gnu=no |
---|
3819 | fi |
---|
3820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3821 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3822 | |
---|
3823 | fi |
---|
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3825 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3826 | if test $ac_compiler_gnu = yes; then |
---|
3827 | GXX=yes |
---|
3828 | else |
---|
3829 | GXX= |
---|
3830 | fi |
---|
3831 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3832 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3834 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3835 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3836 | $as_echo_n "(cached) " >&6 |
---|
3837 | else |
---|
3838 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3839 | ac_cxx_werror_flag=yes |
---|
3840 | ac_cv_prog_cxx_g=no |
---|
3841 | CXXFLAGS="-g" |
---|
3842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3843 | /* end confdefs.h. */ |
---|
3844 | |
---|
3845 | int |
---|
3846 | main () |
---|
3847 | { |
---|
3848 | |
---|
3849 | ; |
---|
3850 | return 0; |
---|
3851 | } |
---|
3852 | _ACEOF |
---|
3853 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3854 | ac_cv_prog_cxx_g=yes |
---|
3855 | else |
---|
3856 | CXXFLAGS="" |
---|
3857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3858 | /* end confdefs.h. */ |
---|
3859 | |
---|
3860 | int |
---|
3861 | main () |
---|
3862 | { |
---|
3863 | |
---|
3864 | ; |
---|
3865 | return 0; |
---|
3866 | } |
---|
3867 | _ACEOF |
---|
3868 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3869 | |
---|
3870 | else |
---|
3871 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3872 | CXXFLAGS="-g" |
---|
3873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3874 | /* end confdefs.h. */ |
---|
3875 | |
---|
3876 | int |
---|
3877 | main () |
---|
3878 | { |
---|
3879 | |
---|
3880 | ; |
---|
3881 | return 0; |
---|
3882 | } |
---|
3883 | _ACEOF |
---|
3884 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3885 | ac_cv_prog_cxx_g=yes |
---|
3886 | fi |
---|
3887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3888 | fi |
---|
3889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3890 | fi |
---|
3891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3892 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3893 | fi |
---|
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3895 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3896 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3897 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3898 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3899 | if test "$GXX" = yes; then |
---|
3900 | CXXFLAGS="-g -O2" |
---|
3901 | else |
---|
3902 | CXXFLAGS="-g" |
---|
3903 | fi |
---|
3904 | else |
---|
3905 | if test "$GXX" = yes; then |
---|
3906 | CXXFLAGS="-O2" |
---|
3907 | else |
---|
3908 | CXXFLAGS= |
---|
3909 | fi |
---|
3910 | fi |
---|
3911 | ac_ext=c |
---|
3912 | ac_cpp='$CPP $CPPFLAGS' |
---|
3913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3916 | DEPDIR="${am__leading_dot}deps" |
---|
3917 | |
---|
3918 | ac_config_commands="$ac_config_commands depfiles" |
---|
3919 | |
---|
3920 | |
---|
3921 | am_make=${MAKE-make} |
---|
3922 | cat > confinc << 'END' |
---|
3923 | am__doit: |
---|
3924 | @echo this is the am__doit target |
---|
3925 | .PHONY: am__doit |
---|
3926 | END |
---|
3927 | # If we don't find an include directive, just comment out the code. |
---|
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3929 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3930 | am__include="#" |
---|
3931 | am__quote= |
---|
3932 | _am_result=none |
---|
3933 | # First try GNU make style include. |
---|
3934 | echo "include confinc" > confmf |
---|
3935 | # Ignore all kinds of additional output from `make'. |
---|
3936 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3937 | *the\ am__doit\ target*) |
---|
3938 | am__include=include |
---|
3939 | am__quote= |
---|
3940 | _am_result=GNU |
---|
3941 | ;; |
---|
3942 | esac |
---|
3943 | # Now try BSD make style include. |
---|
3944 | if test "$am__include" = "#"; then |
---|
3945 | echo '.include "confinc"' > confmf |
---|
3946 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3947 | *the\ am__doit\ target*) |
---|
3948 | am__include=.include |
---|
3949 | am__quote="\"" |
---|
3950 | _am_result=BSD |
---|
3951 | ;; |
---|
3952 | esac |
---|
3953 | fi |
---|
3954 | |
---|
3955 | |
---|
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3957 | $as_echo "$_am_result" >&6; } |
---|
3958 | rm -f confinc confmf |
---|
3959 | |
---|
3960 | # Check whether --enable-dependency-tracking was given. |
---|
3961 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3962 | enableval=$enable_dependency_tracking; |
---|
3963 | fi |
---|
3964 | |
---|
3965 | if test "x$enable_dependency_tracking" != xno; then |
---|
3966 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3967 | AMDEPBACKSLASH='\' |
---|
3968 | am__nodep='_no' |
---|
3969 | fi |
---|
3970 | if test "x$enable_dependency_tracking" != xno; then |
---|
3971 | AMDEP_TRUE= |
---|
3972 | AMDEP_FALSE='#' |
---|
3973 | else |
---|
3974 | AMDEP_TRUE='#' |
---|
3975 | AMDEP_FALSE= |
---|
3976 | fi |
---|
3977 | |
---|
3978 | |
---|
3979 | |
---|
3980 | depcc="$CXX" am_compiler_list= |
---|
3981 | |
---|
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3983 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3984 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
3985 | $as_echo_n "(cached) " >&6 |
---|
3986 | else |
---|
3987 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3988 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3989 | # making bogus files that we don't know about and never remove. For |
---|
3990 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3991 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3992 | # in D'. |
---|
3993 | rm -rf conftest.dir |
---|
3994 | mkdir conftest.dir |
---|
3995 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3996 | # using a relative directory. |
---|
3997 | cp "$am_depcomp" conftest.dir |
---|
3998 | cd conftest.dir |
---|
3999 | # We will build objects and dependencies in a subdirectory because |
---|
4000 | # it helps to detect inapplicable dependency modes. For instance |
---|
4001 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4002 | # side effect of compilation, but ICC will put the dependencies in |
---|
4003 | # the current directory while Tru64 will put them in the object |
---|
4004 | # directory. |
---|
4005 | mkdir sub |
---|
4006 | |
---|
4007 | am_cv_CXX_dependencies_compiler_type=none |
---|
4008 | if test "$am_compiler_list" = ""; then |
---|
4009 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4010 | fi |
---|
4011 | am__universal=false |
---|
4012 | case " $depcc " in #( |
---|
4013 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4014 | esac |
---|
4015 | |
---|
4016 | for depmode in $am_compiler_list; do |
---|
4017 | # Setup a source with many dependencies, because some compilers |
---|
4018 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4019 | # we should not choose a depcomp mode which is confused by this. |
---|
4020 | # |
---|
4021 | # We need to recreate these files for each test, as the compiler may |
---|
4022 | # overwrite some of them when testing with obscure command lines. |
---|
4023 | # This happens at least with the AIX C compiler. |
---|
4024 | : > sub/conftest.c |
---|
4025 | for i in 1 2 3 4 5 6; do |
---|
4026 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4027 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4028 | # Solaris 8's {/usr,}/bin/sh. |
---|
4029 | touch sub/conftst$i.h |
---|
4030 | done |
---|
4031 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4032 | |
---|
4033 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4034 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4035 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4036 | # versions had trouble with output in subdirs |
---|
4037 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4038 | am__minus_obj="-o $am__obj" |
---|
4039 | case $depmode in |
---|
4040 | gcc) |
---|
4041 | # This depmode causes a compiler race in universal mode. |
---|
4042 | test "$am__universal" = false || continue |
---|
4043 | ;; |
---|
4044 | nosideeffect) |
---|
4045 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4046 | # only be used when explicitly requested |
---|
4047 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4048 | continue |
---|
4049 | else |
---|
4050 | break |
---|
4051 | fi |
---|
4052 | ;; |
---|
4053 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4054 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4055 | # not run yet. These depmodes are late enough in the game, and |
---|
4056 | # so weak that their functioning should not be impacted. |
---|
4057 | am__obj=conftest.${OBJEXT-o} |
---|
4058 | am__minus_obj= |
---|
4059 | ;; |
---|
4060 | none) break ;; |
---|
4061 | esac |
---|
4062 | if depmode=$depmode \ |
---|
4063 | source=sub/conftest.c object=$am__obj \ |
---|
4064 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4065 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4066 | >/dev/null 2>conftest.err && |
---|
4067 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4068 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4069 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4070 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4071 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4072 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4073 | # that says an option was ignored or not supported. |
---|
4074 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4075 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4076 | # The diagnosis changed in icc 8.0: |
---|
4077 | # icc: Command line remark: option '-MP' not supported |
---|
4078 | if (grep 'ignoring option' conftest.err || |
---|
4079 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4080 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4081 | break |
---|
4082 | fi |
---|
4083 | fi |
---|
4084 | done |
---|
4085 | |
---|
4086 | cd .. |
---|
4087 | rm -rf conftest.dir |
---|
4088 | else |
---|
4089 | am_cv_CXX_dependencies_compiler_type=none |
---|
4090 | fi |
---|
4091 | |
---|
4092 | fi |
---|
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4094 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4095 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4096 | |
---|
4097 | if |
---|
4098 | test "x$enable_dependency_tracking" != xno \ |
---|
4099 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4100 | am__fastdepCXX_TRUE= |
---|
4101 | am__fastdepCXX_FALSE='#' |
---|
4102 | else |
---|
4103 | am__fastdepCXX_TRUE='#' |
---|
4104 | am__fastdepCXX_FALSE= |
---|
4105 | fi |
---|
4106 | |
---|
4107 | |
---|
4108 | ac_ext=c |
---|
4109 | ac_cpp='$CPP $CPPFLAGS' |
---|
4110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4113 | if test -n "$ac_tool_prefix"; then |
---|
4114 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
4115 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4117 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4118 | if ${ac_cv_prog_CC+:} false; then : |
---|
4119 | $as_echo_n "(cached) " >&6 |
---|
4120 | else |
---|
4121 | if test -n "$CC"; then |
---|
4122 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4123 | else |
---|
4124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4125 | for as_dir in $PATH |
---|
4126 | do |
---|
4127 | IFS=$as_save_IFS |
---|
4128 | test -z "$as_dir" && as_dir=. |
---|
4129 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4131 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
4132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4133 | break 2 |
---|
4134 | fi |
---|
4135 | done |
---|
4136 | done |
---|
4137 | IFS=$as_save_IFS |
---|
4138 | |
---|
4139 | fi |
---|
4140 | fi |
---|
4141 | CC=$ac_cv_prog_CC |
---|
4142 | if test -n "$CC"; then |
---|
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4144 | $as_echo "$CC" >&6; } |
---|
4145 | else |
---|
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4147 | $as_echo "no" >&6; } |
---|
4148 | fi |
---|
4149 | |
---|
4150 | |
---|
4151 | fi |
---|
4152 | if test -z "$ac_cv_prog_CC"; then |
---|
4153 | ac_ct_CC=$CC |
---|
4154 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
4155 | set dummy gcc; ac_word=$2 |
---|
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4157 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4158 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4159 | $as_echo_n "(cached) " >&6 |
---|
4160 | else |
---|
4161 | if test -n "$ac_ct_CC"; then |
---|
4162 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4163 | else |
---|
4164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4165 | for as_dir in $PATH |
---|
4166 | do |
---|
4167 | IFS=$as_save_IFS |
---|
4168 | test -z "$as_dir" && as_dir=. |
---|
4169 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4171 | ac_cv_prog_ac_ct_CC="gcc" |
---|
4172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4173 | break 2 |
---|
4174 | fi |
---|
4175 | done |
---|
4176 | done |
---|
4177 | IFS=$as_save_IFS |
---|
4178 | |
---|
4179 | fi |
---|
4180 | fi |
---|
4181 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4182 | if test -n "$ac_ct_CC"; then |
---|
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4184 | $as_echo "$ac_ct_CC" >&6; } |
---|
4185 | else |
---|
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4187 | $as_echo "no" >&6; } |
---|
4188 | fi |
---|
4189 | |
---|
4190 | if test "x$ac_ct_CC" = x; then |
---|
4191 | CC="" |
---|
4192 | else |
---|
4193 | case $cross_compiling:$ac_tool_warned in |
---|
4194 | yes:) |
---|
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4196 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4197 | ac_tool_warned=yes ;; |
---|
4198 | esac |
---|
4199 | CC=$ac_ct_CC |
---|
4200 | fi |
---|
4201 | else |
---|
4202 | CC="$ac_cv_prog_CC" |
---|
4203 | fi |
---|
4204 | |
---|
4205 | if test -z "$CC"; then |
---|
4206 | if test -n "$ac_tool_prefix"; then |
---|
4207 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
4208 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4210 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4211 | if ${ac_cv_prog_CC+:} false; then : |
---|
4212 | $as_echo_n "(cached) " >&6 |
---|
4213 | else |
---|
4214 | if test -n "$CC"; then |
---|
4215 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4216 | else |
---|
4217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4218 | for as_dir in $PATH |
---|
4219 | do |
---|
4220 | IFS=$as_save_IFS |
---|
4221 | test -z "$as_dir" && as_dir=. |
---|
4222 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4224 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
4225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4226 | break 2 |
---|
4227 | fi |
---|
4228 | done |
---|
4229 | done |
---|
4230 | IFS=$as_save_IFS |
---|
4231 | |
---|
4232 | fi |
---|
4233 | fi |
---|
4234 | CC=$ac_cv_prog_CC |
---|
4235 | if test -n "$CC"; then |
---|
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4237 | $as_echo "$CC" >&6; } |
---|
4238 | else |
---|
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4240 | $as_echo "no" >&6; } |
---|
4241 | fi |
---|
4242 | |
---|
4243 | |
---|
4244 | fi |
---|
4245 | fi |
---|
4246 | if test -z "$CC"; then |
---|
4247 | # Extract the first word of "cc", so it can be a program name with args. |
---|
4248 | set dummy cc; ac_word=$2 |
---|
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4250 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4251 | if ${ac_cv_prog_CC+:} false; then : |
---|
4252 | $as_echo_n "(cached) " >&6 |
---|
4253 | else |
---|
4254 | if test -n "$CC"; then |
---|
4255 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4256 | else |
---|
4257 | ac_prog_rejected=no |
---|
4258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4259 | for as_dir in $PATH |
---|
4260 | do |
---|
4261 | IFS=$as_save_IFS |
---|
4262 | test -z "$as_dir" && as_dir=. |
---|
4263 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4264 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4265 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
4266 | ac_prog_rejected=yes |
---|
4267 | continue |
---|
4268 | fi |
---|
4269 | ac_cv_prog_CC="cc" |
---|
4270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4271 | break 2 |
---|
4272 | fi |
---|
4273 | done |
---|
4274 | done |
---|
4275 | IFS=$as_save_IFS |
---|
4276 | |
---|
4277 | if test $ac_prog_rejected = yes; then |
---|
4278 | # We found a bogon in the path, so make sure we never use it. |
---|
4279 | set dummy $ac_cv_prog_CC |
---|
4280 | shift |
---|
4281 | if test $# != 0; then |
---|
4282 | # We chose a different compiler from the bogus one. |
---|
4283 | # However, it has the same basename, so the bogon will be chosen |
---|
4284 | # first if we set CC to just the basename; use the full file name. |
---|
4285 | shift |
---|
4286 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
4287 | fi |
---|
4288 | fi |
---|
4289 | fi |
---|
4290 | fi |
---|
4291 | CC=$ac_cv_prog_CC |
---|
4292 | if test -n "$CC"; then |
---|
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4294 | $as_echo "$CC" >&6; } |
---|
4295 | else |
---|
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4297 | $as_echo "no" >&6; } |
---|
4298 | fi |
---|
4299 | |
---|
4300 | |
---|
4301 | fi |
---|
4302 | if test -z "$CC"; then |
---|
4303 | if test -n "$ac_tool_prefix"; then |
---|
4304 | for ac_prog in cl.exe |
---|
4305 | do |
---|
4306 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4307 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4309 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4310 | if ${ac_cv_prog_CC+:} false; then : |
---|
4311 | $as_echo_n "(cached) " >&6 |
---|
4312 | else |
---|
4313 | if test -n "$CC"; then |
---|
4314 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4315 | else |
---|
4316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4317 | for as_dir in $PATH |
---|
4318 | do |
---|
4319 | IFS=$as_save_IFS |
---|
4320 | test -z "$as_dir" && as_dir=. |
---|
4321 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4322 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4323 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
4324 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4325 | break 2 |
---|
4326 | fi |
---|
4327 | done |
---|
4328 | done |
---|
4329 | IFS=$as_save_IFS |
---|
4330 | |
---|
4331 | fi |
---|
4332 | fi |
---|
4333 | CC=$ac_cv_prog_CC |
---|
4334 | if test -n "$CC"; then |
---|
4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4336 | $as_echo "$CC" >&6; } |
---|
4337 | else |
---|
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4339 | $as_echo "no" >&6; } |
---|
4340 | fi |
---|
4341 | |
---|
4342 | |
---|
4343 | test -n "$CC" && break |
---|
4344 | done |
---|
4345 | fi |
---|
4346 | if test -z "$CC"; then |
---|
4347 | ac_ct_CC=$CC |
---|
4348 | for ac_prog in cl.exe |
---|
4349 | do |
---|
4350 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4351 | set dummy $ac_prog; ac_word=$2 |
---|
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4353 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4354 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4355 | $as_echo_n "(cached) " >&6 |
---|
4356 | else |
---|
4357 | if test -n "$ac_ct_CC"; then |
---|
4358 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4359 | else |
---|
4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4361 | for as_dir in $PATH |
---|
4362 | do |
---|
4363 | IFS=$as_save_IFS |
---|
4364 | test -z "$as_dir" && as_dir=. |
---|
4365 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4367 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
4368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4369 | break 2 |
---|
4370 | fi |
---|
4371 | done |
---|
4372 | done |
---|
4373 | IFS=$as_save_IFS |
---|
4374 | |
---|
4375 | fi |
---|
4376 | fi |
---|
4377 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4378 | if test -n "$ac_ct_CC"; then |
---|
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4380 | $as_echo "$ac_ct_CC" >&6; } |
---|
4381 | else |
---|
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4383 | $as_echo "no" >&6; } |
---|
4384 | fi |
---|
4385 | |
---|
4386 | |
---|
4387 | test -n "$ac_ct_CC" && break |
---|
4388 | done |
---|
4389 | |
---|
4390 | if test "x$ac_ct_CC" = x; then |
---|
4391 | CC="" |
---|
4392 | else |
---|
4393 | case $cross_compiling:$ac_tool_warned in |
---|
4394 | yes:) |
---|
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4396 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4397 | ac_tool_warned=yes ;; |
---|
4398 | esac |
---|
4399 | CC=$ac_ct_CC |
---|
4400 | fi |
---|
4401 | fi |
---|
4402 | |
---|
4403 | fi |
---|
4404 | |
---|
4405 | |
---|
4406 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4407 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4408 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4409 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4410 | |
---|
4411 | # Provide some information about the compiler. |
---|
4412 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4413 | set X $ac_compile |
---|
4414 | ac_compiler=$2 |
---|
4415 | for ac_option in --version -v -V -qversion; do |
---|
4416 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4417 | case "(($ac_try" in |
---|
4418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4419 | *) ac_try_echo=$ac_try;; |
---|
4420 | esac |
---|
4421 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4422 | $as_echo "$ac_try_echo"; } >&5 |
---|
4423 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4424 | ac_status=$? |
---|
4425 | if test -s conftest.err; then |
---|
4426 | sed '10a\ |
---|
4427 | ... rest of stderr output deleted ... |
---|
4428 | 10q' conftest.err >conftest.er1 |
---|
4429 | cat conftest.er1 >&5 |
---|
4430 | fi |
---|
4431 | rm -f conftest.er1 conftest.err |
---|
4432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4433 | test $ac_status = 0; } |
---|
4434 | done |
---|
4435 | |
---|
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4437 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4438 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4439 | $as_echo_n "(cached) " >&6 |
---|
4440 | else |
---|
4441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4442 | /* end confdefs.h. */ |
---|
4443 | |
---|
4444 | int |
---|
4445 | main () |
---|
4446 | { |
---|
4447 | #ifndef __GNUC__ |
---|
4448 | choke me |
---|
4449 | #endif |
---|
4450 | |
---|
4451 | ; |
---|
4452 | return 0; |
---|
4453 | } |
---|
4454 | _ACEOF |
---|
4455 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4456 | ac_compiler_gnu=yes |
---|
4457 | else |
---|
4458 | ac_compiler_gnu=no |
---|
4459 | fi |
---|
4460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4461 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4462 | |
---|
4463 | fi |
---|
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4465 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4466 | if test $ac_compiler_gnu = yes; then |
---|
4467 | GCC=yes |
---|
4468 | else |
---|
4469 | GCC= |
---|
4470 | fi |
---|
4471 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4472 | ac_save_CFLAGS=$CFLAGS |
---|
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4474 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4475 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4476 | $as_echo_n "(cached) " >&6 |
---|
4477 | else |
---|
4478 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4479 | ac_c_werror_flag=yes |
---|
4480 | ac_cv_prog_cc_g=no |
---|
4481 | CFLAGS="-g" |
---|
4482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4483 | /* end confdefs.h. */ |
---|
4484 | |
---|
4485 | int |
---|
4486 | main () |
---|
4487 | { |
---|
4488 | |
---|
4489 | ; |
---|
4490 | return 0; |
---|
4491 | } |
---|
4492 | _ACEOF |
---|
4493 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4494 | ac_cv_prog_cc_g=yes |
---|
4495 | else |
---|
4496 | CFLAGS="" |
---|
4497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4498 | /* end confdefs.h. */ |
---|
4499 | |
---|
4500 | int |
---|
4501 | main () |
---|
4502 | { |
---|
4503 | |
---|
4504 | ; |
---|
4505 | return 0; |
---|
4506 | } |
---|
4507 | _ACEOF |
---|
4508 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4509 | |
---|
4510 | else |
---|
4511 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4512 | CFLAGS="-g" |
---|
4513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4514 | /* end confdefs.h. */ |
---|
4515 | |
---|
4516 | int |
---|
4517 | main () |
---|
4518 | { |
---|
4519 | |
---|
4520 | ; |
---|
4521 | return 0; |
---|
4522 | } |
---|
4523 | _ACEOF |
---|
4524 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4525 | ac_cv_prog_cc_g=yes |
---|
4526 | fi |
---|
4527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4528 | fi |
---|
4529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4530 | fi |
---|
4531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4532 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4533 | fi |
---|
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4535 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4536 | if test "$ac_test_CFLAGS" = set; then |
---|
4537 | CFLAGS=$ac_save_CFLAGS |
---|
4538 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4539 | if test "$GCC" = yes; then |
---|
4540 | CFLAGS="-g -O2" |
---|
4541 | else |
---|
4542 | CFLAGS="-g" |
---|
4543 | fi |
---|
4544 | else |
---|
4545 | if test "$GCC" = yes; then |
---|
4546 | CFLAGS="-O2" |
---|
4547 | else |
---|
4548 | CFLAGS= |
---|
4549 | fi |
---|
4550 | fi |
---|
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4552 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4553 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4554 | $as_echo_n "(cached) " >&6 |
---|
4555 | else |
---|
4556 | ac_cv_prog_cc_c89=no |
---|
4557 | ac_save_CC=$CC |
---|
4558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4559 | /* end confdefs.h. */ |
---|
4560 | #include <stdarg.h> |
---|
4561 | #include <stdio.h> |
---|
4562 | #include <sys/types.h> |
---|
4563 | #include <sys/stat.h> |
---|
4564 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4565 | struct buf { int x; }; |
---|
4566 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4567 | static char *e (p, i) |
---|
4568 | char **p; |
---|
4569 | int i; |
---|
4570 | { |
---|
4571 | return p[i]; |
---|
4572 | } |
---|
4573 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4574 | { |
---|
4575 | char *s; |
---|
4576 | va_list v; |
---|
4577 | va_start (v,p); |
---|
4578 | s = g (p, va_arg (v,int)); |
---|
4579 | va_end (v); |
---|
4580 | return s; |
---|
4581 | } |
---|
4582 | |
---|
4583 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4584 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4585 | These don't provoke an error unfortunately, instead are silently treated |
---|
4586 | as 'x'. The following induces an error, until -std is added to get |
---|
4587 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4588 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4589 | that's true only with -std. */ |
---|
4590 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4591 | |
---|
4592 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4593 | inside strings and character constants. */ |
---|
4594 | #define FOO(x) 'x' |
---|
4595 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4596 | |
---|
4597 | int test (int i, double x); |
---|
4598 | struct s1 {int (*f) (int a);}; |
---|
4599 | struct s2 {int (*f) (double a);}; |
---|
4600 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4601 | int argc; |
---|
4602 | char **argv; |
---|
4603 | int |
---|
4604 | main () |
---|
4605 | { |
---|
4606 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4607 | ; |
---|
4608 | return 0; |
---|
4609 | } |
---|
4610 | _ACEOF |
---|
4611 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4612 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4613 | do |
---|
4614 | CC="$ac_save_CC $ac_arg" |
---|
4615 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4616 | ac_cv_prog_cc_c89=$ac_arg |
---|
4617 | fi |
---|
4618 | rm -f core conftest.err conftest.$ac_objext |
---|
4619 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4620 | done |
---|
4621 | rm -f conftest.$ac_ext |
---|
4622 | CC=$ac_save_CC |
---|
4623 | |
---|
4624 | fi |
---|
4625 | # AC_CACHE_VAL |
---|
4626 | case "x$ac_cv_prog_cc_c89" in |
---|
4627 | x) |
---|
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4629 | $as_echo "none needed" >&6; } ;; |
---|
4630 | xno) |
---|
4631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4632 | $as_echo "unsupported" >&6; } ;; |
---|
4633 | *) |
---|
4634 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4636 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4637 | esac |
---|
4638 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4639 | |
---|
4640 | fi |
---|
4641 | |
---|
4642 | ac_ext=c |
---|
4643 | ac_cpp='$CPP $CPPFLAGS' |
---|
4644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4647 | |
---|
4648 | depcc="$CC" am_compiler_list= |
---|
4649 | |
---|
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4651 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4652 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4653 | $as_echo_n "(cached) " >&6 |
---|
4654 | else |
---|
4655 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4656 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4657 | # making bogus files that we don't know about and never remove. For |
---|
4658 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4659 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4660 | # in D'. |
---|
4661 | rm -rf conftest.dir |
---|
4662 | mkdir conftest.dir |
---|
4663 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4664 | # using a relative directory. |
---|
4665 | cp "$am_depcomp" conftest.dir |
---|
4666 | cd conftest.dir |
---|
4667 | # We will build objects and dependencies in a subdirectory because |
---|
4668 | # it helps to detect inapplicable dependency modes. For instance |
---|
4669 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4670 | # side effect of compilation, but ICC will put the dependencies in |
---|
4671 | # the current directory while Tru64 will put them in the object |
---|
4672 | # directory. |
---|
4673 | mkdir sub |
---|
4674 | |
---|
4675 | am_cv_CC_dependencies_compiler_type=none |
---|
4676 | if test "$am_compiler_list" = ""; then |
---|
4677 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4678 | fi |
---|
4679 | am__universal=false |
---|
4680 | case " $depcc " in #( |
---|
4681 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4682 | esac |
---|
4683 | |
---|
4684 | for depmode in $am_compiler_list; do |
---|
4685 | # Setup a source with many dependencies, because some compilers |
---|
4686 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4687 | # we should not choose a depcomp mode which is confused by this. |
---|
4688 | # |
---|
4689 | # We need to recreate these files for each test, as the compiler may |
---|
4690 | # overwrite some of them when testing with obscure command lines. |
---|
4691 | # This happens at least with the AIX C compiler. |
---|
4692 | : > sub/conftest.c |
---|
4693 | for i in 1 2 3 4 5 6; do |
---|
4694 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4695 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4696 | # Solaris 8's {/usr,}/bin/sh. |
---|
4697 | touch sub/conftst$i.h |
---|
4698 | done |
---|
4699 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4700 | |
---|
4701 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4702 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4703 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4704 | # versions had trouble with output in subdirs |
---|
4705 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4706 | am__minus_obj="-o $am__obj" |
---|
4707 | case $depmode in |
---|
4708 | gcc) |
---|
4709 | # This depmode causes a compiler race in universal mode. |
---|
4710 | test "$am__universal" = false || continue |
---|
4711 | ;; |
---|
4712 | nosideeffect) |
---|
4713 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4714 | # only be used when explicitly requested |
---|
4715 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4716 | continue |
---|
4717 | else |
---|
4718 | break |
---|
4719 | fi |
---|
4720 | ;; |
---|
4721 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4722 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4723 | # not run yet. These depmodes are late enough in the game, and |
---|
4724 | # so weak that their functioning should not be impacted. |
---|
4725 | am__obj=conftest.${OBJEXT-o} |
---|
4726 | am__minus_obj= |
---|
4727 | ;; |
---|
4728 | none) break ;; |
---|
4729 | esac |
---|
4730 | if depmode=$depmode \ |
---|
4731 | source=sub/conftest.c object=$am__obj \ |
---|
4732 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4733 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4734 | >/dev/null 2>conftest.err && |
---|
4735 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4736 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4737 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4738 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4739 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4740 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4741 | # that says an option was ignored or not supported. |
---|
4742 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4743 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4744 | # The diagnosis changed in icc 8.0: |
---|
4745 | # icc: Command line remark: option '-MP' not supported |
---|
4746 | if (grep 'ignoring option' conftest.err || |
---|
4747 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4748 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4749 | break |
---|
4750 | fi |
---|
4751 | fi |
---|
4752 | done |
---|
4753 | |
---|
4754 | cd .. |
---|
4755 | rm -rf conftest.dir |
---|
4756 | else |
---|
4757 | am_cv_CC_dependencies_compiler_type=none |
---|
4758 | fi |
---|
4759 | |
---|
4760 | fi |
---|
4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4762 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4763 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4764 | |
---|
4765 | if |
---|
4766 | test "x$enable_dependency_tracking" != xno \ |
---|
4767 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4768 | am__fastdepCC_TRUE= |
---|
4769 | am__fastdepCC_FALSE='#' |
---|
4770 | else |
---|
4771 | am__fastdepCC_TRUE='#' |
---|
4772 | am__fastdepCC_FALSE= |
---|
4773 | fi |
---|
4774 | |
---|
4775 | |
---|
4776 | # By default we simply use the C compiler to build assembly code. |
---|
4777 | |
---|
4778 | test "${CCAS+set}" = set || CCAS=$CC |
---|
4779 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
---|
4780 | |
---|
4781 | |
---|
4782 | |
---|
4783 | depcc="$CCAS" am_compiler_list= |
---|
4784 | |
---|
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4786 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4787 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
---|
4788 | $as_echo_n "(cached) " >&6 |
---|
4789 | else |
---|
4790 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4791 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4792 | # making bogus files that we don't know about and never remove. For |
---|
4793 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4794 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4795 | # in D'. |
---|
4796 | rm -rf conftest.dir |
---|
4797 | mkdir conftest.dir |
---|
4798 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4799 | # using a relative directory. |
---|
4800 | cp "$am_depcomp" conftest.dir |
---|
4801 | cd conftest.dir |
---|
4802 | # We will build objects and dependencies in a subdirectory because |
---|
4803 | # it helps to detect inapplicable dependency modes. For instance |
---|
4804 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4805 | # side effect of compilation, but ICC will put the dependencies in |
---|
4806 | # the current directory while Tru64 will put them in the object |
---|
4807 | # directory. |
---|
4808 | mkdir sub |
---|
4809 | |
---|
4810 | am_cv_CCAS_dependencies_compiler_type=none |
---|
4811 | if test "$am_compiler_list" = ""; then |
---|
4812 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4813 | fi |
---|
4814 | am__universal=false |
---|
4815 | |
---|
4816 | |
---|
4817 | for depmode in $am_compiler_list; do |
---|
4818 | # Setup a source with many dependencies, because some compilers |
---|
4819 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4820 | # we should not choose a depcomp mode which is confused by this. |
---|
4821 | # |
---|
4822 | # We need to recreate these files for each test, as the compiler may |
---|
4823 | # overwrite some of them when testing with obscure command lines. |
---|
4824 | # This happens at least with the AIX C compiler. |
---|
4825 | : > sub/conftest.c |
---|
4826 | for i in 1 2 3 4 5 6; do |
---|
4827 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4828 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4829 | # Solaris 8's {/usr,}/bin/sh. |
---|
4830 | touch sub/conftst$i.h |
---|
4831 | done |
---|
4832 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4833 | |
---|
4834 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4835 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4836 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
4837 | # versions had trouble with output in subdirs |
---|
4838 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4839 | am__minus_obj="-o $am__obj" |
---|
4840 | case $depmode in |
---|
4841 | gcc) |
---|
4842 | # This depmode causes a compiler race in universal mode. |
---|
4843 | test "$am__universal" = false || continue |
---|
4844 | ;; |
---|
4845 | nosideeffect) |
---|
4846 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4847 | # only be used when explicitly requested |
---|
4848 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4849 | continue |
---|
4850 | else |
---|
4851 | break |
---|
4852 | fi |
---|
4853 | ;; |
---|
4854 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4855 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
4856 | # not run yet. These depmodes are late enough in the game, and |
---|
4857 | # so weak that their functioning should not be impacted. |
---|
4858 | am__obj=conftest.${OBJEXT-o} |
---|
4859 | am__minus_obj= |
---|
4860 | ;; |
---|
4861 | none) break ;; |
---|
4862 | esac |
---|
4863 | if depmode=$depmode \ |
---|
4864 | source=sub/conftest.c object=$am__obj \ |
---|
4865 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4866 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4867 | >/dev/null 2>conftest.err && |
---|
4868 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4869 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4870 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4871 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4872 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4873 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4874 | # that says an option was ignored or not supported. |
---|
4875 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4876 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4877 | # The diagnosis changed in icc 8.0: |
---|
4878 | # icc: Command line remark: option '-MP' not supported |
---|
4879 | if (grep 'ignoring option' conftest.err || |
---|
4880 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4881 | am_cv_CCAS_dependencies_compiler_type=$depmode |
---|
4882 | break |
---|
4883 | fi |
---|
4884 | fi |
---|
4885 | done |
---|
4886 | |
---|
4887 | cd .. |
---|
4888 | rm -rf conftest.dir |
---|
4889 | else |
---|
4890 | am_cv_CCAS_dependencies_compiler_type=none |
---|
4891 | fi |
---|
4892 | |
---|
4893 | fi |
---|
4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
---|
4895 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
---|
4896 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
---|
4897 | |
---|
4898 | if |
---|
4899 | test "x$enable_dependency_tracking" != xno \ |
---|
4900 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
---|
4901 | am__fastdepCCAS_TRUE= |
---|
4902 | am__fastdepCCAS_FALSE='#' |
---|
4903 | else |
---|
4904 | am__fastdepCCAS_TRUE='#' |
---|
4905 | am__fastdepCCAS_FALSE= |
---|
4906 | fi |
---|
4907 | |
---|
4908 | |
---|
4909 | if test "x$CC" != xcc; then |
---|
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
---|
4911 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
---|
4912 | else |
---|
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
---|
4914 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
---|
4915 | fi |
---|
4916 | set dummy $CC; ac_cc=`$as_echo "$2" | |
---|
4917 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4918 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
---|
4919 | $as_echo_n "(cached) " >&6 |
---|
4920 | else |
---|
4921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4922 | /* end confdefs.h. */ |
---|
4923 | |
---|
4924 | int |
---|
4925 | main () |
---|
4926 | { |
---|
4927 | |
---|
4928 | ; |
---|
4929 | return 0; |
---|
4930 | } |
---|
4931 | _ACEOF |
---|
4932 | # Make sure it works both with $CC and with simple cc. |
---|
4933 | # We do the test twice because some compilers refuse to overwrite an |
---|
4934 | # existing .o file with -o, though they will create one. |
---|
4935 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4936 | rm -f conftest2.* |
---|
4937 | if { { case "(($ac_try" in |
---|
4938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4939 | *) ac_try_echo=$ac_try;; |
---|
4940 | esac |
---|
4941 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4942 | $as_echo "$ac_try_echo"; } >&5 |
---|
4943 | (eval "$ac_try") 2>&5 |
---|
4944 | ac_status=$? |
---|
4945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4946 | test $ac_status = 0; } && |
---|
4947 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
4948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4949 | *) ac_try_echo=$ac_try;; |
---|
4950 | esac |
---|
4951 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4952 | $as_echo "$ac_try_echo"; } >&5 |
---|
4953 | (eval "$ac_try") 2>&5 |
---|
4954 | ac_status=$? |
---|
4955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4956 | test $ac_status = 0; }; |
---|
4957 | then |
---|
4958 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
---|
4959 | if test "x$CC" != xcc; then |
---|
4960 | # Test first that cc exists at all. |
---|
4961 | if { ac_try='cc -c conftest.$ac_ext >&5' |
---|
4962 | { { case "(($ac_try" in |
---|
4963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4964 | *) ac_try_echo=$ac_try;; |
---|
4965 | esac |
---|
4966 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4967 | $as_echo "$ac_try_echo"; } >&5 |
---|
4968 | (eval "$ac_try") 2>&5 |
---|
4969 | ac_status=$? |
---|
4970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4971 | test $ac_status = 0; }; }; then |
---|
4972 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4973 | rm -f conftest2.* |
---|
4974 | if { { case "(($ac_try" in |
---|
4975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4976 | *) ac_try_echo=$ac_try;; |
---|
4977 | esac |
---|
4978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4979 | $as_echo "$ac_try_echo"; } >&5 |
---|
4980 | (eval "$ac_try") 2>&5 |
---|
4981 | ac_status=$? |
---|
4982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4983 | test $ac_status = 0; } && |
---|
4984 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
---|
4985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4986 | *) ac_try_echo=$ac_try;; |
---|
4987 | esac |
---|
4988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4989 | $as_echo "$ac_try_echo"; } >&5 |
---|
4990 | (eval "$ac_try") 2>&5 |
---|
4991 | ac_status=$? |
---|
4992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4993 | test $ac_status = 0; }; |
---|
4994 | then |
---|
4995 | # cc works too. |
---|
4996 | : |
---|
4997 | else |
---|
4998 | # cc exists but doesn't like -o. |
---|
4999 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
5000 | fi |
---|
5001 | fi |
---|
5002 | fi |
---|
5003 | else |
---|
5004 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
5005 | fi |
---|
5006 | rm -f core conftest* |
---|
5007 | |
---|
5008 | fi |
---|
5009 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
---|
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5011 | $as_echo "yes" >&6; } |
---|
5012 | else |
---|
5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5014 | $as_echo "no" >&6; } |
---|
5015 | |
---|
5016 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
---|
5017 | |
---|
5018 | fi |
---|
5019 | |
---|
5020 | # FIXME: we rely on the cache variable name because |
---|
5021 | # there is no other way. |
---|
5022 | set dummy $CC |
---|
5023 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
5024 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
---|
5025 | if test "$am_t" != yes; then |
---|
5026 | # Losing compiler, so override with the script. |
---|
5027 | # FIXME: It is wrong to rewrite CC. |
---|
5028 | # But if we don't then we get into trouble of one sort or another. |
---|
5029 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
5030 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
5031 | CC="$am_aux_dir/compile $CC" |
---|
5032 | fi |
---|
5033 | |
---|
5034 | # deprecated |
---|
5035 | # These are often not installed and people miss seeing the "no", so stop the configure. |
---|
5036 | for ac_prog in 'bison -y' byacc |
---|
5037 | do |
---|
5038 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5039 | set dummy $ac_prog; ac_word=$2 |
---|
5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5041 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5042 | if ${ac_cv_prog_YACC+:} false; then : |
---|
5043 | $as_echo_n "(cached) " >&6 |
---|
5044 | else |
---|
5045 | if test -n "$YACC"; then |
---|
5046 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
5047 | else |
---|
5048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5049 | for as_dir in $PATH |
---|
5050 | do |
---|
5051 | IFS=$as_save_IFS |
---|
5052 | test -z "$as_dir" && as_dir=. |
---|
5053 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5055 | ac_cv_prog_YACC="$ac_prog" |
---|
5056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5057 | break 2 |
---|
5058 | fi |
---|
5059 | done |
---|
5060 | done |
---|
5061 | IFS=$as_save_IFS |
---|
5062 | |
---|
5063 | fi |
---|
5064 | fi |
---|
5065 | YACC=$ac_cv_prog_YACC |
---|
5066 | if test -n "$YACC"; then |
---|
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
---|
5068 | $as_echo "$YACC" >&6; } |
---|
5069 | else |
---|
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5071 | $as_echo "no" >&6; } |
---|
5072 | fi |
---|
5073 | |
---|
5074 | |
---|
5075 | test -n "$YACC" && break |
---|
5076 | done |
---|
5077 | test -n "$YACC" || YACC="yacc" |
---|
5078 | |
---|
5079 | if test "${YACC}" = "yacc" ; then echo "Error: bison required." ; exit 1 ; fi |
---|
5080 | |
---|
5081 | for ac_prog in flex lex |
---|
5082 | do |
---|
5083 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5084 | set dummy $ac_prog; ac_word=$2 |
---|
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5086 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5087 | if ${ac_cv_prog_LEX+:} false; then : |
---|
5088 | $as_echo_n "(cached) " >&6 |
---|
5089 | else |
---|
5090 | if test -n "$LEX"; then |
---|
5091 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
5092 | else |
---|
5093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5094 | for as_dir in $PATH |
---|
5095 | do |
---|
5096 | IFS=$as_save_IFS |
---|
5097 | test -z "$as_dir" && as_dir=. |
---|
5098 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5100 | ac_cv_prog_LEX="$ac_prog" |
---|
5101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5102 | break 2 |
---|
5103 | fi |
---|
5104 | done |
---|
5105 | done |
---|
5106 | IFS=$as_save_IFS |
---|
5107 | |
---|
5108 | fi |
---|
5109 | fi |
---|
5110 | LEX=$ac_cv_prog_LEX |
---|
5111 | if test -n "$LEX"; then |
---|
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
---|
5113 | $as_echo "$LEX" >&6; } |
---|
5114 | else |
---|
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5116 | $as_echo "no" >&6; } |
---|
5117 | fi |
---|
5118 | |
---|
5119 | |
---|
5120 | test -n "$LEX" && break |
---|
5121 | done |
---|
5122 | test -n "$LEX" || LEX=":" |
---|
5123 | |
---|
5124 | if test "x$LEX" != "x:"; then |
---|
5125 | cat >conftest.l <<_ACEOF |
---|
5126 | %% |
---|
5127 | a { ECHO; } |
---|
5128 | b { REJECT; } |
---|
5129 | c { yymore (); } |
---|
5130 | d { yyless (1); } |
---|
5131 | e { yyless (input () != 0); } |
---|
5132 | f { unput (yytext[0]); } |
---|
5133 | . { BEGIN INITIAL; } |
---|
5134 | %% |
---|
5135 | #ifdef YYTEXT_POINTER |
---|
5136 | extern char *yytext; |
---|
5137 | #endif |
---|
5138 | int |
---|
5139 | main (void) |
---|
5140 | { |
---|
5141 | return ! yylex () + ! yywrap (); |
---|
5142 | } |
---|
5143 | _ACEOF |
---|
5144 | { { ac_try="$LEX conftest.l" |
---|
5145 | case "(($ac_try" in |
---|
5146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5147 | *) ac_try_echo=$ac_try;; |
---|
5148 | esac |
---|
5149 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5150 | $as_echo "$ac_try_echo"; } >&5 |
---|
5151 | (eval "$LEX conftest.l") 2>&5 |
---|
5152 | ac_status=$? |
---|
5153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5154 | test $ac_status = 0; } |
---|
5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
---|
5156 | $as_echo_n "checking lex output file root... " >&6; } |
---|
5157 | if ${ac_cv_prog_lex_root+:} false; then : |
---|
5158 | $as_echo_n "(cached) " >&6 |
---|
5159 | else |
---|
5160 | |
---|
5161 | if test -f lex.yy.c; then |
---|
5162 | ac_cv_prog_lex_root=lex.yy |
---|
5163 | elif test -f lexyy.c; then |
---|
5164 | ac_cv_prog_lex_root=lexyy |
---|
5165 | else |
---|
5166 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
---|
5167 | fi |
---|
5168 | fi |
---|
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
---|
5170 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
5171 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
5172 | |
---|
5173 | if test -z "${LEXLIB+set}"; then |
---|
5174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
---|
5175 | $as_echo_n "checking lex library... " >&6; } |
---|
5176 | if ${ac_cv_lib_lex+:} false; then : |
---|
5177 | $as_echo_n "(cached) " >&6 |
---|
5178 | else |
---|
5179 | |
---|
5180 | ac_save_LIBS=$LIBS |
---|
5181 | ac_cv_lib_lex='none needed' |
---|
5182 | for ac_lib in '' -lfl -ll; do |
---|
5183 | LIBS="$ac_lib $ac_save_LIBS" |
---|
5184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5185 | /* end confdefs.h. */ |
---|
5186 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5187 | _ACEOF |
---|
5188 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5189 | ac_cv_lib_lex=$ac_lib |
---|
5190 | fi |
---|
5191 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5192 | conftest$ac_exeext conftest.$ac_ext |
---|
5193 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
5194 | done |
---|
5195 | LIBS=$ac_save_LIBS |
---|
5196 | |
---|
5197 | fi |
---|
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
---|
5199 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
5200 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
5201 | fi |
---|
5202 | |
---|
5203 | |
---|
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
---|
5205 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
5206 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
---|
5207 | $as_echo_n "(cached) " >&6 |
---|
5208 | else |
---|
5209 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
5210 | # default is implementation-dependent. Figure out which it is, since |
---|
5211 | # not all implementations provide the %pointer and %array declarations. |
---|
5212 | ac_cv_prog_lex_yytext_pointer=no |
---|
5213 | ac_save_LIBS=$LIBS |
---|
5214 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
5215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5216 | /* end confdefs.h. */ |
---|
5217 | |
---|
5218 | #define YYTEXT_POINTER 1 |
---|
5219 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5220 | _ACEOF |
---|
5221 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5222 | ac_cv_prog_lex_yytext_pointer=yes |
---|
5223 | fi |
---|
5224 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5225 | conftest$ac_exeext conftest.$ac_ext |
---|
5226 | LIBS=$ac_save_LIBS |
---|
5227 | |
---|
5228 | fi |
---|
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
5230 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
5231 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
5232 | |
---|
5233 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
---|
5234 | |
---|
5235 | fi |
---|
5236 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
5237 | |
---|
5238 | fi |
---|
5239 | if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi |
---|
5240 | |
---|
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
5242 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
5243 | set x ${MAKE-make} |
---|
5244 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
5245 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
5246 | $as_echo_n "(cached) " >&6 |
---|
5247 | else |
---|
5248 | cat >conftest.make <<\_ACEOF |
---|
5249 | SHELL = /bin/sh |
---|
5250 | all: |
---|
5251 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
5252 | _ACEOF |
---|
5253 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
5254 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
5255 | *@@@%%%=?*=@@@%%%*) |
---|
5256 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
5257 | *) |
---|
5258 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
5259 | esac |
---|
5260 | rm -f conftest.make |
---|
5261 | fi |
---|
5262 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5264 | $as_echo "yes" >&6; } |
---|
5265 | SET_MAKE= |
---|
5266 | else |
---|
5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5268 | $as_echo "no" >&6; } |
---|
5269 | SET_MAKE="MAKE=${MAKE-make}" |
---|
5270 | fi |
---|
5271 | |
---|
5272 | if test -n "$ac_tool_prefix"; then |
---|
5273 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
5274 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5276 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5277 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
5278 | $as_echo_n "(cached) " >&6 |
---|
5279 | else |
---|
5280 | if test -n "$RANLIB"; then |
---|
5281 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
5282 | else |
---|
5283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5284 | for as_dir in $PATH |
---|
5285 | do |
---|
5286 | IFS=$as_save_IFS |
---|
5287 | test -z "$as_dir" && as_dir=. |
---|
5288 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5290 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
5291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5292 | break 2 |
---|
5293 | fi |
---|
5294 | done |
---|
5295 | done |
---|
5296 | IFS=$as_save_IFS |
---|
5297 | |
---|
5298 | fi |
---|
5299 | fi |
---|
5300 | RANLIB=$ac_cv_prog_RANLIB |
---|
5301 | if test -n "$RANLIB"; then |
---|
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
5303 | $as_echo "$RANLIB" >&6; } |
---|
5304 | else |
---|
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5306 | $as_echo "no" >&6; } |
---|
5307 | fi |
---|
5308 | |
---|
5309 | |
---|
5310 | fi |
---|
5311 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
5312 | ac_ct_RANLIB=$RANLIB |
---|
5313 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
5314 | set dummy ranlib; ac_word=$2 |
---|
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5316 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5317 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
5318 | $as_echo_n "(cached) " >&6 |
---|
5319 | else |
---|
5320 | if test -n "$ac_ct_RANLIB"; then |
---|
5321 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
5322 | else |
---|
5323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5324 | for as_dir in $PATH |
---|
5325 | do |
---|
5326 | IFS=$as_save_IFS |
---|
5327 | test -z "$as_dir" && as_dir=. |
---|
5328 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5330 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
5331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5332 | break 2 |
---|
5333 | fi |
---|
5334 | done |
---|
5335 | done |
---|
5336 | IFS=$as_save_IFS |
---|
5337 | |
---|
5338 | fi |
---|
5339 | fi |
---|
5340 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
5341 | if test -n "$ac_ct_RANLIB"; then |
---|
5342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
5343 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
5344 | else |
---|
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5346 | $as_echo "no" >&6; } |
---|
5347 | fi |
---|
5348 | |
---|
5349 | if test "x$ac_ct_RANLIB" = x; then |
---|
5350 | RANLIB=":" |
---|
5351 | else |
---|
5352 | case $cross_compiling:$ac_tool_warned in |
---|
5353 | yes:) |
---|
5354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5355 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5356 | ac_tool_warned=yes ;; |
---|
5357 | esac |
---|
5358 | RANLIB=$ac_ct_RANLIB |
---|
5359 | fi |
---|
5360 | else |
---|
5361 | RANLIB="$ac_cv_prog_RANLIB" |
---|
5362 | fi |
---|
5363 | |
---|
5364 | |
---|
5365 | # Checks for libraries. |
---|
5366 | |
---|
5367 | # Checks for header files. |
---|
5368 | ac_ext=c |
---|
5369 | ac_cpp='$CPP $CPPFLAGS' |
---|
5370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
5374 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
5375 | # On Suns, sometimes $CPP names a directory. |
---|
5376 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5377 | CPP= |
---|
5378 | fi |
---|
5379 | if test -z "$CPP"; then |
---|
5380 | if ${ac_cv_prog_CPP+:} false; then : |
---|
5381 | $as_echo_n "(cached) " >&6 |
---|
5382 | else |
---|
5383 | # Double quotes because CPP needs to be expanded |
---|
5384 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5385 | do |
---|
5386 | ac_preproc_ok=false |
---|
5387 | for ac_c_preproc_warn_flag in '' yes |
---|
5388 | do |
---|
5389 | # Use a header file that comes with gcc, so configuring glibc |
---|
5390 | # with a fresh cross-compiler works. |
---|
5391 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5392 | # <limits.h> exists even on freestanding compilers. |
---|
5393 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5394 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5396 | /* end confdefs.h. */ |
---|
5397 | #ifdef __STDC__ |
---|
5398 | # include <limits.h> |
---|
5399 | #else |
---|
5400 | # include <assert.h> |
---|
5401 | #endif |
---|
5402 | Syntax error |
---|
5403 | _ACEOF |
---|
5404 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5405 | |
---|
5406 | else |
---|
5407 | # Broken: fails on valid input. |
---|
5408 | continue |
---|
5409 | fi |
---|
5410 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5411 | |
---|
5412 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5413 | # can be detected and how. |
---|
5414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5415 | /* end confdefs.h. */ |
---|
5416 | #include <ac_nonexistent.h> |
---|
5417 | _ACEOF |
---|
5418 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5419 | # Broken: success on invalid input. |
---|
5420 | continue |
---|
5421 | else |
---|
5422 | # Passes both tests. |
---|
5423 | ac_preproc_ok=: |
---|
5424 | break |
---|
5425 | fi |
---|
5426 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5427 | |
---|
5428 | done |
---|
5429 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5430 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5431 | if $ac_preproc_ok; then : |
---|
5432 | break |
---|
5433 | fi |
---|
5434 | |
---|
5435 | done |
---|
5436 | ac_cv_prog_CPP=$CPP |
---|
5437 | |
---|
5438 | fi |
---|
5439 | CPP=$ac_cv_prog_CPP |
---|
5440 | else |
---|
5441 | ac_cv_prog_CPP=$CPP |
---|
5442 | fi |
---|
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
5444 | $as_echo "$CPP" >&6; } |
---|
5445 | ac_preproc_ok=false |
---|
5446 | for ac_c_preproc_warn_flag in '' yes |
---|
5447 | do |
---|
5448 | # Use a header file that comes with gcc, so configuring glibc |
---|
5449 | # with a fresh cross-compiler works. |
---|
5450 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5451 | # <limits.h> exists even on freestanding compilers. |
---|
5452 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5453 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5455 | /* end confdefs.h. */ |
---|
5456 | #ifdef __STDC__ |
---|
5457 | # include <limits.h> |
---|
5458 | #else |
---|
5459 | # include <assert.h> |
---|
5460 | #endif |
---|
5461 | Syntax error |
---|
5462 | _ACEOF |
---|
5463 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5464 | |
---|
5465 | else |
---|
5466 | # Broken: fails on valid input. |
---|
5467 | continue |
---|
5468 | fi |
---|
5469 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5470 | |
---|
5471 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5472 | # can be detected and how. |
---|
5473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5474 | /* end confdefs.h. */ |
---|
5475 | #include <ac_nonexistent.h> |
---|
5476 | _ACEOF |
---|
5477 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5478 | # Broken: success on invalid input. |
---|
5479 | continue |
---|
5480 | else |
---|
5481 | # Passes both tests. |
---|
5482 | ac_preproc_ok=: |
---|
5483 | break |
---|
5484 | fi |
---|
5485 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5486 | |
---|
5487 | done |
---|
5488 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5489 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5490 | if $ac_preproc_ok; then : |
---|
5491 | |
---|
5492 | else |
---|
5493 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5495 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
5496 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5497 | fi |
---|
5498 | |
---|
5499 | ac_ext=c |
---|
5500 | ac_cpp='$CPP $CPPFLAGS' |
---|
5501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5504 | |
---|
5505 | |
---|
5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5507 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5508 | if ${ac_cv_path_GREP+:} false; then : |
---|
5509 | $as_echo_n "(cached) " >&6 |
---|
5510 | else |
---|
5511 | if test -z "$GREP"; then |
---|
5512 | ac_path_GREP_found=false |
---|
5513 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5515 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5516 | do |
---|
5517 | IFS=$as_save_IFS |
---|
5518 | test -z "$as_dir" && as_dir=. |
---|
5519 | for ac_prog in grep ggrep; do |
---|
5520 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5521 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5522 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
5523 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5524 | # Check for GNU $ac_path_GREP |
---|
5525 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5526 | *GNU*) |
---|
5527 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5528 | *) |
---|
5529 | ac_count=0 |
---|
5530 | $as_echo_n 0123456789 >"conftest.in" |
---|
5531 | while : |
---|
5532 | do |
---|
5533 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5534 | mv "conftest.tmp" "conftest.in" |
---|
5535 | cp "conftest.in" "conftest.nl" |
---|
5536 | $as_echo 'GREP' >> "conftest.nl" |
---|
5537 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5538 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5539 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5540 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5541 | # Best one so far, save it but keep looking for a better one |
---|
5542 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5543 | ac_path_GREP_max=$ac_count |
---|
5544 | fi |
---|
5545 | # 10*(2^10) chars as input seems more than enough |
---|
5546 | test $ac_count -gt 10 && break |
---|
5547 | done |
---|
5548 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5549 | esac |
---|
5550 | |
---|
5551 | $ac_path_GREP_found && break 3 |
---|
5552 | done |
---|
5553 | done |
---|
5554 | done |
---|
5555 | IFS=$as_save_IFS |
---|
5556 | if test -z "$ac_cv_path_GREP"; then |
---|
5557 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5558 | fi |
---|
5559 | else |
---|
5560 | ac_cv_path_GREP=$GREP |
---|
5561 | fi |
---|
5562 | |
---|
5563 | fi |
---|
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5565 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5566 | GREP="$ac_cv_path_GREP" |
---|
5567 | |
---|
5568 | |
---|
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5570 | $as_echo_n "checking for egrep... " >&6; } |
---|
5571 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5572 | $as_echo_n "(cached) " >&6 |
---|
5573 | else |
---|
5574 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5575 | then ac_cv_path_EGREP="$GREP -E" |
---|
5576 | else |
---|
5577 | if test -z "$EGREP"; then |
---|
5578 | ac_path_EGREP_found=false |
---|
5579 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5581 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5582 | do |
---|
5583 | IFS=$as_save_IFS |
---|
5584 | test -z "$as_dir" && as_dir=. |
---|
5585 | for ac_prog in egrep; do |
---|
5586 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5587 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5588 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
5589 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5590 | # Check for GNU $ac_path_EGREP |
---|
5591 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5592 | *GNU*) |
---|
5593 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5594 | *) |
---|
5595 | ac_count=0 |
---|
5596 | $as_echo_n 0123456789 >"conftest.in" |
---|
5597 | while : |
---|
5598 | do |
---|
5599 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5600 | mv "conftest.tmp" "conftest.in" |
---|
5601 | cp "conftest.in" "conftest.nl" |
---|
5602 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5603 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5604 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5605 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5606 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5607 | # Best one so far, save it but keep looking for a better one |
---|
5608 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5609 | ac_path_EGREP_max=$ac_count |
---|
5610 | fi |
---|
5611 | # 10*(2^10) chars as input seems more than enough |
---|
5612 | test $ac_count -gt 10 && break |
---|
5613 | done |
---|
5614 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5615 | esac |
---|
5616 | |
---|
5617 | $ac_path_EGREP_found && break 3 |
---|
5618 | done |
---|
5619 | done |
---|
5620 | done |
---|
5621 | IFS=$as_save_IFS |
---|
5622 | if test -z "$ac_cv_path_EGREP"; then |
---|
5623 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5624 | fi |
---|
5625 | else |
---|
5626 | ac_cv_path_EGREP=$EGREP |
---|
5627 | fi |
---|
5628 | |
---|
5629 | fi |
---|
5630 | fi |
---|
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5632 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5633 | EGREP="$ac_cv_path_EGREP" |
---|
5634 | |
---|
5635 | |
---|
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
5637 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
5638 | if ${ac_cv_header_stdc+:} false; then : |
---|
5639 | $as_echo_n "(cached) " >&6 |
---|
5640 | else |
---|
5641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5642 | /* end confdefs.h. */ |
---|
5643 | #include <stdlib.h> |
---|
5644 | #include <stdarg.h> |
---|
5645 | #include <string.h> |
---|
5646 | #include <float.h> |
---|
5647 | |
---|
5648 | int |
---|
5649 | main () |
---|
5650 | { |
---|
5651 | |
---|
5652 | ; |
---|
5653 | return 0; |
---|
5654 | } |
---|
5655 | _ACEOF |
---|
5656 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5657 | ac_cv_header_stdc=yes |
---|
5658 | else |
---|
5659 | ac_cv_header_stdc=no |
---|
5660 | fi |
---|
5661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5662 | |
---|
5663 | if test $ac_cv_header_stdc = yes; then |
---|
5664 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5666 | /* end confdefs.h. */ |
---|
5667 | #include <string.h> |
---|
5668 | |
---|
5669 | _ACEOF |
---|
5670 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5671 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
5672 | |
---|
5673 | else |
---|
5674 | ac_cv_header_stdc=no |
---|
5675 | fi |
---|
5676 | rm -f conftest* |
---|
5677 | |
---|
5678 | fi |
---|
5679 | |
---|
5680 | if test $ac_cv_header_stdc = yes; then |
---|
5681 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5683 | /* end confdefs.h. */ |
---|
5684 | #include <stdlib.h> |
---|
5685 | |
---|
5686 | _ACEOF |
---|
5687 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5688 | $EGREP "free" >/dev/null 2>&1; then : |
---|
5689 | |
---|
5690 | else |
---|
5691 | ac_cv_header_stdc=no |
---|
5692 | fi |
---|
5693 | rm -f conftest* |
---|
5694 | |
---|
5695 | fi |
---|
5696 | |
---|
5697 | if test $ac_cv_header_stdc = yes; then |
---|
5698 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5699 | if test "$cross_compiling" = yes; then : |
---|
5700 | : |
---|
5701 | else |
---|
5702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5703 | /* end confdefs.h. */ |
---|
5704 | #include <ctype.h> |
---|
5705 | #include <stdlib.h> |
---|
5706 | #if ((' ' & 0x0FF) == 0x020) |
---|
5707 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5708 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5709 | #else |
---|
5710 | # define ISLOWER(c) \ |
---|
5711 | (('a' <= (c) && (c) <= 'i') \ |
---|
5712 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5713 | || ('s' <= (c) && (c) <= 'z')) |
---|
5714 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5715 | #endif |
---|
5716 | |
---|
5717 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5718 | int |
---|
5719 | main () |
---|
5720 | { |
---|
5721 | int i; |
---|
5722 | for (i = 0; i < 256; i++) |
---|
5723 | if (XOR (islower (i), ISLOWER (i)) |
---|
5724 | || toupper (i) != TOUPPER (i)) |
---|
5725 | return 2; |
---|
5726 | return 0; |
---|
5727 | } |
---|
5728 | _ACEOF |
---|
5729 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5730 | |
---|
5731 | else |
---|
5732 | ac_cv_header_stdc=no |
---|
5733 | fi |
---|
5734 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5735 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5736 | fi |
---|
5737 | |
---|
5738 | fi |
---|
5739 | fi |
---|
5740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
5741 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
5742 | if test $ac_cv_header_stdc = yes; then |
---|
5743 | |
---|
5744 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
5745 | |
---|
5746 | fi |
---|
5747 | |
---|
5748 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5749 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5750 | inttypes.h stdint.h unistd.h |
---|
5751 | do : |
---|
5752 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5753 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
5754 | " |
---|
5755 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5756 | cat >>confdefs.h <<_ACEOF |
---|
5757 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5758 | _ACEOF |
---|
5759 | |
---|
5760 | fi |
---|
5761 | |
---|
5762 | done |
---|
5763 | |
---|
5764 | |
---|
5765 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5766 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5767 | |
---|
5768 | else |
---|
5769 | |
---|
5770 | cat >>confdefs.h <<_ACEOF |
---|
5771 | #define size_t unsigned int |
---|
5772 | _ACEOF |
---|
5773 | |
---|
5774 | fi |
---|
5775 | |
---|
5776 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
5777 | # for constant arguments. Useless! |
---|
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
---|
5779 | $as_echo_n "checking for working alloca.h... " >&6; } |
---|
5780 | if ${ac_cv_working_alloca_h+:} false; then : |
---|
5781 | $as_echo_n "(cached) " >&6 |
---|
5782 | else |
---|
5783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5784 | /* end confdefs.h. */ |
---|
5785 | #include <alloca.h> |
---|
5786 | int |
---|
5787 | main () |
---|
5788 | { |
---|
5789 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
5790 | if (p) return 0; |
---|
5791 | ; |
---|
5792 | return 0; |
---|
5793 | } |
---|
5794 | _ACEOF |
---|
5795 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5796 | ac_cv_working_alloca_h=yes |
---|
5797 | else |
---|
5798 | ac_cv_working_alloca_h=no |
---|
5799 | fi |
---|
5800 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5801 | conftest$ac_exeext conftest.$ac_ext |
---|
5802 | fi |
---|
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
---|
5804 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
---|
5805 | if test $ac_cv_working_alloca_h = yes; then |
---|
5806 | |
---|
5807 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
---|
5808 | |
---|
5809 | fi |
---|
5810 | |
---|
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
---|
5812 | $as_echo_n "checking for alloca... " >&6; } |
---|
5813 | if ${ac_cv_func_alloca_works+:} false; then : |
---|
5814 | $as_echo_n "(cached) " >&6 |
---|
5815 | else |
---|
5816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5817 | /* end confdefs.h. */ |
---|
5818 | #ifdef __GNUC__ |
---|
5819 | # define alloca __builtin_alloca |
---|
5820 | #else |
---|
5821 | # ifdef _MSC_VER |
---|
5822 | # include <malloc.h> |
---|
5823 | # define alloca _alloca |
---|
5824 | # else |
---|
5825 | # ifdef HAVE_ALLOCA_H |
---|
5826 | # include <alloca.h> |
---|
5827 | # else |
---|
5828 | # ifdef _AIX |
---|
5829 | #pragma alloca |
---|
5830 | # else |
---|
5831 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
5832 | void *alloca (size_t); |
---|
5833 | # endif |
---|
5834 | # endif |
---|
5835 | # endif |
---|
5836 | # endif |
---|
5837 | #endif |
---|
5838 | |
---|
5839 | int |
---|
5840 | main () |
---|
5841 | { |
---|
5842 | char *p = (char *) alloca (1); |
---|
5843 | if (p) return 0; |
---|
5844 | ; |
---|
5845 | return 0; |
---|
5846 | } |
---|
5847 | _ACEOF |
---|
5848 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5849 | ac_cv_func_alloca_works=yes |
---|
5850 | else |
---|
5851 | ac_cv_func_alloca_works=no |
---|
5852 | fi |
---|
5853 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5854 | conftest$ac_exeext conftest.$ac_ext |
---|
5855 | fi |
---|
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
---|
5857 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
---|
5858 | |
---|
5859 | if test $ac_cv_func_alloca_works = yes; then |
---|
5860 | |
---|
5861 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
---|
5862 | |
---|
5863 | else |
---|
5864 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
5865 | # that cause trouble. Some versions do not even contain alloca or |
---|
5866 | # contain a buggy version. If you still want to use their alloca, |
---|
5867 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
5868 | |
---|
5869 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
5870 | |
---|
5871 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
---|
5872 | |
---|
5873 | |
---|
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
5875 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
---|
5876 | if ${ac_cv_os_cray+:} false; then : |
---|
5877 | $as_echo_n "(cached) " >&6 |
---|
5878 | else |
---|
5879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5880 | /* end confdefs.h. */ |
---|
5881 | #if defined CRAY && ! defined CRAY2 |
---|
5882 | webecray |
---|
5883 | #else |
---|
5884 | wenotbecray |
---|
5885 | #endif |
---|
5886 | |
---|
5887 | _ACEOF |
---|
5888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5889 | $EGREP "webecray" >/dev/null 2>&1; then : |
---|
5890 | ac_cv_os_cray=yes |
---|
5891 | else |
---|
5892 | ac_cv_os_cray=no |
---|
5893 | fi |
---|
5894 | rm -f conftest* |
---|
5895 | |
---|
5896 | fi |
---|
5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
---|
5898 | $as_echo "$ac_cv_os_cray" >&6; } |
---|
5899 | if test $ac_cv_os_cray = yes; then |
---|
5900 | for ac_func in _getb67 GETB67 getb67; do |
---|
5901 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5902 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5903 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5904 | |
---|
5905 | cat >>confdefs.h <<_ACEOF |
---|
5906 | #define CRAY_STACKSEG_END $ac_func |
---|
5907 | _ACEOF |
---|
5908 | |
---|
5909 | break |
---|
5910 | fi |
---|
5911 | |
---|
5912 | done |
---|
5913 | fi |
---|
5914 | |
---|
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
---|
5916 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
---|
5917 | if ${ac_cv_c_stack_direction+:} false; then : |
---|
5918 | $as_echo_n "(cached) " >&6 |
---|
5919 | else |
---|
5920 | if test "$cross_compiling" = yes; then : |
---|
5921 | ac_cv_c_stack_direction=0 |
---|
5922 | else |
---|
5923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5924 | /* end confdefs.h. */ |
---|
5925 | $ac_includes_default |
---|
5926 | int |
---|
5927 | find_stack_direction () |
---|
5928 | { |
---|
5929 | static char *addr = 0; |
---|
5930 | auto char dummy; |
---|
5931 | if (addr == 0) |
---|
5932 | { |
---|
5933 | addr = &dummy; |
---|
5934 | return find_stack_direction (); |
---|
5935 | } |
---|
5936 | else |
---|
5937 | return (&dummy > addr) ? 1 : -1; |
---|
5938 | } |
---|
5939 | |
---|
5940 | int |
---|
5941 | main () |
---|
5942 | { |
---|
5943 | return find_stack_direction () < 0; |
---|
5944 | } |
---|
5945 | _ACEOF |
---|
5946 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5947 | ac_cv_c_stack_direction=1 |
---|
5948 | else |
---|
5949 | ac_cv_c_stack_direction=-1 |
---|
5950 | fi |
---|
5951 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5952 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5953 | fi |
---|
5954 | |
---|
5955 | fi |
---|
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
---|
5957 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
---|
5958 | cat >>confdefs.h <<_ACEOF |
---|
5959 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5960 | _ACEOF |
---|
5961 | |
---|
5962 | |
---|
5963 | fi |
---|
5964 | |
---|
5965 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h |
---|
5966 | do : |
---|
5967 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5968 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
5969 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5970 | cat >>confdefs.h <<_ACEOF |
---|
5971 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5972 | _ACEOF |
---|
5973 | |
---|
5974 | fi |
---|
5975 | |
---|
5976 | done |
---|
5977 | |
---|
5978 | |
---|
5979 | # Checks for typedefs, structures, and compiler characteristics. |
---|
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
5981 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
5982 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
5983 | $as_echo_n "(cached) " >&6 |
---|
5984 | else |
---|
5985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5986 | /* end confdefs.h. */ |
---|
5987 | |
---|
5988 | #include <stdbool.h> |
---|
5989 | #ifndef bool |
---|
5990 | "error: bool is not defined" |
---|
5991 | #endif |
---|
5992 | #ifndef false |
---|
5993 | "error: false is not defined" |
---|
5994 | #endif |
---|
5995 | #if false |
---|
5996 | "error: false is not 0" |
---|
5997 | #endif |
---|
5998 | #ifndef true |
---|
5999 | "error: true is not defined" |
---|
6000 | #endif |
---|
6001 | #if true != 1 |
---|
6002 | "error: true is not 1" |
---|
6003 | #endif |
---|
6004 | #ifndef __bool_true_false_are_defined |
---|
6005 | "error: __bool_true_false_are_defined is not defined" |
---|
6006 | #endif |
---|
6007 | |
---|
6008 | struct s { _Bool s: 1; _Bool t; } s; |
---|
6009 | |
---|
6010 | char a[true == 1 ? 1 : -1]; |
---|
6011 | char b[false == 0 ? 1 : -1]; |
---|
6012 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
6013 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
6014 | /* See body of main program for 'e'. */ |
---|
6015 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
6016 | char g[true]; |
---|
6017 | char h[sizeof (_Bool)]; |
---|
6018 | char i[sizeof s.t]; |
---|
6019 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
6020 | /* The following fails for |
---|
6021 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
6022 | _Bool n[m]; |
---|
6023 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
6024 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
6025 | /* Catch a bug in an HP-UX C compiler. See |
---|
6026 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
6027 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
6028 | */ |
---|
6029 | _Bool q = true; |
---|
6030 | _Bool *pq = &q; |
---|
6031 | |
---|
6032 | int |
---|
6033 | main () |
---|
6034 | { |
---|
6035 | |
---|
6036 | bool e = &s; |
---|
6037 | *pq |= q; |
---|
6038 | *pq |= ! q; |
---|
6039 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
6040 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
6041 | + !m + !n + !o + !p + !q + !pq); |
---|
6042 | |
---|
6043 | ; |
---|
6044 | return 0; |
---|
6045 | } |
---|
6046 | _ACEOF |
---|
6047 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6048 | ac_cv_header_stdbool_h=yes |
---|
6049 | else |
---|
6050 | ac_cv_header_stdbool_h=no |
---|
6051 | fi |
---|
6052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6053 | fi |
---|
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
6055 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
6056 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
6057 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
6058 | |
---|
6059 | cat >>confdefs.h <<_ACEOF |
---|
6060 | #define HAVE__BOOL 1 |
---|
6061 | _ACEOF |
---|
6062 | |
---|
6063 | |
---|
6064 | fi |
---|
6065 | |
---|
6066 | if test $ac_cv_header_stdbool_h = yes; then |
---|
6067 | |
---|
6068 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
6069 | |
---|
6070 | fi |
---|
6071 | |
---|
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
6073 | $as_echo_n "checking for inline... " >&6; } |
---|
6074 | if ${ac_cv_c_inline+:} false; then : |
---|
6075 | $as_echo_n "(cached) " >&6 |
---|
6076 | else |
---|
6077 | ac_cv_c_inline=no |
---|
6078 | for ac_kw in inline __inline__ __inline; do |
---|
6079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6080 | /* end confdefs.h. */ |
---|
6081 | #ifndef __cplusplus |
---|
6082 | typedef int foo_t; |
---|
6083 | static $ac_kw foo_t static_foo () {return 0; } |
---|
6084 | $ac_kw foo_t foo () {return 0; } |
---|
6085 | #endif |
---|
6086 | |
---|
6087 | _ACEOF |
---|
6088 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6089 | ac_cv_c_inline=$ac_kw |
---|
6090 | fi |
---|
6091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6092 | test "$ac_cv_c_inline" != no && break |
---|
6093 | done |
---|
6094 | |
---|
6095 | fi |
---|
6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
6097 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
6098 | |
---|
6099 | case $ac_cv_c_inline in |
---|
6100 | inline | yes) ;; |
---|
6101 | *) |
---|
6102 | case $ac_cv_c_inline in |
---|
6103 | no) ac_val=;; |
---|
6104 | *) ac_val=$ac_cv_c_inline;; |
---|
6105 | esac |
---|
6106 | cat >>confdefs.h <<_ACEOF |
---|
6107 | #ifndef __cplusplus |
---|
6108 | #define inline $ac_val |
---|
6109 | #endif |
---|
6110 | _ACEOF |
---|
6111 | ;; |
---|
6112 | esac |
---|
6113 | |
---|
6114 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
---|
6115 | case $ac_cv_c_int16_t in #( |
---|
6116 | no|yes) ;; #( |
---|
6117 | *) |
---|
6118 | |
---|
6119 | cat >>confdefs.h <<_ACEOF |
---|
6120 | #define int16_t $ac_cv_c_int16_t |
---|
6121 | _ACEOF |
---|
6122 | ;; |
---|
6123 | esac |
---|
6124 | |
---|
6125 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
---|
6126 | case $ac_cv_c_int32_t in #( |
---|
6127 | no|yes) ;; #( |
---|
6128 | *) |
---|
6129 | |
---|
6130 | cat >>confdefs.h <<_ACEOF |
---|
6131 | #define int32_t $ac_cv_c_int32_t |
---|
6132 | _ACEOF |
---|
6133 | ;; |
---|
6134 | esac |
---|
6135 | |
---|
6136 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
---|
6137 | case $ac_cv_c_int8_t in #( |
---|
6138 | no|yes) ;; #( |
---|
6139 | *) |
---|
6140 | |
---|
6141 | cat >>confdefs.h <<_ACEOF |
---|
6142 | #define int8_t $ac_cv_c_int8_t |
---|
6143 | _ACEOF |
---|
6144 | ;; |
---|
6145 | esac |
---|
6146 | |
---|
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
---|
6148 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
---|
6149 | if ${ac_cv_c_restrict+:} false; then : |
---|
6150 | $as_echo_n "(cached) " >&6 |
---|
6151 | else |
---|
6152 | ac_cv_c_restrict=no |
---|
6153 | # The order here caters to the fact that C++ does not require restrict. |
---|
6154 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
---|
6155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6156 | /* end confdefs.h. */ |
---|
6157 | typedef int * int_ptr; |
---|
6158 | int foo (int_ptr $ac_kw ip) { |
---|
6159 | return ip[0]; |
---|
6160 | } |
---|
6161 | int |
---|
6162 | main () |
---|
6163 | { |
---|
6164 | int s[1]; |
---|
6165 | int * $ac_kw t = s; |
---|
6166 | t[0] = 0; |
---|
6167 | return foo(t) |
---|
6168 | ; |
---|
6169 | return 0; |
---|
6170 | } |
---|
6171 | _ACEOF |
---|
6172 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6173 | ac_cv_c_restrict=$ac_kw |
---|
6174 | fi |
---|
6175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6176 | test "$ac_cv_c_restrict" != no && break |
---|
6177 | done |
---|
6178 | |
---|
6179 | fi |
---|
6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
---|
6181 | $as_echo "$ac_cv_c_restrict" >&6; } |
---|
6182 | |
---|
6183 | case $ac_cv_c_restrict in |
---|
6184 | restrict) ;; |
---|
6185 | no) $as_echo "#define restrict /**/" >>confdefs.h |
---|
6186 | ;; |
---|
6187 | *) cat >>confdefs.h <<_ACEOF |
---|
6188 | #define restrict $ac_cv_c_restrict |
---|
6189 | _ACEOF |
---|
6190 | ;; |
---|
6191 | esac |
---|
6192 | |
---|
6193 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
6194 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
6195 | |
---|
6196 | else |
---|
6197 | |
---|
6198 | cat >>confdefs.h <<_ACEOF |
---|
6199 | #define size_t unsigned int |
---|
6200 | _ACEOF |
---|
6201 | |
---|
6202 | fi |
---|
6203 | |
---|
6204 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
---|
6205 | case $ac_cv_c_uint16_t in #( |
---|
6206 | no|yes) ;; #( |
---|
6207 | *) |
---|
6208 | |
---|
6209 | |
---|
6210 | cat >>confdefs.h <<_ACEOF |
---|
6211 | #define uint16_t $ac_cv_c_uint16_t |
---|
6212 | _ACEOF |
---|
6213 | ;; |
---|
6214 | esac |
---|
6215 | |
---|
6216 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
---|
6217 | case $ac_cv_c_uint32_t in #( |
---|
6218 | no|yes) ;; #( |
---|
6219 | *) |
---|
6220 | |
---|
6221 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
---|
6222 | |
---|
6223 | |
---|
6224 | cat >>confdefs.h <<_ACEOF |
---|
6225 | #define uint32_t $ac_cv_c_uint32_t |
---|
6226 | _ACEOF |
---|
6227 | ;; |
---|
6228 | esac |
---|
6229 | |
---|
6230 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
---|
6231 | case $ac_cv_c_uint8_t in #( |
---|
6232 | no|yes) ;; #( |
---|
6233 | *) |
---|
6234 | |
---|
6235 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
---|
6236 | |
---|
6237 | |
---|
6238 | cat >>confdefs.h <<_ACEOF |
---|
6239 | #define uint8_t $ac_cv_c_uint8_t |
---|
6240 | _ACEOF |
---|
6241 | ;; |
---|
6242 | esac |
---|
6243 | |
---|
6244 | |
---|
6245 | # Checks for library functions. |
---|
6246 | for ac_func in memset putenv strchr strtol |
---|
6247 | do : |
---|
6248 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6249 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
6250 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
6251 | cat >>confdefs.h <<_ACEOF |
---|
6252 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6253 | _ACEOF |
---|
6254 | |
---|
6255 | fi |
---|
6256 | done |
---|
6257 | |
---|
6258 | |
---|
6259 | 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" |
---|
6260 | |
---|
6261 | |
---|
6262 | cat >confcache <<\_ACEOF |
---|
6263 | # This file is a shell script that caches the results of configure |
---|
6264 | # tests run on this system so they can be shared between configure |
---|
6265 | # scripts and configure runs, see configure's option --config-cache. |
---|
6266 | # It is not useful on other systems. If it contains results you don't |
---|
6267 | # want to keep, you may remove or edit it. |
---|
6268 | # |
---|
6269 | # config.status only pays attention to the cache file if you give it |
---|
6270 | # the --recheck option to rerun configure. |
---|
6271 | # |
---|
6272 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6273 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6274 | # following values. |
---|
6275 | |
---|
6276 | _ACEOF |
---|
6277 | |
---|
6278 | # The following way of writing the cache mishandles newlines in values, |
---|
6279 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6280 | # So, we kill variables containing newlines. |
---|
6281 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6282 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6283 | ( |
---|
6284 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
6285 | eval ac_val=\$$ac_var |
---|
6286 | case $ac_val in #( |
---|
6287 | *${as_nl}*) |
---|
6288 | case $ac_var in #( |
---|
6289 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
6290 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
6291 | esac |
---|
6292 | case $ac_var in #( |
---|
6293 | _ | IFS | as_nl) ;; #( |
---|
6294 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
6295 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
6296 | esac ;; |
---|
6297 | esac |
---|
6298 | done |
---|
6299 | |
---|
6300 | (set) 2>&1 | |
---|
6301 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
6302 | *${as_nl}ac_space=\ *) |
---|
6303 | # `set' does not quote correctly, so add quotes: double-quote |
---|
6304 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
6305 | sed -n \ |
---|
6306 | "s/'/'\\\\''/g; |
---|
6307 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6308 | ;; #( |
---|
6309 | *) |
---|
6310 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6311 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
6312 | ;; |
---|
6313 | esac | |
---|
6314 | sort |
---|
6315 | ) | |
---|
6316 | sed ' |
---|
6317 | /^ac_cv_env_/b end |
---|
6318 | t clear |
---|
6319 | :clear |
---|
6320 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6321 | t end |
---|
6322 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6323 | :end' >>confcache |
---|
6324 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
6325 | if test -w "$cache_file"; then |
---|
6326 | if test "x$cache_file" != "x/dev/null"; then |
---|
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
6328 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
6329 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
6330 | cat confcache >"$cache_file" |
---|
6331 | else |
---|
6332 | case $cache_file in #( |
---|
6333 | */* | ?:*) |
---|
6334 | mv -f confcache "$cache_file"$$ && |
---|
6335 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
6336 | *) |
---|
6337 | mv -f confcache "$cache_file" ;; |
---|
6338 | esac |
---|
6339 | fi |
---|
6340 | fi |
---|
6341 | else |
---|
6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
6343 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
6344 | fi |
---|
6345 | fi |
---|
6346 | rm -f confcache |
---|
6347 | |
---|
6348 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6349 | # Let make expand exec_prefix. |
---|
6350 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6351 | |
---|
6352 | DEFS=-DHAVE_CONFIG_H |
---|
6353 | |
---|
6354 | ac_libobjs= |
---|
6355 | ac_ltlibobjs= |
---|
6356 | U= |
---|
6357 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6358 | # 1. Remove the extension, and $U if already installed. |
---|
6359 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
6360 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
6361 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
6362 | # will be set to the directory where LIBOBJS objects are built. |
---|
6363 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
6364 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
6365 | done |
---|
6366 | LIBOBJS=$ac_libobjs |
---|
6367 | |
---|
6368 | LTLIBOBJS=$ac_ltlibobjs |
---|
6369 | |
---|
6370 | |
---|
6371 | if test -n "$EXEEXT"; then |
---|
6372 | am__EXEEXT_TRUE= |
---|
6373 | am__EXEEXT_FALSE='#' |
---|
6374 | else |
---|
6375 | am__EXEEXT_TRUE='#' |
---|
6376 | am__EXEEXT_FALSE= |
---|
6377 | fi |
---|
6378 | |
---|
6379 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
---|
6380 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
---|
6381 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6382 | fi |
---|
6383 | if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then |
---|
6384 | as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined. |
---|
6385 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6386 | fi |
---|
6387 | if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then |
---|
6388 | as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined. |
---|
6389 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6390 | fi |
---|
6391 | if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then |
---|
6392 | as_fn_error $? "conditional \"BUILD_NO_LIB\" was never defined. |
---|
6393 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6394 | fi |
---|
6395 | if test -z "${BUILD_CONCURRENCY_TRUE}" && test -z "${BUILD_CONCURRENCY_FALSE}"; then |
---|
6396 | as_fn_error $? "conditional \"BUILD_CONCURRENCY\" was never defined. |
---|
6397 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6398 | fi |
---|
6399 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6400 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
6401 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6402 | fi |
---|
6403 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6404 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
6405 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6406 | fi |
---|
6407 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6408 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
6409 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6410 | fi |
---|
6411 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
---|
6412 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
---|
6413 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6414 | fi |
---|
6415 | |
---|
6416 | : "${CONFIG_STATUS=./config.status}" |
---|
6417 | ac_write_fail=0 |
---|
6418 | ac_clean_files_save=$ac_clean_files |
---|
6419 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
6421 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6422 | as_write_fail=0 |
---|
6423 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
6424 | #! $SHELL |
---|
6425 | # Generated by $as_me. |
---|
6426 | # Run this file to recreate the current configuration. |
---|
6427 | # Compiler output produced by configure, useful for debugging |
---|
6428 | # configure, is in config.log if it exists. |
---|
6429 | |
---|
6430 | debug=false |
---|
6431 | ac_cs_recheck=false |
---|
6432 | ac_cs_silent=false |
---|
6433 | |
---|
6434 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6435 | export SHELL |
---|
6436 | _ASEOF |
---|
6437 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
6438 | ## -------------------- ## |
---|
6439 | ## M4sh Initialization. ## |
---|
6440 | ## -------------------- ## |
---|
6441 | |
---|
6442 | # Be more Bourne compatible |
---|
6443 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6444 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
6445 | emulate sh |
---|
6446 | NULLCMD=: |
---|
6447 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
6448 | # is contrary to our usage. Disable this feature. |
---|
6449 | alias -g '${1+"$@"}'='"$@"' |
---|
6450 | setopt NO_GLOB_SUBST |
---|
6451 | else |
---|
6452 | case `(set -o) 2>/dev/null` in #( |
---|
6453 | *posix*) : |
---|
6454 | set -o posix ;; #( |
---|
6455 | *) : |
---|
6456 | ;; |
---|
6457 | esac |
---|
6458 | fi |
---|
6459 | |
---|
6460 | |
---|
6461 | as_nl=' |
---|
6462 | ' |
---|
6463 | export as_nl |
---|
6464 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
6465 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
6466 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6467 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6468 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
6469 | # but without wasting forks for bash or zsh. |
---|
6470 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
6471 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6472 | as_echo='print -r --' |
---|
6473 | as_echo_n='print -rn --' |
---|
6474 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6475 | as_echo='printf %s\n' |
---|
6476 | as_echo_n='printf %s' |
---|
6477 | else |
---|
6478 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
6479 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
6480 | as_echo_n='/usr/ucb/echo -n' |
---|
6481 | else |
---|
6482 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
6483 | as_echo_n_body='eval |
---|
6484 | arg=$1; |
---|
6485 | case $arg in #( |
---|
6486 | *"$as_nl"*) |
---|
6487 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
6488 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
6489 | esac; |
---|
6490 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
6491 | ' |
---|
6492 | export as_echo_n_body |
---|
6493 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
6494 | fi |
---|
6495 | export as_echo_body |
---|
6496 | as_echo='sh -c $as_echo_body as_echo' |
---|
6497 | fi |
---|
6498 | |
---|
6499 | # The user is always right. |
---|
6500 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6501 | PATH_SEPARATOR=: |
---|
6502 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
6503 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
6504 | PATH_SEPARATOR=';' |
---|
6505 | } |
---|
6506 | fi |
---|
6507 | |
---|
6508 | |
---|
6509 | # IFS |
---|
6510 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
6511 | # there to prevent editors from complaining about space-tab. |
---|
6512 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
6513 | # splitting by setting IFS to empty value.) |
---|
6514 | IFS=" "" $as_nl" |
---|
6515 | |
---|
6516 | # Find who we are. Look in the path if we contain no directory separator. |
---|
6517 | as_myself= |
---|
6518 | case $0 in #(( |
---|
6519 | *[\\/]* ) as_myself=$0 ;; |
---|
6520 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6521 | for as_dir in $PATH |
---|
6522 | do |
---|
6523 | IFS=$as_save_IFS |
---|
6524 | test -z "$as_dir" && as_dir=. |
---|
6525 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6526 | done |
---|
6527 | IFS=$as_save_IFS |
---|
6528 | |
---|
6529 | ;; |
---|
6530 | esac |
---|
6531 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6532 | # in which case we are not to be found in the path. |
---|
6533 | if test "x$as_myself" = x; then |
---|
6534 | as_myself=$0 |
---|
6535 | fi |
---|
6536 | if test ! -f "$as_myself"; then |
---|
6537 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6538 | exit 1 |
---|
6539 | fi |
---|
6540 | |
---|
6541 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
6542 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
6543 | # suppresses any "Segmentation fault" message there. '((' could |
---|
6544 | # trigger a bug in pdksh 5.2.14. |
---|
6545 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
6546 | do eval test x\${$as_var+set} = xset \ |
---|
6547 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
6548 | done |
---|
6549 | PS1='$ ' |
---|
6550 | PS2='> ' |
---|
6551 | PS4='+ ' |
---|
6552 | |
---|
6553 | # NLS nuisances. |
---|
6554 | LC_ALL=C |
---|
6555 | export LC_ALL |
---|
6556 | LANGUAGE=C |
---|
6557 | export LANGUAGE |
---|
6558 | |
---|
6559 | # CDPATH. |
---|
6560 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
6561 | |
---|
6562 | |
---|
6563 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
6564 | # ---------------------------------------- |
---|
6565 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
6566 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
6567 | # script with STATUS, using 1 if that was 0. |
---|
6568 | as_fn_error () |
---|
6569 | { |
---|
6570 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
6571 | if test "$4"; then |
---|
6572 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
6573 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
6574 | fi |
---|
6575 | $as_echo "$as_me: error: $2" >&2 |
---|
6576 | as_fn_exit $as_status |
---|
6577 | } # as_fn_error |
---|
6578 | |
---|
6579 | |
---|
6580 | # as_fn_set_status STATUS |
---|
6581 | # ----------------------- |
---|
6582 | # Set $? to STATUS, without forking. |
---|
6583 | as_fn_set_status () |
---|
6584 | { |
---|
6585 | return $1 |
---|
6586 | } # as_fn_set_status |
---|
6587 | |
---|
6588 | # as_fn_exit STATUS |
---|
6589 | # ----------------- |
---|
6590 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6591 | as_fn_exit () |
---|
6592 | { |
---|
6593 | set +e |
---|
6594 | as_fn_set_status $1 |
---|
6595 | exit $1 |
---|
6596 | } # as_fn_exit |
---|
6597 | |
---|
6598 | # as_fn_unset VAR |
---|
6599 | # --------------- |
---|
6600 | # Portably unset VAR. |
---|
6601 | as_fn_unset () |
---|
6602 | { |
---|
6603 | { eval $1=; unset $1;} |
---|
6604 | } |
---|
6605 | as_unset=as_fn_unset |
---|
6606 | # as_fn_append VAR VALUE |
---|
6607 | # ---------------------- |
---|
6608 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6609 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6610 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6611 | # implementations. |
---|
6612 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6613 | eval 'as_fn_append () |
---|
6614 | { |
---|
6615 | eval $1+=\$2 |
---|
6616 | }' |
---|
6617 | else |
---|
6618 | as_fn_append () |
---|
6619 | { |
---|
6620 | eval $1=\$$1\$2 |
---|
6621 | } |
---|
6622 | fi # as_fn_append |
---|
6623 | |
---|
6624 | # as_fn_arith ARG... |
---|
6625 | # ------------------ |
---|
6626 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6627 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6628 | # must be portable across $(()) and expr. |
---|
6629 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6630 | eval 'as_fn_arith () |
---|
6631 | { |
---|
6632 | as_val=$(( $* )) |
---|
6633 | }' |
---|
6634 | else |
---|
6635 | as_fn_arith () |
---|
6636 | { |
---|
6637 | as_val=`expr "$@" || test $? -eq 1` |
---|
6638 | } |
---|
6639 | fi # as_fn_arith |
---|
6640 | |
---|
6641 | |
---|
6642 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6643 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6644 | as_expr=expr |
---|
6645 | else |
---|
6646 | as_expr=false |
---|
6647 | fi |
---|
6648 | |
---|
6649 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6650 | as_basename=basename |
---|
6651 | else |
---|
6652 | as_basename=false |
---|
6653 | fi |
---|
6654 | |
---|
6655 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6656 | as_dirname=dirname |
---|
6657 | else |
---|
6658 | as_dirname=false |
---|
6659 | fi |
---|
6660 | |
---|
6661 | as_me=`$as_basename -- "$0" || |
---|
6662 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6663 | X"$0" : 'X\(//\)$' \| \ |
---|
6664 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6665 | $as_echo X/"$0" | |
---|
6666 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6667 | s//\1/ |
---|
6668 | q |
---|
6669 | } |
---|
6670 | /^X\/\(\/\/\)$/{ |
---|
6671 | s//\1/ |
---|
6672 | q |
---|
6673 | } |
---|
6674 | /^X\/\(\/\).*/{ |
---|
6675 | s//\1/ |
---|
6676 | q |
---|
6677 | } |
---|
6678 | s/.*/./; q'` |
---|
6679 | |
---|
6680 | # Avoid depending upon Character Ranges. |
---|
6681 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6682 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6683 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6684 | as_cr_digits='0123456789' |
---|
6685 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6686 | |
---|
6687 | ECHO_C= ECHO_N= ECHO_T= |
---|
6688 | case `echo -n x` in #((((( |
---|
6689 | -n*) |
---|
6690 | case `echo 'xy\c'` in |
---|
6691 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6692 | xy) ECHO_C='\c';; |
---|
6693 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6694 | ECHO_T=' ';; |
---|
6695 | esac;; |
---|
6696 | *) |
---|
6697 | ECHO_N='-n';; |
---|
6698 | esac |
---|
6699 | |
---|
6700 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6701 | if test -d conf$$.dir; then |
---|
6702 | rm -f conf$$.dir/conf$$.file |
---|
6703 | else |
---|
6704 | rm -f conf$$.dir |
---|
6705 | mkdir conf$$.dir 2>/dev/null |
---|
6706 | fi |
---|
6707 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6708 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6709 | as_ln_s='ln -s' |
---|
6710 | # ... but there are two gotchas: |
---|
6711 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6712 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6713 | # In both cases, we have to default to `cp -p'. |
---|
6714 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6715 | as_ln_s='cp -p' |
---|
6716 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6717 | as_ln_s=ln |
---|
6718 | else |
---|
6719 | as_ln_s='cp -p' |
---|
6720 | fi |
---|
6721 | else |
---|
6722 | as_ln_s='cp -p' |
---|
6723 | fi |
---|
6724 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6725 | rmdir conf$$.dir 2>/dev/null |
---|
6726 | |
---|
6727 | |
---|
6728 | # as_fn_mkdir_p |
---|
6729 | # ------------- |
---|
6730 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6731 | as_fn_mkdir_p () |
---|
6732 | { |
---|
6733 | |
---|
6734 | case $as_dir in #( |
---|
6735 | -*) as_dir=./$as_dir;; |
---|
6736 | esac |
---|
6737 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6738 | as_dirs= |
---|
6739 | while :; do |
---|
6740 | case $as_dir in #( |
---|
6741 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6742 | *) as_qdir=$as_dir;; |
---|
6743 | esac |
---|
6744 | as_dirs="'$as_qdir' $as_dirs" |
---|
6745 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6746 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6747 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6748 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6749 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6750 | $as_echo X"$as_dir" | |
---|
6751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6752 | s//\1/ |
---|
6753 | q |
---|
6754 | } |
---|
6755 | /^X\(\/\/\)[^/].*/{ |
---|
6756 | s//\1/ |
---|
6757 | q |
---|
6758 | } |
---|
6759 | /^X\(\/\/\)$/{ |
---|
6760 | s//\1/ |
---|
6761 | q |
---|
6762 | } |
---|
6763 | /^X\(\/\).*/{ |
---|
6764 | s//\1/ |
---|
6765 | q |
---|
6766 | } |
---|
6767 | s/.*/./; q'` |
---|
6768 | test -d "$as_dir" && break |
---|
6769 | done |
---|
6770 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6771 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6772 | |
---|
6773 | |
---|
6774 | } # as_fn_mkdir_p |
---|
6775 | if mkdir -p . 2>/dev/null; then |
---|
6776 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6777 | else |
---|
6778 | test -d ./-p && rmdir ./-p |
---|
6779 | as_mkdir_p=false |
---|
6780 | fi |
---|
6781 | |
---|
6782 | if test -x / >/dev/null 2>&1; then |
---|
6783 | as_test_x='test -x' |
---|
6784 | else |
---|
6785 | if ls -dL / >/dev/null 2>&1; then |
---|
6786 | as_ls_L_option=L |
---|
6787 | else |
---|
6788 | as_ls_L_option= |
---|
6789 | fi |
---|
6790 | as_test_x=' |
---|
6791 | eval sh -c '\'' |
---|
6792 | if test -d "$1"; then |
---|
6793 | test -d "$1/."; |
---|
6794 | else |
---|
6795 | case $1 in #( |
---|
6796 | -*)set "./$1";; |
---|
6797 | esac; |
---|
6798 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
6799 | ???[sx]*):;;*)false;;esac;fi |
---|
6800 | '\'' sh |
---|
6801 | ' |
---|
6802 | fi |
---|
6803 | as_executable_p=$as_test_x |
---|
6804 | |
---|
6805 | # Sed expression to map a string onto a valid CPP name. |
---|
6806 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6807 | |
---|
6808 | # Sed expression to map a string onto a valid variable name. |
---|
6809 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6810 | |
---|
6811 | |
---|
6812 | exec 6>&1 |
---|
6813 | ## ----------------------------------- ## |
---|
6814 | ## Main body of $CONFIG_STATUS script. ## |
---|
6815 | ## ----------------------------------- ## |
---|
6816 | _ASEOF |
---|
6817 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6818 | |
---|
6819 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6820 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6821 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6822 | # values after options handling. |
---|
6823 | ac_log=" |
---|
6824 | This file was extended by cfa-cc $as_me 1.0.0.0, which was |
---|
6825 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
6826 | |
---|
6827 | CONFIG_FILES = $CONFIG_FILES |
---|
6828 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6829 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6830 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6831 | $ $0 $@ |
---|
6832 | |
---|
6833 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6834 | " |
---|
6835 | |
---|
6836 | _ACEOF |
---|
6837 | |
---|
6838 | case $ac_config_files in *" |
---|
6839 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6840 | esac |
---|
6841 | |
---|
6842 | case $ac_config_headers in *" |
---|
6843 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
6844 | esac |
---|
6845 | |
---|
6846 | |
---|
6847 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6848 | # Files that config.status was made for. |
---|
6849 | config_files="$ac_config_files" |
---|
6850 | config_headers="$ac_config_headers" |
---|
6851 | config_commands="$ac_config_commands" |
---|
6852 | |
---|
6853 | _ACEOF |
---|
6854 | |
---|
6855 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6856 | ac_cs_usage="\ |
---|
6857 | \`$as_me' instantiates files and other configuration actions |
---|
6858 | from templates according to the current configuration. Unless the files |
---|
6859 | and actions are specified as TAGs, all are instantiated by default. |
---|
6860 | |
---|
6861 | Usage: $0 [OPTION]... [TAG]... |
---|
6862 | |
---|
6863 | -h, --help print this help, then exit |
---|
6864 | -V, --version print version number and configuration settings, then exit |
---|
6865 | --config print configuration, then exit |
---|
6866 | -q, --quiet, --silent |
---|
6867 | do not print progress messages |
---|
6868 | -d, --debug don't remove temporary files |
---|
6869 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6870 | --file=FILE[:TEMPLATE] |
---|
6871 | instantiate the configuration file FILE |
---|
6872 | --header=FILE[:TEMPLATE] |
---|
6873 | instantiate the configuration header FILE |
---|
6874 | |
---|
6875 | Configuration files: |
---|
6876 | $config_files |
---|
6877 | |
---|
6878 | Configuration headers: |
---|
6879 | $config_headers |
---|
6880 | |
---|
6881 | Configuration commands: |
---|
6882 | $config_commands |
---|
6883 | |
---|
6884 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
6885 | |
---|
6886 | _ACEOF |
---|
6887 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6888 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6889 | ac_cs_version="\\ |
---|
6890 | cfa-cc config.status 1.0.0.0 |
---|
6891 | configured by $0, generated by GNU Autoconf 2.68, |
---|
6892 | with options \\"\$ac_cs_config\\" |
---|
6893 | |
---|
6894 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
6895 | This config.status script is free software; the Free Software Foundation |
---|
6896 | gives unlimited permission to copy, distribute and modify it." |
---|
6897 | |
---|
6898 | ac_pwd='$ac_pwd' |
---|
6899 | srcdir='$srcdir' |
---|
6900 | INSTALL='$INSTALL' |
---|
6901 | MKDIR_P='$MKDIR_P' |
---|
6902 | AWK='$AWK' |
---|
6903 | test -n "\$AWK" || AWK=awk |
---|
6904 | _ACEOF |
---|
6905 | |
---|
6906 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6907 | # The default lists apply if the user does not specify any file. |
---|
6908 | ac_need_defaults=: |
---|
6909 | while test $# != 0 |
---|
6910 | do |
---|
6911 | case $1 in |
---|
6912 | --*=?*) |
---|
6913 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6914 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6915 | ac_shift=: |
---|
6916 | ;; |
---|
6917 | --*=) |
---|
6918 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6919 | ac_optarg= |
---|
6920 | ac_shift=: |
---|
6921 | ;; |
---|
6922 | *) |
---|
6923 | ac_option=$1 |
---|
6924 | ac_optarg=$2 |
---|
6925 | ac_shift=shift |
---|
6926 | ;; |
---|
6927 | esac |
---|
6928 | |
---|
6929 | case $ac_option in |
---|
6930 | # Handling of the options. |
---|
6931 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6932 | ac_cs_recheck=: ;; |
---|
6933 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6934 | $as_echo "$ac_cs_version"; exit ;; |
---|
6935 | --config | --confi | --conf | --con | --co | --c ) |
---|
6936 | $as_echo "$ac_cs_config"; exit ;; |
---|
6937 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6938 | debug=: ;; |
---|
6939 | --file | --fil | --fi | --f ) |
---|
6940 | $ac_shift |
---|
6941 | case $ac_optarg in |
---|
6942 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6943 | '') as_fn_error $? "missing file argument" ;; |
---|
6944 | esac |
---|
6945 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6946 | ac_need_defaults=false;; |
---|
6947 | --header | --heade | --head | --hea ) |
---|
6948 | $ac_shift |
---|
6949 | case $ac_optarg in |
---|
6950 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6951 | esac |
---|
6952 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
6953 | ac_need_defaults=false;; |
---|
6954 | --he | --h) |
---|
6955 | # Conflict between --help and --header |
---|
6956 | as_fn_error $? "ambiguous option: \`$1' |
---|
6957 | Try \`$0 --help' for more information.";; |
---|
6958 | --help | --hel | -h ) |
---|
6959 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6960 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6961 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6962 | ac_cs_silent=: ;; |
---|
6963 | |
---|
6964 | # This is an error. |
---|
6965 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6966 | Try \`$0 --help' for more information." ;; |
---|
6967 | |
---|
6968 | *) as_fn_append ac_config_targets " $1" |
---|
6969 | ac_need_defaults=false ;; |
---|
6970 | |
---|
6971 | esac |
---|
6972 | shift |
---|
6973 | done |
---|
6974 | |
---|
6975 | ac_configure_extra_args= |
---|
6976 | |
---|
6977 | if $ac_cs_silent; then |
---|
6978 | exec 6>/dev/null |
---|
6979 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6980 | fi |
---|
6981 | |
---|
6982 | _ACEOF |
---|
6983 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6984 | if \$ac_cs_recheck; then |
---|
6985 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6986 | shift |
---|
6987 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6988 | CONFIG_SHELL='$SHELL' |
---|
6989 | export CONFIG_SHELL |
---|
6990 | exec "\$@" |
---|
6991 | fi |
---|
6992 | |
---|
6993 | _ACEOF |
---|
6994 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6995 | exec 5>>config.log |
---|
6996 | { |
---|
6997 | echo |
---|
6998 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6999 | ## Running $as_me. ## |
---|
7000 | _ASBOX |
---|
7001 | $as_echo "$ac_log" |
---|
7002 | } >&5 |
---|
7003 | |
---|
7004 | _ACEOF |
---|
7005 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7006 | # |
---|
7007 | # INIT-COMMANDS |
---|
7008 | # |
---|
7009 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
7010 | |
---|
7011 | _ACEOF |
---|
7012 | |
---|
7013 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7014 | |
---|
7015 | # Handling of arguments. |
---|
7016 | for ac_config_target in $ac_config_targets |
---|
7017 | do |
---|
7018 | case $ac_config_target in |
---|
7019 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
7020 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
7021 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7022 | "src/driver/Makefile") CONFIG_FILES="$CONFIG_FILES src/driver/Makefile" ;; |
---|
7023 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
7024 | "src/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES src/benchmark/Makefile" ;; |
---|
7025 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; |
---|
7026 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; |
---|
7027 | "src/prelude/Makefile") CONFIG_FILES="$CONFIG_FILES src/prelude/Makefile" ;; |
---|
7028 | "src/libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcfa/Makefile" ;; |
---|
7029 | |
---|
7030 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
7031 | esac |
---|
7032 | done |
---|
7033 | |
---|
7034 | |
---|
7035 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7036 | # then the envvar interface is used. Set only those that are not. |
---|
7037 | # We use the long form for the default assignment because of an extremely |
---|
7038 | # bizarre bug on SunOS 4.1.3. |
---|
7039 | if $ac_need_defaults; then |
---|
7040 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7041 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
7042 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
7043 | fi |
---|
7044 | |
---|
7045 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7046 | # simply because there is no reason against having it here, and in addition, |
---|
7047 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7048 | # Hook for its removal unless debugging. |
---|
7049 | # Note that there is a small window in which the directory will not be cleaned: |
---|
7050 | # after its creation but before its name has been assigned to `$tmp'. |
---|
7051 | $debug || |
---|
7052 | { |
---|
7053 | tmp= ac_tmp= |
---|
7054 | trap 'exit_status=$? |
---|
7055 | : "${ac_tmp:=$tmp}" |
---|
7056 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
7057 | ' 0 |
---|
7058 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
7059 | } |
---|
7060 | # Create a (secure) tmp directory for tmp files. |
---|
7061 | |
---|
7062 | { |
---|
7063 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
7064 | test -d "$tmp" |
---|
7065 | } || |
---|
7066 | { |
---|
7067 | tmp=./conf$$-$RANDOM |
---|
7068 | (umask 077 && mkdir "$tmp") |
---|
7069 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
7070 | ac_tmp=$tmp |
---|
7071 | |
---|
7072 | # Set up the scripts for CONFIG_FILES section. |
---|
7073 | # No need to generate them if there are no CONFIG_FILES. |
---|
7074 | # This happens for instance with `./config.status config.h'. |
---|
7075 | if test -n "$CONFIG_FILES"; then |
---|
7076 | |
---|
7077 | |
---|
7078 | ac_cr=`echo X | tr X '\015'` |
---|
7079 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
7080 | # But we know of no other shell where ac_cr would be empty at this |
---|
7081 | # point, so we can use a bashism as a fallback. |
---|
7082 | if test "x$ac_cr" = x; then |
---|
7083 | eval ac_cr=\$\'\\r\' |
---|
7084 | fi |
---|
7085 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
7086 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
7087 | ac_cs_awk_cr='\\r' |
---|
7088 | else |
---|
7089 | ac_cs_awk_cr=$ac_cr |
---|
7090 | fi |
---|
7091 | |
---|
7092 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
7093 | _ACEOF |
---|
7094 | |
---|
7095 | |
---|
7096 | { |
---|
7097 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
7098 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
7099 | echo "_ACEOF" |
---|
7100 | } >conf$$subs.sh || |
---|
7101 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7102 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
7103 | ac_delim='%!_!# ' |
---|
7104 | for ac_last_try in false false false false false :; do |
---|
7105 | . ./conf$$subs.sh || |
---|
7106 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7107 | |
---|
7108 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
7109 | if test $ac_delim_n = $ac_delim_num; then |
---|
7110 | break |
---|
7111 | elif $ac_last_try; then |
---|
7112 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7113 | else |
---|
7114 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7115 | fi |
---|
7116 | done |
---|
7117 | rm -f conf$$subs.sh |
---|
7118 | |
---|
7119 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7120 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
7121 | _ACEOF |
---|
7122 | sed -n ' |
---|
7123 | h |
---|
7124 | s/^/S["/; s/!.*/"]=/ |
---|
7125 | p |
---|
7126 | g |
---|
7127 | s/^[^!]*!// |
---|
7128 | :repl |
---|
7129 | t repl |
---|
7130 | s/'"$ac_delim"'$// |
---|
7131 | t delim |
---|
7132 | :nl |
---|
7133 | h |
---|
7134 | s/\(.\{148\}\)..*/\1/ |
---|
7135 | t more1 |
---|
7136 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7137 | p |
---|
7138 | n |
---|
7139 | b repl |
---|
7140 | :more1 |
---|
7141 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7142 | p |
---|
7143 | g |
---|
7144 | s/.\{148\}// |
---|
7145 | t nl |
---|
7146 | :delim |
---|
7147 | h |
---|
7148 | s/\(.\{148\}\)..*/\1/ |
---|
7149 | t more2 |
---|
7150 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7151 | p |
---|
7152 | b |
---|
7153 | :more2 |
---|
7154 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7155 | p |
---|
7156 | g |
---|
7157 | s/.\{148\}// |
---|
7158 | t delim |
---|
7159 | ' <conf$$subs.awk | sed ' |
---|
7160 | /^[^""]/{ |
---|
7161 | N |
---|
7162 | s/\n// |
---|
7163 | } |
---|
7164 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7165 | rm -f conf$$subs.awk |
---|
7166 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7167 | _ACAWK |
---|
7168 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
7169 | for (key in S) S_is_set[key] = 1 |
---|
7170 | FS = "" |
---|
7171 | |
---|
7172 | } |
---|
7173 | { |
---|
7174 | line = $ 0 |
---|
7175 | nfields = split(line, field, "@") |
---|
7176 | substed = 0 |
---|
7177 | len = length(field[1]) |
---|
7178 | for (i = 2; i < nfields; i++) { |
---|
7179 | key = field[i] |
---|
7180 | keylen = length(key) |
---|
7181 | if (S_is_set[key]) { |
---|
7182 | value = S[key] |
---|
7183 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7184 | len += length(value) + length(field[++i]) |
---|
7185 | substed = 1 |
---|
7186 | } else |
---|
7187 | len += 1 + keylen |
---|
7188 | } |
---|
7189 | |
---|
7190 | print line |
---|
7191 | } |
---|
7192 | |
---|
7193 | _ACAWK |
---|
7194 | _ACEOF |
---|
7195 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7196 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7197 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7198 | else |
---|
7199 | cat |
---|
7200 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
7201 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
7202 | _ACEOF |
---|
7203 | |
---|
7204 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
7205 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
7206 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7207 | # (actually we leave an empty line to preserve line numbers). |
---|
7208 | if test "x$srcdir" = x.; then |
---|
7209 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
7210 | h |
---|
7211 | s/// |
---|
7212 | s/^/:/ |
---|
7213 | s/[ ]*$/:/ |
---|
7214 | s/:\$(srcdir):/:/g |
---|
7215 | s/:\${srcdir}:/:/g |
---|
7216 | s/:@srcdir@:/:/g |
---|
7217 | s/^:*// |
---|
7218 | s/:*$// |
---|
7219 | x |
---|
7220 | s/\(=[ ]*\).*/\1/ |
---|
7221 | G |
---|
7222 | s/\n// |
---|
7223 | s/^[^=]*=[ ]*$// |
---|
7224 | }' |
---|
7225 | fi |
---|
7226 | |
---|
7227 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7228 | fi # test -n "$CONFIG_FILES" |
---|
7229 | |
---|
7230 | # Set up the scripts for CONFIG_HEADERS section. |
---|
7231 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
7232 | # This happens for instance with `./config.status Makefile'. |
---|
7233 | if test -n "$CONFIG_HEADERS"; then |
---|
7234 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
7235 | BEGIN { |
---|
7236 | _ACEOF |
---|
7237 | |
---|
7238 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
7239 | # here-document in config.status, that substitutes the proper values into |
---|
7240 | # config.h.in to produce config.h. |
---|
7241 | |
---|
7242 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
7243 | # handling of long lines. |
---|
7244 | ac_delim='%!_!# ' |
---|
7245 | for ac_last_try in false false :; do |
---|
7246 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
7247 | if test -z "$ac_tt"; then |
---|
7248 | break |
---|
7249 | elif $ac_last_try; then |
---|
7250 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
7251 | else |
---|
7252 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7253 | fi |
---|
7254 | done |
---|
7255 | |
---|
7256 | # For the awk script, D is an array of macro values keyed by name, |
---|
7257 | # likewise P contains macro parameters if any. Preserve backslash |
---|
7258 | # newline sequences. |
---|
7259 | |
---|
7260 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
7261 | sed -n ' |
---|
7262 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7263 | t rset |
---|
7264 | :rset |
---|
7265 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
7266 | t def |
---|
7267 | d |
---|
7268 | :def |
---|
7269 | s/\\$// |
---|
7270 | t bsnl |
---|
7271 | s/["\\]/\\&/g |
---|
7272 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7273 | D["\1"]=" \3"/p |
---|
7274 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
7275 | d |
---|
7276 | :bsnl |
---|
7277 | s/["\\]/\\&/g |
---|
7278 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7279 | D["\1"]=" \3\\\\\\n"\\/p |
---|
7280 | t cont |
---|
7281 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
7282 | t cont |
---|
7283 | d |
---|
7284 | :cont |
---|
7285 | n |
---|
7286 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7287 | t clear |
---|
7288 | :clear |
---|
7289 | s/\\$// |
---|
7290 | t bsnlc |
---|
7291 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
7292 | d |
---|
7293 | :bsnlc |
---|
7294 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
7295 | b cont |
---|
7296 | ' <confdefs.h | sed ' |
---|
7297 | s/'"$ac_delim"'/"\\\ |
---|
7298 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7299 | |
---|
7300 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7301 | for (key in D) D_is_set[key] = 1 |
---|
7302 | FS = "" |
---|
7303 | } |
---|
7304 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
7305 | line = \$ 0 |
---|
7306 | split(line, arg, " ") |
---|
7307 | if (arg[1] == "#") { |
---|
7308 | defundef = arg[2] |
---|
7309 | mac1 = arg[3] |
---|
7310 | } else { |
---|
7311 | defundef = substr(arg[1], 2) |
---|
7312 | mac1 = arg[2] |
---|
7313 | } |
---|
7314 | split(mac1, mac2, "(") #) |
---|
7315 | macro = mac2[1] |
---|
7316 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
7317 | if (D_is_set[macro]) { |
---|
7318 | # Preserve the white space surrounding the "#". |
---|
7319 | print prefix "define", macro P[macro] D[macro] |
---|
7320 | next |
---|
7321 | } else { |
---|
7322 | # Replace #undef with comments. This is necessary, for example, |
---|
7323 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
7324 | # on some systems where configure will not decide to define it. |
---|
7325 | if (defundef == "undef") { |
---|
7326 | print "/*", prefix defundef, macro, "*/" |
---|
7327 | next |
---|
7328 | } |
---|
7329 | } |
---|
7330 | } |
---|
7331 | { print } |
---|
7332 | _ACAWK |
---|
7333 | _ACEOF |
---|
7334 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7335 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
7336 | fi # test -n "$CONFIG_HEADERS" |
---|
7337 | |
---|
7338 | |
---|
7339 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
---|
7340 | shift |
---|
7341 | for ac_tag |
---|
7342 | do |
---|
7343 | case $ac_tag in |
---|
7344 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7345 | esac |
---|
7346 | case $ac_mode$ac_tag in |
---|
7347 | :[FHL]*:*);; |
---|
7348 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
7349 | :[FH]-) ac_tag=-:-;; |
---|
7350 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7351 | esac |
---|
7352 | ac_save_IFS=$IFS |
---|
7353 | IFS=: |
---|
7354 | set x $ac_tag |
---|
7355 | IFS=$ac_save_IFS |
---|
7356 | shift |
---|
7357 | ac_file=$1 |
---|
7358 | shift |
---|
7359 | |
---|
7360 | case $ac_mode in |
---|
7361 | :L) ac_source=$1;; |
---|
7362 | :[FH]) |
---|
7363 | ac_file_inputs= |
---|
7364 | for ac_f |
---|
7365 | do |
---|
7366 | case $ac_f in |
---|
7367 | -) ac_f="$ac_tmp/stdin";; |
---|
7368 | *) # Look for the file first in the build tree, then in the source tree |
---|
7369 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7370 | # because $ac_f cannot contain `:'. |
---|
7371 | test -f "$ac_f" || |
---|
7372 | case $ac_f in |
---|
7373 | [\\/$]*) false;; |
---|
7374 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
7375 | esac || |
---|
7376 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
7377 | esac |
---|
7378 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
7379 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
7380 | done |
---|
7381 | |
---|
7382 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7383 | # use $as_me), people would be surprised to read: |
---|
7384 | # /* config.h. Generated by config.status. */ |
---|
7385 | configure_input='Generated from '` |
---|
7386 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
7387 | `' by configure.' |
---|
7388 | if test x"$ac_file" != x-; then |
---|
7389 | configure_input="$ac_file. $configure_input" |
---|
7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
7391 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
7392 | fi |
---|
7393 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
7394 | case $configure_input in #( |
---|
7395 | *\&* | *\|* | *\\* ) |
---|
7396 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
7397 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
7398 | *) ac_sed_conf_input=$configure_input;; |
---|
7399 | esac |
---|
7400 | |
---|
7401 | case $ac_tag in |
---|
7402 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
7403 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
7404 | esac |
---|
7405 | ;; |
---|
7406 | esac |
---|
7407 | |
---|
7408 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
7409 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7410 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7411 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7412 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7413 | $as_echo X"$ac_file" | |
---|
7414 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7415 | s//\1/ |
---|
7416 | q |
---|
7417 | } |
---|
7418 | /^X\(\/\/\)[^/].*/{ |
---|
7419 | s//\1/ |
---|
7420 | q |
---|
7421 | } |
---|
7422 | /^X\(\/\/\)$/{ |
---|
7423 | s//\1/ |
---|
7424 | q |
---|
7425 | } |
---|
7426 | /^X\(\/\).*/{ |
---|
7427 | s//\1/ |
---|
7428 | q |
---|
7429 | } |
---|
7430 | s/.*/./; q'` |
---|
7431 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
7432 | ac_builddir=. |
---|
7433 | |
---|
7434 | case "$ac_dir" in |
---|
7435 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7436 | *) |
---|
7437 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
7438 | # A ".." for each directory in $ac_dir_suffix. |
---|
7439 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
7440 | case $ac_top_builddir_sub in |
---|
7441 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7442 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
7443 | esac ;; |
---|
7444 | esac |
---|
7445 | ac_abs_top_builddir=$ac_pwd |
---|
7446 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
7447 | # for backward compatibility: |
---|
7448 | ac_top_builddir=$ac_top_build_prefix |
---|
7449 | |
---|
7450 | case $srcdir in |
---|
7451 | .) # We are building in place. |
---|
7452 | ac_srcdir=. |
---|
7453 | ac_top_srcdir=$ac_top_builddir_sub |
---|
7454 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
7455 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
7456 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7457 | ac_top_srcdir=$srcdir |
---|
7458 | ac_abs_top_srcdir=$srcdir ;; |
---|
7459 | *) # Relative name. |
---|
7460 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
7461 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
7462 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
7463 | esac |
---|
7464 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
7465 | |
---|
7466 | |
---|
7467 | case $ac_mode in |
---|
7468 | :F) |
---|
7469 | # |
---|
7470 | # CONFIG_FILE |
---|
7471 | # |
---|
7472 | |
---|
7473 | case $INSTALL in |
---|
7474 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7475 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
7476 | esac |
---|
7477 | ac_MKDIR_P=$MKDIR_P |
---|
7478 | case $MKDIR_P in |
---|
7479 | [\\/$]* | ?:[\\/]* ) ;; |
---|
7480 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
7481 | esac |
---|
7482 | _ACEOF |
---|
7483 | |
---|
7484 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7485 | # If the template does not know about datarootdir, expand it. |
---|
7486 | # FIXME: This hack should be removed a few years after 2.60. |
---|
7487 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
7488 | ac_sed_dataroot=' |
---|
7489 | /datarootdir/ { |
---|
7490 | p |
---|
7491 | q |
---|
7492 | } |
---|
7493 | /@datadir@/p |
---|
7494 | /@docdir@/p |
---|
7495 | /@infodir@/p |
---|
7496 | /@localedir@/p |
---|
7497 | /@mandir@/p' |
---|
7498 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
7499 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
7500 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
7501 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
7502 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
7503 | _ACEOF |
---|
7504 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7505 | ac_datarootdir_hack=' |
---|
7506 | s&@datadir@&$datadir&g |
---|
7507 | s&@docdir@&$docdir&g |
---|
7508 | s&@infodir@&$infodir&g |
---|
7509 | s&@localedir@&$localedir&g |
---|
7510 | s&@mandir@&$mandir&g |
---|
7511 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
7512 | esac |
---|
7513 | _ACEOF |
---|
7514 | |
---|
7515 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
7516 | # Shell code in configure.ac might set extrasub. |
---|
7517 | # FIXME: do we really want to maintain this feature? |
---|
7518 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7519 | ac_sed_extra="$ac_vpsub |
---|
7520 | $extrasub |
---|
7521 | _ACEOF |
---|
7522 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7523 | :t |
---|
7524 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7525 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
7526 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
7527 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7528 | s&@srcdir@&$ac_srcdir&;t t |
---|
7529 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7530 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7531 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7532 | s&@builddir@&$ac_builddir&;t t |
---|
7533 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7534 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7535 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
7536 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
7537 | $ac_datarootdir_hack |
---|
7538 | " |
---|
7539 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
7540 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7541 | |
---|
7542 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7543 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
7544 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
7545 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7547 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
7548 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7549 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
7550 | |
---|
7551 | rm -f "$ac_tmp/stdin" |
---|
7552 | case $ac_file in |
---|
7553 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
7554 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
7555 | esac \ |
---|
7556 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7557 | ;; |
---|
7558 | :H) |
---|
7559 | # |
---|
7560 | # CONFIG_HEADER |
---|
7561 | # |
---|
7562 | if test x"$ac_file" != x-; then |
---|
7563 | { |
---|
7564 | $as_echo "/* $configure_input */" \ |
---|
7565 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
7566 | } >"$ac_tmp/config.h" \ |
---|
7567 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7568 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
7569 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
7570 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7571 | else |
---|
7572 | rm -f "$ac_file" |
---|
7573 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
7574 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7575 | fi |
---|
7576 | else |
---|
7577 | $as_echo "/* $configure_input */" \ |
---|
7578 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
7579 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
7580 | fi |
---|
7581 | # Compute "$ac_file"'s index in $config_headers. |
---|
7582 | _am_arg="$ac_file" |
---|
7583 | _am_stamp_count=1 |
---|
7584 | for _am_header in $config_headers :; do |
---|
7585 | case $_am_header in |
---|
7586 | $_am_arg | $_am_arg:* ) |
---|
7587 | break ;; |
---|
7588 | * ) |
---|
7589 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7590 | esac |
---|
7591 | done |
---|
7592 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
7593 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7594 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
7595 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
7596 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
7597 | $as_echo X"$_am_arg" | |
---|
7598 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7599 | s//\1/ |
---|
7600 | q |
---|
7601 | } |
---|
7602 | /^X\(\/\/\)[^/].*/{ |
---|
7603 | s//\1/ |
---|
7604 | q |
---|
7605 | } |
---|
7606 | /^X\(\/\/\)$/{ |
---|
7607 | s//\1/ |
---|
7608 | q |
---|
7609 | } |
---|
7610 | /^X\(\/\).*/{ |
---|
7611 | s//\1/ |
---|
7612 | q |
---|
7613 | } |
---|
7614 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7615 | ;; |
---|
7616 | |
---|
7617 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
7618 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
7619 | ;; |
---|
7620 | esac |
---|
7621 | |
---|
7622 | |
---|
7623 | case $ac_file$ac_mode in |
---|
7624 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
7625 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
---|
7626 | # are listed without --file. Let's play safe and only enable the eval |
---|
7627 | # if we detect the quoting. |
---|
7628 | case $CONFIG_FILES in |
---|
7629 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
7630 | *) set x $CONFIG_FILES ;; |
---|
7631 | esac |
---|
7632 | shift |
---|
7633 | for mf |
---|
7634 | do |
---|
7635 | # Strip MF so we end up with the name of the file. |
---|
7636 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7637 | # Check whether this is an Automake generated Makefile or not. |
---|
7638 | # We used to match only the files named `Makefile.in', but |
---|
7639 | # some people rename them; so instead we look at the file content. |
---|
7640 | # Grep'ing the first line is not enough: some people post-process |
---|
7641 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7642 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
7643 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
7644 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
7645 | dirpart=`$as_dirname -- "$mf" || |
---|
7646 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7647 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7648 | X"$mf" : 'X\(//\)$' \| \ |
---|
7649 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
7650 | $as_echo X"$mf" | |
---|
7651 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7652 | s//\1/ |
---|
7653 | q |
---|
7654 | } |
---|
7655 | /^X\(\/\/\)[^/].*/{ |
---|
7656 | s//\1/ |
---|
7657 | q |
---|
7658 | } |
---|
7659 | /^X\(\/\/\)$/{ |
---|
7660 | s//\1/ |
---|
7661 | q |
---|
7662 | } |
---|
7663 | /^X\(\/\).*/{ |
---|
7664 | s//\1/ |
---|
7665 | q |
---|
7666 | } |
---|
7667 | s/.*/./; q'` |
---|
7668 | else |
---|
7669 | continue |
---|
7670 | fi |
---|
7671 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
7672 | # from the Makefile without running `make'. |
---|
7673 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
7674 | test -z "$DEPDIR" && continue |
---|
7675 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
7676 | test -z "am__include" && continue |
---|
7677 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
7678 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7679 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
7680 | # Find all dependency output files, they are included files with |
---|
7681 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
7682 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
7683 | # expansion. |
---|
7684 | for file in `sed -n " |
---|
7685 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
7686 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7687 | # Make sure the directory exists. |
---|
7688 | test -f "$dirpart/$file" && continue |
---|
7689 | fdir=`$as_dirname -- "$file" || |
---|
7690 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7691 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7692 | X"$file" : 'X\(//\)$' \| \ |
---|
7693 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7694 | $as_echo X"$file" | |
---|
7695 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7696 | s//\1/ |
---|
7697 | q |
---|
7698 | } |
---|
7699 | /^X\(\/\/\)[^/].*/{ |
---|
7700 | s//\1/ |
---|
7701 | q |
---|
7702 | } |
---|
7703 | /^X\(\/\/\)$/{ |
---|
7704 | s//\1/ |
---|
7705 | q |
---|
7706 | } |
---|
7707 | /^X\(\/\).*/{ |
---|
7708 | s//\1/ |
---|
7709 | q |
---|
7710 | } |
---|
7711 | s/.*/./; q'` |
---|
7712 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
7713 | # echo "creating $dirpart/$file" |
---|
7714 | echo '# dummy' > "$dirpart/$file" |
---|
7715 | done |
---|
7716 | done |
---|
7717 | } |
---|
7718 | ;; |
---|
7719 | |
---|
7720 | esac |
---|
7721 | done # for ac_tag |
---|
7722 | |
---|
7723 | |
---|
7724 | as_fn_exit 0 |
---|
7725 | _ACEOF |
---|
7726 | ac_clean_files=$ac_clean_files_save |
---|
7727 | |
---|
7728 | test $ac_write_fail = 0 || |
---|
7729 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
7730 | |
---|
7731 | |
---|
7732 | # configure is writing to config.log, and then calls config.status. |
---|
7733 | # config.status does its own redirection, appending to config.log. |
---|
7734 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7735 | # by configure, so config.status won't be able to write to it; its |
---|
7736 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7737 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7738 | # appended to by config.status. When coming back to configure, we |
---|
7739 | # need to make the FD available again. |
---|
7740 | if test "$no_create" != yes; then |
---|
7741 | ac_cs_success=: |
---|
7742 | ac_config_status_args= |
---|
7743 | test "$silent" = yes && |
---|
7744 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7745 | exec 5>/dev/null |
---|
7746 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7747 | exec 5>>config.log |
---|
7748 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7749 | # would make configure fail if this is the last instruction. |
---|
7750 | $ac_cs_success || as_fn_exit 1 |
---|
7751 | fi |
---|
7752 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7754 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7755 | fi |
---|
7756 | |
---|
7757 | |
---|
7758 | if test -z "$BUILD_RELEASE_TRUE"; then : |
---|
7759 | if test -z "$BUILD_DEBUG_TRUE"; then : |
---|
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release & debug" >&5 |
---|
7761 | $as_echo "$as_me: Building libcfa for target: release & debug" >&6;} |
---|
7762 | else |
---|
7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release" >&5 |
---|
7764 | $as_echo "$as_me: Building libcfa for target: release" >&6;} |
---|
7765 | fi |
---|
7766 | else |
---|
7767 | if test -z "$BUILD_DEBUG_TRUE"; then : |
---|
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: debug" >&5 |
---|
7769 | $as_echo "$as_me: Building libcfa for target: debug" >&6;} |
---|
7770 | else |
---|
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running cfa without libcfa" >&5 |
---|
7772 | $as_echo "$as_me: Running cfa without libcfa" >&6;} |
---|
7773 | fi |
---|
7774 | fi |
---|
7775 | |
---|
7776 | # Final text |
---|
7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5 |
---|
7778 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; } |
---|