1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.69 for cfa-cc 1.0.0.0. |
---|
4 | # |
---|
5 | # Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
---|
9 | # |
---|
10 | # |
---|
11 | # This configure script is free software; the Free Software Foundation |
---|
12 | # gives unlimited permission to copy, distribute and modify it. |
---|
13 | ## -------------------- ## |
---|
14 | ## M4sh Initialization. ## |
---|
15 | ## -------------------- ## |
---|
16 | |
---|
17 | # Be more Bourne compatible |
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | as_nl=' |
---|
37 | ' |
---|
38 | export as_nl |
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
44 | # but without wasting forks for bash or zsh. |
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
47 | as_echo='print -r --' |
---|
48 | as_echo_n='print -rn --' |
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
50 | as_echo='printf %s\n' |
---|
51 | as_echo_n='printf %s' |
---|
52 | else |
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
55 | as_echo_n='/usr/ucb/echo -n' |
---|
56 | else |
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
58 | as_echo_n_body='eval |
---|
59 | arg=$1; |
---|
60 | case $arg in #( |
---|
61 | *"$as_nl"*) |
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
64 | esac; |
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
66 | ' |
---|
67 | export as_echo_n_body |
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
69 | fi |
---|
70 | export as_echo_body |
---|
71 | as_echo='sh -c $as_echo_body as_echo' |
---|
72 | fi |
---|
73 | |
---|
74 | # The user is always right. |
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
76 | PATH_SEPARATOR=: |
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
79 | PATH_SEPARATOR=';' |
---|
80 | } |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | # IFS |
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
86 | # there to prevent editors from complaining about space-tab. |
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
88 | # splitting by setting IFS to empty value.) |
---|
89 | IFS=" "" $as_nl" |
---|
90 | |
---|
91 | # Find who we are. Look in the path if we contain no directory separator. |
---|
92 | as_myself= |
---|
93 | case $0 in #(( |
---|
94 | *[\\/]* ) as_myself=$0 ;; |
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
96 | for as_dir in $PATH |
---|
97 | do |
---|
98 | IFS=$as_save_IFS |
---|
99 | test -z "$as_dir" && as_dir=. |
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
101 | done |
---|
102 | IFS=$as_save_IFS |
---|
103 | |
---|
104 | ;; |
---|
105 | esac |
---|
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
107 | # in which case we are not to be found in the path. |
---|
108 | if test "x$as_myself" = x; then |
---|
109 | as_myself=$0 |
---|
110 | fi |
---|
111 | if test ! -f "$as_myself"; then |
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
113 | exit 1 |
---|
114 | fi |
---|
115 | |
---|
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
118 | # suppresses any "Segmentation fault" message there. '((' could |
---|
119 | # trigger a bug in pdksh 5.2.14. |
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
121 | do eval test x\${$as_var+set} = xset \ |
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
123 | done |
---|
124 | PS1='$ ' |
---|
125 | PS2='> ' |
---|
126 | PS4='+ ' |
---|
127 | |
---|
128 | # NLS nuisances. |
---|
129 | LC_ALL=C |
---|
130 | export LC_ALL |
---|
131 | LANGUAGE=C |
---|
132 | export LANGUAGE |
---|
133 | |
---|
134 | # CDPATH. |
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
136 | |
---|
137 | # Use a proper internal environment variable to ensure we don't fall |
---|
138 | # into an infinite loop, continuously re-executing ourselves. |
---|
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
140 | _as_can_reexec=no; export _as_can_reexec; |
---|
141 | # We cannot yet assume a decent shell, so we have to provide a |
---|
142 | # neutralization value for shells without unset; and this also |
---|
143 | # works around shells that cannot unset nonexistent variables. |
---|
144 | # Preserve -v and -x to the replacement shell. |
---|
145 | BASH_ENV=/dev/null |
---|
146 | ENV=/dev/null |
---|
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
148 | case $- in # (((( |
---|
149 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
150 | *v* ) as_opts=-v ;; |
---|
151 | *x* ) as_opts=-x ;; |
---|
152 | * ) as_opts= ;; |
---|
153 | esac |
---|
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
155 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
156 | # out after a failed `exec'. |
---|
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
158 | as_fn_exit 255 |
---|
159 | fi |
---|
160 | # We don't want this to propagate to other subprocesses. |
---|
161 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
162 | if test "x$CONFIG_SHELL" = x; then |
---|
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
164 | emulate sh |
---|
165 | NULLCMD=: |
---|
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
167 | # is contrary to our usage. Disable this feature. |
---|
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
169 | setopt NO_GLOB_SUBST |
---|
170 | else |
---|
171 | case \`(set -o) 2>/dev/null\` in #( |
---|
172 | *posix*) : |
---|
173 | set -o posix ;; #( |
---|
174 | *) : |
---|
175 | ;; |
---|
176 | esac |
---|
177 | fi |
---|
178 | " |
---|
179 | as_required="as_fn_return () { (exit \$1); } |
---|
180 | as_fn_success () { as_fn_return 0; } |
---|
181 | as_fn_failure () { as_fn_return 1; } |
---|
182 | as_fn_ret_success () { return 0; } |
---|
183 | as_fn_ret_failure () { return 1; } |
---|
184 | |
---|
185 | exitcode=0 |
---|
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
191 | |
---|
192 | else |
---|
193 | exitcode=1; echo positional parameters were not saved. |
---|
194 | fi |
---|
195 | test x\$exitcode = x0 || exit 1 |
---|
196 | test -x / || exit 1" |
---|
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
201 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
202 | if (eval "$as_required") 2>/dev/null; then : |
---|
203 | as_have_required=yes |
---|
204 | else |
---|
205 | as_have_required=no |
---|
206 | fi |
---|
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
208 | |
---|
209 | else |
---|
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
211 | as_found=false |
---|
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
213 | do |
---|
214 | IFS=$as_save_IFS |
---|
215 | test -z "$as_dir" && as_dir=. |
---|
216 | as_found=: |
---|
217 | case $as_dir in #( |
---|
218 | /*) |
---|
219 | for as_base in sh bash ksh sh5; do |
---|
220 | # Try only shells that exist, to save several forks. |
---|
221 | as_shell=$as_dir/$as_base |
---|
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
224 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
226 | break 2 |
---|
227 | fi |
---|
228 | fi |
---|
229 | done;; |
---|
230 | esac |
---|
231 | as_found=false |
---|
232 | done |
---|
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
235 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
236 | fi; } |
---|
237 | IFS=$as_save_IFS |
---|
238 | |
---|
239 | |
---|
240 | if test "x$CONFIG_SHELL" != x; then : |
---|
241 | export CONFIG_SHELL |
---|
242 | # We cannot yet assume a decent shell, so we have to provide a |
---|
243 | # neutralization value for shells without unset; and this also |
---|
244 | # works around shells that cannot unset nonexistent variables. |
---|
245 | # Preserve -v and -x to the replacement shell. |
---|
246 | BASH_ENV=/dev/null |
---|
247 | ENV=/dev/null |
---|
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
249 | case $- in # (((( |
---|
250 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
251 | *v* ) as_opts=-v ;; |
---|
252 | *x* ) as_opts=-x ;; |
---|
253 | * ) as_opts= ;; |
---|
254 | esac |
---|
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
256 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
257 | # out after a failed `exec'. |
---|
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
259 | exit 255 |
---|
260 | fi |
---|
261 | |
---|
262 | if test x$as_have_required = xno; then : |
---|
263 | $as_echo "$0: This script requires a shell more modern than all" |
---|
264 | $as_echo "$0: the shells that I found on your system." |
---|
265 | if test x${ZSH_VERSION+set} = xset ; then |
---|
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
268 | else |
---|
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
270 | $0: cforall@plg.uwaterloo.ca about your system, including |
---|
271 | $0: any error possibly output before this message. Then |
---|
272 | $0: install a modern shell, or manually run the script |
---|
273 | $0: under such a shell if you do have one." |
---|
274 | fi |
---|
275 | exit 1 |
---|
276 | fi |
---|
277 | fi |
---|
278 | fi |
---|
279 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
280 | export SHELL |
---|
281 | # Unset more variables known to interfere with behavior of common tools. |
---|
282 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
283 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
284 | |
---|
285 | ## --------------------- ## |
---|
286 | ## M4sh Shell Functions. ## |
---|
287 | ## --------------------- ## |
---|
288 | # as_fn_unset VAR |
---|
289 | # --------------- |
---|
290 | # Portably unset VAR. |
---|
291 | as_fn_unset () |
---|
292 | { |
---|
293 | { eval $1=; unset $1;} |
---|
294 | } |
---|
295 | as_unset=as_fn_unset |
---|
296 | |
---|
297 | # as_fn_set_status STATUS |
---|
298 | # ----------------------- |
---|
299 | # Set $? to STATUS, without forking. |
---|
300 | as_fn_set_status () |
---|
301 | { |
---|
302 | return $1 |
---|
303 | } # as_fn_set_status |
---|
304 | |
---|
305 | # as_fn_exit STATUS |
---|
306 | # ----------------- |
---|
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
308 | as_fn_exit () |
---|
309 | { |
---|
310 | set +e |
---|
311 | as_fn_set_status $1 |
---|
312 | exit $1 |
---|
313 | } # as_fn_exit |
---|
314 | |
---|
315 | # as_fn_mkdir_p |
---|
316 | # ------------- |
---|
317 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
318 | as_fn_mkdir_p () |
---|
319 | { |
---|
320 | |
---|
321 | case $as_dir in #( |
---|
322 | -*) as_dir=./$as_dir;; |
---|
323 | esac |
---|
324 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
325 | as_dirs= |
---|
326 | while :; do |
---|
327 | case $as_dir in #( |
---|
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
329 | *) as_qdir=$as_dir;; |
---|
330 | esac |
---|
331 | as_dirs="'$as_qdir' $as_dirs" |
---|
332 | as_dir=`$as_dirname -- "$as_dir" || |
---|
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
335 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
337 | $as_echo X"$as_dir" | |
---|
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
339 | s//\1/ |
---|
340 | q |
---|
341 | } |
---|
342 | /^X\(\/\/\)[^/].*/{ |
---|
343 | s//\1/ |
---|
344 | q |
---|
345 | } |
---|
346 | /^X\(\/\/\)$/{ |
---|
347 | s//\1/ |
---|
348 | q |
---|
349 | } |
---|
350 | /^X\(\/\).*/{ |
---|
351 | s//\1/ |
---|
352 | q |
---|
353 | } |
---|
354 | s/.*/./; q'` |
---|
355 | test -d "$as_dir" && break |
---|
356 | done |
---|
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
359 | |
---|
360 | |
---|
361 | } # as_fn_mkdir_p |
---|
362 | |
---|
363 | # as_fn_executable_p FILE |
---|
364 | # ----------------------- |
---|
365 | # Test if FILE is an executable regular file. |
---|
366 | as_fn_executable_p () |
---|
367 | { |
---|
368 | test -f "$1" && test -x "$1" |
---|
369 | } # as_fn_executable_p |
---|
370 | # as_fn_append VAR VALUE |
---|
371 | # ---------------------- |
---|
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
373 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
374 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
375 | # implementations. |
---|
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
377 | eval 'as_fn_append () |
---|
378 | { |
---|
379 | eval $1+=\$2 |
---|
380 | }' |
---|
381 | else |
---|
382 | as_fn_append () |
---|
383 | { |
---|
384 | eval $1=\$$1\$2 |
---|
385 | } |
---|
386 | fi # as_fn_append |
---|
387 | |
---|
388 | # as_fn_arith ARG... |
---|
389 | # ------------------ |
---|
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
392 | # must be portable across $(()) and expr. |
---|
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
394 | eval 'as_fn_arith () |
---|
395 | { |
---|
396 | as_val=$(( $* )) |
---|
397 | }' |
---|
398 | else |
---|
399 | as_fn_arith () |
---|
400 | { |
---|
401 | as_val=`expr "$@" || test $? -eq 1` |
---|
402 | } |
---|
403 | fi # as_fn_arith |
---|
404 | |
---|
405 | |
---|
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
407 | # ---------------------------------------- |
---|
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
410 | # script with STATUS, using 1 if that was 0. |
---|
411 | as_fn_error () |
---|
412 | { |
---|
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
414 | if test "$4"; then |
---|
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
417 | fi |
---|
418 | $as_echo "$as_me: error: $2" >&2 |
---|
419 | as_fn_exit $as_status |
---|
420 | } # as_fn_error |
---|
421 | |
---|
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
424 | as_expr=expr |
---|
425 | else |
---|
426 | as_expr=false |
---|
427 | fi |
---|
428 | |
---|
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
430 | as_basename=basename |
---|
431 | else |
---|
432 | as_basename=false |
---|
433 | fi |
---|
434 | |
---|
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
436 | as_dirname=dirname |
---|
437 | else |
---|
438 | as_dirname=false |
---|
439 | fi |
---|
440 | |
---|
441 | as_me=`$as_basename -- "$0" || |
---|
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
443 | X"$0" : 'X\(//\)$' \| \ |
---|
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
445 | $as_echo X/"$0" | |
---|
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
447 | s//\1/ |
---|
448 | q |
---|
449 | } |
---|
450 | /^X\/\(\/\/\)$/{ |
---|
451 | s//\1/ |
---|
452 | q |
---|
453 | } |
---|
454 | /^X\/\(\/\).*/{ |
---|
455 | s//\1/ |
---|
456 | q |
---|
457 | } |
---|
458 | s/.*/./; q'` |
---|
459 | |
---|
460 | # Avoid depending upon Character Ranges. |
---|
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
464 | as_cr_digits='0123456789' |
---|
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
466 | |
---|
467 | |
---|
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
473 | sed -n ' |
---|
474 | p |
---|
475 | /[$]LINENO/= |
---|
476 | ' <$as_myself | |
---|
477 | sed ' |
---|
478 | s/[$]LINENO.*/&-/ |
---|
479 | t lineno |
---|
480 | b |
---|
481 | :lineno |
---|
482 | N |
---|
483 | :loop |
---|
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
485 | t loop |
---|
486 | s/-\n.*// |
---|
487 | ' >$as_me.lineno && |
---|
488 | chmod +x "$as_me.lineno" || |
---|
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
490 | |
---|
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
---|
492 | # already done that, so ensure we don't try to do so again and fall |
---|
493 | # in an infinite loop. This has already happened in practice. |
---|
494 | _as_can_reexec=no; export _as_can_reexec |
---|
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
496 | # (the dirname of $[0] is not the place where we might find the |
---|
497 | # original and so on. Autoconf is especially sensitive to this). |
---|
498 | . "./$as_me.lineno" |
---|
499 | # Exit status is that of the last command. |
---|
500 | exit |
---|
501 | } |
---|
502 | |
---|
503 | ECHO_C= ECHO_N= ECHO_T= |
---|
504 | case `echo -n x` in #((((( |
---|
505 | -n*) |
---|
506 | case `echo 'xy\c'` in |
---|
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
508 | xy) ECHO_C='\c';; |
---|
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
510 | ECHO_T=' ';; |
---|
511 | esac;; |
---|
512 | *) |
---|
513 | ECHO_N='-n';; |
---|
514 | esac |
---|
515 | |
---|
516 | rm -f conf$$ conf$$.exe conf$$.file |
---|
517 | if test -d conf$$.dir; then |
---|
518 | rm -f conf$$.dir/conf$$.file |
---|
519 | else |
---|
520 | rm -f conf$$.dir |
---|
521 | mkdir conf$$.dir 2>/dev/null |
---|
522 | fi |
---|
523 | if (echo >conf$$.file) 2>/dev/null; then |
---|
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
525 | as_ln_s='ln -s' |
---|
526 | # ... but there are two gotchas: |
---|
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
529 | # In both cases, we have to default to `cp -pR'. |
---|
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
531 | as_ln_s='cp -pR' |
---|
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
533 | as_ln_s=ln |
---|
534 | else |
---|
535 | as_ln_s='cp -pR' |
---|
536 | fi |
---|
537 | else |
---|
538 | as_ln_s='cp -pR' |
---|
539 | fi |
---|
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
541 | rmdir conf$$.dir 2>/dev/null |
---|
542 | |
---|
543 | if mkdir -p . 2>/dev/null; then |
---|
544 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
545 | else |
---|
546 | test -d ./-p && rmdir ./-p |
---|
547 | as_mkdir_p=false |
---|
548 | fi |
---|
549 | |
---|
550 | as_test_x='test -x' |
---|
551 | as_executable_p=as_fn_executable_p |
---|
552 | |
---|
553 | # Sed expression to map a string onto a valid CPP name. |
---|
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
555 | |
---|
556 | # Sed expression to map a string onto a valid variable name. |
---|
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
558 | |
---|
559 | |
---|
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
561 | exec 6>&1 |
---|
562 | |
---|
563 | # Name of the host. |
---|
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
565 | # so uname gets run too. |
---|
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
567 | |
---|
568 | # |
---|
569 | # Initializations. |
---|
570 | # |
---|
571 | ac_default_prefix=/usr/local |
---|
572 | ac_clean_files= |
---|
573 | ac_config_libobj_dir=. |
---|
574 | LIBOBJS= |
---|
575 | cross_compiling=no |
---|
576 | subdirs= |
---|
577 | MFLAGS= |
---|
578 | MAKEFLAGS= |
---|
579 | |
---|
580 | # Identity of this package. |
---|
581 | PACKAGE_NAME='cfa-cc' |
---|
582 | PACKAGE_TARNAME='cfa-cc' |
---|
583 | PACKAGE_VERSION='1.0.0.0' |
---|
584 | PACKAGE_STRING='cfa-cc 1.0.0.0' |
---|
585 | PACKAGE_BUGREPORT='cforall@plg.uwaterloo.ca' |
---|
586 | PACKAGE_URL='' |
---|
587 | |
---|
588 | # Factoring default headers for most tests. |
---|
589 | ac_includes_default="\ |
---|
590 | #include <stdio.h> |
---|
591 | #ifdef HAVE_SYS_TYPES_H |
---|
592 | # include <sys/types.h> |
---|
593 | #endif |
---|
594 | #ifdef HAVE_SYS_STAT_H |
---|
595 | # include <sys/stat.h> |
---|
596 | #endif |
---|
597 | #ifdef STDC_HEADERS |
---|
598 | # include <stdlib.h> |
---|
599 | # include <stddef.h> |
---|
600 | #else |
---|
601 | # ifdef HAVE_STDLIB_H |
---|
602 | # include <stdlib.h> |
---|
603 | # endif |
---|
604 | #endif |
---|
605 | #ifdef HAVE_STRING_H |
---|
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
607 | # include <memory.h> |
---|
608 | # endif |
---|
609 | # include <string.h> |
---|
610 | #endif |
---|
611 | #ifdef HAVE_STRINGS_H |
---|
612 | # include <strings.h> |
---|
613 | #endif |
---|
614 | #ifdef HAVE_INTTYPES_H |
---|
615 | # include <inttypes.h> |
---|
616 | #endif |
---|
617 | #ifdef HAVE_STDINT_H |
---|
618 | # include <stdint.h> |
---|
619 | #endif |
---|
620 | #ifdef HAVE_UNISTD_H |
---|
621 | # include <unistd.h> |
---|
622 | #endif" |
---|
623 | |
---|
624 | ac_subst_vars='am__EXEEXT_FALSE |
---|
625 | am__EXEEXT_TRUE |
---|
626 | LTLIBOBJS |
---|
627 | LIBOBJS |
---|
628 | ALLOCA |
---|
629 | EGREP |
---|
630 | GREP |
---|
631 | CPP |
---|
632 | RANLIB |
---|
633 | LEXLIB |
---|
634 | LEX_OUTPUT_ROOT |
---|
635 | LEX |
---|
636 | YFLAGS |
---|
637 | YACC |
---|
638 | am__fastdepCCAS_FALSE |
---|
639 | am__fastdepCCAS_TRUE |
---|
640 | CCASDEPMODE |
---|
641 | CCASFLAGS |
---|
642 | CCAS |
---|
643 | am__fastdepCC_FALSE |
---|
644 | am__fastdepCC_TRUE |
---|
645 | CCDEPMODE |
---|
646 | ac_ct_CC |
---|
647 | CFLAGS |
---|
648 | CC |
---|
649 | am__fastdepCXX_FALSE |
---|
650 | am__fastdepCXX_TRUE |
---|
651 | CXXDEPMODE |
---|
652 | am__nodep |
---|
653 | AMDEPBACKSLASH |
---|
654 | AMDEP_FALSE |
---|
655 | AMDEP_TRUE |
---|
656 | am__quote |
---|
657 | am__include |
---|
658 | DEPDIR |
---|
659 | OBJEXT |
---|
660 | EXEEXT |
---|
661 | ac_ct_CXX |
---|
662 | CPPFLAGS |
---|
663 | LDFLAGS |
---|
664 | CXXFLAGS |
---|
665 | CXX |
---|
666 | CFA_FLAGS |
---|
667 | MACHINE_TYPE |
---|
668 | host_os |
---|
669 | host_vendor |
---|
670 | host_cpu |
---|
671 | host |
---|
672 | build_os |
---|
673 | build_vendor |
---|
674 | build_cpu |
---|
675 | build |
---|
676 | BUILD_IN_TREE_FLAGS |
---|
677 | BUILD_IN_TREE_FLAGS_NOLIB |
---|
678 | CFACPP |
---|
679 | CFACC |
---|
680 | DRIVER_DIR |
---|
681 | CFA_LIBDIR |
---|
682 | CFA_BINDIR |
---|
683 | CFA_INCDIR |
---|
684 | CFA_PREFIX |
---|
685 | DOendif |
---|
686 | DOifskipcompile |
---|
687 | BUILD_CONCURRENCY_FALSE |
---|
688 | BUILD_CONCURRENCY_TRUE |
---|
689 | BUILD_NO_LIB_FALSE |
---|
690 | BUILD_NO_LIB_TRUE |
---|
691 | BUILD_DEBUG_FALSE |
---|
692 | BUILD_DEBUG_TRUE |
---|
693 | BUILD_RELEASE_FALSE |
---|
694 | BUILD_RELEASE_TRUE |
---|
695 | CFA_BACKEND_CC |
---|
696 | BACKEND_CC |
---|
697 | CFA_NAME |
---|
698 | am__untar |
---|
699 | am__tar |
---|
700 | AMTAR |
---|
701 | am__leading_dot |
---|
702 | SET_MAKE |
---|
703 | AWK |
---|
704 | mkdir_p |
---|
705 | MKDIR_P |
---|
706 | INSTALL_STRIP_PROGRAM |
---|
707 | STRIP |
---|
708 | install_sh |
---|
709 | MAKEINFO |
---|
710 | AUTOHEADER |
---|
711 | AUTOMAKE |
---|
712 | AUTOCONF |
---|
713 | ACLOCAL |
---|
714 | VERSION |
---|
715 | PACKAGE |
---|
716 | CYGPATH_W |
---|
717 | am__isrc |
---|
718 | INSTALL_DATA |
---|
719 | INSTALL_SCRIPT |
---|
720 | INSTALL_PROGRAM |
---|
721 | AM_BACKSLASH |
---|
722 | AM_DEFAULT_VERBOSITY |
---|
723 | AM_DEFAULT_V |
---|
724 | AM_V |
---|
725 | target_alias |
---|
726 | host_alias |
---|
727 | build_alias |
---|
728 | LIBS |
---|
729 | ECHO_T |
---|
730 | ECHO_N |
---|
731 | ECHO_C |
---|
732 | DEFS |
---|
733 | mandir |
---|
734 | localedir |
---|
735 | libdir |
---|
736 | psdir |
---|
737 | pdfdir |
---|
738 | dvidir |
---|
739 | htmldir |
---|
740 | infodir |
---|
741 | docdir |
---|
742 | oldincludedir |
---|
743 | includedir |
---|
744 | runstatedir |
---|
745 | localstatedir |
---|
746 | sharedstatedir |
---|
747 | sysconfdir |
---|
748 | datadir |
---|
749 | datarootdir |
---|
750 | libexecdir |
---|
751 | sbindir |
---|
752 | bindir |
---|
753 | program_transform_name |
---|
754 | prefix |
---|
755 | exec_prefix |
---|
756 | PACKAGE_URL |
---|
757 | PACKAGE_BUGREPORT |
---|
758 | PACKAGE_STRING |
---|
759 | PACKAGE_VERSION |
---|
760 | PACKAGE_TARNAME |
---|
761 | PACKAGE_NAME |
---|
762 | PATH_SEPARATOR |
---|
763 | SHELL' |
---|
764 | ac_subst_files='' |
---|
765 | ac_user_opts=' |
---|
766 | enable_option_checking |
---|
767 | enable_silent_rules |
---|
768 | with_cfa_name |
---|
769 | with_backend_compiler |
---|
770 | enable_target_release |
---|
771 | enable_target_debug |
---|
772 | enable_threading |
---|
773 | enable_dependency_tracking |
---|
774 | ' |
---|
775 | ac_precious_vars='build_alias |
---|
776 | host_alias |
---|
777 | target_alias |
---|
778 | CXX |
---|
779 | CXXFLAGS |
---|
780 | LDFLAGS |
---|
781 | LIBS |
---|
782 | CPPFLAGS |
---|
783 | CCC |
---|
784 | CC |
---|
785 | CFLAGS |
---|
786 | CCAS |
---|
787 | CCASFLAGS |
---|
788 | YACC |
---|
789 | YFLAGS |
---|
790 | CPP' |
---|
791 | |
---|
792 | |
---|
793 | # Initialize some variables set by options. |
---|
794 | ac_init_help= |
---|
795 | ac_init_version=false |
---|
796 | ac_unrecognized_opts= |
---|
797 | ac_unrecognized_sep= |
---|
798 | # The variables have the same names as the options, with |
---|
799 | # dashes changed to underlines. |
---|
800 | cache_file=/dev/null |
---|
801 | exec_prefix=NONE |
---|
802 | no_create= |
---|
803 | no_recursion= |
---|
804 | prefix=NONE |
---|
805 | program_prefix=NONE |
---|
806 | program_suffix=NONE |
---|
807 | program_transform_name=s,x,x, |
---|
808 | silent= |
---|
809 | site= |
---|
810 | srcdir= |
---|
811 | verbose= |
---|
812 | x_includes=NONE |
---|
813 | x_libraries=NONE |
---|
814 | |
---|
815 | # Installation directory options. |
---|
816 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
817 | # and all the variables that are supposed to be based on exec_prefix |
---|
818 | # by default will actually change. |
---|
819 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
820 | # (The list follows the same order as the GNU Coding Standards.) |
---|
821 | bindir='${exec_prefix}/bin' |
---|
822 | sbindir='${exec_prefix}/sbin' |
---|
823 | libexecdir='${exec_prefix}/libexec' |
---|
824 | datarootdir='${prefix}/share' |
---|
825 | datadir='${datarootdir}' |
---|
826 | sysconfdir='${prefix}/etc' |
---|
827 | sharedstatedir='${prefix}/com' |
---|
828 | localstatedir='${prefix}/var' |
---|
829 | runstatedir='${localstatedir}/run' |
---|
830 | includedir='${prefix}/include' |
---|
831 | oldincludedir='/usr/include' |
---|
832 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
833 | infodir='${datarootdir}/info' |
---|
834 | htmldir='${docdir}' |
---|
835 | dvidir='${docdir}' |
---|
836 | pdfdir='${docdir}' |
---|
837 | psdir='${docdir}' |
---|
838 | libdir='${exec_prefix}/lib' |
---|
839 | localedir='${datarootdir}/locale' |
---|
840 | mandir='${datarootdir}/man' |
---|
841 | |
---|
842 | ac_prev= |
---|
843 | ac_dashdash= |
---|
844 | for ac_option |
---|
845 | do |
---|
846 | # If the previous option needs an argument, assign it. |
---|
847 | if test -n "$ac_prev"; then |
---|
848 | eval $ac_prev=\$ac_option |
---|
849 | ac_prev= |
---|
850 | continue |
---|
851 | fi |
---|
852 | |
---|
853 | case $ac_option in |
---|
854 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
855 | *=) ac_optarg= ;; |
---|
856 | *) ac_optarg=yes ;; |
---|
857 | esac |
---|
858 | |
---|
859 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
860 | |
---|
861 | case $ac_dashdash$ac_option in |
---|
862 | --) |
---|
863 | ac_dashdash=yes ;; |
---|
864 | |
---|
865 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
866 | ac_prev=bindir ;; |
---|
867 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
868 | bindir=$ac_optarg ;; |
---|
869 | |
---|
870 | -build | --build | --buil | --bui | --bu) |
---|
871 | ac_prev=build_alias ;; |
---|
872 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
873 | build_alias=$ac_optarg ;; |
---|
874 | |
---|
875 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
876 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
877 | ac_prev=cache_file ;; |
---|
878 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
879 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
880 | cache_file=$ac_optarg ;; |
---|
881 | |
---|
882 | --config-cache | -C) |
---|
883 | cache_file=config.cache ;; |
---|
884 | |
---|
885 | -datadir | --datadir | --datadi | --datad) |
---|
886 | ac_prev=datadir ;; |
---|
887 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
888 | datadir=$ac_optarg ;; |
---|
889 | |
---|
890 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
891 | | --dataroo | --dataro | --datar) |
---|
892 | ac_prev=datarootdir ;; |
---|
893 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
894 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
895 | datarootdir=$ac_optarg ;; |
---|
896 | |
---|
897 | -disable-* | --disable-*) |
---|
898 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
899 | # Reject names that are not valid shell variable names. |
---|
900 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
901 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
902 | ac_useropt_orig=$ac_useropt |
---|
903 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
904 | case $ac_user_opts in |
---|
905 | *" |
---|
906 | "enable_$ac_useropt" |
---|
907 | "*) ;; |
---|
908 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
909 | ac_unrecognized_sep=', ';; |
---|
910 | esac |
---|
911 | eval enable_$ac_useropt=no ;; |
---|
912 | |
---|
913 | -docdir | --docdir | --docdi | --doc | --do) |
---|
914 | ac_prev=docdir ;; |
---|
915 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
916 | docdir=$ac_optarg ;; |
---|
917 | |
---|
918 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
919 | ac_prev=dvidir ;; |
---|
920 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
921 | dvidir=$ac_optarg ;; |
---|
922 | |
---|
923 | -enable-* | --enable-*) |
---|
924 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
925 | # Reject names that are not valid shell variable names. |
---|
926 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
927 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
928 | ac_useropt_orig=$ac_useropt |
---|
929 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
930 | case $ac_user_opts in |
---|
931 | *" |
---|
932 | "enable_$ac_useropt" |
---|
933 | "*) ;; |
---|
934 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
935 | ac_unrecognized_sep=', ';; |
---|
936 | esac |
---|
937 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
938 | |
---|
939 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
940 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
941 | | --exec | --exe | --ex) |
---|
942 | ac_prev=exec_prefix ;; |
---|
943 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
944 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
945 | | --exec=* | --exe=* | --ex=*) |
---|
946 | exec_prefix=$ac_optarg ;; |
---|
947 | |
---|
948 | -gas | --gas | --ga | --g) |
---|
949 | # Obsolete; use --with-gas. |
---|
950 | with_gas=yes ;; |
---|
951 | |
---|
952 | -help | --help | --hel | --he | -h) |
---|
953 | ac_init_help=long ;; |
---|
954 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
955 | ac_init_help=recursive ;; |
---|
956 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
957 | ac_init_help=short ;; |
---|
958 | |
---|
959 | -host | --host | --hos | --ho) |
---|
960 | ac_prev=host_alias ;; |
---|
961 | -host=* | --host=* | --hos=* | --ho=*) |
---|
962 | host_alias=$ac_optarg ;; |
---|
963 | |
---|
964 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
965 | ac_prev=htmldir ;; |
---|
966 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
967 | | --ht=*) |
---|
968 | htmldir=$ac_optarg ;; |
---|
969 | |
---|
970 | -includedir | --includedir | --includedi | --included | --include \ |
---|
971 | | --includ | --inclu | --incl | --inc) |
---|
972 | ac_prev=includedir ;; |
---|
973 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
974 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
975 | includedir=$ac_optarg ;; |
---|
976 | |
---|
977 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
978 | ac_prev=infodir ;; |
---|
979 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
980 | infodir=$ac_optarg ;; |
---|
981 | |
---|
982 | -libdir | --libdir | --libdi | --libd) |
---|
983 | ac_prev=libdir ;; |
---|
984 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
985 | libdir=$ac_optarg ;; |
---|
986 | |
---|
987 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
988 | | --libexe | --libex | --libe) |
---|
989 | ac_prev=libexecdir ;; |
---|
990 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
991 | | --libexe=* | --libex=* | --libe=*) |
---|
992 | libexecdir=$ac_optarg ;; |
---|
993 | |
---|
994 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
995 | ac_prev=localedir ;; |
---|
996 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
997 | localedir=$ac_optarg ;; |
---|
998 | |
---|
999 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
1000 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
1001 | ac_prev=localstatedir ;; |
---|
1002 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
1003 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
1004 | localstatedir=$ac_optarg ;; |
---|
1005 | |
---|
1006 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
1007 | ac_prev=mandir ;; |
---|
1008 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1009 | mandir=$ac_optarg ;; |
---|
1010 | |
---|
1011 | -nfp | --nfp | --nf) |
---|
1012 | # Obsolete; use --without-fp. |
---|
1013 | with_fp=no ;; |
---|
1014 | |
---|
1015 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1016 | | --no-cr | --no-c | -n) |
---|
1017 | no_create=yes ;; |
---|
1018 | |
---|
1019 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1020 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1021 | no_recursion=yes ;; |
---|
1022 | |
---|
1023 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1024 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1025 | | --oldin | --oldi | --old | --ol | --o) |
---|
1026 | ac_prev=oldincludedir ;; |
---|
1027 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1028 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1029 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1030 | oldincludedir=$ac_optarg ;; |
---|
1031 | |
---|
1032 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1033 | ac_prev=prefix ;; |
---|
1034 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1035 | prefix=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1038 | | --program-pre | --program-pr | --program-p) |
---|
1039 | ac_prev=program_prefix ;; |
---|
1040 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1041 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1042 | program_prefix=$ac_optarg ;; |
---|
1043 | |
---|
1044 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1045 | | --program-suf | --program-su | --program-s) |
---|
1046 | ac_prev=program_suffix ;; |
---|
1047 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1048 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1049 | program_suffix=$ac_optarg ;; |
---|
1050 | |
---|
1051 | -program-transform-name | --program-transform-name \ |
---|
1052 | | --program-transform-nam | --program-transform-na \ |
---|
1053 | | --program-transform-n | --program-transform- \ |
---|
1054 | | --program-transform | --program-transfor \ |
---|
1055 | | --program-transfo | --program-transf \ |
---|
1056 | | --program-trans | --program-tran \ |
---|
1057 | | --progr-tra | --program-tr | --program-t) |
---|
1058 | ac_prev=program_transform_name ;; |
---|
1059 | -program-transform-name=* | --program-transform-name=* \ |
---|
1060 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1061 | | --program-transform-n=* | --program-transform-=* \ |
---|
1062 | | --program-transform=* | --program-transfor=* \ |
---|
1063 | | --program-transfo=* | --program-transf=* \ |
---|
1064 | | --program-trans=* | --program-tran=* \ |
---|
1065 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1066 | program_transform_name=$ac_optarg ;; |
---|
1067 | |
---|
1068 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1069 | ac_prev=pdfdir ;; |
---|
1070 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1071 | pdfdir=$ac_optarg ;; |
---|
1072 | |
---|
1073 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1074 | ac_prev=psdir ;; |
---|
1075 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1076 | psdir=$ac_optarg ;; |
---|
1077 | |
---|
1078 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1079 | | -silent | --silent | --silen | --sile | --sil) |
---|
1080 | silent=yes ;; |
---|
1081 | |
---|
1082 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
---|
1083 | | --runstate | --runstat | --runsta | --runst | --runs \ |
---|
1084 | | --run | --ru | --r) |
---|
1085 | ac_prev=runstatedir ;; |
---|
1086 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
---|
1087 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
---|
1088 | | --run=* | --ru=* | --r=*) |
---|
1089 | runstatedir=$ac_optarg ;; |
---|
1090 | |
---|
1091 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1092 | ac_prev=sbindir ;; |
---|
1093 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1094 | | --sbi=* | --sb=*) |
---|
1095 | sbindir=$ac_optarg ;; |
---|
1096 | |
---|
1097 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1098 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1099 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1100 | | --sha | --sh) |
---|
1101 | ac_prev=sharedstatedir ;; |
---|
1102 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1103 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1104 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1105 | | --sha=* | --sh=*) |
---|
1106 | sharedstatedir=$ac_optarg ;; |
---|
1107 | |
---|
1108 | -site | --site | --sit) |
---|
1109 | ac_prev=site ;; |
---|
1110 | -site=* | --site=* | --sit=*) |
---|
1111 | site=$ac_optarg ;; |
---|
1112 | |
---|
1113 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1114 | ac_prev=srcdir ;; |
---|
1115 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1116 | srcdir=$ac_optarg ;; |
---|
1117 | |
---|
1118 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1119 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1120 | ac_prev=sysconfdir ;; |
---|
1121 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1122 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1123 | sysconfdir=$ac_optarg ;; |
---|
1124 | |
---|
1125 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1126 | ac_prev=target_alias ;; |
---|
1127 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1128 | target_alias=$ac_optarg ;; |
---|
1129 | |
---|
1130 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1131 | verbose=yes ;; |
---|
1132 | |
---|
1133 | -version | --version | --versio | --versi | --vers | -V) |
---|
1134 | ac_init_version=: ;; |
---|
1135 | |
---|
1136 | -with-* | --with-*) |
---|
1137 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1138 | # Reject names that are not valid shell variable names. |
---|
1139 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1140 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1141 | ac_useropt_orig=$ac_useropt |
---|
1142 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1143 | case $ac_user_opts in |
---|
1144 | *" |
---|
1145 | "with_$ac_useropt" |
---|
1146 | "*) ;; |
---|
1147 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1148 | ac_unrecognized_sep=', ';; |
---|
1149 | esac |
---|
1150 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1151 | |
---|
1152 | -without-* | --without-*) |
---|
1153 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1154 | # Reject names that are not valid shell variable names. |
---|
1155 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1156 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1157 | ac_useropt_orig=$ac_useropt |
---|
1158 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1159 | case $ac_user_opts in |
---|
1160 | *" |
---|
1161 | "with_$ac_useropt" |
---|
1162 | "*) ;; |
---|
1163 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1164 | ac_unrecognized_sep=', ';; |
---|
1165 | esac |
---|
1166 | eval with_$ac_useropt=no ;; |
---|
1167 | |
---|
1168 | --x) |
---|
1169 | # Obsolete; use --with-x. |
---|
1170 | with_x=yes ;; |
---|
1171 | |
---|
1172 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1173 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1174 | ac_prev=x_includes ;; |
---|
1175 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1176 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1177 | x_includes=$ac_optarg ;; |
---|
1178 | |
---|
1179 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1180 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1181 | ac_prev=x_libraries ;; |
---|
1182 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1183 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1184 | x_libraries=$ac_optarg ;; |
---|
1185 | |
---|
1186 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1187 | Try \`$0 --help' for more information" |
---|
1188 | ;; |
---|
1189 | |
---|
1190 | *=*) |
---|
1191 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1192 | # Reject names that are not valid shell variable names. |
---|
1193 | case $ac_envvar in #( |
---|
1194 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1195 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1196 | esac |
---|
1197 | eval $ac_envvar=\$ac_optarg |
---|
1198 | export $ac_envvar ;; |
---|
1199 | |
---|
1200 | *) |
---|
1201 | # FIXME: should be removed in autoconf 3.0. |
---|
1202 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1203 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1204 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1205 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1206 | ;; |
---|
1207 | |
---|
1208 | esac |
---|
1209 | done |
---|
1210 | |
---|
1211 | if test -n "$ac_prev"; then |
---|
1212 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1213 | as_fn_error $? "missing argument to $ac_option" |
---|
1214 | fi |
---|
1215 | |
---|
1216 | if test -n "$ac_unrecognized_opts"; then |
---|
1217 | case $enable_option_checking in |
---|
1218 | no) ;; |
---|
1219 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1220 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1221 | esac |
---|
1222 | fi |
---|
1223 | |
---|
1224 | # Check all directory arguments for consistency. |
---|
1225 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1226 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1227 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1228 | libdir localedir mandir runstatedir |
---|
1229 | do |
---|
1230 | eval ac_val=\$$ac_var |
---|
1231 | # Remove trailing slashes. |
---|
1232 | case $ac_val in |
---|
1233 | */ ) |
---|
1234 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1235 | eval $ac_var=\$ac_val;; |
---|
1236 | esac |
---|
1237 | # Be sure to have absolute directory names. |
---|
1238 | case $ac_val in |
---|
1239 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1240 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1241 | esac |
---|
1242 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1243 | done |
---|
1244 | |
---|
1245 | # There might be people who depend on the old broken behavior: `$host' |
---|
1246 | # used to hold the argument of --host etc. |
---|
1247 | # FIXME: To remove some day. |
---|
1248 | build=$build_alias |
---|
1249 | host=$host_alias |
---|
1250 | target=$target_alias |
---|
1251 | |
---|
1252 | # FIXME: To remove some day. |
---|
1253 | if test "x$host_alias" != x; then |
---|
1254 | if test "x$build_alias" = x; then |
---|
1255 | cross_compiling=maybe |
---|
1256 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1257 | cross_compiling=yes |
---|
1258 | fi |
---|
1259 | fi |
---|
1260 | |
---|
1261 | ac_tool_prefix= |
---|
1262 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1263 | |
---|
1264 | test "$silent" = yes && exec 6>/dev/null |
---|
1265 | |
---|
1266 | |
---|
1267 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1268 | ac_ls_di=`ls -di .` && |
---|
1269 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1270 | as_fn_error $? "working directory cannot be determined" |
---|
1271 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1272 | as_fn_error $? "pwd does not report name of working directory" |
---|
1273 | |
---|
1274 | |
---|
1275 | # Find the source files, if location was not specified. |
---|
1276 | if test -z "$srcdir"; then |
---|
1277 | ac_srcdir_defaulted=yes |
---|
1278 | # Try the directory containing this script, then the parent directory. |
---|
1279 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1280 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1281 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1282 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1283 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1284 | $as_echo X"$as_myself" | |
---|
1285 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1286 | s//\1/ |
---|
1287 | q |
---|
1288 | } |
---|
1289 | /^X\(\/\/\)[^/].*/{ |
---|
1290 | s//\1/ |
---|
1291 | q |
---|
1292 | } |
---|
1293 | /^X\(\/\/\)$/{ |
---|
1294 | s//\1/ |
---|
1295 | q |
---|
1296 | } |
---|
1297 | /^X\(\/\).*/{ |
---|
1298 | s//\1/ |
---|
1299 | q |
---|
1300 | } |
---|
1301 | s/.*/./; q'` |
---|
1302 | srcdir=$ac_confdir |
---|
1303 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1304 | srcdir=.. |
---|
1305 | fi |
---|
1306 | else |
---|
1307 | ac_srcdir_defaulted=no |
---|
1308 | fi |
---|
1309 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1310 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1311 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1312 | fi |
---|
1313 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1314 | ac_abs_confdir=`( |
---|
1315 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1316 | pwd)` |
---|
1317 | # When building in place, set srcdir=. |
---|
1318 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1319 | srcdir=. |
---|
1320 | fi |
---|
1321 | # Remove unnecessary trailing slashes from srcdir. |
---|
1322 | # Double slashes in file names in object file debugging info |
---|
1323 | # mess up M-x gdb in Emacs. |
---|
1324 | case $srcdir in |
---|
1325 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1326 | esac |
---|
1327 | for ac_var in $ac_precious_vars; do |
---|
1328 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1329 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1330 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1331 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1332 | done |
---|
1333 | |
---|
1334 | # |
---|
1335 | # Report the --help message. |
---|
1336 | # |
---|
1337 | if test "$ac_init_help" = "long"; then |
---|
1338 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1339 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1340 | cat <<_ACEOF |
---|
1341 | \`configure' configures cfa-cc 1.0.0.0 to adapt to many kinds of systems. |
---|
1342 | |
---|
1343 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1344 | |
---|
1345 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1346 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1347 | |
---|
1348 | Defaults for the options are specified in brackets. |
---|
1349 | |
---|
1350 | Configuration: |
---|
1351 | -h, --help display this help and exit |
---|
1352 | --help=short display options specific to this package |
---|
1353 | --help=recursive display the short help of all the included packages |
---|
1354 | -V, --version display version information and exit |
---|
1355 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1356 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1357 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1358 | -n, --no-create do not create output files |
---|
1359 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1360 | |
---|
1361 | Installation directories: |
---|
1362 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1363 | [$ac_default_prefix] |
---|
1364 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1365 | [PREFIX] |
---|
1366 | |
---|
1367 | By default, \`make install' will install all the files in |
---|
1368 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1369 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1370 | for instance \`--prefix=\$HOME'. |
---|
1371 | |
---|
1372 | For better control, use the options below. |
---|
1373 | |
---|
1374 | Fine tuning of the installation directories: |
---|
1375 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1376 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1377 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1378 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1379 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1380 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1381 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
---|
1382 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1383 | --includedir=DIR C header files [PREFIX/include] |
---|
1384 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1385 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1386 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1387 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1388 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1389 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1390 | --docdir=DIR documentation root [DATAROOTDIR/doc/cfa-cc] |
---|
1391 | --htmldir=DIR html documentation [DOCDIR] |
---|
1392 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1393 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1394 | --psdir=DIR ps documentation [DOCDIR] |
---|
1395 | _ACEOF |
---|
1396 | |
---|
1397 | cat <<\_ACEOF |
---|
1398 | |
---|
1399 | Program names: |
---|
1400 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1401 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1402 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1403 | |
---|
1404 | System types: |
---|
1405 | --build=BUILD configure for building on BUILD [guessed] |
---|
1406 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1407 | _ACEOF |
---|
1408 | fi |
---|
1409 | |
---|
1410 | if test -n "$ac_init_help"; then |
---|
1411 | case $ac_init_help in |
---|
1412 | short | recursive ) echo "Configuration of cfa-cc 1.0.0.0:";; |
---|
1413 | esac |
---|
1414 | cat <<\_ACEOF |
---|
1415 | |
---|
1416 | Optional Features: |
---|
1417 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1418 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1419 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1420 | --enable-silent-rules less verbose build output (undo: "make V=1") |
---|
1421 | --disable-silent-rules verbose build output (undo: "make V=0") |
---|
1422 | --enable-target-release Build and install the release target |
---|
1423 | --enable-target-debug Build and install the debug target |
---|
1424 | --enable-threading Build and install libcfa with threading support |
---|
1425 | (Enabled by default) |
---|
1426 | --enable-dependency-tracking |
---|
1427 | do not reject slow dependency extractors |
---|
1428 | --disable-dependency-tracking |
---|
1429 | speeds up one-time build |
---|
1430 | |
---|
1431 | Optional Packages: |
---|
1432 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1433 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1434 | --with-cfa-name=NAME NAME too which cfa will be installed |
---|
1435 | --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) |
---|
1436 | |
---|
1437 | Some influential environment variables: |
---|
1438 | CXX C++ compiler command |
---|
1439 | CXXFLAGS C++ compiler flags |
---|
1440 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1441 | nonstandard directory <lib dir> |
---|
1442 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1443 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1444 | you have headers in a nonstandard directory <include dir> |
---|
1445 | CC C compiler command |
---|
1446 | CFLAGS C compiler flags |
---|
1447 | CCAS assembler compiler command (defaults to CC) |
---|
1448 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) |
---|
1449 | YACC The `Yet Another Compiler Compiler' implementation to use. |
---|
1450 | Defaults to the first program found out of: `bison -y', `byacc', |
---|
1451 | `yacc'. |
---|
1452 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1453 | This script will default YFLAGS to the empty string to avoid a |
---|
1454 | default value of `-d' given by some make applications. |
---|
1455 | CPP C preprocessor |
---|
1456 | |
---|
1457 | Use these variables to override the choices made by `configure' or to help |
---|
1458 | it to find libraries and programs with nonstandard names/locations. |
---|
1459 | |
---|
1460 | Report bugs to <cforall@plg.uwaterloo.ca>. |
---|
1461 | _ACEOF |
---|
1462 | ac_status=$? |
---|
1463 | fi |
---|
1464 | |
---|
1465 | if test "$ac_init_help" = "recursive"; then |
---|
1466 | # If there are subdirs, report their specific --help. |
---|
1467 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1468 | test -d "$ac_dir" || |
---|
1469 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1470 | continue |
---|
1471 | ac_builddir=. |
---|
1472 | |
---|
1473 | case "$ac_dir" in |
---|
1474 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1475 | *) |
---|
1476 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1477 | # A ".." for each directory in $ac_dir_suffix. |
---|
1478 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1479 | case $ac_top_builddir_sub in |
---|
1480 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1481 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1482 | esac ;; |
---|
1483 | esac |
---|
1484 | ac_abs_top_builddir=$ac_pwd |
---|
1485 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1486 | # for backward compatibility: |
---|
1487 | ac_top_builddir=$ac_top_build_prefix |
---|
1488 | |
---|
1489 | case $srcdir in |
---|
1490 | .) # We are building in place. |
---|
1491 | ac_srcdir=. |
---|
1492 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1493 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1494 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1495 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1496 | ac_top_srcdir=$srcdir |
---|
1497 | ac_abs_top_srcdir=$srcdir ;; |
---|
1498 | *) # Relative name. |
---|
1499 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1500 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1501 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1502 | esac |
---|
1503 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1504 | |
---|
1505 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1506 | # Check for guested configure. |
---|
1507 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1508 | echo && |
---|
1509 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1510 | elif test -f "$ac_srcdir/configure"; then |
---|
1511 | echo && |
---|
1512 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1513 | else |
---|
1514 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1515 | fi || ac_status=$? |
---|
1516 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1517 | done |
---|
1518 | fi |
---|
1519 | |
---|
1520 | test -n "$ac_init_help" && exit $ac_status |
---|
1521 | if $ac_init_version; then |
---|
1522 | cat <<\_ACEOF |
---|
1523 | cfa-cc configure 1.0.0.0 |
---|
1524 | generated by GNU Autoconf 2.69 |
---|
1525 | |
---|
1526 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
1527 | This configure script is free software; the Free Software Foundation |
---|
1528 | gives unlimited permission to copy, distribute and modify it. |
---|
1529 | _ACEOF |
---|
1530 | exit |
---|
1531 | fi |
---|
1532 | |
---|
1533 | ## ------------------------ ## |
---|
1534 | ## Autoconf initialization. ## |
---|
1535 | ## ------------------------ ## |
---|
1536 | |
---|
1537 | # ac_fn_cxx_try_compile LINENO |
---|
1538 | # ---------------------------- |
---|
1539 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1540 | ac_fn_cxx_try_compile () |
---|
1541 | { |
---|
1542 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1543 | rm -f conftest.$ac_objext |
---|
1544 | if { { ac_try="$ac_compile" |
---|
1545 | case "(($ac_try" in |
---|
1546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1547 | *) ac_try_echo=$ac_try;; |
---|
1548 | esac |
---|
1549 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1550 | $as_echo "$ac_try_echo"; } >&5 |
---|
1551 | (eval "$ac_compile") 2>conftest.err |
---|
1552 | ac_status=$? |
---|
1553 | if test -s conftest.err; then |
---|
1554 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1555 | cat conftest.er1 >&5 |
---|
1556 | mv -f conftest.er1 conftest.err |
---|
1557 | fi |
---|
1558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1559 | test $ac_status = 0; } && { |
---|
1560 | test -z "$ac_cxx_werror_flag" || |
---|
1561 | test ! -s conftest.err |
---|
1562 | } && test -s conftest.$ac_objext; then : |
---|
1563 | ac_retval=0 |
---|
1564 | else |
---|
1565 | $as_echo "$as_me: failed program was:" >&5 |
---|
1566 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1567 | |
---|
1568 | ac_retval=1 |
---|
1569 | fi |
---|
1570 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1571 | as_fn_set_status $ac_retval |
---|
1572 | |
---|
1573 | } # ac_fn_cxx_try_compile |
---|
1574 | |
---|
1575 | # ac_fn_c_try_compile LINENO |
---|
1576 | # -------------------------- |
---|
1577 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1578 | ac_fn_c_try_compile () |
---|
1579 | { |
---|
1580 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1581 | rm -f conftest.$ac_objext |
---|
1582 | if { { ac_try="$ac_compile" |
---|
1583 | case "(($ac_try" in |
---|
1584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1585 | *) ac_try_echo=$ac_try;; |
---|
1586 | esac |
---|
1587 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1588 | $as_echo "$ac_try_echo"; } >&5 |
---|
1589 | (eval "$ac_compile") 2>conftest.err |
---|
1590 | ac_status=$? |
---|
1591 | if test -s conftest.err; then |
---|
1592 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1593 | cat conftest.er1 >&5 |
---|
1594 | mv -f conftest.er1 conftest.err |
---|
1595 | fi |
---|
1596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1597 | test $ac_status = 0; } && { |
---|
1598 | test -z "$ac_c_werror_flag" || |
---|
1599 | test ! -s conftest.err |
---|
1600 | } && test -s conftest.$ac_objext; then : |
---|
1601 | ac_retval=0 |
---|
1602 | else |
---|
1603 | $as_echo "$as_me: failed program was:" >&5 |
---|
1604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1605 | |
---|
1606 | ac_retval=1 |
---|
1607 | fi |
---|
1608 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1609 | as_fn_set_status $ac_retval |
---|
1610 | |
---|
1611 | } # ac_fn_c_try_compile |
---|
1612 | |
---|
1613 | # ac_fn_c_try_link LINENO |
---|
1614 | # ----------------------- |
---|
1615 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1616 | ac_fn_c_try_link () |
---|
1617 | { |
---|
1618 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1619 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1620 | if { { ac_try="$ac_link" |
---|
1621 | case "(($ac_try" in |
---|
1622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1623 | *) ac_try_echo=$ac_try;; |
---|
1624 | esac |
---|
1625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1626 | $as_echo "$ac_try_echo"; } >&5 |
---|
1627 | (eval "$ac_link") 2>conftest.err |
---|
1628 | ac_status=$? |
---|
1629 | if test -s conftest.err; then |
---|
1630 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1631 | cat conftest.er1 >&5 |
---|
1632 | mv -f conftest.er1 conftest.err |
---|
1633 | fi |
---|
1634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1635 | test $ac_status = 0; } && { |
---|
1636 | test -z "$ac_c_werror_flag" || |
---|
1637 | test ! -s conftest.err |
---|
1638 | } && test -s conftest$ac_exeext && { |
---|
1639 | test "$cross_compiling" = yes || |
---|
1640 | test -x conftest$ac_exeext |
---|
1641 | }; then : |
---|
1642 | ac_retval=0 |
---|
1643 | else |
---|
1644 | $as_echo "$as_me: failed program was:" >&5 |
---|
1645 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1646 | |
---|
1647 | ac_retval=1 |
---|
1648 | fi |
---|
1649 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1650 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1651 | # interfere with the next link command; also delete a directory that is |
---|
1652 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1653 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1654 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1655 | as_fn_set_status $ac_retval |
---|
1656 | |
---|
1657 | } # ac_fn_c_try_link |
---|
1658 | |
---|
1659 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1660 | # ------------------------------------------- |
---|
1661 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1662 | # variable VAR accordingly. |
---|
1663 | ac_fn_c_check_type () |
---|
1664 | { |
---|
1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1667 | $as_echo_n "checking for $2... " >&6; } |
---|
1668 | if eval \${$3+:} false; then : |
---|
1669 | $as_echo_n "(cached) " >&6 |
---|
1670 | else |
---|
1671 | eval "$3=no" |
---|
1672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1673 | /* end confdefs.h. */ |
---|
1674 | $4 |
---|
1675 | int |
---|
1676 | main () |
---|
1677 | { |
---|
1678 | if (sizeof ($2)) |
---|
1679 | return 0; |
---|
1680 | ; |
---|
1681 | return 0; |
---|
1682 | } |
---|
1683 | _ACEOF |
---|
1684 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1686 | /* end confdefs.h. */ |
---|
1687 | $4 |
---|
1688 | int |
---|
1689 | main () |
---|
1690 | { |
---|
1691 | if (sizeof (($2))) |
---|
1692 | return 0; |
---|
1693 | ; |
---|
1694 | return 0; |
---|
1695 | } |
---|
1696 | _ACEOF |
---|
1697 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1698 | |
---|
1699 | else |
---|
1700 | eval "$3=yes" |
---|
1701 | fi |
---|
1702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1703 | fi |
---|
1704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1705 | fi |
---|
1706 | eval ac_res=\$$3 |
---|
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1708 | $as_echo "$ac_res" >&6; } |
---|
1709 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1710 | |
---|
1711 | } # ac_fn_c_check_type |
---|
1712 | |
---|
1713 | # ac_fn_c_try_cpp LINENO |
---|
1714 | # ---------------------- |
---|
1715 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1716 | ac_fn_c_try_cpp () |
---|
1717 | { |
---|
1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1719 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1720 | case "(($ac_try" in |
---|
1721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1722 | *) ac_try_echo=$ac_try;; |
---|
1723 | esac |
---|
1724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1725 | $as_echo "$ac_try_echo"; } >&5 |
---|
1726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1727 | ac_status=$? |
---|
1728 | if test -s conftest.err; then |
---|
1729 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1730 | cat conftest.er1 >&5 |
---|
1731 | mv -f conftest.er1 conftest.err |
---|
1732 | fi |
---|
1733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1734 | test $ac_status = 0; } > conftest.i && { |
---|
1735 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1736 | test ! -s conftest.err |
---|
1737 | }; then : |
---|
1738 | ac_retval=0 |
---|
1739 | else |
---|
1740 | $as_echo "$as_me: failed program was:" >&5 |
---|
1741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1742 | |
---|
1743 | ac_retval=1 |
---|
1744 | fi |
---|
1745 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1746 | as_fn_set_status $ac_retval |
---|
1747 | |
---|
1748 | } # ac_fn_c_try_cpp |
---|
1749 | |
---|
1750 | # ac_fn_c_try_run LINENO |
---|
1751 | # ---------------------- |
---|
1752 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1753 | # that executables *can* be run. |
---|
1754 | ac_fn_c_try_run () |
---|
1755 | { |
---|
1756 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1757 | if { { ac_try="$ac_link" |
---|
1758 | case "(($ac_try" in |
---|
1759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1760 | *) ac_try_echo=$ac_try;; |
---|
1761 | esac |
---|
1762 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1763 | $as_echo "$ac_try_echo"; } >&5 |
---|
1764 | (eval "$ac_link") 2>&5 |
---|
1765 | ac_status=$? |
---|
1766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1767 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1768 | { { case "(($ac_try" in |
---|
1769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1770 | *) ac_try_echo=$ac_try;; |
---|
1771 | esac |
---|
1772 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1773 | $as_echo "$ac_try_echo"; } >&5 |
---|
1774 | (eval "$ac_try") 2>&5 |
---|
1775 | ac_status=$? |
---|
1776 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1777 | test $ac_status = 0; }; }; then : |
---|
1778 | ac_retval=0 |
---|
1779 | else |
---|
1780 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1781 | $as_echo "$as_me: failed program was:" >&5 |
---|
1782 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1783 | |
---|
1784 | ac_retval=$ac_status |
---|
1785 | fi |
---|
1786 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1787 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1788 | as_fn_set_status $ac_retval |
---|
1789 | |
---|
1790 | } # ac_fn_c_try_run |
---|
1791 | |
---|
1792 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1793 | # ------------------------------------------------------- |
---|
1794 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1795 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1796 | ac_fn_c_check_header_compile () |
---|
1797 | { |
---|
1798 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1800 | $as_echo_n "checking for $2... " >&6; } |
---|
1801 | if eval \${$3+:} false; then : |
---|
1802 | $as_echo_n "(cached) " >&6 |
---|
1803 | else |
---|
1804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1805 | /* end confdefs.h. */ |
---|
1806 | $4 |
---|
1807 | #include <$2> |
---|
1808 | _ACEOF |
---|
1809 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1810 | eval "$3=yes" |
---|
1811 | else |
---|
1812 | eval "$3=no" |
---|
1813 | fi |
---|
1814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1815 | fi |
---|
1816 | eval ac_res=\$$3 |
---|
1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1818 | $as_echo "$ac_res" >&6; } |
---|
1819 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1820 | |
---|
1821 | } # ac_fn_c_check_header_compile |
---|
1822 | |
---|
1823 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1824 | # ---------------------------------- |
---|
1825 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1826 | ac_fn_c_check_func () |
---|
1827 | { |
---|
1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1830 | $as_echo_n "checking for $2... " >&6; } |
---|
1831 | if eval \${$3+:} false; then : |
---|
1832 | $as_echo_n "(cached) " >&6 |
---|
1833 | else |
---|
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1835 | /* end confdefs.h. */ |
---|
1836 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1838 | #define $2 innocuous_$2 |
---|
1839 | |
---|
1840 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1841 | which can conflict with char $2 (); below. |
---|
1842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1843 | <limits.h> exists even on freestanding compilers. */ |
---|
1844 | |
---|
1845 | #ifdef __STDC__ |
---|
1846 | # include <limits.h> |
---|
1847 | #else |
---|
1848 | # include <assert.h> |
---|
1849 | #endif |
---|
1850 | |
---|
1851 | #undef $2 |
---|
1852 | |
---|
1853 | /* Override any GCC internal prototype to avoid an error. |
---|
1854 | Use char because int might match the return type of a GCC |
---|
1855 | builtin and then its argument prototype would still apply. */ |
---|
1856 | #ifdef __cplusplus |
---|
1857 | extern "C" |
---|
1858 | #endif |
---|
1859 | char $2 (); |
---|
1860 | /* The GNU C library defines this for functions which it implements |
---|
1861 | to always fail with ENOSYS. Some functions are actually named |
---|
1862 | something starting with __ and the normal name is an alias. */ |
---|
1863 | #if defined __stub_$2 || defined __stub___$2 |
---|
1864 | choke me |
---|
1865 | #endif |
---|
1866 | |
---|
1867 | int |
---|
1868 | main () |
---|
1869 | { |
---|
1870 | return $2 (); |
---|
1871 | ; |
---|
1872 | return 0; |
---|
1873 | } |
---|
1874 | _ACEOF |
---|
1875 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1876 | eval "$3=yes" |
---|
1877 | else |
---|
1878 | eval "$3=no" |
---|
1879 | fi |
---|
1880 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1881 | conftest$ac_exeext conftest.$ac_ext |
---|
1882 | fi |
---|
1883 | eval ac_res=\$$3 |
---|
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1885 | $as_echo "$ac_res" >&6; } |
---|
1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1887 | |
---|
1888 | } # ac_fn_c_check_func |
---|
1889 | |
---|
1890 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1891 | # ------------------------------------------------------- |
---|
1892 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1893 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1894 | # accordingly. |
---|
1895 | ac_fn_c_check_header_mongrel () |
---|
1896 | { |
---|
1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1898 | if eval \${$3+:} false; then : |
---|
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1900 | $as_echo_n "checking for $2... " >&6; } |
---|
1901 | if eval \${$3+:} false; then : |
---|
1902 | $as_echo_n "(cached) " >&6 |
---|
1903 | fi |
---|
1904 | eval ac_res=\$$3 |
---|
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1906 | $as_echo "$ac_res" >&6; } |
---|
1907 | else |
---|
1908 | # Is the header compilable? |
---|
1909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1910 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1912 | /* end confdefs.h. */ |
---|
1913 | $4 |
---|
1914 | #include <$2> |
---|
1915 | _ACEOF |
---|
1916 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1917 | ac_header_compiler=yes |
---|
1918 | else |
---|
1919 | ac_header_compiler=no |
---|
1920 | fi |
---|
1921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1923 | $as_echo "$ac_header_compiler" >&6; } |
---|
1924 | |
---|
1925 | # Is the header present? |
---|
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1927 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1929 | /* end confdefs.h. */ |
---|
1930 | #include <$2> |
---|
1931 | _ACEOF |
---|
1932 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1933 | ac_header_preproc=yes |
---|
1934 | else |
---|
1935 | ac_header_preproc=no |
---|
1936 | fi |
---|
1937 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1939 | $as_echo "$ac_header_preproc" >&6; } |
---|
1940 | |
---|
1941 | # So? What about this header? |
---|
1942 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1943 | yes:no: ) |
---|
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1945 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1947 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1948 | ;; |
---|
1949 | no:yes:* ) |
---|
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1951 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1953 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1955 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1957 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1959 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1960 | ( $as_echo "## --------------------------------------- ## |
---|
1961 | ## Report this to cforall@plg.uwaterloo.ca ## |
---|
1962 | ## --------------------------------------- ##" |
---|
1963 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1964 | ;; |
---|
1965 | esac |
---|
1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1967 | $as_echo_n "checking for $2... " >&6; } |
---|
1968 | if eval \${$3+:} false; then : |
---|
1969 | $as_echo_n "(cached) " >&6 |
---|
1970 | else |
---|
1971 | eval "$3=\$ac_header_compiler" |
---|
1972 | fi |
---|
1973 | eval ac_res=\$$3 |
---|
1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1975 | $as_echo "$ac_res" >&6; } |
---|
1976 | fi |
---|
1977 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1978 | |
---|
1979 | } # ac_fn_c_check_header_mongrel |
---|
1980 | |
---|
1981 | # ac_fn_c_find_intX_t LINENO BITS VAR |
---|
1982 | # ----------------------------------- |
---|
1983 | # Finds a signed integer type with width BITS, setting cache variable VAR |
---|
1984 | # accordingly. |
---|
1985 | ac_fn_c_find_intX_t () |
---|
1986 | { |
---|
1987 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
---|
1989 | $as_echo_n "checking for int$2_t... " >&6; } |
---|
1990 | if eval \${$3+:} false; then : |
---|
1991 | $as_echo_n "(cached) " >&6 |
---|
1992 | else |
---|
1993 | eval "$3=no" |
---|
1994 | # Order is important - never check a type that is potentially smaller |
---|
1995 | # than half of the expected target width. |
---|
1996 | for ac_type in int$2_t 'int' 'long int' \ |
---|
1997 | 'long long int' 'short int' 'signed char'; do |
---|
1998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1999 | /* end confdefs.h. */ |
---|
2000 | $ac_includes_default |
---|
2001 | enum { N = $2 / 2 - 1 }; |
---|
2002 | int |
---|
2003 | main () |
---|
2004 | { |
---|
2005 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
---|
2006 | test_array [0] = 0; |
---|
2007 | return test_array [0]; |
---|
2008 | |
---|
2009 | ; |
---|
2010 | return 0; |
---|
2011 | } |
---|
2012 | _ACEOF |
---|
2013 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2015 | /* end confdefs.h. */ |
---|
2016 | $ac_includes_default |
---|
2017 | enum { N = $2 / 2 - 1 }; |
---|
2018 | int |
---|
2019 | main () |
---|
2020 | { |
---|
2021 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
---|
2022 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
---|
2023 | test_array [0] = 0; |
---|
2024 | return test_array [0]; |
---|
2025 | |
---|
2026 | ; |
---|
2027 | return 0; |
---|
2028 | } |
---|
2029 | _ACEOF |
---|
2030 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2031 | |
---|
2032 | else |
---|
2033 | case $ac_type in #( |
---|
2034 | int$2_t) : |
---|
2035 | eval "$3=yes" ;; #( |
---|
2036 | *) : |
---|
2037 | eval "$3=\$ac_type" ;; |
---|
2038 | esac |
---|
2039 | fi |
---|
2040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2041 | fi |
---|
2042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2043 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2044 | |
---|
2045 | else |
---|
2046 | break |
---|
2047 | fi |
---|
2048 | done |
---|
2049 | fi |
---|
2050 | eval ac_res=\$$3 |
---|
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2052 | $as_echo "$ac_res" >&6; } |
---|
2053 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2054 | |
---|
2055 | } # ac_fn_c_find_intX_t |
---|
2056 | |
---|
2057 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
---|
2058 | # ------------------------------------ |
---|
2059 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
---|
2060 | # accordingly. |
---|
2061 | ac_fn_c_find_uintX_t () |
---|
2062 | { |
---|
2063 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
---|
2065 | $as_echo_n "checking for uint$2_t... " >&6; } |
---|
2066 | if eval \${$3+:} false; then : |
---|
2067 | $as_echo_n "(cached) " >&6 |
---|
2068 | else |
---|
2069 | eval "$3=no" |
---|
2070 | # Order is important - never check a type that is potentially smaller |
---|
2071 | # than half of the expected target width. |
---|
2072 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
---|
2073 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
---|
2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2075 | /* end confdefs.h. */ |
---|
2076 | $ac_includes_default |
---|
2077 | int |
---|
2078 | main () |
---|
2079 | { |
---|
2080 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
---|
2081 | test_array [0] = 0; |
---|
2082 | return test_array [0]; |
---|
2083 | |
---|
2084 | ; |
---|
2085 | return 0; |
---|
2086 | } |
---|
2087 | _ACEOF |
---|
2088 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
2089 | case $ac_type in #( |
---|
2090 | uint$2_t) : |
---|
2091 | eval "$3=yes" ;; #( |
---|
2092 | *) : |
---|
2093 | eval "$3=\$ac_type" ;; |
---|
2094 | esac |
---|
2095 | fi |
---|
2096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2097 | if eval test \"x\$"$3"\" = x"no"; then : |
---|
2098 | |
---|
2099 | else |
---|
2100 | break |
---|
2101 | fi |
---|
2102 | done |
---|
2103 | fi |
---|
2104 | eval ac_res=\$$3 |
---|
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
2106 | $as_echo "$ac_res" >&6; } |
---|
2107 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
2108 | |
---|
2109 | } # ac_fn_c_find_uintX_t |
---|
2110 | cat >config.log <<_ACEOF |
---|
2111 | This file contains any messages produced by compilers while |
---|
2112 | running configure, to aid debugging if configure makes a mistake. |
---|
2113 | |
---|
2114 | It was created by cfa-cc $as_me 1.0.0.0, which was |
---|
2115 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
2116 | |
---|
2117 | $ $0 $@ |
---|
2118 | |
---|
2119 | _ACEOF |
---|
2120 | exec 5>>config.log |
---|
2121 | { |
---|
2122 | cat <<_ASUNAME |
---|
2123 | ## --------- ## |
---|
2124 | ## Platform. ## |
---|
2125 | ## --------- ## |
---|
2126 | |
---|
2127 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2128 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2129 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2130 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2131 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2132 | |
---|
2133 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2134 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2135 | |
---|
2136 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2137 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2138 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2139 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2140 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2141 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2142 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2143 | |
---|
2144 | _ASUNAME |
---|
2145 | |
---|
2146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2147 | for as_dir in $PATH |
---|
2148 | do |
---|
2149 | IFS=$as_save_IFS |
---|
2150 | test -z "$as_dir" && as_dir=. |
---|
2151 | $as_echo "PATH: $as_dir" |
---|
2152 | done |
---|
2153 | IFS=$as_save_IFS |
---|
2154 | |
---|
2155 | } >&5 |
---|
2156 | |
---|
2157 | cat >&5 <<_ACEOF |
---|
2158 | |
---|
2159 | |
---|
2160 | ## ----------- ## |
---|
2161 | ## Core tests. ## |
---|
2162 | ## ----------- ## |
---|
2163 | |
---|
2164 | _ACEOF |
---|
2165 | |
---|
2166 | |
---|
2167 | # Keep a trace of the command line. |
---|
2168 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2169 | # Strip out --silent because we don't want to record it for future runs. |
---|
2170 | # Also quote any args containing shell meta-characters. |
---|
2171 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2172 | ac_configure_args= |
---|
2173 | ac_configure_args0= |
---|
2174 | ac_configure_args1= |
---|
2175 | ac_must_keep_next=false |
---|
2176 | for ac_pass in 1 2 |
---|
2177 | do |
---|
2178 | for ac_arg |
---|
2179 | do |
---|
2180 | case $ac_arg in |
---|
2181 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2182 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2183 | | -silent | --silent | --silen | --sile | --sil) |
---|
2184 | continue ;; |
---|
2185 | *\'*) |
---|
2186 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2187 | esac |
---|
2188 | case $ac_pass in |
---|
2189 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2190 | 2) |
---|
2191 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2192 | if test $ac_must_keep_next = true; then |
---|
2193 | ac_must_keep_next=false # Got value, back to normal. |
---|
2194 | else |
---|
2195 | case $ac_arg in |
---|
2196 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2197 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2198 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2199 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2200 | case "$ac_configure_args0 " in |
---|
2201 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2202 | esac |
---|
2203 | ;; |
---|
2204 | -* ) ac_must_keep_next=true ;; |
---|
2205 | esac |
---|
2206 | fi |
---|
2207 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2208 | ;; |
---|
2209 | esac |
---|
2210 | done |
---|
2211 | done |
---|
2212 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2213 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2214 | |
---|
2215 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2216 | # config.log. We remove comments because anyway the quotes in there |
---|
2217 | # would cause problems or look ugly. |
---|
2218 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2219 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2220 | trap 'exit_status=$? |
---|
2221 | # Save into config.log some information that might help in debugging. |
---|
2222 | { |
---|
2223 | echo |
---|
2224 | |
---|
2225 | $as_echo "## ---------------- ## |
---|
2226 | ## Cache variables. ## |
---|
2227 | ## ---------------- ##" |
---|
2228 | echo |
---|
2229 | # The following way of writing the cache mishandles newlines in values, |
---|
2230 | ( |
---|
2231 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2232 | eval ac_val=\$$ac_var |
---|
2233 | case $ac_val in #( |
---|
2234 | *${as_nl}*) |
---|
2235 | case $ac_var in #( |
---|
2236 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2237 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2238 | esac |
---|
2239 | case $ac_var in #( |
---|
2240 | _ | IFS | as_nl) ;; #( |
---|
2241 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2242 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2243 | esac ;; |
---|
2244 | esac |
---|
2245 | done |
---|
2246 | (set) 2>&1 | |
---|
2247 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2248 | *${as_nl}ac_space=\ *) |
---|
2249 | sed -n \ |
---|
2250 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2251 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2252 | ;; #( |
---|
2253 | *) |
---|
2254 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2255 | ;; |
---|
2256 | esac | |
---|
2257 | sort |
---|
2258 | ) |
---|
2259 | echo |
---|
2260 | |
---|
2261 | $as_echo "## ----------------- ## |
---|
2262 | ## Output variables. ## |
---|
2263 | ## ----------------- ##" |
---|
2264 | echo |
---|
2265 | for ac_var in $ac_subst_vars |
---|
2266 | do |
---|
2267 | eval ac_val=\$$ac_var |
---|
2268 | case $ac_val in |
---|
2269 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2270 | esac |
---|
2271 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2272 | done | sort |
---|
2273 | echo |
---|
2274 | |
---|
2275 | if test -n "$ac_subst_files"; then |
---|
2276 | $as_echo "## ------------------- ## |
---|
2277 | ## File substitutions. ## |
---|
2278 | ## ------------------- ##" |
---|
2279 | echo |
---|
2280 | for ac_var in $ac_subst_files |
---|
2281 | do |
---|
2282 | eval ac_val=\$$ac_var |
---|
2283 | case $ac_val in |
---|
2284 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2285 | esac |
---|
2286 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2287 | done | sort |
---|
2288 | echo |
---|
2289 | fi |
---|
2290 | |
---|
2291 | if test -s confdefs.h; then |
---|
2292 | $as_echo "## ----------- ## |
---|
2293 | ## confdefs.h. ## |
---|
2294 | ## ----------- ##" |
---|
2295 | echo |
---|
2296 | cat confdefs.h |
---|
2297 | echo |
---|
2298 | fi |
---|
2299 | test "$ac_signal" != 0 && |
---|
2300 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2301 | $as_echo "$as_me: exit $exit_status" |
---|
2302 | } >&5 |
---|
2303 | rm -f core *.core core.conftest.* && |
---|
2304 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2305 | exit $exit_status |
---|
2306 | ' 0 |
---|
2307 | for ac_signal in 1 2 13 15; do |
---|
2308 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2309 | done |
---|
2310 | ac_signal=0 |
---|
2311 | |
---|
2312 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2313 | rm -f -r conftest* confdefs.h |
---|
2314 | |
---|
2315 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2316 | |
---|
2317 | # Predefined preprocessor variables. |
---|
2318 | |
---|
2319 | cat >>confdefs.h <<_ACEOF |
---|
2320 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2321 | _ACEOF |
---|
2322 | |
---|
2323 | cat >>confdefs.h <<_ACEOF |
---|
2324 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2325 | _ACEOF |
---|
2326 | |
---|
2327 | cat >>confdefs.h <<_ACEOF |
---|
2328 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2329 | _ACEOF |
---|
2330 | |
---|
2331 | cat >>confdefs.h <<_ACEOF |
---|
2332 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2333 | _ACEOF |
---|
2334 | |
---|
2335 | cat >>confdefs.h <<_ACEOF |
---|
2336 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2337 | _ACEOF |
---|
2338 | |
---|
2339 | cat >>confdefs.h <<_ACEOF |
---|
2340 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2341 | _ACEOF |
---|
2342 | |
---|
2343 | |
---|
2344 | # Let the site file select an alternate cache file if it wants to. |
---|
2345 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2346 | ac_site_file1=NONE |
---|
2347 | ac_site_file2=NONE |
---|
2348 | if test -n "$CONFIG_SITE"; then |
---|
2349 | # We do not want a PATH search for config.site. |
---|
2350 | case $CONFIG_SITE in #(( |
---|
2351 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2352 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2353 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2354 | esac |
---|
2355 | elif test "x$prefix" != xNONE; then |
---|
2356 | ac_site_file1=$prefix/share/config.site |
---|
2357 | ac_site_file2=$prefix/etc/config.site |
---|
2358 | else |
---|
2359 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2360 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2361 | fi |
---|
2362 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2363 | do |
---|
2364 | test "x$ac_site_file" = xNONE && continue |
---|
2365 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2367 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2368 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2369 | . "$ac_site_file" \ |
---|
2370 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2371 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2372 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2373 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2374 | fi |
---|
2375 | done |
---|
2376 | |
---|
2377 | if test -r "$cache_file"; then |
---|
2378 | # Some versions of bash will fail to source /dev/null (special files |
---|
2379 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2380 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2382 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2383 | case $cache_file in |
---|
2384 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2385 | *) . "./$cache_file";; |
---|
2386 | esac |
---|
2387 | fi |
---|
2388 | else |
---|
2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2390 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2391 | >$cache_file |
---|
2392 | fi |
---|
2393 | |
---|
2394 | # Check that the precious variables saved in the cache have kept the same |
---|
2395 | # value. |
---|
2396 | ac_cache_corrupted=false |
---|
2397 | for ac_var in $ac_precious_vars; do |
---|
2398 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2399 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2400 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2401 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2402 | case $ac_old_set,$ac_new_set in |
---|
2403 | set,) |
---|
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2405 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2406 | ac_cache_corrupted=: ;; |
---|
2407 | ,set) |
---|
2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2409 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2410 | ac_cache_corrupted=: ;; |
---|
2411 | ,);; |
---|
2412 | *) |
---|
2413 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2414 | # differences in whitespace do not lead to failure. |
---|
2415 | ac_old_val_w=`echo x $ac_old_val` |
---|
2416 | ac_new_val_w=`echo x $ac_new_val` |
---|
2417 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2419 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2420 | ac_cache_corrupted=: |
---|
2421 | else |
---|
2422 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2423 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2424 | eval $ac_var=\$ac_old_val |
---|
2425 | fi |
---|
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2427 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2429 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2430 | fi;; |
---|
2431 | esac |
---|
2432 | # Pass precious variables to config.status. |
---|
2433 | if test "$ac_new_set" = set; then |
---|
2434 | case $ac_new_val in |
---|
2435 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2436 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2437 | esac |
---|
2438 | case " $ac_configure_args " in |
---|
2439 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2440 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2441 | esac |
---|
2442 | fi |
---|
2443 | done |
---|
2444 | if $ac_cache_corrupted; then |
---|
2445 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2446 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2448 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2449 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2450 | fi |
---|
2451 | ## -------------------- ## |
---|
2452 | ## Main body of script. ## |
---|
2453 | ## -------------------- ## |
---|
2454 | |
---|
2455 | ac_ext=c |
---|
2456 | ac_cpp='$CPP $CPPFLAGS' |
---|
2457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2460 | |
---|
2461 | |
---|
2462 | ac_aux_dir= |
---|
2463 | for ac_dir in automake "$srcdir"/automake; do |
---|
2464 | if test -f "$ac_dir/install-sh"; then |
---|
2465 | ac_aux_dir=$ac_dir |
---|
2466 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2467 | break |
---|
2468 | elif test -f "$ac_dir/install.sh"; then |
---|
2469 | ac_aux_dir=$ac_dir |
---|
2470 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2471 | break |
---|
2472 | elif test -f "$ac_dir/shtool"; then |
---|
2473 | ac_aux_dir=$ac_dir |
---|
2474 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2475 | break |
---|
2476 | fi |
---|
2477 | done |
---|
2478 | if test -z "$ac_aux_dir"; then |
---|
2479 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5 |
---|
2480 | fi |
---|
2481 | |
---|
2482 | # These three variables are undocumented and unsupported, |
---|
2483 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2484 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2485 | # whose full name contains unusual characters. |
---|
2486 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2487 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2488 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2489 | |
---|
2490 | |
---|
2491 | #AC_CONFIG_SRCDIR([src/main.cc]) |
---|
2492 | ac_config_headers="$ac_config_headers config.h:src/config.h.in" |
---|
2493 | |
---|
2494 | # Check whether --enable-silent-rules was given. |
---|
2495 | if test "${enable_silent_rules+set}" = set; then : |
---|
2496 | enableval=$enable_silent_rules; |
---|
2497 | fi |
---|
2498 | |
---|
2499 | case $enable_silent_rules in # ((( |
---|
2500 | yes) AM_DEFAULT_VERBOSITY=0;; |
---|
2501 | no) AM_DEFAULT_VERBOSITY=1;; |
---|
2502 | *) AM_DEFAULT_VERBOSITY=1;; |
---|
2503 | esac |
---|
2504 | am_make=${MAKE-make} |
---|
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
---|
2506 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
---|
2507 | if ${am_cv_make_support_nested_variables+:} false; then : |
---|
2508 | $as_echo_n "(cached) " >&6 |
---|
2509 | else |
---|
2510 | if $as_echo 'TRUE=$(BAR$(V)) |
---|
2511 | BAR0=false |
---|
2512 | BAR1=true |
---|
2513 | V=1 |
---|
2514 | am__doit: |
---|
2515 | @$(TRUE) |
---|
2516 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
---|
2517 | am_cv_make_support_nested_variables=yes |
---|
2518 | else |
---|
2519 | am_cv_make_support_nested_variables=no |
---|
2520 | fi |
---|
2521 | fi |
---|
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
---|
2523 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
---|
2524 | if test $am_cv_make_support_nested_variables = yes; then |
---|
2525 | AM_V='$(V)' |
---|
2526 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
---|
2527 | else |
---|
2528 | AM_V=$AM_DEFAULT_VERBOSITY |
---|
2529 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
---|
2530 | fi |
---|
2531 | AM_BACKSLASH='\' |
---|
2532 | |
---|
2533 | |
---|
2534 | am__api_version='1.15' |
---|
2535 | |
---|
2536 | # Find a good install program. We prefer a C program (faster), |
---|
2537 | # so one script is as good as another. But avoid the broken or |
---|
2538 | # incompatible versions: |
---|
2539 | # SysV /etc/install, /usr/sbin/install |
---|
2540 | # SunOS /usr/etc/install |
---|
2541 | # IRIX /sbin/install |
---|
2542 | # AIX /bin/install |
---|
2543 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2544 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2545 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2546 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2547 | # OS/2's system install, which has a completely different semantic |
---|
2548 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2549 | # Reject install programs that cannot install multiple files. |
---|
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2551 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2552 | if test -z "$INSTALL"; then |
---|
2553 | if ${ac_cv_path_install+:} false; then : |
---|
2554 | $as_echo_n "(cached) " >&6 |
---|
2555 | else |
---|
2556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2557 | for as_dir in $PATH |
---|
2558 | do |
---|
2559 | IFS=$as_save_IFS |
---|
2560 | test -z "$as_dir" && as_dir=. |
---|
2561 | # Account for people who put trailing slashes in PATH elements. |
---|
2562 | case $as_dir/ in #(( |
---|
2563 | ./ | .// | /[cC]/* | \ |
---|
2564 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2565 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2566 | /usr/ucb/* ) ;; |
---|
2567 | *) |
---|
2568 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2569 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2570 | # by default. |
---|
2571 | for ac_prog in ginstall scoinst install; do |
---|
2572 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2573 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2574 | if test $ac_prog = install && |
---|
2575 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2576 | # AIX install. It has an incompatible calling convention. |
---|
2577 | : |
---|
2578 | elif test $ac_prog = install && |
---|
2579 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2580 | # program-specific install script used by HP pwplus--don't use. |
---|
2581 | : |
---|
2582 | else |
---|
2583 | rm -rf conftest.one conftest.two conftest.dir |
---|
2584 | echo one > conftest.one |
---|
2585 | echo two > conftest.two |
---|
2586 | mkdir conftest.dir |
---|
2587 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2588 | test -s conftest.one && test -s conftest.two && |
---|
2589 | test -s conftest.dir/conftest.one && |
---|
2590 | test -s conftest.dir/conftest.two |
---|
2591 | then |
---|
2592 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2593 | break 3 |
---|
2594 | fi |
---|
2595 | fi |
---|
2596 | fi |
---|
2597 | done |
---|
2598 | done |
---|
2599 | ;; |
---|
2600 | esac |
---|
2601 | |
---|
2602 | done |
---|
2603 | IFS=$as_save_IFS |
---|
2604 | |
---|
2605 | rm -rf conftest.one conftest.two conftest.dir |
---|
2606 | |
---|
2607 | fi |
---|
2608 | if test "${ac_cv_path_install+set}" = set; then |
---|
2609 | INSTALL=$ac_cv_path_install |
---|
2610 | else |
---|
2611 | # As a last resort, use the slow shell script. Don't cache a |
---|
2612 | # value for INSTALL within a source directory, because that will |
---|
2613 | # break other packages using the cache if that directory is |
---|
2614 | # removed, or if the value is a relative name. |
---|
2615 | INSTALL=$ac_install_sh |
---|
2616 | fi |
---|
2617 | fi |
---|
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2619 | $as_echo "$INSTALL" >&6; } |
---|
2620 | |
---|
2621 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2622 | # It thinks the first close brace ends the variable substitution. |
---|
2623 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2624 | |
---|
2625 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2626 | |
---|
2627 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2628 | |
---|
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2630 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2631 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2632 | # name. Accept space and tab only in the latter. |
---|
2633 | am_lf=' |
---|
2634 | ' |
---|
2635 | case `pwd` in |
---|
2636 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2637 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2638 | esac |
---|
2639 | case $srcdir in |
---|
2640 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2641 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
---|
2642 | esac |
---|
2643 | |
---|
2644 | # Do 'set' in a subshell so we don't clobber the current shell's |
---|
2645 | # arguments. Must try -L first in case configure is actually a |
---|
2646 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2647 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2648 | # directory). |
---|
2649 | if ( |
---|
2650 | am_has_slept=no |
---|
2651 | for am_try in 1 2; do |
---|
2652 | echo "timestamp, slept: $am_has_slept" > conftest.file |
---|
2653 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2654 | if test "$*" = "X"; then |
---|
2655 | # -L didn't work. |
---|
2656 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2657 | fi |
---|
2658 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2659 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2660 | |
---|
2661 | # If neither matched, then we have a broken ls. This can happen |
---|
2662 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2663 | # broken ls alias from the environment. This has actually |
---|
2664 | # happened. Such a system could not be considered "sane". |
---|
2665 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2666 | alias in your environment" "$LINENO" 5 |
---|
2667 | fi |
---|
2668 | if test "$2" = conftest.file || test $am_try -eq 2; then |
---|
2669 | break |
---|
2670 | fi |
---|
2671 | # Just in case. |
---|
2672 | sleep 1 |
---|
2673 | am_has_slept=yes |
---|
2674 | done |
---|
2675 | test "$2" = conftest.file |
---|
2676 | ) |
---|
2677 | then |
---|
2678 | # Ok. |
---|
2679 | : |
---|
2680 | else |
---|
2681 | as_fn_error $? "newly created file is older than distributed files! |
---|
2682 | Check your system clock" "$LINENO" 5 |
---|
2683 | fi |
---|
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2685 | $as_echo "yes" >&6; } |
---|
2686 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
---|
2687 | # generated files are strictly newer. |
---|
2688 | am_sleep_pid= |
---|
2689 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
---|
2690 | ( sleep 1 ) & |
---|
2691 | am_sleep_pid=$! |
---|
2692 | fi |
---|
2693 | |
---|
2694 | rm -f conftest.file |
---|
2695 | |
---|
2696 | test "$program_prefix" != NONE && |
---|
2697 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2698 | # Use a double $ so make ignores it. |
---|
2699 | test "$program_suffix" != NONE && |
---|
2700 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2701 | # Double any \ or $. |
---|
2702 | # By default was `s,x,x', remove it if useless. |
---|
2703 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2704 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2705 | |
---|
2706 | # Expand $ac_aux_dir to an absolute path. |
---|
2707 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
---|
2708 | |
---|
2709 | if test x"${MISSING+set}" != xset; then |
---|
2710 | case $am_aux_dir in |
---|
2711 | *\ * | *\ *) |
---|
2712 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2713 | *) |
---|
2714 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2715 | esac |
---|
2716 | fi |
---|
2717 | # Use eval to expand $SHELL |
---|
2718 | if eval "$MISSING --is-lightweight"; then |
---|
2719 | am_missing_run="$MISSING " |
---|
2720 | else |
---|
2721 | am_missing_run= |
---|
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
---|
2723 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
---|
2724 | fi |
---|
2725 | |
---|
2726 | if test x"${install_sh+set}" != xset; then |
---|
2727 | case $am_aux_dir in |
---|
2728 | *\ * | *\ *) |
---|
2729 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2730 | *) |
---|
2731 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2732 | esac |
---|
2733 | fi |
---|
2734 | |
---|
2735 | # Installed binaries are usually stripped using 'strip' when the user |
---|
2736 | # run "make install-strip". However 'strip' might not be the right |
---|
2737 | # tool to use in cross-compilation environments, therefore Automake |
---|
2738 | # will honor the 'STRIP' environment variable to overrule this program. |
---|
2739 | if test "$cross_compiling" != no; then |
---|
2740 | if test -n "$ac_tool_prefix"; then |
---|
2741 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2742 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2744 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2745 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2746 | $as_echo_n "(cached) " >&6 |
---|
2747 | else |
---|
2748 | if test -n "$STRIP"; then |
---|
2749 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2750 | else |
---|
2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2752 | for as_dir in $PATH |
---|
2753 | do |
---|
2754 | IFS=$as_save_IFS |
---|
2755 | test -z "$as_dir" && as_dir=. |
---|
2756 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2758 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2760 | break 2 |
---|
2761 | fi |
---|
2762 | done |
---|
2763 | done |
---|
2764 | IFS=$as_save_IFS |
---|
2765 | |
---|
2766 | fi |
---|
2767 | fi |
---|
2768 | STRIP=$ac_cv_prog_STRIP |
---|
2769 | if test -n "$STRIP"; then |
---|
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2771 | $as_echo "$STRIP" >&6; } |
---|
2772 | else |
---|
2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2774 | $as_echo "no" >&6; } |
---|
2775 | fi |
---|
2776 | |
---|
2777 | |
---|
2778 | fi |
---|
2779 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2780 | ac_ct_STRIP=$STRIP |
---|
2781 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2782 | set dummy strip; ac_word=$2 |
---|
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2784 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2785 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2786 | $as_echo_n "(cached) " >&6 |
---|
2787 | else |
---|
2788 | if test -n "$ac_ct_STRIP"; then |
---|
2789 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2790 | else |
---|
2791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2792 | for as_dir in $PATH |
---|
2793 | do |
---|
2794 | IFS=$as_save_IFS |
---|
2795 | test -z "$as_dir" && as_dir=. |
---|
2796 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2798 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2800 | break 2 |
---|
2801 | fi |
---|
2802 | done |
---|
2803 | done |
---|
2804 | IFS=$as_save_IFS |
---|
2805 | |
---|
2806 | fi |
---|
2807 | fi |
---|
2808 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2809 | if test -n "$ac_ct_STRIP"; then |
---|
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2811 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2812 | else |
---|
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2814 | $as_echo "no" >&6; } |
---|
2815 | fi |
---|
2816 | |
---|
2817 | if test "x$ac_ct_STRIP" = x; then |
---|
2818 | STRIP=":" |
---|
2819 | else |
---|
2820 | case $cross_compiling:$ac_tool_warned in |
---|
2821 | yes:) |
---|
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2823 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2824 | ac_tool_warned=yes ;; |
---|
2825 | esac |
---|
2826 | STRIP=$ac_ct_STRIP |
---|
2827 | fi |
---|
2828 | else |
---|
2829 | STRIP="$ac_cv_prog_STRIP" |
---|
2830 | fi |
---|
2831 | |
---|
2832 | fi |
---|
2833 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2834 | |
---|
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2836 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2837 | if test -z "$MKDIR_P"; then |
---|
2838 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2839 | $as_echo_n "(cached) " >&6 |
---|
2840 | else |
---|
2841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2842 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2843 | do |
---|
2844 | IFS=$as_save_IFS |
---|
2845 | test -z "$as_dir" && as_dir=. |
---|
2846 | for ac_prog in mkdir gmkdir; do |
---|
2847 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2848 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
---|
2849 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2850 | 'mkdir (GNU coreutils) '* | \ |
---|
2851 | 'mkdir (coreutils) '* | \ |
---|
2852 | 'mkdir (fileutils) '4.1*) |
---|
2853 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2854 | break 3;; |
---|
2855 | esac |
---|
2856 | done |
---|
2857 | done |
---|
2858 | done |
---|
2859 | IFS=$as_save_IFS |
---|
2860 | |
---|
2861 | fi |
---|
2862 | |
---|
2863 | test -d ./--version && rmdir ./--version |
---|
2864 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2865 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2866 | else |
---|
2867 | # As a last resort, use the slow shell script. Don't cache a |
---|
2868 | # value for MKDIR_P within a source directory, because that will |
---|
2869 | # break other packages using the cache if that directory is |
---|
2870 | # removed, or if the value is a relative name. |
---|
2871 | MKDIR_P="$ac_install_sh -d" |
---|
2872 | fi |
---|
2873 | fi |
---|
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2875 | $as_echo "$MKDIR_P" >&6; } |
---|
2876 | |
---|
2877 | for ac_prog in gawk mawk nawk awk |
---|
2878 | do |
---|
2879 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2880 | set dummy $ac_prog; ac_word=$2 |
---|
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2882 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2883 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2884 | $as_echo_n "(cached) " >&6 |
---|
2885 | else |
---|
2886 | if test -n "$AWK"; then |
---|
2887 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2888 | else |
---|
2889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2890 | for as_dir in $PATH |
---|
2891 | do |
---|
2892 | IFS=$as_save_IFS |
---|
2893 | test -z "$as_dir" && as_dir=. |
---|
2894 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2895 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2896 | ac_cv_prog_AWK="$ac_prog" |
---|
2897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2898 | break 2 |
---|
2899 | fi |
---|
2900 | done |
---|
2901 | done |
---|
2902 | IFS=$as_save_IFS |
---|
2903 | |
---|
2904 | fi |
---|
2905 | fi |
---|
2906 | AWK=$ac_cv_prog_AWK |
---|
2907 | if test -n "$AWK"; then |
---|
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2909 | $as_echo "$AWK" >&6; } |
---|
2910 | else |
---|
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2912 | $as_echo "no" >&6; } |
---|
2913 | fi |
---|
2914 | |
---|
2915 | |
---|
2916 | test -n "$AWK" && break |
---|
2917 | done |
---|
2918 | |
---|
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2920 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2921 | set x ${MAKE-make} |
---|
2922 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2923 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2924 | $as_echo_n "(cached) " >&6 |
---|
2925 | else |
---|
2926 | cat >conftest.make <<\_ACEOF |
---|
2927 | SHELL = /bin/sh |
---|
2928 | all: |
---|
2929 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2930 | _ACEOF |
---|
2931 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2932 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2933 | *@@@%%%=?*=@@@%%%*) |
---|
2934 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2935 | *) |
---|
2936 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2937 | esac |
---|
2938 | rm -f conftest.make |
---|
2939 | fi |
---|
2940 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2942 | $as_echo "yes" >&6; } |
---|
2943 | SET_MAKE= |
---|
2944 | else |
---|
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2946 | $as_echo "no" >&6; } |
---|
2947 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2948 | fi |
---|
2949 | |
---|
2950 | rm -rf .tst 2>/dev/null |
---|
2951 | mkdir .tst 2>/dev/null |
---|
2952 | if test -d .tst; then |
---|
2953 | am__leading_dot=. |
---|
2954 | else |
---|
2955 | am__leading_dot=_ |
---|
2956 | fi |
---|
2957 | rmdir .tst 2>/dev/null |
---|
2958 | |
---|
2959 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2960 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2961 | # is not polluted with repeated "-I." |
---|
2962 | am__isrc=' -I$(srcdir)' |
---|
2963 | # test to see if srcdir already configured |
---|
2964 | if test -f $srcdir/config.status; then |
---|
2965 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2966 | fi |
---|
2967 | fi |
---|
2968 | |
---|
2969 | # test whether we have cygpath |
---|
2970 | if test -z "$CYGPATH_W"; then |
---|
2971 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2972 | CYGPATH_W='cygpath -w' |
---|
2973 | else |
---|
2974 | CYGPATH_W=echo |
---|
2975 | fi |
---|
2976 | fi |
---|
2977 | |
---|
2978 | |
---|
2979 | # Define the identity of the package. |
---|
2980 | PACKAGE='cfa-cc' |
---|
2981 | VERSION='1.0.0.0' |
---|
2982 | |
---|
2983 | |
---|
2984 | cat >>confdefs.h <<_ACEOF |
---|
2985 | #define PACKAGE "$PACKAGE" |
---|
2986 | _ACEOF |
---|
2987 | |
---|
2988 | |
---|
2989 | cat >>confdefs.h <<_ACEOF |
---|
2990 | #define VERSION "$VERSION" |
---|
2991 | _ACEOF |
---|
2992 | |
---|
2993 | # Some tools Automake needs. |
---|
2994 | |
---|
2995 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2996 | |
---|
2997 | |
---|
2998 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2999 | |
---|
3000 | |
---|
3001 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
3002 | |
---|
3003 | |
---|
3004 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
3005 | |
---|
3006 | |
---|
3007 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
3008 | |
---|
3009 | # For better backward compatibility. To be removed once Automake 1.9.x |
---|
3010 | # dies out for good. For more background, see: |
---|
3011 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
---|
3012 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
---|
3013 | mkdir_p='$(MKDIR_P)' |
---|
3014 | |
---|
3015 | # We need awk for the "check" target (and possibly the TAP driver). The |
---|
3016 | # system "awk" is bad on some platforms. |
---|
3017 | # Always define AMTAR for backward compatibility. Yes, it's still used |
---|
3018 | # in the wild :-( We should find a proper way to deprecate it ... |
---|
3019 | AMTAR='$${TAR-tar}' |
---|
3020 | |
---|
3021 | |
---|
3022 | # We'll loop over all known methods to create a tar archive until one works. |
---|
3023 | _am_tools='gnutar pax cpio none' |
---|
3024 | |
---|
3025 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
---|
3026 | |
---|
3027 | |
---|
3028 | |
---|
3029 | |
---|
3030 | |
---|
3031 | |
---|
3032 | # POSIX will say in a future version that running "rm -f" with no argument |
---|
3033 | # is OK; and we want to be able to make that assumption in our Makefile |
---|
3034 | # recipes. So use an aggressive probe to check that the usage we want is |
---|
3035 | # actually supported "in the wild" to an acceptable degree. |
---|
3036 | # See automake bug#10828. |
---|
3037 | # To make any issue more visible, cause the running configure to be aborted |
---|
3038 | # by default if the 'rm' program in use doesn't match our expectations; the |
---|
3039 | # user can still override this though. |
---|
3040 | if rm -f && rm -fr && rm -rf; then : OK; else |
---|
3041 | cat >&2 <<'END' |
---|
3042 | Oops! |
---|
3043 | |
---|
3044 | Your 'rm' program seems unable to run without file operands specified |
---|
3045 | on the command line, even when the '-f' option is present. This is contrary |
---|
3046 | to the behaviour of most rm programs out there, and not conforming with |
---|
3047 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
---|
3048 | |
---|
3049 | Please tell bug-automake@gnu.org about your system, including the value |
---|
3050 | of your $PATH and any error possibly output before this message. This |
---|
3051 | can help us improve future automake versions. |
---|
3052 | |
---|
3053 | END |
---|
3054 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
---|
3055 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
---|
3056 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
---|
3057 | echo >&2 |
---|
3058 | else |
---|
3059 | cat >&2 <<'END' |
---|
3060 | Aborting the configuration process, to ensure you take notice of the issue. |
---|
3061 | |
---|
3062 | You can download and install GNU coreutils to get an 'rm' implementation |
---|
3063 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
---|
3064 | |
---|
3065 | If you want to complete the configuration process using your problematic |
---|
3066 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
---|
3067 | to "yes", and re-run configure. |
---|
3068 | |
---|
3069 | END |
---|
3070 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
---|
3071 | fi |
---|
3072 | fi |
---|
3073 | |
---|
3074 | |
---|
3075 | # Allow program name tansformation |
---|
3076 | # will fill program_transform_name with appropriate sed regex |
---|
3077 | |
---|
3078 | |
---|
3079 | #Trasforming cc1 will break compilation |
---|
3080 | if test "${program_transform_name}" = ""; then |
---|
3081 | as_fn_error $? "Program transform not supported. |
---|
3082 | Use --with-cfa-name='[Desired name here]' instead" "$LINENO" 5 |
---|
3083 | fi |
---|
3084 | |
---|
3085 | |
---|
3086 | # Check whether --with-cfa-name was given. |
---|
3087 | if test "${with_cfa_name+set}" = set; then : |
---|
3088 | withval=$with_cfa_name; cfa_name=$withval |
---|
3089 | else |
---|
3090 | cfa_name="cfa" |
---|
3091 | fi |
---|
3092 | |
---|
3093 | |
---|
3094 | #Define the new name of the installed command |
---|
3095 | CFA_NAME=${cfa_name} |
---|
3096 | |
---|
3097 | |
---|
3098 | rm -f version |
---|
3099 | echo ${PACKAGE_VERSION} > version # file containing version number for other tools |
---|
3100 | chmod ugo-w version |
---|
3101 | ver_major=`cut -d '.' -f1 version` # subdivide version number into components at periods |
---|
3102 | ver_minor=`cut -d '.' -f2 version` |
---|
3103 | ver_patch=`cut -d '.' -f3 version` |
---|
3104 | ver_build=`cut -d '.' -f4 version` |
---|
3105 | |
---|
3106 | # AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version']) |
---|
3107 | |
---|
3108 | cat >>confdefs.h <<_ACEOF |
---|
3109 | #define CFA_VERSION_MAJOR ${ver_major} |
---|
3110 | _ACEOF |
---|
3111 | |
---|
3112 | |
---|
3113 | cat >>confdefs.h <<_ACEOF |
---|
3114 | #define CFA_VERSION_MINOR ${ver_minor} |
---|
3115 | _ACEOF |
---|
3116 | |
---|
3117 | |
---|
3118 | cat >>confdefs.h <<_ACEOF |
---|
3119 | #define CFA_VERSION_PATCH ${ver_patch} |
---|
3120 | _ACEOF |
---|
3121 | |
---|
3122 | |
---|
3123 | cat >>confdefs.h <<_ACEOF |
---|
3124 | #define CFA_VERSION_BUILD ${ver_build} |
---|
3125 | _ACEOF |
---|
3126 | |
---|
3127 | |
---|
3128 | cat >>confdefs.h <<_ACEOF |
---|
3129 | #define CFA_VERSION_SHORT "${ver_major}" |
---|
3130 | _ACEOF |
---|
3131 | |
---|
3132 | |
---|
3133 | cat >>confdefs.h <<_ACEOF |
---|
3134 | #define CFA_VERSION "${ver_major}.${ver_minor}" |
---|
3135 | _ACEOF |
---|
3136 | |
---|
3137 | |
---|
3138 | cat >>confdefs.h <<_ACEOF |
---|
3139 | #define CFA_VERSION_LONG "${ver_major}.${ver_minor}.${ver_patch}" |
---|
3140 | _ACEOF |
---|
3141 | |
---|
3142 | |
---|
3143 | cat >>confdefs.h <<_ACEOF |
---|
3144 | #define CFA_VERSION_FULL "${ver_major}.${ver_minor}.${ver_patch}.${ver_build}" |
---|
3145 | _ACEOF |
---|
3146 | |
---|
3147 | |
---|
3148 | # Installation paths |
---|
3149 | |
---|
3150 | |
---|
3151 | # Check whether --with-backend-compiler was given. |
---|
3152 | if test "${with_backend_compiler+set}" = set; then : |
---|
3153 | withval=$with_backend_compiler; backendcompiler=$withval |
---|
3154 | else |
---|
3155 | backendcompiler="" |
---|
3156 | fi |
---|
3157 | |
---|
3158 | if test "x$backendcompiler" != "x"; then |
---|
3159 | BACKEND_CC=${backendcompiler} |
---|
3160 | else |
---|
3161 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
3162 | set dummy gcc; ac_word=$2 |
---|
3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3164 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3165 | if ${ac_cv_path_BACKEND_CC+:} false; then : |
---|
3166 | $as_echo_n "(cached) " >&6 |
---|
3167 | else |
---|
3168 | case $BACKEND_CC in |
---|
3169 | [\\/]* | ?:[\\/]*) |
---|
3170 | ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path. |
---|
3171 | ;; |
---|
3172 | *) |
---|
3173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3174 | for as_dir in $PATH |
---|
3175 | do |
---|
3176 | IFS=$as_save_IFS |
---|
3177 | test -z "$as_dir" && as_dir=. |
---|
3178 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3180 | ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext" |
---|
3181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3182 | break 2 |
---|
3183 | fi |
---|
3184 | done |
---|
3185 | done |
---|
3186 | IFS=$as_save_IFS |
---|
3187 | |
---|
3188 | ;; |
---|
3189 | esac |
---|
3190 | fi |
---|
3191 | BACKEND_CC=$ac_cv_path_BACKEND_CC |
---|
3192 | if test -n "$BACKEND_CC"; then |
---|
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&5 |
---|
3194 | $as_echo "$BACKEND_CC" >&6; } |
---|
3195 | else |
---|
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3197 | $as_echo "no" >&6; } |
---|
3198 | fi |
---|
3199 | |
---|
3200 | # check gcc installed |
---|
3201 | if test "x$BACKEND_CC" = "x"; then |
---|
3202 | as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 |
---|
3203 | exit 1 |
---|
3204 | fi |
---|
3205 | fi |
---|
3206 | |
---|
3207 | cat >>confdefs.h <<_ACEOF |
---|
3208 | #define CFA_BACKEND_CC "${BACKEND_CC}" |
---|
3209 | _ACEOF |
---|
3210 | |
---|
3211 | |
---|
3212 | |
---|
3213 | |
---|
3214 | |
---|
3215 | # Check whether --enable-target-release was given. |
---|
3216 | if test "${enable_target_release+set}" = set; then : |
---|
3217 | enableval=$enable_target_release; |
---|
3218 | fi |
---|
3219 | |
---|
3220 | # Check whether --enable-target-debug was given. |
---|
3221 | if test "${enable_target_debug+set}" = set; then : |
---|
3222 | enableval=$enable_target_debug; |
---|
3223 | fi |
---|
3224 | |
---|
3225 | # Check whether --enable-threading was given. |
---|
3226 | if test "${enable_threading+set}" = set; then : |
---|
3227 | enableval=$enable_threading; case "${enableval}" in |
---|
3228 | yes) build_threading="yes" ;; |
---|
3229 | no) build_threading="no" ;; |
---|
3230 | *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; |
---|
3231 | esac |
---|
3232 | else |
---|
3233 | build_threading="yes" |
---|
3234 | fi |
---|
3235 | |
---|
3236 | |
---|
3237 | case "$enable_target_release" in |
---|
3238 | yes) |
---|
3239 | case "$enable_target_debug" in |
---|
3240 | yes) |
---|
3241 | build_release="yes" |
---|
3242 | build_debug="yes" |
---|
3243 | ;; |
---|
3244 | no) |
---|
3245 | build_release="yes" |
---|
3246 | build_debug="no" |
---|
3247 | ;; |
---|
3248 | *) |
---|
3249 | build_release="yes" |
---|
3250 | build_debug="no" |
---|
3251 | ;; |
---|
3252 | esac |
---|
3253 | ;; |
---|
3254 | no) |
---|
3255 | case "$enable_target_debug" in |
---|
3256 | yes) |
---|
3257 | build_release="no" |
---|
3258 | build_debug="yes" |
---|
3259 | ;; |
---|
3260 | no) |
---|
3261 | build_release="no" |
---|
3262 | build_debug="no" |
---|
3263 | ;; |
---|
3264 | *) |
---|
3265 | build_release="no" |
---|
3266 | build_debug="yes" |
---|
3267 | ;; |
---|
3268 | esac |
---|
3269 | ;; |
---|
3270 | *) |
---|
3271 | case "$enable_target_debug" in |
---|
3272 | yes) |
---|
3273 | build_release="no" |
---|
3274 | build_debug="yes" |
---|
3275 | ;; |
---|
3276 | no) |
---|
3277 | build_release="yes" |
---|
3278 | build_debug="no" |
---|
3279 | ;; |
---|
3280 | *) |
---|
3281 | build_release="yes" |
---|
3282 | build_debug="yes" |
---|
3283 | ;; |
---|
3284 | esac |
---|
3285 | ;; |
---|
3286 | esac |
---|
3287 | |
---|
3288 | if test "x$build_release" = "xyes"; then |
---|
3289 | BUILD_RELEASE_TRUE= |
---|
3290 | BUILD_RELEASE_FALSE='#' |
---|
3291 | else |
---|
3292 | BUILD_RELEASE_TRUE='#' |
---|
3293 | BUILD_RELEASE_FALSE= |
---|
3294 | fi |
---|
3295 | |
---|
3296 | if test "x$build_debug" = "xyes"; then |
---|
3297 | BUILD_DEBUG_TRUE= |
---|
3298 | BUILD_DEBUG_FALSE='#' |
---|
3299 | else |
---|
3300 | BUILD_DEBUG_TRUE='#' |
---|
3301 | BUILD_DEBUG_FALSE= |
---|
3302 | fi |
---|
3303 | |
---|
3304 | if test "x$build_release$build_debug" = "xnono"; then |
---|
3305 | BUILD_NO_LIB_TRUE= |
---|
3306 | BUILD_NO_LIB_FALSE='#' |
---|
3307 | else |
---|
3308 | BUILD_NO_LIB_TRUE='#' |
---|
3309 | BUILD_NO_LIB_FALSE= |
---|
3310 | fi |
---|
3311 | |
---|
3312 | if test "x$build_threading" = "xyes"; then |
---|
3313 | BUILD_CONCURRENCY_TRUE= |
---|
3314 | BUILD_CONCURRENCY_FALSE='#' |
---|
3315 | else |
---|
3316 | BUILD_CONCURRENCY_TRUE='#' |
---|
3317 | BUILD_CONCURRENCY_FALSE= |
---|
3318 | fi |
---|
3319 | |
---|
3320 | |
---|
3321 | DOifskipcompile='ifeq ($(skipcompile),yes) |
---|
3322 | else' |
---|
3323 | |
---|
3324 | |
---|
3325 | |
---|
3326 | DOendif='endif' |
---|
3327 | |
---|
3328 | |
---|
3329 | |
---|
3330 | if test "x$prefix" = "xNONE"; then |
---|
3331 | cfa_prefix=${ac_default_prefix} |
---|
3332 | else |
---|
3333 | cfa_prefix=${prefix} |
---|
3334 | fi |
---|
3335 | |
---|
3336 | cat >>confdefs.h <<_ACEOF |
---|
3337 | #define CFA_PREFIX "${cfa_prefix}" |
---|
3338 | _ACEOF |
---|
3339 | |
---|
3340 | CFA_PREFIX=${cfa_prefix} |
---|
3341 | |
---|
3342 | |
---|
3343 | if test "$includedir" = '${prefix}/include'; then |
---|
3344 | cfa_incdir="${cfa_prefix}/include/${cfa_name}" |
---|
3345 | else |
---|
3346 | cfa_incdir=${includedir} |
---|
3347 | fi |
---|
3348 | |
---|
3349 | cat >>confdefs.h <<_ACEOF |
---|
3350 | #define CFA_INCDIR "${cfa_incdir}" |
---|
3351 | _ACEOF |
---|
3352 | |
---|
3353 | CFA_INCDIR=${cfa_incdir} |
---|
3354 | |
---|
3355 | |
---|
3356 | if test "$bindir" = '${exec_prefix}/bin'; then |
---|
3357 | cfa_bindir="${cfa_prefix}/bin" |
---|
3358 | else |
---|
3359 | cfa_bindir=${bindir} |
---|
3360 | fi |
---|
3361 | |
---|
3362 | cat >>confdefs.h <<_ACEOF |
---|
3363 | #define CFA_BINDIR "${cfa_bindir}" |
---|
3364 | _ACEOF |
---|
3365 | |
---|
3366 | CFA_BINDIR=${cfa_bindir} |
---|
3367 | |
---|
3368 | |
---|
3369 | if test "$libdir" = '${exec_prefix}/lib'; then |
---|
3370 | cfa_libdir="${cfa_prefix}/lib/${cfa_name}" |
---|
3371 | else |
---|
3372 | cfa_libdir=${libdir} |
---|
3373 | fi |
---|
3374 | |
---|
3375 | cat >>confdefs.h <<_ACEOF |
---|
3376 | #define CFA_LIBDIR "${cfa_libdir}" |
---|
3377 | _ACEOF |
---|
3378 | |
---|
3379 | CFA_LIBDIR=${cfa_libdir} |
---|
3380 | |
---|
3381 | |
---|
3382 | # Create variables for commonly used targets |
---|
3383 | DRIVER_DIR='$(top_builddir)/src/driver' |
---|
3384 | CFACC=${DRIVER_DIR}/cfa |
---|
3385 | CFACPP=${DRIVER_DIR}/cfa-cpp |
---|
3386 | |
---|
3387 | |
---|
3388 | |
---|
3389 | |
---|
3390 | # Flag variables needed to build in tree |
---|
3391 | LIBCFA_SRC='$(top_srcdir)/src/libcfa' |
---|
3392 | LIBCFA_BUILD='$(top_builddir)/src/libcfa' |
---|
3393 | BUILD_IN_TREE_FLAGS_NOLIB="-XCFA -t -B${DRIVER_DIR}" |
---|
3394 | BUILD_IN_TREE_FLAGS="${BUILD_IN_TREE_FLAGS_NOLIB} -L${LIBCFA_BUILD} -I${LIBCFA_SRC} -I${LIBCFA_SRC}/containers -I${LIBCFA_SRC}/concurrency -I${LIBCFA_SRC}/stdhdr" |
---|
3395 | |
---|
3396 | |
---|
3397 | |
---|
3398 | # Make sure we can run config.sub. |
---|
3399 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
3400 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
3401 | |
---|
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
3403 | $as_echo_n "checking build system type... " >&6; } |
---|
3404 | if ${ac_cv_build+:} false; then : |
---|
3405 | $as_echo_n "(cached) " >&6 |
---|
3406 | else |
---|
3407 | ac_build_alias=$build_alias |
---|
3408 | test "x$ac_build_alias" = x && |
---|
3409 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
3410 | test "x$ac_build_alias" = x && |
---|
3411 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
3412 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
3413 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
3414 | |
---|
3415 | fi |
---|
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
3417 | $as_echo "$ac_cv_build" >&6; } |
---|
3418 | case $ac_cv_build in |
---|
3419 | *-*-*) ;; |
---|
3420 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
3421 | esac |
---|
3422 | build=$ac_cv_build |
---|
3423 | ac_save_IFS=$IFS; IFS='-' |
---|
3424 | set x $ac_cv_build |
---|
3425 | shift |
---|
3426 | build_cpu=$1 |
---|
3427 | build_vendor=$2 |
---|
3428 | shift; shift |
---|
3429 | # Remember, the first character of IFS is used to create $*, |
---|
3430 | # except with old shells: |
---|
3431 | build_os=$* |
---|
3432 | IFS=$ac_save_IFS |
---|
3433 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
3434 | |
---|
3435 | |
---|
3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
3437 | $as_echo_n "checking host system type... " >&6; } |
---|
3438 | if ${ac_cv_host+:} false; then : |
---|
3439 | $as_echo_n "(cached) " >&6 |
---|
3440 | else |
---|
3441 | if test "x$host_alias" = x; then |
---|
3442 | ac_cv_host=$ac_cv_build |
---|
3443 | else |
---|
3444 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
3445 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
3446 | fi |
---|
3447 | |
---|
3448 | fi |
---|
3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
3450 | $as_echo "$ac_cv_host" >&6; } |
---|
3451 | case $ac_cv_host in |
---|
3452 | *-*-*) ;; |
---|
3453 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
3454 | esac |
---|
3455 | host=$ac_cv_host |
---|
3456 | ac_save_IFS=$IFS; IFS='-' |
---|
3457 | set x $ac_cv_host |
---|
3458 | shift |
---|
3459 | host_cpu=$1 |
---|
3460 | host_vendor=$2 |
---|
3461 | shift; shift |
---|
3462 | # Remember, the first character of IFS is used to create $*, |
---|
3463 | # except with old shells: |
---|
3464 | host_os=$* |
---|
3465 | IFS=$ac_save_IFS |
---|
3466 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
3467 | |
---|
3468 | |
---|
3469 | MACHINE_TYPE=$host_cpu |
---|
3470 | |
---|
3471 | |
---|
3472 | if ! test "$host_cpu" = "$build_cpu"; then |
---|
3473 | case $host_cpu in |
---|
3474 | i386) |
---|
3475 | CFLAGS+=" -m32 " |
---|
3476 | CXXFLAGS+=" -m32 " |
---|
3477 | CFAFLAGS+=" -m32 " |
---|
3478 | LDFLAGS+=" -m32 " |
---|
3479 | ;; |
---|
3480 | i686) |
---|
3481 | CFLAGS+=" -m32 " |
---|
3482 | CXXFLAGS+=" -m32 " |
---|
3483 | CFAFLAGS+=" -m32 " |
---|
3484 | LDFLAGS+=" -m32 " |
---|
3485 | ;; |
---|
3486 | x86_64) |
---|
3487 | CFLAGS+=" -m64 " |
---|
3488 | CXXFLAGS+=" -m64 " |
---|
3489 | CFAFLAGS+=" -m64 " |
---|
3490 | LDFLAGS+=" -m64 " |
---|
3491 | ;; |
---|
3492 | esac |
---|
3493 | fi |
---|
3494 | |
---|
3495 | |
---|
3496 | cat >>confdefs.h <<_ACEOF |
---|
3497 | #define CFA_FLAGS "${CFAFLAGS}" |
---|
3498 | _ACEOF |
---|
3499 | |
---|
3500 | CFA_FLAGS=${CFAFLAGS} |
---|
3501 | |
---|
3502 | |
---|
3503 | # Checks for programs. |
---|
3504 | ac_ext=cpp |
---|
3505 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3506 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3507 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3508 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3509 | if test -z "$CXX"; then |
---|
3510 | if test -n "$CCC"; then |
---|
3511 | CXX=$CCC |
---|
3512 | else |
---|
3513 | if test -n "$ac_tool_prefix"; then |
---|
3514 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3515 | do |
---|
3516 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3517 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3519 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3520 | if ${ac_cv_prog_CXX+:} false; then : |
---|
3521 | $as_echo_n "(cached) " >&6 |
---|
3522 | else |
---|
3523 | if test -n "$CXX"; then |
---|
3524 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3525 | else |
---|
3526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3527 | for as_dir in $PATH |
---|
3528 | do |
---|
3529 | IFS=$as_save_IFS |
---|
3530 | test -z "$as_dir" && as_dir=. |
---|
3531 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3532 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3533 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3535 | break 2 |
---|
3536 | fi |
---|
3537 | done |
---|
3538 | done |
---|
3539 | IFS=$as_save_IFS |
---|
3540 | |
---|
3541 | fi |
---|
3542 | fi |
---|
3543 | CXX=$ac_cv_prog_CXX |
---|
3544 | if test -n "$CXX"; then |
---|
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
3546 | $as_echo "$CXX" >&6; } |
---|
3547 | else |
---|
3548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3549 | $as_echo "no" >&6; } |
---|
3550 | fi |
---|
3551 | |
---|
3552 | |
---|
3553 | test -n "$CXX" && break |
---|
3554 | done |
---|
3555 | fi |
---|
3556 | if test -z "$CXX"; then |
---|
3557 | ac_ct_CXX=$CXX |
---|
3558 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3559 | do |
---|
3560 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3561 | set dummy $ac_prog; ac_word=$2 |
---|
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3563 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3564 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
---|
3565 | $as_echo_n "(cached) " >&6 |
---|
3566 | else |
---|
3567 | if test -n "$ac_ct_CXX"; then |
---|
3568 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3569 | else |
---|
3570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3571 | for as_dir in $PATH |
---|
3572 | do |
---|
3573 | IFS=$as_save_IFS |
---|
3574 | test -z "$as_dir" && as_dir=. |
---|
3575 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3576 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3577 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3579 | break 2 |
---|
3580 | fi |
---|
3581 | done |
---|
3582 | done |
---|
3583 | IFS=$as_save_IFS |
---|
3584 | |
---|
3585 | fi |
---|
3586 | fi |
---|
3587 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3588 | if test -n "$ac_ct_CXX"; then |
---|
3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
3590 | $as_echo "$ac_ct_CXX" >&6; } |
---|
3591 | else |
---|
3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3593 | $as_echo "no" >&6; } |
---|
3594 | fi |
---|
3595 | |
---|
3596 | |
---|
3597 | test -n "$ac_ct_CXX" && break |
---|
3598 | done |
---|
3599 | |
---|
3600 | if test "x$ac_ct_CXX" = x; then |
---|
3601 | CXX="g++" |
---|
3602 | else |
---|
3603 | case $cross_compiling:$ac_tool_warned in |
---|
3604 | yes:) |
---|
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3606 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3607 | ac_tool_warned=yes ;; |
---|
3608 | esac |
---|
3609 | CXX=$ac_ct_CXX |
---|
3610 | fi |
---|
3611 | fi |
---|
3612 | |
---|
3613 | fi |
---|
3614 | fi |
---|
3615 | # Provide some information about the compiler. |
---|
3616 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
3617 | set X $ac_compile |
---|
3618 | ac_compiler=$2 |
---|
3619 | for ac_option in --version -v -V -qversion; do |
---|
3620 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3621 | case "(($ac_try" in |
---|
3622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3623 | *) ac_try_echo=$ac_try;; |
---|
3624 | esac |
---|
3625 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3626 | $as_echo "$ac_try_echo"; } >&5 |
---|
3627 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3628 | ac_status=$? |
---|
3629 | if test -s conftest.err; then |
---|
3630 | sed '10a\ |
---|
3631 | ... rest of stderr output deleted ... |
---|
3632 | 10q' conftest.err >conftest.er1 |
---|
3633 | cat conftest.er1 >&5 |
---|
3634 | fi |
---|
3635 | rm -f conftest.er1 conftest.err |
---|
3636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3637 | test $ac_status = 0; } |
---|
3638 | done |
---|
3639 | |
---|
3640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3641 | /* end confdefs.h. */ |
---|
3642 | |
---|
3643 | int |
---|
3644 | main () |
---|
3645 | { |
---|
3646 | |
---|
3647 | ; |
---|
3648 | return 0; |
---|
3649 | } |
---|
3650 | _ACEOF |
---|
3651 | ac_clean_files_save=$ac_clean_files |
---|
3652 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3653 | # Try to create an executable without -o first, disregard a.out. |
---|
3654 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3655 | # of exeext. |
---|
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
3657 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
3658 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3659 | |
---|
3660 | # The possible output files: |
---|
3661 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3662 | |
---|
3663 | ac_rmfiles= |
---|
3664 | for ac_file in $ac_files |
---|
3665 | do |
---|
3666 | case $ac_file in |
---|
3667 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3668 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3669 | esac |
---|
3670 | done |
---|
3671 | rm -f $ac_rmfiles |
---|
3672 | |
---|
3673 | if { { ac_try="$ac_link_default" |
---|
3674 | case "(($ac_try" in |
---|
3675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3676 | *) ac_try_echo=$ac_try;; |
---|
3677 | esac |
---|
3678 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3679 | $as_echo "$ac_try_echo"; } >&5 |
---|
3680 | (eval "$ac_link_default") 2>&5 |
---|
3681 | ac_status=$? |
---|
3682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3683 | test $ac_status = 0; }; then : |
---|
3684 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3685 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3686 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3687 | # so that the user can short-circuit this test for compilers unknown to |
---|
3688 | # Autoconf. |
---|
3689 | for ac_file in $ac_files '' |
---|
3690 | do |
---|
3691 | test -f "$ac_file" || continue |
---|
3692 | case $ac_file in |
---|
3693 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3694 | ;; |
---|
3695 | [ab].out ) |
---|
3696 | # We found the default executable, but exeext='' is most |
---|
3697 | # certainly right. |
---|
3698 | break;; |
---|
3699 | *.* ) |
---|
3700 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3701 | then :; else |
---|
3702 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3703 | fi |
---|
3704 | # We set ac_cv_exeext here because the later test for it is not |
---|
3705 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3706 | # argument, so we may need to know it at that point already. |
---|
3707 | # Even if this section looks crufty: it has the advantage of |
---|
3708 | # actually working. |
---|
3709 | break;; |
---|
3710 | * ) |
---|
3711 | break;; |
---|
3712 | esac |
---|
3713 | done |
---|
3714 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3715 | |
---|
3716 | else |
---|
3717 | ac_file='' |
---|
3718 | fi |
---|
3719 | if test -z "$ac_file"; then : |
---|
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3721 | $as_echo "no" >&6; } |
---|
3722 | $as_echo "$as_me: failed program was:" >&5 |
---|
3723 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3724 | |
---|
3725 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3726 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3727 | as_fn_error 77 "C++ compiler cannot create executables |
---|
3728 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3729 | else |
---|
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3731 | $as_echo "yes" >&6; } |
---|
3732 | fi |
---|
3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
3734 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3736 | $as_echo "$ac_file" >&6; } |
---|
3737 | ac_exeext=$ac_cv_exeext |
---|
3738 | |
---|
3739 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3740 | ac_clean_files=$ac_clean_files_save |
---|
3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3742 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3743 | if { { ac_try="$ac_link" |
---|
3744 | case "(($ac_try" in |
---|
3745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3746 | *) ac_try_echo=$ac_try;; |
---|
3747 | esac |
---|
3748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3749 | $as_echo "$ac_try_echo"; } >&5 |
---|
3750 | (eval "$ac_link") 2>&5 |
---|
3751 | ac_status=$? |
---|
3752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3753 | test $ac_status = 0; }; then : |
---|
3754 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3755 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3756 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3757 | # `rm'. |
---|
3758 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3759 | test -f "$ac_file" || continue |
---|
3760 | case $ac_file in |
---|
3761 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3762 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3763 | break;; |
---|
3764 | * ) break;; |
---|
3765 | esac |
---|
3766 | done |
---|
3767 | else |
---|
3768 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3769 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3770 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3771 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3772 | fi |
---|
3773 | rm -f conftest conftest$ac_cv_exeext |
---|
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3775 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3776 | |
---|
3777 | rm -f conftest.$ac_ext |
---|
3778 | EXEEXT=$ac_cv_exeext |
---|
3779 | ac_exeext=$EXEEXT |
---|
3780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3781 | /* end confdefs.h. */ |
---|
3782 | #include <stdio.h> |
---|
3783 | int |
---|
3784 | main () |
---|
3785 | { |
---|
3786 | FILE *f = fopen ("conftest.out", "w"); |
---|
3787 | return ferror (f) || fclose (f) != 0; |
---|
3788 | |
---|
3789 | ; |
---|
3790 | return 0; |
---|
3791 | } |
---|
3792 | _ACEOF |
---|
3793 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3794 | # Check that the compiler produces executables we can run. If not, either |
---|
3795 | # the compiler is broken, or we cross compile. |
---|
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3797 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3798 | if test "$cross_compiling" != yes; then |
---|
3799 | { { ac_try="$ac_link" |
---|
3800 | case "(($ac_try" in |
---|
3801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3802 | *) ac_try_echo=$ac_try;; |
---|
3803 | esac |
---|
3804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3805 | $as_echo "$ac_try_echo"; } >&5 |
---|
3806 | (eval "$ac_link") 2>&5 |
---|
3807 | ac_status=$? |
---|
3808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3809 | test $ac_status = 0; } |
---|
3810 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3811 | { { case "(($ac_try" in |
---|
3812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3813 | *) ac_try_echo=$ac_try;; |
---|
3814 | esac |
---|
3815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3816 | $as_echo "$ac_try_echo"; } >&5 |
---|
3817 | (eval "$ac_try") 2>&5 |
---|
3818 | ac_status=$? |
---|
3819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3820 | test $ac_status = 0; }; }; then |
---|
3821 | cross_compiling=no |
---|
3822 | else |
---|
3823 | if test "$cross_compiling" = maybe; then |
---|
3824 | cross_compiling=yes |
---|
3825 | else |
---|
3826 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3827 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3828 | as_fn_error $? "cannot run C++ compiled programs. |
---|
3829 | If you meant to cross compile, use \`--host'. |
---|
3830 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3831 | fi |
---|
3832 | fi |
---|
3833 | fi |
---|
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3835 | $as_echo "$cross_compiling" >&6; } |
---|
3836 | |
---|
3837 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3838 | ac_clean_files=$ac_clean_files_save |
---|
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3840 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3841 | if ${ac_cv_objext+:} false; then : |
---|
3842 | $as_echo_n "(cached) " >&6 |
---|
3843 | else |
---|
3844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3845 | /* end confdefs.h. */ |
---|
3846 | |
---|
3847 | int |
---|
3848 | main () |
---|
3849 | { |
---|
3850 | |
---|
3851 | ; |
---|
3852 | return 0; |
---|
3853 | } |
---|
3854 | _ACEOF |
---|
3855 | rm -f conftest.o conftest.obj |
---|
3856 | if { { ac_try="$ac_compile" |
---|
3857 | case "(($ac_try" in |
---|
3858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3859 | *) ac_try_echo=$ac_try;; |
---|
3860 | esac |
---|
3861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3862 | $as_echo "$ac_try_echo"; } >&5 |
---|
3863 | (eval "$ac_compile") 2>&5 |
---|
3864 | ac_status=$? |
---|
3865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3866 | test $ac_status = 0; }; then : |
---|
3867 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3868 | test -f "$ac_file" || continue; |
---|
3869 | case $ac_file in |
---|
3870 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3871 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3872 | break;; |
---|
3873 | esac |
---|
3874 | done |
---|
3875 | else |
---|
3876 | $as_echo "$as_me: failed program was:" >&5 |
---|
3877 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3878 | |
---|
3879 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3880 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3881 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3882 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3883 | fi |
---|
3884 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3885 | fi |
---|
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3887 | $as_echo "$ac_cv_objext" >&6; } |
---|
3888 | OBJEXT=$ac_cv_objext |
---|
3889 | ac_objext=$OBJEXT |
---|
3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
3891 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
3892 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
---|
3893 | $as_echo_n "(cached) " >&6 |
---|
3894 | else |
---|
3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3896 | /* end confdefs.h. */ |
---|
3897 | |
---|
3898 | int |
---|
3899 | main () |
---|
3900 | { |
---|
3901 | #ifndef __GNUC__ |
---|
3902 | choke me |
---|
3903 | #endif |
---|
3904 | |
---|
3905 | ; |
---|
3906 | return 0; |
---|
3907 | } |
---|
3908 | _ACEOF |
---|
3909 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3910 | ac_compiler_gnu=yes |
---|
3911 | else |
---|
3912 | ac_compiler_gnu=no |
---|
3913 | fi |
---|
3914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3915 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3916 | |
---|
3917 | fi |
---|
3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3919 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3920 | if test $ac_compiler_gnu = yes; then |
---|
3921 | GXX=yes |
---|
3922 | else |
---|
3923 | GXX= |
---|
3924 | fi |
---|
3925 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3926 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
3928 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
3929 | if ${ac_cv_prog_cxx_g+:} false; then : |
---|
3930 | $as_echo_n "(cached) " >&6 |
---|
3931 | else |
---|
3932 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3933 | ac_cxx_werror_flag=yes |
---|
3934 | ac_cv_prog_cxx_g=no |
---|
3935 | CXXFLAGS="-g" |
---|
3936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3937 | /* end confdefs.h. */ |
---|
3938 | |
---|
3939 | int |
---|
3940 | main () |
---|
3941 | { |
---|
3942 | |
---|
3943 | ; |
---|
3944 | return 0; |
---|
3945 | } |
---|
3946 | _ACEOF |
---|
3947 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3948 | ac_cv_prog_cxx_g=yes |
---|
3949 | else |
---|
3950 | CXXFLAGS="" |
---|
3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3952 | /* end confdefs.h. */ |
---|
3953 | |
---|
3954 | int |
---|
3955 | main () |
---|
3956 | { |
---|
3957 | |
---|
3958 | ; |
---|
3959 | return 0; |
---|
3960 | } |
---|
3961 | _ACEOF |
---|
3962 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3963 | |
---|
3964 | else |
---|
3965 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3966 | CXXFLAGS="-g" |
---|
3967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3968 | /* end confdefs.h. */ |
---|
3969 | |
---|
3970 | int |
---|
3971 | main () |
---|
3972 | { |
---|
3973 | |
---|
3974 | ; |
---|
3975 | return 0; |
---|
3976 | } |
---|
3977 | _ACEOF |
---|
3978 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
3979 | ac_cv_prog_cxx_g=yes |
---|
3980 | fi |
---|
3981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3982 | fi |
---|
3983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3984 | fi |
---|
3985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3986 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3987 | fi |
---|
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
3989 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
3990 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3991 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3992 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3993 | if test "$GXX" = yes; then |
---|
3994 | CXXFLAGS="-g -O2" |
---|
3995 | else |
---|
3996 | CXXFLAGS="-g" |
---|
3997 | fi |
---|
3998 | else |
---|
3999 | if test "$GXX" = yes; then |
---|
4000 | CXXFLAGS="-O2" |
---|
4001 | else |
---|
4002 | CXXFLAGS= |
---|
4003 | fi |
---|
4004 | fi |
---|
4005 | ac_ext=c |
---|
4006 | ac_cpp='$CPP $CPPFLAGS' |
---|
4007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4010 | DEPDIR="${am__leading_dot}deps" |
---|
4011 | |
---|
4012 | ac_config_commands="$ac_config_commands depfiles" |
---|
4013 | |
---|
4014 | |
---|
4015 | am_make=${MAKE-make} |
---|
4016 | cat > confinc << 'END' |
---|
4017 | am__doit: |
---|
4018 | @echo this is the am__doit target |
---|
4019 | .PHONY: am__doit |
---|
4020 | END |
---|
4021 | # If we don't find an include directive, just comment out the code. |
---|
4022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
4023 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
4024 | am__include="#" |
---|
4025 | am__quote= |
---|
4026 | _am_result=none |
---|
4027 | # First try GNU make style include. |
---|
4028 | echo "include confinc" > confmf |
---|
4029 | # Ignore all kinds of additional output from 'make'. |
---|
4030 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
4031 | *the\ am__doit\ target*) |
---|
4032 | am__include=include |
---|
4033 | am__quote= |
---|
4034 | _am_result=GNU |
---|
4035 | ;; |
---|
4036 | esac |
---|
4037 | # Now try BSD make style include. |
---|
4038 | if test "$am__include" = "#"; then |
---|
4039 | echo '.include "confinc"' > confmf |
---|
4040 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
4041 | *the\ am__doit\ target*) |
---|
4042 | am__include=.include |
---|
4043 | am__quote="\"" |
---|
4044 | _am_result=BSD |
---|
4045 | ;; |
---|
4046 | esac |
---|
4047 | fi |
---|
4048 | |
---|
4049 | |
---|
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
4051 | $as_echo "$_am_result" >&6; } |
---|
4052 | rm -f confinc confmf |
---|
4053 | |
---|
4054 | # Check whether --enable-dependency-tracking was given. |
---|
4055 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
4056 | enableval=$enable_dependency_tracking; |
---|
4057 | fi |
---|
4058 | |
---|
4059 | if test "x$enable_dependency_tracking" != xno; then |
---|
4060 | am_depcomp="$ac_aux_dir/depcomp" |
---|
4061 | AMDEPBACKSLASH='\' |
---|
4062 | am__nodep='_no' |
---|
4063 | fi |
---|
4064 | if test "x$enable_dependency_tracking" != xno; then |
---|
4065 | AMDEP_TRUE= |
---|
4066 | AMDEP_FALSE='#' |
---|
4067 | else |
---|
4068 | AMDEP_TRUE='#' |
---|
4069 | AMDEP_FALSE= |
---|
4070 | fi |
---|
4071 | |
---|
4072 | |
---|
4073 | |
---|
4074 | depcc="$CXX" am_compiler_list= |
---|
4075 | |
---|
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4077 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4078 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
---|
4079 | $as_echo_n "(cached) " >&6 |
---|
4080 | else |
---|
4081 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4082 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4083 | # making bogus files that we don't know about and never remove. For |
---|
4084 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4085 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4086 | # in D". |
---|
4087 | rm -rf conftest.dir |
---|
4088 | mkdir conftest.dir |
---|
4089 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4090 | # using a relative directory. |
---|
4091 | cp "$am_depcomp" conftest.dir |
---|
4092 | cd conftest.dir |
---|
4093 | # We will build objects and dependencies in a subdirectory because |
---|
4094 | # it helps to detect inapplicable dependency modes. For instance |
---|
4095 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4096 | # side effect of compilation, but ICC will put the dependencies in |
---|
4097 | # the current directory while Tru64 will put them in the object |
---|
4098 | # directory. |
---|
4099 | mkdir sub |
---|
4100 | |
---|
4101 | am_cv_CXX_dependencies_compiler_type=none |
---|
4102 | if test "$am_compiler_list" = ""; then |
---|
4103 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4104 | fi |
---|
4105 | am__universal=false |
---|
4106 | case " $depcc " in #( |
---|
4107 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4108 | esac |
---|
4109 | |
---|
4110 | for depmode in $am_compiler_list; do |
---|
4111 | # Setup a source with many dependencies, because some compilers |
---|
4112 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4113 | # we should not choose a depcomp mode which is confused by this. |
---|
4114 | # |
---|
4115 | # We need to recreate these files for each test, as the compiler may |
---|
4116 | # overwrite some of them when testing with obscure command lines. |
---|
4117 | # This happens at least with the AIX C compiler. |
---|
4118 | : > sub/conftest.c |
---|
4119 | for i in 1 2 3 4 5 6; do |
---|
4120 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4121 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4122 | # Solaris 10 /bin/sh. |
---|
4123 | echo '/* dummy */' > sub/conftst$i.h |
---|
4124 | done |
---|
4125 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4126 | |
---|
4127 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4128 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4129 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4130 | # versions had trouble with output in subdirs. |
---|
4131 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4132 | am__minus_obj="-o $am__obj" |
---|
4133 | case $depmode in |
---|
4134 | gcc) |
---|
4135 | # This depmode causes a compiler race in universal mode. |
---|
4136 | test "$am__universal" = false || continue |
---|
4137 | ;; |
---|
4138 | nosideeffect) |
---|
4139 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4140 | # only be used when explicitly requested. |
---|
4141 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4142 | continue |
---|
4143 | else |
---|
4144 | break |
---|
4145 | fi |
---|
4146 | ;; |
---|
4147 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4148 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4149 | # not run yet. These depmodes are late enough in the game, and |
---|
4150 | # so weak that their functioning should not be impacted. |
---|
4151 | am__obj=conftest.${OBJEXT-o} |
---|
4152 | am__minus_obj= |
---|
4153 | ;; |
---|
4154 | none) break ;; |
---|
4155 | esac |
---|
4156 | if depmode=$depmode \ |
---|
4157 | source=sub/conftest.c object=$am__obj \ |
---|
4158 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4159 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4160 | >/dev/null 2>conftest.err && |
---|
4161 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4162 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4163 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4164 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4165 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4166 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4167 | # that says an option was ignored or not supported. |
---|
4168 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4169 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4170 | # The diagnosis changed in icc 8.0: |
---|
4171 | # icc: Command line remark: option '-MP' not supported |
---|
4172 | if (grep 'ignoring option' conftest.err || |
---|
4173 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4174 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4175 | break |
---|
4176 | fi |
---|
4177 | fi |
---|
4178 | done |
---|
4179 | |
---|
4180 | cd .. |
---|
4181 | rm -rf conftest.dir |
---|
4182 | else |
---|
4183 | am_cv_CXX_dependencies_compiler_type=none |
---|
4184 | fi |
---|
4185 | |
---|
4186 | fi |
---|
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4188 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4189 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4190 | |
---|
4191 | if |
---|
4192 | test "x$enable_dependency_tracking" != xno \ |
---|
4193 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4194 | am__fastdepCXX_TRUE= |
---|
4195 | am__fastdepCXX_FALSE='#' |
---|
4196 | else |
---|
4197 | am__fastdepCXX_TRUE='#' |
---|
4198 | am__fastdepCXX_FALSE= |
---|
4199 | fi |
---|
4200 | |
---|
4201 | |
---|
4202 | ac_ext=c |
---|
4203 | ac_cpp='$CPP $CPPFLAGS' |
---|
4204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4207 | if test -n "$ac_tool_prefix"; then |
---|
4208 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
4209 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4211 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4212 | if ${ac_cv_prog_CC+:} false; then : |
---|
4213 | $as_echo_n "(cached) " >&6 |
---|
4214 | else |
---|
4215 | if test -n "$CC"; then |
---|
4216 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4217 | else |
---|
4218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4219 | for as_dir in $PATH |
---|
4220 | do |
---|
4221 | IFS=$as_save_IFS |
---|
4222 | test -z "$as_dir" && as_dir=. |
---|
4223 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4225 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
4226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4227 | break 2 |
---|
4228 | fi |
---|
4229 | done |
---|
4230 | done |
---|
4231 | IFS=$as_save_IFS |
---|
4232 | |
---|
4233 | fi |
---|
4234 | fi |
---|
4235 | CC=$ac_cv_prog_CC |
---|
4236 | if test -n "$CC"; then |
---|
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4238 | $as_echo "$CC" >&6; } |
---|
4239 | else |
---|
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4241 | $as_echo "no" >&6; } |
---|
4242 | fi |
---|
4243 | |
---|
4244 | |
---|
4245 | fi |
---|
4246 | if test -z "$ac_cv_prog_CC"; then |
---|
4247 | ac_ct_CC=$CC |
---|
4248 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
4249 | set dummy gcc; ac_word=$2 |
---|
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4251 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4252 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4253 | $as_echo_n "(cached) " >&6 |
---|
4254 | else |
---|
4255 | if test -n "$ac_ct_CC"; then |
---|
4256 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4257 | else |
---|
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4265 | ac_cv_prog_ac_ct_CC="gcc" |
---|
4266 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4267 | break 2 |
---|
4268 | fi |
---|
4269 | done |
---|
4270 | done |
---|
4271 | IFS=$as_save_IFS |
---|
4272 | |
---|
4273 | fi |
---|
4274 | fi |
---|
4275 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4276 | if test -n "$ac_ct_CC"; then |
---|
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4278 | $as_echo "$ac_ct_CC" >&6; } |
---|
4279 | else |
---|
4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4281 | $as_echo "no" >&6; } |
---|
4282 | fi |
---|
4283 | |
---|
4284 | if test "x$ac_ct_CC" = x; then |
---|
4285 | CC="" |
---|
4286 | else |
---|
4287 | case $cross_compiling:$ac_tool_warned in |
---|
4288 | yes:) |
---|
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4290 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4291 | ac_tool_warned=yes ;; |
---|
4292 | esac |
---|
4293 | CC=$ac_ct_CC |
---|
4294 | fi |
---|
4295 | else |
---|
4296 | CC="$ac_cv_prog_CC" |
---|
4297 | fi |
---|
4298 | |
---|
4299 | if test -z "$CC"; then |
---|
4300 | if test -n "$ac_tool_prefix"; then |
---|
4301 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
4302 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4304 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4305 | if ${ac_cv_prog_CC+:} false; then : |
---|
4306 | $as_echo_n "(cached) " >&6 |
---|
4307 | else |
---|
4308 | if test -n "$CC"; then |
---|
4309 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4310 | else |
---|
4311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4312 | for as_dir in $PATH |
---|
4313 | do |
---|
4314 | IFS=$as_save_IFS |
---|
4315 | test -z "$as_dir" && as_dir=. |
---|
4316 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4318 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
4319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4320 | break 2 |
---|
4321 | fi |
---|
4322 | done |
---|
4323 | done |
---|
4324 | IFS=$as_save_IFS |
---|
4325 | |
---|
4326 | fi |
---|
4327 | fi |
---|
4328 | CC=$ac_cv_prog_CC |
---|
4329 | if test -n "$CC"; then |
---|
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4331 | $as_echo "$CC" >&6; } |
---|
4332 | else |
---|
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4334 | $as_echo "no" >&6; } |
---|
4335 | fi |
---|
4336 | |
---|
4337 | |
---|
4338 | fi |
---|
4339 | fi |
---|
4340 | if test -z "$CC"; then |
---|
4341 | # Extract the first word of "cc", so it can be a program name with args. |
---|
4342 | set dummy cc; ac_word=$2 |
---|
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4344 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4345 | if ${ac_cv_prog_CC+:} false; then : |
---|
4346 | $as_echo_n "(cached) " >&6 |
---|
4347 | else |
---|
4348 | if test -n "$CC"; then |
---|
4349 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4350 | else |
---|
4351 | ac_prog_rejected=no |
---|
4352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4353 | for as_dir in $PATH |
---|
4354 | do |
---|
4355 | IFS=$as_save_IFS |
---|
4356 | test -z "$as_dir" && as_dir=. |
---|
4357 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4359 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
4360 | ac_prog_rejected=yes |
---|
4361 | continue |
---|
4362 | fi |
---|
4363 | ac_cv_prog_CC="cc" |
---|
4364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4365 | break 2 |
---|
4366 | fi |
---|
4367 | done |
---|
4368 | done |
---|
4369 | IFS=$as_save_IFS |
---|
4370 | |
---|
4371 | if test $ac_prog_rejected = yes; then |
---|
4372 | # We found a bogon in the path, so make sure we never use it. |
---|
4373 | set dummy $ac_cv_prog_CC |
---|
4374 | shift |
---|
4375 | if test $# != 0; then |
---|
4376 | # We chose a different compiler from the bogus one. |
---|
4377 | # However, it has the same basename, so the bogon will be chosen |
---|
4378 | # first if we set CC to just the basename; use the full file name. |
---|
4379 | shift |
---|
4380 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
4381 | fi |
---|
4382 | fi |
---|
4383 | fi |
---|
4384 | fi |
---|
4385 | CC=$ac_cv_prog_CC |
---|
4386 | if test -n "$CC"; then |
---|
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4388 | $as_echo "$CC" >&6; } |
---|
4389 | else |
---|
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4391 | $as_echo "no" >&6; } |
---|
4392 | fi |
---|
4393 | |
---|
4394 | |
---|
4395 | fi |
---|
4396 | if test -z "$CC"; then |
---|
4397 | if test -n "$ac_tool_prefix"; then |
---|
4398 | for ac_prog in cl.exe |
---|
4399 | do |
---|
4400 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4401 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4403 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4404 | if ${ac_cv_prog_CC+:} false; then : |
---|
4405 | $as_echo_n "(cached) " >&6 |
---|
4406 | else |
---|
4407 | if test -n "$CC"; then |
---|
4408 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
4409 | else |
---|
4410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4411 | for as_dir in $PATH |
---|
4412 | do |
---|
4413 | IFS=$as_save_IFS |
---|
4414 | test -z "$as_dir" && as_dir=. |
---|
4415 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4416 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4417 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
4418 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4419 | break 2 |
---|
4420 | fi |
---|
4421 | done |
---|
4422 | done |
---|
4423 | IFS=$as_save_IFS |
---|
4424 | |
---|
4425 | fi |
---|
4426 | fi |
---|
4427 | CC=$ac_cv_prog_CC |
---|
4428 | if test -n "$CC"; then |
---|
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
4430 | $as_echo "$CC" >&6; } |
---|
4431 | else |
---|
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4433 | $as_echo "no" >&6; } |
---|
4434 | fi |
---|
4435 | |
---|
4436 | |
---|
4437 | test -n "$CC" && break |
---|
4438 | done |
---|
4439 | fi |
---|
4440 | if test -z "$CC"; then |
---|
4441 | ac_ct_CC=$CC |
---|
4442 | for ac_prog in cl.exe |
---|
4443 | do |
---|
4444 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4445 | set dummy $ac_prog; ac_word=$2 |
---|
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4447 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4448 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
4449 | $as_echo_n "(cached) " >&6 |
---|
4450 | else |
---|
4451 | if test -n "$ac_ct_CC"; then |
---|
4452 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
4453 | else |
---|
4454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4455 | for as_dir in $PATH |
---|
4456 | do |
---|
4457 | IFS=$as_save_IFS |
---|
4458 | test -z "$as_dir" && as_dir=. |
---|
4459 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4461 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
4462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4463 | break 2 |
---|
4464 | fi |
---|
4465 | done |
---|
4466 | done |
---|
4467 | IFS=$as_save_IFS |
---|
4468 | |
---|
4469 | fi |
---|
4470 | fi |
---|
4471 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
4472 | if test -n "$ac_ct_CC"; then |
---|
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
4474 | $as_echo "$ac_ct_CC" >&6; } |
---|
4475 | else |
---|
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4477 | $as_echo "no" >&6; } |
---|
4478 | fi |
---|
4479 | |
---|
4480 | |
---|
4481 | test -n "$ac_ct_CC" && break |
---|
4482 | done |
---|
4483 | |
---|
4484 | if test "x$ac_ct_CC" = x; then |
---|
4485 | CC="" |
---|
4486 | else |
---|
4487 | case $cross_compiling:$ac_tool_warned in |
---|
4488 | yes:) |
---|
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4490 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4491 | ac_tool_warned=yes ;; |
---|
4492 | esac |
---|
4493 | CC=$ac_ct_CC |
---|
4494 | fi |
---|
4495 | fi |
---|
4496 | |
---|
4497 | fi |
---|
4498 | |
---|
4499 | |
---|
4500 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4501 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4502 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
4503 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4504 | |
---|
4505 | # Provide some information about the compiler. |
---|
4506 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
4507 | set X $ac_compile |
---|
4508 | ac_compiler=$2 |
---|
4509 | for ac_option in --version -v -V -qversion; do |
---|
4510 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
4511 | case "(($ac_try" in |
---|
4512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4513 | *) ac_try_echo=$ac_try;; |
---|
4514 | esac |
---|
4515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
4516 | $as_echo "$ac_try_echo"; } >&5 |
---|
4517 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
4518 | ac_status=$? |
---|
4519 | if test -s conftest.err; then |
---|
4520 | sed '10a\ |
---|
4521 | ... rest of stderr output deleted ... |
---|
4522 | 10q' conftest.err >conftest.er1 |
---|
4523 | cat conftest.er1 >&5 |
---|
4524 | fi |
---|
4525 | rm -f conftest.er1 conftest.err |
---|
4526 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
4527 | test $ac_status = 0; } |
---|
4528 | done |
---|
4529 | |
---|
4530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
4531 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
4532 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
4533 | $as_echo_n "(cached) " >&6 |
---|
4534 | else |
---|
4535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4536 | /* end confdefs.h. */ |
---|
4537 | |
---|
4538 | int |
---|
4539 | main () |
---|
4540 | { |
---|
4541 | #ifndef __GNUC__ |
---|
4542 | choke me |
---|
4543 | #endif |
---|
4544 | |
---|
4545 | ; |
---|
4546 | return 0; |
---|
4547 | } |
---|
4548 | _ACEOF |
---|
4549 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4550 | ac_compiler_gnu=yes |
---|
4551 | else |
---|
4552 | ac_compiler_gnu=no |
---|
4553 | fi |
---|
4554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4555 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
4556 | |
---|
4557 | fi |
---|
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
4559 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
4560 | if test $ac_compiler_gnu = yes; then |
---|
4561 | GCC=yes |
---|
4562 | else |
---|
4563 | GCC= |
---|
4564 | fi |
---|
4565 | ac_test_CFLAGS=${CFLAGS+set} |
---|
4566 | ac_save_CFLAGS=$CFLAGS |
---|
4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
4568 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
4569 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
4570 | $as_echo_n "(cached) " >&6 |
---|
4571 | else |
---|
4572 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
4573 | ac_c_werror_flag=yes |
---|
4574 | ac_cv_prog_cc_g=no |
---|
4575 | CFLAGS="-g" |
---|
4576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4577 | /* end confdefs.h. */ |
---|
4578 | |
---|
4579 | int |
---|
4580 | main () |
---|
4581 | { |
---|
4582 | |
---|
4583 | ; |
---|
4584 | return 0; |
---|
4585 | } |
---|
4586 | _ACEOF |
---|
4587 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4588 | ac_cv_prog_cc_g=yes |
---|
4589 | else |
---|
4590 | CFLAGS="" |
---|
4591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4592 | /* end confdefs.h. */ |
---|
4593 | |
---|
4594 | int |
---|
4595 | main () |
---|
4596 | { |
---|
4597 | |
---|
4598 | ; |
---|
4599 | return 0; |
---|
4600 | } |
---|
4601 | _ACEOF |
---|
4602 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4603 | |
---|
4604 | else |
---|
4605 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4606 | CFLAGS="-g" |
---|
4607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4608 | /* end confdefs.h. */ |
---|
4609 | |
---|
4610 | int |
---|
4611 | main () |
---|
4612 | { |
---|
4613 | |
---|
4614 | ; |
---|
4615 | return 0; |
---|
4616 | } |
---|
4617 | _ACEOF |
---|
4618 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4619 | ac_cv_prog_cc_g=yes |
---|
4620 | fi |
---|
4621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4622 | fi |
---|
4623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4624 | fi |
---|
4625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4626 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
4627 | fi |
---|
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
4629 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
4630 | if test "$ac_test_CFLAGS" = set; then |
---|
4631 | CFLAGS=$ac_save_CFLAGS |
---|
4632 | elif test $ac_cv_prog_cc_g = yes; then |
---|
4633 | if test "$GCC" = yes; then |
---|
4634 | CFLAGS="-g -O2" |
---|
4635 | else |
---|
4636 | CFLAGS="-g" |
---|
4637 | fi |
---|
4638 | else |
---|
4639 | if test "$GCC" = yes; then |
---|
4640 | CFLAGS="-O2" |
---|
4641 | else |
---|
4642 | CFLAGS= |
---|
4643 | fi |
---|
4644 | fi |
---|
4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
4646 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
4647 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
4648 | $as_echo_n "(cached) " >&6 |
---|
4649 | else |
---|
4650 | ac_cv_prog_cc_c89=no |
---|
4651 | ac_save_CC=$CC |
---|
4652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4653 | /* end confdefs.h. */ |
---|
4654 | #include <stdarg.h> |
---|
4655 | #include <stdio.h> |
---|
4656 | struct stat; |
---|
4657 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
4658 | struct buf { int x; }; |
---|
4659 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
4660 | static char *e (p, i) |
---|
4661 | char **p; |
---|
4662 | int i; |
---|
4663 | { |
---|
4664 | return p[i]; |
---|
4665 | } |
---|
4666 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
4667 | { |
---|
4668 | char *s; |
---|
4669 | va_list v; |
---|
4670 | va_start (v,p); |
---|
4671 | s = g (p, va_arg (v,int)); |
---|
4672 | va_end (v); |
---|
4673 | return s; |
---|
4674 | } |
---|
4675 | |
---|
4676 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
4677 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
4678 | These don't provoke an error unfortunately, instead are silently treated |
---|
4679 | as 'x'. The following induces an error, until -std is added to get |
---|
4680 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
4681 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
4682 | that's true only with -std. */ |
---|
4683 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
4684 | |
---|
4685 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
4686 | inside strings and character constants. */ |
---|
4687 | #define FOO(x) 'x' |
---|
4688 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
4689 | |
---|
4690 | int test (int i, double x); |
---|
4691 | struct s1 {int (*f) (int a);}; |
---|
4692 | struct s2 {int (*f) (double a);}; |
---|
4693 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
4694 | int argc; |
---|
4695 | char **argv; |
---|
4696 | int |
---|
4697 | main () |
---|
4698 | { |
---|
4699 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
4700 | ; |
---|
4701 | return 0; |
---|
4702 | } |
---|
4703 | _ACEOF |
---|
4704 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
4705 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
4706 | do |
---|
4707 | CC="$ac_save_CC $ac_arg" |
---|
4708 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
4709 | ac_cv_prog_cc_c89=$ac_arg |
---|
4710 | fi |
---|
4711 | rm -f core conftest.err conftest.$ac_objext |
---|
4712 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
4713 | done |
---|
4714 | rm -f conftest.$ac_ext |
---|
4715 | CC=$ac_save_CC |
---|
4716 | |
---|
4717 | fi |
---|
4718 | # AC_CACHE_VAL |
---|
4719 | case "x$ac_cv_prog_cc_c89" in |
---|
4720 | x) |
---|
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
4722 | $as_echo "none needed" >&6; } ;; |
---|
4723 | xno) |
---|
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
4725 | $as_echo "unsupported" >&6; } ;; |
---|
4726 | *) |
---|
4727 | CC="$CC $ac_cv_prog_cc_c89" |
---|
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
4729 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
4730 | esac |
---|
4731 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
4732 | |
---|
4733 | fi |
---|
4734 | |
---|
4735 | ac_ext=c |
---|
4736 | ac_cpp='$CPP $CPPFLAGS' |
---|
4737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4740 | |
---|
4741 | ac_ext=c |
---|
4742 | ac_cpp='$CPP $CPPFLAGS' |
---|
4743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
---|
4747 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
---|
4748 | if ${am_cv_prog_cc_c_o+:} false; then : |
---|
4749 | $as_echo_n "(cached) " >&6 |
---|
4750 | else |
---|
4751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4752 | /* end confdefs.h. */ |
---|
4753 | |
---|
4754 | int |
---|
4755 | main () |
---|
4756 | { |
---|
4757 | |
---|
4758 | ; |
---|
4759 | return 0; |
---|
4760 | } |
---|
4761 | _ACEOF |
---|
4762 | # Make sure it works both with $CC and with simple cc. |
---|
4763 | # Following AC_PROG_CC_C_O, we do the test twice because some |
---|
4764 | # compilers refuse to overwrite an existing .o file with -o, |
---|
4765 | # though they will create one. |
---|
4766 | am_cv_prog_cc_c_o=yes |
---|
4767 | for am_i in 1 2; do |
---|
4768 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
---|
4769 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
---|
4770 | ac_status=$? |
---|
4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4772 | (exit $ac_status); } \ |
---|
4773 | && test -f conftest2.$ac_objext; then |
---|
4774 | : OK |
---|
4775 | else |
---|
4776 | am_cv_prog_cc_c_o=no |
---|
4777 | break |
---|
4778 | fi |
---|
4779 | done |
---|
4780 | rm -f core conftest* |
---|
4781 | unset am_i |
---|
4782 | fi |
---|
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
---|
4784 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
---|
4785 | if test "$am_cv_prog_cc_c_o" != yes; then |
---|
4786 | # Losing compiler, so override with the script. |
---|
4787 | # FIXME: It is wrong to rewrite CC. |
---|
4788 | # But if we don't then we get into trouble of one sort or another. |
---|
4789 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
4790 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
4791 | CC="$am_aux_dir/compile $CC" |
---|
4792 | fi |
---|
4793 | ac_ext=c |
---|
4794 | ac_cpp='$CPP $CPPFLAGS' |
---|
4795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4798 | |
---|
4799 | |
---|
4800 | depcc="$CC" am_compiler_list= |
---|
4801 | |
---|
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4803 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4804 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
4805 | $as_echo_n "(cached) " >&6 |
---|
4806 | else |
---|
4807 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4808 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4809 | # making bogus files that we don't know about and never remove. For |
---|
4810 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4811 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4812 | # in D". |
---|
4813 | rm -rf conftest.dir |
---|
4814 | mkdir conftest.dir |
---|
4815 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4816 | # using a relative directory. |
---|
4817 | cp "$am_depcomp" conftest.dir |
---|
4818 | cd conftest.dir |
---|
4819 | # We will build objects and dependencies in a subdirectory because |
---|
4820 | # it helps to detect inapplicable dependency modes. For instance |
---|
4821 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4822 | # side effect of compilation, but ICC will put the dependencies in |
---|
4823 | # the current directory while Tru64 will put them in the object |
---|
4824 | # directory. |
---|
4825 | mkdir sub |
---|
4826 | |
---|
4827 | am_cv_CC_dependencies_compiler_type=none |
---|
4828 | if test "$am_compiler_list" = ""; then |
---|
4829 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4830 | fi |
---|
4831 | am__universal=false |
---|
4832 | case " $depcc " in #( |
---|
4833 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
4834 | esac |
---|
4835 | |
---|
4836 | for depmode in $am_compiler_list; do |
---|
4837 | # Setup a source with many dependencies, because some compilers |
---|
4838 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4839 | # we should not choose a depcomp mode which is confused by this. |
---|
4840 | # |
---|
4841 | # We need to recreate these files for each test, as the compiler may |
---|
4842 | # overwrite some of them when testing with obscure command lines. |
---|
4843 | # This happens at least with the AIX C compiler. |
---|
4844 | : > sub/conftest.c |
---|
4845 | for i in 1 2 3 4 5 6; do |
---|
4846 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4847 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4848 | # Solaris 10 /bin/sh. |
---|
4849 | echo '/* dummy */' > sub/conftst$i.h |
---|
4850 | done |
---|
4851 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4852 | |
---|
4853 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4854 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4855 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4856 | # versions had trouble with output in subdirs. |
---|
4857 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4858 | am__minus_obj="-o $am__obj" |
---|
4859 | case $depmode in |
---|
4860 | gcc) |
---|
4861 | # This depmode causes a compiler race in universal mode. |
---|
4862 | test "$am__universal" = false || continue |
---|
4863 | ;; |
---|
4864 | nosideeffect) |
---|
4865 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4866 | # only be used when explicitly requested. |
---|
4867 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4868 | continue |
---|
4869 | else |
---|
4870 | break |
---|
4871 | fi |
---|
4872 | ;; |
---|
4873 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
4874 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
4875 | # not run yet. These depmodes are late enough in the game, and |
---|
4876 | # so weak that their functioning should not be impacted. |
---|
4877 | am__obj=conftest.${OBJEXT-o} |
---|
4878 | am__minus_obj= |
---|
4879 | ;; |
---|
4880 | none) break ;; |
---|
4881 | esac |
---|
4882 | if depmode=$depmode \ |
---|
4883 | source=sub/conftest.c object=$am__obj \ |
---|
4884 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4885 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
4886 | >/dev/null 2>conftest.err && |
---|
4887 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4888 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4889 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
4890 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4891 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4892 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4893 | # that says an option was ignored or not supported. |
---|
4894 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4895 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4896 | # The diagnosis changed in icc 8.0: |
---|
4897 | # icc: Command line remark: option '-MP' not supported |
---|
4898 | if (grep 'ignoring option' conftest.err || |
---|
4899 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4900 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
4901 | break |
---|
4902 | fi |
---|
4903 | fi |
---|
4904 | done |
---|
4905 | |
---|
4906 | cd .. |
---|
4907 | rm -rf conftest.dir |
---|
4908 | else |
---|
4909 | am_cv_CC_dependencies_compiler_type=none |
---|
4910 | fi |
---|
4911 | |
---|
4912 | fi |
---|
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
4914 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
4915 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
4916 | |
---|
4917 | if |
---|
4918 | test "x$enable_dependency_tracking" != xno \ |
---|
4919 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
4920 | am__fastdepCC_TRUE= |
---|
4921 | am__fastdepCC_FALSE='#' |
---|
4922 | else |
---|
4923 | am__fastdepCC_TRUE='#' |
---|
4924 | am__fastdepCC_FALSE= |
---|
4925 | fi |
---|
4926 | |
---|
4927 | |
---|
4928 | # By default we simply use the C compiler to build assembly code. |
---|
4929 | |
---|
4930 | test "${CCAS+set}" = set || CCAS=$CC |
---|
4931 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS |
---|
4932 | |
---|
4933 | |
---|
4934 | |
---|
4935 | depcc="$CCAS" am_compiler_list= |
---|
4936 | |
---|
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
4938 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
4939 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
---|
4940 | $as_echo_n "(cached) " >&6 |
---|
4941 | else |
---|
4942 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4943 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4944 | # making bogus files that we don't know about and never remove. For |
---|
4945 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4946 | # making a dummy file named 'D' -- because '-MD' means "put the output |
---|
4947 | # in D". |
---|
4948 | rm -rf conftest.dir |
---|
4949 | mkdir conftest.dir |
---|
4950 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4951 | # using a relative directory. |
---|
4952 | cp "$am_depcomp" conftest.dir |
---|
4953 | cd conftest.dir |
---|
4954 | # We will build objects and dependencies in a subdirectory because |
---|
4955 | # it helps to detect inapplicable dependency modes. For instance |
---|
4956 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4957 | # side effect of compilation, but ICC will put the dependencies in |
---|
4958 | # the current directory while Tru64 will put them in the object |
---|
4959 | # directory. |
---|
4960 | mkdir sub |
---|
4961 | |
---|
4962 | am_cv_CCAS_dependencies_compiler_type=none |
---|
4963 | if test "$am_compiler_list" = ""; then |
---|
4964 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4965 | fi |
---|
4966 | am__universal=false |
---|
4967 | |
---|
4968 | |
---|
4969 | for depmode in $am_compiler_list; do |
---|
4970 | # Setup a source with many dependencies, because some compilers |
---|
4971 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4972 | # we should not choose a depcomp mode which is confused by this. |
---|
4973 | # |
---|
4974 | # We need to recreate these files for each test, as the compiler may |
---|
4975 | # overwrite some of them when testing with obscure command lines. |
---|
4976 | # This happens at least with the AIX C compiler. |
---|
4977 | : > sub/conftest.c |
---|
4978 | for i in 1 2 3 4 5 6; do |
---|
4979 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4980 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
---|
4981 | # Solaris 10 /bin/sh. |
---|
4982 | echo '/* dummy */' > sub/conftst$i.h |
---|
4983 | done |
---|
4984 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4985 | |
---|
4986 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
---|
4987 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4988 | # handle '-M -o', and we need to detect this. Also, some Intel |
---|
4989 | # versions had trouble with output in subdirs. |
---|
4990 | am__obj=sub/conftest.${OBJEXT-o} |
---|
4991 | am__minus_obj="-o $am__obj" |
---|
4992 | case $depmode in |
---|
4993 | gcc) |
---|
4994 | # This depmode causes a compiler race in universal mode. |
---|
4995 | test "$am__universal" = false || continue |
---|
4996 | ;; |
---|
4997 | nosideeffect) |
---|
4998 | # After this tag, mechanisms are not by side-effect, so they'll |
---|
4999 | # only be used when explicitly requested. |
---|
5000 | if test "x$enable_dependency_tracking" = xyes; then |
---|
5001 | continue |
---|
5002 | else |
---|
5003 | break |
---|
5004 | fi |
---|
5005 | ;; |
---|
5006 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
---|
5007 | # This compiler won't grok '-c -o', but also, the minuso test has |
---|
5008 | # not run yet. These depmodes are late enough in the game, and |
---|
5009 | # so weak that their functioning should not be impacted. |
---|
5010 | am__obj=conftest.${OBJEXT-o} |
---|
5011 | am__minus_obj= |
---|
5012 | ;; |
---|
5013 | none) break ;; |
---|
5014 | esac |
---|
5015 | if depmode=$depmode \ |
---|
5016 | source=sub/conftest.c object=$am__obj \ |
---|
5017 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
5018 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
5019 | >/dev/null 2>conftest.err && |
---|
5020 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5021 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
5022 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
5023 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
5024 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
5025 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
5026 | # that says an option was ignored or not supported. |
---|
5027 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
5028 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
5029 | # The diagnosis changed in icc 8.0: |
---|
5030 | # icc: Command line remark: option '-MP' not supported |
---|
5031 | if (grep 'ignoring option' conftest.err || |
---|
5032 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
5033 | am_cv_CCAS_dependencies_compiler_type=$depmode |
---|
5034 | break |
---|
5035 | fi |
---|
5036 | fi |
---|
5037 | done |
---|
5038 | |
---|
5039 | cd .. |
---|
5040 | rm -rf conftest.dir |
---|
5041 | else |
---|
5042 | am_cv_CCAS_dependencies_compiler_type=none |
---|
5043 | fi |
---|
5044 | |
---|
5045 | fi |
---|
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 |
---|
5047 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } |
---|
5048 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type |
---|
5049 | |
---|
5050 | if |
---|
5051 | test "x$enable_dependency_tracking" != xno \ |
---|
5052 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then |
---|
5053 | am__fastdepCCAS_TRUE= |
---|
5054 | am__fastdepCCAS_FALSE='#' |
---|
5055 | else |
---|
5056 | am__fastdepCCAS_TRUE='#' |
---|
5057 | am__fastdepCCAS_FALSE= |
---|
5058 | fi |
---|
5059 | |
---|
5060 | |
---|
5061 | # deprecated |
---|
5062 | # These are often not installed and people miss seeing the "no", so stop the configure. |
---|
5063 | for ac_prog in 'bison -y' byacc |
---|
5064 | do |
---|
5065 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5066 | set dummy $ac_prog; ac_word=$2 |
---|
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5068 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5069 | if ${ac_cv_prog_YACC+:} false; then : |
---|
5070 | $as_echo_n "(cached) " >&6 |
---|
5071 | else |
---|
5072 | if test -n "$YACC"; then |
---|
5073 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
5074 | else |
---|
5075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5076 | for as_dir in $PATH |
---|
5077 | do |
---|
5078 | IFS=$as_save_IFS |
---|
5079 | test -z "$as_dir" && as_dir=. |
---|
5080 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5082 | ac_cv_prog_YACC="$ac_prog" |
---|
5083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5084 | break 2 |
---|
5085 | fi |
---|
5086 | done |
---|
5087 | done |
---|
5088 | IFS=$as_save_IFS |
---|
5089 | |
---|
5090 | fi |
---|
5091 | fi |
---|
5092 | YACC=$ac_cv_prog_YACC |
---|
5093 | if test -n "$YACC"; then |
---|
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
---|
5095 | $as_echo "$YACC" >&6; } |
---|
5096 | else |
---|
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5098 | $as_echo "no" >&6; } |
---|
5099 | fi |
---|
5100 | |
---|
5101 | |
---|
5102 | test -n "$YACC" && break |
---|
5103 | done |
---|
5104 | test -n "$YACC" || YACC="yacc" |
---|
5105 | |
---|
5106 | if test "${YACC}" = "yacc" ; then echo "Error: bison required." ; exit 1 ; fi |
---|
5107 | |
---|
5108 | for ac_prog in flex lex |
---|
5109 | do |
---|
5110 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5111 | set dummy $ac_prog; ac_word=$2 |
---|
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5113 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5114 | if ${ac_cv_prog_LEX+:} false; then : |
---|
5115 | $as_echo_n "(cached) " >&6 |
---|
5116 | else |
---|
5117 | if test -n "$LEX"; then |
---|
5118 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
5119 | else |
---|
5120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5121 | for as_dir in $PATH |
---|
5122 | do |
---|
5123 | IFS=$as_save_IFS |
---|
5124 | test -z "$as_dir" && as_dir=. |
---|
5125 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5126 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5127 | ac_cv_prog_LEX="$ac_prog" |
---|
5128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5129 | break 2 |
---|
5130 | fi |
---|
5131 | done |
---|
5132 | done |
---|
5133 | IFS=$as_save_IFS |
---|
5134 | |
---|
5135 | fi |
---|
5136 | fi |
---|
5137 | LEX=$ac_cv_prog_LEX |
---|
5138 | if test -n "$LEX"; then |
---|
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
---|
5140 | $as_echo "$LEX" >&6; } |
---|
5141 | else |
---|
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5143 | $as_echo "no" >&6; } |
---|
5144 | fi |
---|
5145 | |
---|
5146 | |
---|
5147 | test -n "$LEX" && break |
---|
5148 | done |
---|
5149 | test -n "$LEX" || LEX=":" |
---|
5150 | |
---|
5151 | if test "x$LEX" != "x:"; then |
---|
5152 | cat >conftest.l <<_ACEOF |
---|
5153 | %% |
---|
5154 | a { ECHO; } |
---|
5155 | b { REJECT; } |
---|
5156 | c { yymore (); } |
---|
5157 | d { yyless (1); } |
---|
5158 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
---|
5159 | yyless ((input () != 0)); } |
---|
5160 | f { unput (yytext[0]); } |
---|
5161 | . { BEGIN INITIAL; } |
---|
5162 | %% |
---|
5163 | #ifdef YYTEXT_POINTER |
---|
5164 | extern char *yytext; |
---|
5165 | #endif |
---|
5166 | int |
---|
5167 | main (void) |
---|
5168 | { |
---|
5169 | return ! yylex () + ! yywrap (); |
---|
5170 | } |
---|
5171 | _ACEOF |
---|
5172 | { { ac_try="$LEX conftest.l" |
---|
5173 | case "(($ac_try" in |
---|
5174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5175 | *) ac_try_echo=$ac_try;; |
---|
5176 | esac |
---|
5177 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
5178 | $as_echo "$ac_try_echo"; } >&5 |
---|
5179 | (eval "$LEX conftest.l") 2>&5 |
---|
5180 | ac_status=$? |
---|
5181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5182 | test $ac_status = 0; } |
---|
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
---|
5184 | $as_echo_n "checking lex output file root... " >&6; } |
---|
5185 | if ${ac_cv_prog_lex_root+:} false; then : |
---|
5186 | $as_echo_n "(cached) " >&6 |
---|
5187 | else |
---|
5188 | |
---|
5189 | if test -f lex.yy.c; then |
---|
5190 | ac_cv_prog_lex_root=lex.yy |
---|
5191 | elif test -f lexyy.c; then |
---|
5192 | ac_cv_prog_lex_root=lexyy |
---|
5193 | else |
---|
5194 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
---|
5195 | fi |
---|
5196 | fi |
---|
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
---|
5198 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
---|
5199 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
5200 | |
---|
5201 | if test -z "${LEXLIB+set}"; then |
---|
5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
---|
5203 | $as_echo_n "checking lex library... " >&6; } |
---|
5204 | if ${ac_cv_lib_lex+:} false; then : |
---|
5205 | $as_echo_n "(cached) " >&6 |
---|
5206 | else |
---|
5207 | |
---|
5208 | ac_save_LIBS=$LIBS |
---|
5209 | ac_cv_lib_lex='none needed' |
---|
5210 | for ac_lib in '' -lfl -ll; do |
---|
5211 | LIBS="$ac_lib $ac_save_LIBS" |
---|
5212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5213 | /* end confdefs.h. */ |
---|
5214 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5215 | _ACEOF |
---|
5216 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5217 | ac_cv_lib_lex=$ac_lib |
---|
5218 | fi |
---|
5219 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5220 | conftest$ac_exeext conftest.$ac_ext |
---|
5221 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
5222 | done |
---|
5223 | LIBS=$ac_save_LIBS |
---|
5224 | |
---|
5225 | fi |
---|
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
---|
5227 | $as_echo "$ac_cv_lib_lex" >&6; } |
---|
5228 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
5229 | fi |
---|
5230 | |
---|
5231 | |
---|
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
---|
5233 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
---|
5234 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
---|
5235 | $as_echo_n "(cached) " >&6 |
---|
5236 | else |
---|
5237 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
5238 | # default is implementation-dependent. Figure out which it is, since |
---|
5239 | # not all implementations provide the %pointer and %array declarations. |
---|
5240 | ac_cv_prog_lex_yytext_pointer=no |
---|
5241 | ac_save_LIBS=$LIBS |
---|
5242 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
5243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5244 | /* end confdefs.h. */ |
---|
5245 | |
---|
5246 | #define YYTEXT_POINTER 1 |
---|
5247 | `cat $LEX_OUTPUT_ROOT.c` |
---|
5248 | _ACEOF |
---|
5249 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5250 | ac_cv_prog_lex_yytext_pointer=yes |
---|
5251 | fi |
---|
5252 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5253 | conftest$ac_exeext conftest.$ac_ext |
---|
5254 | LIBS=$ac_save_LIBS |
---|
5255 | |
---|
5256 | fi |
---|
5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
5258 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
5259 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
5260 | |
---|
5261 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
---|
5262 | |
---|
5263 | fi |
---|
5264 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
5265 | |
---|
5266 | fi |
---|
5267 | if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi |
---|
5268 | |
---|
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
5270 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
5271 | set x ${MAKE-make} |
---|
5272 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
5273 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
5274 | $as_echo_n "(cached) " >&6 |
---|
5275 | else |
---|
5276 | cat >conftest.make <<\_ACEOF |
---|
5277 | SHELL = /bin/sh |
---|
5278 | all: |
---|
5279 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
5280 | _ACEOF |
---|
5281 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
5282 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
5283 | *@@@%%%=?*=@@@%%%*) |
---|
5284 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
5285 | *) |
---|
5286 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
5287 | esac |
---|
5288 | rm -f conftest.make |
---|
5289 | fi |
---|
5290 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
5292 | $as_echo "yes" >&6; } |
---|
5293 | SET_MAKE= |
---|
5294 | else |
---|
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5296 | $as_echo "no" >&6; } |
---|
5297 | SET_MAKE="MAKE=${MAKE-make}" |
---|
5298 | fi |
---|
5299 | |
---|
5300 | if test -n "$ac_tool_prefix"; then |
---|
5301 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
5302 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5304 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5305 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
5306 | $as_echo_n "(cached) " >&6 |
---|
5307 | else |
---|
5308 | if test -n "$RANLIB"; then |
---|
5309 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
5310 | else |
---|
5311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5312 | for as_dir in $PATH |
---|
5313 | do |
---|
5314 | IFS=$as_save_IFS |
---|
5315 | test -z "$as_dir" && as_dir=. |
---|
5316 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5317 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5318 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
5319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5320 | break 2 |
---|
5321 | fi |
---|
5322 | done |
---|
5323 | done |
---|
5324 | IFS=$as_save_IFS |
---|
5325 | |
---|
5326 | fi |
---|
5327 | fi |
---|
5328 | RANLIB=$ac_cv_prog_RANLIB |
---|
5329 | if test -n "$RANLIB"; then |
---|
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
5331 | $as_echo "$RANLIB" >&6; } |
---|
5332 | else |
---|
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5334 | $as_echo "no" >&6; } |
---|
5335 | fi |
---|
5336 | |
---|
5337 | |
---|
5338 | fi |
---|
5339 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
5340 | ac_ct_RANLIB=$RANLIB |
---|
5341 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
5342 | set dummy ranlib; ac_word=$2 |
---|
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5344 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5345 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
5346 | $as_echo_n "(cached) " >&6 |
---|
5347 | else |
---|
5348 | if test -n "$ac_ct_RANLIB"; then |
---|
5349 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
5350 | else |
---|
5351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5352 | for as_dir in $PATH |
---|
5353 | do |
---|
5354 | IFS=$as_save_IFS |
---|
5355 | test -z "$as_dir" && as_dir=. |
---|
5356 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5357 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5358 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
5359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5360 | break 2 |
---|
5361 | fi |
---|
5362 | done |
---|
5363 | done |
---|
5364 | IFS=$as_save_IFS |
---|
5365 | |
---|
5366 | fi |
---|
5367 | fi |
---|
5368 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
5369 | if test -n "$ac_ct_RANLIB"; then |
---|
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
5371 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
5372 | else |
---|
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5374 | $as_echo "no" >&6; } |
---|
5375 | fi |
---|
5376 | |
---|
5377 | if test "x$ac_ct_RANLIB" = x; then |
---|
5378 | RANLIB=":" |
---|
5379 | else |
---|
5380 | case $cross_compiling:$ac_tool_warned in |
---|
5381 | yes:) |
---|
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5383 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5384 | ac_tool_warned=yes ;; |
---|
5385 | esac |
---|
5386 | RANLIB=$ac_ct_RANLIB |
---|
5387 | fi |
---|
5388 | else |
---|
5389 | RANLIB="$ac_cv_prog_RANLIB" |
---|
5390 | fi |
---|
5391 | |
---|
5392 | |
---|
5393 | # Checks for libraries. |
---|
5394 | |
---|
5395 | # Checks for header files. |
---|
5396 | ac_ext=c |
---|
5397 | ac_cpp='$CPP $CPPFLAGS' |
---|
5398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
5402 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
5403 | # On Suns, sometimes $CPP names a directory. |
---|
5404 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5405 | CPP= |
---|
5406 | fi |
---|
5407 | if test -z "$CPP"; then |
---|
5408 | if ${ac_cv_prog_CPP+:} false; then : |
---|
5409 | $as_echo_n "(cached) " >&6 |
---|
5410 | else |
---|
5411 | # Double quotes because CPP needs to be expanded |
---|
5412 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5413 | do |
---|
5414 | ac_preproc_ok=false |
---|
5415 | for ac_c_preproc_warn_flag in '' yes |
---|
5416 | do |
---|
5417 | # Use a header file that comes with gcc, so configuring glibc |
---|
5418 | # with a fresh cross-compiler works. |
---|
5419 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5420 | # <limits.h> exists even on freestanding compilers. |
---|
5421 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5422 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5424 | /* end confdefs.h. */ |
---|
5425 | #ifdef __STDC__ |
---|
5426 | # include <limits.h> |
---|
5427 | #else |
---|
5428 | # include <assert.h> |
---|
5429 | #endif |
---|
5430 | Syntax error |
---|
5431 | _ACEOF |
---|
5432 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5433 | |
---|
5434 | else |
---|
5435 | # Broken: fails on valid input. |
---|
5436 | continue |
---|
5437 | fi |
---|
5438 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5439 | |
---|
5440 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5441 | # can be detected and how. |
---|
5442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5443 | /* end confdefs.h. */ |
---|
5444 | #include <ac_nonexistent.h> |
---|
5445 | _ACEOF |
---|
5446 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5447 | # Broken: success on invalid input. |
---|
5448 | continue |
---|
5449 | else |
---|
5450 | # Passes both tests. |
---|
5451 | ac_preproc_ok=: |
---|
5452 | break |
---|
5453 | fi |
---|
5454 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5455 | |
---|
5456 | done |
---|
5457 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5458 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5459 | if $ac_preproc_ok; then : |
---|
5460 | break |
---|
5461 | fi |
---|
5462 | |
---|
5463 | done |
---|
5464 | ac_cv_prog_CPP=$CPP |
---|
5465 | |
---|
5466 | fi |
---|
5467 | CPP=$ac_cv_prog_CPP |
---|
5468 | else |
---|
5469 | ac_cv_prog_CPP=$CPP |
---|
5470 | fi |
---|
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
5472 | $as_echo "$CPP" >&6; } |
---|
5473 | ac_preproc_ok=false |
---|
5474 | for ac_c_preproc_warn_flag in '' yes |
---|
5475 | do |
---|
5476 | # Use a header file that comes with gcc, so configuring glibc |
---|
5477 | # with a fresh cross-compiler works. |
---|
5478 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5479 | # <limits.h> exists even on freestanding compilers. |
---|
5480 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5481 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5483 | /* end confdefs.h. */ |
---|
5484 | #ifdef __STDC__ |
---|
5485 | # include <limits.h> |
---|
5486 | #else |
---|
5487 | # include <assert.h> |
---|
5488 | #endif |
---|
5489 | Syntax error |
---|
5490 | _ACEOF |
---|
5491 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5492 | |
---|
5493 | else |
---|
5494 | # Broken: fails on valid input. |
---|
5495 | continue |
---|
5496 | fi |
---|
5497 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5498 | |
---|
5499 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5500 | # can be detected and how. |
---|
5501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5502 | /* end confdefs.h. */ |
---|
5503 | #include <ac_nonexistent.h> |
---|
5504 | _ACEOF |
---|
5505 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
5506 | # Broken: success on invalid input. |
---|
5507 | continue |
---|
5508 | else |
---|
5509 | # Passes both tests. |
---|
5510 | ac_preproc_ok=: |
---|
5511 | break |
---|
5512 | fi |
---|
5513 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
5514 | |
---|
5515 | done |
---|
5516 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5517 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
5518 | if $ac_preproc_ok; then : |
---|
5519 | |
---|
5520 | else |
---|
5521 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
5522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
5523 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
5524 | See \`config.log' for more details" "$LINENO" 5; } |
---|
5525 | fi |
---|
5526 | |
---|
5527 | ac_ext=c |
---|
5528 | ac_cpp='$CPP $CPPFLAGS' |
---|
5529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5532 | |
---|
5533 | |
---|
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
5535 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
5536 | if ${ac_cv_path_GREP+:} false; then : |
---|
5537 | $as_echo_n "(cached) " >&6 |
---|
5538 | else |
---|
5539 | if test -z "$GREP"; then |
---|
5540 | ac_path_GREP_found=false |
---|
5541 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5543 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5544 | do |
---|
5545 | IFS=$as_save_IFS |
---|
5546 | test -z "$as_dir" && as_dir=. |
---|
5547 | for ac_prog in grep ggrep; do |
---|
5548 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5549 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5550 | as_fn_executable_p "$ac_path_GREP" || continue |
---|
5551 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5552 | # Check for GNU $ac_path_GREP |
---|
5553 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5554 | *GNU*) |
---|
5555 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5556 | *) |
---|
5557 | ac_count=0 |
---|
5558 | $as_echo_n 0123456789 >"conftest.in" |
---|
5559 | while : |
---|
5560 | do |
---|
5561 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5562 | mv "conftest.tmp" "conftest.in" |
---|
5563 | cp "conftest.in" "conftest.nl" |
---|
5564 | $as_echo 'GREP' >> "conftest.nl" |
---|
5565 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5566 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5567 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5568 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5569 | # Best one so far, save it but keep looking for a better one |
---|
5570 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5571 | ac_path_GREP_max=$ac_count |
---|
5572 | fi |
---|
5573 | # 10*(2^10) chars as input seems more than enough |
---|
5574 | test $ac_count -gt 10 && break |
---|
5575 | done |
---|
5576 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5577 | esac |
---|
5578 | |
---|
5579 | $ac_path_GREP_found && break 3 |
---|
5580 | done |
---|
5581 | done |
---|
5582 | done |
---|
5583 | IFS=$as_save_IFS |
---|
5584 | if test -z "$ac_cv_path_GREP"; then |
---|
5585 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5586 | fi |
---|
5587 | else |
---|
5588 | ac_cv_path_GREP=$GREP |
---|
5589 | fi |
---|
5590 | |
---|
5591 | fi |
---|
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
5593 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
5594 | GREP="$ac_cv_path_GREP" |
---|
5595 | |
---|
5596 | |
---|
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
5598 | $as_echo_n "checking for egrep... " >&6; } |
---|
5599 | if ${ac_cv_path_EGREP+:} false; then : |
---|
5600 | $as_echo_n "(cached) " >&6 |
---|
5601 | else |
---|
5602 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5603 | then ac_cv_path_EGREP="$GREP -E" |
---|
5604 | else |
---|
5605 | if test -z "$EGREP"; then |
---|
5606 | ac_path_EGREP_found=false |
---|
5607 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5609 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5610 | do |
---|
5611 | IFS=$as_save_IFS |
---|
5612 | test -z "$as_dir" && as_dir=. |
---|
5613 | for ac_prog in egrep; do |
---|
5614 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5615 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5616 | as_fn_executable_p "$ac_path_EGREP" || continue |
---|
5617 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5618 | # Check for GNU $ac_path_EGREP |
---|
5619 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5620 | *GNU*) |
---|
5621 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5622 | *) |
---|
5623 | ac_count=0 |
---|
5624 | $as_echo_n 0123456789 >"conftest.in" |
---|
5625 | while : |
---|
5626 | do |
---|
5627 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5628 | mv "conftest.tmp" "conftest.in" |
---|
5629 | cp "conftest.in" "conftest.nl" |
---|
5630 | $as_echo 'EGREP' >> "conftest.nl" |
---|
5631 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5632 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5633 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
5634 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5635 | # Best one so far, save it but keep looking for a better one |
---|
5636 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5637 | ac_path_EGREP_max=$ac_count |
---|
5638 | fi |
---|
5639 | # 10*(2^10) chars as input seems more than enough |
---|
5640 | test $ac_count -gt 10 && break |
---|
5641 | done |
---|
5642 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5643 | esac |
---|
5644 | |
---|
5645 | $ac_path_EGREP_found && break 3 |
---|
5646 | done |
---|
5647 | done |
---|
5648 | done |
---|
5649 | IFS=$as_save_IFS |
---|
5650 | if test -z "$ac_cv_path_EGREP"; then |
---|
5651 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
5652 | fi |
---|
5653 | else |
---|
5654 | ac_cv_path_EGREP=$EGREP |
---|
5655 | fi |
---|
5656 | |
---|
5657 | fi |
---|
5658 | fi |
---|
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
5660 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
5661 | EGREP="$ac_cv_path_EGREP" |
---|
5662 | |
---|
5663 | |
---|
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
5665 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
5666 | if ${ac_cv_header_stdc+:} false; then : |
---|
5667 | $as_echo_n "(cached) " >&6 |
---|
5668 | else |
---|
5669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5670 | /* end confdefs.h. */ |
---|
5671 | #include <stdlib.h> |
---|
5672 | #include <stdarg.h> |
---|
5673 | #include <string.h> |
---|
5674 | #include <float.h> |
---|
5675 | |
---|
5676 | int |
---|
5677 | main () |
---|
5678 | { |
---|
5679 | |
---|
5680 | ; |
---|
5681 | return 0; |
---|
5682 | } |
---|
5683 | _ACEOF |
---|
5684 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5685 | ac_cv_header_stdc=yes |
---|
5686 | else |
---|
5687 | ac_cv_header_stdc=no |
---|
5688 | fi |
---|
5689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5690 | |
---|
5691 | if test $ac_cv_header_stdc = yes; then |
---|
5692 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5694 | /* end confdefs.h. */ |
---|
5695 | #include <string.h> |
---|
5696 | |
---|
5697 | _ACEOF |
---|
5698 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5699 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
5700 | |
---|
5701 | else |
---|
5702 | ac_cv_header_stdc=no |
---|
5703 | fi |
---|
5704 | rm -f conftest* |
---|
5705 | |
---|
5706 | fi |
---|
5707 | |
---|
5708 | if test $ac_cv_header_stdc = yes; then |
---|
5709 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
5710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5711 | /* end confdefs.h. */ |
---|
5712 | #include <stdlib.h> |
---|
5713 | |
---|
5714 | _ACEOF |
---|
5715 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5716 | $EGREP "free" >/dev/null 2>&1; then : |
---|
5717 | |
---|
5718 | else |
---|
5719 | ac_cv_header_stdc=no |
---|
5720 | fi |
---|
5721 | rm -f conftest* |
---|
5722 | |
---|
5723 | fi |
---|
5724 | |
---|
5725 | if test $ac_cv_header_stdc = yes; then |
---|
5726 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
5727 | if test "$cross_compiling" = yes; then : |
---|
5728 | : |
---|
5729 | else |
---|
5730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5731 | /* end confdefs.h. */ |
---|
5732 | #include <ctype.h> |
---|
5733 | #include <stdlib.h> |
---|
5734 | #if ((' ' & 0x0FF) == 0x020) |
---|
5735 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
5736 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
5737 | #else |
---|
5738 | # define ISLOWER(c) \ |
---|
5739 | (('a' <= (c) && (c) <= 'i') \ |
---|
5740 | || ('j' <= (c) && (c) <= 'r') \ |
---|
5741 | || ('s' <= (c) && (c) <= 'z')) |
---|
5742 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
5743 | #endif |
---|
5744 | |
---|
5745 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
5746 | int |
---|
5747 | main () |
---|
5748 | { |
---|
5749 | int i; |
---|
5750 | for (i = 0; i < 256; i++) |
---|
5751 | if (XOR (islower (i), ISLOWER (i)) |
---|
5752 | || toupper (i) != TOUPPER (i)) |
---|
5753 | return 2; |
---|
5754 | return 0; |
---|
5755 | } |
---|
5756 | _ACEOF |
---|
5757 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5758 | |
---|
5759 | else |
---|
5760 | ac_cv_header_stdc=no |
---|
5761 | fi |
---|
5762 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5763 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5764 | fi |
---|
5765 | |
---|
5766 | fi |
---|
5767 | fi |
---|
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
5769 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
5770 | if test $ac_cv_header_stdc = yes; then |
---|
5771 | |
---|
5772 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
5773 | |
---|
5774 | fi |
---|
5775 | |
---|
5776 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
5777 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
5778 | inttypes.h stdint.h unistd.h |
---|
5779 | do : |
---|
5780 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5781 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
5782 | " |
---|
5783 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5784 | cat >>confdefs.h <<_ACEOF |
---|
5785 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5786 | _ACEOF |
---|
5787 | |
---|
5788 | fi |
---|
5789 | |
---|
5790 | done |
---|
5791 | |
---|
5792 | |
---|
5793 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
5794 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
5795 | |
---|
5796 | else |
---|
5797 | |
---|
5798 | cat >>confdefs.h <<_ACEOF |
---|
5799 | #define size_t unsigned int |
---|
5800 | _ACEOF |
---|
5801 | |
---|
5802 | fi |
---|
5803 | |
---|
5804 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
5805 | # for constant arguments. Useless! |
---|
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
---|
5807 | $as_echo_n "checking for working alloca.h... " >&6; } |
---|
5808 | if ${ac_cv_working_alloca_h+:} false; then : |
---|
5809 | $as_echo_n "(cached) " >&6 |
---|
5810 | else |
---|
5811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5812 | /* end confdefs.h. */ |
---|
5813 | #include <alloca.h> |
---|
5814 | int |
---|
5815 | main () |
---|
5816 | { |
---|
5817 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
5818 | if (p) return 0; |
---|
5819 | ; |
---|
5820 | return 0; |
---|
5821 | } |
---|
5822 | _ACEOF |
---|
5823 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5824 | ac_cv_working_alloca_h=yes |
---|
5825 | else |
---|
5826 | ac_cv_working_alloca_h=no |
---|
5827 | fi |
---|
5828 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5829 | conftest$ac_exeext conftest.$ac_ext |
---|
5830 | fi |
---|
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
---|
5832 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
---|
5833 | if test $ac_cv_working_alloca_h = yes; then |
---|
5834 | |
---|
5835 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
---|
5836 | |
---|
5837 | fi |
---|
5838 | |
---|
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
---|
5840 | $as_echo_n "checking for alloca... " >&6; } |
---|
5841 | if ${ac_cv_func_alloca_works+:} false; then : |
---|
5842 | $as_echo_n "(cached) " >&6 |
---|
5843 | else |
---|
5844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5845 | /* end confdefs.h. */ |
---|
5846 | #ifdef __GNUC__ |
---|
5847 | # define alloca __builtin_alloca |
---|
5848 | #else |
---|
5849 | # ifdef _MSC_VER |
---|
5850 | # include <malloc.h> |
---|
5851 | # define alloca _alloca |
---|
5852 | # else |
---|
5853 | # ifdef HAVE_ALLOCA_H |
---|
5854 | # include <alloca.h> |
---|
5855 | # else |
---|
5856 | # ifdef _AIX |
---|
5857 | #pragma alloca |
---|
5858 | # else |
---|
5859 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
5860 | void *alloca (size_t); |
---|
5861 | # endif |
---|
5862 | # endif |
---|
5863 | # endif |
---|
5864 | # endif |
---|
5865 | #endif |
---|
5866 | |
---|
5867 | int |
---|
5868 | main () |
---|
5869 | { |
---|
5870 | char *p = (char *) alloca (1); |
---|
5871 | if (p) return 0; |
---|
5872 | ; |
---|
5873 | return 0; |
---|
5874 | } |
---|
5875 | _ACEOF |
---|
5876 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5877 | ac_cv_func_alloca_works=yes |
---|
5878 | else |
---|
5879 | ac_cv_func_alloca_works=no |
---|
5880 | fi |
---|
5881 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5882 | conftest$ac_exeext conftest.$ac_ext |
---|
5883 | fi |
---|
5884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
---|
5885 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
---|
5886 | |
---|
5887 | if test $ac_cv_func_alloca_works = yes; then |
---|
5888 | |
---|
5889 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
---|
5890 | |
---|
5891 | else |
---|
5892 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
5893 | # that cause trouble. Some versions do not even contain alloca or |
---|
5894 | # contain a buggy version. If you still want to use their alloca, |
---|
5895 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
5896 | |
---|
5897 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
5898 | |
---|
5899 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
---|
5900 | |
---|
5901 | |
---|
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
5903 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
---|
5904 | if ${ac_cv_os_cray+:} false; then : |
---|
5905 | $as_echo_n "(cached) " >&6 |
---|
5906 | else |
---|
5907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5908 | /* end confdefs.h. */ |
---|
5909 | #if defined CRAY && ! defined CRAY2 |
---|
5910 | webecray |
---|
5911 | #else |
---|
5912 | wenotbecray |
---|
5913 | #endif |
---|
5914 | |
---|
5915 | _ACEOF |
---|
5916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5917 | $EGREP "webecray" >/dev/null 2>&1; then : |
---|
5918 | ac_cv_os_cray=yes |
---|
5919 | else |
---|
5920 | ac_cv_os_cray=no |
---|
5921 | fi |
---|
5922 | rm -f conftest* |
---|
5923 | |
---|
5924 | fi |
---|
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
---|
5926 | $as_echo "$ac_cv_os_cray" >&6; } |
---|
5927 | if test $ac_cv_os_cray = yes; then |
---|
5928 | for ac_func in _getb67 GETB67 getb67; do |
---|
5929 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5930 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
5931 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
5932 | |
---|
5933 | cat >>confdefs.h <<_ACEOF |
---|
5934 | #define CRAY_STACKSEG_END $ac_func |
---|
5935 | _ACEOF |
---|
5936 | |
---|
5937 | break |
---|
5938 | fi |
---|
5939 | |
---|
5940 | done |
---|
5941 | fi |
---|
5942 | |
---|
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
---|
5944 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
---|
5945 | if ${ac_cv_c_stack_direction+:} false; then : |
---|
5946 | $as_echo_n "(cached) " >&6 |
---|
5947 | else |
---|
5948 | if test "$cross_compiling" = yes; then : |
---|
5949 | ac_cv_c_stack_direction=0 |
---|
5950 | else |
---|
5951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5952 | /* end confdefs.h. */ |
---|
5953 | $ac_includes_default |
---|
5954 | int |
---|
5955 | find_stack_direction (int *addr, int depth) |
---|
5956 | { |
---|
5957 | int dir, dummy = 0; |
---|
5958 | if (! addr) |
---|
5959 | addr = &dummy; |
---|
5960 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
---|
5961 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
---|
5962 | return dir + dummy; |
---|
5963 | } |
---|
5964 | |
---|
5965 | int |
---|
5966 | main (int argc, char **argv) |
---|
5967 | { |
---|
5968 | return find_stack_direction (0, argc + !argv + 20) < 0; |
---|
5969 | } |
---|
5970 | _ACEOF |
---|
5971 | if ac_fn_c_try_run "$LINENO"; then : |
---|
5972 | ac_cv_c_stack_direction=1 |
---|
5973 | else |
---|
5974 | ac_cv_c_stack_direction=-1 |
---|
5975 | fi |
---|
5976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
5977 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
5978 | fi |
---|
5979 | |
---|
5980 | fi |
---|
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
---|
5982 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
---|
5983 | cat >>confdefs.h <<_ACEOF |
---|
5984 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
5985 | _ACEOF |
---|
5986 | |
---|
5987 | |
---|
5988 | fi |
---|
5989 | |
---|
5990 | for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h |
---|
5991 | do : |
---|
5992 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5993 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
5994 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
5995 | cat >>confdefs.h <<_ACEOF |
---|
5996 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5997 | _ACEOF |
---|
5998 | |
---|
5999 | fi |
---|
6000 | |
---|
6001 | done |
---|
6002 | |
---|
6003 | |
---|
6004 | # Checks for typedefs, structures, and compiler characteristics. |
---|
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
6006 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
6007 | if ${ac_cv_header_stdbool_h+:} false; then : |
---|
6008 | $as_echo_n "(cached) " >&6 |
---|
6009 | else |
---|
6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6011 | /* end confdefs.h. */ |
---|
6012 | |
---|
6013 | #include <stdbool.h> |
---|
6014 | #ifndef bool |
---|
6015 | "error: bool is not defined" |
---|
6016 | #endif |
---|
6017 | #ifndef false |
---|
6018 | "error: false is not defined" |
---|
6019 | #endif |
---|
6020 | #if false |
---|
6021 | "error: false is not 0" |
---|
6022 | #endif |
---|
6023 | #ifndef true |
---|
6024 | "error: true is not defined" |
---|
6025 | #endif |
---|
6026 | #if true != 1 |
---|
6027 | "error: true is not 1" |
---|
6028 | #endif |
---|
6029 | #ifndef __bool_true_false_are_defined |
---|
6030 | "error: __bool_true_false_are_defined is not defined" |
---|
6031 | #endif |
---|
6032 | |
---|
6033 | struct s { _Bool s: 1; _Bool t; } s; |
---|
6034 | |
---|
6035 | char a[true == 1 ? 1 : -1]; |
---|
6036 | char b[false == 0 ? 1 : -1]; |
---|
6037 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
6038 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
6039 | /* See body of main program for 'e'. */ |
---|
6040 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
6041 | char g[true]; |
---|
6042 | char h[sizeof (_Bool)]; |
---|
6043 | char i[sizeof s.t]; |
---|
6044 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
6045 | /* The following fails for |
---|
6046 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
6047 | _Bool n[m]; |
---|
6048 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
6049 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
6050 | /* Catch a bug in an HP-UX C compiler. See |
---|
6051 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
6052 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
6053 | */ |
---|
6054 | _Bool q = true; |
---|
6055 | _Bool *pq = &q; |
---|
6056 | |
---|
6057 | int |
---|
6058 | main () |
---|
6059 | { |
---|
6060 | |
---|
6061 | bool e = &s; |
---|
6062 | *pq |= q; |
---|
6063 | *pq |= ! q; |
---|
6064 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
6065 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
6066 | + !m + !n + !o + !p + !q + !pq); |
---|
6067 | |
---|
6068 | ; |
---|
6069 | return 0; |
---|
6070 | } |
---|
6071 | _ACEOF |
---|
6072 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6073 | ac_cv_header_stdbool_h=yes |
---|
6074 | else |
---|
6075 | ac_cv_header_stdbool_h=no |
---|
6076 | fi |
---|
6077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6078 | fi |
---|
6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
6080 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
6081 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
6082 | if test "x$ac_cv_type__Bool" = xyes; then : |
---|
6083 | |
---|
6084 | cat >>confdefs.h <<_ACEOF |
---|
6085 | #define HAVE__BOOL 1 |
---|
6086 | _ACEOF |
---|
6087 | |
---|
6088 | |
---|
6089 | fi |
---|
6090 | |
---|
6091 | |
---|
6092 | if test $ac_cv_header_stdbool_h = yes; then |
---|
6093 | |
---|
6094 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
6095 | |
---|
6096 | fi |
---|
6097 | |
---|
6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
6099 | $as_echo_n "checking for inline... " >&6; } |
---|
6100 | if ${ac_cv_c_inline+:} false; then : |
---|
6101 | $as_echo_n "(cached) " >&6 |
---|
6102 | else |
---|
6103 | ac_cv_c_inline=no |
---|
6104 | for ac_kw in inline __inline__ __inline; do |
---|
6105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6106 | /* end confdefs.h. */ |
---|
6107 | #ifndef __cplusplus |
---|
6108 | typedef int foo_t; |
---|
6109 | static $ac_kw foo_t static_foo () {return 0; } |
---|
6110 | $ac_kw foo_t foo () {return 0; } |
---|
6111 | #endif |
---|
6112 | |
---|
6113 | _ACEOF |
---|
6114 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6115 | ac_cv_c_inline=$ac_kw |
---|
6116 | fi |
---|
6117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6118 | test "$ac_cv_c_inline" != no && break |
---|
6119 | done |
---|
6120 | |
---|
6121 | fi |
---|
6122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
6123 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
6124 | |
---|
6125 | case $ac_cv_c_inline in |
---|
6126 | inline | yes) ;; |
---|
6127 | *) |
---|
6128 | case $ac_cv_c_inline in |
---|
6129 | no) ac_val=;; |
---|
6130 | *) ac_val=$ac_cv_c_inline;; |
---|
6131 | esac |
---|
6132 | cat >>confdefs.h <<_ACEOF |
---|
6133 | #ifndef __cplusplus |
---|
6134 | #define inline $ac_val |
---|
6135 | #endif |
---|
6136 | _ACEOF |
---|
6137 | ;; |
---|
6138 | esac |
---|
6139 | |
---|
6140 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
---|
6141 | case $ac_cv_c_int16_t in #( |
---|
6142 | no|yes) ;; #( |
---|
6143 | *) |
---|
6144 | |
---|
6145 | cat >>confdefs.h <<_ACEOF |
---|
6146 | #define int16_t $ac_cv_c_int16_t |
---|
6147 | _ACEOF |
---|
6148 | ;; |
---|
6149 | esac |
---|
6150 | |
---|
6151 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
---|
6152 | case $ac_cv_c_int32_t in #( |
---|
6153 | no|yes) ;; #( |
---|
6154 | *) |
---|
6155 | |
---|
6156 | cat >>confdefs.h <<_ACEOF |
---|
6157 | #define int32_t $ac_cv_c_int32_t |
---|
6158 | _ACEOF |
---|
6159 | ;; |
---|
6160 | esac |
---|
6161 | |
---|
6162 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
---|
6163 | case $ac_cv_c_int8_t in #( |
---|
6164 | no|yes) ;; #( |
---|
6165 | *) |
---|
6166 | |
---|
6167 | cat >>confdefs.h <<_ACEOF |
---|
6168 | #define int8_t $ac_cv_c_int8_t |
---|
6169 | _ACEOF |
---|
6170 | ;; |
---|
6171 | esac |
---|
6172 | |
---|
6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
---|
6174 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
---|
6175 | if ${ac_cv_c_restrict+:} false; then : |
---|
6176 | $as_echo_n "(cached) " >&6 |
---|
6177 | else |
---|
6178 | ac_cv_c_restrict=no |
---|
6179 | # The order here caters to the fact that C++ does not require restrict. |
---|
6180 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
---|
6181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6182 | /* end confdefs.h. */ |
---|
6183 | typedef int * int_ptr; |
---|
6184 | int foo (int_ptr $ac_kw ip) { |
---|
6185 | return ip[0]; |
---|
6186 | } |
---|
6187 | int |
---|
6188 | main () |
---|
6189 | { |
---|
6190 | int s[1]; |
---|
6191 | int * $ac_kw t = s; |
---|
6192 | t[0] = 0; |
---|
6193 | return foo(t) |
---|
6194 | ; |
---|
6195 | return 0; |
---|
6196 | } |
---|
6197 | _ACEOF |
---|
6198 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
6199 | ac_cv_c_restrict=$ac_kw |
---|
6200 | fi |
---|
6201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6202 | test "$ac_cv_c_restrict" != no && break |
---|
6203 | done |
---|
6204 | |
---|
6205 | fi |
---|
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
---|
6207 | $as_echo "$ac_cv_c_restrict" >&6; } |
---|
6208 | |
---|
6209 | case $ac_cv_c_restrict in |
---|
6210 | restrict) ;; |
---|
6211 | no) $as_echo "#define restrict /**/" >>confdefs.h |
---|
6212 | ;; |
---|
6213 | *) cat >>confdefs.h <<_ACEOF |
---|
6214 | #define restrict $ac_cv_c_restrict |
---|
6215 | _ACEOF |
---|
6216 | ;; |
---|
6217 | esac |
---|
6218 | |
---|
6219 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
---|
6220 | if test "x$ac_cv_type_size_t" = xyes; then : |
---|
6221 | |
---|
6222 | else |
---|
6223 | |
---|
6224 | cat >>confdefs.h <<_ACEOF |
---|
6225 | #define size_t unsigned int |
---|
6226 | _ACEOF |
---|
6227 | |
---|
6228 | fi |
---|
6229 | |
---|
6230 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
---|
6231 | case $ac_cv_c_uint16_t in #( |
---|
6232 | no|yes) ;; #( |
---|
6233 | *) |
---|
6234 | |
---|
6235 | |
---|
6236 | cat >>confdefs.h <<_ACEOF |
---|
6237 | #define uint16_t $ac_cv_c_uint16_t |
---|
6238 | _ACEOF |
---|
6239 | ;; |
---|
6240 | esac |
---|
6241 | |
---|
6242 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
---|
6243 | case $ac_cv_c_uint32_t in #( |
---|
6244 | no|yes) ;; #( |
---|
6245 | *) |
---|
6246 | |
---|
6247 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
---|
6248 | |
---|
6249 | |
---|
6250 | cat >>confdefs.h <<_ACEOF |
---|
6251 | #define uint32_t $ac_cv_c_uint32_t |
---|
6252 | _ACEOF |
---|
6253 | ;; |
---|
6254 | esac |
---|
6255 | |
---|
6256 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
---|
6257 | case $ac_cv_c_uint8_t in #( |
---|
6258 | no|yes) ;; #( |
---|
6259 | *) |
---|
6260 | |
---|
6261 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
---|
6262 | |
---|
6263 | |
---|
6264 | cat >>confdefs.h <<_ACEOF |
---|
6265 | #define uint8_t $ac_cv_c_uint8_t |
---|
6266 | _ACEOF |
---|
6267 | ;; |
---|
6268 | esac |
---|
6269 | |
---|
6270 | |
---|
6271 | # Checks for library functions. |
---|
6272 | for ac_func in memset putenv strchr strtol |
---|
6273 | do : |
---|
6274 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6275 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
6276 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
6277 | cat >>confdefs.h <<_ACEOF |
---|
6278 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6279 | _ACEOF |
---|
6280 | |
---|
6281 | fi |
---|
6282 | done |
---|
6283 | |
---|
6284 | |
---|
6285 | ac_config_files="$ac_config_files Makefile src/driver/Makefile src/Makefile src/benchmark/Makefile src/examples/Makefile src/tests/Makefile src/tests/preempt_longrun/Makefile src/prelude/Makefile src/libcfa/Makefile tools/Makefile tools/prettyprinter/Makefile" |
---|
6286 | |
---|
6287 | |
---|
6288 | ac_config_links="$ac_config_links src/tests/test.py:src/tests/test.py" |
---|
6289 | |
---|
6290 | |
---|
6291 | ac_config_files="$ac_config_files src/tests/config.py" |
---|
6292 | |
---|
6293 | cat >confcache <<\_ACEOF |
---|
6294 | # This file is a shell script that caches the results of configure |
---|
6295 | # tests run on this system so they can be shared between configure |
---|
6296 | # scripts and configure runs, see configure's option --config-cache. |
---|
6297 | # It is not useful on other systems. If it contains results you don't |
---|
6298 | # want to keep, you may remove or edit it. |
---|
6299 | # |
---|
6300 | # config.status only pays attention to the cache file if you give it |
---|
6301 | # the --recheck option to rerun configure. |
---|
6302 | # |
---|
6303 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6304 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6305 | # following values. |
---|
6306 | |
---|
6307 | _ACEOF |
---|
6308 | |
---|
6309 | # The following way of writing the cache mishandles newlines in values, |
---|
6310 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6311 | # So, we kill variables containing newlines. |
---|
6312 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6313 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6314 | ( |
---|
6315 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
6316 | eval ac_val=\$$ac_var |
---|
6317 | case $ac_val in #( |
---|
6318 | *${as_nl}*) |
---|
6319 | case $ac_var in #( |
---|
6320 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
6321 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
6322 | esac |
---|
6323 | case $ac_var in #( |
---|
6324 | _ | IFS | as_nl) ;; #( |
---|
6325 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
6326 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
6327 | esac ;; |
---|
6328 | esac |
---|
6329 | done |
---|
6330 | |
---|
6331 | (set) 2>&1 | |
---|
6332 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
6333 | *${as_nl}ac_space=\ *) |
---|
6334 | # `set' does not quote correctly, so add quotes: double-quote |
---|
6335 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
6336 | sed -n \ |
---|
6337 | "s/'/'\\\\''/g; |
---|
6338 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6339 | ;; #( |
---|
6340 | *) |
---|
6341 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6342 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
6343 | ;; |
---|
6344 | esac | |
---|
6345 | sort |
---|
6346 | ) | |
---|
6347 | sed ' |
---|
6348 | /^ac_cv_env_/b end |
---|
6349 | t clear |
---|
6350 | :clear |
---|
6351 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6352 | t end |
---|
6353 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6354 | :end' >>confcache |
---|
6355 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
6356 | if test -w "$cache_file"; then |
---|
6357 | if test "x$cache_file" != "x/dev/null"; then |
---|
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
6359 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
6360 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
6361 | cat confcache >"$cache_file" |
---|
6362 | else |
---|
6363 | case $cache_file in #( |
---|
6364 | */* | ?:*) |
---|
6365 | mv -f confcache "$cache_file"$$ && |
---|
6366 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
6367 | *) |
---|
6368 | mv -f confcache "$cache_file" ;; |
---|
6369 | esac |
---|
6370 | fi |
---|
6371 | fi |
---|
6372 | else |
---|
6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
6374 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
6375 | fi |
---|
6376 | fi |
---|
6377 | rm -f confcache |
---|
6378 | |
---|
6379 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6380 | # Let make expand exec_prefix. |
---|
6381 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6382 | |
---|
6383 | DEFS=-DHAVE_CONFIG_H |
---|
6384 | |
---|
6385 | ac_libobjs= |
---|
6386 | ac_ltlibobjs= |
---|
6387 | U= |
---|
6388 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6389 | # 1. Remove the extension, and $U if already installed. |
---|
6390 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
6391 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
6392 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
6393 | # will be set to the directory where LIBOBJS objects are built. |
---|
6394 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
6395 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
6396 | done |
---|
6397 | LIBOBJS=$ac_libobjs |
---|
6398 | |
---|
6399 | LTLIBOBJS=$ac_ltlibobjs |
---|
6400 | |
---|
6401 | |
---|
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
---|
6403 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
---|
6404 | if test -n "$am_sleep_pid"; then |
---|
6405 | # Hide warnings about reused PIDs. |
---|
6406 | wait $am_sleep_pid 2>/dev/null |
---|
6407 | fi |
---|
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
---|
6409 | $as_echo "done" >&6; } |
---|
6410 | if test -n "$EXEEXT"; then |
---|
6411 | am__EXEEXT_TRUE= |
---|
6412 | am__EXEEXT_FALSE='#' |
---|
6413 | else |
---|
6414 | am__EXEEXT_TRUE='#' |
---|
6415 | am__EXEEXT_FALSE= |
---|
6416 | fi |
---|
6417 | |
---|
6418 | if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then |
---|
6419 | as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined. |
---|
6420 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6421 | fi |
---|
6422 | if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then |
---|
6423 | as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined. |
---|
6424 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6425 | fi |
---|
6426 | if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then |
---|
6427 | as_fn_error $? "conditional \"BUILD_NO_LIB\" was never defined. |
---|
6428 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6429 | fi |
---|
6430 | if test -z "${BUILD_CONCURRENCY_TRUE}" && test -z "${BUILD_CONCURRENCY_FALSE}"; then |
---|
6431 | as_fn_error $? "conditional \"BUILD_CONCURRENCY\" was never defined. |
---|
6432 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6433 | fi |
---|
6434 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6435 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
6436 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6437 | fi |
---|
6438 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6439 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
---|
6440 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6441 | fi |
---|
6442 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6443 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
6444 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6445 | fi |
---|
6446 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then |
---|
6447 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
---|
6448 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
6449 | fi |
---|
6450 | |
---|
6451 | : "${CONFIG_STATUS=./config.status}" |
---|
6452 | ac_write_fail=0 |
---|
6453 | ac_clean_files_save=$ac_clean_files |
---|
6454 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
6456 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6457 | as_write_fail=0 |
---|
6458 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
6459 | #! $SHELL |
---|
6460 | # Generated by $as_me. |
---|
6461 | # Run this file to recreate the current configuration. |
---|
6462 | # Compiler output produced by configure, useful for debugging |
---|
6463 | # configure, is in config.log if it exists. |
---|
6464 | |
---|
6465 | debug=false |
---|
6466 | ac_cs_recheck=false |
---|
6467 | ac_cs_silent=false |
---|
6468 | |
---|
6469 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6470 | export SHELL |
---|
6471 | _ASEOF |
---|
6472 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
6473 | ## -------------------- ## |
---|
6474 | ## M4sh Initialization. ## |
---|
6475 | ## -------------------- ## |
---|
6476 | |
---|
6477 | # Be more Bourne compatible |
---|
6478 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
6479 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
6480 | emulate sh |
---|
6481 | NULLCMD=: |
---|
6482 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
6483 | # is contrary to our usage. Disable this feature. |
---|
6484 | alias -g '${1+"$@"}'='"$@"' |
---|
6485 | setopt NO_GLOB_SUBST |
---|
6486 | else |
---|
6487 | case `(set -o) 2>/dev/null` in #( |
---|
6488 | *posix*) : |
---|
6489 | set -o posix ;; #( |
---|
6490 | *) : |
---|
6491 | ;; |
---|
6492 | esac |
---|
6493 | fi |
---|
6494 | |
---|
6495 | |
---|
6496 | as_nl=' |
---|
6497 | ' |
---|
6498 | export as_nl |
---|
6499 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
6500 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
6501 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6502 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
6503 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
6504 | # but without wasting forks for bash or zsh. |
---|
6505 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
6506 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6507 | as_echo='print -r --' |
---|
6508 | as_echo_n='print -rn --' |
---|
6509 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
6510 | as_echo='printf %s\n' |
---|
6511 | as_echo_n='printf %s' |
---|
6512 | else |
---|
6513 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
6514 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
6515 | as_echo_n='/usr/ucb/echo -n' |
---|
6516 | else |
---|
6517 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
6518 | as_echo_n_body='eval |
---|
6519 | arg=$1; |
---|
6520 | case $arg in #( |
---|
6521 | *"$as_nl"*) |
---|
6522 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
6523 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
6524 | esac; |
---|
6525 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
6526 | ' |
---|
6527 | export as_echo_n_body |
---|
6528 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
6529 | fi |
---|
6530 | export as_echo_body |
---|
6531 | as_echo='sh -c $as_echo_body as_echo' |
---|
6532 | fi |
---|
6533 | |
---|
6534 | # The user is always right. |
---|
6535 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6536 | PATH_SEPARATOR=: |
---|
6537 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
6538 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
6539 | PATH_SEPARATOR=';' |
---|
6540 | } |
---|
6541 | fi |
---|
6542 | |
---|
6543 | |
---|
6544 | # IFS |
---|
6545 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
6546 | # there to prevent editors from complaining about space-tab. |
---|
6547 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
6548 | # splitting by setting IFS to empty value.) |
---|
6549 | IFS=" "" $as_nl" |
---|
6550 | |
---|
6551 | # Find who we are. Look in the path if we contain no directory separator. |
---|
6552 | as_myself= |
---|
6553 | case $0 in #(( |
---|
6554 | *[\\/]* ) as_myself=$0 ;; |
---|
6555 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6556 | for as_dir in $PATH |
---|
6557 | do |
---|
6558 | IFS=$as_save_IFS |
---|
6559 | test -z "$as_dir" && as_dir=. |
---|
6560 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6561 | done |
---|
6562 | IFS=$as_save_IFS |
---|
6563 | |
---|
6564 | ;; |
---|
6565 | esac |
---|
6566 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6567 | # in which case we are not to be found in the path. |
---|
6568 | if test "x$as_myself" = x; then |
---|
6569 | as_myself=$0 |
---|
6570 | fi |
---|
6571 | if test ! -f "$as_myself"; then |
---|
6572 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
6573 | exit 1 |
---|
6574 | fi |
---|
6575 | |
---|
6576 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
6577 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
6578 | # suppresses any "Segmentation fault" message there. '((' could |
---|
6579 | # trigger a bug in pdksh 5.2.14. |
---|
6580 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
6581 | do eval test x\${$as_var+set} = xset \ |
---|
6582 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
6583 | done |
---|
6584 | PS1='$ ' |
---|
6585 | PS2='> ' |
---|
6586 | PS4='+ ' |
---|
6587 | |
---|
6588 | # NLS nuisances. |
---|
6589 | LC_ALL=C |
---|
6590 | export LC_ALL |
---|
6591 | LANGUAGE=C |
---|
6592 | export LANGUAGE |
---|
6593 | |
---|
6594 | # CDPATH. |
---|
6595 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
6596 | |
---|
6597 | |
---|
6598 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
6599 | # ---------------------------------------- |
---|
6600 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
6601 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
6602 | # script with STATUS, using 1 if that was 0. |
---|
6603 | as_fn_error () |
---|
6604 | { |
---|
6605 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
6606 | if test "$4"; then |
---|
6607 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
6608 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
6609 | fi |
---|
6610 | $as_echo "$as_me: error: $2" >&2 |
---|
6611 | as_fn_exit $as_status |
---|
6612 | } # as_fn_error |
---|
6613 | |
---|
6614 | |
---|
6615 | # as_fn_set_status STATUS |
---|
6616 | # ----------------------- |
---|
6617 | # Set $? to STATUS, without forking. |
---|
6618 | as_fn_set_status () |
---|
6619 | { |
---|
6620 | return $1 |
---|
6621 | } # as_fn_set_status |
---|
6622 | |
---|
6623 | # as_fn_exit STATUS |
---|
6624 | # ----------------- |
---|
6625 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6626 | as_fn_exit () |
---|
6627 | { |
---|
6628 | set +e |
---|
6629 | as_fn_set_status $1 |
---|
6630 | exit $1 |
---|
6631 | } # as_fn_exit |
---|
6632 | |
---|
6633 | # as_fn_unset VAR |
---|
6634 | # --------------- |
---|
6635 | # Portably unset VAR. |
---|
6636 | as_fn_unset () |
---|
6637 | { |
---|
6638 | { eval $1=; unset $1;} |
---|
6639 | } |
---|
6640 | as_unset=as_fn_unset |
---|
6641 | # as_fn_append VAR VALUE |
---|
6642 | # ---------------------- |
---|
6643 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6644 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6645 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6646 | # implementations. |
---|
6647 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6648 | eval 'as_fn_append () |
---|
6649 | { |
---|
6650 | eval $1+=\$2 |
---|
6651 | }' |
---|
6652 | else |
---|
6653 | as_fn_append () |
---|
6654 | { |
---|
6655 | eval $1=\$$1\$2 |
---|
6656 | } |
---|
6657 | fi # as_fn_append |
---|
6658 | |
---|
6659 | # as_fn_arith ARG... |
---|
6660 | # ------------------ |
---|
6661 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6662 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6663 | # must be portable across $(()) and expr. |
---|
6664 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6665 | eval 'as_fn_arith () |
---|
6666 | { |
---|
6667 | as_val=$(( $* )) |
---|
6668 | }' |
---|
6669 | else |
---|
6670 | as_fn_arith () |
---|
6671 | { |
---|
6672 | as_val=`expr "$@" || test $? -eq 1` |
---|
6673 | } |
---|
6674 | fi # as_fn_arith |
---|
6675 | |
---|
6676 | |
---|
6677 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6678 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6679 | as_expr=expr |
---|
6680 | else |
---|
6681 | as_expr=false |
---|
6682 | fi |
---|
6683 | |
---|
6684 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6685 | as_basename=basename |
---|
6686 | else |
---|
6687 | as_basename=false |
---|
6688 | fi |
---|
6689 | |
---|
6690 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6691 | as_dirname=dirname |
---|
6692 | else |
---|
6693 | as_dirname=false |
---|
6694 | fi |
---|
6695 | |
---|
6696 | as_me=`$as_basename -- "$0" || |
---|
6697 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6698 | X"$0" : 'X\(//\)$' \| \ |
---|
6699 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6700 | $as_echo X/"$0" | |
---|
6701 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6702 | s//\1/ |
---|
6703 | q |
---|
6704 | } |
---|
6705 | /^X\/\(\/\/\)$/{ |
---|
6706 | s//\1/ |
---|
6707 | q |
---|
6708 | } |
---|
6709 | /^X\/\(\/\).*/{ |
---|
6710 | s//\1/ |
---|
6711 | q |
---|
6712 | } |
---|
6713 | s/.*/./; q'` |
---|
6714 | |
---|
6715 | # Avoid depending upon Character Ranges. |
---|
6716 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6717 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6718 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6719 | as_cr_digits='0123456789' |
---|
6720 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6721 | |
---|
6722 | ECHO_C= ECHO_N= ECHO_T= |
---|
6723 | case `echo -n x` in #((((( |
---|
6724 | -n*) |
---|
6725 | case `echo 'xy\c'` in |
---|
6726 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6727 | xy) ECHO_C='\c';; |
---|
6728 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6729 | ECHO_T=' ';; |
---|
6730 | esac;; |
---|
6731 | *) |
---|
6732 | ECHO_N='-n';; |
---|
6733 | esac |
---|
6734 | |
---|
6735 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6736 | if test -d conf$$.dir; then |
---|
6737 | rm -f conf$$.dir/conf$$.file |
---|
6738 | else |
---|
6739 | rm -f conf$$.dir |
---|
6740 | mkdir conf$$.dir 2>/dev/null |
---|
6741 | fi |
---|
6742 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6743 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6744 | as_ln_s='ln -s' |
---|
6745 | # ... but there are two gotchas: |
---|
6746 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6747 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6748 | # In both cases, we have to default to `cp -pR'. |
---|
6749 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6750 | as_ln_s='cp -pR' |
---|
6751 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6752 | as_ln_s=ln |
---|
6753 | else |
---|
6754 | as_ln_s='cp -pR' |
---|
6755 | fi |
---|
6756 | else |
---|
6757 | as_ln_s='cp -pR' |
---|
6758 | fi |
---|
6759 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6760 | rmdir conf$$.dir 2>/dev/null |
---|
6761 | |
---|
6762 | |
---|
6763 | # as_fn_mkdir_p |
---|
6764 | # ------------- |
---|
6765 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6766 | as_fn_mkdir_p () |
---|
6767 | { |
---|
6768 | |
---|
6769 | case $as_dir in #( |
---|
6770 | -*) as_dir=./$as_dir;; |
---|
6771 | esac |
---|
6772 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6773 | as_dirs= |
---|
6774 | while :; do |
---|
6775 | case $as_dir in #( |
---|
6776 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6777 | *) as_qdir=$as_dir;; |
---|
6778 | esac |
---|
6779 | as_dirs="'$as_qdir' $as_dirs" |
---|
6780 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6781 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6782 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6783 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6784 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6785 | $as_echo X"$as_dir" | |
---|
6786 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6787 | s//\1/ |
---|
6788 | q |
---|
6789 | } |
---|
6790 | /^X\(\/\/\)[^/].*/{ |
---|
6791 | s//\1/ |
---|
6792 | q |
---|
6793 | } |
---|
6794 | /^X\(\/\/\)$/{ |
---|
6795 | s//\1/ |
---|
6796 | q |
---|
6797 | } |
---|
6798 | /^X\(\/\).*/{ |
---|
6799 | s//\1/ |
---|
6800 | q |
---|
6801 | } |
---|
6802 | s/.*/./; q'` |
---|
6803 | test -d "$as_dir" && break |
---|
6804 | done |
---|
6805 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6806 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6807 | |
---|
6808 | |
---|
6809 | } # as_fn_mkdir_p |
---|
6810 | if mkdir -p . 2>/dev/null; then |
---|
6811 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6812 | else |
---|
6813 | test -d ./-p && rmdir ./-p |
---|
6814 | as_mkdir_p=false |
---|
6815 | fi |
---|
6816 | |
---|
6817 | |
---|
6818 | # as_fn_executable_p FILE |
---|
6819 | # ----------------------- |
---|
6820 | # Test if FILE is an executable regular file. |
---|
6821 | as_fn_executable_p () |
---|
6822 | { |
---|
6823 | test -f "$1" && test -x "$1" |
---|
6824 | } # as_fn_executable_p |
---|
6825 | as_test_x='test -x' |
---|
6826 | as_executable_p=as_fn_executable_p |
---|
6827 | |
---|
6828 | # Sed expression to map a string onto a valid CPP name. |
---|
6829 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6830 | |
---|
6831 | # Sed expression to map a string onto a valid variable name. |
---|
6832 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6833 | |
---|
6834 | |
---|
6835 | exec 6>&1 |
---|
6836 | ## ----------------------------------- ## |
---|
6837 | ## Main body of $CONFIG_STATUS script. ## |
---|
6838 | ## ----------------------------------- ## |
---|
6839 | _ASEOF |
---|
6840 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6841 | |
---|
6842 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6843 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6844 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6845 | # values after options handling. |
---|
6846 | ac_log=" |
---|
6847 | This file was extended by cfa-cc $as_me 1.0.0.0, which was |
---|
6848 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
6849 | |
---|
6850 | CONFIG_FILES = $CONFIG_FILES |
---|
6851 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6852 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6853 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6854 | $ $0 $@ |
---|
6855 | |
---|
6856 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6857 | " |
---|
6858 | |
---|
6859 | _ACEOF |
---|
6860 | |
---|
6861 | case $ac_config_files in *" |
---|
6862 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6863 | esac |
---|
6864 | |
---|
6865 | case $ac_config_headers in *" |
---|
6866 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
6867 | esac |
---|
6868 | |
---|
6869 | |
---|
6870 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6871 | # Files that config.status was made for. |
---|
6872 | config_files="$ac_config_files" |
---|
6873 | config_headers="$ac_config_headers" |
---|
6874 | config_links="$ac_config_links" |
---|
6875 | config_commands="$ac_config_commands" |
---|
6876 | |
---|
6877 | _ACEOF |
---|
6878 | |
---|
6879 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6880 | ac_cs_usage="\ |
---|
6881 | \`$as_me' instantiates files and other configuration actions |
---|
6882 | from templates according to the current configuration. Unless the files |
---|
6883 | and actions are specified as TAGs, all are instantiated by default. |
---|
6884 | |
---|
6885 | Usage: $0 [OPTION]... [TAG]... |
---|
6886 | |
---|
6887 | -h, --help print this help, then exit |
---|
6888 | -V, --version print version number and configuration settings, then exit |
---|
6889 | --config print configuration, then exit |
---|
6890 | -q, --quiet, --silent |
---|
6891 | do not print progress messages |
---|
6892 | -d, --debug don't remove temporary files |
---|
6893 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6894 | --file=FILE[:TEMPLATE] |
---|
6895 | instantiate the configuration file FILE |
---|
6896 | --header=FILE[:TEMPLATE] |
---|
6897 | instantiate the configuration header FILE |
---|
6898 | |
---|
6899 | Configuration files: |
---|
6900 | $config_files |
---|
6901 | |
---|
6902 | Configuration headers: |
---|
6903 | $config_headers |
---|
6904 | |
---|
6905 | Configuration links: |
---|
6906 | $config_links |
---|
6907 | |
---|
6908 | Configuration commands: |
---|
6909 | $config_commands |
---|
6910 | |
---|
6911 | Report bugs to <cforall@plg.uwaterloo.ca>." |
---|
6912 | |
---|
6913 | _ACEOF |
---|
6914 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6915 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6916 | ac_cs_version="\\ |
---|
6917 | cfa-cc config.status 1.0.0.0 |
---|
6918 | configured by $0, generated by GNU Autoconf 2.69, |
---|
6919 | with options \\"\$ac_cs_config\\" |
---|
6920 | |
---|
6921 | Copyright (C) 2012 Free Software Foundation, Inc. |
---|
6922 | This config.status script is free software; the Free Software Foundation |
---|
6923 | gives unlimited permission to copy, distribute and modify it." |
---|
6924 | |
---|
6925 | ac_pwd='$ac_pwd' |
---|
6926 | srcdir='$srcdir' |
---|
6927 | INSTALL='$INSTALL' |
---|
6928 | MKDIR_P='$MKDIR_P' |
---|
6929 | AWK='$AWK' |
---|
6930 | test -n "\$AWK" || AWK=awk |
---|
6931 | _ACEOF |
---|
6932 | |
---|
6933 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6934 | # The default lists apply if the user does not specify any file. |
---|
6935 | ac_need_defaults=: |
---|
6936 | while test $# != 0 |
---|
6937 | do |
---|
6938 | case $1 in |
---|
6939 | --*=?*) |
---|
6940 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6941 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6942 | ac_shift=: |
---|
6943 | ;; |
---|
6944 | --*=) |
---|
6945 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6946 | ac_optarg= |
---|
6947 | ac_shift=: |
---|
6948 | ;; |
---|
6949 | *) |
---|
6950 | ac_option=$1 |
---|
6951 | ac_optarg=$2 |
---|
6952 | ac_shift=shift |
---|
6953 | ;; |
---|
6954 | esac |
---|
6955 | |
---|
6956 | case $ac_option in |
---|
6957 | # Handling of the options. |
---|
6958 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6959 | ac_cs_recheck=: ;; |
---|
6960 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6961 | $as_echo "$ac_cs_version"; exit ;; |
---|
6962 | --config | --confi | --conf | --con | --co | --c ) |
---|
6963 | $as_echo "$ac_cs_config"; exit ;; |
---|
6964 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6965 | debug=: ;; |
---|
6966 | --file | --fil | --fi | --f ) |
---|
6967 | $ac_shift |
---|
6968 | case $ac_optarg in |
---|
6969 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6970 | '') as_fn_error $? "missing file argument" ;; |
---|
6971 | esac |
---|
6972 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6973 | ac_need_defaults=false;; |
---|
6974 | --header | --heade | --head | --hea ) |
---|
6975 | $ac_shift |
---|
6976 | case $ac_optarg in |
---|
6977 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6978 | esac |
---|
6979 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
6980 | ac_need_defaults=false;; |
---|
6981 | --he | --h) |
---|
6982 | # Conflict between --help and --header |
---|
6983 | as_fn_error $? "ambiguous option: \`$1' |
---|
6984 | Try \`$0 --help' for more information.";; |
---|
6985 | --help | --hel | -h ) |
---|
6986 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6987 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6988 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6989 | ac_cs_silent=: ;; |
---|
6990 | |
---|
6991 | # This is an error. |
---|
6992 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6993 | Try \`$0 --help' for more information." ;; |
---|
6994 | |
---|
6995 | *) as_fn_append ac_config_targets " $1" |
---|
6996 | ac_need_defaults=false ;; |
---|
6997 | |
---|
6998 | esac |
---|
6999 | shift |
---|
7000 | done |
---|
7001 | |
---|
7002 | ac_configure_extra_args= |
---|
7003 | |
---|
7004 | if $ac_cs_silent; then |
---|
7005 | exec 6>/dev/null |
---|
7006 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
7007 | fi |
---|
7008 | |
---|
7009 | _ACEOF |
---|
7010 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7011 | if \$ac_cs_recheck; then |
---|
7012 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
7013 | shift |
---|
7014 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
7015 | CONFIG_SHELL='$SHELL' |
---|
7016 | export CONFIG_SHELL |
---|
7017 | exec "\$@" |
---|
7018 | fi |
---|
7019 | |
---|
7020 | _ACEOF |
---|
7021 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7022 | exec 5>>config.log |
---|
7023 | { |
---|
7024 | echo |
---|
7025 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7026 | ## Running $as_me. ## |
---|
7027 | _ASBOX |
---|
7028 | $as_echo "$ac_log" |
---|
7029 | } >&5 |
---|
7030 | |
---|
7031 | _ACEOF |
---|
7032 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7033 | # |
---|
7034 | # INIT-COMMANDS |
---|
7035 | # |
---|
7036 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
7037 | |
---|
7038 | _ACEOF |
---|
7039 | |
---|
7040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7041 | |
---|
7042 | # Handling of arguments. |
---|
7043 | for ac_config_target in $ac_config_targets |
---|
7044 | do |
---|
7045 | case $ac_config_target in |
---|
7046 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:src/config.h.in" ;; |
---|
7047 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
7048 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7049 | "src/driver/Makefile") CONFIG_FILES="$CONFIG_FILES src/driver/Makefile" ;; |
---|
7050 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
7051 | "src/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES src/benchmark/Makefile" ;; |
---|
7052 | "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; |
---|
7053 | "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; |
---|
7054 | "src/tests/preempt_longrun/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/preempt_longrun/Makefile" ;; |
---|
7055 | "src/prelude/Makefile") CONFIG_FILES="$CONFIG_FILES src/prelude/Makefile" ;; |
---|
7056 | "src/libcfa/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcfa/Makefile" ;; |
---|
7057 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
---|
7058 | "tools/prettyprinter/Makefile") CONFIG_FILES="$CONFIG_FILES tools/prettyprinter/Makefile" ;; |
---|
7059 | "src/tests/test.py") CONFIG_LINKS="$CONFIG_LINKS src/tests/test.py:src/tests/test.py" ;; |
---|
7060 | "src/tests/config.py") CONFIG_FILES="$CONFIG_FILES src/tests/config.py" ;; |
---|
7061 | |
---|
7062 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
7063 | esac |
---|
7064 | done |
---|
7065 | |
---|
7066 | |
---|
7067 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7068 | # then the envvar interface is used. Set only those that are not. |
---|
7069 | # We use the long form for the default assignment because of an extremely |
---|
7070 | # bizarre bug on SunOS 4.1.3. |
---|
7071 | if $ac_need_defaults; then |
---|
7072 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7073 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
7074 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
---|
7075 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
7076 | fi |
---|
7077 | |
---|
7078 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7079 | # simply because there is no reason against having it here, and in addition, |
---|
7080 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7081 | # Hook for its removal unless debugging. |
---|
7082 | # Note that there is a small window in which the directory will not be cleaned: |
---|
7083 | # after its creation but before its name has been assigned to `$tmp'. |
---|
7084 | $debug || |
---|
7085 | { |
---|
7086 | tmp= ac_tmp= |
---|
7087 | trap 'exit_status=$? |
---|
7088 | : "${ac_tmp:=$tmp}" |
---|
7089 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
7090 | ' 0 |
---|
7091 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
7092 | } |
---|
7093 | # Create a (secure) tmp directory for tmp files. |
---|
7094 | |
---|
7095 | { |
---|
7096 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
7097 | test -d "$tmp" |
---|
7098 | } || |
---|
7099 | { |
---|
7100 | tmp=./conf$$-$RANDOM |
---|
7101 | (umask 077 && mkdir "$tmp") |
---|
7102 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
7103 | ac_tmp=$tmp |
---|
7104 | |
---|
7105 | # Set up the scripts for CONFIG_FILES section. |
---|
7106 | # No need to generate them if there are no CONFIG_FILES. |
---|
7107 | # This happens for instance with `./config.status config.h'. |
---|
7108 | if test -n "$CONFIG_FILES"; then |
---|
7109 | |
---|
7110 | |
---|
7111 | ac_cr=`echo X | tr X '\015'` |
---|
7112 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
7113 | # But we know of no other shell where ac_cr would be empty at this |
---|
7114 | # point, so we can use a bashism as a fallback. |
---|
7115 | if test "x$ac_cr" = x; then |
---|
7116 | eval ac_cr=\$\'\\r\' |
---|
7117 | fi |
---|
7118 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
7119 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
7120 | ac_cs_awk_cr='\\r' |
---|
7121 | else |
---|
7122 | ac_cs_awk_cr=$ac_cr |
---|
7123 | fi |
---|
7124 | |
---|
7125 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
7126 | _ACEOF |
---|
7127 | |
---|
7128 | |
---|
7129 | { |
---|
7130 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
7131 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
7132 | echo "_ACEOF" |
---|
7133 | } >conf$$subs.sh || |
---|
7134 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7135 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
7136 | ac_delim='%!_!# ' |
---|
7137 | for ac_last_try in false false false false false :; do |
---|
7138 | . ./conf$$subs.sh || |
---|
7139 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7140 | |
---|
7141 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
7142 | if test $ac_delim_n = $ac_delim_num; then |
---|
7143 | break |
---|
7144 | elif $ac_last_try; then |
---|
7145 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
7146 | else |
---|
7147 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7148 | fi |
---|
7149 | done |
---|
7150 | rm -f conf$$subs.sh |
---|
7151 | |
---|
7152 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7153 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
7154 | _ACEOF |
---|
7155 | sed -n ' |
---|
7156 | h |
---|
7157 | s/^/S["/; s/!.*/"]=/ |
---|
7158 | p |
---|
7159 | g |
---|
7160 | s/^[^!]*!// |
---|
7161 | :repl |
---|
7162 | t repl |
---|
7163 | s/'"$ac_delim"'$// |
---|
7164 | t delim |
---|
7165 | :nl |
---|
7166 | h |
---|
7167 | s/\(.\{148\}\)..*/\1/ |
---|
7168 | t more1 |
---|
7169 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
7170 | p |
---|
7171 | n |
---|
7172 | b repl |
---|
7173 | :more1 |
---|
7174 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7175 | p |
---|
7176 | g |
---|
7177 | s/.\{148\}// |
---|
7178 | t nl |
---|
7179 | :delim |
---|
7180 | h |
---|
7181 | s/\(.\{148\}\)..*/\1/ |
---|
7182 | t more2 |
---|
7183 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
7184 | p |
---|
7185 | b |
---|
7186 | :more2 |
---|
7187 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
7188 | p |
---|
7189 | g |
---|
7190 | s/.\{148\}// |
---|
7191 | t delim |
---|
7192 | ' <conf$$subs.awk | sed ' |
---|
7193 | /^[^""]/{ |
---|
7194 | N |
---|
7195 | s/\n// |
---|
7196 | } |
---|
7197 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7198 | rm -f conf$$subs.awk |
---|
7199 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7200 | _ACAWK |
---|
7201 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
7202 | for (key in S) S_is_set[key] = 1 |
---|
7203 | FS = "" |
---|
7204 | |
---|
7205 | } |
---|
7206 | { |
---|
7207 | line = $ 0 |
---|
7208 | nfields = split(line, field, "@") |
---|
7209 | substed = 0 |
---|
7210 | len = length(field[1]) |
---|
7211 | for (i = 2; i < nfields; i++) { |
---|
7212 | key = field[i] |
---|
7213 | keylen = length(key) |
---|
7214 | if (S_is_set[key]) { |
---|
7215 | value = S[key] |
---|
7216 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
7217 | len += length(value) + length(field[++i]) |
---|
7218 | substed = 1 |
---|
7219 | } else |
---|
7220 | len += 1 + keylen |
---|
7221 | } |
---|
7222 | |
---|
7223 | print line |
---|
7224 | } |
---|
7225 | |
---|
7226 | _ACAWK |
---|
7227 | _ACEOF |
---|
7228 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7229 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
7230 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
7231 | else |
---|
7232 | cat |
---|
7233 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
7234 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
7235 | _ACEOF |
---|
7236 | |
---|
7237 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
7238 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
7239 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
7240 | # (actually we leave an empty line to preserve line numbers). |
---|
7241 | if test "x$srcdir" = x.; then |
---|
7242 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
7243 | h |
---|
7244 | s/// |
---|
7245 | s/^/:/ |
---|
7246 | s/[ ]*$/:/ |
---|
7247 | s/:\$(srcdir):/:/g |
---|
7248 | s/:\${srcdir}:/:/g |
---|
7249 | s/:@srcdir@:/:/g |
---|
7250 | s/^:*// |
---|
7251 | s/:*$// |
---|
7252 | x |
---|
7253 | s/\(=[ ]*\).*/\1/ |
---|
7254 | G |
---|
7255 | s/\n// |
---|
7256 | s/^[^=]*=[ ]*$// |
---|
7257 | }' |
---|
7258 | fi |
---|
7259 | |
---|
7260 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7261 | fi # test -n "$CONFIG_FILES" |
---|
7262 | |
---|
7263 | # Set up the scripts for CONFIG_HEADERS section. |
---|
7264 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
7265 | # This happens for instance with `./config.status Makefile'. |
---|
7266 | if test -n "$CONFIG_HEADERS"; then |
---|
7267 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
7268 | BEGIN { |
---|
7269 | _ACEOF |
---|
7270 | |
---|
7271 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
7272 | # here-document in config.status, that substitutes the proper values into |
---|
7273 | # config.h.in to produce config.h. |
---|
7274 | |
---|
7275 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
7276 | # handling of long lines. |
---|
7277 | ac_delim='%!_!# ' |
---|
7278 | for ac_last_try in false false :; do |
---|
7279 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
7280 | if test -z "$ac_tt"; then |
---|
7281 | break |
---|
7282 | elif $ac_last_try; then |
---|
7283 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
7284 | else |
---|
7285 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
7286 | fi |
---|
7287 | done |
---|
7288 | |
---|
7289 | # For the awk script, D is an array of macro values keyed by name, |
---|
7290 | # likewise P contains macro parameters if any. Preserve backslash |
---|
7291 | # newline sequences. |
---|
7292 | |
---|
7293 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
7294 | sed -n ' |
---|
7295 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7296 | t rset |
---|
7297 | :rset |
---|
7298 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
7299 | t def |
---|
7300 | d |
---|
7301 | :def |
---|
7302 | s/\\$// |
---|
7303 | t bsnl |
---|
7304 | s/["\\]/\\&/g |
---|
7305 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7306 | D["\1"]=" \3"/p |
---|
7307 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
7308 | d |
---|
7309 | :bsnl |
---|
7310 | s/["\\]/\\&/g |
---|
7311 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
7312 | D["\1"]=" \3\\\\\\n"\\/p |
---|
7313 | t cont |
---|
7314 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
7315 | t cont |
---|
7316 | d |
---|
7317 | :cont |
---|
7318 | n |
---|
7319 | s/.\{148\}/&'"$ac_delim"'/g |
---|
7320 | t clear |
---|
7321 | :clear |
---|
7322 | s/\\$// |
---|
7323 | t bsnlc |
---|
7324 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
7325 | d |
---|
7326 | :bsnlc |
---|
7327 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
7328 | b cont |
---|
7329 | ' <confdefs.h | sed ' |
---|
7330 | s/'"$ac_delim"'/"\\\ |
---|
7331 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
7332 | |
---|
7333 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7334 | for (key in D) D_is_set[key] = 1 |
---|
7335 | FS = "" |
---|
7336 | } |
---|
7337 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
7338 | line = \$ 0 |
---|
7339 | split(line, arg, " ") |
---|
7340 | if (arg[1] == "#") { |
---|
7341 | defundef = arg[2] |
---|
7342 | mac1 = arg[3] |
---|
7343 | } else { |
---|
7344 | defundef = substr(arg[1], 2) |
---|
7345 | mac1 = arg[2] |
---|
7346 | } |
---|
7347 | split(mac1, mac2, "(") #) |
---|
7348 | macro = mac2[1] |
---|
7349 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
7350 | if (D_is_set[macro]) { |
---|
7351 | # Preserve the white space surrounding the "#". |
---|
7352 | print prefix "define", macro P[macro] D[macro] |
---|
7353 | next |
---|
7354 | } else { |
---|
7355 | # Replace #undef with comments. This is necessary, for example, |
---|
7356 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
7357 | # on some systems where configure will not decide to define it. |
---|
7358 | if (defundef == "undef") { |
---|
7359 | print "/*", prefix defundef, macro, "*/" |
---|
7360 | next |
---|
7361 | } |
---|
7362 | } |
---|
7363 | } |
---|
7364 | { print } |
---|
7365 | _ACAWK |
---|
7366 | _ACEOF |
---|
7367 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7368 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
7369 | fi # test -n "$CONFIG_HEADERS" |
---|
7370 | |
---|
7371 | |
---|
7372 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" |
---|
7373 | shift |
---|
7374 | for ac_tag |
---|
7375 | do |
---|
7376 | case $ac_tag in |
---|
7377 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
7378 | esac |
---|
7379 | case $ac_mode$ac_tag in |
---|
7380 | :[FHL]*:*);; |
---|
7381 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
7382 | :[FH]-) ac_tag=-:-;; |
---|
7383 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
7384 | esac |
---|
7385 | ac_save_IFS=$IFS |
---|
7386 | IFS=: |
---|
7387 | set x $ac_tag |
---|
7388 | IFS=$ac_save_IFS |
---|
7389 | shift |
---|
7390 | ac_file=$1 |
---|
7391 | shift |
---|
7392 | |
---|
7393 | case $ac_mode in |
---|
7394 | :L) ac_source=$1;; |
---|
7395 | :[FH]) |
---|
7396 | ac_file_inputs= |
---|
7397 | for ac_f |
---|
7398 | do |
---|
7399 | case $ac_f in |
---|
7400 | -) ac_f="$ac_tmp/stdin";; |
---|
7401 | *) # Look for the file first in the build tree, then in the source tree |
---|
7402 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
7403 | # because $ac_f cannot contain `:'. |
---|
7404 | test -f "$ac_f" || |
---|
7405 | case $ac_f in |
---|
7406 | [\\/$]*) false;; |
---|
7407 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
7408 | esac || |
---|
7409 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
7410 | esac |
---|
7411 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
7412 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
7413 | done |
---|
7414 | |
---|
7415 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7416 | # use $as_me), people would be surprised to read: |
---|
7417 | # /* config.h. Generated by config.status. */ |
---|
7418 | configure_input='Generated from '` |
---|
7419 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
7420 | `' by configure.' |
---|
7421 | if test x"$ac_file" != x-; then |
---|
7422 | configure_input="$ac_file. $configure_input" |
---|
7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
7424 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
7425 | fi |
---|
7426 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
7427 | case $configure_input in #( |
---|
7428 | *\&* | *\|* | *\\* ) |
---|
7429 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
7430 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
7431 | *) ac_sed_conf_input=$configure_input;; |
---|
7432 | esac |
---|
7433 | |
---|
7434 | case $ac_tag in |
---|
7435 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
7436 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
7437 | esac |
---|
7438 | ;; |
---|
7439 | esac |
---|
7440 | |
---|
7441 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
7442 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7443 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7444 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7445 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7446 | $as_echo X"$ac_file" | |
---|
7447 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7448 | s//\1/ |
---|
7449 | q |
---|
7450 | } |
---|
7451 | /^X\(\/\/\)[^/].*/{ |
---|
7452 | s//\1/ |
---|
7453 | q |
---|
7454 | } |
---|
7455 | /^X\(\/\/\)$/{ |
---|
7456 | s//\1/ |
---|
7457 | q |
---|
7458 | } |
---|
7459 | /^X\(\/\).*/{ |
---|
7460 | s//\1/ |
---|
7461 | q |
---|
7462 | } |
---|
7463 | s/.*/./; q'` |
---|
7464 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
7465 | ac_builddir=. |
---|
7466 | |
---|
7467 | case "$ac_dir" in |
---|
7468 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7469 | *) |
---|
7470 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
7471 | # A ".." for each directory in $ac_dir_suffix. |
---|
7472 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
7473 | case $ac_top_builddir_sub in |
---|
7474 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
7475 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
7476 | esac ;; |
---|
7477 | esac |
---|
7478 | ac_abs_top_builddir=$ac_pwd |
---|
7479 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
7480 | # for backward compatibility: |
---|
7481 | ac_top_builddir=$ac_top_build_prefix |
---|
7482 | |
---|
7483 | case $srcdir in |
---|
7484 | .) # We are building in place. |
---|
7485 | ac_srcdir=. |
---|
7486 | ac_top_srcdir=$ac_top_builddir_sub |
---|
7487 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
7488 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
7489 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7490 | ac_top_srcdir=$srcdir |
---|
7491 | ac_abs_top_srcdir=$srcdir ;; |
---|
7492 | *) # Relative name. |
---|
7493 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
7494 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
7495 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
7496 | esac |
---|
7497 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
7498 | |
---|
7499 | |
---|
7500 | case $ac_mode in |
---|
7501 | :F) |
---|
7502 | # |
---|
7503 | # CONFIG_FILE |
---|
7504 | # |
---|
7505 | |
---|
7506 | case $INSTALL in |
---|
7507 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7508 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
7509 | esac |
---|
7510 | ac_MKDIR_P=$MKDIR_P |
---|
7511 | case $MKDIR_P in |
---|
7512 | [\\/$]* | ?:[\\/]* ) ;; |
---|
7513 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
7514 | esac |
---|
7515 | _ACEOF |
---|
7516 | |
---|
7517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7518 | # If the template does not know about datarootdir, expand it. |
---|
7519 | # FIXME: This hack should be removed a few years after 2.60. |
---|
7520 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
7521 | ac_sed_dataroot=' |
---|
7522 | /datarootdir/ { |
---|
7523 | p |
---|
7524 | q |
---|
7525 | } |
---|
7526 | /@datadir@/p |
---|
7527 | /@docdir@/p |
---|
7528 | /@infodir@/p |
---|
7529 | /@localedir@/p |
---|
7530 | /@mandir@/p' |
---|
7531 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
7532 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
7533 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
7535 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
7536 | _ACEOF |
---|
7537 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7538 | ac_datarootdir_hack=' |
---|
7539 | s&@datadir@&$datadir&g |
---|
7540 | s&@docdir@&$docdir&g |
---|
7541 | s&@infodir@&$infodir&g |
---|
7542 | s&@localedir@&$localedir&g |
---|
7543 | s&@mandir@&$mandir&g |
---|
7544 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
7545 | esac |
---|
7546 | _ACEOF |
---|
7547 | |
---|
7548 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
7549 | # Shell code in configure.ac might set extrasub. |
---|
7550 | # FIXME: do we really want to maintain this feature? |
---|
7551 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
7552 | ac_sed_extra="$ac_vpsub |
---|
7553 | $extrasub |
---|
7554 | _ACEOF |
---|
7555 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
7556 | :t |
---|
7557 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7558 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
7559 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
7560 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
7561 | s&@srcdir@&$ac_srcdir&;t t |
---|
7562 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
7563 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
7564 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
7565 | s&@builddir@&$ac_builddir&;t t |
---|
7566 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
7567 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
7568 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
7569 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
7570 | $ac_datarootdir_hack |
---|
7571 | " |
---|
7572 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
7573 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7574 | |
---|
7575 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
7576 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
7577 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
7578 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7580 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
7581 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
7582 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
7583 | |
---|
7584 | rm -f "$ac_tmp/stdin" |
---|
7585 | case $ac_file in |
---|
7586 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
7587 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
7588 | esac \ |
---|
7589 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7590 | ;; |
---|
7591 | :H) |
---|
7592 | # |
---|
7593 | # CONFIG_HEADER |
---|
7594 | # |
---|
7595 | if test x"$ac_file" != x-; then |
---|
7596 | { |
---|
7597 | $as_echo "/* $configure_input */" \ |
---|
7598 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
7599 | } >"$ac_tmp/config.h" \ |
---|
7600 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7601 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
7602 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
7603 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7604 | else |
---|
7605 | rm -f "$ac_file" |
---|
7606 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
7607 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
7608 | fi |
---|
7609 | else |
---|
7610 | $as_echo "/* $configure_input */" \ |
---|
7611 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
7612 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
7613 | fi |
---|
7614 | # Compute "$ac_file"'s index in $config_headers. |
---|
7615 | _am_arg="$ac_file" |
---|
7616 | _am_stamp_count=1 |
---|
7617 | for _am_header in $config_headers :; do |
---|
7618 | case $_am_header in |
---|
7619 | $_am_arg | $_am_arg:* ) |
---|
7620 | break ;; |
---|
7621 | * ) |
---|
7622 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7623 | esac |
---|
7624 | done |
---|
7625 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
7626 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7627 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
7628 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
7629 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
7630 | $as_echo X"$_am_arg" | |
---|
7631 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7632 | s//\1/ |
---|
7633 | q |
---|
7634 | } |
---|
7635 | /^X\(\/\/\)[^/].*/{ |
---|
7636 | s//\1/ |
---|
7637 | q |
---|
7638 | } |
---|
7639 | /^X\(\/\/\)$/{ |
---|
7640 | s//\1/ |
---|
7641 | q |
---|
7642 | } |
---|
7643 | /^X\(\/\).*/{ |
---|
7644 | s//\1/ |
---|
7645 | q |
---|
7646 | } |
---|
7647 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7648 | ;; |
---|
7649 | :L) |
---|
7650 | # |
---|
7651 | # CONFIG_LINK |
---|
7652 | # |
---|
7653 | |
---|
7654 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
---|
7655 | : |
---|
7656 | else |
---|
7657 | # Prefer the file from the source tree if names are identical. |
---|
7658 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then |
---|
7659 | ac_source=$srcdir/$ac_source |
---|
7660 | fi |
---|
7661 | |
---|
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
---|
7663 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} |
---|
7664 | |
---|
7665 | if test ! -r "$ac_source"; then |
---|
7666 | as_fn_error $? "$ac_source: file not found" "$LINENO" 5 |
---|
7667 | fi |
---|
7668 | rm -f "$ac_file" |
---|
7669 | |
---|
7670 | # Try a relative symlink, then a hard link, then a copy. |
---|
7671 | case $ac_source in |
---|
7672 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; |
---|
7673 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; |
---|
7674 | esac |
---|
7675 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
---|
7676 | ln "$ac_source" "$ac_file" 2>/dev/null || |
---|
7677 | cp -p "$ac_source" "$ac_file" || |
---|
7678 | as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 |
---|
7679 | fi |
---|
7680 | ;; |
---|
7681 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
7682 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
7683 | ;; |
---|
7684 | esac |
---|
7685 | |
---|
7686 | |
---|
7687 | case $ac_file$ac_mode in |
---|
7688 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
7689 | # Older Autoconf quotes --file arguments for eval, but not when files |
---|
7690 | # are listed without --file. Let's play safe and only enable the eval |
---|
7691 | # if we detect the quoting. |
---|
7692 | case $CONFIG_FILES in |
---|
7693 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
7694 | *) set x $CONFIG_FILES ;; |
---|
7695 | esac |
---|
7696 | shift |
---|
7697 | for mf |
---|
7698 | do |
---|
7699 | # Strip MF so we end up with the name of the file. |
---|
7700 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7701 | # Check whether this is an Automake generated Makefile or not. |
---|
7702 | # We used to match only the files named 'Makefile.in', but |
---|
7703 | # some people rename them; so instead we look at the file content. |
---|
7704 | # Grep'ing the first line is not enough: some people post-process |
---|
7705 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7706 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
7707 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
7708 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
7709 | dirpart=`$as_dirname -- "$mf" || |
---|
7710 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7711 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7712 | X"$mf" : 'X\(//\)$' \| \ |
---|
7713 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
7714 | $as_echo X"$mf" | |
---|
7715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7716 | s//\1/ |
---|
7717 | q |
---|
7718 | } |
---|
7719 | /^X\(\/\/\)[^/].*/{ |
---|
7720 | s//\1/ |
---|
7721 | q |
---|
7722 | } |
---|
7723 | /^X\(\/\/\)$/{ |
---|
7724 | s//\1/ |
---|
7725 | q |
---|
7726 | } |
---|
7727 | /^X\(\/\).*/{ |
---|
7728 | s//\1/ |
---|
7729 | q |
---|
7730 | } |
---|
7731 | s/.*/./; q'` |
---|
7732 | else |
---|
7733 | continue |
---|
7734 | fi |
---|
7735 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
7736 | # from the Makefile without running 'make'. |
---|
7737 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
7738 | test -z "$DEPDIR" && continue |
---|
7739 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
7740 | test -z "$am__include" && continue |
---|
7741 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
7742 | # Find all dependency output files, they are included files with |
---|
7743 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
7744 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
7745 | # expansion. |
---|
7746 | for file in `sed -n " |
---|
7747 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
7748 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
---|
7749 | # Make sure the directory exists. |
---|
7750 | test -f "$dirpart/$file" && continue |
---|
7751 | fdir=`$as_dirname -- "$file" || |
---|
7752 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7753 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7754 | X"$file" : 'X\(//\)$' \| \ |
---|
7755 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
7756 | $as_echo X"$file" | |
---|
7757 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
7758 | s//\1/ |
---|
7759 | q |
---|
7760 | } |
---|
7761 | /^X\(\/\/\)[^/].*/{ |
---|
7762 | s//\1/ |
---|
7763 | q |
---|
7764 | } |
---|
7765 | /^X\(\/\/\)$/{ |
---|
7766 | s//\1/ |
---|
7767 | q |
---|
7768 | } |
---|
7769 | /^X\(\/\).*/{ |
---|
7770 | s//\1/ |
---|
7771 | q |
---|
7772 | } |
---|
7773 | s/.*/./; q'` |
---|
7774 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
7775 | # echo "creating $dirpart/$file" |
---|
7776 | echo '# dummy' > "$dirpart/$file" |
---|
7777 | done |
---|
7778 | done |
---|
7779 | } |
---|
7780 | ;; |
---|
7781 | |
---|
7782 | esac |
---|
7783 | done # for ac_tag |
---|
7784 | |
---|
7785 | |
---|
7786 | as_fn_exit 0 |
---|
7787 | _ACEOF |
---|
7788 | ac_clean_files=$ac_clean_files_save |
---|
7789 | |
---|
7790 | test $ac_write_fail = 0 || |
---|
7791 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
7792 | |
---|
7793 | |
---|
7794 | # configure is writing to config.log, and then calls config.status. |
---|
7795 | # config.status does its own redirection, appending to config.log. |
---|
7796 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
7797 | # by configure, so config.status won't be able to write to it; its |
---|
7798 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
7799 | # effectively closing config.log, so it can be properly (re)opened and |
---|
7800 | # appended to by config.status. When coming back to configure, we |
---|
7801 | # need to make the FD available again. |
---|
7802 | if test "$no_create" != yes; then |
---|
7803 | ac_cs_success=: |
---|
7804 | ac_config_status_args= |
---|
7805 | test "$silent" = yes && |
---|
7806 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
7807 | exec 5>/dev/null |
---|
7808 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
7809 | exec 5>>config.log |
---|
7810 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
7811 | # would make configure fail if this is the last instruction. |
---|
7812 | $ac_cs_success || as_fn_exit 1 |
---|
7813 | fi |
---|
7814 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
7816 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
7817 | fi |
---|
7818 | |
---|
7819 | |
---|
7820 | if test -z "$BUILD_RELEASE_TRUE"; then : |
---|
7821 | if test -z "$BUILD_DEBUG_TRUE"; then : |
---|
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release & debug" >&5 |
---|
7823 | $as_echo "$as_me: Building libcfa for target: release & debug" >&6;} |
---|
7824 | else |
---|
7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release" >&5 |
---|
7826 | $as_echo "$as_me: Building libcfa for target: release" >&6;} |
---|
7827 | fi |
---|
7828 | else |
---|
7829 | if test -z "$BUILD_DEBUG_TRUE"; then : |
---|
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: debug" >&5 |
---|
7831 | $as_echo "$as_me: Building libcfa for target: debug" >&6;} |
---|
7832 | else |
---|
7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running cfa without libcfa" >&5 |
---|
7834 | $as_echo "$as_me: Running cfa without libcfa" >&6;} |
---|
7835 | fi |
---|
7836 | fi |
---|
7837 | |
---|
7838 | # Final text |
---|
7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5 |
---|
7840 | $as_echo "Cforall configuraton completed. Type \"make -j 8 install\"." >&6; } |
---|