1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.65 for FULL-PACKAGE-NAME VERSION. |
---|
4 | # |
---|
5 | # Report bugs to <BUG-REPORT-ADDRESS>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
---|
10 | # Inc. |
---|
11 | # |
---|
12 | # |
---|
13 | # This configure script is free software; the Free Software Foundation |
---|
14 | # gives unlimited permission to copy, distribute and modify it. |
---|
15 | ## -------------------- ## |
---|
16 | ## M4sh Initialization. ## |
---|
17 | ## -------------------- ## |
---|
18 | |
---|
19 | # Be more Bourne compatible |
---|
20 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | setopt NO_GLOB_SUBST |
---|
28 | else |
---|
29 | case `(set -o) 2>/dev/null` in #( |
---|
30 | *posix*) : |
---|
31 | set -o posix ;; #( |
---|
32 | *) : |
---|
33 | ;; |
---|
34 | esac |
---|
35 | fi |
---|
36 | |
---|
37 | |
---|
38 | as_nl=' |
---|
39 | ' |
---|
40 | export as_nl |
---|
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
46 | # but without wasting forks for bash or zsh. |
---|
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
49 | as_echo='print -r --' |
---|
50 | as_echo_n='print -rn --' |
---|
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
52 | as_echo='printf %s\n' |
---|
53 | as_echo_n='printf %s' |
---|
54 | else |
---|
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
57 | as_echo_n='/usr/ucb/echo -n' |
---|
58 | else |
---|
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
60 | as_echo_n_body='eval |
---|
61 | arg=$1; |
---|
62 | case $arg in #( |
---|
63 | *"$as_nl"*) |
---|
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
66 | esac; |
---|
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
68 | ' |
---|
69 | export as_echo_n_body |
---|
70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
71 | fi |
---|
72 | export as_echo_body |
---|
73 | as_echo='sh -c $as_echo_body as_echo' |
---|
74 | fi |
---|
75 | |
---|
76 | # The user is always right. |
---|
77 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
78 | PATH_SEPARATOR=: |
---|
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
81 | PATH_SEPARATOR=';' |
---|
82 | } |
---|
83 | fi |
---|
84 | |
---|
85 | |
---|
86 | # IFS |
---|
87 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
88 | # there to prevent editors from complaining about space-tab. |
---|
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
90 | # splitting by setting IFS to empty value.) |
---|
91 | IFS=" "" $as_nl" |
---|
92 | |
---|
93 | # Find who we are. Look in the path if we contain no directory separator. |
---|
94 | case $0 in #(( |
---|
95 | *[\\/]* ) as_myself=$0 ;; |
---|
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
97 | for as_dir in $PATH |
---|
98 | do |
---|
99 | IFS=$as_save_IFS |
---|
100 | test -z "$as_dir" && as_dir=. |
---|
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
102 | done |
---|
103 | IFS=$as_save_IFS |
---|
104 | |
---|
105 | ;; |
---|
106 | esac |
---|
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
108 | # in which case we are not to be found in the path. |
---|
109 | if test "x$as_myself" = x; then |
---|
110 | as_myself=$0 |
---|
111 | fi |
---|
112 | if test ! -f "$as_myself"; then |
---|
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
114 | exit 1 |
---|
115 | fi |
---|
116 | |
---|
117 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
119 | # suppresses any "Segmentation fault" message there. '((' could |
---|
120 | # trigger a bug in pdksh 5.2.14. |
---|
121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
122 | do eval test x\${$as_var+set} = xset \ |
---|
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
124 | done |
---|
125 | PS1='$ ' |
---|
126 | PS2='> ' |
---|
127 | PS4='+ ' |
---|
128 | |
---|
129 | # NLS nuisances. |
---|
130 | LC_ALL=C |
---|
131 | export LC_ALL |
---|
132 | LANGUAGE=C |
---|
133 | export LANGUAGE |
---|
134 | |
---|
135 | # CDPATH. |
---|
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
137 | |
---|
138 | if test "x$CONFIG_SHELL" = x; then |
---|
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
140 | emulate sh |
---|
141 | NULLCMD=: |
---|
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
143 | # is contrary to our usage. Disable this feature. |
---|
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
145 | setopt NO_GLOB_SUBST |
---|
146 | else |
---|
147 | case \`(set -o) 2>/dev/null\` in #( |
---|
148 | *posix*) : |
---|
149 | set -o posix ;; #( |
---|
150 | *) : |
---|
151 | ;; |
---|
152 | esac |
---|
153 | fi |
---|
154 | " |
---|
155 | as_required="as_fn_return () { (exit \$1); } |
---|
156 | as_fn_success () { as_fn_return 0; } |
---|
157 | as_fn_failure () { as_fn_return 1; } |
---|
158 | as_fn_ret_success () { return 0; } |
---|
159 | as_fn_ret_failure () { return 1; } |
---|
160 | |
---|
161 | exitcode=0 |
---|
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
167 | |
---|
168 | else |
---|
169 | exitcode=1; echo positional parameters were not saved. |
---|
170 | fi |
---|
171 | test x\$exitcode = x0 || exit 1" |
---|
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
176 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
177 | if (eval "$as_required") 2>/dev/null; then : |
---|
178 | as_have_required=yes |
---|
179 | else |
---|
180 | as_have_required=no |
---|
181 | fi |
---|
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
183 | |
---|
184 | else |
---|
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
186 | as_found=false |
---|
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
188 | do |
---|
189 | IFS=$as_save_IFS |
---|
190 | test -z "$as_dir" && as_dir=. |
---|
191 | as_found=: |
---|
192 | case $as_dir in #( |
---|
193 | /*) |
---|
194 | for as_base in sh bash ksh sh5; do |
---|
195 | # Try only shells that exist, to save several forks. |
---|
196 | as_shell=$as_dir/$as_base |
---|
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
199 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
201 | break 2 |
---|
202 | fi |
---|
203 | fi |
---|
204 | done;; |
---|
205 | esac |
---|
206 | as_found=false |
---|
207 | done |
---|
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
210 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
211 | fi; } |
---|
212 | IFS=$as_save_IFS |
---|
213 | |
---|
214 | |
---|
215 | if test "x$CONFIG_SHELL" != x; then : |
---|
216 | # We cannot yet assume a decent shell, so we have to provide a |
---|
217 | # neutralization value for shells without unset; and this also |
---|
218 | # works around shells that cannot unset nonexistent variables. |
---|
219 | BASH_ENV=/dev/null |
---|
220 | ENV=/dev/null |
---|
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
222 | export CONFIG_SHELL |
---|
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
224 | fi |
---|
225 | |
---|
226 | if test x$as_have_required = xno; then : |
---|
227 | $as_echo "$0: This script requires a shell more modern than all" |
---|
228 | $as_echo "$0: the shells that I found on your system." |
---|
229 | if test x${ZSH_VERSION+set} = xset ; then |
---|
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
232 | else |
---|
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS |
---|
234 | $0: about your system, including any error possibly output |
---|
235 | $0: before this message. Then install a modern shell, or |
---|
236 | $0: manually run the script under such a shell if you do |
---|
237 | $0: have one." |
---|
238 | fi |
---|
239 | exit 1 |
---|
240 | fi |
---|
241 | fi |
---|
242 | fi |
---|
243 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
244 | export SHELL |
---|
245 | # Unset more variables known to interfere with behavior of common tools. |
---|
246 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
247 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
248 | |
---|
249 | ## --------------------- ## |
---|
250 | ## M4sh Shell Functions. ## |
---|
251 | ## --------------------- ## |
---|
252 | # as_fn_unset VAR |
---|
253 | # --------------- |
---|
254 | # Portably unset VAR. |
---|
255 | as_fn_unset () |
---|
256 | { |
---|
257 | { eval $1=; unset $1;} |
---|
258 | } |
---|
259 | as_unset=as_fn_unset |
---|
260 | |
---|
261 | # as_fn_set_status STATUS |
---|
262 | # ----------------------- |
---|
263 | # Set $? to STATUS, without forking. |
---|
264 | as_fn_set_status () |
---|
265 | { |
---|
266 | return $1 |
---|
267 | } # as_fn_set_status |
---|
268 | |
---|
269 | # as_fn_exit STATUS |
---|
270 | # ----------------- |
---|
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
272 | as_fn_exit () |
---|
273 | { |
---|
274 | set +e |
---|
275 | as_fn_set_status $1 |
---|
276 | exit $1 |
---|
277 | } # as_fn_exit |
---|
278 | |
---|
279 | # as_fn_mkdir_p |
---|
280 | # ------------- |
---|
281 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
282 | as_fn_mkdir_p () |
---|
283 | { |
---|
284 | |
---|
285 | case $as_dir in #( |
---|
286 | -*) as_dir=./$as_dir;; |
---|
287 | esac |
---|
288 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
289 | as_dirs= |
---|
290 | while :; do |
---|
291 | case $as_dir in #( |
---|
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
293 | *) as_qdir=$as_dir;; |
---|
294 | esac |
---|
295 | as_dirs="'$as_qdir' $as_dirs" |
---|
296 | as_dir=`$as_dirname -- "$as_dir" || |
---|
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
299 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
301 | $as_echo X"$as_dir" | |
---|
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
303 | s//\1/ |
---|
304 | q |
---|
305 | } |
---|
306 | /^X\(\/\/\)[^/].*/{ |
---|
307 | s//\1/ |
---|
308 | q |
---|
309 | } |
---|
310 | /^X\(\/\/\)$/{ |
---|
311 | s//\1/ |
---|
312 | q |
---|
313 | } |
---|
314 | /^X\(\/\).*/{ |
---|
315 | s//\1/ |
---|
316 | q |
---|
317 | } |
---|
318 | s/.*/./; q'` |
---|
319 | test -d "$as_dir" && break |
---|
320 | done |
---|
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
---|
323 | |
---|
324 | |
---|
325 | } # as_fn_mkdir_p |
---|
326 | # as_fn_append VAR VALUE |
---|
327 | # ---------------------- |
---|
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
329 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
330 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
331 | # implementations. |
---|
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
333 | eval 'as_fn_append () |
---|
334 | { |
---|
335 | eval $1+=\$2 |
---|
336 | }' |
---|
337 | else |
---|
338 | as_fn_append () |
---|
339 | { |
---|
340 | eval $1=\$$1\$2 |
---|
341 | } |
---|
342 | fi # as_fn_append |
---|
343 | |
---|
344 | # as_fn_arith ARG... |
---|
345 | # ------------------ |
---|
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
348 | # must be portable across $(()) and expr. |
---|
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
350 | eval 'as_fn_arith () |
---|
351 | { |
---|
352 | as_val=$(( $* )) |
---|
353 | }' |
---|
354 | else |
---|
355 | as_fn_arith () |
---|
356 | { |
---|
357 | as_val=`expr "$@" || test $? -eq 1` |
---|
358 | } |
---|
359 | fi # as_fn_arith |
---|
360 | |
---|
361 | |
---|
362 | # as_fn_error ERROR [LINENO LOG_FD] |
---|
363 | # --------------------------------- |
---|
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
366 | # script with status $?, using 1 if that was 0. |
---|
367 | as_fn_error () |
---|
368 | { |
---|
369 | as_status=$?; test $as_status -eq 0 && as_status=1 |
---|
370 | if test "$3"; then |
---|
371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
---|
373 | fi |
---|
374 | $as_echo "$as_me: error: $1" >&2 |
---|
375 | as_fn_exit $as_status |
---|
376 | } # as_fn_error |
---|
377 | |
---|
378 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
380 | as_expr=expr |
---|
381 | else |
---|
382 | as_expr=false |
---|
383 | fi |
---|
384 | |
---|
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
386 | as_basename=basename |
---|
387 | else |
---|
388 | as_basename=false |
---|
389 | fi |
---|
390 | |
---|
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
392 | as_dirname=dirname |
---|
393 | else |
---|
394 | as_dirname=false |
---|
395 | fi |
---|
396 | |
---|
397 | as_me=`$as_basename -- "$0" || |
---|
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
399 | X"$0" : 'X\(//\)$' \| \ |
---|
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
401 | $as_echo X/"$0" | |
---|
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
403 | s//\1/ |
---|
404 | q |
---|
405 | } |
---|
406 | /^X\/\(\/\/\)$/{ |
---|
407 | s//\1/ |
---|
408 | q |
---|
409 | } |
---|
410 | /^X\/\(\/\).*/{ |
---|
411 | s//\1/ |
---|
412 | q |
---|
413 | } |
---|
414 | s/.*/./; q'` |
---|
415 | |
---|
416 | # Avoid depending upon Character Ranges. |
---|
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
420 | as_cr_digits='0123456789' |
---|
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
422 | |
---|
423 | |
---|
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
429 | sed -n ' |
---|
430 | p |
---|
431 | /[$]LINENO/= |
---|
432 | ' <$as_myself | |
---|
433 | sed ' |
---|
434 | s/[$]LINENO.*/&-/ |
---|
435 | t lineno |
---|
436 | b |
---|
437 | :lineno |
---|
438 | N |
---|
439 | :loop |
---|
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
441 | t loop |
---|
442 | s/-\n.*// |
---|
443 | ' >$as_me.lineno && |
---|
444 | chmod +x "$as_me.lineno" || |
---|
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
446 | |
---|
447 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
448 | # (the dirname of $[0] is not the place where we might find the |
---|
449 | # original and so on. Autoconf is especially sensitive to this). |
---|
450 | . "./$as_me.lineno" |
---|
451 | # Exit status is that of the last command. |
---|
452 | exit |
---|
453 | } |
---|
454 | |
---|
455 | ECHO_C= ECHO_N= ECHO_T= |
---|
456 | case `echo -n x` in #((((( |
---|
457 | -n*) |
---|
458 | case `echo 'xy\c'` in |
---|
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
460 | xy) ECHO_C='\c';; |
---|
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
462 | ECHO_T=' ';; |
---|
463 | esac;; |
---|
464 | *) |
---|
465 | ECHO_N='-n';; |
---|
466 | esac |
---|
467 | |
---|
468 | rm -f conf$$ conf$$.exe conf$$.file |
---|
469 | if test -d conf$$.dir; then |
---|
470 | rm -f conf$$.dir/conf$$.file |
---|
471 | else |
---|
472 | rm -f conf$$.dir |
---|
473 | mkdir conf$$.dir 2>/dev/null |
---|
474 | fi |
---|
475 | if (echo >conf$$.file) 2>/dev/null; then |
---|
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
477 | as_ln_s='ln -s' |
---|
478 | # ... but there are two gotchas: |
---|
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
481 | # In both cases, we have to default to `cp -p'. |
---|
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
483 | as_ln_s='cp -p' |
---|
484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
485 | as_ln_s=ln |
---|
486 | else |
---|
487 | as_ln_s='cp -p' |
---|
488 | fi |
---|
489 | else |
---|
490 | as_ln_s='cp -p' |
---|
491 | fi |
---|
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
493 | rmdir conf$$.dir 2>/dev/null |
---|
494 | |
---|
495 | if mkdir -p . 2>/dev/null; then |
---|
496 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
497 | else |
---|
498 | test -d ./-p && rmdir ./-p |
---|
499 | as_mkdir_p=false |
---|
500 | fi |
---|
501 | |
---|
502 | if test -x / >/dev/null 2>&1; then |
---|
503 | as_test_x='test -x' |
---|
504 | else |
---|
505 | if ls -dL / >/dev/null 2>&1; then |
---|
506 | as_ls_L_option=L |
---|
507 | else |
---|
508 | as_ls_L_option= |
---|
509 | fi |
---|
510 | as_test_x=' |
---|
511 | eval sh -c '\'' |
---|
512 | if test -d "$1"; then |
---|
513 | test -d "$1/."; |
---|
514 | else |
---|
515 | case $1 in #( |
---|
516 | -*)set "./$1";; |
---|
517 | esac; |
---|
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
519 | ???[sx]*):;;*)false;;esac;fi |
---|
520 | '\'' sh |
---|
521 | ' |
---|
522 | fi |
---|
523 | as_executable_p=$as_test_x |
---|
524 | |
---|
525 | # Sed expression to map a string onto a valid CPP name. |
---|
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
527 | |
---|
528 | # Sed expression to map a string onto a valid variable name. |
---|
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
530 | |
---|
531 | |
---|
532 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
533 | exec 6>&1 |
---|
534 | |
---|
535 | # Name of the host. |
---|
536 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
537 | # so uname gets run too. |
---|
538 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
539 | |
---|
540 | # |
---|
541 | # Initializations. |
---|
542 | # |
---|
543 | ac_default_prefix=/usr/local |
---|
544 | ac_clean_files= |
---|
545 | ac_config_libobj_dir=. |
---|
546 | LIBOBJS= |
---|
547 | cross_compiling=no |
---|
548 | subdirs= |
---|
549 | MFLAGS= |
---|
550 | MAKEFLAGS= |
---|
551 | |
---|
552 | # Identity of this package. |
---|
553 | PACKAGE_NAME='FULL-PACKAGE-NAME' |
---|
554 | PACKAGE_TARNAME='full-package-name' |
---|
555 | PACKAGE_VERSION='VERSION' |
---|
556 | PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' |
---|
557 | PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' |
---|
558 | PACKAGE_URL='' |
---|
559 | |
---|
560 | ac_unique_file="longalg.cc" |
---|
561 | # Factoring default headers for most tests. |
---|
562 | ac_includes_default="\ |
---|
563 | #include <stdio.h> |
---|
564 | #ifdef HAVE_SYS_TYPES_H |
---|
565 | # include <sys/types.h> |
---|
566 | #endif |
---|
567 | #ifdef HAVE_SYS_STAT_H |
---|
568 | # include <sys/stat.h> |
---|
569 | #endif |
---|
570 | #ifdef STDC_HEADERS |
---|
571 | # include <stdlib.h> |
---|
572 | # include <stddef.h> |
---|
573 | #else |
---|
574 | # ifdef HAVE_STDLIB_H |
---|
575 | # include <stdlib.h> |
---|
576 | # endif |
---|
577 | #endif |
---|
578 | #ifdef HAVE_STRING_H |
---|
579 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
580 | # include <memory.h> |
---|
581 | # endif |
---|
582 | # include <string.h> |
---|
583 | #endif |
---|
584 | #ifdef HAVE_STRINGS_H |
---|
585 | # include <strings.h> |
---|
586 | #endif |
---|
587 | #ifdef HAVE_INTTYPES_H |
---|
588 | # include <inttypes.h> |
---|
589 | #endif |
---|
590 | #ifdef HAVE_STDINT_H |
---|
591 | # include <stdint.h> |
---|
592 | #endif |
---|
593 | #ifdef HAVE_UNISTD_H |
---|
594 | # include <unistd.h> |
---|
595 | #endif" |
---|
596 | |
---|
597 | ac_subst_vars='LTLIBOBJS |
---|
598 | LIBOBJS |
---|
599 | EGREP |
---|
600 | GREP |
---|
601 | CPP |
---|
602 | LN_S |
---|
603 | ac_ct_CC |
---|
604 | CFLAGS |
---|
605 | CC |
---|
606 | OBJEXT |
---|
607 | EXEEXT |
---|
608 | ac_ct_CXX |
---|
609 | CPPFLAGS |
---|
610 | LDFLAGS |
---|
611 | CXXFLAGS |
---|
612 | CXX |
---|
613 | target_alias |
---|
614 | host_alias |
---|
615 | build_alias |
---|
616 | LIBS |
---|
617 | ECHO_T |
---|
618 | ECHO_N |
---|
619 | ECHO_C |
---|
620 | DEFS |
---|
621 | mandir |
---|
622 | localedir |
---|
623 | libdir |
---|
624 | psdir |
---|
625 | pdfdir |
---|
626 | dvidir |
---|
627 | htmldir |
---|
628 | infodir |
---|
629 | docdir |
---|
630 | oldincludedir |
---|
631 | includedir |
---|
632 | localstatedir |
---|
633 | sharedstatedir |
---|
634 | sysconfdir |
---|
635 | datadir |
---|
636 | datarootdir |
---|
637 | libexecdir |
---|
638 | sbindir |
---|
639 | bindir |
---|
640 | program_transform_name |
---|
641 | prefix |
---|
642 | exec_prefix |
---|
643 | PACKAGE_URL |
---|
644 | PACKAGE_BUGREPORT |
---|
645 | PACKAGE_STRING |
---|
646 | PACKAGE_VERSION |
---|
647 | PACKAGE_TARNAME |
---|
648 | PACKAGE_NAME |
---|
649 | PATH_SEPARATOR |
---|
650 | SHELL' |
---|
651 | ac_subst_files='' |
---|
652 | ac_user_opts=' |
---|
653 | enable_option_checking |
---|
654 | ' |
---|
655 | ac_precious_vars='build_alias |
---|
656 | host_alias |
---|
657 | target_alias |
---|
658 | CXX |
---|
659 | CXXFLAGS |
---|
660 | LDFLAGS |
---|
661 | LIBS |
---|
662 | CPPFLAGS |
---|
663 | CCC |
---|
664 | CC |
---|
665 | CFLAGS |
---|
666 | CPP' |
---|
667 | |
---|
668 | |
---|
669 | # Initialize some variables set by options. |
---|
670 | ac_init_help= |
---|
671 | ac_init_version=false |
---|
672 | ac_unrecognized_opts= |
---|
673 | ac_unrecognized_sep= |
---|
674 | # The variables have the same names as the options, with |
---|
675 | # dashes changed to underlines. |
---|
676 | cache_file=/dev/null |
---|
677 | exec_prefix=NONE |
---|
678 | no_create= |
---|
679 | no_recursion= |
---|
680 | prefix=NONE |
---|
681 | program_prefix=NONE |
---|
682 | program_suffix=NONE |
---|
683 | program_transform_name=s,x,x, |
---|
684 | silent= |
---|
685 | site= |
---|
686 | srcdir= |
---|
687 | verbose= |
---|
688 | x_includes=NONE |
---|
689 | x_libraries=NONE |
---|
690 | |
---|
691 | # Installation directory options. |
---|
692 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
693 | # and all the variables that are supposed to be based on exec_prefix |
---|
694 | # by default will actually change. |
---|
695 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
696 | # (The list follows the same order as the GNU Coding Standards.) |
---|
697 | bindir='${exec_prefix}/bin' |
---|
698 | sbindir='${exec_prefix}/sbin' |
---|
699 | libexecdir='${exec_prefix}/libexec' |
---|
700 | datarootdir='${prefix}/share' |
---|
701 | datadir='${datarootdir}' |
---|
702 | sysconfdir='${prefix}/etc' |
---|
703 | sharedstatedir='${prefix}/com' |
---|
704 | localstatedir='${prefix}/var' |
---|
705 | includedir='${prefix}/include' |
---|
706 | oldincludedir='/usr/include' |
---|
707 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
708 | infodir='${datarootdir}/info' |
---|
709 | htmldir='${docdir}' |
---|
710 | dvidir='${docdir}' |
---|
711 | pdfdir='${docdir}' |
---|
712 | psdir='${docdir}' |
---|
713 | libdir='${exec_prefix}/lib' |
---|
714 | localedir='${datarootdir}/locale' |
---|
715 | mandir='${datarootdir}/man' |
---|
716 | |
---|
717 | ac_prev= |
---|
718 | ac_dashdash= |
---|
719 | for ac_option |
---|
720 | do |
---|
721 | # If the previous option needs an argument, assign it. |
---|
722 | if test -n "$ac_prev"; then |
---|
723 | eval $ac_prev=\$ac_option |
---|
724 | ac_prev= |
---|
725 | continue |
---|
726 | fi |
---|
727 | |
---|
728 | case $ac_option in |
---|
729 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
730 | *) ac_optarg=yes ;; |
---|
731 | esac |
---|
732 | |
---|
733 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
734 | |
---|
735 | case $ac_dashdash$ac_option in |
---|
736 | --) |
---|
737 | ac_dashdash=yes ;; |
---|
738 | |
---|
739 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
740 | ac_prev=bindir ;; |
---|
741 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
742 | bindir=$ac_optarg ;; |
---|
743 | |
---|
744 | -build | --build | --buil | --bui | --bu) |
---|
745 | ac_prev=build_alias ;; |
---|
746 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
747 | build_alias=$ac_optarg ;; |
---|
748 | |
---|
749 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
750 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
751 | ac_prev=cache_file ;; |
---|
752 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
753 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
754 | cache_file=$ac_optarg ;; |
---|
755 | |
---|
756 | --config-cache | -C) |
---|
757 | cache_file=config.cache ;; |
---|
758 | |
---|
759 | -datadir | --datadir | --datadi | --datad) |
---|
760 | ac_prev=datadir ;; |
---|
761 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
762 | datadir=$ac_optarg ;; |
---|
763 | |
---|
764 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
765 | | --dataroo | --dataro | --datar) |
---|
766 | ac_prev=datarootdir ;; |
---|
767 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
768 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
769 | datarootdir=$ac_optarg ;; |
---|
770 | |
---|
771 | -disable-* | --disable-*) |
---|
772 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
773 | # Reject names that are not valid shell variable names. |
---|
774 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
775 | as_fn_error "invalid feature name: $ac_useropt" |
---|
776 | ac_useropt_orig=$ac_useropt |
---|
777 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
778 | case $ac_user_opts in |
---|
779 | *" |
---|
780 | "enable_$ac_useropt" |
---|
781 | "*) ;; |
---|
782 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
783 | ac_unrecognized_sep=', ';; |
---|
784 | esac |
---|
785 | eval enable_$ac_useropt=no ;; |
---|
786 | |
---|
787 | -docdir | --docdir | --docdi | --doc | --do) |
---|
788 | ac_prev=docdir ;; |
---|
789 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
790 | docdir=$ac_optarg ;; |
---|
791 | |
---|
792 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
793 | ac_prev=dvidir ;; |
---|
794 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
795 | dvidir=$ac_optarg ;; |
---|
796 | |
---|
797 | -enable-* | --enable-*) |
---|
798 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
799 | # Reject names that are not valid shell variable names. |
---|
800 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
801 | as_fn_error "invalid feature name: $ac_useropt" |
---|
802 | ac_useropt_orig=$ac_useropt |
---|
803 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
804 | case $ac_user_opts in |
---|
805 | *" |
---|
806 | "enable_$ac_useropt" |
---|
807 | "*) ;; |
---|
808 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
809 | ac_unrecognized_sep=', ';; |
---|
810 | esac |
---|
811 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
812 | |
---|
813 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
814 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
815 | | --exec | --exe | --ex) |
---|
816 | ac_prev=exec_prefix ;; |
---|
817 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
818 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
819 | | --exec=* | --exe=* | --ex=*) |
---|
820 | exec_prefix=$ac_optarg ;; |
---|
821 | |
---|
822 | -gas | --gas | --ga | --g) |
---|
823 | # Obsolete; use --with-gas. |
---|
824 | with_gas=yes ;; |
---|
825 | |
---|
826 | -help | --help | --hel | --he | -h) |
---|
827 | ac_init_help=long ;; |
---|
828 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
829 | ac_init_help=recursive ;; |
---|
830 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
831 | ac_init_help=short ;; |
---|
832 | |
---|
833 | -host | --host | --hos | --ho) |
---|
834 | ac_prev=host_alias ;; |
---|
835 | -host=* | --host=* | --hos=* | --ho=*) |
---|
836 | host_alias=$ac_optarg ;; |
---|
837 | |
---|
838 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
839 | ac_prev=htmldir ;; |
---|
840 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
841 | | --ht=*) |
---|
842 | htmldir=$ac_optarg ;; |
---|
843 | |
---|
844 | -includedir | --includedir | --includedi | --included | --include \ |
---|
845 | | --includ | --inclu | --incl | --inc) |
---|
846 | ac_prev=includedir ;; |
---|
847 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
848 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
849 | includedir=$ac_optarg ;; |
---|
850 | |
---|
851 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
852 | ac_prev=infodir ;; |
---|
853 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
854 | infodir=$ac_optarg ;; |
---|
855 | |
---|
856 | -libdir | --libdir | --libdi | --libd) |
---|
857 | ac_prev=libdir ;; |
---|
858 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
859 | libdir=$ac_optarg ;; |
---|
860 | |
---|
861 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
862 | | --libexe | --libex | --libe) |
---|
863 | ac_prev=libexecdir ;; |
---|
864 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
865 | | --libexe=* | --libex=* | --libe=*) |
---|
866 | libexecdir=$ac_optarg ;; |
---|
867 | |
---|
868 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
869 | ac_prev=localedir ;; |
---|
870 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
871 | localedir=$ac_optarg ;; |
---|
872 | |
---|
873 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
874 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
875 | ac_prev=localstatedir ;; |
---|
876 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
877 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
878 | localstatedir=$ac_optarg ;; |
---|
879 | |
---|
880 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
881 | ac_prev=mandir ;; |
---|
882 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
883 | mandir=$ac_optarg ;; |
---|
884 | |
---|
885 | -nfp | --nfp | --nf) |
---|
886 | # Obsolete; use --without-fp. |
---|
887 | with_fp=no ;; |
---|
888 | |
---|
889 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
890 | | --no-cr | --no-c | -n) |
---|
891 | no_create=yes ;; |
---|
892 | |
---|
893 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
894 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
895 | no_recursion=yes ;; |
---|
896 | |
---|
897 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
898 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
899 | | --oldin | --oldi | --old | --ol | --o) |
---|
900 | ac_prev=oldincludedir ;; |
---|
901 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
902 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
903 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
904 | oldincludedir=$ac_optarg ;; |
---|
905 | |
---|
906 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
907 | ac_prev=prefix ;; |
---|
908 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
909 | prefix=$ac_optarg ;; |
---|
910 | |
---|
911 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
912 | | --program-pre | --program-pr | --program-p) |
---|
913 | ac_prev=program_prefix ;; |
---|
914 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
915 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
916 | program_prefix=$ac_optarg ;; |
---|
917 | |
---|
918 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
919 | | --program-suf | --program-su | --program-s) |
---|
920 | ac_prev=program_suffix ;; |
---|
921 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
922 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
923 | program_suffix=$ac_optarg ;; |
---|
924 | |
---|
925 | -program-transform-name | --program-transform-name \ |
---|
926 | | --program-transform-nam | --program-transform-na \ |
---|
927 | | --program-transform-n | --program-transform- \ |
---|
928 | | --program-transform | --program-transfor \ |
---|
929 | | --program-transfo | --program-transf \ |
---|
930 | | --program-trans | --program-tran \ |
---|
931 | | --progr-tra | --program-tr | --program-t) |
---|
932 | ac_prev=program_transform_name ;; |
---|
933 | -program-transform-name=* | --program-transform-name=* \ |
---|
934 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
935 | | --program-transform-n=* | --program-transform-=* \ |
---|
936 | | --program-transform=* | --program-transfor=* \ |
---|
937 | | --program-transfo=* | --program-transf=* \ |
---|
938 | | --program-trans=* | --program-tran=* \ |
---|
939 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
940 | program_transform_name=$ac_optarg ;; |
---|
941 | |
---|
942 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
943 | ac_prev=pdfdir ;; |
---|
944 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
945 | pdfdir=$ac_optarg ;; |
---|
946 | |
---|
947 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
948 | ac_prev=psdir ;; |
---|
949 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
950 | psdir=$ac_optarg ;; |
---|
951 | |
---|
952 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
953 | | -silent | --silent | --silen | --sile | --sil) |
---|
954 | silent=yes ;; |
---|
955 | |
---|
956 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
957 | ac_prev=sbindir ;; |
---|
958 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
959 | | --sbi=* | --sb=*) |
---|
960 | sbindir=$ac_optarg ;; |
---|
961 | |
---|
962 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
963 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
964 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
965 | | --sha | --sh) |
---|
966 | ac_prev=sharedstatedir ;; |
---|
967 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
968 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
969 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
970 | | --sha=* | --sh=*) |
---|
971 | sharedstatedir=$ac_optarg ;; |
---|
972 | |
---|
973 | -site | --site | --sit) |
---|
974 | ac_prev=site ;; |
---|
975 | -site=* | --site=* | --sit=*) |
---|
976 | site=$ac_optarg ;; |
---|
977 | |
---|
978 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
979 | ac_prev=srcdir ;; |
---|
980 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
981 | srcdir=$ac_optarg ;; |
---|
982 | |
---|
983 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
984 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
985 | ac_prev=sysconfdir ;; |
---|
986 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
987 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
988 | sysconfdir=$ac_optarg ;; |
---|
989 | |
---|
990 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
991 | ac_prev=target_alias ;; |
---|
992 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
993 | target_alias=$ac_optarg ;; |
---|
994 | |
---|
995 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
996 | verbose=yes ;; |
---|
997 | |
---|
998 | -version | --version | --versio | --versi | --vers | -V) |
---|
999 | ac_init_version=: ;; |
---|
1000 | |
---|
1001 | -with-* | --with-*) |
---|
1002 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1003 | # Reject names that are not valid shell variable names. |
---|
1004 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1005 | as_fn_error "invalid package name: $ac_useropt" |
---|
1006 | ac_useropt_orig=$ac_useropt |
---|
1007 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1008 | case $ac_user_opts in |
---|
1009 | *" |
---|
1010 | "with_$ac_useropt" |
---|
1011 | "*) ;; |
---|
1012 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1013 | ac_unrecognized_sep=', ';; |
---|
1014 | esac |
---|
1015 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1016 | |
---|
1017 | -without-* | --without-*) |
---|
1018 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1019 | # Reject names that are not valid shell variable names. |
---|
1020 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1021 | as_fn_error "invalid package name: $ac_useropt" |
---|
1022 | ac_useropt_orig=$ac_useropt |
---|
1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1024 | case $ac_user_opts in |
---|
1025 | *" |
---|
1026 | "with_$ac_useropt" |
---|
1027 | "*) ;; |
---|
1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1029 | ac_unrecognized_sep=', ';; |
---|
1030 | esac |
---|
1031 | eval with_$ac_useropt=no ;; |
---|
1032 | |
---|
1033 | --x) |
---|
1034 | # Obsolete; use --with-x. |
---|
1035 | with_x=yes ;; |
---|
1036 | |
---|
1037 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1038 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1039 | ac_prev=x_includes ;; |
---|
1040 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1041 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1042 | x_includes=$ac_optarg ;; |
---|
1043 | |
---|
1044 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1045 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1046 | ac_prev=x_libraries ;; |
---|
1047 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1048 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1049 | x_libraries=$ac_optarg ;; |
---|
1050 | |
---|
1051 | -*) as_fn_error "unrecognized option: \`$ac_option' |
---|
1052 | Try \`$0 --help' for more information." |
---|
1053 | ;; |
---|
1054 | |
---|
1055 | *=*) |
---|
1056 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1057 | # Reject names that are not valid shell variable names. |
---|
1058 | case $ac_envvar in #( |
---|
1059 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1060 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
---|
1061 | esac |
---|
1062 | eval $ac_envvar=\$ac_optarg |
---|
1063 | export $ac_envvar ;; |
---|
1064 | |
---|
1065 | *) |
---|
1066 | # FIXME: should be removed in autoconf 3.0. |
---|
1067 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1068 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1069 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1070 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1071 | ;; |
---|
1072 | |
---|
1073 | esac |
---|
1074 | done |
---|
1075 | |
---|
1076 | if test -n "$ac_prev"; then |
---|
1077 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1078 | as_fn_error "missing argument to $ac_option" |
---|
1079 | fi |
---|
1080 | |
---|
1081 | if test -n "$ac_unrecognized_opts"; then |
---|
1082 | case $enable_option_checking in |
---|
1083 | no) ;; |
---|
1084 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1085 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1086 | esac |
---|
1087 | fi |
---|
1088 | |
---|
1089 | # Check all directory arguments for consistency. |
---|
1090 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1091 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1092 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1093 | libdir localedir mandir |
---|
1094 | do |
---|
1095 | eval ac_val=\$$ac_var |
---|
1096 | # Remove trailing slashes. |
---|
1097 | case $ac_val in |
---|
1098 | */ ) |
---|
1099 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1100 | eval $ac_var=\$ac_val;; |
---|
1101 | esac |
---|
1102 | # Be sure to have absolute directory names. |
---|
1103 | case $ac_val in |
---|
1104 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1105 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1106 | esac |
---|
1107 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1108 | done |
---|
1109 | |
---|
1110 | # There might be people who depend on the old broken behavior: `$host' |
---|
1111 | # used to hold the argument of --host etc. |
---|
1112 | # FIXME: To remove some day. |
---|
1113 | build=$build_alias |
---|
1114 | host=$host_alias |
---|
1115 | target=$target_alias |
---|
1116 | |
---|
1117 | # FIXME: To remove some day. |
---|
1118 | if test "x$host_alias" != x; then |
---|
1119 | if test "x$build_alias" = x; then |
---|
1120 | cross_compiling=maybe |
---|
1121 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1122 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1123 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1124 | cross_compiling=yes |
---|
1125 | fi |
---|
1126 | fi |
---|
1127 | |
---|
1128 | ac_tool_prefix= |
---|
1129 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1130 | |
---|
1131 | test "$silent" = yes && exec 6>/dev/null |
---|
1132 | |
---|
1133 | |
---|
1134 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1135 | ac_ls_di=`ls -di .` && |
---|
1136 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1137 | as_fn_error "working directory cannot be determined" |
---|
1138 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1139 | as_fn_error "pwd does not report name of working directory" |
---|
1140 | |
---|
1141 | |
---|
1142 | # Find the source files, if location was not specified. |
---|
1143 | if test -z "$srcdir"; then |
---|
1144 | ac_srcdir_defaulted=yes |
---|
1145 | # Try the directory containing this script, then the parent directory. |
---|
1146 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1147 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1148 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1149 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1150 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1151 | $as_echo X"$as_myself" | |
---|
1152 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1153 | s//\1/ |
---|
1154 | q |
---|
1155 | } |
---|
1156 | /^X\(\/\/\)[^/].*/{ |
---|
1157 | s//\1/ |
---|
1158 | q |
---|
1159 | } |
---|
1160 | /^X\(\/\/\)$/{ |
---|
1161 | s//\1/ |
---|
1162 | q |
---|
1163 | } |
---|
1164 | /^X\(\/\).*/{ |
---|
1165 | s//\1/ |
---|
1166 | q |
---|
1167 | } |
---|
1168 | s/.*/./; q'` |
---|
1169 | srcdir=$ac_confdir |
---|
1170 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1171 | srcdir=.. |
---|
1172 | fi |
---|
1173 | else |
---|
1174 | ac_srcdir_defaulted=no |
---|
1175 | fi |
---|
1176 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1177 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1178 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1179 | fi |
---|
1180 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1181 | ac_abs_confdir=`( |
---|
1182 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
---|
1183 | pwd)` |
---|
1184 | # When building in place, set srcdir=. |
---|
1185 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1186 | srcdir=. |
---|
1187 | fi |
---|
1188 | # Remove unnecessary trailing slashes from srcdir. |
---|
1189 | # Double slashes in file names in object file debugging info |
---|
1190 | # mess up M-x gdb in Emacs. |
---|
1191 | case $srcdir in |
---|
1192 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1193 | esac |
---|
1194 | for ac_var in $ac_precious_vars; do |
---|
1195 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1196 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1197 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1198 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1199 | done |
---|
1200 | |
---|
1201 | # |
---|
1202 | # Report the --help message. |
---|
1203 | # |
---|
1204 | if test "$ac_init_help" = "long"; then |
---|
1205 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1206 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1207 | cat <<_ACEOF |
---|
1208 | \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems. |
---|
1209 | |
---|
1210 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1211 | |
---|
1212 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1213 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1214 | |
---|
1215 | Defaults for the options are specified in brackets. |
---|
1216 | |
---|
1217 | Configuration: |
---|
1218 | -h, --help display this help and exit |
---|
1219 | --help=short display options specific to this package |
---|
1220 | --help=recursive display the short help of all the included packages |
---|
1221 | -V, --version display version information and exit |
---|
1222 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1223 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1224 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1225 | -n, --no-create do not create output files |
---|
1226 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1227 | |
---|
1228 | Installation directories: |
---|
1229 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1230 | [$ac_default_prefix] |
---|
1231 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1232 | [PREFIX] |
---|
1233 | |
---|
1234 | By default, \`make install' will install all the files in |
---|
1235 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1236 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1237 | for instance \`--prefix=\$HOME'. |
---|
1238 | |
---|
1239 | For better control, use the options below. |
---|
1240 | |
---|
1241 | Fine tuning of the installation directories: |
---|
1242 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1243 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1244 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1245 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1246 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1247 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1248 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1249 | --includedir=DIR C header files [PREFIX/include] |
---|
1250 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1251 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1252 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1253 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1254 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1255 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1256 | --docdir=DIR documentation root |
---|
1257 | [DATAROOTDIR/doc/full-package-name] |
---|
1258 | --htmldir=DIR html documentation [DOCDIR] |
---|
1259 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1260 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1261 | --psdir=DIR ps documentation [DOCDIR] |
---|
1262 | _ACEOF |
---|
1263 | |
---|
1264 | cat <<\_ACEOF |
---|
1265 | _ACEOF |
---|
1266 | fi |
---|
1267 | |
---|
1268 | if test -n "$ac_init_help"; then |
---|
1269 | case $ac_init_help in |
---|
1270 | short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";; |
---|
1271 | esac |
---|
1272 | cat <<\_ACEOF |
---|
1273 | |
---|
1274 | Some influential environment variables: |
---|
1275 | CXX C++ compiler command |
---|
1276 | CXXFLAGS C++ compiler flags |
---|
1277 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1278 | nonstandard directory <lib dir> |
---|
1279 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1280 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1281 | you have headers in a nonstandard directory <include dir> |
---|
1282 | CC C compiler command |
---|
1283 | CFLAGS C compiler flags |
---|
1284 | CPP C preprocessor |
---|
1285 | |
---|
1286 | Use these variables to override the choices made by `configure' or to help |
---|
1287 | it to find libraries and programs with nonstandard names/locations. |
---|
1288 | |
---|
1289 | Report bugs to <BUG-REPORT-ADDRESS>. |
---|
1290 | _ACEOF |
---|
1291 | ac_status=$? |
---|
1292 | fi |
---|
1293 | |
---|
1294 | if test "$ac_init_help" = "recursive"; then |
---|
1295 | # If there are subdirs, report their specific --help. |
---|
1296 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1297 | test -d "$ac_dir" || |
---|
1298 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1299 | continue |
---|
1300 | ac_builddir=. |
---|
1301 | |
---|
1302 | case "$ac_dir" in |
---|
1303 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1304 | *) |
---|
1305 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1306 | # A ".." for each directory in $ac_dir_suffix. |
---|
1307 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1308 | case $ac_top_builddir_sub in |
---|
1309 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1310 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1311 | esac ;; |
---|
1312 | esac |
---|
1313 | ac_abs_top_builddir=$ac_pwd |
---|
1314 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1315 | # for backward compatibility: |
---|
1316 | ac_top_builddir=$ac_top_build_prefix |
---|
1317 | |
---|
1318 | case $srcdir in |
---|
1319 | .) # We are building in place. |
---|
1320 | ac_srcdir=. |
---|
1321 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1322 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1323 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1324 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1325 | ac_top_srcdir=$srcdir |
---|
1326 | ac_abs_top_srcdir=$srcdir ;; |
---|
1327 | *) # Relative name. |
---|
1328 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1329 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1330 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1331 | esac |
---|
1332 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1333 | |
---|
1334 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1335 | # Check for guested configure. |
---|
1336 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1337 | echo && |
---|
1338 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1339 | elif test -f "$ac_srcdir/configure"; then |
---|
1340 | echo && |
---|
1341 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1342 | else |
---|
1343 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1344 | fi || ac_status=$? |
---|
1345 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1346 | done |
---|
1347 | fi |
---|
1348 | |
---|
1349 | test -n "$ac_init_help" && exit $ac_status |
---|
1350 | if $ac_init_version; then |
---|
1351 | cat <<\_ACEOF |
---|
1352 | FULL-PACKAGE-NAME configure VERSION |
---|
1353 | generated by GNU Autoconf 2.65 |
---|
1354 | |
---|
1355 | Copyright (C) 2009 Free Software Foundation, Inc. |
---|
1356 | This configure script is free software; the Free Software Foundation |
---|
1357 | gives unlimited permission to copy, distribute and modify it. |
---|
1358 | _ACEOF |
---|
1359 | exit |
---|
1360 | fi |
---|
1361 | |
---|
1362 | ## ------------------------ ## |
---|
1363 | ## Autoconf initialization. ## |
---|
1364 | ## ------------------------ ## |
---|
1365 | |
---|
1366 | # ac_fn_cxx_try_compile LINENO |
---|
1367 | # ---------------------------- |
---|
1368 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1369 | ac_fn_cxx_try_compile () |
---|
1370 | { |
---|
1371 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1372 | rm -f conftest.$ac_objext |
---|
1373 | if { { ac_try="$ac_compile" |
---|
1374 | case "(($ac_try" in |
---|
1375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1376 | *) ac_try_echo=$ac_try;; |
---|
1377 | esac |
---|
1378 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1379 | $as_echo "$ac_try_echo"; } >&5 |
---|
1380 | (eval "$ac_compile") 2>conftest.err |
---|
1381 | ac_status=$? |
---|
1382 | if test -s conftest.err; then |
---|
1383 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1384 | cat conftest.er1 >&5 |
---|
1385 | mv -f conftest.er1 conftest.err |
---|
1386 | fi |
---|
1387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1388 | test $ac_status = 0; } && { |
---|
1389 | test -z "$ac_cxx_werror_flag" || |
---|
1390 | test ! -s conftest.err |
---|
1391 | } && test -s conftest.$ac_objext; then : |
---|
1392 | ac_retval=0 |
---|
1393 | else |
---|
1394 | $as_echo "$as_me: failed program was:" >&5 |
---|
1395 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1396 | |
---|
1397 | ac_retval=1 |
---|
1398 | fi |
---|
1399 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1400 | as_fn_set_status $ac_retval |
---|
1401 | |
---|
1402 | } # ac_fn_cxx_try_compile |
---|
1403 | |
---|
1404 | # ac_fn_c_try_compile LINENO |
---|
1405 | # -------------------------- |
---|
1406 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1407 | ac_fn_c_try_compile () |
---|
1408 | { |
---|
1409 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1410 | rm -f conftest.$ac_objext |
---|
1411 | if { { ac_try="$ac_compile" |
---|
1412 | case "(($ac_try" in |
---|
1413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1414 | *) ac_try_echo=$ac_try;; |
---|
1415 | esac |
---|
1416 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1417 | $as_echo "$ac_try_echo"; } >&5 |
---|
1418 | (eval "$ac_compile") 2>conftest.err |
---|
1419 | ac_status=$? |
---|
1420 | if test -s conftest.err; then |
---|
1421 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1422 | cat conftest.er1 >&5 |
---|
1423 | mv -f conftest.er1 conftest.err |
---|
1424 | fi |
---|
1425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1426 | test $ac_status = 0; } && { |
---|
1427 | test -z "$ac_c_werror_flag" || |
---|
1428 | test ! -s conftest.err |
---|
1429 | } && test -s conftest.$ac_objext; then : |
---|
1430 | ac_retval=0 |
---|
1431 | else |
---|
1432 | $as_echo "$as_me: failed program was:" >&5 |
---|
1433 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1434 | |
---|
1435 | ac_retval=1 |
---|
1436 | fi |
---|
1437 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1438 | as_fn_set_status $ac_retval |
---|
1439 | |
---|
1440 | } # ac_fn_c_try_compile |
---|
1441 | |
---|
1442 | # ac_fn_c_try_cpp LINENO |
---|
1443 | # ---------------------- |
---|
1444 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1445 | ac_fn_c_try_cpp () |
---|
1446 | { |
---|
1447 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1448 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1449 | case "(($ac_try" in |
---|
1450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1451 | *) ac_try_echo=$ac_try;; |
---|
1452 | esac |
---|
1453 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1454 | $as_echo "$ac_try_echo"; } >&5 |
---|
1455 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1456 | ac_status=$? |
---|
1457 | if test -s conftest.err; then |
---|
1458 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1459 | cat conftest.er1 >&5 |
---|
1460 | mv -f conftest.er1 conftest.err |
---|
1461 | fi |
---|
1462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1463 | test $ac_status = 0; } >/dev/null && { |
---|
1464 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1465 | test ! -s conftest.err |
---|
1466 | }; then : |
---|
1467 | ac_retval=0 |
---|
1468 | else |
---|
1469 | $as_echo "$as_me: failed program was:" >&5 |
---|
1470 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1471 | |
---|
1472 | ac_retval=1 |
---|
1473 | fi |
---|
1474 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1475 | as_fn_set_status $ac_retval |
---|
1476 | |
---|
1477 | } # ac_fn_c_try_cpp |
---|
1478 | |
---|
1479 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1480 | # ------------------------------------------------------- |
---|
1481 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1482 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1483 | # accordingly. |
---|
1484 | ac_fn_c_check_header_mongrel () |
---|
1485 | { |
---|
1486 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1487 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1489 | $as_echo_n "checking for $2... " >&6; } |
---|
1490 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1491 | $as_echo_n "(cached) " >&6 |
---|
1492 | fi |
---|
1493 | eval ac_res=\$$3 |
---|
1494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1495 | $as_echo "$ac_res" >&6; } |
---|
1496 | else |
---|
1497 | # Is the header compilable? |
---|
1498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1499 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1501 | /* end confdefs.h. */ |
---|
1502 | $4 |
---|
1503 | #include <$2> |
---|
1504 | _ACEOF |
---|
1505 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1506 | ac_header_compiler=yes |
---|
1507 | else |
---|
1508 | ac_header_compiler=no |
---|
1509 | fi |
---|
1510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1512 | $as_echo "$ac_header_compiler" >&6; } |
---|
1513 | |
---|
1514 | # Is the header present? |
---|
1515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1516 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1518 | /* end confdefs.h. */ |
---|
1519 | #include <$2> |
---|
1520 | _ACEOF |
---|
1521 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1522 | ac_header_preproc=yes |
---|
1523 | else |
---|
1524 | ac_header_preproc=no |
---|
1525 | fi |
---|
1526 | rm -f conftest.err conftest.$ac_ext |
---|
1527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1528 | $as_echo "$ac_header_preproc" >&6; } |
---|
1529 | |
---|
1530 | # So? What about this header? |
---|
1531 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1532 | yes:no: ) |
---|
1533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1534 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1535 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1536 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1537 | ;; |
---|
1538 | no:yes:* ) |
---|
1539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1540 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1542 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1544 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1545 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1546 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1548 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1549 | ( cat <<\_ASBOX |
---|
1550 | ## --------------------------------- ## |
---|
1551 | ## Report this to BUG-REPORT-ADDRESS ## |
---|
1552 | ## --------------------------------- ## |
---|
1553 | _ASBOX |
---|
1554 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1555 | ;; |
---|
1556 | esac |
---|
1557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1558 | $as_echo_n "checking for $2... " >&6; } |
---|
1559 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1560 | $as_echo_n "(cached) " >&6 |
---|
1561 | else |
---|
1562 | eval "$3=\$ac_header_compiler" |
---|
1563 | fi |
---|
1564 | eval ac_res=\$$3 |
---|
1565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1566 | $as_echo "$ac_res" >&6; } |
---|
1567 | fi |
---|
1568 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1569 | |
---|
1570 | } # ac_fn_c_check_header_mongrel |
---|
1571 | |
---|
1572 | # ac_fn_c_try_run LINENO |
---|
1573 | # ---------------------- |
---|
1574 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1575 | # that executables *can* be run. |
---|
1576 | ac_fn_c_try_run () |
---|
1577 | { |
---|
1578 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1579 | if { { ac_try="$ac_link" |
---|
1580 | case "(($ac_try" in |
---|
1581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1582 | *) ac_try_echo=$ac_try;; |
---|
1583 | esac |
---|
1584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1585 | $as_echo "$ac_try_echo"; } >&5 |
---|
1586 | (eval "$ac_link") 2>&5 |
---|
1587 | ac_status=$? |
---|
1588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1589 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1590 | { { case "(($ac_try" in |
---|
1591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1592 | *) ac_try_echo=$ac_try;; |
---|
1593 | esac |
---|
1594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1595 | $as_echo "$ac_try_echo"; } >&5 |
---|
1596 | (eval "$ac_try") 2>&5 |
---|
1597 | ac_status=$? |
---|
1598 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1599 | test $ac_status = 0; }; }; then : |
---|
1600 | ac_retval=0 |
---|
1601 | else |
---|
1602 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1603 | $as_echo "$as_me: failed program was:" >&5 |
---|
1604 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1605 | |
---|
1606 | ac_retval=$ac_status |
---|
1607 | fi |
---|
1608 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1609 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1610 | as_fn_set_status $ac_retval |
---|
1611 | |
---|
1612 | } # ac_fn_c_try_run |
---|
1613 | |
---|
1614 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1615 | # ------------------------------------------------------- |
---|
1616 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1617 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1618 | ac_fn_c_check_header_compile () |
---|
1619 | { |
---|
1620 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1622 | $as_echo_n "checking for $2... " >&6; } |
---|
1623 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1624 | $as_echo_n "(cached) " >&6 |
---|
1625 | else |
---|
1626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1627 | /* end confdefs.h. */ |
---|
1628 | $4 |
---|
1629 | #include <$2> |
---|
1630 | _ACEOF |
---|
1631 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1632 | eval "$3=yes" |
---|
1633 | else |
---|
1634 | eval "$3=no" |
---|
1635 | fi |
---|
1636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1637 | fi |
---|
1638 | eval ac_res=\$$3 |
---|
1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1640 | $as_echo "$ac_res" >&6; } |
---|
1641 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1642 | |
---|
1643 | } # ac_fn_c_check_header_compile |
---|
1644 | |
---|
1645 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
---|
1646 | # ------------------------------------------- |
---|
1647 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
---|
1648 | # variable VAR accordingly. |
---|
1649 | ac_fn_c_check_type () |
---|
1650 | { |
---|
1651 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1653 | $as_echo_n "checking for $2... " >&6; } |
---|
1654 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1655 | $as_echo_n "(cached) " >&6 |
---|
1656 | else |
---|
1657 | eval "$3=no" |
---|
1658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1659 | /* end confdefs.h. */ |
---|
1660 | $4 |
---|
1661 | int |
---|
1662 | main () |
---|
1663 | { |
---|
1664 | if (sizeof ($2)) |
---|
1665 | return 0; |
---|
1666 | ; |
---|
1667 | return 0; |
---|
1668 | } |
---|
1669 | _ACEOF |
---|
1670 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1672 | /* end confdefs.h. */ |
---|
1673 | $4 |
---|
1674 | int |
---|
1675 | main () |
---|
1676 | { |
---|
1677 | if (sizeof (($2))) |
---|
1678 | return 0; |
---|
1679 | ; |
---|
1680 | return 0; |
---|
1681 | } |
---|
1682 | _ACEOF |
---|
1683 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1684 | |
---|
1685 | else |
---|
1686 | eval "$3=yes" |
---|
1687 | fi |
---|
1688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1689 | fi |
---|
1690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1691 | fi |
---|
1692 | eval ac_res=\$$3 |
---|
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1694 | $as_echo "$ac_res" >&6; } |
---|
1695 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1696 | |
---|
1697 | } # ac_fn_c_check_type |
---|
1698 | |
---|
1699 | # ac_fn_c_try_link LINENO |
---|
1700 | # ----------------------- |
---|
1701 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1702 | ac_fn_c_try_link () |
---|
1703 | { |
---|
1704 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1705 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1706 | if { { ac_try="$ac_link" |
---|
1707 | case "(($ac_try" in |
---|
1708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1709 | *) ac_try_echo=$ac_try;; |
---|
1710 | esac |
---|
1711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1712 | $as_echo "$ac_try_echo"; } >&5 |
---|
1713 | (eval "$ac_link") 2>conftest.err |
---|
1714 | ac_status=$? |
---|
1715 | if test -s conftest.err; then |
---|
1716 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1717 | cat conftest.er1 >&5 |
---|
1718 | mv -f conftest.er1 conftest.err |
---|
1719 | fi |
---|
1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1721 | test $ac_status = 0; } && { |
---|
1722 | test -z "$ac_c_werror_flag" || |
---|
1723 | test ! -s conftest.err |
---|
1724 | } && test -s conftest$ac_exeext && { |
---|
1725 | test "$cross_compiling" = yes || |
---|
1726 | $as_test_x conftest$ac_exeext |
---|
1727 | }; then : |
---|
1728 | ac_retval=0 |
---|
1729 | else |
---|
1730 | $as_echo "$as_me: failed program was:" >&5 |
---|
1731 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1732 | |
---|
1733 | ac_retval=1 |
---|
1734 | fi |
---|
1735 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1736 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1737 | # interfere with the next link command; also delete a directory that is |
---|
1738 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1739 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1740 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1741 | as_fn_set_status $ac_retval |
---|
1742 | |
---|
1743 | } # ac_fn_c_try_link |
---|
1744 | |
---|
1745 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1746 | # ---------------------------------- |
---|
1747 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1748 | ac_fn_c_check_func () |
---|
1749 | { |
---|
1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1752 | $as_echo_n "checking for $2... " >&6; } |
---|
1753 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
---|
1754 | $as_echo_n "(cached) " >&6 |
---|
1755 | else |
---|
1756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1757 | /* end confdefs.h. */ |
---|
1758 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1760 | #define $2 innocuous_$2 |
---|
1761 | |
---|
1762 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1763 | which can conflict with char $2 (); below. |
---|
1764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1765 | <limits.h> exists even on freestanding compilers. */ |
---|
1766 | |
---|
1767 | #ifdef __STDC__ |
---|
1768 | # include <limits.h> |
---|
1769 | #else |
---|
1770 | # include <assert.h> |
---|
1771 | #endif |
---|
1772 | |
---|
1773 | #undef $2 |
---|
1774 | |
---|
1775 | /* Override any GCC internal prototype to avoid an error. |
---|
1776 | Use char because int might match the return type of a GCC |
---|
1777 | builtin and then its argument prototype would still apply. */ |
---|
1778 | #ifdef __cplusplus |
---|
1779 | extern "C" |
---|
1780 | #endif |
---|
1781 | char $2 (); |
---|
1782 | /* The GNU C library defines this for functions which it implements |
---|
1783 | to always fail with ENOSYS. Some functions are actually named |
---|
1784 | something starting with __ and the normal name is an alias. */ |
---|
1785 | #if defined __stub_$2 || defined __stub___$2 |
---|
1786 | choke me |
---|
1787 | #endif |
---|
1788 | |
---|
1789 | int |
---|
1790 | main () |
---|
1791 | { |
---|
1792 | return $2 (); |
---|
1793 | ; |
---|
1794 | return 0; |
---|
1795 | } |
---|
1796 | _ACEOF |
---|
1797 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1798 | eval "$3=yes" |
---|
1799 | else |
---|
1800 | eval "$3=no" |
---|
1801 | fi |
---|
1802 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1803 | conftest$ac_exeext conftest.$ac_ext |
---|
1804 | fi |
---|
1805 | eval ac_res=\$$3 |
---|
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1807 | $as_echo "$ac_res" >&6; } |
---|
1808 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
---|
1809 | |
---|
1810 | } # ac_fn_c_check_func |
---|
1811 | cat >config.log <<_ACEOF |
---|
1812 | This file contains any messages produced by compilers while |
---|
1813 | running configure, to aid debugging if configure makes a mistake. |
---|
1814 | |
---|
1815 | It was created by FULL-PACKAGE-NAME $as_me VERSION, which was |
---|
1816 | generated by GNU Autoconf 2.65. Invocation command line was |
---|
1817 | |
---|
1818 | $ $0 $@ |
---|
1819 | |
---|
1820 | _ACEOF |
---|
1821 | exec 5>>config.log |
---|
1822 | { |
---|
1823 | cat <<_ASUNAME |
---|
1824 | ## --------- ## |
---|
1825 | ## Platform. ## |
---|
1826 | ## --------- ## |
---|
1827 | |
---|
1828 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1829 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1830 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1831 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1832 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1833 | |
---|
1834 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1835 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1836 | |
---|
1837 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1838 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1839 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1840 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1841 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1842 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1843 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1844 | |
---|
1845 | _ASUNAME |
---|
1846 | |
---|
1847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1848 | for as_dir in $PATH |
---|
1849 | do |
---|
1850 | IFS=$as_save_IFS |
---|
1851 | test -z "$as_dir" && as_dir=. |
---|
1852 | $as_echo "PATH: $as_dir" |
---|
1853 | done |
---|
1854 | IFS=$as_save_IFS |
---|
1855 | |
---|
1856 | } >&5 |
---|
1857 | |
---|
1858 | cat >&5 <<_ACEOF |
---|
1859 | |
---|
1860 | |
---|
1861 | ## ----------- ## |
---|
1862 | ## Core tests. ## |
---|
1863 | ## ----------- ## |
---|
1864 | |
---|
1865 | _ACEOF |
---|
1866 | |
---|
1867 | |
---|
1868 | # Keep a trace of the command line. |
---|
1869 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1870 | # Strip out --silent because we don't want to record it for future runs. |
---|
1871 | # Also quote any args containing shell meta-characters. |
---|
1872 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1873 | ac_configure_args= |
---|
1874 | ac_configure_args0= |
---|
1875 | ac_configure_args1= |
---|
1876 | ac_must_keep_next=false |
---|
1877 | for ac_pass in 1 2 |
---|
1878 | do |
---|
1879 | for ac_arg |
---|
1880 | do |
---|
1881 | case $ac_arg in |
---|
1882 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1883 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1884 | | -silent | --silent | --silen | --sile | --sil) |
---|
1885 | continue ;; |
---|
1886 | *\'*) |
---|
1887 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1888 | esac |
---|
1889 | case $ac_pass in |
---|
1890 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
1891 | 2) |
---|
1892 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
1893 | if test $ac_must_keep_next = true; then |
---|
1894 | ac_must_keep_next=false # Got value, back to normal. |
---|
1895 | else |
---|
1896 | case $ac_arg in |
---|
1897 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1898 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1899 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1900 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1901 | case "$ac_configure_args0 " in |
---|
1902 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1903 | esac |
---|
1904 | ;; |
---|
1905 | -* ) ac_must_keep_next=true ;; |
---|
1906 | esac |
---|
1907 | fi |
---|
1908 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
1909 | ;; |
---|
1910 | esac |
---|
1911 | done |
---|
1912 | done |
---|
1913 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
1914 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
1915 | |
---|
1916 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1917 | # config.log. We remove comments because anyway the quotes in there |
---|
1918 | # would cause problems or look ugly. |
---|
1919 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1920 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1921 | trap 'exit_status=$? |
---|
1922 | # Save into config.log some information that might help in debugging. |
---|
1923 | { |
---|
1924 | echo |
---|
1925 | |
---|
1926 | cat <<\_ASBOX |
---|
1927 | ## ---------------- ## |
---|
1928 | ## Cache variables. ## |
---|
1929 | ## ---------------- ## |
---|
1930 | _ASBOX |
---|
1931 | echo |
---|
1932 | # The following way of writing the cache mishandles newlines in values, |
---|
1933 | ( |
---|
1934 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1935 | eval ac_val=\$$ac_var |
---|
1936 | case $ac_val in #( |
---|
1937 | *${as_nl}*) |
---|
1938 | case $ac_var in #( |
---|
1939 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
1940 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
1941 | esac |
---|
1942 | case $ac_var in #( |
---|
1943 | _ | IFS | as_nl) ;; #( |
---|
1944 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
1945 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
1946 | esac ;; |
---|
1947 | esac |
---|
1948 | done |
---|
1949 | (set) 2>&1 | |
---|
1950 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1951 | *${as_nl}ac_space=\ *) |
---|
1952 | sed -n \ |
---|
1953 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1954 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1955 | ;; #( |
---|
1956 | *) |
---|
1957 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1958 | ;; |
---|
1959 | esac | |
---|
1960 | sort |
---|
1961 | ) |
---|
1962 | echo |
---|
1963 | |
---|
1964 | cat <<\_ASBOX |
---|
1965 | ## ----------------- ## |
---|
1966 | ## Output variables. ## |
---|
1967 | ## ----------------- ## |
---|
1968 | _ASBOX |
---|
1969 | echo |
---|
1970 | for ac_var in $ac_subst_vars |
---|
1971 | do |
---|
1972 | eval ac_val=\$$ac_var |
---|
1973 | case $ac_val in |
---|
1974 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1975 | esac |
---|
1976 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1977 | done | sort |
---|
1978 | echo |
---|
1979 | |
---|
1980 | if test -n "$ac_subst_files"; then |
---|
1981 | cat <<\_ASBOX |
---|
1982 | ## ------------------- ## |
---|
1983 | ## File substitutions. ## |
---|
1984 | ## ------------------- ## |
---|
1985 | _ASBOX |
---|
1986 | echo |
---|
1987 | for ac_var in $ac_subst_files |
---|
1988 | do |
---|
1989 | eval ac_val=\$$ac_var |
---|
1990 | case $ac_val in |
---|
1991 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1992 | esac |
---|
1993 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1994 | done | sort |
---|
1995 | echo |
---|
1996 | fi |
---|
1997 | |
---|
1998 | if test -s confdefs.h; then |
---|
1999 | cat <<\_ASBOX |
---|
2000 | ## ----------- ## |
---|
2001 | ## confdefs.h. ## |
---|
2002 | ## ----------- ## |
---|
2003 | _ASBOX |
---|
2004 | echo |
---|
2005 | cat confdefs.h |
---|
2006 | echo |
---|
2007 | fi |
---|
2008 | test "$ac_signal" != 0 && |
---|
2009 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2010 | $as_echo "$as_me: exit $exit_status" |
---|
2011 | } >&5 |
---|
2012 | rm -f core *.core core.conftest.* && |
---|
2013 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2014 | exit $exit_status |
---|
2015 | ' 0 |
---|
2016 | for ac_signal in 1 2 13 15; do |
---|
2017 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2018 | done |
---|
2019 | ac_signal=0 |
---|
2020 | |
---|
2021 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2022 | rm -f -r conftest* confdefs.h |
---|
2023 | |
---|
2024 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2025 | |
---|
2026 | # Predefined preprocessor variables. |
---|
2027 | |
---|
2028 | cat >>confdefs.h <<_ACEOF |
---|
2029 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2030 | _ACEOF |
---|
2031 | |
---|
2032 | cat >>confdefs.h <<_ACEOF |
---|
2033 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2034 | _ACEOF |
---|
2035 | |
---|
2036 | cat >>confdefs.h <<_ACEOF |
---|
2037 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2038 | _ACEOF |
---|
2039 | |
---|
2040 | cat >>confdefs.h <<_ACEOF |
---|
2041 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2042 | _ACEOF |
---|
2043 | |
---|
2044 | cat >>confdefs.h <<_ACEOF |
---|
2045 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2046 | _ACEOF |
---|
2047 | |
---|
2048 | cat >>confdefs.h <<_ACEOF |
---|
2049 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2050 | _ACEOF |
---|
2051 | |
---|
2052 | |
---|
2053 | # Let the site file select an alternate cache file if it wants to. |
---|
2054 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2055 | ac_site_file1=NONE |
---|
2056 | ac_site_file2=NONE |
---|
2057 | if test -n "$CONFIG_SITE"; then |
---|
2058 | ac_site_file1=$CONFIG_SITE |
---|
2059 | elif test "x$prefix" != xNONE; then |
---|
2060 | ac_site_file1=$prefix/share/config.site |
---|
2061 | ac_site_file2=$prefix/etc/config.site |
---|
2062 | else |
---|
2063 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2064 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2065 | fi |
---|
2066 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2067 | do |
---|
2068 | test "x$ac_site_file" = xNONE && continue |
---|
2069 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2070 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2071 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2072 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2073 | . "$ac_site_file" |
---|
2074 | fi |
---|
2075 | done |
---|
2076 | |
---|
2077 | if test -r "$cache_file"; then |
---|
2078 | # Some versions of bash will fail to source /dev/null (special files |
---|
2079 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2080 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2082 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2083 | case $cache_file in |
---|
2084 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2085 | *) . "./$cache_file";; |
---|
2086 | esac |
---|
2087 | fi |
---|
2088 | else |
---|
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2090 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2091 | >$cache_file |
---|
2092 | fi |
---|
2093 | |
---|
2094 | # Check that the precious variables saved in the cache have kept the same |
---|
2095 | # value. |
---|
2096 | ac_cache_corrupted=false |
---|
2097 | for ac_var in $ac_precious_vars; do |
---|
2098 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2099 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2100 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2101 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2102 | case $ac_old_set,$ac_new_set in |
---|
2103 | set,) |
---|
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2105 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2106 | ac_cache_corrupted=: ;; |
---|
2107 | ,set) |
---|
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2109 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2110 | ac_cache_corrupted=: ;; |
---|
2111 | ,);; |
---|
2112 | *) |
---|
2113 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2114 | # differences in whitespace do not lead to failure. |
---|
2115 | ac_old_val_w=`echo x $ac_old_val` |
---|
2116 | ac_new_val_w=`echo x $ac_new_val` |
---|
2117 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2119 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2120 | ac_cache_corrupted=: |
---|
2121 | else |
---|
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2123 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2124 | eval $ac_var=\$ac_old_val |
---|
2125 | fi |
---|
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2127 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2129 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2130 | fi;; |
---|
2131 | esac |
---|
2132 | # Pass precious variables to config.status. |
---|
2133 | if test "$ac_new_set" = set; then |
---|
2134 | case $ac_new_val in |
---|
2135 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2136 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2137 | esac |
---|
2138 | case " $ac_configure_args " in |
---|
2139 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2140 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2141 | esac |
---|
2142 | fi |
---|
2143 | done |
---|
2144 | if $ac_cache_corrupted; then |
---|
2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2146 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2148 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2149 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2150 | fi |
---|
2151 | ## -------------------- ## |
---|
2152 | ## Main body of script. ## |
---|
2153 | ## -------------------- ## |
---|
2154 | |
---|
2155 | ac_ext=c |
---|
2156 | ac_cpp='$CPP $CPPFLAGS' |
---|
2157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2160 | |
---|
2161 | |
---|
2162 | |
---|
2163 | ac_config_headers="$ac_config_headers config.h" |
---|
2164 | |
---|
2165 | |
---|
2166 | # Checks for programs. |
---|
2167 | ac_ext=cpp |
---|
2168 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2169 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2170 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2171 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
2172 | if test -z "$CXX"; then |
---|
2173 | if test -n "$CCC"; then |
---|
2174 | CXX=$CCC |
---|
2175 | else |
---|
2176 | if test -n "$ac_tool_prefix"; then |
---|
2177 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
2178 | do |
---|
2179 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2180 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2182 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2183 | if test "${ac_cv_prog_CXX+set}" = set; then : |
---|
2184 | $as_echo_n "(cached) " >&6 |
---|
2185 | else |
---|
2186 | if test -n "$CXX"; then |
---|
2187 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
2188 | else |
---|
2189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2190 | for as_dir in $PATH |
---|
2191 | do |
---|
2192 | IFS=$as_save_IFS |
---|
2193 | test -z "$as_dir" && as_dir=. |
---|
2194 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2196 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
2197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2198 | break 2 |
---|
2199 | fi |
---|
2200 | done |
---|
2201 | done |
---|
2202 | IFS=$as_save_IFS |
---|
2203 | |
---|
2204 | fi |
---|
2205 | fi |
---|
2206 | CXX=$ac_cv_prog_CXX |
---|
2207 | if test -n "$CXX"; then |
---|
2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
---|
2209 | $as_echo "$CXX" >&6; } |
---|
2210 | else |
---|
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2212 | $as_echo "no" >&6; } |
---|
2213 | fi |
---|
2214 | |
---|
2215 | |
---|
2216 | test -n "$CXX" && break |
---|
2217 | done |
---|
2218 | fi |
---|
2219 | if test -z "$CXX"; then |
---|
2220 | ac_ct_CXX=$CXX |
---|
2221 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
2222 | do |
---|
2223 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2224 | set dummy $ac_prog; ac_word=$2 |
---|
2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2226 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2227 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
---|
2228 | $as_echo_n "(cached) " >&6 |
---|
2229 | else |
---|
2230 | if test -n "$ac_ct_CXX"; then |
---|
2231 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
2232 | else |
---|
2233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2234 | for as_dir in $PATH |
---|
2235 | do |
---|
2236 | IFS=$as_save_IFS |
---|
2237 | test -z "$as_dir" && as_dir=. |
---|
2238 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2240 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
2241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2242 | break 2 |
---|
2243 | fi |
---|
2244 | done |
---|
2245 | done |
---|
2246 | IFS=$as_save_IFS |
---|
2247 | |
---|
2248 | fi |
---|
2249 | fi |
---|
2250 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
2251 | if test -n "$ac_ct_CXX"; then |
---|
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
---|
2253 | $as_echo "$ac_ct_CXX" >&6; } |
---|
2254 | else |
---|
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2256 | $as_echo "no" >&6; } |
---|
2257 | fi |
---|
2258 | |
---|
2259 | |
---|
2260 | test -n "$ac_ct_CXX" && break |
---|
2261 | done |
---|
2262 | |
---|
2263 | if test "x$ac_ct_CXX" = x; then |
---|
2264 | CXX="g++" |
---|
2265 | else |
---|
2266 | case $cross_compiling:$ac_tool_warned in |
---|
2267 | yes:) |
---|
2268 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2269 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2270 | ac_tool_warned=yes ;; |
---|
2271 | esac |
---|
2272 | CXX=$ac_ct_CXX |
---|
2273 | fi |
---|
2274 | fi |
---|
2275 | |
---|
2276 | fi |
---|
2277 | fi |
---|
2278 | # Provide some information about the compiler. |
---|
2279 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
---|
2280 | set X $ac_compile |
---|
2281 | ac_compiler=$2 |
---|
2282 | for ac_option in --version -v -V -qversion; do |
---|
2283 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2284 | case "(($ac_try" in |
---|
2285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2286 | *) ac_try_echo=$ac_try;; |
---|
2287 | esac |
---|
2288 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2289 | $as_echo "$ac_try_echo"; } >&5 |
---|
2290 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2291 | ac_status=$? |
---|
2292 | if test -s conftest.err; then |
---|
2293 | sed '10a\ |
---|
2294 | ... rest of stderr output deleted ... |
---|
2295 | 10q' conftest.err >conftest.er1 |
---|
2296 | cat conftest.er1 >&5 |
---|
2297 | fi |
---|
2298 | rm -f conftest.er1 conftest.err |
---|
2299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2300 | test $ac_status = 0; } |
---|
2301 | done |
---|
2302 | |
---|
2303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2304 | /* end confdefs.h. */ |
---|
2305 | |
---|
2306 | int |
---|
2307 | main () |
---|
2308 | { |
---|
2309 | |
---|
2310 | ; |
---|
2311 | return 0; |
---|
2312 | } |
---|
2313 | _ACEOF |
---|
2314 | ac_clean_files_save=$ac_clean_files |
---|
2315 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2316 | # Try to create an executable without -o first, disregard a.out. |
---|
2317 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2318 | # of exeext. |
---|
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
---|
2320 | $as_echo_n "checking whether the C++ compiler works... " >&6; } |
---|
2321 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2322 | |
---|
2323 | # The possible output files: |
---|
2324 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2325 | |
---|
2326 | ac_rmfiles= |
---|
2327 | for ac_file in $ac_files |
---|
2328 | do |
---|
2329 | case $ac_file in |
---|
2330 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2331 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2332 | esac |
---|
2333 | done |
---|
2334 | rm -f $ac_rmfiles |
---|
2335 | |
---|
2336 | if { { ac_try="$ac_link_default" |
---|
2337 | case "(($ac_try" in |
---|
2338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2339 | *) ac_try_echo=$ac_try;; |
---|
2340 | esac |
---|
2341 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2342 | $as_echo "$ac_try_echo"; } >&5 |
---|
2343 | (eval "$ac_link_default") 2>&5 |
---|
2344 | ac_status=$? |
---|
2345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2346 | test $ac_status = 0; }; then : |
---|
2347 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2348 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2349 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2350 | # so that the user can short-circuit this test for compilers unknown to |
---|
2351 | # Autoconf. |
---|
2352 | for ac_file in $ac_files '' |
---|
2353 | do |
---|
2354 | test -f "$ac_file" || continue |
---|
2355 | case $ac_file in |
---|
2356 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2357 | ;; |
---|
2358 | [ab].out ) |
---|
2359 | # We found the default executable, but exeext='' is most |
---|
2360 | # certainly right. |
---|
2361 | break;; |
---|
2362 | *.* ) |
---|
2363 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2364 | then :; else |
---|
2365 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2366 | fi |
---|
2367 | # We set ac_cv_exeext here because the later test for it is not |
---|
2368 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2369 | # argument, so we may need to know it at that point already. |
---|
2370 | # Even if this section looks crufty: it has the advantage of |
---|
2371 | # actually working. |
---|
2372 | break;; |
---|
2373 | * ) |
---|
2374 | break;; |
---|
2375 | esac |
---|
2376 | done |
---|
2377 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2378 | |
---|
2379 | else |
---|
2380 | ac_file='' |
---|
2381 | fi |
---|
2382 | if test -z "$ac_file"; then : |
---|
2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2384 | $as_echo "no" >&6; } |
---|
2385 | $as_echo "$as_me: failed program was:" >&5 |
---|
2386 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2387 | |
---|
2388 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2389 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2390 | { as_fn_set_status 77 |
---|
2391 | as_fn_error "C++ compiler cannot create executables |
---|
2392 | See \`config.log' for more details." "$LINENO" 5; }; } |
---|
2393 | else |
---|
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2395 | $as_echo "yes" >&6; } |
---|
2396 | fi |
---|
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
---|
2398 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
---|
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
2400 | $as_echo "$ac_file" >&6; } |
---|
2401 | ac_exeext=$ac_cv_exeext |
---|
2402 | |
---|
2403 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2404 | ac_clean_files=$ac_clean_files_save |
---|
2405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
2406 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2407 | if { { ac_try="$ac_link" |
---|
2408 | case "(($ac_try" in |
---|
2409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2410 | *) ac_try_echo=$ac_try;; |
---|
2411 | esac |
---|
2412 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2413 | $as_echo "$ac_try_echo"; } >&5 |
---|
2414 | (eval "$ac_link") 2>&5 |
---|
2415 | ac_status=$? |
---|
2416 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2417 | test $ac_status = 0; }; then : |
---|
2418 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2419 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2420 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2421 | # `rm'. |
---|
2422 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2423 | test -f "$ac_file" || continue |
---|
2424 | case $ac_file in |
---|
2425 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2426 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2427 | break;; |
---|
2428 | * ) break;; |
---|
2429 | esac |
---|
2430 | done |
---|
2431 | else |
---|
2432 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2434 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
---|
2435 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2436 | fi |
---|
2437 | rm -f conftest conftest$ac_cv_exeext |
---|
2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
2439 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2440 | |
---|
2441 | rm -f conftest.$ac_ext |
---|
2442 | EXEEXT=$ac_cv_exeext |
---|
2443 | ac_exeext=$EXEEXT |
---|
2444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2445 | /* end confdefs.h. */ |
---|
2446 | #include <stdio.h> |
---|
2447 | int |
---|
2448 | main () |
---|
2449 | { |
---|
2450 | FILE *f = fopen ("conftest.out", "w"); |
---|
2451 | return ferror (f) || fclose (f) != 0; |
---|
2452 | |
---|
2453 | ; |
---|
2454 | return 0; |
---|
2455 | } |
---|
2456 | _ACEOF |
---|
2457 | ac_clean_files="$ac_clean_files conftest.out" |
---|
2458 | # Check that the compiler produces executables we can run. If not, either |
---|
2459 | # the compiler is broken, or we cross compile. |
---|
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
2461 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2462 | if test "$cross_compiling" != yes; then |
---|
2463 | { { ac_try="$ac_link" |
---|
2464 | case "(($ac_try" in |
---|
2465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2466 | *) ac_try_echo=$ac_try;; |
---|
2467 | esac |
---|
2468 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2469 | $as_echo "$ac_try_echo"; } >&5 |
---|
2470 | (eval "$ac_link") 2>&5 |
---|
2471 | ac_status=$? |
---|
2472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2473 | test $ac_status = 0; } |
---|
2474 | if { ac_try='./conftest$ac_cv_exeext' |
---|
2475 | { { case "(($ac_try" in |
---|
2476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2477 | *) ac_try_echo=$ac_try;; |
---|
2478 | esac |
---|
2479 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2480 | $as_echo "$ac_try_echo"; } >&5 |
---|
2481 | (eval "$ac_try") 2>&5 |
---|
2482 | ac_status=$? |
---|
2483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2484 | test $ac_status = 0; }; }; then |
---|
2485 | cross_compiling=no |
---|
2486 | else |
---|
2487 | if test "$cross_compiling" = maybe; then |
---|
2488 | cross_compiling=yes |
---|
2489 | else |
---|
2490 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2491 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2492 | as_fn_error "cannot run C++ compiled programs. |
---|
2493 | If you meant to cross compile, use \`--host'. |
---|
2494 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2495 | fi |
---|
2496 | fi |
---|
2497 | fi |
---|
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
2499 | $as_echo "$cross_compiling" >&6; } |
---|
2500 | |
---|
2501 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
2502 | ac_clean_files=$ac_clean_files_save |
---|
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
2504 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
2505 | if test "${ac_cv_objext+set}" = set; then : |
---|
2506 | $as_echo_n "(cached) " >&6 |
---|
2507 | else |
---|
2508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2509 | /* end confdefs.h. */ |
---|
2510 | |
---|
2511 | int |
---|
2512 | main () |
---|
2513 | { |
---|
2514 | |
---|
2515 | ; |
---|
2516 | return 0; |
---|
2517 | } |
---|
2518 | _ACEOF |
---|
2519 | rm -f conftest.o conftest.obj |
---|
2520 | if { { ac_try="$ac_compile" |
---|
2521 | case "(($ac_try" in |
---|
2522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2523 | *) ac_try_echo=$ac_try;; |
---|
2524 | esac |
---|
2525 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2526 | $as_echo "$ac_try_echo"; } >&5 |
---|
2527 | (eval "$ac_compile") 2>&5 |
---|
2528 | ac_status=$? |
---|
2529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2530 | test $ac_status = 0; }; then : |
---|
2531 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
2532 | test -f "$ac_file" || continue; |
---|
2533 | case $ac_file in |
---|
2534 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
2535 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2536 | break;; |
---|
2537 | esac |
---|
2538 | done |
---|
2539 | else |
---|
2540 | $as_echo "$as_me: failed program was:" >&5 |
---|
2541 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2542 | |
---|
2543 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2544 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2545 | as_fn_error "cannot compute suffix of object files: cannot compile |
---|
2546 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2547 | fi |
---|
2548 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2549 | fi |
---|
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
2551 | $as_echo "$ac_cv_objext" >&6; } |
---|
2552 | OBJEXT=$ac_cv_objext |
---|
2553 | ac_objext=$OBJEXT |
---|
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
---|
2555 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
---|
2556 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
---|
2557 | $as_echo_n "(cached) " >&6 |
---|
2558 | else |
---|
2559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2560 | /* end confdefs.h. */ |
---|
2561 | |
---|
2562 | int |
---|
2563 | main () |
---|
2564 | { |
---|
2565 | #ifndef __GNUC__ |
---|
2566 | choke me |
---|
2567 | #endif |
---|
2568 | |
---|
2569 | ; |
---|
2570 | return 0; |
---|
2571 | } |
---|
2572 | _ACEOF |
---|
2573 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2574 | ac_compiler_gnu=yes |
---|
2575 | else |
---|
2576 | ac_compiler_gnu=no |
---|
2577 | fi |
---|
2578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2579 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2580 | |
---|
2581 | fi |
---|
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2583 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
---|
2584 | if test $ac_compiler_gnu = yes; then |
---|
2585 | GXX=yes |
---|
2586 | else |
---|
2587 | GXX= |
---|
2588 | fi |
---|
2589 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2590 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
---|
2592 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
---|
2593 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
---|
2594 | $as_echo_n "(cached) " >&6 |
---|
2595 | else |
---|
2596 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
2597 | ac_cxx_werror_flag=yes |
---|
2598 | ac_cv_prog_cxx_g=no |
---|
2599 | CXXFLAGS="-g" |
---|
2600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2601 | /* end confdefs.h. */ |
---|
2602 | |
---|
2603 | int |
---|
2604 | main () |
---|
2605 | { |
---|
2606 | |
---|
2607 | ; |
---|
2608 | return 0; |
---|
2609 | } |
---|
2610 | _ACEOF |
---|
2611 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2612 | ac_cv_prog_cxx_g=yes |
---|
2613 | else |
---|
2614 | CXXFLAGS="" |
---|
2615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2616 | /* end confdefs.h. */ |
---|
2617 | |
---|
2618 | int |
---|
2619 | main () |
---|
2620 | { |
---|
2621 | |
---|
2622 | ; |
---|
2623 | return 0; |
---|
2624 | } |
---|
2625 | _ACEOF |
---|
2626 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2627 | |
---|
2628 | else |
---|
2629 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
2630 | CXXFLAGS="-g" |
---|
2631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2632 | /* end confdefs.h. */ |
---|
2633 | |
---|
2634 | int |
---|
2635 | main () |
---|
2636 | { |
---|
2637 | |
---|
2638 | ; |
---|
2639 | return 0; |
---|
2640 | } |
---|
2641 | _ACEOF |
---|
2642 | if ac_fn_cxx_try_compile "$LINENO"; then : |
---|
2643 | ac_cv_prog_cxx_g=yes |
---|
2644 | fi |
---|
2645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2646 | fi |
---|
2647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2648 | fi |
---|
2649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2650 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
2651 | fi |
---|
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
---|
2653 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
---|
2654 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2655 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2656 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2657 | if test "$GXX" = yes; then |
---|
2658 | CXXFLAGS="-g -O2" |
---|
2659 | else |
---|
2660 | CXXFLAGS="-g" |
---|
2661 | fi |
---|
2662 | else |
---|
2663 | if test "$GXX" = yes; then |
---|
2664 | CXXFLAGS="-O2" |
---|
2665 | else |
---|
2666 | CXXFLAGS= |
---|
2667 | fi |
---|
2668 | fi |
---|
2669 | ac_ext=c |
---|
2670 | ac_cpp='$CPP $CPPFLAGS' |
---|
2671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2674 | |
---|
2675 | ac_ext=c |
---|
2676 | ac_cpp='$CPP $CPPFLAGS' |
---|
2677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2680 | if test -n "$ac_tool_prefix"; then |
---|
2681 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2682 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2684 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2685 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2686 | $as_echo_n "(cached) " >&6 |
---|
2687 | else |
---|
2688 | if test -n "$CC"; then |
---|
2689 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2690 | else |
---|
2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2692 | for as_dir in $PATH |
---|
2693 | do |
---|
2694 | IFS=$as_save_IFS |
---|
2695 | test -z "$as_dir" && as_dir=. |
---|
2696 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2698 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2700 | break 2 |
---|
2701 | fi |
---|
2702 | done |
---|
2703 | done |
---|
2704 | IFS=$as_save_IFS |
---|
2705 | |
---|
2706 | fi |
---|
2707 | fi |
---|
2708 | CC=$ac_cv_prog_CC |
---|
2709 | if test -n "$CC"; then |
---|
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2711 | $as_echo "$CC" >&6; } |
---|
2712 | else |
---|
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2714 | $as_echo "no" >&6; } |
---|
2715 | fi |
---|
2716 | |
---|
2717 | |
---|
2718 | fi |
---|
2719 | if test -z "$ac_cv_prog_CC"; then |
---|
2720 | ac_ct_CC=$CC |
---|
2721 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2722 | set dummy gcc; ac_word=$2 |
---|
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2724 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2725 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
---|
2726 | $as_echo_n "(cached) " >&6 |
---|
2727 | else |
---|
2728 | if test -n "$ac_ct_CC"; then |
---|
2729 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2730 | else |
---|
2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2732 | for as_dir in $PATH |
---|
2733 | do |
---|
2734 | IFS=$as_save_IFS |
---|
2735 | test -z "$as_dir" && as_dir=. |
---|
2736 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2738 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2740 | break 2 |
---|
2741 | fi |
---|
2742 | done |
---|
2743 | done |
---|
2744 | IFS=$as_save_IFS |
---|
2745 | |
---|
2746 | fi |
---|
2747 | fi |
---|
2748 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2749 | if test -n "$ac_ct_CC"; then |
---|
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2751 | $as_echo "$ac_ct_CC" >&6; } |
---|
2752 | else |
---|
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2754 | $as_echo "no" >&6; } |
---|
2755 | fi |
---|
2756 | |
---|
2757 | if test "x$ac_ct_CC" = x; then |
---|
2758 | CC="" |
---|
2759 | else |
---|
2760 | case $cross_compiling:$ac_tool_warned in |
---|
2761 | yes:) |
---|
2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2764 | ac_tool_warned=yes ;; |
---|
2765 | esac |
---|
2766 | CC=$ac_ct_CC |
---|
2767 | fi |
---|
2768 | else |
---|
2769 | CC="$ac_cv_prog_CC" |
---|
2770 | fi |
---|
2771 | |
---|
2772 | if test -z "$CC"; then |
---|
2773 | if test -n "$ac_tool_prefix"; then |
---|
2774 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2775 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2777 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2778 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2779 | $as_echo_n "(cached) " >&6 |
---|
2780 | else |
---|
2781 | if test -n "$CC"; then |
---|
2782 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2783 | else |
---|
2784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2785 | for as_dir in $PATH |
---|
2786 | do |
---|
2787 | IFS=$as_save_IFS |
---|
2788 | test -z "$as_dir" && as_dir=. |
---|
2789 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2791 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2793 | break 2 |
---|
2794 | fi |
---|
2795 | done |
---|
2796 | done |
---|
2797 | IFS=$as_save_IFS |
---|
2798 | |
---|
2799 | fi |
---|
2800 | fi |
---|
2801 | CC=$ac_cv_prog_CC |
---|
2802 | if test -n "$CC"; then |
---|
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2804 | $as_echo "$CC" >&6; } |
---|
2805 | else |
---|
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2807 | $as_echo "no" >&6; } |
---|
2808 | fi |
---|
2809 | |
---|
2810 | |
---|
2811 | fi |
---|
2812 | fi |
---|
2813 | if test -z "$CC"; then |
---|
2814 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2815 | set dummy cc; ac_word=$2 |
---|
2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2817 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2818 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2819 | $as_echo_n "(cached) " >&6 |
---|
2820 | else |
---|
2821 | if test -n "$CC"; then |
---|
2822 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2823 | else |
---|
2824 | ac_prog_rejected=no |
---|
2825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2826 | for as_dir in $PATH |
---|
2827 | do |
---|
2828 | IFS=$as_save_IFS |
---|
2829 | test -z "$as_dir" && as_dir=. |
---|
2830 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2832 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2833 | ac_prog_rejected=yes |
---|
2834 | continue |
---|
2835 | fi |
---|
2836 | ac_cv_prog_CC="cc" |
---|
2837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2838 | break 2 |
---|
2839 | fi |
---|
2840 | done |
---|
2841 | done |
---|
2842 | IFS=$as_save_IFS |
---|
2843 | |
---|
2844 | if test $ac_prog_rejected = yes; then |
---|
2845 | # We found a bogon in the path, so make sure we never use it. |
---|
2846 | set dummy $ac_cv_prog_CC |
---|
2847 | shift |
---|
2848 | if test $# != 0; then |
---|
2849 | # We chose a different compiler from the bogus one. |
---|
2850 | # However, it has the same basename, so the bogon will be chosen |
---|
2851 | # first if we set CC to just the basename; use the full file name. |
---|
2852 | shift |
---|
2853 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2854 | fi |
---|
2855 | fi |
---|
2856 | fi |
---|
2857 | fi |
---|
2858 | CC=$ac_cv_prog_CC |
---|
2859 | if test -n "$CC"; then |
---|
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2861 | $as_echo "$CC" >&6; } |
---|
2862 | else |
---|
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2864 | $as_echo "no" >&6; } |
---|
2865 | fi |
---|
2866 | |
---|
2867 | |
---|
2868 | fi |
---|
2869 | if test -z "$CC"; then |
---|
2870 | if test -n "$ac_tool_prefix"; then |
---|
2871 | for ac_prog in cl.exe |
---|
2872 | do |
---|
2873 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2874 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2876 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2877 | if test "${ac_cv_prog_CC+set}" = set; then : |
---|
2878 | $as_echo_n "(cached) " >&6 |
---|
2879 | else |
---|
2880 | if test -n "$CC"; then |
---|
2881 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2882 | else |
---|
2883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2884 | for as_dir in $PATH |
---|
2885 | do |
---|
2886 | IFS=$as_save_IFS |
---|
2887 | test -z "$as_dir" && as_dir=. |
---|
2888 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2890 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2892 | break 2 |
---|
2893 | fi |
---|
2894 | done |
---|
2895 | done |
---|
2896 | IFS=$as_save_IFS |
---|
2897 | |
---|
2898 | fi |
---|
2899 | fi |
---|
2900 | CC=$ac_cv_prog_CC |
---|
2901 | if test -n "$CC"; then |
---|
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2903 | $as_echo "$CC" >&6; } |
---|
2904 | else |
---|
2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2906 | $as_echo "no" >&6; } |
---|
2907 | fi |
---|
2908 | |
---|
2909 | |
---|
2910 | test -n "$CC" && break |
---|
2911 | done |
---|
2912 | fi |
---|
2913 | if test -z "$CC"; then |
---|
2914 | ac_ct_CC=$CC |
---|
2915 | for ac_prog in cl.exe |
---|
2916 | do |
---|
2917 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2918 | set dummy $ac_prog; ac_word=$2 |
---|
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2920 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2921 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
---|
2922 | $as_echo_n "(cached) " >&6 |
---|
2923 | else |
---|
2924 | if test -n "$ac_ct_CC"; then |
---|
2925 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2926 | else |
---|
2927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2928 | for as_dir in $PATH |
---|
2929 | do |
---|
2930 | IFS=$as_save_IFS |
---|
2931 | test -z "$as_dir" && as_dir=. |
---|
2932 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2934 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2936 | break 2 |
---|
2937 | fi |
---|
2938 | done |
---|
2939 | done |
---|
2940 | IFS=$as_save_IFS |
---|
2941 | |
---|
2942 | fi |
---|
2943 | fi |
---|
2944 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2945 | if test -n "$ac_ct_CC"; then |
---|
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2947 | $as_echo "$ac_ct_CC" >&6; } |
---|
2948 | else |
---|
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2950 | $as_echo "no" >&6; } |
---|
2951 | fi |
---|
2952 | |
---|
2953 | |
---|
2954 | test -n "$ac_ct_CC" && break |
---|
2955 | done |
---|
2956 | |
---|
2957 | if test "x$ac_ct_CC" = x; then |
---|
2958 | CC="" |
---|
2959 | else |
---|
2960 | case $cross_compiling:$ac_tool_warned in |
---|
2961 | yes:) |
---|
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2963 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2964 | ac_tool_warned=yes ;; |
---|
2965 | esac |
---|
2966 | CC=$ac_ct_CC |
---|
2967 | fi |
---|
2968 | fi |
---|
2969 | |
---|
2970 | fi |
---|
2971 | |
---|
2972 | |
---|
2973 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2974 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2975 | as_fn_error "no acceptable C compiler found in \$PATH |
---|
2976 | See \`config.log' for more details." "$LINENO" 5; } |
---|
2977 | |
---|
2978 | # Provide some information about the compiler. |
---|
2979 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
2980 | set X $ac_compile |
---|
2981 | ac_compiler=$2 |
---|
2982 | for ac_option in --version -v -V -qversion; do |
---|
2983 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2984 | case "(($ac_try" in |
---|
2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2986 | *) ac_try_echo=$ac_try;; |
---|
2987 | esac |
---|
2988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2989 | $as_echo "$ac_try_echo"; } >&5 |
---|
2990 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2991 | ac_status=$? |
---|
2992 | if test -s conftest.err; then |
---|
2993 | sed '10a\ |
---|
2994 | ... rest of stderr output deleted ... |
---|
2995 | 10q' conftest.err >conftest.er1 |
---|
2996 | cat conftest.er1 >&5 |
---|
2997 | fi |
---|
2998 | rm -f conftest.er1 conftest.err |
---|
2999 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3000 | test $ac_status = 0; } |
---|
3001 | done |
---|
3002 | |
---|
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3004 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3005 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
---|
3006 | $as_echo_n "(cached) " >&6 |
---|
3007 | else |
---|
3008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3009 | /* end confdefs.h. */ |
---|
3010 | |
---|
3011 | int |
---|
3012 | main () |
---|
3013 | { |
---|
3014 | #ifndef __GNUC__ |
---|
3015 | choke me |
---|
3016 | #endif |
---|
3017 | |
---|
3018 | ; |
---|
3019 | return 0; |
---|
3020 | } |
---|
3021 | _ACEOF |
---|
3022 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3023 | ac_compiler_gnu=yes |
---|
3024 | else |
---|
3025 | ac_compiler_gnu=no |
---|
3026 | fi |
---|
3027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3028 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3029 | |
---|
3030 | fi |
---|
3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3032 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3033 | if test $ac_compiler_gnu = yes; then |
---|
3034 | GCC=yes |
---|
3035 | else |
---|
3036 | GCC= |
---|
3037 | fi |
---|
3038 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3039 | ac_save_CFLAGS=$CFLAGS |
---|
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3041 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3042 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
---|
3043 | $as_echo_n "(cached) " >&6 |
---|
3044 | else |
---|
3045 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3046 | ac_c_werror_flag=yes |
---|
3047 | ac_cv_prog_cc_g=no |
---|
3048 | CFLAGS="-g" |
---|
3049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3050 | /* end confdefs.h. */ |
---|
3051 | |
---|
3052 | int |
---|
3053 | main () |
---|
3054 | { |
---|
3055 | |
---|
3056 | ; |
---|
3057 | return 0; |
---|
3058 | } |
---|
3059 | _ACEOF |
---|
3060 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3061 | ac_cv_prog_cc_g=yes |
---|
3062 | else |
---|
3063 | CFLAGS="" |
---|
3064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3065 | /* end confdefs.h. */ |
---|
3066 | |
---|
3067 | int |
---|
3068 | main () |
---|
3069 | { |
---|
3070 | |
---|
3071 | ; |
---|
3072 | return 0; |
---|
3073 | } |
---|
3074 | _ACEOF |
---|
3075 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3076 | |
---|
3077 | else |
---|
3078 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3079 | CFLAGS="-g" |
---|
3080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3081 | /* end confdefs.h. */ |
---|
3082 | |
---|
3083 | int |
---|
3084 | main () |
---|
3085 | { |
---|
3086 | |
---|
3087 | ; |
---|
3088 | return 0; |
---|
3089 | } |
---|
3090 | _ACEOF |
---|
3091 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3092 | ac_cv_prog_cc_g=yes |
---|
3093 | fi |
---|
3094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3095 | fi |
---|
3096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3097 | fi |
---|
3098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3099 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3100 | fi |
---|
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3102 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3103 | if test "$ac_test_CFLAGS" = set; then |
---|
3104 | CFLAGS=$ac_save_CFLAGS |
---|
3105 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3106 | if test "$GCC" = yes; then |
---|
3107 | CFLAGS="-g -O2" |
---|
3108 | else |
---|
3109 | CFLAGS="-g" |
---|
3110 | fi |
---|
3111 | else |
---|
3112 | if test "$GCC" = yes; then |
---|
3113 | CFLAGS="-O2" |
---|
3114 | else |
---|
3115 | CFLAGS= |
---|
3116 | fi |
---|
3117 | fi |
---|
3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3119 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3120 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
---|
3121 | $as_echo_n "(cached) " >&6 |
---|
3122 | else |
---|
3123 | ac_cv_prog_cc_c89=no |
---|
3124 | ac_save_CC=$CC |
---|
3125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3126 | /* end confdefs.h. */ |
---|
3127 | #include <stdarg.h> |
---|
3128 | #include <stdio.h> |
---|
3129 | #include <sys/types.h> |
---|
3130 | #include <sys/stat.h> |
---|
3131 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3132 | struct buf { int x; }; |
---|
3133 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3134 | static char *e (p, i) |
---|
3135 | char **p; |
---|
3136 | int i; |
---|
3137 | { |
---|
3138 | return p[i]; |
---|
3139 | } |
---|
3140 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3141 | { |
---|
3142 | char *s; |
---|
3143 | va_list v; |
---|
3144 | va_start (v,p); |
---|
3145 | s = g (p, va_arg (v,int)); |
---|
3146 | va_end (v); |
---|
3147 | return s; |
---|
3148 | } |
---|
3149 | |
---|
3150 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3151 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3152 | These don't provoke an error unfortunately, instead are silently treated |
---|
3153 | as 'x'. The following induces an error, until -std is added to get |
---|
3154 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3155 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3156 | that's true only with -std. */ |
---|
3157 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3158 | |
---|
3159 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3160 | inside strings and character constants. */ |
---|
3161 | #define FOO(x) 'x' |
---|
3162 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3163 | |
---|
3164 | int test (int i, double x); |
---|
3165 | struct s1 {int (*f) (int a);}; |
---|
3166 | struct s2 {int (*f) (double a);}; |
---|
3167 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3168 | int argc; |
---|
3169 | char **argv; |
---|
3170 | int |
---|
3171 | main () |
---|
3172 | { |
---|
3173 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3174 | ; |
---|
3175 | return 0; |
---|
3176 | } |
---|
3177 | _ACEOF |
---|
3178 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3179 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3180 | do |
---|
3181 | CC="$ac_save_CC $ac_arg" |
---|
3182 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3183 | ac_cv_prog_cc_c89=$ac_arg |
---|
3184 | fi |
---|
3185 | rm -f core conftest.err conftest.$ac_objext |
---|
3186 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3187 | done |
---|
3188 | rm -f conftest.$ac_ext |
---|
3189 | CC=$ac_save_CC |
---|
3190 | |
---|
3191 | fi |
---|
3192 | # AC_CACHE_VAL |
---|
3193 | case "x$ac_cv_prog_cc_c89" in |
---|
3194 | x) |
---|
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3196 | $as_echo "none needed" >&6; } ;; |
---|
3197 | xno) |
---|
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3199 | $as_echo "unsupported" >&6; } ;; |
---|
3200 | *) |
---|
3201 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3203 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3204 | esac |
---|
3205 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3206 | |
---|
3207 | fi |
---|
3208 | |
---|
3209 | ac_ext=c |
---|
3210 | ac_cpp='$CPP $CPPFLAGS' |
---|
3211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3214 | |
---|
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
3216 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
3217 | LN_S=$as_ln_s |
---|
3218 | if test "$LN_S" = "ln -s"; then |
---|
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3220 | $as_echo "yes" >&6; } |
---|
3221 | else |
---|
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
3223 | $as_echo "no, using $LN_S" >&6; } |
---|
3224 | fi |
---|
3225 | |
---|
3226 | |
---|
3227 | # Checks for libraries. |
---|
3228 | |
---|
3229 | # Checks for header files. |
---|
3230 | |
---|
3231 | ac_ext=c |
---|
3232 | ac_cpp='$CPP $CPPFLAGS' |
---|
3233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
3237 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
3238 | # On Suns, sometimes $CPP names a directory. |
---|
3239 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3240 | CPP= |
---|
3241 | fi |
---|
3242 | if test -z "$CPP"; then |
---|
3243 | if test "${ac_cv_prog_CPP+set}" = set; then : |
---|
3244 | $as_echo_n "(cached) " >&6 |
---|
3245 | else |
---|
3246 | # Double quotes because CPP needs to be expanded |
---|
3247 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3248 | do |
---|
3249 | ac_preproc_ok=false |
---|
3250 | for ac_c_preproc_warn_flag in '' yes |
---|
3251 | do |
---|
3252 | # Use a header file that comes with gcc, so configuring glibc |
---|
3253 | # with a fresh cross-compiler works. |
---|
3254 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3255 | # <limits.h> exists even on freestanding compilers. |
---|
3256 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3257 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3259 | /* end confdefs.h. */ |
---|
3260 | #ifdef __STDC__ |
---|
3261 | # include <limits.h> |
---|
3262 | #else |
---|
3263 | # include <assert.h> |
---|
3264 | #endif |
---|
3265 | Syntax error |
---|
3266 | _ACEOF |
---|
3267 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3268 | |
---|
3269 | else |
---|
3270 | # Broken: fails on valid input. |
---|
3271 | continue |
---|
3272 | fi |
---|
3273 | rm -f conftest.err conftest.$ac_ext |
---|
3274 | |
---|
3275 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3276 | # can be detected and how. |
---|
3277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3278 | /* end confdefs.h. */ |
---|
3279 | #include <ac_nonexistent.h> |
---|
3280 | _ACEOF |
---|
3281 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3282 | # Broken: success on invalid input. |
---|
3283 | continue |
---|
3284 | else |
---|
3285 | # Passes both tests. |
---|
3286 | ac_preproc_ok=: |
---|
3287 | break |
---|
3288 | fi |
---|
3289 | rm -f conftest.err conftest.$ac_ext |
---|
3290 | |
---|
3291 | done |
---|
3292 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3293 | rm -f conftest.err conftest.$ac_ext |
---|
3294 | if $ac_preproc_ok; then : |
---|
3295 | break |
---|
3296 | fi |
---|
3297 | |
---|
3298 | done |
---|
3299 | ac_cv_prog_CPP=$CPP |
---|
3300 | |
---|
3301 | fi |
---|
3302 | CPP=$ac_cv_prog_CPP |
---|
3303 | else |
---|
3304 | ac_cv_prog_CPP=$CPP |
---|
3305 | fi |
---|
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
3307 | $as_echo "$CPP" >&6; } |
---|
3308 | ac_preproc_ok=false |
---|
3309 | for ac_c_preproc_warn_flag in '' yes |
---|
3310 | do |
---|
3311 | # Use a header file that comes with gcc, so configuring glibc |
---|
3312 | # with a fresh cross-compiler works. |
---|
3313 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3314 | # <limits.h> exists even on freestanding compilers. |
---|
3315 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3316 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3318 | /* end confdefs.h. */ |
---|
3319 | #ifdef __STDC__ |
---|
3320 | # include <limits.h> |
---|
3321 | #else |
---|
3322 | # include <assert.h> |
---|
3323 | #endif |
---|
3324 | Syntax error |
---|
3325 | _ACEOF |
---|
3326 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3327 | |
---|
3328 | else |
---|
3329 | # Broken: fails on valid input. |
---|
3330 | continue |
---|
3331 | fi |
---|
3332 | rm -f conftest.err conftest.$ac_ext |
---|
3333 | |
---|
3334 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3335 | # can be detected and how. |
---|
3336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3337 | /* end confdefs.h. */ |
---|
3338 | #include <ac_nonexistent.h> |
---|
3339 | _ACEOF |
---|
3340 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3341 | # Broken: success on invalid input. |
---|
3342 | continue |
---|
3343 | else |
---|
3344 | # Passes both tests. |
---|
3345 | ac_preproc_ok=: |
---|
3346 | break |
---|
3347 | fi |
---|
3348 | rm -f conftest.err conftest.$ac_ext |
---|
3349 | |
---|
3350 | done |
---|
3351 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3352 | rm -f conftest.err conftest.$ac_ext |
---|
3353 | if $ac_preproc_ok; then : |
---|
3354 | |
---|
3355 | else |
---|
3356 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3357 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3358 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
---|
3359 | See \`config.log' for more details." "$LINENO" 5; } |
---|
3360 | fi |
---|
3361 | |
---|
3362 | ac_ext=c |
---|
3363 | ac_cpp='$CPP $CPPFLAGS' |
---|
3364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3367 | |
---|
3368 | |
---|
3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
3370 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
3371 | if test "${ac_cv_path_GREP+set}" = set; then : |
---|
3372 | $as_echo_n "(cached) " >&6 |
---|
3373 | else |
---|
3374 | if test -z "$GREP"; then |
---|
3375 | ac_path_GREP_found=false |
---|
3376 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3378 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3379 | do |
---|
3380 | IFS=$as_save_IFS |
---|
3381 | test -z "$as_dir" && as_dir=. |
---|
3382 | for ac_prog in grep ggrep; do |
---|
3383 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3384 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3385 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
3386 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
3387 | # Check for GNU $ac_path_GREP |
---|
3388 | case `"$ac_path_GREP" --version 2>&1` in |
---|
3389 | *GNU*) |
---|
3390 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
3391 | *) |
---|
3392 | ac_count=0 |
---|
3393 | $as_echo_n 0123456789 >"conftest.in" |
---|
3394 | while : |
---|
3395 | do |
---|
3396 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3397 | mv "conftest.tmp" "conftest.in" |
---|
3398 | cp "conftest.in" "conftest.nl" |
---|
3399 | $as_echo 'GREP' >> "conftest.nl" |
---|
3400 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3401 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3402 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3403 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
3404 | # Best one so far, save it but keep looking for a better one |
---|
3405 | ac_cv_path_GREP="$ac_path_GREP" |
---|
3406 | ac_path_GREP_max=$ac_count |
---|
3407 | fi |
---|
3408 | # 10*(2^10) chars as input seems more than enough |
---|
3409 | test $ac_count -gt 10 && break |
---|
3410 | done |
---|
3411 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3412 | esac |
---|
3413 | |
---|
3414 | $ac_path_GREP_found && break 3 |
---|
3415 | done |
---|
3416 | done |
---|
3417 | done |
---|
3418 | IFS=$as_save_IFS |
---|
3419 | if test -z "$ac_cv_path_GREP"; then |
---|
3420 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3421 | fi |
---|
3422 | else |
---|
3423 | ac_cv_path_GREP=$GREP |
---|
3424 | fi |
---|
3425 | |
---|
3426 | fi |
---|
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
3428 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
3429 | GREP="$ac_cv_path_GREP" |
---|
3430 | |
---|
3431 | |
---|
3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
3433 | $as_echo_n "checking for egrep... " >&6; } |
---|
3434 | if test "${ac_cv_path_EGREP+set}" = set; then : |
---|
3435 | $as_echo_n "(cached) " >&6 |
---|
3436 | else |
---|
3437 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
3438 | then ac_cv_path_EGREP="$GREP -E" |
---|
3439 | else |
---|
3440 | if test -z "$EGREP"; then |
---|
3441 | ac_path_EGREP_found=false |
---|
3442 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3444 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3445 | do |
---|
3446 | IFS=$as_save_IFS |
---|
3447 | test -z "$as_dir" && as_dir=. |
---|
3448 | for ac_prog in egrep; do |
---|
3449 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3450 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3451 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
3452 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
3453 | # Check for GNU $ac_path_EGREP |
---|
3454 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
3455 | *GNU*) |
---|
3456 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
3457 | *) |
---|
3458 | ac_count=0 |
---|
3459 | $as_echo_n 0123456789 >"conftest.in" |
---|
3460 | while : |
---|
3461 | do |
---|
3462 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3463 | mv "conftest.tmp" "conftest.in" |
---|
3464 | cp "conftest.in" "conftest.nl" |
---|
3465 | $as_echo 'EGREP' >> "conftest.nl" |
---|
3466 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3467 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3468 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3469 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
3470 | # Best one so far, save it but keep looking for a better one |
---|
3471 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
3472 | ac_path_EGREP_max=$ac_count |
---|
3473 | fi |
---|
3474 | # 10*(2^10) chars as input seems more than enough |
---|
3475 | test $ac_count -gt 10 && break |
---|
3476 | done |
---|
3477 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3478 | esac |
---|
3479 | |
---|
3480 | $ac_path_EGREP_found && break 3 |
---|
3481 | done |
---|
3482 | done |
---|
3483 | done |
---|
3484 | IFS=$as_save_IFS |
---|
3485 | if test -z "$ac_cv_path_EGREP"; then |
---|
3486 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3487 | fi |
---|
3488 | else |
---|
3489 | ac_cv_path_EGREP=$EGREP |
---|
3490 | fi |
---|
3491 | |
---|
3492 | fi |
---|
3493 | fi |
---|
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
3495 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
3496 | EGREP="$ac_cv_path_EGREP" |
---|
3497 | |
---|
3498 | |
---|
3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
3500 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
3501 | if test "${ac_cv_header_stdc+set}" = set; then : |
---|
3502 | $as_echo_n "(cached) " >&6 |
---|
3503 | else |
---|
3504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3505 | /* end confdefs.h. */ |
---|
3506 | #include <stdlib.h> |
---|
3507 | #include <stdarg.h> |
---|
3508 | #include <string.h> |
---|
3509 | #include <float.h> |
---|
3510 | |
---|
3511 | int |
---|
3512 | main () |
---|
3513 | { |
---|
3514 | |
---|
3515 | ; |
---|
3516 | return 0; |
---|
3517 | } |
---|
3518 | _ACEOF |
---|
3519 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3520 | ac_cv_header_stdc=yes |
---|
3521 | else |
---|
3522 | ac_cv_header_stdc=no |
---|
3523 | fi |
---|
3524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3525 | |
---|
3526 | if test $ac_cv_header_stdc = yes; then |
---|
3527 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3529 | /* end confdefs.h. */ |
---|
3530 | #include <string.h> |
---|
3531 | |
---|
3532 | _ACEOF |
---|
3533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3534 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
3535 | |
---|
3536 | else |
---|
3537 | ac_cv_header_stdc=no |
---|
3538 | fi |
---|
3539 | rm -f conftest* |
---|
3540 | |
---|
3541 | fi |
---|
3542 | |
---|
3543 | if test $ac_cv_header_stdc = yes; then |
---|
3544 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3546 | /* end confdefs.h. */ |
---|
3547 | #include <stdlib.h> |
---|
3548 | |
---|
3549 | _ACEOF |
---|
3550 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3551 | $EGREP "free" >/dev/null 2>&1; then : |
---|
3552 | |
---|
3553 | else |
---|
3554 | ac_cv_header_stdc=no |
---|
3555 | fi |
---|
3556 | rm -f conftest* |
---|
3557 | |
---|
3558 | fi |
---|
3559 | |
---|
3560 | if test $ac_cv_header_stdc = yes; then |
---|
3561 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3562 | if test "$cross_compiling" = yes; then : |
---|
3563 | : |
---|
3564 | else |
---|
3565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3566 | /* end confdefs.h. */ |
---|
3567 | #include <ctype.h> |
---|
3568 | #include <stdlib.h> |
---|
3569 | #if ((' ' & 0x0FF) == 0x020) |
---|
3570 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3571 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3572 | #else |
---|
3573 | # define ISLOWER(c) \ |
---|
3574 | (('a' <= (c) && (c) <= 'i') \ |
---|
3575 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3576 | || ('s' <= (c) && (c) <= 'z')) |
---|
3577 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3578 | #endif |
---|
3579 | |
---|
3580 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3581 | int |
---|
3582 | main () |
---|
3583 | { |
---|
3584 | int i; |
---|
3585 | for (i = 0; i < 256; i++) |
---|
3586 | if (XOR (islower (i), ISLOWER (i)) |
---|
3587 | || toupper (i) != TOUPPER (i)) |
---|
3588 | return 2; |
---|
3589 | return 0; |
---|
3590 | } |
---|
3591 | _ACEOF |
---|
3592 | if ac_fn_c_try_run "$LINENO"; then : |
---|
3593 | |
---|
3594 | else |
---|
3595 | ac_cv_header_stdc=no |
---|
3596 | fi |
---|
3597 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
3598 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3599 | fi |
---|
3600 | |
---|
3601 | fi |
---|
3602 | fi |
---|
3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
3604 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
3605 | if test $ac_cv_header_stdc = yes; then |
---|
3606 | |
---|
3607 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
3608 | |
---|
3609 | fi |
---|
3610 | |
---|
3611 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3612 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3613 | inttypes.h stdint.h unistd.h |
---|
3614 | do : |
---|
3615 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3616 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
3617 | " |
---|
3618 | eval as_val=\$$as_ac_Header |
---|
3619 | if test "x$as_val" = x""yes; then : |
---|
3620 | cat >>confdefs.h <<_ACEOF |
---|
3621 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3622 | _ACEOF |
---|
3623 | |
---|
3624 | fi |
---|
3625 | |
---|
3626 | done |
---|
3627 | |
---|
3628 | |
---|
3629 | for ac_header in stdlib.h string.h |
---|
3630 | do : |
---|
3631 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3632 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
3633 | eval as_val=\$$as_ac_Header |
---|
3634 | if test "x$as_val" = x""yes; then : |
---|
3635 | cat >>confdefs.h <<_ACEOF |
---|
3636 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3637 | _ACEOF |
---|
3638 | |
---|
3639 | fi |
---|
3640 | |
---|
3641 | done |
---|
3642 | |
---|
3643 | |
---|
3644 | # Checks for typedefs, structures, and compiler characteristics. |
---|
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
---|
3646 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
---|
3647 | if test "${ac_cv_header_stdbool_h+set}" = set; then : |
---|
3648 | $as_echo_n "(cached) " >&6 |
---|
3649 | else |
---|
3650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3651 | /* end confdefs.h. */ |
---|
3652 | |
---|
3653 | #include <stdbool.h> |
---|
3654 | #ifndef bool |
---|
3655 | "error: bool is not defined" |
---|
3656 | #endif |
---|
3657 | #ifndef false |
---|
3658 | "error: false is not defined" |
---|
3659 | #endif |
---|
3660 | #if false |
---|
3661 | "error: false is not 0" |
---|
3662 | #endif |
---|
3663 | #ifndef true |
---|
3664 | "error: true is not defined" |
---|
3665 | #endif |
---|
3666 | #if true != 1 |
---|
3667 | "error: true is not 1" |
---|
3668 | #endif |
---|
3669 | #ifndef __bool_true_false_are_defined |
---|
3670 | "error: __bool_true_false_are_defined is not defined" |
---|
3671 | #endif |
---|
3672 | |
---|
3673 | struct s { _Bool s: 1; _Bool t; } s; |
---|
3674 | |
---|
3675 | char a[true == 1 ? 1 : -1]; |
---|
3676 | char b[false == 0 ? 1 : -1]; |
---|
3677 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
3678 | char d[(bool) 0.5 == true ? 1 : -1]; |
---|
3679 | bool e = &s; |
---|
3680 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
---|
3681 | char g[true]; |
---|
3682 | char h[sizeof (_Bool)]; |
---|
3683 | char i[sizeof s.t]; |
---|
3684 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
---|
3685 | /* The following fails for |
---|
3686 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
---|
3687 | _Bool n[m]; |
---|
3688 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
---|
3689 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
---|
3690 | # if defined __xlc__ || defined __GNUC__ |
---|
3691 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
---|
3692 | reported by James Lemley on 2005-10-05; see |
---|
3693 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
---|
3694 | This test is not quite right, since xlc is allowed to |
---|
3695 | reject this program, as the initializer for xlcbug is |
---|
3696 | not one of the forms that C requires support for. |
---|
3697 | However, doing the test right would require a runtime |
---|
3698 | test, and that would make cross-compilation harder. |
---|
3699 | Let us hope that IBM fixes the xlc bug, and also adds |
---|
3700 | support for this kind of constant expression. In the |
---|
3701 | meantime, this test will reject xlc, which is OK, since |
---|
3702 | our stdbool.h substitute should suffice. We also test |
---|
3703 | this with GCC, where it should work, to detect more |
---|
3704 | quickly whether someone messes up the test in the |
---|
3705 | future. */ |
---|
3706 | char digs[] = "0123456789"; |
---|
3707 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
---|
3708 | # endif |
---|
3709 | /* Catch a bug in an HP-UX C compiler. See |
---|
3710 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
---|
3711 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
---|
3712 | */ |
---|
3713 | _Bool q = true; |
---|
3714 | _Bool *pq = &q; |
---|
3715 | |
---|
3716 | int |
---|
3717 | main () |
---|
3718 | { |
---|
3719 | |
---|
3720 | *pq |= q; |
---|
3721 | *pq |= ! q; |
---|
3722 | /* Refer to every declared value, to avoid compiler optimizations. */ |
---|
3723 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
---|
3724 | + !m + !n + !o + !p + !q + !pq); |
---|
3725 | |
---|
3726 | ; |
---|
3727 | return 0; |
---|
3728 | } |
---|
3729 | _ACEOF |
---|
3730 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3731 | ac_cv_header_stdbool_h=yes |
---|
3732 | else |
---|
3733 | ac_cv_header_stdbool_h=no |
---|
3734 | fi |
---|
3735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3736 | fi |
---|
3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
---|
3738 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
---|
3739 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
---|
3740 | if test "x$ac_cv_type__Bool" = x""yes; then : |
---|
3741 | |
---|
3742 | cat >>confdefs.h <<_ACEOF |
---|
3743 | #define HAVE__BOOL 1 |
---|
3744 | _ACEOF |
---|
3745 | |
---|
3746 | |
---|
3747 | fi |
---|
3748 | |
---|
3749 | if test $ac_cv_header_stdbool_h = yes; then |
---|
3750 | |
---|
3751 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
---|
3752 | |
---|
3753 | fi |
---|
3754 | |
---|
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
3756 | $as_echo_n "checking for inline... " >&6; } |
---|
3757 | if test "${ac_cv_c_inline+set}" = set; then : |
---|
3758 | $as_echo_n "(cached) " >&6 |
---|
3759 | else |
---|
3760 | ac_cv_c_inline=no |
---|
3761 | for ac_kw in inline __inline__ __inline; do |
---|
3762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3763 | /* end confdefs.h. */ |
---|
3764 | #ifndef __cplusplus |
---|
3765 | typedef int foo_t; |
---|
3766 | static $ac_kw foo_t static_foo () {return 0; } |
---|
3767 | $ac_kw foo_t foo () {return 0; } |
---|
3768 | #endif |
---|
3769 | |
---|
3770 | _ACEOF |
---|
3771 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3772 | ac_cv_c_inline=$ac_kw |
---|
3773 | fi |
---|
3774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3775 | test "$ac_cv_c_inline" != no && break |
---|
3776 | done |
---|
3777 | |
---|
3778 | fi |
---|
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
3780 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
3781 | |
---|
3782 | case $ac_cv_c_inline in |
---|
3783 | inline | yes) ;; |
---|
3784 | *) |
---|
3785 | case $ac_cv_c_inline in |
---|
3786 | no) ac_val=;; |
---|
3787 | *) ac_val=$ac_cv_c_inline;; |
---|
3788 | esac |
---|
3789 | cat >>confdefs.h <<_ACEOF |
---|
3790 | #ifndef __cplusplus |
---|
3791 | #define inline $ac_val |
---|
3792 | #endif |
---|
3793 | _ACEOF |
---|
3794 | ;; |
---|
3795 | esac |
---|
3796 | |
---|
3797 | |
---|
3798 | # Checks for library functions. |
---|
3799 | for ac_header in stdlib.h |
---|
3800 | do : |
---|
3801 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
---|
3802 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : |
---|
3803 | cat >>confdefs.h <<_ACEOF |
---|
3804 | #define HAVE_STDLIB_H 1 |
---|
3805 | _ACEOF |
---|
3806 | |
---|
3807 | fi |
---|
3808 | |
---|
3809 | done |
---|
3810 | |
---|
3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
---|
3812 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
---|
3813 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : |
---|
3814 | $as_echo_n "(cached) " >&6 |
---|
3815 | else |
---|
3816 | if test "$cross_compiling" = yes; then : |
---|
3817 | ac_cv_func_malloc_0_nonnull=no |
---|
3818 | else |
---|
3819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3820 | /* end confdefs.h. */ |
---|
3821 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
---|
3822 | # include <stdlib.h> |
---|
3823 | #else |
---|
3824 | char *malloc (); |
---|
3825 | #endif |
---|
3826 | |
---|
3827 | int |
---|
3828 | main () |
---|
3829 | { |
---|
3830 | return ! malloc (0); |
---|
3831 | ; |
---|
3832 | return 0; |
---|
3833 | } |
---|
3834 | _ACEOF |
---|
3835 | if ac_fn_c_try_run "$LINENO"; then : |
---|
3836 | ac_cv_func_malloc_0_nonnull=yes |
---|
3837 | else |
---|
3838 | ac_cv_func_malloc_0_nonnull=no |
---|
3839 | fi |
---|
3840 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
3841 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3842 | fi |
---|
3843 | |
---|
3844 | fi |
---|
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
3846 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } |
---|
3847 | if test $ac_cv_func_malloc_0_nonnull = yes; then : |
---|
3848 | |
---|
3849 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
---|
3850 | |
---|
3851 | else |
---|
3852 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h |
---|
3853 | |
---|
3854 | case " $LIBOBJS " in |
---|
3855 | *" malloc.$ac_objext "* ) ;; |
---|
3856 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
---|
3857 | ;; |
---|
3858 | esac |
---|
3859 | |
---|
3860 | |
---|
3861 | $as_echo "#define malloc rpl_malloc" >>confdefs.h |
---|
3862 | |
---|
3863 | fi |
---|
3864 | |
---|
3865 | |
---|
3866 | for ac_func in memset |
---|
3867 | do : |
---|
3868 | ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" |
---|
3869 | if test "x$ac_cv_func_memset" = x""yes; then : |
---|
3870 | cat >>confdefs.h <<_ACEOF |
---|
3871 | #define HAVE_MEMSET 1 |
---|
3872 | _ACEOF |
---|
3873 | |
---|
3874 | fi |
---|
3875 | done |
---|
3876 | |
---|
3877 | |
---|
3878 | ac_config_files="$ac_config_files Makefile" |
---|
3879 | |
---|
3880 | cat >confcache <<\_ACEOF |
---|
3881 | # This file is a shell script that caches the results of configure |
---|
3882 | # tests run on this system so they can be shared between configure |
---|
3883 | # scripts and configure runs, see configure's option --config-cache. |
---|
3884 | # It is not useful on other systems. If it contains results you don't |
---|
3885 | # want to keep, you may remove or edit it. |
---|
3886 | # |
---|
3887 | # config.status only pays attention to the cache file if you give it |
---|
3888 | # the --recheck option to rerun configure. |
---|
3889 | # |
---|
3890 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
3891 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
3892 | # following values. |
---|
3893 | |
---|
3894 | _ACEOF |
---|
3895 | |
---|
3896 | # The following way of writing the cache mishandles newlines in values, |
---|
3897 | # but we know of no workaround that is simple, portable, and efficient. |
---|
3898 | # So, we kill variables containing newlines. |
---|
3899 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
3900 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
3901 | ( |
---|
3902 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
3903 | eval ac_val=\$$ac_var |
---|
3904 | case $ac_val in #( |
---|
3905 | *${as_nl}*) |
---|
3906 | case $ac_var in #( |
---|
3907 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
3908 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
3909 | esac |
---|
3910 | case $ac_var in #( |
---|
3911 | _ | IFS | as_nl) ;; #( |
---|
3912 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
3913 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
3914 | esac ;; |
---|
3915 | esac |
---|
3916 | done |
---|
3917 | |
---|
3918 | (set) 2>&1 | |
---|
3919 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
3920 | *${as_nl}ac_space=\ *) |
---|
3921 | # `set' does not quote correctly, so add quotes: double-quote |
---|
3922 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
3923 | sed -n \ |
---|
3924 | "s/'/'\\\\''/g; |
---|
3925 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
3926 | ;; #( |
---|
3927 | *) |
---|
3928 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
3929 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
3930 | ;; |
---|
3931 | esac | |
---|
3932 | sort |
---|
3933 | ) | |
---|
3934 | sed ' |
---|
3935 | /^ac_cv_env_/b end |
---|
3936 | t clear |
---|
3937 | :clear |
---|
3938 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
3939 | t end |
---|
3940 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
3941 | :end' >>confcache |
---|
3942 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
3943 | if test -w "$cache_file"; then |
---|
3944 | test "x$cache_file" != "x/dev/null" && |
---|
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
3946 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
3947 | cat confcache >$cache_file |
---|
3948 | else |
---|
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
3950 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
3951 | fi |
---|
3952 | fi |
---|
3953 | rm -f confcache |
---|
3954 | |
---|
3955 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
3956 | # Let make expand exec_prefix. |
---|
3957 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
3958 | |
---|
3959 | DEFS=-DHAVE_CONFIG_H |
---|
3960 | |
---|
3961 | ac_libobjs= |
---|
3962 | ac_ltlibobjs= |
---|
3963 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
3964 | # 1. Remove the extension, and $U if already installed. |
---|
3965 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
3966 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
3967 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
3968 | # will be set to the directory where LIBOBJS objects are built. |
---|
3969 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
3970 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
3971 | done |
---|
3972 | LIBOBJS=$ac_libobjs |
---|
3973 | |
---|
3974 | LTLIBOBJS=$ac_ltlibobjs |
---|
3975 | |
---|
3976 | |
---|
3977 | |
---|
3978 | : ${CONFIG_STATUS=./config.status} |
---|
3979 | ac_write_fail=0 |
---|
3980 | ac_clean_files_save=$ac_clean_files |
---|
3981 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
3983 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
3984 | as_write_fail=0 |
---|
3985 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
3986 | #! $SHELL |
---|
3987 | # Generated by $as_me. |
---|
3988 | # Run this file to recreate the current configuration. |
---|
3989 | # Compiler output produced by configure, useful for debugging |
---|
3990 | # configure, is in config.log if it exists. |
---|
3991 | |
---|
3992 | debug=false |
---|
3993 | ac_cs_recheck=false |
---|
3994 | ac_cs_silent=false |
---|
3995 | |
---|
3996 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
3997 | export SHELL |
---|
3998 | _ASEOF |
---|
3999 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
4000 | ## -------------------- ## |
---|
4001 | ## M4sh Initialization. ## |
---|
4002 | ## -------------------- ## |
---|
4003 | |
---|
4004 | # Be more Bourne compatible |
---|
4005 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
4006 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
4007 | emulate sh |
---|
4008 | NULLCMD=: |
---|
4009 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
4010 | # is contrary to our usage. Disable this feature. |
---|
4011 | alias -g '${1+"$@"}'='"$@"' |
---|
4012 | setopt NO_GLOB_SUBST |
---|
4013 | else |
---|
4014 | case `(set -o) 2>/dev/null` in #( |
---|
4015 | *posix*) : |
---|
4016 | set -o posix ;; #( |
---|
4017 | *) : |
---|
4018 | ;; |
---|
4019 | esac |
---|
4020 | fi |
---|
4021 | |
---|
4022 | |
---|
4023 | as_nl=' |
---|
4024 | ' |
---|
4025 | export as_nl |
---|
4026 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
4027 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
4028 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
4029 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
4030 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
4031 | # but without wasting forks for bash or zsh. |
---|
4032 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
4033 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
4034 | as_echo='print -r --' |
---|
4035 | as_echo_n='print -rn --' |
---|
4036 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
4037 | as_echo='printf %s\n' |
---|
4038 | as_echo_n='printf %s' |
---|
4039 | else |
---|
4040 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
4041 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
4042 | as_echo_n='/usr/ucb/echo -n' |
---|
4043 | else |
---|
4044 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
4045 | as_echo_n_body='eval |
---|
4046 | arg=$1; |
---|
4047 | case $arg in #( |
---|
4048 | *"$as_nl"*) |
---|
4049 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
4050 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
4051 | esac; |
---|
4052 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
4053 | ' |
---|
4054 | export as_echo_n_body |
---|
4055 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
4056 | fi |
---|
4057 | export as_echo_body |
---|
4058 | as_echo='sh -c $as_echo_body as_echo' |
---|
4059 | fi |
---|
4060 | |
---|
4061 | # The user is always right. |
---|
4062 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
4063 | PATH_SEPARATOR=: |
---|
4064 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
4065 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
4066 | PATH_SEPARATOR=';' |
---|
4067 | } |
---|
4068 | fi |
---|
4069 | |
---|
4070 | |
---|
4071 | # IFS |
---|
4072 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
4073 | # there to prevent editors from complaining about space-tab. |
---|
4074 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
4075 | # splitting by setting IFS to empty value.) |
---|
4076 | IFS=" "" $as_nl" |
---|
4077 | |
---|
4078 | # Find who we are. Look in the path if we contain no directory separator. |
---|
4079 | case $0 in #(( |
---|
4080 | *[\\/]* ) as_myself=$0 ;; |
---|
4081 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4082 | for as_dir in $PATH |
---|
4083 | do |
---|
4084 | IFS=$as_save_IFS |
---|
4085 | test -z "$as_dir" && as_dir=. |
---|
4086 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
4087 | done |
---|
4088 | IFS=$as_save_IFS |
---|
4089 | |
---|
4090 | ;; |
---|
4091 | esac |
---|
4092 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
4093 | # in which case we are not to be found in the path. |
---|
4094 | if test "x$as_myself" = x; then |
---|
4095 | as_myself=$0 |
---|
4096 | fi |
---|
4097 | if test ! -f "$as_myself"; then |
---|
4098 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
4099 | exit 1 |
---|
4100 | fi |
---|
4101 | |
---|
4102 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
4103 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
4104 | # suppresses any "Segmentation fault" message there. '((' could |
---|
4105 | # trigger a bug in pdksh 5.2.14. |
---|
4106 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
4107 | do eval test x\${$as_var+set} = xset \ |
---|
4108 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
4109 | done |
---|
4110 | PS1='$ ' |
---|
4111 | PS2='> ' |
---|
4112 | PS4='+ ' |
---|
4113 | |
---|
4114 | # NLS nuisances. |
---|
4115 | LC_ALL=C |
---|
4116 | export LC_ALL |
---|
4117 | LANGUAGE=C |
---|
4118 | export LANGUAGE |
---|
4119 | |
---|
4120 | # CDPATH. |
---|
4121 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
4122 | |
---|
4123 | |
---|
4124 | # as_fn_error ERROR [LINENO LOG_FD] |
---|
4125 | # --------------------------------- |
---|
4126 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
4127 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
4128 | # script with status $?, using 1 if that was 0. |
---|
4129 | as_fn_error () |
---|
4130 | { |
---|
4131 | as_status=$?; test $as_status -eq 0 && as_status=1 |
---|
4132 | if test "$3"; then |
---|
4133 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
4134 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
---|
4135 | fi |
---|
4136 | $as_echo "$as_me: error: $1" >&2 |
---|
4137 | as_fn_exit $as_status |
---|
4138 | } # as_fn_error |
---|
4139 | |
---|
4140 | |
---|
4141 | # as_fn_set_status STATUS |
---|
4142 | # ----------------------- |
---|
4143 | # Set $? to STATUS, without forking. |
---|
4144 | as_fn_set_status () |
---|
4145 | { |
---|
4146 | return $1 |
---|
4147 | } # as_fn_set_status |
---|
4148 | |
---|
4149 | # as_fn_exit STATUS |
---|
4150 | # ----------------- |
---|
4151 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
4152 | as_fn_exit () |
---|
4153 | { |
---|
4154 | set +e |
---|
4155 | as_fn_set_status $1 |
---|
4156 | exit $1 |
---|
4157 | } # as_fn_exit |
---|
4158 | |
---|
4159 | # as_fn_unset VAR |
---|
4160 | # --------------- |
---|
4161 | # Portably unset VAR. |
---|
4162 | as_fn_unset () |
---|
4163 | { |
---|
4164 | { eval $1=; unset $1;} |
---|
4165 | } |
---|
4166 | as_unset=as_fn_unset |
---|
4167 | # as_fn_append VAR VALUE |
---|
4168 | # ---------------------- |
---|
4169 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
4170 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
4171 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
4172 | # implementations. |
---|
4173 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
4174 | eval 'as_fn_append () |
---|
4175 | { |
---|
4176 | eval $1+=\$2 |
---|
4177 | }' |
---|
4178 | else |
---|
4179 | as_fn_append () |
---|
4180 | { |
---|
4181 | eval $1=\$$1\$2 |
---|
4182 | } |
---|
4183 | fi # as_fn_append |
---|
4184 | |
---|
4185 | # as_fn_arith ARG... |
---|
4186 | # ------------------ |
---|
4187 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
4188 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
4189 | # must be portable across $(()) and expr. |
---|
4190 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
4191 | eval 'as_fn_arith () |
---|
4192 | { |
---|
4193 | as_val=$(( $* )) |
---|
4194 | }' |
---|
4195 | else |
---|
4196 | as_fn_arith () |
---|
4197 | { |
---|
4198 | as_val=`expr "$@" || test $? -eq 1` |
---|
4199 | } |
---|
4200 | fi # as_fn_arith |
---|
4201 | |
---|
4202 | |
---|
4203 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
4204 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
4205 | as_expr=expr |
---|
4206 | else |
---|
4207 | as_expr=false |
---|
4208 | fi |
---|
4209 | |
---|
4210 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
4211 | as_basename=basename |
---|
4212 | else |
---|
4213 | as_basename=false |
---|
4214 | fi |
---|
4215 | |
---|
4216 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
4217 | as_dirname=dirname |
---|
4218 | else |
---|
4219 | as_dirname=false |
---|
4220 | fi |
---|
4221 | |
---|
4222 | as_me=`$as_basename -- "$0" || |
---|
4223 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
4224 | X"$0" : 'X\(//\)$' \| \ |
---|
4225 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
4226 | $as_echo X/"$0" | |
---|
4227 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
4228 | s//\1/ |
---|
4229 | q |
---|
4230 | } |
---|
4231 | /^X\/\(\/\/\)$/{ |
---|
4232 | s//\1/ |
---|
4233 | q |
---|
4234 | } |
---|
4235 | /^X\/\(\/\).*/{ |
---|
4236 | s//\1/ |
---|
4237 | q |
---|
4238 | } |
---|
4239 | s/.*/./; q'` |
---|
4240 | |
---|
4241 | # Avoid depending upon Character Ranges. |
---|
4242 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
4243 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
4244 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
4245 | as_cr_digits='0123456789' |
---|
4246 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
4247 | |
---|
4248 | ECHO_C= ECHO_N= ECHO_T= |
---|
4249 | case `echo -n x` in #((((( |
---|
4250 | -n*) |
---|
4251 | case `echo 'xy\c'` in |
---|
4252 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
4253 | xy) ECHO_C='\c';; |
---|
4254 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
4255 | ECHO_T=' ';; |
---|
4256 | esac;; |
---|
4257 | *) |
---|
4258 | ECHO_N='-n';; |
---|
4259 | esac |
---|
4260 | |
---|
4261 | rm -f conf$$ conf$$.exe conf$$.file |
---|
4262 | if test -d conf$$.dir; then |
---|
4263 | rm -f conf$$.dir/conf$$.file |
---|
4264 | else |
---|
4265 | rm -f conf$$.dir |
---|
4266 | mkdir conf$$.dir 2>/dev/null |
---|
4267 | fi |
---|
4268 | if (echo >conf$$.file) 2>/dev/null; then |
---|
4269 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
4270 | as_ln_s='ln -s' |
---|
4271 | # ... but there are two gotchas: |
---|
4272 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
4273 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
4274 | # In both cases, we have to default to `cp -p'. |
---|
4275 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
4276 | as_ln_s='cp -p' |
---|
4277 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
4278 | as_ln_s=ln |
---|
4279 | else |
---|
4280 | as_ln_s='cp -p' |
---|
4281 | fi |
---|
4282 | else |
---|
4283 | as_ln_s='cp -p' |
---|
4284 | fi |
---|
4285 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
4286 | rmdir conf$$.dir 2>/dev/null |
---|
4287 | |
---|
4288 | |
---|
4289 | # as_fn_mkdir_p |
---|
4290 | # ------------- |
---|
4291 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
4292 | as_fn_mkdir_p () |
---|
4293 | { |
---|
4294 | |
---|
4295 | case $as_dir in #( |
---|
4296 | -*) as_dir=./$as_dir;; |
---|
4297 | esac |
---|
4298 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
4299 | as_dirs= |
---|
4300 | while :; do |
---|
4301 | case $as_dir in #( |
---|
4302 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
4303 | *) as_qdir=$as_dir;; |
---|
4304 | esac |
---|
4305 | as_dirs="'$as_qdir' $as_dirs" |
---|
4306 | as_dir=`$as_dirname -- "$as_dir" || |
---|
4307 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4308 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
4309 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
4310 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
4311 | $as_echo X"$as_dir" | |
---|
4312 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
4313 | s//\1/ |
---|
4314 | q |
---|
4315 | } |
---|
4316 | /^X\(\/\/\)[^/].*/{ |
---|
4317 | s//\1/ |
---|
4318 | q |
---|
4319 | } |
---|
4320 | /^X\(\/\/\)$/{ |
---|
4321 | s//\1/ |
---|
4322 | q |
---|
4323 | } |
---|
4324 | /^X\(\/\).*/{ |
---|
4325 | s//\1/ |
---|
4326 | q |
---|
4327 | } |
---|
4328 | s/.*/./; q'` |
---|
4329 | test -d "$as_dir" && break |
---|
4330 | done |
---|
4331 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
4332 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
---|
4333 | |
---|
4334 | |
---|
4335 | } # as_fn_mkdir_p |
---|
4336 | if mkdir -p . 2>/dev/null; then |
---|
4337 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
4338 | else |
---|
4339 | test -d ./-p && rmdir ./-p |
---|
4340 | as_mkdir_p=false |
---|
4341 | fi |
---|
4342 | |
---|
4343 | if test -x / >/dev/null 2>&1; then |
---|
4344 | as_test_x='test -x' |
---|
4345 | else |
---|
4346 | if ls -dL / >/dev/null 2>&1; then |
---|
4347 | as_ls_L_option=L |
---|
4348 | else |
---|
4349 | as_ls_L_option= |
---|
4350 | fi |
---|
4351 | as_test_x=' |
---|
4352 | eval sh -c '\'' |
---|
4353 | if test -d "$1"; then |
---|
4354 | test -d "$1/."; |
---|
4355 | else |
---|
4356 | case $1 in #( |
---|
4357 | -*)set "./$1";; |
---|
4358 | esac; |
---|
4359 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
4360 | ???[sx]*):;;*)false;;esac;fi |
---|
4361 | '\'' sh |
---|
4362 | ' |
---|
4363 | fi |
---|
4364 | as_executable_p=$as_test_x |
---|
4365 | |
---|
4366 | # Sed expression to map a string onto a valid CPP name. |
---|
4367 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
4368 | |
---|
4369 | # Sed expression to map a string onto a valid variable name. |
---|
4370 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
4371 | |
---|
4372 | |
---|
4373 | exec 6>&1 |
---|
4374 | ## ----------------------------------- ## |
---|
4375 | ## Main body of $CONFIG_STATUS script. ## |
---|
4376 | ## ----------------------------------- ## |
---|
4377 | _ASEOF |
---|
4378 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
4379 | |
---|
4380 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
4381 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
4382 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
4383 | # values after options handling. |
---|
4384 | ac_log=" |
---|
4385 | This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was |
---|
4386 | generated by GNU Autoconf 2.65. Invocation command line was |
---|
4387 | |
---|
4388 | CONFIG_FILES = $CONFIG_FILES |
---|
4389 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
4390 | CONFIG_LINKS = $CONFIG_LINKS |
---|
4391 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
4392 | $ $0 $@ |
---|
4393 | |
---|
4394 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
4395 | " |
---|
4396 | |
---|
4397 | _ACEOF |
---|
4398 | |
---|
4399 | case $ac_config_files in *" |
---|
4400 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
4401 | esac |
---|
4402 | |
---|
4403 | case $ac_config_headers in *" |
---|
4404 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
4405 | esac |
---|
4406 | |
---|
4407 | |
---|
4408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
4409 | # Files that config.status was made for. |
---|
4410 | config_files="$ac_config_files" |
---|
4411 | config_headers="$ac_config_headers" |
---|
4412 | |
---|
4413 | _ACEOF |
---|
4414 | |
---|
4415 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
4416 | ac_cs_usage="\ |
---|
4417 | \`$as_me' instantiates files and other configuration actions |
---|
4418 | from templates according to the current configuration. Unless the files |
---|
4419 | and actions are specified as TAGs, all are instantiated by default. |
---|
4420 | |
---|
4421 | Usage: $0 [OPTION]... [TAG]... |
---|
4422 | |
---|
4423 | -h, --help print this help, then exit |
---|
4424 | -V, --version print version number and configuration settings, then exit |
---|
4425 | --config print configuration, then exit |
---|
4426 | -q, --quiet, --silent |
---|
4427 | do not print progress messages |
---|
4428 | -d, --debug don't remove temporary files |
---|
4429 | --recheck update $as_me by reconfiguring in the same conditions |
---|
4430 | --file=FILE[:TEMPLATE] |
---|
4431 | instantiate the configuration file FILE |
---|
4432 | --header=FILE[:TEMPLATE] |
---|
4433 | instantiate the configuration header FILE |
---|
4434 | |
---|
4435 | Configuration files: |
---|
4436 | $config_files |
---|
4437 | |
---|
4438 | Configuration headers: |
---|
4439 | $config_headers |
---|
4440 | |
---|
4441 | Report bugs to <BUG-REPORT-ADDRESS>." |
---|
4442 | |
---|
4443 | _ACEOF |
---|
4444 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
4445 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
4446 | ac_cs_version="\\ |
---|
4447 | FULL-PACKAGE-NAME config.status VERSION |
---|
4448 | configured by $0, generated by GNU Autoconf 2.65, |
---|
4449 | with options \\"\$ac_cs_config\\" |
---|
4450 | |
---|
4451 | Copyright (C) 2009 Free Software Foundation, Inc. |
---|
4452 | This config.status script is free software; the Free Software Foundation |
---|
4453 | gives unlimited permission to copy, distribute and modify it." |
---|
4454 | |
---|
4455 | ac_pwd='$ac_pwd' |
---|
4456 | srcdir='$srcdir' |
---|
4457 | test -n "\$AWK" || AWK=awk |
---|
4458 | _ACEOF |
---|
4459 | |
---|
4460 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
4461 | # The default lists apply if the user does not specify any file. |
---|
4462 | ac_need_defaults=: |
---|
4463 | while test $# != 0 |
---|
4464 | do |
---|
4465 | case $1 in |
---|
4466 | --*=*) |
---|
4467 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
4468 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
4469 | ac_shift=: |
---|
4470 | ;; |
---|
4471 | *) |
---|
4472 | ac_option=$1 |
---|
4473 | ac_optarg=$2 |
---|
4474 | ac_shift=shift |
---|
4475 | ;; |
---|
4476 | esac |
---|
4477 | |
---|
4478 | case $ac_option in |
---|
4479 | # Handling of the options. |
---|
4480 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
4481 | ac_cs_recheck=: ;; |
---|
4482 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
4483 | $as_echo "$ac_cs_version"; exit ;; |
---|
4484 | --config | --confi | --conf | --con | --co | --c ) |
---|
4485 | $as_echo "$ac_cs_config"; exit ;; |
---|
4486 | --debug | --debu | --deb | --de | --d | -d ) |
---|
4487 | debug=: ;; |
---|
4488 | --file | --fil | --fi | --f ) |
---|
4489 | $ac_shift |
---|
4490 | case $ac_optarg in |
---|
4491 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
4492 | esac |
---|
4493 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
4494 | ac_need_defaults=false;; |
---|
4495 | --header | --heade | --head | --hea ) |
---|
4496 | $ac_shift |
---|
4497 | case $ac_optarg in |
---|
4498 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
4499 | esac |
---|
4500 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
4501 | ac_need_defaults=false;; |
---|
4502 | --he | --h) |
---|
4503 | # Conflict between --help and --header |
---|
4504 | as_fn_error "ambiguous option: \`$1' |
---|
4505 | Try \`$0 --help' for more information.";; |
---|
4506 | --help | --hel | -h ) |
---|
4507 | $as_echo "$ac_cs_usage"; exit ;; |
---|
4508 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
4509 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
4510 | ac_cs_silent=: ;; |
---|
4511 | |
---|
4512 | # This is an error. |
---|
4513 | -*) as_fn_error "unrecognized option: \`$1' |
---|
4514 | Try \`$0 --help' for more information." ;; |
---|
4515 | |
---|
4516 | *) as_fn_append ac_config_targets " $1" |
---|
4517 | ac_need_defaults=false ;; |
---|
4518 | |
---|
4519 | esac |
---|
4520 | shift |
---|
4521 | done |
---|
4522 | |
---|
4523 | ac_configure_extra_args= |
---|
4524 | |
---|
4525 | if $ac_cs_silent; then |
---|
4526 | exec 6>/dev/null |
---|
4527 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
4528 | fi |
---|
4529 | |
---|
4530 | _ACEOF |
---|
4531 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
4532 | if \$ac_cs_recheck; then |
---|
4533 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
4534 | shift |
---|
4535 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
4536 | CONFIG_SHELL='$SHELL' |
---|
4537 | export CONFIG_SHELL |
---|
4538 | exec "\$@" |
---|
4539 | fi |
---|
4540 | |
---|
4541 | _ACEOF |
---|
4542 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
4543 | exec 5>>config.log |
---|
4544 | { |
---|
4545 | echo |
---|
4546 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
4547 | ## Running $as_me. ## |
---|
4548 | _ASBOX |
---|
4549 | $as_echo "$ac_log" |
---|
4550 | } >&5 |
---|
4551 | |
---|
4552 | _ACEOF |
---|
4553 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
4554 | _ACEOF |
---|
4555 | |
---|
4556 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
4557 | |
---|
4558 | # Handling of arguments. |
---|
4559 | for ac_config_target in $ac_config_targets |
---|
4560 | do |
---|
4561 | case $ac_config_target in |
---|
4562 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
4563 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
4564 | |
---|
4565 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
4566 | esac |
---|
4567 | done |
---|
4568 | |
---|
4569 | |
---|
4570 | # If the user did not use the arguments to specify the items to instantiate, |
---|
4571 | # then the envvar interface is used. Set only those that are not. |
---|
4572 | # We use the long form for the default assignment because of an extremely |
---|
4573 | # bizarre bug on SunOS 4.1.3. |
---|
4574 | if $ac_need_defaults; then |
---|
4575 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
4576 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
4577 | fi |
---|
4578 | |
---|
4579 | # Have a temporary directory for convenience. Make it in the build tree |
---|
4580 | # simply because there is no reason against having it here, and in addition, |
---|
4581 | # creating and moving files from /tmp can sometimes cause problems. |
---|
4582 | # Hook for its removal unless debugging. |
---|
4583 | # Note that there is a small window in which the directory will not be cleaned: |
---|
4584 | # after its creation but before its name has been assigned to `$tmp'. |
---|
4585 | $debug || |
---|
4586 | { |
---|
4587 | tmp= |
---|
4588 | trap 'exit_status=$? |
---|
4589 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
4590 | ' 0 |
---|
4591 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
4592 | } |
---|
4593 | # Create a (secure) tmp directory for tmp files. |
---|
4594 | |
---|
4595 | { |
---|
4596 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
4597 | test -n "$tmp" && test -d "$tmp" |
---|
4598 | } || |
---|
4599 | { |
---|
4600 | tmp=./conf$$-$RANDOM |
---|
4601 | (umask 077 && mkdir "$tmp") |
---|
4602 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
---|
4603 | |
---|
4604 | # Set up the scripts for CONFIG_FILES section. |
---|
4605 | # No need to generate them if there are no CONFIG_FILES. |
---|
4606 | # This happens for instance with `./config.status config.h'. |
---|
4607 | if test -n "$CONFIG_FILES"; then |
---|
4608 | |
---|
4609 | |
---|
4610 | ac_cr=`echo X | tr X '\015'` |
---|
4611 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
4612 | # But we know of no other shell where ac_cr would be empty at this |
---|
4613 | # point, so we can use a bashism as a fallback. |
---|
4614 | if test "x$ac_cr" = x; then |
---|
4615 | eval ac_cr=\$\'\\r\' |
---|
4616 | fi |
---|
4617 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
4618 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
4619 | ac_cs_awk_cr='\r' |
---|
4620 | else |
---|
4621 | ac_cs_awk_cr=$ac_cr |
---|
4622 | fi |
---|
4623 | |
---|
4624 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
---|
4625 | _ACEOF |
---|
4626 | |
---|
4627 | |
---|
4628 | { |
---|
4629 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
4630 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
4631 | echo "_ACEOF" |
---|
4632 | } >conf$$subs.sh || |
---|
4633 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
4634 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
---|
4635 | ac_delim='%!_!# ' |
---|
4636 | for ac_last_try in false false false false false :; do |
---|
4637 | . ./conf$$subs.sh || |
---|
4638 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
4639 | |
---|
4640 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
4641 | if test $ac_delim_n = $ac_delim_num; then |
---|
4642 | break |
---|
4643 | elif $ac_last_try; then |
---|
4644 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
4645 | else |
---|
4646 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
4647 | fi |
---|
4648 | done |
---|
4649 | rm -f conf$$subs.sh |
---|
4650 | |
---|
4651 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
4652 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
---|
4653 | _ACEOF |
---|
4654 | sed -n ' |
---|
4655 | h |
---|
4656 | s/^/S["/; s/!.*/"]=/ |
---|
4657 | p |
---|
4658 | g |
---|
4659 | s/^[^!]*!// |
---|
4660 | :repl |
---|
4661 | t repl |
---|
4662 | s/'"$ac_delim"'$// |
---|
4663 | t delim |
---|
4664 | :nl |
---|
4665 | h |
---|
4666 | s/\(.\{148\}\)..*/\1/ |
---|
4667 | t more1 |
---|
4668 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
4669 | p |
---|
4670 | n |
---|
4671 | b repl |
---|
4672 | :more1 |
---|
4673 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
4674 | p |
---|
4675 | g |
---|
4676 | s/.\{148\}// |
---|
4677 | t nl |
---|
4678 | :delim |
---|
4679 | h |
---|
4680 | s/\(.\{148\}\)..*/\1/ |
---|
4681 | t more2 |
---|
4682 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
4683 | p |
---|
4684 | b |
---|
4685 | :more2 |
---|
4686 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
4687 | p |
---|
4688 | g |
---|
4689 | s/.\{148\}// |
---|
4690 | t delim |
---|
4691 | ' <conf$$subs.awk | sed ' |
---|
4692 | /^[^""]/{ |
---|
4693 | N |
---|
4694 | s/\n// |
---|
4695 | } |
---|
4696 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
4697 | rm -f conf$$subs.awk |
---|
4698 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
4699 | _ACAWK |
---|
4700 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
---|
4701 | for (key in S) S_is_set[key] = 1 |
---|
4702 | FS = "" |
---|
4703 | |
---|
4704 | } |
---|
4705 | { |
---|
4706 | line = $ 0 |
---|
4707 | nfields = split(line, field, "@") |
---|
4708 | substed = 0 |
---|
4709 | len = length(field[1]) |
---|
4710 | for (i = 2; i < nfields; i++) { |
---|
4711 | key = field[i] |
---|
4712 | keylen = length(key) |
---|
4713 | if (S_is_set[key]) { |
---|
4714 | value = S[key] |
---|
4715 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
4716 | len += length(value) + length(field[++i]) |
---|
4717 | substed = 1 |
---|
4718 | } else |
---|
4719 | len += 1 + keylen |
---|
4720 | } |
---|
4721 | |
---|
4722 | print line |
---|
4723 | } |
---|
4724 | |
---|
4725 | _ACAWK |
---|
4726 | _ACEOF |
---|
4727 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
4728 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
4729 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
4730 | else |
---|
4731 | cat |
---|
4732 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
---|
4733 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
---|
4734 | _ACEOF |
---|
4735 | |
---|
4736 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
4737 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
4738 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
4739 | # (actually we leave an empty line to preserve line numbers). |
---|
4740 | if test "x$srcdir" = x.; then |
---|
4741 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
4742 | s/:*\$(srcdir):*/:/ |
---|
4743 | s/:*\${srcdir}:*/:/ |
---|
4744 | s/:*@srcdir@:*/:/ |
---|
4745 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
4746 | s/:*$// |
---|
4747 | s/^[^=]*=[ ]*$// |
---|
4748 | }' |
---|
4749 | fi |
---|
4750 | |
---|
4751 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
4752 | fi # test -n "$CONFIG_FILES" |
---|
4753 | |
---|
4754 | # Set up the scripts for CONFIG_HEADERS section. |
---|
4755 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
4756 | # This happens for instance with `./config.status Makefile'. |
---|
4757 | if test -n "$CONFIG_HEADERS"; then |
---|
4758 | cat >"$tmp/defines.awk" <<\_ACAWK || |
---|
4759 | BEGIN { |
---|
4760 | _ACEOF |
---|
4761 | |
---|
4762 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
4763 | # here-document in config.status, that substitutes the proper values into |
---|
4764 | # config.h.in to produce config.h. |
---|
4765 | |
---|
4766 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
4767 | # handling of long lines. |
---|
4768 | ac_delim='%!_!# ' |
---|
4769 | for ac_last_try in false false :; do |
---|
4770 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
---|
4771 | if test -z "$ac_t"; then |
---|
4772 | break |
---|
4773 | elif $ac_last_try; then |
---|
4774 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
4775 | else |
---|
4776 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
4777 | fi |
---|
4778 | done |
---|
4779 | |
---|
4780 | # For the awk script, D is an array of macro values keyed by name, |
---|
4781 | # likewise P contains macro parameters if any. Preserve backslash |
---|
4782 | # newline sequences. |
---|
4783 | |
---|
4784 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
4785 | sed -n ' |
---|
4786 | s/.\{148\}/&'"$ac_delim"'/g |
---|
4787 | t rset |
---|
4788 | :rset |
---|
4789 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
4790 | t def |
---|
4791 | d |
---|
4792 | :def |
---|
4793 | s/\\$// |
---|
4794 | t bsnl |
---|
4795 | s/["\\]/\\&/g |
---|
4796 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
4797 | D["\1"]=" \3"/p |
---|
4798 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
4799 | d |
---|
4800 | :bsnl |
---|
4801 | s/["\\]/\\&/g |
---|
4802 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
4803 | D["\1"]=" \3\\\\\\n"\\/p |
---|
4804 | t cont |
---|
4805 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
4806 | t cont |
---|
4807 | d |
---|
4808 | :cont |
---|
4809 | n |
---|
4810 | s/.\{148\}/&'"$ac_delim"'/g |
---|
4811 | t clear |
---|
4812 | :clear |
---|
4813 | s/\\$// |
---|
4814 | t bsnlc |
---|
4815 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
4816 | d |
---|
4817 | :bsnlc |
---|
4818 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
4819 | b cont |
---|
4820 | ' <confdefs.h | sed ' |
---|
4821 | s/'"$ac_delim"'/"\\\ |
---|
4822 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
4823 | |
---|
4824 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
4825 | for (key in D) D_is_set[key] = 1 |
---|
4826 | FS = "" |
---|
4827 | } |
---|
4828 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
4829 | line = \$ 0 |
---|
4830 | split(line, arg, " ") |
---|
4831 | if (arg[1] == "#") { |
---|
4832 | defundef = arg[2] |
---|
4833 | mac1 = arg[3] |
---|
4834 | } else { |
---|
4835 | defundef = substr(arg[1], 2) |
---|
4836 | mac1 = arg[2] |
---|
4837 | } |
---|
4838 | split(mac1, mac2, "(") #) |
---|
4839 | macro = mac2[1] |
---|
4840 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
4841 | if (D_is_set[macro]) { |
---|
4842 | # Preserve the white space surrounding the "#". |
---|
4843 | print prefix "define", macro P[macro] D[macro] |
---|
4844 | next |
---|
4845 | } else { |
---|
4846 | # Replace #undef with comments. This is necessary, for example, |
---|
4847 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
4848 | # on some systems where configure will not decide to define it. |
---|
4849 | if (defundef == "undef") { |
---|
4850 | print "/*", prefix defundef, macro, "*/" |
---|
4851 | next |
---|
4852 | } |
---|
4853 | } |
---|
4854 | } |
---|
4855 | { print } |
---|
4856 | _ACAWK |
---|
4857 | _ACEOF |
---|
4858 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
4859 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
---|
4860 | fi # test -n "$CONFIG_HEADERS" |
---|
4861 | |
---|
4862 | |
---|
4863 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
4864 | shift |
---|
4865 | for ac_tag |
---|
4866 | do |
---|
4867 | case $ac_tag in |
---|
4868 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
4869 | esac |
---|
4870 | case $ac_mode$ac_tag in |
---|
4871 | :[FHL]*:*);; |
---|
4872 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
4873 | :[FH]-) ac_tag=-:-;; |
---|
4874 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
4875 | esac |
---|
4876 | ac_save_IFS=$IFS |
---|
4877 | IFS=: |
---|
4878 | set x $ac_tag |
---|
4879 | IFS=$ac_save_IFS |
---|
4880 | shift |
---|
4881 | ac_file=$1 |
---|
4882 | shift |
---|
4883 | |
---|
4884 | case $ac_mode in |
---|
4885 | :L) ac_source=$1;; |
---|
4886 | :[FH]) |
---|
4887 | ac_file_inputs= |
---|
4888 | for ac_f |
---|
4889 | do |
---|
4890 | case $ac_f in |
---|
4891 | -) ac_f="$tmp/stdin";; |
---|
4892 | *) # Look for the file first in the build tree, then in the source tree |
---|
4893 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
4894 | # because $ac_f cannot contain `:'. |
---|
4895 | test -f "$ac_f" || |
---|
4896 | case $ac_f in |
---|
4897 | [\\/$]*) false;; |
---|
4898 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
4899 | esac || |
---|
4900 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
4901 | esac |
---|
4902 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
4903 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
4904 | done |
---|
4905 | |
---|
4906 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
4907 | # use $as_me), people would be surprised to read: |
---|
4908 | # /* config.h. Generated by config.status. */ |
---|
4909 | configure_input='Generated from '` |
---|
4910 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
4911 | `' by configure.' |
---|
4912 | if test x"$ac_file" != x-; then |
---|
4913 | configure_input="$ac_file. $configure_input" |
---|
4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
4915 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
4916 | fi |
---|
4917 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
4918 | case $configure_input in #( |
---|
4919 | *\&* | *\|* | *\\* ) |
---|
4920 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
4921 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
4922 | *) ac_sed_conf_input=$configure_input;; |
---|
4923 | esac |
---|
4924 | |
---|
4925 | case $ac_tag in |
---|
4926 | *:-:* | *:-) cat >"$tmp/stdin" \ |
---|
4927 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
---|
4928 | esac |
---|
4929 | ;; |
---|
4930 | esac |
---|
4931 | |
---|
4932 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
4933 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
4934 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
4935 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
4936 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
4937 | $as_echo X"$ac_file" | |
---|
4938 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
4939 | s//\1/ |
---|
4940 | q |
---|
4941 | } |
---|
4942 | /^X\(\/\/\)[^/].*/{ |
---|
4943 | s//\1/ |
---|
4944 | q |
---|
4945 | } |
---|
4946 | /^X\(\/\/\)$/{ |
---|
4947 | s//\1/ |
---|
4948 | q |
---|
4949 | } |
---|
4950 | /^X\(\/\).*/{ |
---|
4951 | s//\1/ |
---|
4952 | q |
---|
4953 | } |
---|
4954 | s/.*/./; q'` |
---|
4955 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
4956 | ac_builddir=. |
---|
4957 | |
---|
4958 | case "$ac_dir" in |
---|
4959 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
4960 | *) |
---|
4961 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
4962 | # A ".." for each directory in $ac_dir_suffix. |
---|
4963 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
4964 | case $ac_top_builddir_sub in |
---|
4965 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
4966 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
4967 | esac ;; |
---|
4968 | esac |
---|
4969 | ac_abs_top_builddir=$ac_pwd |
---|
4970 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
4971 | # for backward compatibility: |
---|
4972 | ac_top_builddir=$ac_top_build_prefix |
---|
4973 | |
---|
4974 | case $srcdir in |
---|
4975 | .) # We are building in place. |
---|
4976 | ac_srcdir=. |
---|
4977 | ac_top_srcdir=$ac_top_builddir_sub |
---|
4978 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
4979 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
4980 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
4981 | ac_top_srcdir=$srcdir |
---|
4982 | ac_abs_top_srcdir=$srcdir ;; |
---|
4983 | *) # Relative name. |
---|
4984 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
4985 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
4986 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
4987 | esac |
---|
4988 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
4989 | |
---|
4990 | |
---|
4991 | case $ac_mode in |
---|
4992 | :F) |
---|
4993 | # |
---|
4994 | # CONFIG_FILE |
---|
4995 | # |
---|
4996 | |
---|
4997 | _ACEOF |
---|
4998 | |
---|
4999 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5000 | # If the template does not know about datarootdir, expand it. |
---|
5001 | # FIXME: This hack should be removed a few years after 2.60. |
---|
5002 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
5003 | ac_sed_dataroot=' |
---|
5004 | /datarootdir/ { |
---|
5005 | p |
---|
5006 | q |
---|
5007 | } |
---|
5008 | /@datadir@/p |
---|
5009 | /@docdir@/p |
---|
5010 | /@infodir@/p |
---|
5011 | /@localedir@/p |
---|
5012 | /@mandir@/p' |
---|
5013 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
5014 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
5015 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
5017 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
5018 | _ACEOF |
---|
5019 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5020 | ac_datarootdir_hack=' |
---|
5021 | s&@datadir@&$datadir&g |
---|
5022 | s&@docdir@&$docdir&g |
---|
5023 | s&@infodir@&$infodir&g |
---|
5024 | s&@localedir@&$localedir&g |
---|
5025 | s&@mandir@&$mandir&g |
---|
5026 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
5027 | esac |
---|
5028 | _ACEOF |
---|
5029 | |
---|
5030 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
5031 | # Shell code in configure.ac might set extrasub. |
---|
5032 | # FIXME: do we really want to maintain this feature? |
---|
5033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5034 | ac_sed_extra="$ac_vpsub |
---|
5035 | $extrasub |
---|
5036 | _ACEOF |
---|
5037 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5038 | :t |
---|
5039 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
5040 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
5041 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
5042 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
5043 | s&@srcdir@&$ac_srcdir&;t t |
---|
5044 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
5045 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
5046 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
5047 | s&@builddir@&$ac_builddir&;t t |
---|
5048 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
5049 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
5050 | $ac_datarootdir_hack |
---|
5051 | " |
---|
5052 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
---|
5053 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
5054 | |
---|
5055 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
5056 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
5057 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
5059 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
5060 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
5061 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
5062 | |
---|
5063 | rm -f "$tmp/stdin" |
---|
5064 | case $ac_file in |
---|
5065 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
---|
5066 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
---|
5067 | esac \ |
---|
5068 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
5069 | ;; |
---|
5070 | :H) |
---|
5071 | # |
---|
5072 | # CONFIG_HEADER |
---|
5073 | # |
---|
5074 | if test x"$ac_file" != x-; then |
---|
5075 | { |
---|
5076 | $as_echo "/* $configure_input */" \ |
---|
5077 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
---|
5078 | } >"$tmp/config.h" \ |
---|
5079 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
5080 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
---|
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
5082 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
5083 | else |
---|
5084 | rm -f "$ac_file" |
---|
5085 | mv "$tmp/config.h" "$ac_file" \ |
---|
5086 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
---|
5087 | fi |
---|
5088 | else |
---|
5089 | $as_echo "/* $configure_input */" \ |
---|
5090 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
---|
5091 | || as_fn_error "could not create -" "$LINENO" 5 |
---|
5092 | fi |
---|
5093 | ;; |
---|
5094 | |
---|
5095 | |
---|
5096 | esac |
---|
5097 | |
---|
5098 | done # for ac_tag |
---|
5099 | |
---|
5100 | |
---|
5101 | as_fn_exit 0 |
---|
5102 | _ACEOF |
---|
5103 | ac_clean_files=$ac_clean_files_save |
---|
5104 | |
---|
5105 | test $ac_write_fail = 0 || |
---|
5106 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
5107 | |
---|
5108 | |
---|
5109 | # configure is writing to config.log, and then calls config.status. |
---|
5110 | # config.status does its own redirection, appending to config.log. |
---|
5111 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
5112 | # by configure, so config.status won't be able to write to it; its |
---|
5113 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
5114 | # effectively closing config.log, so it can be properly (re)opened and |
---|
5115 | # appended to by config.status. When coming back to configure, we |
---|
5116 | # need to make the FD available again. |
---|
5117 | if test "$no_create" != yes; then |
---|
5118 | ac_cs_success=: |
---|
5119 | ac_config_status_args= |
---|
5120 | test "$silent" = yes && |
---|
5121 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
5122 | exec 5>/dev/null |
---|
5123 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
5124 | exec 5>>config.log |
---|
5125 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
5126 | # would make configure fail if this is the last instruction. |
---|
5127 | $ac_cs_success || as_fn_exit $? |
---|
5128 | fi |
---|
5129 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
5131 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
5132 | fi |
---|
5133 | |
---|