Mercurial > mm7
comparison lib/swig/swigwin-2.0.11/configure @ 1899:b3009adc0e2f
Adding swig, gitignore, hgignore
author | Nomad |
---|---|
date | Mon, 21 Oct 2013 10:42:27 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1867:eb580660bbbb | 1899:b3009adc0e2f |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.68 for swig 2.0.11. | |
4 # | |
5 # Report bugs to <http://www.swig.org>. | |
6 # | |
7 # | |
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
10 # Foundation, Inc. | |
11 # | |
12 # | |
13 # This configure script is free software; the Free Software Foundation | |
14 # gives unlimited permission to copy, distribute and modify it. | |
15 ## -------------------- ## | |
16 ## M4sh Initialization. ## | |
17 ## -------------------- ## | |
18 | |
19 # Be more Bourne compatible | |
20 DUALCASE=1; export DUALCASE # for MKS sh | |
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 emulate sh | |
23 NULLCMD=: | |
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 # is contrary to our usage. Disable this feature. | |
26 alias -g '${1+"$@"}'='"$@"' | |
27 setopt NO_GLOB_SUBST | |
28 else | |
29 case `(set -o) 2>/dev/null` in #( | |
30 *posix*) : | |
31 set -o posix ;; #( | |
32 *) : | |
33 ;; | |
34 esac | |
35 fi | |
36 | |
37 | |
38 as_nl=' | |
39 ' | |
40 export as_nl | |
41 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 # but without wasting forks for bash or zsh. | |
47 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 as_echo='print -r --' | |
50 as_echo_n='print -rn --' | |
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 as_echo='printf %s\n' | |
53 as_echo_n='printf %s' | |
54 else | |
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 as_echo_n='/usr/ucb/echo -n' | |
58 else | |
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 as_echo_n_body='eval | |
61 arg=$1; | |
62 case $arg in #( | |
63 *"$as_nl"*) | |
64 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 esac; | |
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 ' | |
69 export as_echo_n_body | |
70 as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 fi | |
72 export as_echo_body | |
73 as_echo='sh -c $as_echo_body as_echo' | |
74 fi | |
75 | |
76 # The user is always right. | |
77 if test "${PATH_SEPARATOR+set}" != set; then | |
78 PATH_SEPARATOR=: | |
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 PATH_SEPARATOR=';' | |
82 } | |
83 fi | |
84 | |
85 | |
86 # IFS | |
87 # We need space, tab and new line, in precisely that order. Quoting is | |
88 # there to prevent editors from complaining about space-tab. | |
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 # splitting by setting IFS to empty value.) | |
91 IFS=" "" $as_nl" | |
92 | |
93 # Find who we are. Look in the path if we contain no directory separator. | |
94 as_myself= | |
95 case $0 in #(( | |
96 *[\\/]* ) as_myself=$0 ;; | |
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 for as_dir in $PATH | |
99 do | |
100 IFS=$as_save_IFS | |
101 test -z "$as_dir" && as_dir=. | |
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 done | |
104 IFS=$as_save_IFS | |
105 | |
106 ;; | |
107 esac | |
108 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 # in which case we are not to be found in the path. | |
110 if test "x$as_myself" = x; then | |
111 as_myself=$0 | |
112 fi | |
113 if test ! -f "$as_myself"; then | |
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 exit 1 | |
116 fi | |
117 | |
118 # Unset variables that we do not need and which cause bugs (e.g. in | |
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 # suppresses any "Segmentation fault" message there. '((' could | |
121 # trigger a bug in pdksh 5.2.14. | |
122 for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 do eval test x\${$as_var+set} = xset \ | |
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 done | |
126 PS1='$ ' | |
127 PS2='> ' | |
128 PS4='+ ' | |
129 | |
130 # NLS nuisances. | |
131 LC_ALL=C | |
132 export LC_ALL | |
133 LANGUAGE=C | |
134 export LANGUAGE | |
135 | |
136 # CDPATH. | |
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | |
139 if test "x$CONFIG_SHELL" = x; then | |
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 emulate sh | |
142 NULLCMD=: | |
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 # is contrary to our usage. Disable this feature. | |
145 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 setopt NO_GLOB_SUBST | |
147 else | |
148 case \`(set -o) 2>/dev/null\` in #( | |
149 *posix*) : | |
150 set -o posix ;; #( | |
151 *) : | |
152 ;; | |
153 esac | |
154 fi | |
155 " | |
156 as_required="as_fn_return () { (exit \$1); } | |
157 as_fn_success () { as_fn_return 0; } | |
158 as_fn_failure () { as_fn_return 1; } | |
159 as_fn_ret_success () { return 0; } | |
160 as_fn_ret_failure () { return 1; } | |
161 | |
162 exitcode=0 | |
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | |
169 else | |
170 exitcode=1; echo positional parameters were not saved. | |
171 fi | |
172 test x\$exitcode = x0 || exit 1" | |
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 test \$(( 1 + 1 )) = 2 || exit 1" | |
178 if (eval "$as_required") 2>/dev/null; then : | |
179 as_have_required=yes | |
180 else | |
181 as_have_required=no | |
182 fi | |
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | |
185 else | |
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 as_found=false | |
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
189 do | |
190 IFS=$as_save_IFS | |
191 test -z "$as_dir" && as_dir=. | |
192 as_found=: | |
193 case $as_dir in #( | |
194 /*) | |
195 for as_base in sh bash ksh sh5; do | |
196 # Try only shells that exist, to save several forks. | |
197 as_shell=$as_dir/$as_base | |
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 CONFIG_SHELL=$as_shell as_have_required=yes | |
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 break 2 | |
203 fi | |
204 fi | |
205 done;; | |
206 esac | |
207 as_found=false | |
208 done | |
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 CONFIG_SHELL=$SHELL as_have_required=yes | |
212 fi; } | |
213 IFS=$as_save_IFS | |
214 | |
215 | |
216 if test "x$CONFIG_SHELL" != x; then : | |
217 # We cannot yet assume a decent shell, so we have to provide a | |
218 # neutralization value for shells without unset; and this also | |
219 # works around shells that cannot unset nonexistent variables. | |
220 # Preserve -v and -x to the replacement shell. | |
221 BASH_ENV=/dev/null | |
222 ENV=/dev/null | |
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 export CONFIG_SHELL | |
225 case $- in # (((( | |
226 *v*x* | *x*v* ) as_opts=-vx ;; | |
227 *v* ) as_opts=-v ;; | |
228 *x* ) as_opts=-x ;; | |
229 * ) as_opts= ;; | |
230 esac | |
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
232 fi | |
233 | |
234 if test x$as_have_required = xno; then : | |
235 $as_echo "$0: This script requires a shell more modern than all" | |
236 $as_echo "$0: the shells that I found on your system." | |
237 if test x${ZSH_VERSION+set} = xset ; then | |
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
240 else | |
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
242 $0: http://www.swig.org about your system, including any | |
243 $0: error possibly output before this message. Then install | |
244 $0: a modern shell, or manually run the script under such a | |
245 $0: shell if you do have one." | |
246 fi | |
247 exit 1 | |
248 fi | |
249 fi | |
250 fi | |
251 SHELL=${CONFIG_SHELL-/bin/sh} | |
252 export SHELL | |
253 # Unset more variables known to interfere with behavior of common tools. | |
254 CLICOLOR_FORCE= GREP_OPTIONS= | |
255 unset CLICOLOR_FORCE GREP_OPTIONS | |
256 | |
257 ## --------------------- ## | |
258 ## M4sh Shell Functions. ## | |
259 ## --------------------- ## | |
260 # as_fn_unset VAR | |
261 # --------------- | |
262 # Portably unset VAR. | |
263 as_fn_unset () | |
264 { | |
265 { eval $1=; unset $1;} | |
266 } | |
267 as_unset=as_fn_unset | |
268 | |
269 # as_fn_set_status STATUS | |
270 # ----------------------- | |
271 # Set $? to STATUS, without forking. | |
272 as_fn_set_status () | |
273 { | |
274 return $1 | |
275 } # as_fn_set_status | |
276 | |
277 # as_fn_exit STATUS | |
278 # ----------------- | |
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
280 as_fn_exit () | |
281 { | |
282 set +e | |
283 as_fn_set_status $1 | |
284 exit $1 | |
285 } # as_fn_exit | |
286 | |
287 # as_fn_mkdir_p | |
288 # ------------- | |
289 # Create "$as_dir" as a directory, including parents if necessary. | |
290 as_fn_mkdir_p () | |
291 { | |
292 | |
293 case $as_dir in #( | |
294 -*) as_dir=./$as_dir;; | |
295 esac | |
296 test -d "$as_dir" || eval $as_mkdir_p || { | |
297 as_dirs= | |
298 while :; do | |
299 case $as_dir in #( | |
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
301 *) as_qdir=$as_dir;; | |
302 esac | |
303 as_dirs="'$as_qdir' $as_dirs" | |
304 as_dir=`$as_dirname -- "$as_dir" || | |
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
306 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
307 X"$as_dir" : 'X\(//\)$' \| \ | |
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
309 $as_echo X"$as_dir" | | |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
311 s//\1/ | |
312 q | |
313 } | |
314 /^X\(\/\/\)[^/].*/{ | |
315 s//\1/ | |
316 q | |
317 } | |
318 /^X\(\/\/\)$/{ | |
319 s//\1/ | |
320 q | |
321 } | |
322 /^X\(\/\).*/{ | |
323 s//\1/ | |
324 q | |
325 } | |
326 s/.*/./; q'` | |
327 test -d "$as_dir" && break | |
328 done | |
329 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
331 | |
332 | |
333 } # as_fn_mkdir_p | |
334 # as_fn_append VAR VALUE | |
335 # ---------------------- | |
336 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
337 # advantage of any shell optimizations that allow amortized linear growth over | |
338 # repeated appends, instead of the typical quadratic growth present in naive | |
339 # implementations. | |
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
341 eval 'as_fn_append () | |
342 { | |
343 eval $1+=\$2 | |
344 }' | |
345 else | |
346 as_fn_append () | |
347 { | |
348 eval $1=\$$1\$2 | |
349 } | |
350 fi # as_fn_append | |
351 | |
352 # as_fn_arith ARG... | |
353 # ------------------ | |
354 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
356 # must be portable across $(()) and expr. | |
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
358 eval 'as_fn_arith () | |
359 { | |
360 as_val=$(( $* )) | |
361 }' | |
362 else | |
363 as_fn_arith () | |
364 { | |
365 as_val=`expr "$@" || test $? -eq 1` | |
366 } | |
367 fi # as_fn_arith | |
368 | |
369 | |
370 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
371 # ---------------------------------------- | |
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
374 # script with STATUS, using 1 if that was 0. | |
375 as_fn_error () | |
376 { | |
377 as_status=$1; test $as_status -eq 0 && as_status=1 | |
378 if test "$4"; then | |
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
381 fi | |
382 $as_echo "$as_me: error: $2" >&2 | |
383 as_fn_exit $as_status | |
384 } # as_fn_error | |
385 | |
386 if expr a : '\(a\)' >/dev/null 2>&1 && | |
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
388 as_expr=expr | |
389 else | |
390 as_expr=false | |
391 fi | |
392 | |
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
394 as_basename=basename | |
395 else | |
396 as_basename=false | |
397 fi | |
398 | |
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
400 as_dirname=dirname | |
401 else | |
402 as_dirname=false | |
403 fi | |
404 | |
405 as_me=`$as_basename -- "$0" || | |
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
407 X"$0" : 'X\(//\)$' \| \ | |
408 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
409 $as_echo X/"$0" | | |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
411 s//\1/ | |
412 q | |
413 } | |
414 /^X\/\(\/\/\)$/{ | |
415 s//\1/ | |
416 q | |
417 } | |
418 /^X\/\(\/\).*/{ | |
419 s//\1/ | |
420 q | |
421 } | |
422 s/.*/./; q'` | |
423 | |
424 # Avoid depending upon Character Ranges. | |
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
428 as_cr_digits='0123456789' | |
429 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
430 | |
431 | |
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
437 sed -n ' | |
438 p | |
439 /[$]LINENO/= | |
440 ' <$as_myself | | |
441 sed ' | |
442 s/[$]LINENO.*/&-/ | |
443 t lineno | |
444 b | |
445 :lineno | |
446 N | |
447 :loop | |
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
449 t loop | |
450 s/-\n.*// | |
451 ' >$as_me.lineno && | |
452 chmod +x "$as_me.lineno" || | |
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
454 | |
455 # Don't try to exec as it changes $[0], causing all sort of problems | |
456 # (the dirname of $[0] is not the place where we might find the | |
457 # original and so on. Autoconf is especially sensitive to this). | |
458 . "./$as_me.lineno" | |
459 # Exit status is that of the last command. | |
460 exit | |
461 } | |
462 | |
463 ECHO_C= ECHO_N= ECHO_T= | |
464 case `echo -n x` in #((((( | |
465 -n*) | |
466 case `echo 'xy\c'` in | |
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
468 xy) ECHO_C='\c';; | |
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
470 ECHO_T=' ';; | |
471 esac;; | |
472 *) | |
473 ECHO_N='-n';; | |
474 esac | |
475 | |
476 rm -f conf$$ conf$$.exe conf$$.file | |
477 if test -d conf$$.dir; then | |
478 rm -f conf$$.dir/conf$$.file | |
479 else | |
480 rm -f conf$$.dir | |
481 mkdir conf$$.dir 2>/dev/null | |
482 fi | |
483 if (echo >conf$$.file) 2>/dev/null; then | |
484 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
485 as_ln_s='ln -s' | |
486 # ... but there are two gotchas: | |
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
489 # In both cases, we have to default to `cp -p'. | |
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
491 as_ln_s='cp -p' | |
492 elif ln conf$$.file conf$$ 2>/dev/null; then | |
493 as_ln_s=ln | |
494 else | |
495 as_ln_s='cp -p' | |
496 fi | |
497 else | |
498 as_ln_s='cp -p' | |
499 fi | |
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
501 rmdir conf$$.dir 2>/dev/null | |
502 | |
503 if mkdir -p . 2>/dev/null; then | |
504 as_mkdir_p='mkdir -p "$as_dir"' | |
505 else | |
506 test -d ./-p && rmdir ./-p | |
507 as_mkdir_p=false | |
508 fi | |
509 | |
510 if test -x / >/dev/null 2>&1; then | |
511 as_test_x='test -x' | |
512 else | |
513 if ls -dL / >/dev/null 2>&1; then | |
514 as_ls_L_option=L | |
515 else | |
516 as_ls_L_option= | |
517 fi | |
518 as_test_x=' | |
519 eval sh -c '\'' | |
520 if test -d "$1"; then | |
521 test -d "$1/."; | |
522 else | |
523 case $1 in #( | |
524 -*)set "./$1";; | |
525 esac; | |
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
527 ???[sx]*):;;*)false;;esac;fi | |
528 '\'' sh | |
529 ' | |
530 fi | |
531 as_executable_p=$as_test_x | |
532 | |
533 # Sed expression to map a string onto a valid CPP name. | |
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
535 | |
536 # Sed expression to map a string onto a valid variable name. | |
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
538 | |
539 | |
540 test -n "$DJDIR" || exec 7<&0 </dev/null | |
541 exec 6>&1 | |
542 | |
543 # Name of the host. | |
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
545 # so uname gets run too. | |
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
547 | |
548 # | |
549 # Initializations. | |
550 # | |
551 ac_default_prefix=/usr/local | |
552 ac_clean_files= | |
553 ac_config_libobj_dir=. | |
554 LIBOBJS= | |
555 cross_compiling=no | |
556 subdirs= | |
557 MFLAGS= | |
558 MAKEFLAGS= | |
559 | |
560 # Identity of this package. | |
561 PACKAGE_NAME='swig' | |
562 PACKAGE_TARNAME='swig' | |
563 PACKAGE_VERSION='2.0.11' | |
564 PACKAGE_STRING='swig 2.0.11' | |
565 PACKAGE_BUGREPORT='http://www.swig.org' | |
566 PACKAGE_URL='' | |
567 | |
568 ac_unique_file="Source/Swig/swig.h" | |
569 # Factoring default headers for most tests. | |
570 ac_includes_default="\ | |
571 #include <stdio.h> | |
572 #ifdef HAVE_SYS_TYPES_H | |
573 # include <sys/types.h> | |
574 #endif | |
575 #ifdef HAVE_SYS_STAT_H | |
576 # include <sys/stat.h> | |
577 #endif | |
578 #ifdef STDC_HEADERS | |
579 # include <stdlib.h> | |
580 # include <stddef.h> | |
581 #else | |
582 # ifdef HAVE_STDLIB_H | |
583 # include <stdlib.h> | |
584 # endif | |
585 #endif | |
586 #ifdef HAVE_STRING_H | |
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
588 # include <memory.h> | |
589 # endif | |
590 # include <string.h> | |
591 #endif | |
592 #ifdef HAVE_STRINGS_H | |
593 # include <strings.h> | |
594 #endif | |
595 #ifdef HAVE_INTTYPES_H | |
596 # include <inttypes.h> | |
597 #endif | |
598 #ifdef HAVE_STDINT_H | |
599 # include <stdint.h> | |
600 #endif | |
601 #ifdef HAVE_UNISTD_H | |
602 # include <unistd.h> | |
603 #endif" | |
604 | |
605 enable_option_checking=no | |
606 ac_subst_vars='am__EXEEXT_FALSE | |
607 am__EXEEXT_TRUE | |
608 LTLIBOBJS | |
609 LIBOBJS | |
610 SWIG_LIB | |
611 swig_lib | |
612 ac_aux_dir | |
613 EXTRA_CLEAN | |
614 ROOT_DIR | |
615 SKIP_ANDROID | |
616 SKIP_GCJ | |
617 SKIP_D | |
618 SKIP_GO | |
619 SKIP_UFFI | |
620 SKIP_CFFI | |
621 SKIP_R | |
622 SKIP_CLISP | |
623 SKIP_ALLEGROCL | |
624 SKIP_LUA | |
625 SKIP_MODULA3 | |
626 SKIP_CSHARP | |
627 SKIP_CHICKEN | |
628 SKIP_PIKE | |
629 SKIP_OCAML | |
630 SKIP_PHP | |
631 SKIP_RUBY | |
632 SKIP_MZSCHEME | |
633 SKIP_GUILE | |
634 SKIP_JAVA | |
635 SKIP_PYTHON3 | |
636 SKIP_PYTHON | |
637 SKIP_OCTAVE | |
638 SKIP_PERL5 | |
639 SKIP_TCL | |
640 DLIBPREFIX | |
641 DDEFAULTVERSION | |
642 D2COMPILER | |
643 D1COMPILER | |
644 GOVERSIONOPTION | |
645 GOOPT | |
646 GO1 | |
647 GOC | |
648 GOGCC | |
649 GO | |
650 RBIN | |
651 CLISPBIN | |
652 ALLEGROCLBIN | |
653 LUALINK | |
654 LUAFLAGS | |
655 LUADYNAMICLINKING | |
656 LUABIN | |
657 CSHARPSO | |
658 CSHARPCFLAGS | |
659 CSHARPLIBRARYPREFIX | |
660 CSHARPDYNAMICLINKING | |
661 CSHARPCYGPATH_W | |
662 CSHARPPATHSEPARATOR | |
663 CSHARPCILINTERPRETER_FLAGS | |
664 CSHARPCILINTERPRETER | |
665 CSHARPCOMPILER | |
666 CHICKENSHAREDLIB | |
667 CHICKENLIB | |
668 CHICKENOPTS | |
669 CHICKEN_CSI | |
670 CHICKEN_CSC | |
671 CHICKEN | |
672 PIKEDYNAMICLINKING | |
673 PIKECCDLFLAGS | |
674 PIKEINCLUDE | |
675 PIKECONFIG | |
676 PIKE | |
677 OCAMLINC | |
678 OCAMLVER | |
679 OCAMLLOC | |
680 OCAMLMKTOP | |
681 OCAMLBIN | |
682 OCAMLC | |
683 OCAMLFIND | |
684 OCAMLDLGEN | |
685 PHPINC | |
686 PHP | |
687 RUBYDYNAMICLINKING | |
688 RUBYSO | |
689 RUBYCCDLFLAGS | |
690 RUBYLINK | |
691 RUBYLIB | |
692 RUBYINCLUDE | |
693 RUBY | |
694 MZDYNOBJ | |
695 MZC | |
696 MZSCHEME | |
697 GUILE_LIBS | |
698 GUILE_CFLAGS | |
699 GUILE | |
700 GUILE_CONFIG | |
701 NDKBUILD | |
702 ANT | |
703 ADB | |
704 ANDROID | |
705 GCJH | |
706 GCJ | |
707 JAVACFLAGS | |
708 JAVACXXSHARED | |
709 JAVALDSHARED | |
710 JAVASO | |
711 JAVALIBRARYPREFIX | |
712 JAVADYNAMICLINKING | |
713 JAVAINC | |
714 JAVAC | |
715 JAVA | |
716 OCTAVE_LDFLAGS | |
717 OCTAVE_CXXFLAGS | |
718 OCTAVE_CPPFLAGS | |
719 OCTAVE_SO | |
720 OCTAVE | |
721 PERL5LDFLAGS | |
722 PERL5CCCDLFLAGS | |
723 PERL5CCDLFLAGS | |
724 PERL5CCFLAGS | |
725 PERL5LIB | |
726 PERL5DYNAMICLINKING | |
727 PERL5EXT | |
728 PERL | |
729 PYTHON3DYNAMICLINKING | |
730 PY3LINK | |
731 PY3LIB | |
732 PY3INCLUDE | |
733 PY3CONFIG | |
734 PYTHON3 | |
735 PYTHONDYNAMICLINKING | |
736 PYLINK | |
737 PYLIB | |
738 PYINCLUDE | |
739 PYTHON | |
740 TCLCXXSHARED | |
741 TCLLDSHARED | |
742 TCLDYNAMICLINKING | |
743 TCLLIB | |
744 TCLINCLUDE | |
745 XLIBSW | |
746 XINCLUDES | |
747 XMKMF | |
748 LIBC | |
749 LIBCRYPT | |
750 LIBM | |
751 SWILL | |
752 SWIGLIBS | |
753 LUA_SO | |
754 MZSCHEME_SO | |
755 PHP_SO | |
756 GUILE_SO | |
757 TCL_SO | |
758 PYTHON_SO | |
759 LINKFORSHARED | |
760 PLATFLAGS | |
761 RPATH | |
762 TRYLINKINGWITHCXX | |
763 CXXSHARED | |
764 CCSHARED | |
765 LDSHARED | |
766 SO | |
767 BOOST_LDFLAGS | |
768 BOOST_CPPFLAGS | |
769 YODL2HTML | |
770 YODL2MAN | |
771 AR | |
772 RANLIB | |
773 YFLAGS | |
774 YACC | |
775 ENABLE_CCACHE | |
776 subdirs | |
777 PCRE_LIBS | |
778 PCRE_CFLAGS | |
779 PCRE_CONFIG | |
780 SED | |
781 EGREP | |
782 GREP | |
783 CPP | |
784 am__fastdepCXX_FALSE | |
785 am__fastdepCXX_TRUE | |
786 CXXDEPMODE | |
787 ac_ct_CXX | |
788 CXXFLAGS | |
789 CXX | |
790 am__fastdepCC_FALSE | |
791 am__fastdepCC_TRUE | |
792 CCDEPMODE | |
793 am__nodep | |
794 AMDEPBACKSLASH | |
795 AMDEP_FALSE | |
796 AMDEP_TRUE | |
797 am__quote | |
798 am__include | |
799 DEPDIR | |
800 OBJEXT | |
801 EXEEXT | |
802 ac_ct_CC | |
803 CPPFLAGS | |
804 LDFLAGS | |
805 CFLAGS | |
806 CC | |
807 am__untar | |
808 am__tar | |
809 AMTAR | |
810 am__leading_dot | |
811 SET_MAKE | |
812 AWK | |
813 mkdir_p | |
814 MKDIR_P | |
815 INSTALL_STRIP_PROGRAM | |
816 STRIP | |
817 install_sh | |
818 MAKEINFO | |
819 AUTOHEADER | |
820 AUTOMAKE | |
821 AUTOCONF | |
822 ACLOCAL | |
823 VERSION | |
824 PACKAGE | |
825 CYGPATH_W | |
826 am__isrc | |
827 INSTALL_DATA | |
828 INSTALL_SCRIPT | |
829 INSTALL_PROGRAM | |
830 host_os | |
831 host_vendor | |
832 host_cpu | |
833 host | |
834 build_os | |
835 build_vendor | |
836 build_cpu | |
837 build | |
838 target_alias | |
839 host_alias | |
840 build_alias | |
841 LIBS | |
842 ECHO_T | |
843 ECHO_N | |
844 ECHO_C | |
845 DEFS | |
846 mandir | |
847 localedir | |
848 libdir | |
849 psdir | |
850 pdfdir | |
851 dvidir | |
852 htmldir | |
853 infodir | |
854 docdir | |
855 oldincludedir | |
856 includedir | |
857 localstatedir | |
858 sharedstatedir | |
859 sysconfdir | |
860 datadir | |
861 datarootdir | |
862 libexecdir | |
863 sbindir | |
864 bindir | |
865 program_transform_name | |
866 prefix | |
867 exec_prefix | |
868 PACKAGE_URL | |
869 PACKAGE_BUGREPORT | |
870 PACKAGE_STRING | |
871 PACKAGE_VERSION | |
872 PACKAGE_TARNAME | |
873 PACKAGE_NAME | |
874 PATH_SEPARATOR | |
875 SHELL' | |
876 ac_subst_files='' | |
877 ac_user_opts=' | |
878 enable_option_checking | |
879 enable_dependency_tracking | |
880 with_maximum_compile_warnings | |
881 with_popen | |
882 with_pcre | |
883 with_pcre_prefix | |
884 with_pcre_exec_prefix | |
885 enable_ccache | |
886 with_boost | |
887 with_boost_libdir | |
888 with_libm | |
889 with_libc | |
890 with_x | |
891 with_alllang | |
892 with_tclconfig | |
893 with_tcl | |
894 with_tclincl | |
895 with_tcllib | |
896 with_python | |
897 with_python3 | |
898 with_perl5 | |
899 with_octave | |
900 with_java | |
901 with_javac | |
902 with_javaincl | |
903 with_gcj | |
904 with_gcjh | |
905 with_android | |
906 with_adb | |
907 with_ant | |
908 with_ndk_build | |
909 with_guile_config | |
910 with_guile | |
911 with_guile_cflags | |
912 with_guile_libs | |
913 with_mzscheme | |
914 with_mzc | |
915 with_ruby | |
916 with_php | |
917 with_ocaml | |
918 with_ocamlc | |
919 with_ocamldlgen | |
920 with_ocamlfind | |
921 with_ocamlmktop | |
922 with_pike | |
923 with_pike_config | |
924 with_pikeincl | |
925 with_chicken | |
926 with_chickencsc | |
927 with_chickencsi | |
928 with_chickenopts | |
929 with_chickensharedlib | |
930 with_chickenlib | |
931 with_csharp | |
932 with_cil_interpreter | |
933 with_csharp_compiler | |
934 with_lua | |
935 with_luaincl | |
936 with_lualib | |
937 with_allegrocl | |
938 with_clisp | |
939 with_r | |
940 with_go | |
941 with_d | |
942 with_d1_compiler | |
943 with_d2_compiler | |
944 with_swiglibdir | |
945 ' | |
946 ac_precious_vars='build_alias | |
947 host_alias | |
948 target_alias | |
949 CC | |
950 CFLAGS | |
951 LDFLAGS | |
952 LIBS | |
953 CPPFLAGS | |
954 CXX | |
955 CXXFLAGS | |
956 CCC | |
957 CPP | |
958 PCRE_CONFIG | |
959 PCRE_CFLAGS | |
960 PCRE_LIBS | |
961 YACC | |
962 YFLAGS | |
963 XMKMF' | |
964 ac_subdirs_all='CCache' | |
965 | |
966 # Initialize some variables set by options. | |
967 ac_init_help= | |
968 ac_init_version=false | |
969 ac_unrecognized_opts= | |
970 ac_unrecognized_sep= | |
971 # The variables have the same names as the options, with | |
972 # dashes changed to underlines. | |
973 cache_file=/dev/null | |
974 exec_prefix=NONE | |
975 no_create= | |
976 no_recursion= | |
977 prefix=NONE | |
978 program_prefix=NONE | |
979 program_suffix=NONE | |
980 program_transform_name=s,x,x, | |
981 silent= | |
982 site= | |
983 srcdir= | |
984 verbose= | |
985 x_includes=NONE | |
986 x_libraries=NONE | |
987 | |
988 # Installation directory options. | |
989 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
990 # and all the variables that are supposed to be based on exec_prefix | |
991 # by default will actually change. | |
992 # Use braces instead of parens because sh, perl, etc. also accept them. | |
993 # (The list follows the same order as the GNU Coding Standards.) | |
994 bindir='${exec_prefix}/bin' | |
995 sbindir='${exec_prefix}/sbin' | |
996 libexecdir='${exec_prefix}/libexec' | |
997 datarootdir='${prefix}/share' | |
998 datadir='${datarootdir}' | |
999 sysconfdir='${prefix}/etc' | |
1000 sharedstatedir='${prefix}/com' | |
1001 localstatedir='${prefix}/var' | |
1002 includedir='${prefix}/include' | |
1003 oldincludedir='/usr/include' | |
1004 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
1005 infodir='${datarootdir}/info' | |
1006 htmldir='${docdir}' | |
1007 dvidir='${docdir}' | |
1008 pdfdir='${docdir}' | |
1009 psdir='${docdir}' | |
1010 libdir='${exec_prefix}/lib' | |
1011 localedir='${datarootdir}/locale' | |
1012 mandir='${datarootdir}/man' | |
1013 | |
1014 ac_prev= | |
1015 ac_dashdash= | |
1016 for ac_option | |
1017 do | |
1018 # If the previous option needs an argument, assign it. | |
1019 if test -n "$ac_prev"; then | |
1020 eval $ac_prev=\$ac_option | |
1021 ac_prev= | |
1022 continue | |
1023 fi | |
1024 | |
1025 case $ac_option in | |
1026 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1027 *=) ac_optarg= ;; | |
1028 *) ac_optarg=yes ;; | |
1029 esac | |
1030 | |
1031 # Accept the important Cygnus configure options, so we can diagnose typos. | |
1032 | |
1033 case $ac_dashdash$ac_option in | |
1034 --) | |
1035 ac_dashdash=yes ;; | |
1036 | |
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1038 ac_prev=bindir ;; | |
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1040 bindir=$ac_optarg ;; | |
1041 | |
1042 -build | --build | --buil | --bui | --bu) | |
1043 ac_prev=build_alias ;; | |
1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1045 build_alias=$ac_optarg ;; | |
1046 | |
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1049 ac_prev=cache_file ;; | |
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1052 cache_file=$ac_optarg ;; | |
1053 | |
1054 --config-cache | -C) | |
1055 cache_file=config.cache ;; | |
1056 | |
1057 -datadir | --datadir | --datadi | --datad) | |
1058 ac_prev=datadir ;; | |
1059 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1060 datadir=$ac_optarg ;; | |
1061 | |
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1063 | --dataroo | --dataro | --datar) | |
1064 ac_prev=datarootdir ;; | |
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1067 datarootdir=$ac_optarg ;; | |
1068 | |
1069 -disable-* | --disable-*) | |
1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1071 # Reject names that are not valid shell variable names. | |
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1073 as_fn_error $? "invalid feature name: $ac_useropt" | |
1074 ac_useropt_orig=$ac_useropt | |
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1076 case $ac_user_opts in | |
1077 *" | |
1078 "enable_$ac_useropt" | |
1079 "*) ;; | |
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1081 ac_unrecognized_sep=', ';; | |
1082 esac | |
1083 eval enable_$ac_useropt=no ;; | |
1084 | |
1085 -docdir | --docdir | --docdi | --doc | --do) | |
1086 ac_prev=docdir ;; | |
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1088 docdir=$ac_optarg ;; | |
1089 | |
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1091 ac_prev=dvidir ;; | |
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1093 dvidir=$ac_optarg ;; | |
1094 | |
1095 -enable-* | --enable-*) | |
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1097 # Reject names that are not valid shell variable names. | |
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1099 as_fn_error $? "invalid feature name: $ac_useropt" | |
1100 ac_useropt_orig=$ac_useropt | |
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1102 case $ac_user_opts in | |
1103 *" | |
1104 "enable_$ac_useropt" | |
1105 "*) ;; | |
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1107 ac_unrecognized_sep=', ';; | |
1108 esac | |
1109 eval enable_$ac_useropt=\$ac_optarg ;; | |
1110 | |
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1113 | --exec | --exe | --ex) | |
1114 ac_prev=exec_prefix ;; | |
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1117 | --exec=* | --exe=* | --ex=*) | |
1118 exec_prefix=$ac_optarg ;; | |
1119 | |
1120 -gas | --gas | --ga | --g) | |
1121 # Obsolete; use --with-gas. | |
1122 with_gas=yes ;; | |
1123 | |
1124 -help | --help | --hel | --he | -h) | |
1125 ac_init_help=long ;; | |
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1127 ac_init_help=recursive ;; | |
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1129 ac_init_help=short ;; | |
1130 | |
1131 -host | --host | --hos | --ho) | |
1132 ac_prev=host_alias ;; | |
1133 -host=* | --host=* | --hos=* | --ho=*) | |
1134 host_alias=$ac_optarg ;; | |
1135 | |
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1137 ac_prev=htmldir ;; | |
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1139 | --ht=*) | |
1140 htmldir=$ac_optarg ;; | |
1141 | |
1142 -includedir | --includedir | --includedi | --included | --include \ | |
1143 | --includ | --inclu | --incl | --inc) | |
1144 ac_prev=includedir ;; | |
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1146 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1147 includedir=$ac_optarg ;; | |
1148 | |
1149 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1150 ac_prev=infodir ;; | |
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1152 infodir=$ac_optarg ;; | |
1153 | |
1154 -libdir | --libdir | --libdi | --libd) | |
1155 ac_prev=libdir ;; | |
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1157 libdir=$ac_optarg ;; | |
1158 | |
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1160 | --libexe | --libex | --libe) | |
1161 ac_prev=libexecdir ;; | |
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1163 | --libexe=* | --libex=* | --libe=*) | |
1164 libexecdir=$ac_optarg ;; | |
1165 | |
1166 -localedir | --localedir | --localedi | --localed | --locale) | |
1167 ac_prev=localedir ;; | |
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1169 localedir=$ac_optarg ;; | |
1170 | |
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1172 | --localstate | --localstat | --localsta | --localst | --locals) | |
1173 ac_prev=localstatedir ;; | |
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1176 localstatedir=$ac_optarg ;; | |
1177 | |
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1179 ac_prev=mandir ;; | |
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1181 mandir=$ac_optarg ;; | |
1182 | |
1183 -nfp | --nfp | --nf) | |
1184 # Obsolete; use --without-fp. | |
1185 with_fp=no ;; | |
1186 | |
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1188 | --no-cr | --no-c | -n) | |
1189 no_create=yes ;; | |
1190 | |
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1193 no_recursion=yes ;; | |
1194 | |
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1197 | --oldin | --oldi | --old | --ol | --o) | |
1198 ac_prev=oldincludedir ;; | |
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1202 oldincludedir=$ac_optarg ;; | |
1203 | |
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1205 ac_prev=prefix ;; | |
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1207 prefix=$ac_optarg ;; | |
1208 | |
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1210 | --program-pre | --program-pr | --program-p) | |
1211 ac_prev=program_prefix ;; | |
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1214 program_prefix=$ac_optarg ;; | |
1215 | |
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1217 | --program-suf | --program-su | --program-s) | |
1218 ac_prev=program_suffix ;; | |
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1221 program_suffix=$ac_optarg ;; | |
1222 | |
1223 -program-transform-name | --program-transform-name \ | |
1224 | --program-transform-nam | --program-transform-na \ | |
1225 | --program-transform-n | --program-transform- \ | |
1226 | --program-transform | --program-transfor \ | |
1227 | --program-transfo | --program-transf \ | |
1228 | --program-trans | --program-tran \ | |
1229 | --progr-tra | --program-tr | --program-t) | |
1230 ac_prev=program_transform_name ;; | |
1231 -program-transform-name=* | --program-transform-name=* \ | |
1232 | --program-transform-nam=* | --program-transform-na=* \ | |
1233 | --program-transform-n=* | --program-transform-=* \ | |
1234 | --program-transform=* | --program-transfor=* \ | |
1235 | --program-transfo=* | --program-transf=* \ | |
1236 | --program-trans=* | --program-tran=* \ | |
1237 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1238 program_transform_name=$ac_optarg ;; | |
1239 | |
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1241 ac_prev=pdfdir ;; | |
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1243 pdfdir=$ac_optarg ;; | |
1244 | |
1245 -psdir | --psdir | --psdi | --psd | --ps) | |
1246 ac_prev=psdir ;; | |
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1248 psdir=$ac_optarg ;; | |
1249 | |
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1251 | -silent | --silent | --silen | --sile | --sil) | |
1252 silent=yes ;; | |
1253 | |
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1255 ac_prev=sbindir ;; | |
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1257 | --sbi=* | --sb=*) | |
1258 sbindir=$ac_optarg ;; | |
1259 | |
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1262 | --sharedst | --shareds | --shared | --share | --shar \ | |
1263 | --sha | --sh) | |
1264 ac_prev=sharedstatedir ;; | |
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1268 | --sha=* | --sh=*) | |
1269 sharedstatedir=$ac_optarg ;; | |
1270 | |
1271 -site | --site | --sit) | |
1272 ac_prev=site ;; | |
1273 -site=* | --site=* | --sit=*) | |
1274 site=$ac_optarg ;; | |
1275 | |
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1277 ac_prev=srcdir ;; | |
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1279 srcdir=$ac_optarg ;; | |
1280 | |
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1282 | --syscon | --sysco | --sysc | --sys | --sy) | |
1283 ac_prev=sysconfdir ;; | |
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1286 sysconfdir=$ac_optarg ;; | |
1287 | |
1288 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1289 ac_prev=target_alias ;; | |
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1291 target_alias=$ac_optarg ;; | |
1292 | |
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1294 verbose=yes ;; | |
1295 | |
1296 -version | --version | --versio | --versi | --vers | -V) | |
1297 ac_init_version=: ;; | |
1298 | |
1299 -with-* | --with-*) | |
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1301 # Reject names that are not valid shell variable names. | |
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1303 as_fn_error $? "invalid package name: $ac_useropt" | |
1304 ac_useropt_orig=$ac_useropt | |
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1306 case $ac_user_opts in | |
1307 *" | |
1308 "with_$ac_useropt" | |
1309 "*) ;; | |
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1311 ac_unrecognized_sep=', ';; | |
1312 esac | |
1313 eval with_$ac_useropt=\$ac_optarg ;; | |
1314 | |
1315 -without-* | --without-*) | |
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1317 # Reject names that are not valid shell variable names. | |
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1319 as_fn_error $? "invalid package name: $ac_useropt" | |
1320 ac_useropt_orig=$ac_useropt | |
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1322 case $ac_user_opts in | |
1323 *" | |
1324 "with_$ac_useropt" | |
1325 "*) ;; | |
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1327 ac_unrecognized_sep=', ';; | |
1328 esac | |
1329 eval with_$ac_useropt=no ;; | |
1330 | |
1331 --x) | |
1332 # Obsolete; use --with-x. | |
1333 with_x=yes ;; | |
1334 | |
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1336 | --x-incl | --x-inc | --x-in | --x-i) | |
1337 ac_prev=x_includes ;; | |
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1340 x_includes=$ac_optarg ;; | |
1341 | |
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1344 ac_prev=x_libraries ;; | |
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1347 x_libraries=$ac_optarg ;; | |
1348 | |
1349 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1350 Try \`$0 --help' for more information" | |
1351 ;; | |
1352 | |
1353 *=*) | |
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1355 # Reject names that are not valid shell variable names. | |
1356 case $ac_envvar in #( | |
1357 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1358 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1359 esac | |
1360 eval $ac_envvar=\$ac_optarg | |
1361 export $ac_envvar ;; | |
1362 | |
1363 *) | |
1364 # FIXME: should be removed in autoconf 3.0. | |
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1368 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1369 ;; | |
1370 | |
1371 esac | |
1372 done | |
1373 | |
1374 if test -n "$ac_prev"; then | |
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1376 as_fn_error $? "missing argument to $ac_option" | |
1377 fi | |
1378 | |
1379 if test -n "$ac_unrecognized_opts"; then | |
1380 case $enable_option_checking in | |
1381 no) ;; | |
1382 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1384 esac | |
1385 fi | |
1386 | |
1387 # Check all directory arguments for consistency. | |
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1389 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1391 libdir localedir mandir | |
1392 do | |
1393 eval ac_val=\$$ac_var | |
1394 # Remove trailing slashes. | |
1395 case $ac_val in | |
1396 */ ) | |
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1398 eval $ac_var=\$ac_val;; | |
1399 esac | |
1400 # Be sure to have absolute directory names. | |
1401 case $ac_val in | |
1402 [\\/$]* | ?:[\\/]* ) continue;; | |
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1404 esac | |
1405 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1406 done | |
1407 | |
1408 # There might be people who depend on the old broken behavior: `$host' | |
1409 # used to hold the argument of --host etc. | |
1410 # FIXME: To remove some day. | |
1411 build=$build_alias | |
1412 host=$host_alias | |
1413 target=$target_alias | |
1414 | |
1415 # FIXME: To remove some day. | |
1416 if test "x$host_alias" != x; then | |
1417 if test "x$build_alias" = x; then | |
1418 cross_compiling=maybe | |
1419 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1420 If a cross compiler is detected then cross compile mode will be used" >&2 | |
1421 elif test "x$build_alias" != "x$host_alias"; then | |
1422 cross_compiling=yes | |
1423 fi | |
1424 fi | |
1425 | |
1426 ac_tool_prefix= | |
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1428 | |
1429 test "$silent" = yes && exec 6>/dev/null | |
1430 | |
1431 | |
1432 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1433 ac_ls_di=`ls -di .` && | |
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1435 as_fn_error $? "working directory cannot be determined" | |
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1437 as_fn_error $? "pwd does not report name of working directory" | |
1438 | |
1439 | |
1440 # Find the source files, if location was not specified. | |
1441 if test -z "$srcdir"; then | |
1442 ac_srcdir_defaulted=yes | |
1443 # Try the directory containing this script, then the parent directory. | |
1444 ac_confdir=`$as_dirname -- "$as_myself" || | |
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1446 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1447 X"$as_myself" : 'X\(//\)$' \| \ | |
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1449 $as_echo X"$as_myself" | | |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1451 s//\1/ | |
1452 q | |
1453 } | |
1454 /^X\(\/\/\)[^/].*/{ | |
1455 s//\1/ | |
1456 q | |
1457 } | |
1458 /^X\(\/\/\)$/{ | |
1459 s//\1/ | |
1460 q | |
1461 } | |
1462 /^X\(\/\).*/{ | |
1463 s//\1/ | |
1464 q | |
1465 } | |
1466 s/.*/./; q'` | |
1467 srcdir=$ac_confdir | |
1468 if test ! -r "$srcdir/$ac_unique_file"; then | |
1469 srcdir=.. | |
1470 fi | |
1471 else | |
1472 ac_srcdir_defaulted=no | |
1473 fi | |
1474 if test ! -r "$srcdir/$ac_unique_file"; then | |
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1476 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1477 fi | |
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1479 ac_abs_confdir=`( | |
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1481 pwd)` | |
1482 # When building in place, set srcdir=. | |
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1484 srcdir=. | |
1485 fi | |
1486 # Remove unnecessary trailing slashes from srcdir. | |
1487 # Double slashes in file names in object file debugging info | |
1488 # mess up M-x gdb in Emacs. | |
1489 case $srcdir in | |
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1491 esac | |
1492 for ac_var in $ac_precious_vars; do | |
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1494 eval ac_env_${ac_var}_value=\$${ac_var} | |
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1497 done | |
1498 | |
1499 # | |
1500 # Report the --help message. | |
1501 # | |
1502 if test "$ac_init_help" = "long"; then | |
1503 # Omit some internal or obsolete options to make the list less imposing. | |
1504 # This message is too long to be a string in the A/UX 3.1 sh. | |
1505 cat <<_ACEOF | |
1506 \`configure' configures swig 2.0.11 to adapt to many kinds of systems. | |
1507 | |
1508 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1509 | |
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1511 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1512 | |
1513 Defaults for the options are specified in brackets. | |
1514 | |
1515 Configuration: | |
1516 -h, --help display this help and exit | |
1517 --help=short display options specific to this package | |
1518 --help=recursive display the short help of all the included packages | |
1519 -V, --version display version information and exit | |
1520 -q, --quiet, --silent do not print \`checking ...' messages | |
1521 --cache-file=FILE cache test results in FILE [disabled] | |
1522 -C, --config-cache alias for \`--cache-file=config.cache' | |
1523 -n, --no-create do not create output files | |
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1525 | |
1526 Installation directories: | |
1527 --prefix=PREFIX install architecture-independent files in PREFIX | |
1528 [$ac_default_prefix] | |
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1530 [PREFIX] | |
1531 | |
1532 By default, \`make install' will install all the files in | |
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1535 for instance \`--prefix=\$HOME'. | |
1536 | |
1537 For better control, use the options below. | |
1538 | |
1539 Fine tuning of the installation directories: | |
1540 --bindir=DIR user executables [EPREFIX/bin] | |
1541 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1542 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1546 --libdir=DIR object code libraries [EPREFIX/lib] | |
1547 --includedir=DIR C header files [PREFIX/include] | |
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1551 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1553 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/swig] | |
1555 --htmldir=DIR html documentation [DOCDIR] | |
1556 --dvidir=DIR dvi documentation [DOCDIR] | |
1557 --pdfdir=DIR pdf documentation [DOCDIR] | |
1558 --psdir=DIR ps documentation [DOCDIR] | |
1559 _ACEOF | |
1560 | |
1561 cat <<\_ACEOF | |
1562 | |
1563 Program names: | |
1564 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1565 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1567 | |
1568 X features: | |
1569 --x-includes=DIR X include files are in DIR | |
1570 --x-libraries=DIR X library files are in DIR | |
1571 | |
1572 System types: | |
1573 --build=BUILD configure for building on BUILD [guessed] | |
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1575 _ACEOF | |
1576 fi | |
1577 | |
1578 if test -n "$ac_init_help"; then | |
1579 case $ac_init_help in | |
1580 short | recursive ) echo "Configuration of swig 2.0.11:";; | |
1581 esac | |
1582 cat <<\_ACEOF | |
1583 | |
1584 Optional Features: | |
1585 --disable-option-checking ignore unrecognized --enable/--with options | |
1586 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1587 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1588 --disable-dependency-tracking speeds up one-time build | |
1589 --enable-dependency-tracking do not reject slow dependency extractors | |
1590 --disable-ccache disable building and installation of ccache-swig | |
1591 executable (default enabled) | |
1592 | |
1593 Optional Packages: | |
1594 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1595 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1596 --without-maximum-compile-warnings | |
1597 Disable maximum warning verbosity | |
1598 --without-popen Disable popen | |
1599 --without-pcre Disable support for regular expressions using PCRE | |
1600 --with-pcre-prefix=PREFIX | |
1601 Prefix where pcre is installed (optional) | |
1602 --with-pcre-exec-prefix=EPREFIX | |
1603 Exec prefix where pcre is installed (optional) | |
1604 --with-boost[=ARG] use Boost library from a standard location | |
1605 (ARG=yes), from the specified location (ARG=<path>), | |
1606 or disable it (ARG=no) [ARG=yes] | |
1607 --with-boost-libdir=LIB_DIR | |
1608 Force given directory for boost libraries. Note that | |
1609 this will override library path detection, so use | |
1610 this parameter only if default library detection | |
1611 fails and you know exactly where your boost | |
1612 libraries are located. | |
1613 --with-libm=STRING math library | |
1614 --with-libc=STRING C library | |
1615 --with-x use the X Window System | |
1616 --without-alllang Disable all languages | |
1617 --without-tcl Disable Tcl | |
1618 --with-tclconfig=path Set location of tclConfig.sh | |
1619 --with-tcl=path Set location of Tcl package | |
1620 --with-tclincl=path Set location of Tcl include directory | |
1621 --with-tcllib=path Set location of Tcl library directory | |
1622 --without-python Disable Python | |
1623 --with-python=path Set location of Python executable | |
1624 --without-python3 Disable Python 3.x support | |
1625 --with-python3=path Set location of Python 3.x executable | |
1626 --without-perl5 Disable Perl5 | |
1627 --with-perl5=path Set location of Perl5 executable | |
1628 --without-octave Disable Octave | |
1629 --with-octave=path Set location of Octave executable | |
1630 --without-java Disable Java | |
1631 --with-java=path Set location of java executable | |
1632 --with-javac=path Set location of javac executable | |
1633 --with-javaincl=path Set location of Java include directory | |
1634 --without-gcj Disable GCJ | |
1635 --with-gcj=path Set location of gcj executable | |
1636 --with-gcjh=path Set location of gcjh executable | |
1637 --without-android Disable Android | |
1638 --with-android=path Set location of android executable | |
1639 --with-adb=path Set location of adb executable - Android Debug Bridge | |
1640 --with-ant=path Set location of ant executable for Android | |
1641 --with-ndk-build=path Set location of Android ndk-build executable | |
1642 --without-guile Disable Guile | |
1643 --with-guile-config=path | |
1644 Set location of guile-config | |
1645 --with-guile=path Set location of Guile executable | |
1646 --with-guile-cflags=cflags Set cflags required to compile against Guile | |
1647 --with-guile-libs=ldflags Set ldflags needed to link with Guile | |
1648 --without-mzscheme Disable MzScheme | |
1649 --with-mzscheme=path Set location of MzScheme executable | |
1650 --with-mzc=path Set location of MzScheme's mzc | |
1651 --without-ruby Disable Ruby | |
1652 --with-ruby=path Set location of Ruby executable | |
1653 --without-php Disable PHP | |
1654 --with-php=path Set location of PHP executable | |
1655 --without-ocaml Disable OCaml | |
1656 --with-ocaml=path Set location of ocaml executable | |
1657 --with-ocamlc=path Set location of ocamlc executable | |
1658 --with-ocamldlgen=path Set location of ocamldlgen | |
1659 --with-ocamlfind=path Set location of ocamlfind | |
1660 --with-ocamlmktop=path Set location of ocamlmktop executable | |
1661 --without-pike Disable Pike | |
1662 --with-pike=path Set location of Pike executable | |
1663 --with-pike-config=path Set location of pike-config script | |
1664 --with-pikeincl=path Set location of Pike include directory | |
1665 --without-chicken Disable CHICKEN | |
1666 --with-chicken=path Set location of CHICKEN executable | |
1667 --with-chickencsc=path Set location of csc executable | |
1668 --with-chickencsi=path Set location of csi executable | |
1669 --with-chickenopts=args Set compiler options for static CHICKEN generated code | |
1670 --with-chickensharedlib=args Set linker options for shared CHICKEN generated code | |
1671 --with-chickenlib=args Set linker options for static CHICKEN generated code | |
1672 --without-csharp Disable CSharp | |
1673 --with-cil-interpreter=path Set location of CIL interpreter for CSharp | |
1674 --with-csharp-compiler=path Set location of CSharp compiler | |
1675 --without-lua Disable Lua | |
1676 --with-lua=path Set location of Lua executable | |
1677 --with-luaincl=path Set location of Lua include directory | |
1678 --with-lualib=path Set location of Lua library directory | |
1679 --without-allegrocl Disable Allegro CL | |
1680 --with-allegrocl=path Set location of Allegro CL executable (alisp) | |
1681 --without-clisp Disable CLISP | |
1682 --with-clisp=path Set location of CLISP executable (clisp) | |
1683 --without-r Disable R | |
1684 --with-r=path Set location of R executable (r) | |
1685 --without-go Disable Go | |
1686 --with-go=path Set location of Go compiler | |
1687 --without-d Disable D | |
1688 --with-d1-compiler=path Set location of D1/Tango compiler (DMD compatible) | |
1689 --with-d2-compiler=path Set location of D2 compiler (DMD compatible) | |
1690 --with-swiglibdir=DIR Put SWIG system-independent libraries into DIR. | |
1691 | |
1692 Some influential environment variables: | |
1693 CC C compiler command | |
1694 CFLAGS C compiler flags | |
1695 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1696 nonstandard directory <lib dir> | |
1697 LIBS libraries to pass to the linker, e.g. -l<library> | |
1698 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1699 you have headers in a nonstandard directory <include dir> | |
1700 CXX C++ compiler command | |
1701 CXXFLAGS C++ compiler flags | |
1702 CPP C preprocessor | |
1703 PCRE_CONFIG config script used for pcre | |
1704 PCRE_CFLAGS CFLAGS used for pcre | |
1705 PCRE_LIBS LIBS used for pcre | |
1706 YACC The `Yet Another Compiler Compiler' implementation to use. | |
1707 Defaults to the first program found out of: `bison -y', `byacc', | |
1708 `yacc'. | |
1709 YFLAGS The list of arguments that will be passed by default to $YACC. | |
1710 This script will default YFLAGS to the empty string to avoid a | |
1711 default value of `-d' given by some make applications. | |
1712 XMKMF Path to xmkmf, Makefile generator for X Window System | |
1713 | |
1714 Use these variables to override the choices made by `configure' or to help | |
1715 it to find libraries and programs with nonstandard names/locations. | |
1716 | |
1717 Report bugs to <http://www.swig.org>. | |
1718 _ACEOF | |
1719 ac_status=$? | |
1720 fi | |
1721 | |
1722 if test "$ac_init_help" = "recursive"; then | |
1723 # If there are subdirs, report their specific --help. | |
1724 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1725 test -d "$ac_dir" || | |
1726 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1727 continue | |
1728 ac_builddir=. | |
1729 | |
1730 case "$ac_dir" in | |
1731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1732 *) | |
1733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1734 # A ".." for each directory in $ac_dir_suffix. | |
1735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1736 case $ac_top_builddir_sub in | |
1737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1739 esac ;; | |
1740 esac | |
1741 ac_abs_top_builddir=$ac_pwd | |
1742 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1743 # for backward compatibility: | |
1744 ac_top_builddir=$ac_top_build_prefix | |
1745 | |
1746 case $srcdir in | |
1747 .) # We are building in place. | |
1748 ac_srcdir=. | |
1749 ac_top_srcdir=$ac_top_builddir_sub | |
1750 ac_abs_top_srcdir=$ac_pwd ;; | |
1751 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1752 ac_srcdir=$srcdir$ac_dir_suffix; | |
1753 ac_top_srcdir=$srcdir | |
1754 ac_abs_top_srcdir=$srcdir ;; | |
1755 *) # Relative name. | |
1756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1757 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1759 esac | |
1760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1761 | |
1762 cd "$ac_dir" || { ac_status=$?; continue; } | |
1763 # Check for guested configure. | |
1764 if test -f "$ac_srcdir/configure.gnu"; then | |
1765 echo && | |
1766 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1767 elif test -f "$ac_srcdir/configure"; then | |
1768 echo && | |
1769 $SHELL "$ac_srcdir/configure" --help=recursive | |
1770 else | |
1771 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1772 fi || ac_status=$? | |
1773 cd "$ac_pwd" || { ac_status=$?; break; } | |
1774 done | |
1775 fi | |
1776 | |
1777 test -n "$ac_init_help" && exit $ac_status | |
1778 if $ac_init_version; then | |
1779 cat <<\_ACEOF | |
1780 swig configure 2.0.11 | |
1781 generated by GNU Autoconf 2.68 | |
1782 | |
1783 Copyright (C) 2010 Free Software Foundation, Inc. | |
1784 This configure script is free software; the Free Software Foundation | |
1785 gives unlimited permission to copy, distribute and modify it. | |
1786 _ACEOF | |
1787 exit | |
1788 fi | |
1789 | |
1790 ## ------------------------ ## | |
1791 ## Autoconf initialization. ## | |
1792 ## ------------------------ ## | |
1793 | |
1794 # ac_fn_c_try_compile LINENO | |
1795 # -------------------------- | |
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1797 ac_fn_c_try_compile () | |
1798 { | |
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1800 rm -f conftest.$ac_objext | |
1801 if { { ac_try="$ac_compile" | |
1802 case "(($ac_try" in | |
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1804 *) ac_try_echo=$ac_try;; | |
1805 esac | |
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1807 $as_echo "$ac_try_echo"; } >&5 | |
1808 (eval "$ac_compile") 2>conftest.err | |
1809 ac_status=$? | |
1810 if test -s conftest.err; then | |
1811 grep -v '^ *+' conftest.err >conftest.er1 | |
1812 cat conftest.er1 >&5 | |
1813 mv -f conftest.er1 conftest.err | |
1814 fi | |
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1816 test $ac_status = 0; } && { | |
1817 test -z "$ac_c_werror_flag" || | |
1818 test ! -s conftest.err | |
1819 } && test -s conftest.$ac_objext; then : | |
1820 ac_retval=0 | |
1821 else | |
1822 $as_echo "$as_me: failed program was:" >&5 | |
1823 sed 's/^/| /' conftest.$ac_ext >&5 | |
1824 | |
1825 ac_retval=1 | |
1826 fi | |
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1828 as_fn_set_status $ac_retval | |
1829 | |
1830 } # ac_fn_c_try_compile | |
1831 | |
1832 # ac_fn_cxx_try_compile LINENO | |
1833 # ---------------------------- | |
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1835 ac_fn_cxx_try_compile () | |
1836 { | |
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1838 rm -f conftest.$ac_objext | |
1839 if { { ac_try="$ac_compile" | |
1840 case "(($ac_try" in | |
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1842 *) ac_try_echo=$ac_try;; | |
1843 esac | |
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1845 $as_echo "$ac_try_echo"; } >&5 | |
1846 (eval "$ac_compile") 2>conftest.err | |
1847 ac_status=$? | |
1848 if test -s conftest.err; then | |
1849 grep -v '^ *+' conftest.err >conftest.er1 | |
1850 cat conftest.er1 >&5 | |
1851 mv -f conftest.er1 conftest.err | |
1852 fi | |
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1854 test $ac_status = 0; } && { | |
1855 test -z "$ac_cxx_werror_flag" || | |
1856 test ! -s conftest.err | |
1857 } && test -s conftest.$ac_objext; then : | |
1858 ac_retval=0 | |
1859 else | |
1860 $as_echo "$as_me: failed program was:" >&5 | |
1861 sed 's/^/| /' conftest.$ac_ext >&5 | |
1862 | |
1863 ac_retval=1 | |
1864 fi | |
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1866 as_fn_set_status $ac_retval | |
1867 | |
1868 } # ac_fn_cxx_try_compile | |
1869 | |
1870 # ac_fn_c_try_cpp LINENO | |
1871 # ---------------------- | |
1872 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1873 ac_fn_c_try_cpp () | |
1874 { | |
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1876 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1877 case "(($ac_try" in | |
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1879 *) ac_try_echo=$ac_try;; | |
1880 esac | |
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1882 $as_echo "$ac_try_echo"; } >&5 | |
1883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1884 ac_status=$? | |
1885 if test -s conftest.err; then | |
1886 grep -v '^ *+' conftest.err >conftest.er1 | |
1887 cat conftest.er1 >&5 | |
1888 mv -f conftest.er1 conftest.err | |
1889 fi | |
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1891 test $ac_status = 0; } > conftest.i && { | |
1892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1893 test ! -s conftest.err | |
1894 }; then : | |
1895 ac_retval=0 | |
1896 else | |
1897 $as_echo "$as_me: failed program was:" >&5 | |
1898 sed 's/^/| /' conftest.$ac_ext >&5 | |
1899 | |
1900 ac_retval=1 | |
1901 fi | |
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1903 as_fn_set_status $ac_retval | |
1904 | |
1905 } # ac_fn_c_try_cpp | |
1906 | |
1907 # ac_fn_c_try_run LINENO | |
1908 # ---------------------- | |
1909 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1910 # that executables *can* be run. | |
1911 ac_fn_c_try_run () | |
1912 { | |
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1914 if { { ac_try="$ac_link" | |
1915 case "(($ac_try" in | |
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1917 *) ac_try_echo=$ac_try;; | |
1918 esac | |
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1920 $as_echo "$ac_try_echo"; } >&5 | |
1921 (eval "$ac_link") 2>&5 | |
1922 ac_status=$? | |
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1924 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1925 { { case "(($ac_try" in | |
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1927 *) ac_try_echo=$ac_try;; | |
1928 esac | |
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1930 $as_echo "$ac_try_echo"; } >&5 | |
1931 (eval "$ac_try") 2>&5 | |
1932 ac_status=$? | |
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1934 test $ac_status = 0; }; }; then : | |
1935 ac_retval=0 | |
1936 else | |
1937 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1938 $as_echo "$as_me: failed program was:" >&5 | |
1939 sed 's/^/| /' conftest.$ac_ext >&5 | |
1940 | |
1941 ac_retval=$ac_status | |
1942 fi | |
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1945 as_fn_set_status $ac_retval | |
1946 | |
1947 } # ac_fn_c_try_run | |
1948 | |
1949 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES | |
1950 # --------------------------------------------- | |
1951 # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1952 # variable VAR accordingly. | |
1953 ac_fn_cxx_check_type () | |
1954 { | |
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1957 $as_echo_n "checking for $2... " >&6; } | |
1958 if eval \${$3+:} false; then : | |
1959 $as_echo_n "(cached) " >&6 | |
1960 else | |
1961 eval "$3=no" | |
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1963 /* end confdefs.h. */ | |
1964 $4 | |
1965 int | |
1966 main () | |
1967 { | |
1968 if (sizeof ($2)) | |
1969 return 0; | |
1970 ; | |
1971 return 0; | |
1972 } | |
1973 _ACEOF | |
1974 if ac_fn_cxx_try_compile "$LINENO"; then : | |
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1976 /* end confdefs.h. */ | |
1977 $4 | |
1978 int | |
1979 main () | |
1980 { | |
1981 if (sizeof (($2))) | |
1982 return 0; | |
1983 ; | |
1984 return 0; | |
1985 } | |
1986 _ACEOF | |
1987 if ac_fn_cxx_try_compile "$LINENO"; then : | |
1988 | |
1989 else | |
1990 eval "$3=yes" | |
1991 fi | |
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1993 fi | |
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995 fi | |
1996 eval ac_res=\$$3 | |
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1998 $as_echo "$ac_res" >&6; } | |
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2000 | |
2001 } # ac_fn_cxx_check_type | |
2002 | |
2003 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES | |
2004 # --------------------------------------------------------- | |
2005 # Tests whether HEADER exists and can be compiled using the include files in | |
2006 # INCLUDES, setting the cache variable VAR accordingly. | |
2007 ac_fn_cxx_check_header_compile () | |
2008 { | |
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2011 $as_echo_n "checking for $2... " >&6; } | |
2012 if eval \${$3+:} false; then : | |
2013 $as_echo_n "(cached) " >&6 | |
2014 else | |
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2016 /* end confdefs.h. */ | |
2017 $4 | |
2018 #include <$2> | |
2019 _ACEOF | |
2020 if ac_fn_cxx_try_compile "$LINENO"; then : | |
2021 eval "$3=yes" | |
2022 else | |
2023 eval "$3=no" | |
2024 fi | |
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2026 fi | |
2027 eval ac_res=\$$3 | |
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2029 $as_echo "$ac_res" >&6; } | |
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2031 | |
2032 } # ac_fn_cxx_check_header_compile | |
2033 | |
2034 # ac_fn_c_try_link LINENO | |
2035 # ----------------------- | |
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2037 ac_fn_c_try_link () | |
2038 { | |
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2040 rm -f conftest.$ac_objext conftest$ac_exeext | |
2041 if { { ac_try="$ac_link" | |
2042 case "(($ac_try" in | |
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2044 *) ac_try_echo=$ac_try;; | |
2045 esac | |
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2047 $as_echo "$ac_try_echo"; } >&5 | |
2048 (eval "$ac_link") 2>conftest.err | |
2049 ac_status=$? | |
2050 if test -s conftest.err; then | |
2051 grep -v '^ *+' conftest.err >conftest.er1 | |
2052 cat conftest.er1 >&5 | |
2053 mv -f conftest.er1 conftest.err | |
2054 fi | |
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2056 test $ac_status = 0; } && { | |
2057 test -z "$ac_c_werror_flag" || | |
2058 test ! -s conftest.err | |
2059 } && test -s conftest$ac_exeext && { | |
2060 test "$cross_compiling" = yes || | |
2061 $as_test_x conftest$ac_exeext | |
2062 }; then : | |
2063 ac_retval=0 | |
2064 else | |
2065 $as_echo "$as_me: failed program was:" >&5 | |
2066 sed 's/^/| /' conftest.$ac_ext >&5 | |
2067 | |
2068 ac_retval=1 | |
2069 fi | |
2070 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2071 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2072 # interfere with the next link command; also delete a directory that is | |
2073 # left behind by Apple's compiler. We do this before executing the actions. | |
2074 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2076 as_fn_set_status $ac_retval | |
2077 | |
2078 } # ac_fn_c_try_link | |
2079 | |
2080 # ac_fn_c_check_func LINENO FUNC VAR | |
2081 # ---------------------------------- | |
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2083 ac_fn_c_check_func () | |
2084 { | |
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2087 $as_echo_n "checking for $2... " >&6; } | |
2088 if eval \${$3+:} false; then : | |
2089 $as_echo_n "(cached) " >&6 | |
2090 else | |
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2092 /* end confdefs.h. */ | |
2093 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2094 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2095 #define $2 innocuous_$2 | |
2096 | |
2097 /* System header to define __stub macros and hopefully few prototypes, | |
2098 which can conflict with char $2 (); below. | |
2099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2100 <limits.h> exists even on freestanding compilers. */ | |
2101 | |
2102 #ifdef __STDC__ | |
2103 # include <limits.h> | |
2104 #else | |
2105 # include <assert.h> | |
2106 #endif | |
2107 | |
2108 #undef $2 | |
2109 | |
2110 /* Override any GCC internal prototype to avoid an error. | |
2111 Use char because int might match the return type of a GCC | |
2112 builtin and then its argument prototype would still apply. */ | |
2113 #ifdef __cplusplus | |
2114 extern "C" | |
2115 #endif | |
2116 char $2 (); | |
2117 /* The GNU C library defines this for functions which it implements | |
2118 to always fail with ENOSYS. Some functions are actually named | |
2119 something starting with __ and the normal name is an alias. */ | |
2120 #if defined __stub_$2 || defined __stub___$2 | |
2121 choke me | |
2122 #endif | |
2123 | |
2124 int | |
2125 main () | |
2126 { | |
2127 return $2 (); | |
2128 ; | |
2129 return 0; | |
2130 } | |
2131 _ACEOF | |
2132 if ac_fn_c_try_link "$LINENO"; then : | |
2133 eval "$3=yes" | |
2134 else | |
2135 eval "$3=no" | |
2136 fi | |
2137 rm -f core conftest.err conftest.$ac_objext \ | |
2138 conftest$ac_exeext conftest.$ac_ext | |
2139 fi | |
2140 eval ac_res=\$$3 | |
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2142 $as_echo "$ac_res" >&6; } | |
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2144 | |
2145 } # ac_fn_c_check_func | |
2146 | |
2147 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2148 # ------------------------------------------------------- | |
2149 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2150 # the include files in INCLUDES and setting the cache variable VAR | |
2151 # accordingly. | |
2152 ac_fn_c_check_header_mongrel () | |
2153 { | |
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2155 if eval \${$3+:} false; then : | |
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2157 $as_echo_n "checking for $2... " >&6; } | |
2158 if eval \${$3+:} false; then : | |
2159 $as_echo_n "(cached) " >&6 | |
2160 fi | |
2161 eval ac_res=\$$3 | |
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2163 $as_echo "$ac_res" >&6; } | |
2164 else | |
2165 # Is the header compilable? | |
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2167 $as_echo_n "checking $2 usability... " >&6; } | |
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2169 /* end confdefs.h. */ | |
2170 $4 | |
2171 #include <$2> | |
2172 _ACEOF | |
2173 if ac_fn_c_try_compile "$LINENO"; then : | |
2174 ac_header_compiler=yes | |
2175 else | |
2176 ac_header_compiler=no | |
2177 fi | |
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2180 $as_echo "$ac_header_compiler" >&6; } | |
2181 | |
2182 # Is the header present? | |
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2184 $as_echo_n "checking $2 presence... " >&6; } | |
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2186 /* end confdefs.h. */ | |
2187 #include <$2> | |
2188 _ACEOF | |
2189 if ac_fn_c_try_cpp "$LINENO"; then : | |
2190 ac_header_preproc=yes | |
2191 else | |
2192 ac_header_preproc=no | |
2193 fi | |
2194 rm -f conftest.err conftest.i conftest.$ac_ext | |
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2196 $as_echo "$ac_header_preproc" >&6; } | |
2197 | |
2198 # So? What about this header? | |
2199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2200 yes:no: ) | |
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2202 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2204 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2205 ;; | |
2206 no:yes:* ) | |
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2208 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2210 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2212 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2214 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2216 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2217 ( $as_echo "## ---------------------------------- ## | |
2218 ## Report this to http://www.swig.org ## | |
2219 ## ---------------------------------- ##" | |
2220 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2221 ;; | |
2222 esac | |
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2224 $as_echo_n "checking for $2... " >&6; } | |
2225 if eval \${$3+:} false; then : | |
2226 $as_echo_n "(cached) " >&6 | |
2227 else | |
2228 eval "$3=\$ac_header_compiler" | |
2229 fi | |
2230 eval ac_res=\$$3 | |
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2232 $as_echo "$ac_res" >&6; } | |
2233 fi | |
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2235 | |
2236 } # ac_fn_c_check_header_mongrel | |
2237 | |
2238 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2239 # -------------------------------------------- | |
2240 # Tries to find the compile-time value of EXPR in a program that includes | |
2241 # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2242 # computed | |
2243 ac_fn_c_compute_int () | |
2244 { | |
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2246 if test "$cross_compiling" = yes; then | |
2247 # Depending upon the size, compute the lo and hi bounds. | |
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2249 /* end confdefs.h. */ | |
2250 $4 | |
2251 int | |
2252 main () | |
2253 { | |
2254 static int test_array [1 - 2 * !(($2) >= 0)]; | |
2255 test_array [0] = 0 | |
2256 | |
2257 ; | |
2258 return 0; | |
2259 } | |
2260 _ACEOF | |
2261 if ac_fn_c_try_compile "$LINENO"; then : | |
2262 ac_lo=0 ac_mid=0 | |
2263 while :; do | |
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2265 /* end confdefs.h. */ | |
2266 $4 | |
2267 int | |
2268 main () | |
2269 { | |
2270 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2271 test_array [0] = 0 | |
2272 | |
2273 ; | |
2274 return 0; | |
2275 } | |
2276 _ACEOF | |
2277 if ac_fn_c_try_compile "$LINENO"; then : | |
2278 ac_hi=$ac_mid; break | |
2279 else | |
2280 as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2281 if test $ac_lo -le $ac_mid; then | |
2282 ac_lo= ac_hi= | |
2283 break | |
2284 fi | |
2285 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2286 fi | |
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2288 done | |
2289 else | |
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2291 /* end confdefs.h. */ | |
2292 $4 | |
2293 int | |
2294 main () | |
2295 { | |
2296 static int test_array [1 - 2 * !(($2) < 0)]; | |
2297 test_array [0] = 0 | |
2298 | |
2299 ; | |
2300 return 0; | |
2301 } | |
2302 _ACEOF | |
2303 if ac_fn_c_try_compile "$LINENO"; then : | |
2304 ac_hi=-1 ac_mid=-1 | |
2305 while :; do | |
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2307 /* end confdefs.h. */ | |
2308 $4 | |
2309 int | |
2310 main () | |
2311 { | |
2312 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2313 test_array [0] = 0 | |
2314 | |
2315 ; | |
2316 return 0; | |
2317 } | |
2318 _ACEOF | |
2319 if ac_fn_c_try_compile "$LINENO"; then : | |
2320 ac_lo=$ac_mid; break | |
2321 else | |
2322 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2323 if test $ac_mid -le $ac_hi; then | |
2324 ac_lo= ac_hi= | |
2325 break | |
2326 fi | |
2327 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2328 fi | |
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2330 done | |
2331 else | |
2332 ac_lo= ac_hi= | |
2333 fi | |
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2335 fi | |
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2337 # Binary search between lo and hi bounds. | |
2338 while test "x$ac_lo" != "x$ac_hi"; do | |
2339 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2341 /* end confdefs.h. */ | |
2342 $4 | |
2343 int | |
2344 main () | |
2345 { | |
2346 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2347 test_array [0] = 0 | |
2348 | |
2349 ; | |
2350 return 0; | |
2351 } | |
2352 _ACEOF | |
2353 if ac_fn_c_try_compile "$LINENO"; then : | |
2354 ac_hi=$ac_mid | |
2355 else | |
2356 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2357 fi | |
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2359 done | |
2360 case $ac_lo in #(( | |
2361 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2362 '') ac_retval=1 ;; | |
2363 esac | |
2364 else | |
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2366 /* end confdefs.h. */ | |
2367 $4 | |
2368 static long int longval () { return $2; } | |
2369 static unsigned long int ulongval () { return $2; } | |
2370 #include <stdio.h> | |
2371 #include <stdlib.h> | |
2372 int | |
2373 main () | |
2374 { | |
2375 | |
2376 FILE *f = fopen ("conftest.val", "w"); | |
2377 if (! f) | |
2378 return 1; | |
2379 if (($2) < 0) | |
2380 { | |
2381 long int i = longval (); | |
2382 if (i != ($2)) | |
2383 return 1; | |
2384 fprintf (f, "%ld", i); | |
2385 } | |
2386 else | |
2387 { | |
2388 unsigned long int i = ulongval (); | |
2389 if (i != ($2)) | |
2390 return 1; | |
2391 fprintf (f, "%lu", i); | |
2392 } | |
2393 /* Do not output a trailing newline, as this causes \r\n confusion | |
2394 on some platforms. */ | |
2395 return ferror (f) || fclose (f) != 0; | |
2396 | |
2397 ; | |
2398 return 0; | |
2399 } | |
2400 _ACEOF | |
2401 if ac_fn_c_try_run "$LINENO"; then : | |
2402 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2403 else | |
2404 ac_retval=1 | |
2405 fi | |
2406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2407 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2408 rm -f conftest.val | |
2409 | |
2410 fi | |
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2412 as_fn_set_status $ac_retval | |
2413 | |
2414 } # ac_fn_c_compute_int | |
2415 cat >config.log <<_ACEOF | |
2416 This file contains any messages produced by compilers while | |
2417 running configure, to aid debugging if configure makes a mistake. | |
2418 | |
2419 It was created by swig $as_me 2.0.11, which was | |
2420 generated by GNU Autoconf 2.68. Invocation command line was | |
2421 | |
2422 $ $0 $@ | |
2423 | |
2424 _ACEOF | |
2425 exec 5>>config.log | |
2426 { | |
2427 cat <<_ASUNAME | |
2428 ## --------- ## | |
2429 ## Platform. ## | |
2430 ## --------- ## | |
2431 | |
2432 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2433 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2434 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2435 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2436 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2437 | |
2438 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2439 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2440 | |
2441 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2442 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2443 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2444 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2445 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2446 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2447 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2448 | |
2449 _ASUNAME | |
2450 | |
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2452 for as_dir in $PATH | |
2453 do | |
2454 IFS=$as_save_IFS | |
2455 test -z "$as_dir" && as_dir=. | |
2456 $as_echo "PATH: $as_dir" | |
2457 done | |
2458 IFS=$as_save_IFS | |
2459 | |
2460 } >&5 | |
2461 | |
2462 cat >&5 <<_ACEOF | |
2463 | |
2464 | |
2465 ## ----------- ## | |
2466 ## Core tests. ## | |
2467 ## ----------- ## | |
2468 | |
2469 _ACEOF | |
2470 | |
2471 | |
2472 # Keep a trace of the command line. | |
2473 # Strip out --no-create and --no-recursion so they do not pile up. | |
2474 # Strip out --silent because we don't want to record it for future runs. | |
2475 # Also quote any args containing shell meta-characters. | |
2476 # Make two passes to allow for proper duplicate-argument suppression. | |
2477 ac_configure_args= | |
2478 ac_configure_args0= | |
2479 ac_configure_args1= | |
2480 ac_must_keep_next=false | |
2481 for ac_pass in 1 2 | |
2482 do | |
2483 for ac_arg | |
2484 do | |
2485 case $ac_arg in | |
2486 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2488 | -silent | --silent | --silen | --sile | --sil) | |
2489 continue ;; | |
2490 *\'*) | |
2491 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2492 esac | |
2493 case $ac_pass in | |
2494 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2495 2) | |
2496 as_fn_append ac_configure_args1 " '$ac_arg'" | |
2497 if test $ac_must_keep_next = true; then | |
2498 ac_must_keep_next=false # Got value, back to normal. | |
2499 else | |
2500 case $ac_arg in | |
2501 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2502 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2503 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2504 | -with-* | --with-* | -without-* | --without-* | --x) | |
2505 case "$ac_configure_args0 " in | |
2506 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2507 esac | |
2508 ;; | |
2509 -* ) ac_must_keep_next=true ;; | |
2510 esac | |
2511 fi | |
2512 as_fn_append ac_configure_args " '$ac_arg'" | |
2513 ;; | |
2514 esac | |
2515 done | |
2516 done | |
2517 { ac_configure_args0=; unset ac_configure_args0;} | |
2518 { ac_configure_args1=; unset ac_configure_args1;} | |
2519 | |
2520 # When interrupted or exit'd, cleanup temporary files, and complete | |
2521 # config.log. We remove comments because anyway the quotes in there | |
2522 # would cause problems or look ugly. | |
2523 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2524 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2525 trap 'exit_status=$? | |
2526 # Save into config.log some information that might help in debugging. | |
2527 { | |
2528 echo | |
2529 | |
2530 $as_echo "## ---------------- ## | |
2531 ## Cache variables. ## | |
2532 ## ---------------- ##" | |
2533 echo | |
2534 # The following way of writing the cache mishandles newlines in values, | |
2535 ( | |
2536 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2537 eval ac_val=\$$ac_var | |
2538 case $ac_val in #( | |
2539 *${as_nl}*) | |
2540 case $ac_var in #( | |
2541 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2542 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2543 esac | |
2544 case $ac_var in #( | |
2545 _ | IFS | as_nl) ;; #( | |
2546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2547 *) { eval $ac_var=; unset $ac_var;} ;; | |
2548 esac ;; | |
2549 esac | |
2550 done | |
2551 (set) 2>&1 | | |
2552 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2553 *${as_nl}ac_space=\ *) | |
2554 sed -n \ | |
2555 "s/'\''/'\''\\\\'\'''\''/g; | |
2556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2557 ;; #( | |
2558 *) | |
2559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2560 ;; | |
2561 esac | | |
2562 sort | |
2563 ) | |
2564 echo | |
2565 | |
2566 $as_echo "## ----------------- ## | |
2567 ## Output variables. ## | |
2568 ## ----------------- ##" | |
2569 echo | |
2570 for ac_var in $ac_subst_vars | |
2571 do | |
2572 eval ac_val=\$$ac_var | |
2573 case $ac_val in | |
2574 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2575 esac | |
2576 $as_echo "$ac_var='\''$ac_val'\''" | |
2577 done | sort | |
2578 echo | |
2579 | |
2580 if test -n "$ac_subst_files"; then | |
2581 $as_echo "## ------------------- ## | |
2582 ## File substitutions. ## | |
2583 ## ------------------- ##" | |
2584 echo | |
2585 for ac_var in $ac_subst_files | |
2586 do | |
2587 eval ac_val=\$$ac_var | |
2588 case $ac_val in | |
2589 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2590 esac | |
2591 $as_echo "$ac_var='\''$ac_val'\''" | |
2592 done | sort | |
2593 echo | |
2594 fi | |
2595 | |
2596 if test -s confdefs.h; then | |
2597 $as_echo "## ----------- ## | |
2598 ## confdefs.h. ## | |
2599 ## ----------- ##" | |
2600 echo | |
2601 cat confdefs.h | |
2602 echo | |
2603 fi | |
2604 test "$ac_signal" != 0 && | |
2605 $as_echo "$as_me: caught signal $ac_signal" | |
2606 $as_echo "$as_me: exit $exit_status" | |
2607 } >&5 | |
2608 rm -f core *.core core.conftest.* && | |
2609 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2610 exit $exit_status | |
2611 ' 0 | |
2612 for ac_signal in 1 2 13 15; do | |
2613 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2614 done | |
2615 ac_signal=0 | |
2616 | |
2617 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2618 rm -f -r conftest* confdefs.h | |
2619 | |
2620 $as_echo "/* confdefs.h */" > confdefs.h | |
2621 | |
2622 # Predefined preprocessor variables. | |
2623 | |
2624 cat >>confdefs.h <<_ACEOF | |
2625 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2626 _ACEOF | |
2627 | |
2628 cat >>confdefs.h <<_ACEOF | |
2629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2630 _ACEOF | |
2631 | |
2632 cat >>confdefs.h <<_ACEOF | |
2633 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2634 _ACEOF | |
2635 | |
2636 cat >>confdefs.h <<_ACEOF | |
2637 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2638 _ACEOF | |
2639 | |
2640 cat >>confdefs.h <<_ACEOF | |
2641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2642 _ACEOF | |
2643 | |
2644 cat >>confdefs.h <<_ACEOF | |
2645 #define PACKAGE_URL "$PACKAGE_URL" | |
2646 _ACEOF | |
2647 | |
2648 | |
2649 # Let the site file select an alternate cache file if it wants to. | |
2650 # Prefer an explicitly selected file to automatically selected ones. | |
2651 ac_site_file1=NONE | |
2652 ac_site_file2=NONE | |
2653 if test -n "$CONFIG_SITE"; then | |
2654 # We do not want a PATH search for config.site. | |
2655 case $CONFIG_SITE in #(( | |
2656 -*) ac_site_file1=./$CONFIG_SITE;; | |
2657 */*) ac_site_file1=$CONFIG_SITE;; | |
2658 *) ac_site_file1=./$CONFIG_SITE;; | |
2659 esac | |
2660 elif test "x$prefix" != xNONE; then | |
2661 ac_site_file1=$prefix/share/config.site | |
2662 ac_site_file2=$prefix/etc/config.site | |
2663 else | |
2664 ac_site_file1=$ac_default_prefix/share/config.site | |
2665 ac_site_file2=$ac_default_prefix/etc/config.site | |
2666 fi | |
2667 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2668 do | |
2669 test "x$ac_site_file" = xNONE && continue | |
2670 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2672 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2673 sed 's/^/| /' "$ac_site_file" >&5 | |
2674 . "$ac_site_file" \ | |
2675 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2677 as_fn_error $? "failed to load site script $ac_site_file | |
2678 See \`config.log' for more details" "$LINENO" 5; } | |
2679 fi | |
2680 done | |
2681 | |
2682 if test -r "$cache_file"; then | |
2683 # Some versions of bash will fail to source /dev/null (special files | |
2684 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2685 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2687 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2688 case $cache_file in | |
2689 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2690 *) . "./$cache_file";; | |
2691 esac | |
2692 fi | |
2693 else | |
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2695 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2696 >$cache_file | |
2697 fi | |
2698 | |
2699 # Check that the precious variables saved in the cache have kept the same | |
2700 # value. | |
2701 ac_cache_corrupted=false | |
2702 for ac_var in $ac_precious_vars; do | |
2703 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2704 eval ac_new_set=\$ac_env_${ac_var}_set | |
2705 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2706 eval ac_new_val=\$ac_env_${ac_var}_value | |
2707 case $ac_old_set,$ac_new_set in | |
2708 set,) | |
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2710 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2711 ac_cache_corrupted=: ;; | |
2712 ,set) | |
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2714 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2715 ac_cache_corrupted=: ;; | |
2716 ,);; | |
2717 *) | |
2718 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2719 # differences in whitespace do not lead to failure. | |
2720 ac_old_val_w=`echo x $ac_old_val` | |
2721 ac_new_val_w=`echo x $ac_new_val` | |
2722 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2724 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2725 ac_cache_corrupted=: | |
2726 else | |
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2728 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2729 eval $ac_var=\$ac_old_val | |
2730 fi | |
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2732 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2734 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2735 fi;; | |
2736 esac | |
2737 # Pass precious variables to config.status. | |
2738 if test "$ac_new_set" = set; then | |
2739 case $ac_new_val in | |
2740 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2741 *) ac_arg=$ac_var=$ac_new_val ;; | |
2742 esac | |
2743 case " $ac_configure_args " in | |
2744 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2745 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2746 esac | |
2747 fi | |
2748 done | |
2749 if $ac_cache_corrupted; then | |
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2753 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2754 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2755 fi | |
2756 ## -------------------- ## | |
2757 ## Main body of script. ## | |
2758 ## -------------------- ## | |
2759 | |
2760 ac_ext=c | |
2761 ac_cpp='$CPP $CPPFLAGS' | |
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2765 | |
2766 | |
2767 | |
2768 | |
2769 | |
2770 | |
2771 ac_aux_dir= | |
2772 for ac_dir in Tools/config "$srcdir"/Tools/config; do | |
2773 if test -f "$ac_dir/install-sh"; then | |
2774 ac_aux_dir=$ac_dir | |
2775 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2776 break | |
2777 elif test -f "$ac_dir/install.sh"; then | |
2778 ac_aux_dir=$ac_dir | |
2779 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2780 break | |
2781 elif test -f "$ac_dir/shtool"; then | |
2782 ac_aux_dir=$ac_dir | |
2783 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2784 break | |
2785 fi | |
2786 done | |
2787 if test -z "$ac_aux_dir"; then | |
2788 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Tools/config \"$srcdir\"/Tools/config" "$LINENO" 5 | |
2789 fi | |
2790 | |
2791 # These three variables are undocumented and unsupported, | |
2792 # and are intended to be withdrawn in a future Autoconf release. | |
2793 # They can cause serious problems if a builder's source tree is in a directory | |
2794 # whose full name contains unusual characters. | |
2795 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2796 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2797 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2798 | |
2799 | |
2800 ac_config_headers="$ac_config_headers Source/Include/swigconfig.h" | |
2801 | |
2802 # Make sure we can run config.sub. | |
2803 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2804 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2805 | |
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2807 $as_echo_n "checking build system type... " >&6; } | |
2808 if ${ac_cv_build+:} false; then : | |
2809 $as_echo_n "(cached) " >&6 | |
2810 else | |
2811 ac_build_alias=$build_alias | |
2812 test "x$ac_build_alias" = x && | |
2813 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2814 test "x$ac_build_alias" = x && | |
2815 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2816 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2818 | |
2819 fi | |
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2821 $as_echo "$ac_cv_build" >&6; } | |
2822 case $ac_cv_build in | |
2823 *-*-*) ;; | |
2824 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2825 esac | |
2826 build=$ac_cv_build | |
2827 ac_save_IFS=$IFS; IFS='-' | |
2828 set x $ac_cv_build | |
2829 shift | |
2830 build_cpu=$1 | |
2831 build_vendor=$2 | |
2832 shift; shift | |
2833 # Remember, the first character of IFS is used to create $*, | |
2834 # except with old shells: | |
2835 build_os=$* | |
2836 IFS=$ac_save_IFS | |
2837 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2838 | |
2839 | |
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2841 $as_echo_n "checking host system type... " >&6; } | |
2842 if ${ac_cv_host+:} false; then : | |
2843 $as_echo_n "(cached) " >&6 | |
2844 else | |
2845 if test "x$host_alias" = x; then | |
2846 ac_cv_host=$ac_cv_build | |
2847 else | |
2848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2849 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2850 fi | |
2851 | |
2852 fi | |
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2854 $as_echo "$ac_cv_host" >&6; } | |
2855 case $ac_cv_host in | |
2856 *-*-*) ;; | |
2857 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2858 esac | |
2859 host=$ac_cv_host | |
2860 ac_save_IFS=$IFS; IFS='-' | |
2861 set x $ac_cv_host | |
2862 shift | |
2863 host_cpu=$1 | |
2864 host_vendor=$2 | |
2865 shift; shift | |
2866 # Remember, the first character of IFS is used to create $*, | |
2867 # except with old shells: | |
2868 host_os=$* | |
2869 IFS=$ac_save_IFS | |
2870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2871 | |
2872 | |
2873 am__api_version='1.11' | |
2874 | |
2875 # Find a good install program. We prefer a C program (faster), | |
2876 # so one script is as good as another. But avoid the broken or | |
2877 # incompatible versions: | |
2878 # SysV /etc/install, /usr/sbin/install | |
2879 # SunOS /usr/etc/install | |
2880 # IRIX /sbin/install | |
2881 # AIX /bin/install | |
2882 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2883 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2884 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2885 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2886 # OS/2's system install, which has a completely different semantic | |
2887 # ./install, which can be erroneously created by make from ./install.sh. | |
2888 # Reject install programs that cannot install multiple files. | |
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2890 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2891 if test -z "$INSTALL"; then | |
2892 if ${ac_cv_path_install+:} false; then : | |
2893 $as_echo_n "(cached) " >&6 | |
2894 else | |
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2896 for as_dir in $PATH | |
2897 do | |
2898 IFS=$as_save_IFS | |
2899 test -z "$as_dir" && as_dir=. | |
2900 # Account for people who put trailing slashes in PATH elements. | |
2901 case $as_dir/ in #(( | |
2902 ./ | .// | /[cC]/* | \ | |
2903 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2904 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2905 /usr/ucb/* ) ;; | |
2906 *) | |
2907 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2908 # Don't use installbsd from OSF since it installs stuff as root | |
2909 # by default. | |
2910 for ac_prog in ginstall scoinst install; do | |
2911 for ac_exec_ext in '' $ac_executable_extensions; do | |
2912 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2913 if test $ac_prog = install && | |
2914 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2915 # AIX install. It has an incompatible calling convention. | |
2916 : | |
2917 elif test $ac_prog = install && | |
2918 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2919 # program-specific install script used by HP pwplus--don't use. | |
2920 : | |
2921 else | |
2922 rm -rf conftest.one conftest.two conftest.dir | |
2923 echo one > conftest.one | |
2924 echo two > conftest.two | |
2925 mkdir conftest.dir | |
2926 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2927 test -s conftest.one && test -s conftest.two && | |
2928 test -s conftest.dir/conftest.one && | |
2929 test -s conftest.dir/conftest.two | |
2930 then | |
2931 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2932 break 3 | |
2933 fi | |
2934 fi | |
2935 fi | |
2936 done | |
2937 done | |
2938 ;; | |
2939 esac | |
2940 | |
2941 done | |
2942 IFS=$as_save_IFS | |
2943 | |
2944 rm -rf conftest.one conftest.two conftest.dir | |
2945 | |
2946 fi | |
2947 if test "${ac_cv_path_install+set}" = set; then | |
2948 INSTALL=$ac_cv_path_install | |
2949 else | |
2950 # As a last resort, use the slow shell script. Don't cache a | |
2951 # value for INSTALL within a source directory, because that will | |
2952 # break other packages using the cache if that directory is | |
2953 # removed, or if the value is a relative name. | |
2954 INSTALL=$ac_install_sh | |
2955 fi | |
2956 fi | |
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2958 $as_echo "$INSTALL" >&6; } | |
2959 | |
2960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2961 # It thinks the first close brace ends the variable substitution. | |
2962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2963 | |
2964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2965 | |
2966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2967 | |
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2969 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2970 # Just in case | |
2971 sleep 1 | |
2972 echo timestamp > conftest.file | |
2973 # Reject unsafe characters in $srcdir or the absolute working directory | |
2974 # name. Accept space and tab only in the latter. | |
2975 am_lf=' | |
2976 ' | |
2977 case `pwd` in | |
2978 *[\\\"\#\$\&\'\`$am_lf]*) | |
2979 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2980 esac | |
2981 case $srcdir in | |
2982 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2983 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2984 esac | |
2985 | |
2986 # Do `set' in a subshell so we don't clobber the current shell's | |
2987 # arguments. Must try -L first in case configure is actually a | |
2988 # symlink; some systems play weird games with the mod time of symlinks | |
2989 # (eg FreeBSD returns the mod time of the symlink's containing | |
2990 # directory). | |
2991 if ( | |
2992 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2993 if test "$*" = "X"; then | |
2994 # -L didn't work. | |
2995 set X `ls -t "$srcdir/configure" conftest.file` | |
2996 fi | |
2997 rm -f conftest.file | |
2998 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2999 && test "$*" != "X conftest.file $srcdir/configure"; then | |
3000 | |
3001 # If neither matched, then we have a broken ls. This can happen | |
3002 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3003 # broken ls alias from the environment. This has actually | |
3004 # happened. Such a system could not be considered "sane". | |
3005 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
3006 alias in your environment" "$LINENO" 5 | |
3007 fi | |
3008 | |
3009 test "$2" = conftest.file | |
3010 ) | |
3011 then | |
3012 # Ok. | |
3013 : | |
3014 else | |
3015 as_fn_error $? "newly created file is older than distributed files! | |
3016 Check your system clock" "$LINENO" 5 | |
3017 fi | |
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3019 $as_echo "yes" >&6; } | |
3020 test "$program_prefix" != NONE && | |
3021 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3022 # Use a double $ so make ignores it. | |
3023 test "$program_suffix" != NONE && | |
3024 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3025 # Double any \ or $. | |
3026 # By default was `s,x,x', remove it if useless. | |
3027 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3028 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3029 | |
3030 # expand $ac_aux_dir to an absolute path | |
3031 am_aux_dir=`cd $ac_aux_dir && pwd` | |
3032 | |
3033 if test x"${MISSING+set}" != xset; then | |
3034 case $am_aux_dir in | |
3035 *\ * | *\ *) | |
3036 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3037 *) | |
3038 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3039 esac | |
3040 fi | |
3041 # Use eval to expand $SHELL | |
3042 if eval "$MISSING --run true"; then | |
3043 am_missing_run="$MISSING --run " | |
3044 else | |
3045 am_missing_run= | |
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
3047 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3048 fi | |
3049 | |
3050 if test x"${install_sh}" != xset; then | |
3051 case $am_aux_dir in | |
3052 *\ * | *\ *) | |
3053 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3054 *) | |
3055 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3056 esac | |
3057 fi | |
3058 | |
3059 # Installed binaries are usually stripped using `strip' when the user | |
3060 # run `make install-strip'. However `strip' might not be the right | |
3061 # tool to use in cross-compilation environments, therefore Automake | |
3062 # will honor the `STRIP' environment variable to overrule this program. | |
3063 if test "$cross_compiling" != no; then | |
3064 if test -n "$ac_tool_prefix"; then | |
3065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3066 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3068 $as_echo_n "checking for $ac_word... " >&6; } | |
3069 if ${ac_cv_prog_STRIP+:} false; then : | |
3070 $as_echo_n "(cached) " >&6 | |
3071 else | |
3072 if test -n "$STRIP"; then | |
3073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3074 else | |
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3076 for as_dir in $PATH | |
3077 do | |
3078 IFS=$as_save_IFS | |
3079 test -z "$as_dir" && as_dir=. | |
3080 for ac_exec_ext in '' $ac_executable_extensions; do | |
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3082 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3084 break 2 | |
3085 fi | |
3086 done | |
3087 done | |
3088 IFS=$as_save_IFS | |
3089 | |
3090 fi | |
3091 fi | |
3092 STRIP=$ac_cv_prog_STRIP | |
3093 if test -n "$STRIP"; then | |
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3095 $as_echo "$STRIP" >&6; } | |
3096 else | |
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3098 $as_echo "no" >&6; } | |
3099 fi | |
3100 | |
3101 | |
3102 fi | |
3103 if test -z "$ac_cv_prog_STRIP"; then | |
3104 ac_ct_STRIP=$STRIP | |
3105 # Extract the first word of "strip", so it can be a program name with args. | |
3106 set dummy strip; ac_word=$2 | |
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3108 $as_echo_n "checking for $ac_word... " >&6; } | |
3109 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
3110 $as_echo_n "(cached) " >&6 | |
3111 else | |
3112 if test -n "$ac_ct_STRIP"; then | |
3113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3114 else | |
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3116 for as_dir in $PATH | |
3117 do | |
3118 IFS=$as_save_IFS | |
3119 test -z "$as_dir" && as_dir=. | |
3120 for ac_exec_ext in '' $ac_executable_extensions; do | |
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3122 ac_cv_prog_ac_ct_STRIP="strip" | |
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3124 break 2 | |
3125 fi | |
3126 done | |
3127 done | |
3128 IFS=$as_save_IFS | |
3129 | |
3130 fi | |
3131 fi | |
3132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3133 if test -n "$ac_ct_STRIP"; then | |
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3135 $as_echo "$ac_ct_STRIP" >&6; } | |
3136 else | |
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3138 $as_echo "no" >&6; } | |
3139 fi | |
3140 | |
3141 if test "x$ac_ct_STRIP" = x; then | |
3142 STRIP=":" | |
3143 else | |
3144 case $cross_compiling:$ac_tool_warned in | |
3145 yes:) | |
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3148 ac_tool_warned=yes ;; | |
3149 esac | |
3150 STRIP=$ac_ct_STRIP | |
3151 fi | |
3152 else | |
3153 STRIP="$ac_cv_prog_STRIP" | |
3154 fi | |
3155 | |
3156 fi | |
3157 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3158 | |
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3160 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3161 if test -z "$MKDIR_P"; then | |
3162 if ${ac_cv_path_mkdir+:} false; then : | |
3163 $as_echo_n "(cached) " >&6 | |
3164 else | |
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3166 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3167 do | |
3168 IFS=$as_save_IFS | |
3169 test -z "$as_dir" && as_dir=. | |
3170 for ac_prog in mkdir gmkdir; do | |
3171 for ac_exec_ext in '' $ac_executable_extensions; do | |
3172 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3173 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3174 'mkdir (GNU coreutils) '* | \ | |
3175 'mkdir (coreutils) '* | \ | |
3176 'mkdir (fileutils) '4.1*) | |
3177 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3178 break 3;; | |
3179 esac | |
3180 done | |
3181 done | |
3182 done | |
3183 IFS=$as_save_IFS | |
3184 | |
3185 fi | |
3186 | |
3187 test -d ./--version && rmdir ./--version | |
3188 if test "${ac_cv_path_mkdir+set}" = set; then | |
3189 MKDIR_P="$ac_cv_path_mkdir -p" | |
3190 else | |
3191 # As a last resort, use the slow shell script. Don't cache a | |
3192 # value for MKDIR_P within a source directory, because that will | |
3193 # break other packages using the cache if that directory is | |
3194 # removed, or if the value is a relative name. | |
3195 MKDIR_P="$ac_install_sh -d" | |
3196 fi | |
3197 fi | |
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3199 $as_echo "$MKDIR_P" >&6; } | |
3200 | |
3201 mkdir_p="$MKDIR_P" | |
3202 case $mkdir_p in | |
3203 [\\/$]* | ?:[\\/]*) ;; | |
3204 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3205 esac | |
3206 | |
3207 for ac_prog in gawk mawk nawk awk | |
3208 do | |
3209 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3210 set dummy $ac_prog; ac_word=$2 | |
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3212 $as_echo_n "checking for $ac_word... " >&6; } | |
3213 if ${ac_cv_prog_AWK+:} false; then : | |
3214 $as_echo_n "(cached) " >&6 | |
3215 else | |
3216 if test -n "$AWK"; then | |
3217 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3218 else | |
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3220 for as_dir in $PATH | |
3221 do | |
3222 IFS=$as_save_IFS | |
3223 test -z "$as_dir" && as_dir=. | |
3224 for ac_exec_ext in '' $ac_executable_extensions; do | |
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3226 ac_cv_prog_AWK="$ac_prog" | |
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3228 break 2 | |
3229 fi | |
3230 done | |
3231 done | |
3232 IFS=$as_save_IFS | |
3233 | |
3234 fi | |
3235 fi | |
3236 AWK=$ac_cv_prog_AWK | |
3237 if test -n "$AWK"; then | |
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3239 $as_echo "$AWK" >&6; } | |
3240 else | |
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3242 $as_echo "no" >&6; } | |
3243 fi | |
3244 | |
3245 | |
3246 test -n "$AWK" && break | |
3247 done | |
3248 | |
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3250 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3251 set x ${MAKE-make} | |
3252 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3253 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3254 $as_echo_n "(cached) " >&6 | |
3255 else | |
3256 cat >conftest.make <<\_ACEOF | |
3257 SHELL = /bin/sh | |
3258 all: | |
3259 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3260 _ACEOF | |
3261 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3262 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3263 *@@@%%%=?*=@@@%%%*) | |
3264 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3265 *) | |
3266 eval ac_cv_prog_make_${ac_make}_set=no;; | |
3267 esac | |
3268 rm -f conftest.make | |
3269 fi | |
3270 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3272 $as_echo "yes" >&6; } | |
3273 SET_MAKE= | |
3274 else | |
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3276 $as_echo "no" >&6; } | |
3277 SET_MAKE="MAKE=${MAKE-make}" | |
3278 fi | |
3279 | |
3280 rm -rf .tst 2>/dev/null | |
3281 mkdir .tst 2>/dev/null | |
3282 if test -d .tst; then | |
3283 am__leading_dot=. | |
3284 else | |
3285 am__leading_dot=_ | |
3286 fi | |
3287 rmdir .tst 2>/dev/null | |
3288 | |
3289 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3291 # is not polluted with repeated "-I." | |
3292 am__isrc=' -I$(srcdir)' | |
3293 # test to see if srcdir already configured | |
3294 if test -f $srcdir/config.status; then | |
3295 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3296 fi | |
3297 fi | |
3298 | |
3299 # test whether we have cygpath | |
3300 if test -z "$CYGPATH_W"; then | |
3301 if (cygpath --version) >/dev/null 2>/dev/null; then | |
3302 CYGPATH_W='cygpath -w' | |
3303 else | |
3304 CYGPATH_W=echo | |
3305 fi | |
3306 fi | |
3307 | |
3308 | |
3309 # Define the identity of the package. | |
3310 PACKAGE='swig' | |
3311 VERSION='2.0.11' | |
3312 | |
3313 | |
3314 cat >>confdefs.h <<_ACEOF | |
3315 #define PACKAGE "$PACKAGE" | |
3316 _ACEOF | |
3317 | |
3318 | |
3319 cat >>confdefs.h <<_ACEOF | |
3320 #define VERSION "$VERSION" | |
3321 _ACEOF | |
3322 | |
3323 # Some tools Automake needs. | |
3324 | |
3325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3326 | |
3327 | |
3328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3329 | |
3330 | |
3331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3332 | |
3333 | |
3334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3335 | |
3336 | |
3337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3338 | |
3339 # We need awk for the "check" target. The system "awk" is bad on | |
3340 # some platforms. | |
3341 # Always define AMTAR for backward compatibility. Yes, it's still used | |
3342 # in the wild :-( We should find a proper way to deprecate it ... | |
3343 AMTAR='$${TAR-tar}' | |
3344 | |
3345 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3346 | |
3347 | |
3348 | |
3349 | |
3350 | |
3351 | |
3352 | |
3353 | |
3354 ac_ext=c | |
3355 ac_cpp='$CPP $CPPFLAGS' | |
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3359 if test -n "$ac_tool_prefix"; then | |
3360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3361 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3363 $as_echo_n "checking for $ac_word... " >&6; } | |
3364 if ${ac_cv_prog_CC+:} false; then : | |
3365 $as_echo_n "(cached) " >&6 | |
3366 else | |
3367 if test -n "$CC"; then | |
3368 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3369 else | |
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3371 for as_dir in $PATH | |
3372 do | |
3373 IFS=$as_save_IFS | |
3374 test -z "$as_dir" && as_dir=. | |
3375 for ac_exec_ext in '' $ac_executable_extensions; do | |
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3377 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3379 break 2 | |
3380 fi | |
3381 done | |
3382 done | |
3383 IFS=$as_save_IFS | |
3384 | |
3385 fi | |
3386 fi | |
3387 CC=$ac_cv_prog_CC | |
3388 if test -n "$CC"; then | |
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3390 $as_echo "$CC" >&6; } | |
3391 else | |
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3393 $as_echo "no" >&6; } | |
3394 fi | |
3395 | |
3396 | |
3397 fi | |
3398 if test -z "$ac_cv_prog_CC"; then | |
3399 ac_ct_CC=$CC | |
3400 # Extract the first word of "gcc", so it can be a program name with args. | |
3401 set dummy gcc; ac_word=$2 | |
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3403 $as_echo_n "checking for $ac_word... " >&6; } | |
3404 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3405 $as_echo_n "(cached) " >&6 | |
3406 else | |
3407 if test -n "$ac_ct_CC"; then | |
3408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3409 else | |
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3411 for as_dir in $PATH | |
3412 do | |
3413 IFS=$as_save_IFS | |
3414 test -z "$as_dir" && as_dir=. | |
3415 for ac_exec_ext in '' $ac_executable_extensions; do | |
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3417 ac_cv_prog_ac_ct_CC="gcc" | |
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3419 break 2 | |
3420 fi | |
3421 done | |
3422 done | |
3423 IFS=$as_save_IFS | |
3424 | |
3425 fi | |
3426 fi | |
3427 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3428 if test -n "$ac_ct_CC"; then | |
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3430 $as_echo "$ac_ct_CC" >&6; } | |
3431 else | |
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3433 $as_echo "no" >&6; } | |
3434 fi | |
3435 | |
3436 if test "x$ac_ct_CC" = x; then | |
3437 CC="" | |
3438 else | |
3439 case $cross_compiling:$ac_tool_warned in | |
3440 yes:) | |
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3443 ac_tool_warned=yes ;; | |
3444 esac | |
3445 CC=$ac_ct_CC | |
3446 fi | |
3447 else | |
3448 CC="$ac_cv_prog_CC" | |
3449 fi | |
3450 | |
3451 if test -z "$CC"; then | |
3452 if test -n "$ac_tool_prefix"; then | |
3453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3454 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3456 $as_echo_n "checking for $ac_word... " >&6; } | |
3457 if ${ac_cv_prog_CC+:} false; then : | |
3458 $as_echo_n "(cached) " >&6 | |
3459 else | |
3460 if test -n "$CC"; then | |
3461 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3462 else | |
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3464 for as_dir in $PATH | |
3465 do | |
3466 IFS=$as_save_IFS | |
3467 test -z "$as_dir" && as_dir=. | |
3468 for ac_exec_ext in '' $ac_executable_extensions; do | |
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3470 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3472 break 2 | |
3473 fi | |
3474 done | |
3475 done | |
3476 IFS=$as_save_IFS | |
3477 | |
3478 fi | |
3479 fi | |
3480 CC=$ac_cv_prog_CC | |
3481 if test -n "$CC"; then | |
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3483 $as_echo "$CC" >&6; } | |
3484 else | |
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3486 $as_echo "no" >&6; } | |
3487 fi | |
3488 | |
3489 | |
3490 fi | |
3491 fi | |
3492 if test -z "$CC"; then | |
3493 # Extract the first word of "cc", so it can be a program name with args. | |
3494 set dummy cc; ac_word=$2 | |
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3496 $as_echo_n "checking for $ac_word... " >&6; } | |
3497 if ${ac_cv_prog_CC+:} false; then : | |
3498 $as_echo_n "(cached) " >&6 | |
3499 else | |
3500 if test -n "$CC"; then | |
3501 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3502 else | |
3503 ac_prog_rejected=no | |
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3505 for as_dir in $PATH | |
3506 do | |
3507 IFS=$as_save_IFS | |
3508 test -z "$as_dir" && as_dir=. | |
3509 for ac_exec_ext in '' $ac_executable_extensions; do | |
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3512 ac_prog_rejected=yes | |
3513 continue | |
3514 fi | |
3515 ac_cv_prog_CC="cc" | |
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3517 break 2 | |
3518 fi | |
3519 done | |
3520 done | |
3521 IFS=$as_save_IFS | |
3522 | |
3523 if test $ac_prog_rejected = yes; then | |
3524 # We found a bogon in the path, so make sure we never use it. | |
3525 set dummy $ac_cv_prog_CC | |
3526 shift | |
3527 if test $# != 0; then | |
3528 # We chose a different compiler from the bogus one. | |
3529 # However, it has the same basename, so the bogon will be chosen | |
3530 # first if we set CC to just the basename; use the full file name. | |
3531 shift | |
3532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3533 fi | |
3534 fi | |
3535 fi | |
3536 fi | |
3537 CC=$ac_cv_prog_CC | |
3538 if test -n "$CC"; then | |
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3540 $as_echo "$CC" >&6; } | |
3541 else | |
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3543 $as_echo "no" >&6; } | |
3544 fi | |
3545 | |
3546 | |
3547 fi | |
3548 if test -z "$CC"; then | |
3549 if test -n "$ac_tool_prefix"; then | |
3550 for ac_prog in cl.exe | |
3551 do | |
3552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3555 $as_echo_n "checking for $ac_word... " >&6; } | |
3556 if ${ac_cv_prog_CC+:} false; then : | |
3557 $as_echo_n "(cached) " >&6 | |
3558 else | |
3559 if test -n "$CC"; then | |
3560 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3561 else | |
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3563 for as_dir in $PATH | |
3564 do | |
3565 IFS=$as_save_IFS | |
3566 test -z "$as_dir" && as_dir=. | |
3567 for ac_exec_ext in '' $ac_executable_extensions; do | |
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3571 break 2 | |
3572 fi | |
3573 done | |
3574 done | |
3575 IFS=$as_save_IFS | |
3576 | |
3577 fi | |
3578 fi | |
3579 CC=$ac_cv_prog_CC | |
3580 if test -n "$CC"; then | |
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3582 $as_echo "$CC" >&6; } | |
3583 else | |
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3585 $as_echo "no" >&6; } | |
3586 fi | |
3587 | |
3588 | |
3589 test -n "$CC" && break | |
3590 done | |
3591 fi | |
3592 if test -z "$CC"; then | |
3593 ac_ct_CC=$CC | |
3594 for ac_prog in cl.exe | |
3595 do | |
3596 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3597 set dummy $ac_prog; ac_word=$2 | |
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3599 $as_echo_n "checking for $ac_word... " >&6; } | |
3600 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3601 $as_echo_n "(cached) " >&6 | |
3602 else | |
3603 if test -n "$ac_ct_CC"; then | |
3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3605 else | |
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3607 for as_dir in $PATH | |
3608 do | |
3609 IFS=$as_save_IFS | |
3610 test -z "$as_dir" && as_dir=. | |
3611 for ac_exec_ext in '' $ac_executable_extensions; do | |
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3613 ac_cv_prog_ac_ct_CC="$ac_prog" | |
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3615 break 2 | |
3616 fi | |
3617 done | |
3618 done | |
3619 IFS=$as_save_IFS | |
3620 | |
3621 fi | |
3622 fi | |
3623 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3624 if test -n "$ac_ct_CC"; then | |
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3626 $as_echo "$ac_ct_CC" >&6; } | |
3627 else | |
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3629 $as_echo "no" >&6; } | |
3630 fi | |
3631 | |
3632 | |
3633 test -n "$ac_ct_CC" && break | |
3634 done | |
3635 | |
3636 if test "x$ac_ct_CC" = x; then | |
3637 CC="" | |
3638 else | |
3639 case $cross_compiling:$ac_tool_warned in | |
3640 yes:) | |
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3643 ac_tool_warned=yes ;; | |
3644 esac | |
3645 CC=$ac_ct_CC | |
3646 fi | |
3647 fi | |
3648 | |
3649 fi | |
3650 | |
3651 | |
3652 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3654 as_fn_error $? "no acceptable C compiler found in \$PATH | |
3655 See \`config.log' for more details" "$LINENO" 5; } | |
3656 | |
3657 # Provide some information about the compiler. | |
3658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3659 set X $ac_compile | |
3660 ac_compiler=$2 | |
3661 for ac_option in --version -v -V -qversion; do | |
3662 { { ac_try="$ac_compiler $ac_option >&5" | |
3663 case "(($ac_try" in | |
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3665 *) ac_try_echo=$ac_try;; | |
3666 esac | |
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3668 $as_echo "$ac_try_echo"; } >&5 | |
3669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3670 ac_status=$? | |
3671 if test -s conftest.err; then | |
3672 sed '10a\ | |
3673 ... rest of stderr output deleted ... | |
3674 10q' conftest.err >conftest.er1 | |
3675 cat conftest.er1 >&5 | |
3676 fi | |
3677 rm -f conftest.er1 conftest.err | |
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3679 test $ac_status = 0; } | |
3680 done | |
3681 | |
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3683 /* end confdefs.h. */ | |
3684 | |
3685 int | |
3686 main () | |
3687 { | |
3688 | |
3689 ; | |
3690 return 0; | |
3691 } | |
3692 _ACEOF | |
3693 ac_clean_files_save=$ac_clean_files | |
3694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3695 # Try to create an executable without -o first, disregard a.out. | |
3696 # It will help us diagnose broken compilers, and finding out an intuition | |
3697 # of exeext. | |
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3699 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3700 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3701 | |
3702 # The possible output files: | |
3703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3704 | |
3705 ac_rmfiles= | |
3706 for ac_file in $ac_files | |
3707 do | |
3708 case $ac_file in | |
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3710 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3711 esac | |
3712 done | |
3713 rm -f $ac_rmfiles | |
3714 | |
3715 if { { ac_try="$ac_link_default" | |
3716 case "(($ac_try" in | |
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3718 *) ac_try_echo=$ac_try;; | |
3719 esac | |
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3721 $as_echo "$ac_try_echo"; } >&5 | |
3722 (eval "$ac_link_default") 2>&5 | |
3723 ac_status=$? | |
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3725 test $ac_status = 0; }; then : | |
3726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3728 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3729 # so that the user can short-circuit this test for compilers unknown to | |
3730 # Autoconf. | |
3731 for ac_file in $ac_files '' | |
3732 do | |
3733 test -f "$ac_file" || continue | |
3734 case $ac_file in | |
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3736 ;; | |
3737 [ab].out ) | |
3738 # We found the default executable, but exeext='' is most | |
3739 # certainly right. | |
3740 break;; | |
3741 *.* ) | |
3742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3743 then :; else | |
3744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3745 fi | |
3746 # We set ac_cv_exeext here because the later test for it is not | |
3747 # safe: cross compilers may not add the suffix if given an `-o' | |
3748 # argument, so we may need to know it at that point already. | |
3749 # Even if this section looks crufty: it has the advantage of | |
3750 # actually working. | |
3751 break;; | |
3752 * ) | |
3753 break;; | |
3754 esac | |
3755 done | |
3756 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3757 | |
3758 else | |
3759 ac_file='' | |
3760 fi | |
3761 if test -z "$ac_file"; then : | |
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3763 $as_echo "no" >&6; } | |
3764 $as_echo "$as_me: failed program was:" >&5 | |
3765 sed 's/^/| /' conftest.$ac_ext >&5 | |
3766 | |
3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3769 as_fn_error 77 "C compiler cannot create executables | |
3770 See \`config.log' for more details" "$LINENO" 5; } | |
3771 else | |
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3773 $as_echo "yes" >&6; } | |
3774 fi | |
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3776 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3778 $as_echo "$ac_file" >&6; } | |
3779 ac_exeext=$ac_cv_exeext | |
3780 | |
3781 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3782 ac_clean_files=$ac_clean_files_save | |
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3784 $as_echo_n "checking for suffix of executables... " >&6; } | |
3785 if { { ac_try="$ac_link" | |
3786 case "(($ac_try" in | |
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3788 *) ac_try_echo=$ac_try;; | |
3789 esac | |
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3791 $as_echo "$ac_try_echo"; } >&5 | |
3792 (eval "$ac_link") 2>&5 | |
3793 ac_status=$? | |
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3795 test $ac_status = 0; }; then : | |
3796 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3797 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3798 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3799 # `rm'. | |
3800 for ac_file in conftest.exe conftest conftest.*; do | |
3801 test -f "$ac_file" || continue | |
3802 case $ac_file in | |
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3805 break;; | |
3806 * ) break;; | |
3807 esac | |
3808 done | |
3809 else | |
3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3812 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3813 See \`config.log' for more details" "$LINENO" 5; } | |
3814 fi | |
3815 rm -f conftest conftest$ac_cv_exeext | |
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3817 $as_echo "$ac_cv_exeext" >&6; } | |
3818 | |
3819 rm -f conftest.$ac_ext | |
3820 EXEEXT=$ac_cv_exeext | |
3821 ac_exeext=$EXEEXT | |
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3823 /* end confdefs.h. */ | |
3824 #include <stdio.h> | |
3825 int | |
3826 main () | |
3827 { | |
3828 FILE *f = fopen ("conftest.out", "w"); | |
3829 return ferror (f) || fclose (f) != 0; | |
3830 | |
3831 ; | |
3832 return 0; | |
3833 } | |
3834 _ACEOF | |
3835 ac_clean_files="$ac_clean_files conftest.out" | |
3836 # Check that the compiler produces executables we can run. If not, either | |
3837 # the compiler is broken, or we cross compile. | |
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3839 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3840 if test "$cross_compiling" != yes; then | |
3841 { { ac_try="$ac_link" | |
3842 case "(($ac_try" in | |
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3844 *) ac_try_echo=$ac_try;; | |
3845 esac | |
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3847 $as_echo "$ac_try_echo"; } >&5 | |
3848 (eval "$ac_link") 2>&5 | |
3849 ac_status=$? | |
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3851 test $ac_status = 0; } | |
3852 if { ac_try='./conftest$ac_cv_exeext' | |
3853 { { case "(($ac_try" in | |
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3855 *) ac_try_echo=$ac_try;; | |
3856 esac | |
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3858 $as_echo "$ac_try_echo"; } >&5 | |
3859 (eval "$ac_try") 2>&5 | |
3860 ac_status=$? | |
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3862 test $ac_status = 0; }; }; then | |
3863 cross_compiling=no | |
3864 else | |
3865 if test "$cross_compiling" = maybe; then | |
3866 cross_compiling=yes | |
3867 else | |
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3870 as_fn_error $? "cannot run C compiled programs. | |
3871 If you meant to cross compile, use \`--host'. | |
3872 See \`config.log' for more details" "$LINENO" 5; } | |
3873 fi | |
3874 fi | |
3875 fi | |
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3877 $as_echo "$cross_compiling" >&6; } | |
3878 | |
3879 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3880 ac_clean_files=$ac_clean_files_save | |
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3882 $as_echo_n "checking for suffix of object files... " >&6; } | |
3883 if ${ac_cv_objext+:} false; then : | |
3884 $as_echo_n "(cached) " >&6 | |
3885 else | |
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3887 /* end confdefs.h. */ | |
3888 | |
3889 int | |
3890 main () | |
3891 { | |
3892 | |
3893 ; | |
3894 return 0; | |
3895 } | |
3896 _ACEOF | |
3897 rm -f conftest.o conftest.obj | |
3898 if { { ac_try="$ac_compile" | |
3899 case "(($ac_try" in | |
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3901 *) ac_try_echo=$ac_try;; | |
3902 esac | |
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3904 $as_echo "$ac_try_echo"; } >&5 | |
3905 (eval "$ac_compile") 2>&5 | |
3906 ac_status=$? | |
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3908 test $ac_status = 0; }; then : | |
3909 for ac_file in conftest.o conftest.obj conftest.*; do | |
3910 test -f "$ac_file" || continue; | |
3911 case $ac_file in | |
3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3914 break;; | |
3915 esac | |
3916 done | |
3917 else | |
3918 $as_echo "$as_me: failed program was:" >&5 | |
3919 sed 's/^/| /' conftest.$ac_ext >&5 | |
3920 | |
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3923 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3924 See \`config.log' for more details" "$LINENO" 5; } | |
3925 fi | |
3926 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3927 fi | |
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3929 $as_echo "$ac_cv_objext" >&6; } | |
3930 OBJEXT=$ac_cv_objext | |
3931 ac_objext=$OBJEXT | |
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3933 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3934 if ${ac_cv_c_compiler_gnu+:} false; then : | |
3935 $as_echo_n "(cached) " >&6 | |
3936 else | |
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3938 /* end confdefs.h. */ | |
3939 | |
3940 int | |
3941 main () | |
3942 { | |
3943 #ifndef __GNUC__ | |
3944 choke me | |
3945 #endif | |
3946 | |
3947 ; | |
3948 return 0; | |
3949 } | |
3950 _ACEOF | |
3951 if ac_fn_c_try_compile "$LINENO"; then : | |
3952 ac_compiler_gnu=yes | |
3953 else | |
3954 ac_compiler_gnu=no | |
3955 fi | |
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3957 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3958 | |
3959 fi | |
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3961 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3962 if test $ac_compiler_gnu = yes; then | |
3963 GCC=yes | |
3964 else | |
3965 GCC= | |
3966 fi | |
3967 ac_test_CFLAGS=${CFLAGS+set} | |
3968 ac_save_CFLAGS=$CFLAGS | |
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3970 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3971 if ${ac_cv_prog_cc_g+:} false; then : | |
3972 $as_echo_n "(cached) " >&6 | |
3973 else | |
3974 ac_save_c_werror_flag=$ac_c_werror_flag | |
3975 ac_c_werror_flag=yes | |
3976 ac_cv_prog_cc_g=no | |
3977 CFLAGS="-g" | |
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3979 /* end confdefs.h. */ | |
3980 | |
3981 int | |
3982 main () | |
3983 { | |
3984 | |
3985 ; | |
3986 return 0; | |
3987 } | |
3988 _ACEOF | |
3989 if ac_fn_c_try_compile "$LINENO"; then : | |
3990 ac_cv_prog_cc_g=yes | |
3991 else | |
3992 CFLAGS="" | |
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3994 /* end confdefs.h. */ | |
3995 | |
3996 int | |
3997 main () | |
3998 { | |
3999 | |
4000 ; | |
4001 return 0; | |
4002 } | |
4003 _ACEOF | |
4004 if ac_fn_c_try_compile "$LINENO"; then : | |
4005 | |
4006 else | |
4007 ac_c_werror_flag=$ac_save_c_werror_flag | |
4008 CFLAGS="-g" | |
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4010 /* end confdefs.h. */ | |
4011 | |
4012 int | |
4013 main () | |
4014 { | |
4015 | |
4016 ; | |
4017 return 0; | |
4018 } | |
4019 _ACEOF | |
4020 if ac_fn_c_try_compile "$LINENO"; then : | |
4021 ac_cv_prog_cc_g=yes | |
4022 fi | |
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4024 fi | |
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4026 fi | |
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4028 ac_c_werror_flag=$ac_save_c_werror_flag | |
4029 fi | |
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4031 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4032 if test "$ac_test_CFLAGS" = set; then | |
4033 CFLAGS=$ac_save_CFLAGS | |
4034 elif test $ac_cv_prog_cc_g = yes; then | |
4035 if test "$GCC" = yes; then | |
4036 CFLAGS="-g -O2" | |
4037 else | |
4038 CFLAGS="-g" | |
4039 fi | |
4040 else | |
4041 if test "$GCC" = yes; then | |
4042 CFLAGS="-O2" | |
4043 else | |
4044 CFLAGS= | |
4045 fi | |
4046 fi | |
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4048 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4049 if ${ac_cv_prog_cc_c89+:} false; then : | |
4050 $as_echo_n "(cached) " >&6 | |
4051 else | |
4052 ac_cv_prog_cc_c89=no | |
4053 ac_save_CC=$CC | |
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4055 /* end confdefs.h. */ | |
4056 #include <stdarg.h> | |
4057 #include <stdio.h> | |
4058 #include <sys/types.h> | |
4059 #include <sys/stat.h> | |
4060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4061 struct buf { int x; }; | |
4062 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4063 static char *e (p, i) | |
4064 char **p; | |
4065 int i; | |
4066 { | |
4067 return p[i]; | |
4068 } | |
4069 static char *f (char * (*g) (char **, int), char **p, ...) | |
4070 { | |
4071 char *s; | |
4072 va_list v; | |
4073 va_start (v,p); | |
4074 s = g (p, va_arg (v,int)); | |
4075 va_end (v); | |
4076 return s; | |
4077 } | |
4078 | |
4079 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4080 function prototypes and stuff, but not '\xHH' hex character constants. | |
4081 These don't provoke an error unfortunately, instead are silently treated | |
4082 as 'x'. The following induces an error, until -std is added to get | |
4083 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4084 array size at least. It's necessary to write '\x00'==0 to get something | |
4085 that's true only with -std. */ | |
4086 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4087 | |
4088 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4089 inside strings and character constants. */ | |
4090 #define FOO(x) 'x' | |
4091 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4092 | |
4093 int test (int i, double x); | |
4094 struct s1 {int (*f) (int a);}; | |
4095 struct s2 {int (*f) (double a);}; | |
4096 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4097 int argc; | |
4098 char **argv; | |
4099 int | |
4100 main () | |
4101 { | |
4102 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4103 ; | |
4104 return 0; | |
4105 } | |
4106 _ACEOF | |
4107 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4108 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4109 do | |
4110 CC="$ac_save_CC $ac_arg" | |
4111 if ac_fn_c_try_compile "$LINENO"; then : | |
4112 ac_cv_prog_cc_c89=$ac_arg | |
4113 fi | |
4114 rm -f core conftest.err conftest.$ac_objext | |
4115 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4116 done | |
4117 rm -f conftest.$ac_ext | |
4118 CC=$ac_save_CC | |
4119 | |
4120 fi | |
4121 # AC_CACHE_VAL | |
4122 case "x$ac_cv_prog_cc_c89" in | |
4123 x) | |
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4125 $as_echo "none needed" >&6; } ;; | |
4126 xno) | |
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4128 $as_echo "unsupported" >&6; } ;; | |
4129 *) | |
4130 CC="$CC $ac_cv_prog_cc_c89" | |
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4132 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4133 esac | |
4134 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4135 | |
4136 fi | |
4137 | |
4138 ac_ext=c | |
4139 ac_cpp='$CPP $CPPFLAGS' | |
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4143 DEPDIR="${am__leading_dot}deps" | |
4144 | |
4145 ac_config_commands="$ac_config_commands depfiles" | |
4146 | |
4147 | |
4148 am_make=${MAKE-make} | |
4149 cat > confinc << 'END' | |
4150 am__doit: | |
4151 @echo this is the am__doit target | |
4152 .PHONY: am__doit | |
4153 END | |
4154 # If we don't find an include directive, just comment out the code. | |
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4156 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4157 am__include="#" | |
4158 am__quote= | |
4159 _am_result=none | |
4160 # First try GNU make style include. | |
4161 echo "include confinc" > confmf | |
4162 # Ignore all kinds of additional output from `make'. | |
4163 case `$am_make -s -f confmf 2> /dev/null` in #( | |
4164 *the\ am__doit\ target*) | |
4165 am__include=include | |
4166 am__quote= | |
4167 _am_result=GNU | |
4168 ;; | |
4169 esac | |
4170 # Now try BSD make style include. | |
4171 if test "$am__include" = "#"; then | |
4172 echo '.include "confinc"' > confmf | |
4173 case `$am_make -s -f confmf 2> /dev/null` in #( | |
4174 *the\ am__doit\ target*) | |
4175 am__include=.include | |
4176 am__quote="\"" | |
4177 _am_result=BSD | |
4178 ;; | |
4179 esac | |
4180 fi | |
4181 | |
4182 | |
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4184 $as_echo "$_am_result" >&6; } | |
4185 rm -f confinc confmf | |
4186 | |
4187 # Check whether --enable-dependency-tracking was given. | |
4188 if test "${enable_dependency_tracking+set}" = set; then : | |
4189 enableval=$enable_dependency_tracking; | |
4190 fi | |
4191 | |
4192 if test "x$enable_dependency_tracking" != xno; then | |
4193 am_depcomp="$ac_aux_dir/depcomp" | |
4194 AMDEPBACKSLASH='\' | |
4195 am__nodep='_no' | |
4196 fi | |
4197 if test "x$enable_dependency_tracking" != xno; then | |
4198 AMDEP_TRUE= | |
4199 AMDEP_FALSE='#' | |
4200 else | |
4201 AMDEP_TRUE='#' | |
4202 AMDEP_FALSE= | |
4203 fi | |
4204 | |
4205 | |
4206 | |
4207 depcc="$CC" am_compiler_list= | |
4208 | |
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4210 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4211 if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4212 $as_echo_n "(cached) " >&6 | |
4213 else | |
4214 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4215 # We make a subdir and do the tests there. Otherwise we can end up | |
4216 # making bogus files that we don't know about and never remove. For | |
4217 # instance it was reported that on HP-UX the gcc test will end up | |
4218 # making a dummy file named `D' -- because `-MD' means `put the output | |
4219 # in D'. | |
4220 rm -rf conftest.dir | |
4221 mkdir conftest.dir | |
4222 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4223 # using a relative directory. | |
4224 cp "$am_depcomp" conftest.dir | |
4225 cd conftest.dir | |
4226 # We will build objects and dependencies in a subdirectory because | |
4227 # it helps to detect inapplicable dependency modes. For instance | |
4228 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4229 # side effect of compilation, but ICC will put the dependencies in | |
4230 # the current directory while Tru64 will put them in the object | |
4231 # directory. | |
4232 mkdir sub | |
4233 | |
4234 am_cv_CC_dependencies_compiler_type=none | |
4235 if test "$am_compiler_list" = ""; then | |
4236 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4237 fi | |
4238 am__universal=false | |
4239 case " $depcc " in #( | |
4240 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4241 esac | |
4242 | |
4243 for depmode in $am_compiler_list; do | |
4244 # Setup a source with many dependencies, because some compilers | |
4245 # like to wrap large dependency lists on column 80 (with \), and | |
4246 # we should not choose a depcomp mode which is confused by this. | |
4247 # | |
4248 # We need to recreate these files for each test, as the compiler may | |
4249 # overwrite some of them when testing with obscure command lines. | |
4250 # This happens at least with the AIX C compiler. | |
4251 : > sub/conftest.c | |
4252 for i in 1 2 3 4 5 6; do | |
4253 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4254 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4255 # Solaris 8's {/usr,}/bin/sh. | |
4256 touch sub/conftst$i.h | |
4257 done | |
4258 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4259 | |
4260 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4261 # mode. It turns out that the SunPro C++ compiler does not properly | |
4262 # handle `-M -o', and we need to detect this. Also, some Intel | |
4263 # versions had trouble with output in subdirs | |
4264 am__obj=sub/conftest.${OBJEXT-o} | |
4265 am__minus_obj="-o $am__obj" | |
4266 case $depmode in | |
4267 gcc) | |
4268 # This depmode causes a compiler race in universal mode. | |
4269 test "$am__universal" = false || continue | |
4270 ;; | |
4271 nosideeffect) | |
4272 # after this tag, mechanisms are not by side-effect, so they'll | |
4273 # only be used when explicitly requested | |
4274 if test "x$enable_dependency_tracking" = xyes; then | |
4275 continue | |
4276 else | |
4277 break | |
4278 fi | |
4279 ;; | |
4280 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4281 # This compiler won't grok `-c -o', but also, the minuso test has | |
4282 # not run yet. These depmodes are late enough in the game, and | |
4283 # so weak that their functioning should not be impacted. | |
4284 am__obj=conftest.${OBJEXT-o} | |
4285 am__minus_obj= | |
4286 ;; | |
4287 none) break ;; | |
4288 esac | |
4289 if depmode=$depmode \ | |
4290 source=sub/conftest.c object=$am__obj \ | |
4291 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4292 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4293 >/dev/null 2>conftest.err && | |
4294 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4296 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4298 # icc doesn't choke on unknown options, it will just issue warnings | |
4299 # or remarks (even with -Werror). So we grep stderr for any message | |
4300 # that says an option was ignored or not supported. | |
4301 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4302 # icc: Command line warning: ignoring option '-M'; no argument required | |
4303 # The diagnosis changed in icc 8.0: | |
4304 # icc: Command line remark: option '-MP' not supported | |
4305 if (grep 'ignoring option' conftest.err || | |
4306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4307 am_cv_CC_dependencies_compiler_type=$depmode | |
4308 break | |
4309 fi | |
4310 fi | |
4311 done | |
4312 | |
4313 cd .. | |
4314 rm -rf conftest.dir | |
4315 else | |
4316 am_cv_CC_dependencies_compiler_type=none | |
4317 fi | |
4318 | |
4319 fi | |
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4321 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4322 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4323 | |
4324 if | |
4325 test "x$enable_dependency_tracking" != xno \ | |
4326 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4327 am__fastdepCC_TRUE= | |
4328 am__fastdepCC_FALSE='#' | |
4329 else | |
4330 am__fastdepCC_TRUE='#' | |
4331 am__fastdepCC_FALSE= | |
4332 fi | |
4333 | |
4334 | |
4335 ac_ext=cpp | |
4336 ac_cpp='$CXXCPP $CPPFLAGS' | |
4337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4340 if test -z "$CXX"; then | |
4341 if test -n "$CCC"; then | |
4342 CXX=$CCC | |
4343 else | |
4344 if test -n "$ac_tool_prefix"; then | |
4345 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4346 do | |
4347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4350 $as_echo_n "checking for $ac_word... " >&6; } | |
4351 if ${ac_cv_prog_CXX+:} false; then : | |
4352 $as_echo_n "(cached) " >&6 | |
4353 else | |
4354 if test -n "$CXX"; then | |
4355 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4356 else | |
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4358 for as_dir in $PATH | |
4359 do | |
4360 IFS=$as_save_IFS | |
4361 test -z "$as_dir" && as_dir=. | |
4362 for ac_exec_ext in '' $ac_executable_extensions; do | |
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4364 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4366 break 2 | |
4367 fi | |
4368 done | |
4369 done | |
4370 IFS=$as_save_IFS | |
4371 | |
4372 fi | |
4373 fi | |
4374 CXX=$ac_cv_prog_CXX | |
4375 if test -n "$CXX"; then | |
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4377 $as_echo "$CXX" >&6; } | |
4378 else | |
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4380 $as_echo "no" >&6; } | |
4381 fi | |
4382 | |
4383 | |
4384 test -n "$CXX" && break | |
4385 done | |
4386 fi | |
4387 if test -z "$CXX"; then | |
4388 ac_ct_CXX=$CXX | |
4389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
4390 do | |
4391 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4392 set dummy $ac_prog; ac_word=$2 | |
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4394 $as_echo_n "checking for $ac_word... " >&6; } | |
4395 if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
4396 $as_echo_n "(cached) " >&6 | |
4397 else | |
4398 if test -n "$ac_ct_CXX"; then | |
4399 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4400 else | |
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4402 for as_dir in $PATH | |
4403 do | |
4404 IFS=$as_save_IFS | |
4405 test -z "$as_dir" && as_dir=. | |
4406 for ac_exec_ext in '' $ac_executable_extensions; do | |
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4408 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4410 break 2 | |
4411 fi | |
4412 done | |
4413 done | |
4414 IFS=$as_save_IFS | |
4415 | |
4416 fi | |
4417 fi | |
4418 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4419 if test -n "$ac_ct_CXX"; then | |
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4421 $as_echo "$ac_ct_CXX" >&6; } | |
4422 else | |
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4424 $as_echo "no" >&6; } | |
4425 fi | |
4426 | |
4427 | |
4428 test -n "$ac_ct_CXX" && break | |
4429 done | |
4430 | |
4431 if test "x$ac_ct_CXX" = x; then | |
4432 CXX="g++" | |
4433 else | |
4434 case $cross_compiling:$ac_tool_warned in | |
4435 yes:) | |
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4438 ac_tool_warned=yes ;; | |
4439 esac | |
4440 CXX=$ac_ct_CXX | |
4441 fi | |
4442 fi | |
4443 | |
4444 fi | |
4445 fi | |
4446 # Provide some information about the compiler. | |
4447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4448 set X $ac_compile | |
4449 ac_compiler=$2 | |
4450 for ac_option in --version -v -V -qversion; do | |
4451 { { ac_try="$ac_compiler $ac_option >&5" | |
4452 case "(($ac_try" in | |
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4454 *) ac_try_echo=$ac_try;; | |
4455 esac | |
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4457 $as_echo "$ac_try_echo"; } >&5 | |
4458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4459 ac_status=$? | |
4460 if test -s conftest.err; then | |
4461 sed '10a\ | |
4462 ... rest of stderr output deleted ... | |
4463 10q' conftest.err >conftest.er1 | |
4464 cat conftest.er1 >&5 | |
4465 fi | |
4466 rm -f conftest.er1 conftest.err | |
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4468 test $ac_status = 0; } | |
4469 done | |
4470 | |
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
4472 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4473 if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
4474 $as_echo_n "(cached) " >&6 | |
4475 else | |
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4477 /* end confdefs.h. */ | |
4478 | |
4479 int | |
4480 main () | |
4481 { | |
4482 #ifndef __GNUC__ | |
4483 choke me | |
4484 #endif | |
4485 | |
4486 ; | |
4487 return 0; | |
4488 } | |
4489 _ACEOF | |
4490 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4491 ac_compiler_gnu=yes | |
4492 else | |
4493 ac_compiler_gnu=no | |
4494 fi | |
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4497 | |
4498 fi | |
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4500 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4501 if test $ac_compiler_gnu = yes; then | |
4502 GXX=yes | |
4503 else | |
4504 GXX= | |
4505 fi | |
4506 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4507 ac_save_CXXFLAGS=$CXXFLAGS | |
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4509 $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4510 if ${ac_cv_prog_cxx_g+:} false; then : | |
4511 $as_echo_n "(cached) " >&6 | |
4512 else | |
4513 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4514 ac_cxx_werror_flag=yes | |
4515 ac_cv_prog_cxx_g=no | |
4516 CXXFLAGS="-g" | |
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4518 /* end confdefs.h. */ | |
4519 | |
4520 int | |
4521 main () | |
4522 { | |
4523 | |
4524 ; | |
4525 return 0; | |
4526 } | |
4527 _ACEOF | |
4528 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4529 ac_cv_prog_cxx_g=yes | |
4530 else | |
4531 CXXFLAGS="" | |
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4533 /* end confdefs.h. */ | |
4534 | |
4535 int | |
4536 main () | |
4537 { | |
4538 | |
4539 ; | |
4540 return 0; | |
4541 } | |
4542 _ACEOF | |
4543 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4544 | |
4545 else | |
4546 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4547 CXXFLAGS="-g" | |
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4549 /* end confdefs.h. */ | |
4550 | |
4551 int | |
4552 main () | |
4553 { | |
4554 | |
4555 ; | |
4556 return 0; | |
4557 } | |
4558 _ACEOF | |
4559 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4560 ac_cv_prog_cxx_g=yes | |
4561 fi | |
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4563 fi | |
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4565 fi | |
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4567 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4568 fi | |
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4570 $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4571 if test "$ac_test_CXXFLAGS" = set; then | |
4572 CXXFLAGS=$ac_save_CXXFLAGS | |
4573 elif test $ac_cv_prog_cxx_g = yes; then | |
4574 if test "$GXX" = yes; then | |
4575 CXXFLAGS="-g -O2" | |
4576 else | |
4577 CXXFLAGS="-g" | |
4578 fi | |
4579 else | |
4580 if test "$GXX" = yes; then | |
4581 CXXFLAGS="-O2" | |
4582 else | |
4583 CXXFLAGS= | |
4584 fi | |
4585 fi | |
4586 ac_ext=c | |
4587 ac_cpp='$CPP $CPPFLAGS' | |
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4591 | |
4592 depcc="$CXX" am_compiler_list= | |
4593 | |
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4595 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4596 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
4597 $as_echo_n "(cached) " >&6 | |
4598 else | |
4599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4600 # We make a subdir and do the tests there. Otherwise we can end up | |
4601 # making bogus files that we don't know about and never remove. For | |
4602 # instance it was reported that on HP-UX the gcc test will end up | |
4603 # making a dummy file named `D' -- because `-MD' means `put the output | |
4604 # in D'. | |
4605 rm -rf conftest.dir | |
4606 mkdir conftest.dir | |
4607 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4608 # using a relative directory. | |
4609 cp "$am_depcomp" conftest.dir | |
4610 cd conftest.dir | |
4611 # We will build objects and dependencies in a subdirectory because | |
4612 # it helps to detect inapplicable dependency modes. For instance | |
4613 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4614 # side effect of compilation, but ICC will put the dependencies in | |
4615 # the current directory while Tru64 will put them in the object | |
4616 # directory. | |
4617 mkdir sub | |
4618 | |
4619 am_cv_CXX_dependencies_compiler_type=none | |
4620 if test "$am_compiler_list" = ""; then | |
4621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4622 fi | |
4623 am__universal=false | |
4624 case " $depcc " in #( | |
4625 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4626 esac | |
4627 | |
4628 for depmode in $am_compiler_list; do | |
4629 # Setup a source with many dependencies, because some compilers | |
4630 # like to wrap large dependency lists on column 80 (with \), and | |
4631 # we should not choose a depcomp mode which is confused by this. | |
4632 # | |
4633 # We need to recreate these files for each test, as the compiler may | |
4634 # overwrite some of them when testing with obscure command lines. | |
4635 # This happens at least with the AIX C compiler. | |
4636 : > sub/conftest.c | |
4637 for i in 1 2 3 4 5 6; do | |
4638 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4639 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4640 # Solaris 8's {/usr,}/bin/sh. | |
4641 touch sub/conftst$i.h | |
4642 done | |
4643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4644 | |
4645 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4646 # mode. It turns out that the SunPro C++ compiler does not properly | |
4647 # handle `-M -o', and we need to detect this. Also, some Intel | |
4648 # versions had trouble with output in subdirs | |
4649 am__obj=sub/conftest.${OBJEXT-o} | |
4650 am__minus_obj="-o $am__obj" | |
4651 case $depmode in | |
4652 gcc) | |
4653 # This depmode causes a compiler race in universal mode. | |
4654 test "$am__universal" = false || continue | |
4655 ;; | |
4656 nosideeffect) | |
4657 # after this tag, mechanisms are not by side-effect, so they'll | |
4658 # only be used when explicitly requested | |
4659 if test "x$enable_dependency_tracking" = xyes; then | |
4660 continue | |
4661 else | |
4662 break | |
4663 fi | |
4664 ;; | |
4665 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4666 # This compiler won't grok `-c -o', but also, the minuso test has | |
4667 # not run yet. These depmodes are late enough in the game, and | |
4668 # so weak that their functioning should not be impacted. | |
4669 am__obj=conftest.${OBJEXT-o} | |
4670 am__minus_obj= | |
4671 ;; | |
4672 none) break ;; | |
4673 esac | |
4674 if depmode=$depmode \ | |
4675 source=sub/conftest.c object=$am__obj \ | |
4676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4677 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4678 >/dev/null 2>conftest.err && | |
4679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4681 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4683 # icc doesn't choke on unknown options, it will just issue warnings | |
4684 # or remarks (even with -Werror). So we grep stderr for any message | |
4685 # that says an option was ignored or not supported. | |
4686 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4687 # icc: Command line warning: ignoring option '-M'; no argument required | |
4688 # The diagnosis changed in icc 8.0: | |
4689 # icc: Command line remark: option '-MP' not supported | |
4690 if (grep 'ignoring option' conftest.err || | |
4691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4692 am_cv_CXX_dependencies_compiler_type=$depmode | |
4693 break | |
4694 fi | |
4695 fi | |
4696 done | |
4697 | |
4698 cd .. | |
4699 rm -rf conftest.dir | |
4700 else | |
4701 am_cv_CXX_dependencies_compiler_type=none | |
4702 fi | |
4703 | |
4704 fi | |
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4706 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4707 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4708 | |
4709 if | |
4710 test "x$enable_dependency_tracking" != xno \ | |
4711 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4712 am__fastdepCXX_TRUE= | |
4713 am__fastdepCXX_FALSE='#' | |
4714 else | |
4715 am__fastdepCXX_TRUE='#' | |
4716 am__fastdepCXX_FALSE= | |
4717 fi | |
4718 | |
4719 | |
4720 | |
4721 | |
4722 if test "x$CC" != xcc; then | |
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
4724 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
4725 else | |
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
4727 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
4728 fi | |
4729 set dummy $CC; ac_cc=`$as_echo "$2" | | |
4730 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
4731 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : | |
4732 $as_echo_n "(cached) " >&6 | |
4733 else | |
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4735 /* end confdefs.h. */ | |
4736 | |
4737 int | |
4738 main () | |
4739 { | |
4740 | |
4741 ; | |
4742 return 0; | |
4743 } | |
4744 _ACEOF | |
4745 # Make sure it works both with $CC and with simple cc. | |
4746 # We do the test twice because some compilers refuse to overwrite an | |
4747 # existing .o file with -o, though they will create one. | |
4748 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4749 rm -f conftest2.* | |
4750 if { { case "(($ac_try" in | |
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4752 *) ac_try_echo=$ac_try;; | |
4753 esac | |
4754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4755 $as_echo "$ac_try_echo"; } >&5 | |
4756 (eval "$ac_try") 2>&5 | |
4757 ac_status=$? | |
4758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4759 test $ac_status = 0; } && | |
4760 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4762 *) ac_try_echo=$ac_try;; | |
4763 esac | |
4764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4765 $as_echo "$ac_try_echo"; } >&5 | |
4766 (eval "$ac_try") 2>&5 | |
4767 ac_status=$? | |
4768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4769 test $ac_status = 0; }; | |
4770 then | |
4771 eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
4772 if test "x$CC" != xcc; then | |
4773 # Test first that cc exists at all. | |
4774 if { ac_try='cc -c conftest.$ac_ext >&5' | |
4775 { { case "(($ac_try" in | |
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4777 *) ac_try_echo=$ac_try;; | |
4778 esac | |
4779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4780 $as_echo "$ac_try_echo"; } >&5 | |
4781 (eval "$ac_try") 2>&5 | |
4782 ac_status=$? | |
4783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4784 test $ac_status = 0; }; }; then | |
4785 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4786 rm -f conftest2.* | |
4787 if { { case "(($ac_try" in | |
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4789 *) ac_try_echo=$ac_try;; | |
4790 esac | |
4791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4792 $as_echo "$ac_try_echo"; } >&5 | |
4793 (eval "$ac_try") 2>&5 | |
4794 ac_status=$? | |
4795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4796 test $ac_status = 0; } && | |
4797 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4799 *) ac_try_echo=$ac_try;; | |
4800 esac | |
4801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4802 $as_echo "$ac_try_echo"; } >&5 | |
4803 (eval "$ac_try") 2>&5 | |
4804 ac_status=$? | |
4805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4806 test $ac_status = 0; }; | |
4807 then | |
4808 # cc works too. | |
4809 : | |
4810 else | |
4811 # cc exists but doesn't like -o. | |
4812 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4813 fi | |
4814 fi | |
4815 fi | |
4816 else | |
4817 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4818 fi | |
4819 rm -f core conftest* | |
4820 | |
4821 fi | |
4822 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4824 $as_echo "yes" >&6; } | |
4825 else | |
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4827 $as_echo "no" >&6; } | |
4828 | |
4829 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
4830 | |
4831 fi | |
4832 | |
4833 # FIXME: we rely on the cache variable name because | |
4834 # there is no other way. | |
4835 set dummy $CC | |
4836 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
4837 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
4838 if test "$am_t" != yes; then | |
4839 # Losing compiler, so override with the script. | |
4840 # FIXME: It is wrong to rewrite CC. | |
4841 # But if we don't then we get into trouble of one sort or another. | |
4842 # A longer-term fix would be to have automake use am__CC in this case, | |
4843 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4844 CC="$am_aux_dir/compile $CC" | |
4845 fi | |
4846 | |
4847 # Needed for subdir-objects in AUTOMAKE_OPTIONS | |
4848 | |
4849 | |
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5 | |
4851 $as_echo_n "checking maximum warning verbosity option... " >&6; } | |
4852 | |
4853 | |
4854 | |
4855 | |
4856 # Check whether --with-maximum-compile-warnings was given. | |
4857 if test "${with_maximum_compile_warnings+set}" = set; then : | |
4858 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval" | |
4859 else | |
4860 ac_compile_warnings_on="" | |
4861 fi | |
4862 | |
4863 | |
4864 if test x"$ac_compile_warnings_on" = xno | |
4865 then | |
4866 ac_compile_warnings_msg=no | |
4867 else | |
4868 if test -n "$CXX" | |
4869 then | |
4870 if test "$GXX" = "yes" | |
4871 then | |
4872 ac_compile_warnings_opt='-Wall -W -ansi -pedantic' | |
4873 fi | |
4874 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt" | |
4875 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++" | |
4876 fi | |
4877 | |
4878 if test -n "$CC" | |
4879 then | |
4880 if test "$GCC" = "yes" | |
4881 then | |
4882 ac_compile_warnings_opt='-Wall -W -ansi -pedantic' | |
4883 fi | |
4884 CFLAGS="$CFLAGS $ac_compile_warnings_opt" | |
4885 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C" | |
4886 fi | |
4887 fi | |
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5 | |
4889 $as_echo "$ac_compile_warnings_msg" >&6; } | |
4890 unset ac_compile_warnings_msg | |
4891 unset ac_compile_warnings_opt | |
4892 # Increase warning levels | |
4893 | |
4894 | |
4895 cat >>confdefs.h <<_ACEOF | |
4896 #define SWIG_CXX "$CXX" | |
4897 _ACEOF | |
4898 | |
4899 | |
4900 cat >>confdefs.h <<_ACEOF | |
4901 #define SWIG_PLATFORM "$host" | |
4902 _ACEOF | |
4903 | |
4904 | |
4905 | |
4906 ac_ext=c | |
4907 ac_cpp='$CPP $CPPFLAGS' | |
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4912 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4913 # On Suns, sometimes $CPP names a directory. | |
4914 if test -n "$CPP" && test -d "$CPP"; then | |
4915 CPP= | |
4916 fi | |
4917 if test -z "$CPP"; then | |
4918 if ${ac_cv_prog_CPP+:} false; then : | |
4919 $as_echo_n "(cached) " >&6 | |
4920 else | |
4921 # Double quotes because CPP needs to be expanded | |
4922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4923 do | |
4924 ac_preproc_ok=false | |
4925 for ac_c_preproc_warn_flag in '' yes | |
4926 do | |
4927 # Use a header file that comes with gcc, so configuring glibc | |
4928 # with a fresh cross-compiler works. | |
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4930 # <limits.h> exists even on freestanding compilers. | |
4931 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4932 # not just through cpp. "Syntax error" is here to catch this case. | |
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4934 /* end confdefs.h. */ | |
4935 #ifdef __STDC__ | |
4936 # include <limits.h> | |
4937 #else | |
4938 # include <assert.h> | |
4939 #endif | |
4940 Syntax error | |
4941 _ACEOF | |
4942 if ac_fn_c_try_cpp "$LINENO"; then : | |
4943 | |
4944 else | |
4945 # Broken: fails on valid input. | |
4946 continue | |
4947 fi | |
4948 rm -f conftest.err conftest.i conftest.$ac_ext | |
4949 | |
4950 # OK, works on sane cases. Now check whether nonexistent headers | |
4951 # can be detected and how. | |
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4953 /* end confdefs.h. */ | |
4954 #include <ac_nonexistent.h> | |
4955 _ACEOF | |
4956 if ac_fn_c_try_cpp "$LINENO"; then : | |
4957 # Broken: success on invalid input. | |
4958 continue | |
4959 else | |
4960 # Passes both tests. | |
4961 ac_preproc_ok=: | |
4962 break | |
4963 fi | |
4964 rm -f conftest.err conftest.i conftest.$ac_ext | |
4965 | |
4966 done | |
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4968 rm -f conftest.i conftest.err conftest.$ac_ext | |
4969 if $ac_preproc_ok; then : | |
4970 break | |
4971 fi | |
4972 | |
4973 done | |
4974 ac_cv_prog_CPP=$CPP | |
4975 | |
4976 fi | |
4977 CPP=$ac_cv_prog_CPP | |
4978 else | |
4979 ac_cv_prog_CPP=$CPP | |
4980 fi | |
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4982 $as_echo "$CPP" >&6; } | |
4983 ac_preproc_ok=false | |
4984 for ac_c_preproc_warn_flag in '' yes | |
4985 do | |
4986 # Use a header file that comes with gcc, so configuring glibc | |
4987 # with a fresh cross-compiler works. | |
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4989 # <limits.h> exists even on freestanding compilers. | |
4990 # On the NeXT, cc -E runs the code through the compiler's parser, | |
4991 # not just through cpp. "Syntax error" is here to catch this case. | |
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4993 /* end confdefs.h. */ | |
4994 #ifdef __STDC__ | |
4995 # include <limits.h> | |
4996 #else | |
4997 # include <assert.h> | |
4998 #endif | |
4999 Syntax error | |
5000 _ACEOF | |
5001 if ac_fn_c_try_cpp "$LINENO"; then : | |
5002 | |
5003 else | |
5004 # Broken: fails on valid input. | |
5005 continue | |
5006 fi | |
5007 rm -f conftest.err conftest.i conftest.$ac_ext | |
5008 | |
5009 # OK, works on sane cases. Now check whether nonexistent headers | |
5010 # can be detected and how. | |
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5012 /* end confdefs.h. */ | |
5013 #include <ac_nonexistent.h> | |
5014 _ACEOF | |
5015 if ac_fn_c_try_cpp "$LINENO"; then : | |
5016 # Broken: success on invalid input. | |
5017 continue | |
5018 else | |
5019 # Passes both tests. | |
5020 ac_preproc_ok=: | |
5021 break | |
5022 fi | |
5023 rm -f conftest.err conftest.i conftest.$ac_ext | |
5024 | |
5025 done | |
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5027 rm -f conftest.i conftest.err conftest.$ac_ext | |
5028 if $ac_preproc_ok; then : | |
5029 | |
5030 else | |
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5033 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
5034 See \`config.log' for more details" "$LINENO" 5; } | |
5035 fi | |
5036 | |
5037 ac_ext=c | |
5038 ac_cpp='$CPP $CPPFLAGS' | |
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5042 | |
5043 | |
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5046 if ${ac_cv_path_GREP+:} false; then : | |
5047 $as_echo_n "(cached) " >&6 | |
5048 else | |
5049 if test -z "$GREP"; then | |
5050 ac_path_GREP_found=false | |
5051 # Loop through the user's path and test for each of PROGNAME-LIST | |
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5054 do | |
5055 IFS=$as_save_IFS | |
5056 test -z "$as_dir" && as_dir=. | |
5057 for ac_prog in grep ggrep; do | |
5058 for ac_exec_ext in '' $ac_executable_extensions; do | |
5059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5061 # Check for GNU ac_path_GREP and select it if it is found. | |
5062 # Check for GNU $ac_path_GREP | |
5063 case `"$ac_path_GREP" --version 2>&1` in | |
5064 *GNU*) | |
5065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5066 *) | |
5067 ac_count=0 | |
5068 $as_echo_n 0123456789 >"conftest.in" | |
5069 while : | |
5070 do | |
5071 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5072 mv "conftest.tmp" "conftest.in" | |
5073 cp "conftest.in" "conftest.nl" | |
5074 $as_echo 'GREP' >> "conftest.nl" | |
5075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5077 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5078 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5079 # Best one so far, save it but keep looking for a better one | |
5080 ac_cv_path_GREP="$ac_path_GREP" | |
5081 ac_path_GREP_max=$ac_count | |
5082 fi | |
5083 # 10*(2^10) chars as input seems more than enough | |
5084 test $ac_count -gt 10 && break | |
5085 done | |
5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5087 esac | |
5088 | |
5089 $ac_path_GREP_found && break 3 | |
5090 done | |
5091 done | |
5092 done | |
5093 IFS=$as_save_IFS | |
5094 if test -z "$ac_cv_path_GREP"; then | |
5095 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5096 fi | |
5097 else | |
5098 ac_cv_path_GREP=$GREP | |
5099 fi | |
5100 | |
5101 fi | |
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5103 $as_echo "$ac_cv_path_GREP" >&6; } | |
5104 GREP="$ac_cv_path_GREP" | |
5105 | |
5106 | |
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5108 $as_echo_n "checking for egrep... " >&6; } | |
5109 if ${ac_cv_path_EGREP+:} false; then : | |
5110 $as_echo_n "(cached) " >&6 | |
5111 else | |
5112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5113 then ac_cv_path_EGREP="$GREP -E" | |
5114 else | |
5115 if test -z "$EGREP"; then | |
5116 ac_path_EGREP_found=false | |
5117 # Loop through the user's path and test for each of PROGNAME-LIST | |
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5120 do | |
5121 IFS=$as_save_IFS | |
5122 test -z "$as_dir" && as_dir=. | |
5123 for ac_prog in egrep; do | |
5124 for ac_exec_ext in '' $ac_executable_extensions; do | |
5125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5127 # Check for GNU ac_path_EGREP and select it if it is found. | |
5128 # Check for GNU $ac_path_EGREP | |
5129 case `"$ac_path_EGREP" --version 2>&1` in | |
5130 *GNU*) | |
5131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5132 *) | |
5133 ac_count=0 | |
5134 $as_echo_n 0123456789 >"conftest.in" | |
5135 while : | |
5136 do | |
5137 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5138 mv "conftest.tmp" "conftest.in" | |
5139 cp "conftest.in" "conftest.nl" | |
5140 $as_echo 'EGREP' >> "conftest.nl" | |
5141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5145 # Best one so far, save it but keep looking for a better one | |
5146 ac_cv_path_EGREP="$ac_path_EGREP" | |
5147 ac_path_EGREP_max=$ac_count | |
5148 fi | |
5149 # 10*(2^10) chars as input seems more than enough | |
5150 test $ac_count -gt 10 && break | |
5151 done | |
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5153 esac | |
5154 | |
5155 $ac_path_EGREP_found && break 3 | |
5156 done | |
5157 done | |
5158 done | |
5159 IFS=$as_save_IFS | |
5160 if test -z "$ac_cv_path_EGREP"; then | |
5161 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5162 fi | |
5163 else | |
5164 ac_cv_path_EGREP=$EGREP | |
5165 fi | |
5166 | |
5167 fi | |
5168 fi | |
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5170 $as_echo "$ac_cv_path_EGREP" >&6; } | |
5171 EGREP="$ac_cv_path_EGREP" | |
5172 | |
5173 | |
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5175 $as_echo_n "checking for ANSI C header files... " >&6; } | |
5176 if ${ac_cv_header_stdc+:} false; then : | |
5177 $as_echo_n "(cached) " >&6 | |
5178 else | |
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5180 /* end confdefs.h. */ | |
5181 #include <stdlib.h> | |
5182 #include <stdarg.h> | |
5183 #include <string.h> | |
5184 #include <float.h> | |
5185 | |
5186 int | |
5187 main () | |
5188 { | |
5189 | |
5190 ; | |
5191 return 0; | |
5192 } | |
5193 _ACEOF | |
5194 if ac_fn_c_try_compile "$LINENO"; then : | |
5195 ac_cv_header_stdc=yes | |
5196 else | |
5197 ac_cv_header_stdc=no | |
5198 fi | |
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5200 | |
5201 if test $ac_cv_header_stdc = yes; then | |
5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5204 /* end confdefs.h. */ | |
5205 #include <string.h> | |
5206 | |
5207 _ACEOF | |
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5209 $EGREP "memchr" >/dev/null 2>&1; then : | |
5210 | |
5211 else | |
5212 ac_cv_header_stdc=no | |
5213 fi | |
5214 rm -f conftest* | |
5215 | |
5216 fi | |
5217 | |
5218 if test $ac_cv_header_stdc = yes; then | |
5219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5221 /* end confdefs.h. */ | |
5222 #include <stdlib.h> | |
5223 | |
5224 _ACEOF | |
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5226 $EGREP "free" >/dev/null 2>&1; then : | |
5227 | |
5228 else | |
5229 ac_cv_header_stdc=no | |
5230 fi | |
5231 rm -f conftest* | |
5232 | |
5233 fi | |
5234 | |
5235 if test $ac_cv_header_stdc = yes; then | |
5236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5237 if test "$cross_compiling" = yes; then : | |
5238 : | |
5239 else | |
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5241 /* end confdefs.h. */ | |
5242 #include <ctype.h> | |
5243 #include <stdlib.h> | |
5244 #if ((' ' & 0x0FF) == 0x020) | |
5245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5247 #else | |
5248 # define ISLOWER(c) \ | |
5249 (('a' <= (c) && (c) <= 'i') \ | |
5250 || ('j' <= (c) && (c) <= 'r') \ | |
5251 || ('s' <= (c) && (c) <= 'z')) | |
5252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5253 #endif | |
5254 | |
5255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5256 int | |
5257 main () | |
5258 { | |
5259 int i; | |
5260 for (i = 0; i < 256; i++) | |
5261 if (XOR (islower (i), ISLOWER (i)) | |
5262 || toupper (i) != TOUPPER (i)) | |
5263 return 2; | |
5264 return 0; | |
5265 } | |
5266 _ACEOF | |
5267 if ac_fn_c_try_run "$LINENO"; then : | |
5268 | |
5269 else | |
5270 ac_cv_header_stdc=no | |
5271 fi | |
5272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5273 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5274 fi | |
5275 | |
5276 fi | |
5277 fi | |
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5279 $as_echo "$ac_cv_header_stdc" >&6; } | |
5280 if test $ac_cv_header_stdc = yes; then | |
5281 | |
5282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5283 | |
5284 fi | |
5285 | |
5286 | |
5287 ac_ext=cpp | |
5288 ac_cpp='$CXXCPP $CPPFLAGS' | |
5289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5292 | |
5293 | |
5294 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5295 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5296 inttypes.h stdint.h unistd.h | |
5297 do : | |
5298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5299 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5300 " | |
5301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5302 cat >>confdefs.h <<_ACEOF | |
5303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5304 _ACEOF | |
5305 | |
5306 fi | |
5307 | |
5308 done | |
5309 | |
5310 | |
5311 ac_fn_cxx_check_type "$LINENO" "bool" "ac_cv_type_bool" "$ac_includes_default" | |
5312 if test "x$ac_cv_type_bool" = xyes; then : | |
5313 | |
5314 cat >>confdefs.h <<_ACEOF | |
5315 #define HAVE_BOOL 1 | |
5316 _ACEOF | |
5317 | |
5318 | |
5319 fi | |
5320 | |
5321 ac_ext=c | |
5322 ac_cpp='$CPP $CPPFLAGS' | |
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5326 | |
5327 | |
5328 | |
5329 # Check whether --with-popen was given. | |
5330 if test "${with_popen+set}" = set; then : | |
5331 withval=$with_popen; with_popen="$withval" | |
5332 fi | |
5333 | |
5334 if test x"${with_popen}" = xno ; then | |
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling popen" >&5 | |
5336 $as_echo "$as_me: Disabling popen" >&6;} | |
5337 else | |
5338 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" | |
5339 if test "x$ac_cv_func_popen" = xyes; then : | |
5340 | |
5341 $as_echo "#define HAVE_POPEN 1" >>confdefs.h | |
5342 | |
5343 else | |
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling popen" >&5 | |
5345 $as_echo "$as_me: Disabling popen" >&6;} | |
5346 fi | |
5347 | |
5348 fi | |
5349 | |
5350 | |
5351 | |
5352 | |
5353 | |
5354 # Check whether --with-pcre was given. | |
5355 if test "${with_pcre+set}" = set; then : | |
5356 withval=$with_pcre; | |
5357 else | |
5358 with_pcre=yes | |
5359 fi | |
5360 | |
5361 | |
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PCRE support" >&5 | |
5363 $as_echo_n "checking whether to enable PCRE support... " >&6; } | |
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pcre" >&5 | |
5365 $as_echo "$with_pcre" >&6; } | |
5366 | |
5367 if test x"${with_pcre}" = xyes ; then | |
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use local PCRE" >&5 | |
5369 $as_echo_n "checking whether to use local PCRE... " >&6; } | |
5370 local_pcre_config=no | |
5371 if test -z $PCRE_CONFIG; then | |
5372 if test -f `pwd`/pcre/pcre-swig-install/bin/pcre-config; then | |
5373 PCRE_CONFIG=`pwd`/pcre/pcre-swig-install/bin/pcre-config | |
5374 local_pcre_config=$PCRE_CONFIG | |
5375 fi | |
5376 fi | |
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_pcre_config" >&5 | |
5378 $as_echo "$local_pcre_config" >&6; } | |
5379 fi | |
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5381 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5382 if ${ac_cv_path_SED+:} false; then : | |
5383 $as_echo_n "(cached) " >&6 | |
5384 else | |
5385 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5386 for ac_i in 1 2 3 4 5 6 7; do | |
5387 ac_script="$ac_script$as_nl$ac_script" | |
5388 done | |
5389 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5390 { ac_script=; unset ac_script;} | |
5391 if test -z "$SED"; then | |
5392 ac_path_SED_found=false | |
5393 # Loop through the user's path and test for each of PROGNAME-LIST | |
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5395 for as_dir in $PATH | |
5396 do | |
5397 IFS=$as_save_IFS | |
5398 test -z "$as_dir" && as_dir=. | |
5399 for ac_prog in sed gsed; do | |
5400 for ac_exec_ext in '' $ac_executable_extensions; do | |
5401 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5402 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5403 # Check for GNU ac_path_SED and select it if it is found. | |
5404 # Check for GNU $ac_path_SED | |
5405 case `"$ac_path_SED" --version 2>&1` in | |
5406 *GNU*) | |
5407 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5408 *) | |
5409 ac_count=0 | |
5410 $as_echo_n 0123456789 >"conftest.in" | |
5411 while : | |
5412 do | |
5413 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5414 mv "conftest.tmp" "conftest.in" | |
5415 cp "conftest.in" "conftest.nl" | |
5416 $as_echo '' >> "conftest.nl" | |
5417 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5420 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5421 # Best one so far, save it but keep looking for a better one | |
5422 ac_cv_path_SED="$ac_path_SED" | |
5423 ac_path_SED_max=$ac_count | |
5424 fi | |
5425 # 10*(2^10) chars as input seems more than enough | |
5426 test $ac_count -gt 10 && break | |
5427 done | |
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5429 esac | |
5430 | |
5431 $ac_path_SED_found && break 3 | |
5432 done | |
5433 done | |
5434 done | |
5435 IFS=$as_save_IFS | |
5436 if test -z "$ac_cv_path_SED"; then | |
5437 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5438 fi | |
5439 else | |
5440 ac_cv_path_SED=$SED | |
5441 fi | |
5442 | |
5443 fi | |
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5445 $as_echo "$ac_cv_path_SED" >&6; } | |
5446 SED="$ac_cv_path_SED" | |
5447 rm -f conftest.sed | |
5448 | |
5449 if test "x$with_pcre" != xno; then : | |
5450 | |
5451 | |
5452 | |
5453 | |
5454 | |
5455 # Check whether --with-pcre-prefix was given. | |
5456 if test "${with_pcre_prefix+set}" = set; then : | |
5457 withval=$with_pcre_prefix; pcre_config_prefix="$withval" | |
5458 else | |
5459 pcre_config_prefix="" | |
5460 fi | |
5461 | |
5462 | |
5463 # Check whether --with-pcre-exec-prefix was given. | |
5464 if test "${with_pcre_exec_prefix+set}" = set; then : | |
5465 withval=$with_pcre_exec_prefix; pcre_config_exec_prefix="$withval" | |
5466 else | |
5467 pcre_config_exec_prefix="" | |
5468 fi | |
5469 | |
5470 | |
5471 | |
5472 | |
5473 | |
5474 | |
5475 if test x$PCRE_CFLAGS != x -o x$PCRE_LIBS != x; then : | |
5476 | |
5477 | |
5478 | |
5479 : | |
5480 | |
5481 $as_echo "#define HAVE_PCRE 1" >>confdefs.h | |
5482 | |
5483 LIBS="$LIBS $PCRE_LIBS" | |
5484 CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" | |
5485 | |
5486 | |
5487 else | |
5488 | |
5489 if test x$pcre_config_exec_prefix != x; then : | |
5490 | |
5491 pcre_config_args="$pcre_config_args --exec-prefix=$pcre_config_exec_prefix" | |
5492 if test x${PCRE_CONFIG+set} != xset; then : | |
5493 | |
5494 PCRE_CONFIG=$pcre_config_exec_prefix/bin/pcre-config | |
5495 | |
5496 fi | |
5497 | |
5498 fi | |
5499 if test x$pcre_config_prefix != x; then : | |
5500 | |
5501 pcre_config_args="$pcre_config_args --prefix=$pcre_config_prefix" | |
5502 if test x${PCRE_CONFIG+set} != xset; then : | |
5503 | |
5504 PCRE_CONFIG=$pcre_config_prefix/bin/pcre-config | |
5505 | |
5506 fi | |
5507 | |
5508 fi | |
5509 | |
5510 for ac_prog in pcre-config | |
5511 do | |
5512 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5513 set dummy $ac_prog; ac_word=$2 | |
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5515 $as_echo_n "checking for $ac_word... " >&6; } | |
5516 if ${ac_cv_path_PCRE_CONFIG+:} false; then : | |
5517 $as_echo_n "(cached) " >&6 | |
5518 else | |
5519 case $PCRE_CONFIG in | |
5520 [\\/]* | ?:[\\/]*) | |
5521 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path. | |
5522 ;; | |
5523 *) | |
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5525 for as_dir in $PATH | |
5526 do | |
5527 IFS=$as_save_IFS | |
5528 test -z "$as_dir" && as_dir=. | |
5529 for ac_exec_ext in '' $ac_executable_extensions; do | |
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5531 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5533 break 2 | |
5534 fi | |
5535 done | |
5536 done | |
5537 IFS=$as_save_IFS | |
5538 | |
5539 ;; | |
5540 esac | |
5541 fi | |
5542 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG | |
5543 if test -n "$PCRE_CONFIG"; then | |
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5 | |
5545 $as_echo "$PCRE_CONFIG" >&6; } | |
5546 else | |
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5548 $as_echo "no" >&6; } | |
5549 fi | |
5550 | |
5551 | |
5552 test -n "$PCRE_CONFIG" && break | |
5553 done | |
5554 test -n "$PCRE_CONFIG" || PCRE_CONFIG="no" | |
5555 | |
5556 if test "$PCRE_CONFIG" = "no"; then : | |
5557 | |
5558 : | |
5559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5561 as_fn_error $? " | |
5562 Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions) | |
5563 library package. This dependency is needed for configure to complete, | |
5564 Either: | |
5565 - Install the PCRE developer package on your system (preferred approach). | |
5566 - Download the PCRE source tarball, build and install on your system | |
5567 as you would for any package built from source distribution. | |
5568 - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically | |
5569 link against. Run 'Tools/pcre-build.sh --help' for instructions. | |
5570 (quite easy and does not require privileges to install PCRE on your system) | |
5571 - Use configure --without-pcre to disable regular expressions support in SWIG | |
5572 (not recommended). | |
5573 See \`config.log' for more details" "$LINENO" 5; } | |
5574 | |
5575 | |
5576 else | |
5577 | |
5578 if test x"" = x; then : | |
5579 | |
5580 PCRE_CFLAGS="`$PCRE_CONFIG $pcre_config_args --cflags`" | |
5581 | |
5582 else | |
5583 | |
5584 PCRE_CFLAGS="`$PCRE_CONFIG $pcre_config_args `" | |
5585 | |
5586 fi | |
5587 | |
5588 if test x"" = x; then : | |
5589 | |
5590 PCRE_LIBS="`$PCRE_CONFIG $pcre_config_args --libs`" | |
5591 | |
5592 else | |
5593 | |
5594 PCRE_LIBS="`$PCRE_CONFIG $pcre_config_args `" | |
5595 | |
5596 fi | |
5597 | |
5598 if test x"" != x; then : | |
5599 | |
5600 if test x" " != x; then : | |
5601 | |
5602 pcre_version="`$PCRE_CONFIG $pcre_config_args --version | $SED -e `" | |
5603 | |
5604 else | |
5605 | |
5606 pcre_version="`$PCRE_CONFIG $pcre_config_args --version | $SED -e 's/^\ *\(.*\)\ *$/\1/'`" | |
5607 | |
5608 fi | |
5609 | |
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre ($pcre_version) >= " >&5 | |
5611 $as_echo_n "checking for pcre ($pcre_version) >= ... " >&6; } | |
5612 | |
5613 | |
5614 | |
5615 # Used to indicate true or false condition | |
5616 ax_compare_version=false | |
5617 | |
5618 # Convert the two version strings to be compared into a format that | |
5619 # allows a simple string comparison. The end result is that a version | |
5620 # string of the form 1.12.5-r617 will be converted to the form | |
5621 # 0001001200050617. In other words, each number is zero padded to four | |
5622 # digits, and non digits are removed. | |
5623 | |
5624 ax_compare_version_A=`echo "$pcre_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | |
5625 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | |
5626 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | |
5627 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | |
5628 -e 's/[^0-9]//g'` | |
5629 | |
5630 | |
5631 ax_compare_version_B=`echo "" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | |
5632 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | |
5633 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | |
5634 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | |
5635 -e 's/[^0-9]//g'` | |
5636 | |
5637 | |
5638 ax_compare_version=`echo "x$ax_compare_version_A | |
5639 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` | |
5640 | |
5641 | |
5642 | |
5643 if test "$ax_compare_version" = "true" ; then | |
5644 | |
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5646 $as_echo "yes" >&6; } | |
5647 | |
5648 | |
5649 | |
5650 : | |
5651 | |
5652 $as_echo "#define HAVE_PCRE 1" >>confdefs.h | |
5653 | |
5654 LIBS="$LIBS $PCRE_LIBS" | |
5655 CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" | |
5656 | |
5657 | |
5658 else | |
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5660 $as_echo "no" >&6; } | |
5661 : | |
5662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5664 as_fn_error $? " | |
5665 Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions) | |
5666 library package. This dependency is needed for configure to complete, | |
5667 Either: | |
5668 - Install the PCRE developer package on your system (preferred approach). | |
5669 - Download the PCRE source tarball, build and install on your system | |
5670 as you would for any package built from source distribution. | |
5671 - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically | |
5672 link against. Run 'Tools/pcre-build.sh --help' for instructions. | |
5673 (quite easy and does not require privileges to install PCRE on your system) | |
5674 - Use configure --without-pcre to disable regular expressions support in SWIG | |
5675 (not recommended). | |
5676 See \`config.log' for more details" "$LINENO" 5; } | |
5677 | |
5678 | |
5679 fi | |
5680 | |
5681 | |
5682 else | |
5683 | |
5684 | |
5685 | |
5686 : | |
5687 | |
5688 $as_echo "#define HAVE_PCRE 1" >>confdefs.h | |
5689 | |
5690 LIBS="$LIBS $PCRE_LIBS" | |
5691 CPPFLAGS="$CPPFLAGS $PCRE_CFLAGS" | |
5692 | |
5693 | |
5694 fi | |
5695 | |
5696 fi | |
5697 | |
5698 fi | |
5699 | |
5700 | |
5701 | |
5702 | |
5703 | |
5704 fi | |
5705 | |
5706 | |
5707 # Check whether --enable-ccache was given. | |
5708 if test "${enable_ccache+set}" = set; then : | |
5709 enableval=$enable_ccache; enable_ccache=$enableval | |
5710 else | |
5711 enable_ccache=yes | |
5712 fi | |
5713 | |
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache-swig" >&5 | |
5715 $as_echo_n "checking whether to enable ccache-swig... " >&6; } | |
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ccache" >&5 | |
5717 $as_echo "$enable_ccache" >&6; } | |
5718 | |
5719 if test "$enable_ccache" = yes; then | |
5720 | |
5721 | |
5722 subdirs="$subdirs CCache" | |
5723 | |
5724 ENABLE_CCACHE=1 | |
5725 fi | |
5726 | |
5727 | |
5728 | |
5729 echo "" | |
5730 echo "Checking packages required for SWIG developers." | |
5731 echo "Note : None of the following packages are required for users to compile and install SWIG from the distributed tarball" | |
5732 echo "" | |
5733 | |
5734 for ac_prog in 'bison -y' byacc | |
5735 do | |
5736 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5737 set dummy $ac_prog; ac_word=$2 | |
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5739 $as_echo_n "checking for $ac_word... " >&6; } | |
5740 if ${ac_cv_prog_YACC+:} false; then : | |
5741 $as_echo_n "(cached) " >&6 | |
5742 else | |
5743 if test -n "$YACC"; then | |
5744 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
5745 else | |
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5747 for as_dir in $PATH | |
5748 do | |
5749 IFS=$as_save_IFS | |
5750 test -z "$as_dir" && as_dir=. | |
5751 for ac_exec_ext in '' $ac_executable_extensions; do | |
5752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5753 ac_cv_prog_YACC="$ac_prog" | |
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5755 break 2 | |
5756 fi | |
5757 done | |
5758 done | |
5759 IFS=$as_save_IFS | |
5760 | |
5761 fi | |
5762 fi | |
5763 YACC=$ac_cv_prog_YACC | |
5764 if test -n "$YACC"; then | |
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
5766 $as_echo "$YACC" >&6; } | |
5767 else | |
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5769 $as_echo "no" >&6; } | |
5770 fi | |
5771 | |
5772 | |
5773 test -n "$YACC" && break | |
5774 done | |
5775 test -n "$YACC" || YACC="yacc" | |
5776 | |
5777 if test -n "$ac_tool_prefix"; then | |
5778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5781 $as_echo_n "checking for $ac_word... " >&6; } | |
5782 if ${ac_cv_prog_RANLIB+:} false; then : | |
5783 $as_echo_n "(cached) " >&6 | |
5784 else | |
5785 if test -n "$RANLIB"; then | |
5786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5787 else | |
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5789 for as_dir in $PATH | |
5790 do | |
5791 IFS=$as_save_IFS | |
5792 test -z "$as_dir" && as_dir=. | |
5793 for ac_exec_ext in '' $ac_executable_extensions; do | |
5794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5797 break 2 | |
5798 fi | |
5799 done | |
5800 done | |
5801 IFS=$as_save_IFS | |
5802 | |
5803 fi | |
5804 fi | |
5805 RANLIB=$ac_cv_prog_RANLIB | |
5806 if test -n "$RANLIB"; then | |
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5808 $as_echo "$RANLIB" >&6; } | |
5809 else | |
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5811 $as_echo "no" >&6; } | |
5812 fi | |
5813 | |
5814 | |
5815 fi | |
5816 if test -z "$ac_cv_prog_RANLIB"; then | |
5817 ac_ct_RANLIB=$RANLIB | |
5818 # Extract the first word of "ranlib", so it can be a program name with args. | |
5819 set dummy ranlib; ac_word=$2 | |
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5821 $as_echo_n "checking for $ac_word... " >&6; } | |
5822 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5823 $as_echo_n "(cached) " >&6 | |
5824 else | |
5825 if test -n "$ac_ct_RANLIB"; then | |
5826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5827 else | |
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5829 for as_dir in $PATH | |
5830 do | |
5831 IFS=$as_save_IFS | |
5832 test -z "$as_dir" && as_dir=. | |
5833 for ac_exec_ext in '' $ac_executable_extensions; do | |
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5835 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5837 break 2 | |
5838 fi | |
5839 done | |
5840 done | |
5841 IFS=$as_save_IFS | |
5842 | |
5843 fi | |
5844 fi | |
5845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5846 if test -n "$ac_ct_RANLIB"; then | |
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5848 $as_echo "$ac_ct_RANLIB" >&6; } | |
5849 else | |
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5851 $as_echo "no" >&6; } | |
5852 fi | |
5853 | |
5854 if test "x$ac_ct_RANLIB" = x; then | |
5855 RANLIB=":" | |
5856 else | |
5857 case $cross_compiling:$ac_tool_warned in | |
5858 yes:) | |
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5861 ac_tool_warned=yes ;; | |
5862 esac | |
5863 RANLIB=$ac_ct_RANLIB | |
5864 fi | |
5865 else | |
5866 RANLIB="$ac_cv_prog_RANLIB" | |
5867 fi | |
5868 | |
5869 for ac_prog in ar aal | |
5870 do | |
5871 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5872 set dummy $ac_prog; ac_word=$2 | |
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5874 $as_echo_n "checking for $ac_word... " >&6; } | |
5875 if ${ac_cv_prog_AR+:} false; then : | |
5876 $as_echo_n "(cached) " >&6 | |
5877 else | |
5878 if test -n "$AR"; then | |
5879 ac_cv_prog_AR="$AR" # Let the user override the test. | |
5880 else | |
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5882 for as_dir in $PATH | |
5883 do | |
5884 IFS=$as_save_IFS | |
5885 test -z "$as_dir" && as_dir=. | |
5886 for ac_exec_ext in '' $ac_executable_extensions; do | |
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5888 ac_cv_prog_AR="$ac_prog" | |
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5890 break 2 | |
5891 fi | |
5892 done | |
5893 done | |
5894 IFS=$as_save_IFS | |
5895 | |
5896 fi | |
5897 fi | |
5898 AR=$ac_cv_prog_AR | |
5899 if test -n "$AR"; then | |
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5901 $as_echo "$AR" >&6; } | |
5902 else | |
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5904 $as_echo "no" >&6; } | |
5905 fi | |
5906 | |
5907 | |
5908 test -n "$AR" && break | |
5909 done | |
5910 test -n "$AR" || AR="ar" | |
5911 | |
5912 | |
5913 for ac_prog in yodl2man | |
5914 do | |
5915 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5916 set dummy $ac_prog; ac_word=$2 | |
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5918 $as_echo_n "checking for $ac_word... " >&6; } | |
5919 if ${ac_cv_prog_YODL2MAN+:} false; then : | |
5920 $as_echo_n "(cached) " >&6 | |
5921 else | |
5922 if test -n "$YODL2MAN"; then | |
5923 ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test. | |
5924 else | |
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5926 for as_dir in $PATH | |
5927 do | |
5928 IFS=$as_save_IFS | |
5929 test -z "$as_dir" && as_dir=. | |
5930 for ac_exec_ext in '' $ac_executable_extensions; do | |
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5932 ac_cv_prog_YODL2MAN="$ac_prog" | |
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5934 break 2 | |
5935 fi | |
5936 done | |
5937 done | |
5938 IFS=$as_save_IFS | |
5939 | |
5940 fi | |
5941 fi | |
5942 YODL2MAN=$ac_cv_prog_YODL2MAN | |
5943 if test -n "$YODL2MAN"; then | |
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YODL2MAN" >&5 | |
5945 $as_echo "$YODL2MAN" >&6; } | |
5946 else | |
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5948 $as_echo "no" >&6; } | |
5949 fi | |
5950 | |
5951 | |
5952 test -n "$YODL2MAN" && break | |
5953 done | |
5954 | |
5955 for ac_prog in yodl2html | |
5956 do | |
5957 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5958 set dummy $ac_prog; ac_word=$2 | |
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5960 $as_echo_n "checking for $ac_word... " >&6; } | |
5961 if ${ac_cv_prog_YODL2HTML+:} false; then : | |
5962 $as_echo_n "(cached) " >&6 | |
5963 else | |
5964 if test -n "$YODL2HTML"; then | |
5965 ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test. | |
5966 else | |
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5968 for as_dir in $PATH | |
5969 do | |
5970 IFS=$as_save_IFS | |
5971 test -z "$as_dir" && as_dir=. | |
5972 for ac_exec_ext in '' $ac_executable_extensions; do | |
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5974 ac_cv_prog_YODL2HTML="$ac_prog" | |
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5976 break 2 | |
5977 fi | |
5978 done | |
5979 done | |
5980 IFS=$as_save_IFS | |
5981 | |
5982 fi | |
5983 fi | |
5984 YODL2HTML=$ac_cv_prog_YODL2HTML | |
5985 if test -n "$YODL2HTML"; then | |
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YODL2HTML" >&5 | |
5987 $as_echo "$YODL2HTML" >&6; } | |
5988 else | |
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5990 $as_echo "no" >&6; } | |
5991 fi | |
5992 | |
5993 | |
5994 test -n "$YODL2HTML" && break | |
5995 done | |
5996 | |
5997 | |
5998 if test -n "$YODL2MAN"; then | |
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking yodl2man version >= 2.02" >&5 | |
6000 $as_echo_n "checking yodl2man version >= 2.02... " >&6; } | |
6001 yodl_version=`$YODL2MAN --version 2>&1 | grep 'yodl version' | sed 's/.*\(0-90-9*\.0-90-9*\.*0-9*\).*/\1/g'` | |
6002 | |
6003 | |
6004 | |
6005 # Used to indicate true or false condition | |
6006 ax_compare_version=false | |
6007 | |
6008 # Convert the two version strings to be compared into a format that | |
6009 # allows a simple string comparison. The end result is that a version | |
6010 # string of the form 1.12.5-r617 will be converted to the form | |
6011 # 0001001200050617. In other words, each number is zero padded to four | |
6012 # digits, and non digits are removed. | |
6013 | |
6014 ax_compare_version_A=`echo "$yodl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | |
6015 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | |
6016 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | |
6017 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | |
6018 -e 's/[^0-9]//g'` | |
6019 | |
6020 | |
6021 ax_compare_version_B=`echo "2.02" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | |
6022 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | |
6023 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | |
6024 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | |
6025 -e 's/[^0-9]//g'` | |
6026 | |
6027 | |
6028 ax_compare_version=`echo "x$ax_compare_version_A | |
6029 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` | |
6030 | |
6031 | |
6032 | |
6033 if test "$ax_compare_version" = "true" ; then | |
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6035 $as_echo "yes" >&6; } | |
6036 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - $yodl_version found" >&5 | |
6037 $as_echo "no - $yodl_version found" >&6; } | |
6038 fi | |
6039 | |
6040 fi | |
6041 | |
6042 if test -n "$YODL2HTML"; then | |
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking yodl2html version >= 2.02" >&5 | |
6044 $as_echo_n "checking yodl2html version >= 2.02... " >&6; } | |
6045 yodl_version=`$YODL2HTML --version 2>&1 | grep 'yodl version' | sed 's/.*\(0-90-9*\.0-90-9*\.0-90-9*\).*/\1/g'` | |
6046 | |
6047 | |
6048 | |
6049 # Used to indicate true or false condition | |
6050 ax_compare_version=false | |
6051 | |
6052 # Convert the two version strings to be compared into a format that | |
6053 # allows a simple string comparison. The end result is that a version | |
6054 # string of the form 1.12.5-r617 will be converted to the form | |
6055 # 0001001200050617. In other words, each number is zero padded to four | |
6056 # digits, and non digits are removed. | |
6057 | |
6058 ax_compare_version_A=`echo "$yodl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | |
6059 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | |
6060 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | |
6061 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | |
6062 -e 's/[^0-9]//g'` | |
6063 | |
6064 | |
6065 ax_compare_version_B=`echo "2.02" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | |
6066 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | |
6067 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | |
6068 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | |
6069 -e 's/[^0-9]//g'` | |
6070 | |
6071 | |
6072 ax_compare_version=`echo "x$ax_compare_version_A | |
6073 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` | |
6074 | |
6075 | |
6076 | |
6077 if test "$ax_compare_version" = "true" ; then | |
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6079 $as_echo "yes" >&6; } | |
6080 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - $yodl_version found" >&5 | |
6081 $as_echo "no - $yodl_version found" >&6; } | |
6082 fi | |
6083 | |
6084 fi | |
6085 | |
6086 echo "" | |
6087 echo "Checking for installed target languages and other information in order to compile and run" | |
6088 echo "the examples and test-suite invoked by 'make check'." | |
6089 echo "Note : None of the following packages are required for users to compile and install SWIG from the distributed tarball" | |
6090 echo "" | |
6091 | |
6092 | |
6093 | |
6094 # Check whether --with-boost was given. | |
6095 if test "${with_boost+set}" = set; then : | |
6096 withval=$with_boost; | |
6097 if test "$withval" = "no"; then | |
6098 want_boost="no" | |
6099 elif test "$withval" = "yes"; then | |
6100 want_boost="yes" | |
6101 ac_boost_path="" | |
6102 else | |
6103 want_boost="yes" | |
6104 ac_boost_path="$withval" | |
6105 fi | |
6106 | |
6107 else | |
6108 want_boost="yes" | |
6109 fi | |
6110 | |
6111 | |
6112 | |
6113 | |
6114 # Check whether --with-boost-libdir was given. | |
6115 if test "${with_boost_libdir+set}" = set; then : | |
6116 withval=$with_boost_libdir; | |
6117 if test -d "$withval" | |
6118 then | |
6119 ac_boost_lib_path="$withval" | |
6120 else | |
6121 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5 | |
6122 fi | |
6123 | |
6124 else | |
6125 ac_boost_lib_path="" | |
6126 | |
6127 fi | |
6128 | |
6129 | |
6130 if test "x$want_boost" = "xyes"; then | |
6131 boost_lib_version_req=1.20.0 | |
6132 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'` | |
6133 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'` | |
6134 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'` | |
6135 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` | |
6136 if test "x$boost_lib_version_req_sub_minor" = "x" ; then | |
6137 boost_lib_version_req_sub_minor="0" | |
6138 fi | |
6139 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor` | |
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5 | |
6141 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; } | |
6142 succeeded=no | |
6143 | |
6144 libsubdirs="lib" | |
6145 ax_arch=`uname -m` | |
6146 if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then | |
6147 libsubdirs="lib64 lib lib64" | |
6148 fi | |
6149 | |
6150 if test "$ac_boost_path" != ""; then | |
6151 BOOST_CPPFLAGS="-I$ac_boost_path/include" | |
6152 for ac_boost_path_tmp in $libsubdirs; do | |
6153 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then | |
6154 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp" | |
6155 break | |
6156 fi | |
6157 done | |
6158 elif test "$cross_compiling" != yes; then | |
6159 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do | |
6160 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then | |
6161 for libsubdir in $libsubdirs ; do | |
6162 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi | |
6163 done | |
6164 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir" | |
6165 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include" | |
6166 break; | |
6167 fi | |
6168 done | |
6169 fi | |
6170 | |
6171 if test "$ac_boost_lib_path" != ""; then | |
6172 BOOST_LDFLAGS="-L$ac_boost_lib_path" | |
6173 fi | |
6174 | |
6175 CPPFLAGS_SAVED="$CPPFLAGS" | |
6176 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" | |
6177 export CPPFLAGS | |
6178 | |
6179 LDFLAGS_SAVED="$LDFLAGS" | |
6180 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" | |
6181 export LDFLAGS | |
6182 | |
6183 | |
6184 ac_ext=cpp | |
6185 ac_cpp='$CXXCPP $CPPFLAGS' | |
6186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6189 | |
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6191 /* end confdefs.h. */ | |
6192 | |
6193 #include <boost/version.hpp> | |
6194 | |
6195 int | |
6196 main () | |
6197 { | |
6198 | |
6199 #if BOOST_VERSION >= $WANT_BOOST_VERSION | |
6200 // Everything is okay | |
6201 #else | |
6202 # error Boost version is too old | |
6203 #endif | |
6204 | |
6205 ; | |
6206 return 0; | |
6207 } | |
6208 _ACEOF | |
6209 if ac_fn_cxx_try_compile "$LINENO"; then : | |
6210 | |
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6212 $as_echo "yes" >&6; } | |
6213 succeeded=yes | |
6214 found_system=yes | |
6215 | |
6216 fi | |
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6218 ac_ext=c | |
6219 ac_cpp='$CPP $CPPFLAGS' | |
6220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6222 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6223 | |
6224 | |
6225 | |
6226 | |
6227 if test "x$succeeded" != "xyes"; then | |
6228 _version=0 | |
6229 if test "$ac_boost_path" != ""; then | |
6230 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then | |
6231 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do | |
6232 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` | |
6233 V_CHECK=`expr $_version_tmp \> $_version` | |
6234 if test "$V_CHECK" = "1" ; then | |
6235 _version=$_version_tmp | |
6236 fi | |
6237 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` | |
6238 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE" | |
6239 done | |
6240 fi | |
6241 else | |
6242 if test "$cross_compiling" != yes; then | |
6243 for ac_boost_path in /usr /usr/local /opt /opt/local ; do | |
6244 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then | |
6245 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do | |
6246 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` | |
6247 V_CHECK=`expr $_version_tmp \> $_version` | |
6248 if test "$V_CHECK" = "1" ; then | |
6249 _version=$_version_tmp | |
6250 best_path=$ac_boost_path | |
6251 fi | |
6252 done | |
6253 fi | |
6254 done | |
6255 | |
6256 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` | |
6257 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" | |
6258 if test "$ac_boost_lib_path" = ""; then | |
6259 for libsubdir in $libsubdirs ; do | |
6260 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi | |
6261 done | |
6262 BOOST_LDFLAGS="-L$best_path/$libsubdir" | |
6263 fi | |
6264 fi | |
6265 | |
6266 if test "x$BOOST_ROOT" != "x"; then | |
6267 for libsubdir in $libsubdirs ; do | |
6268 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi | |
6269 done | |
6270 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then | |
6271 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` | |
6272 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` | |
6273 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'` | |
6274 V_CHECK=`expr $stage_version_shorten \>\= $_version` | |
6275 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then | |
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5 | |
6277 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;} | |
6278 BOOST_CPPFLAGS="-I$BOOST_ROOT" | |
6279 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" | |
6280 fi | |
6281 fi | |
6282 fi | |
6283 fi | |
6284 | |
6285 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" | |
6286 export CPPFLAGS | |
6287 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" | |
6288 export LDFLAGS | |
6289 | |
6290 ac_ext=cpp | |
6291 ac_cpp='$CXXCPP $CPPFLAGS' | |
6292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6295 | |
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6297 /* end confdefs.h. */ | |
6298 | |
6299 #include <boost/version.hpp> | |
6300 | |
6301 int | |
6302 main () | |
6303 { | |
6304 | |
6305 #if BOOST_VERSION >= $WANT_BOOST_VERSION | |
6306 // Everything is okay | |
6307 #else | |
6308 # error Boost version is too old | |
6309 #endif | |
6310 | |
6311 ; | |
6312 return 0; | |
6313 } | |
6314 _ACEOF | |
6315 if ac_fn_cxx_try_compile "$LINENO"; then : | |
6316 | |
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6318 $as_echo "yes" >&6; } | |
6319 succeeded=yes | |
6320 found_system=yes | |
6321 | |
6322 fi | |
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6324 ac_ext=c | |
6325 ac_cpp='$CPP $CPPFLAGS' | |
6326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6328 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6329 | |
6330 fi | |
6331 | |
6332 if test "$succeeded" != "yes" ; then | |
6333 if test "$_version" = "0" ; then | |
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5 | |
6335 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;} | |
6336 else | |
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5 | |
6338 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;} | |
6339 fi | |
6340 # execute ACTION-IF-NOT-FOUND (if present): | |
6341 : | |
6342 else | |
6343 | |
6344 | |
6345 | |
6346 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h | |
6347 | |
6348 # execute ACTION-IF-FOUND (if present): | |
6349 : | |
6350 fi | |
6351 | |
6352 CPPFLAGS="$CPPFLAGS_SAVED" | |
6353 LDFLAGS="$LDFLAGS_SAVED" | |
6354 fi | |
6355 | |
6356 | |
6357 | |
6358 | |
6359 # -I should not be used on system directories (GCC) | |
6360 if test "$GCC" = yes; then | |
6361 ISYSTEM="-isystem " | |
6362 else | |
6363 ISYSTEM="-I" | |
6364 fi | |
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: ISYSTEM: $ISYSTEM" >&5 | |
6366 $as_echo "$as_me: ISYSTEM: $ISYSTEM" >&6;} | |
6367 | |
6368 | |
6369 # SO is the extension of shared libraries (including the dot!) | |
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 | |
6371 $as_echo_n "checking SO... " >&6; } | |
6372 if test -z "$SO" | |
6373 then | |
6374 case $host in | |
6375 *-*-hp*) SO=.sl;; | |
6376 *-*-darwin*) SO=.bundle;; | |
6377 *-*-cygwin* | *-*-mingw*) SO=.dll;; | |
6378 *) SO=.so;; | |
6379 esac | |
6380 fi | |
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 | |
6382 $as_echo "$SO" >&6; } | |
6383 | |
6384 # LDSHARED is the ld *command* used to create shared library | |
6385 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 | |
6386 # (Shared libraries in this instance are shared modules to be loaded into | |
6387 # Python, as opposed to building Python itself as a shared library.) | |
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 | |
6389 $as_echo_n "checking LDSHARED... " >&6; } | |
6390 if test -z "$LDSHARED" | |
6391 then | |
6392 case $host in | |
6393 *-*-aix*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; | |
6394 *-*-cygwin* | *-*-mingw*) | |
6395 if test "$GCC" = yes; then | |
6396 LDSHARED="$CC -shared" | |
6397 else | |
6398 if test "cl" = $CC ; then | |
6399 # Microsoft Visual C++ (MSVC) | |
6400 LDSHARED="$CC -nologo -LD" | |
6401 else | |
6402 # Unknown compiler try gcc approach | |
6403 LDSHARED="$CC -shared" | |
6404 fi | |
6405 fi ;; | |
6406 *-*-irix5*) LDSHARED="ld -shared";; | |
6407 *-*-irix6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | |
6408 *-*-sunos4*) LDSHARED="ld";; | |
6409 *-*-solaris*) LDSHARED="ld -G";; | |
6410 *-*-hp*) LDSHARED="ld -b";; | |
6411 *-*-osf*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | |
6412 *-sequent-sysv4) LDSHARED="ld -G";; | |
6413 *-*-next*) | |
6414 if test "$ns_dyld" | |
6415 then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' | |
6416 else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r' | |
6417 fi | |
6418 if test "$with_next_framework" ; then | |
6419 LDSHARED="$LDSHARED \$(LDLIBRARY)" | |
6420 fi ;; | |
6421 *-*-linux*) LDSHARED="gcc -shared";; | |
6422 *-*-dgux*) LDSHARED="ld -G";; | |
6423 *-*-freebsd3*) LDSHARED="gcc -shared";; | |
6424 *-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";; | |
6425 *-*-netbsd*) | |
6426 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | |
6427 then | |
6428 LDSHARED="cc -shared" | |
6429 else | |
6430 LDSHARED="ld -Bshareable" | |
6431 fi;; | |
6432 *-sco-sysv*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; | |
6433 *-*-darwin*) LDSHARED="cc -bundle -undefined suppress -flat_namespace";; | |
6434 *) LDSHARED="ld";; | |
6435 esac | |
6436 fi | |
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 | |
6438 $as_echo "$LDSHARED" >&6; } | |
6439 # CXXSHARED is the ld *command* used to create C++ shared library | |
6440 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 | |
6441 # (Shared libraries in this instance are shared modules to be loaded into | |
6442 # Python, as opposed to building Python itself as a shared library.) | |
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXSHARED" >&5 | |
6444 $as_echo_n "checking CXXSHARED... " >&6; } | |
6445 if test -z "$CXXSHARED" | |
6446 then | |
6447 CXXSHARED="$LDSHARED" | |
6448 fi | |
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXSHARED" >&5 | |
6450 $as_echo "$CXXSHARED" >&6; } | |
6451 | |
6452 # | |
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TRYLINKINGWITHCXX" >&5 | |
6454 $as_echo_n "checking TRYLINKINGWITHCXX... " >&6; } | |
6455 if test -z "$TRYLINKINGWITHCXX" | |
6456 then | |
6457 case $host in | |
6458 *-*-solaris*) if test "$GCC" = yes | |
6459 then TRYLINKINGWITHCXX="CXXSHARED= $CXX -Wl,-G" | |
6460 else TRYLINKINGWITHCXX="CXXSHARED= $CXX -G -L/opt/SUNWspro/lib -lCrun -lCstd" | |
6461 fi;; | |
6462 *-*-hp*) TRYLINKINGWITHCXX="CXXSHARED= $CXX +z ";; | |
6463 *-*-darwin*) TRYLINKINGWITHCXX="CXXSHARED= $CXX -bundle -undefined suppress -flat_namespace";; | |
6464 *-*-cygwin* | *-*-mingw*) | |
6465 if test "$GCC" = yes; then | |
6466 TRYLINKINGWITHCXX="CXXSHARED= $CXX -shared " | |
6467 else | |
6468 if test "cl" = $CXX ; then | |
6469 # Microsoft Visual C++ (MSVC) | |
6470 TRYLINKINGWITHCXX="CXXSHARED= $CXX -nologo -LD" | |
6471 else | |
6472 TRYLINKINGWITHCXX="#unknown Windows compiler" | |
6473 fi | |
6474 fi ;; | |
6475 *) TRYLINKINGWITHCXX="CXXSHARED= $CXX -shared ";; | |
6476 esac | |
6477 fi | |
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRYLINKINGWITHCXX" >&5 | |
6479 $as_echo "$TRYLINKINGWITHCXX" >&6; } | |
6480 # CCSHARED are the C *flags* used to create objects to go into a shared | |
6481 # library (module) -- this is only needed for a few systems | |
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 | |
6483 $as_echo_n "checking CCSHARED... " >&6; } | |
6484 if test -z "$CCSHARED" | |
6485 then | |
6486 case $host in | |
6487 *-*-hp*) if test "$GCC" = yes | |
6488 then CCSHARED="-fpic" | |
6489 else CCSHARED="+z" | |
6490 fi;; | |
6491 *-*-linux*) CCSHARED="-fpic";; | |
6492 *-*-freebsd* | *-*-openbsd*) CCSHARED="-fpic";; | |
6493 *-*-netbsd*) CCSHARED="-fPIC";; | |
6494 *-sco-sysv*) CCSHARED="-KPIC -dy -Bdynamic";; | |
6495 *-*-irix6*) case $CC in | |
6496 *gcc*) CCSHARED="-shared";; | |
6497 *) CCSHARED="";; | |
6498 esac;; | |
6499 esac | |
6500 fi | |
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 | |
6502 $as_echo "$CCSHARED" >&6; } | |
6503 | |
6504 # RPATH is the path used to look for shared library files. | |
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RPATH" >&5 | |
6506 $as_echo_n "checking RPATH... " >&6; } | |
6507 if test -z "$RPATH" | |
6508 then | |
6509 case $host in | |
6510 *-*-solaris*) RPATH='-R. -R$(exec_prefix)/lib';; | |
6511 *-*-irix*) RPATH='-rpath .:$(exec_prefix)/lib';; | |
6512 *-*-linux*) RPATH='-Xlinker -rpath $(exec_prefix)/lib -Xlinker -rpath .';; | |
6513 *) RPATH='';; | |
6514 esac | |
6515 fi | |
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPATH" >&5 | |
6517 $as_echo "$RPATH" >&6; } | |
6518 | |
6519 # LINKFORSHARED are the flags passed to the $(CC) command that links | |
6520 # the a few executables -- this is only needed for a few systems | |
6521 | |
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 | |
6523 $as_echo_n "checking LINKFORSHARED... " >&6; } | |
6524 if test -z "$LINKFORSHARED" | |
6525 then | |
6526 case $host in | |
6527 *-*-aix*) LINKFORSHARED='-Wl,-bE:$(srcdir)/python.exp -lld';; | |
6528 *-*-hp*) | |
6529 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | |
6530 *-*-linux*) LINKFORSHARED="-Xlinker -export-dynamic";; | |
6531 *-*-next*) LINKFORSHARED="-u libsys_s";; | |
6532 *-sco-sysv*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; | |
6533 *-*-irix6*) LINKFORSHARED="-all";; | |
6534 esac | |
6535 fi | |
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 | |
6537 $as_echo "$LINKFORSHARED" >&6; } | |
6538 | |
6539 # Optional CFLAGS used to silence/enhance compiler warnings on some platforms. | |
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLATFLAGS" >&5 | |
6541 $as_echo_n "checking PLATFLAGS... " >&6; } | |
6542 case $host in | |
6543 *-*-solaris*) if test "$GCC" = yes | |
6544 then PLATFLAGS= | |
6545 else PLATFLAGS= | |
6546 # else PLATFLAGS="-errtags=yes" # Need more work as C examples use ld for linking | |
6547 fi;; | |
6548 *) PLATFLAGS= | |
6549 esac | |
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFLAGS" >&5 | |
6551 $as_echo "$PLATFLAGS" >&6; } | |
6552 | |
6553 # Set info about shared libraries. | |
6554 | |
6555 | |
6556 | |
6557 | |
6558 | |
6559 | |
6560 | |
6561 | |
6562 | |
6563 # This variation is needed on OS-X because there is no (apparent) consistency in shared library naming. | |
6564 # Sometimes .bundle works, but sometimes .so is needed. It depends on the target language | |
6565 | |
6566 | |
6567 case $host in | |
6568 *-*-mingw*) PYTHON_SO=.pyd;; | |
6569 *-*-darwin*) PYTHON_SO=.so;; | |
6570 *) PYTHON_SO=$SO;; | |
6571 esac | |
6572 | |
6573 | |
6574 case $host in | |
6575 *-*-darwin*) TCL_SO=.dylib;; | |
6576 *) TCL_SO=$SO;; | |
6577 esac | |
6578 | |
6579 | |
6580 case $host in | |
6581 *-*-darwin*) GUILE_SO=.so;; | |
6582 *) GUILE_SO=$SO;; | |
6583 esac | |
6584 | |
6585 | |
6586 case $host in | |
6587 *-*-darwin*) PHP_SO=.so;; | |
6588 *) PHP_SO=$SO;; | |
6589 esac | |
6590 | |
6591 | |
6592 case $host in | |
6593 *) MZSCHEME_SO=.so;; | |
6594 esac | |
6595 | |
6596 | |
6597 case $host in | |
6598 *-*-darwin*) LUA_SO=.so;; | |
6599 *) LUA_SO=$SO;; | |
6600 esac | |
6601 | |
6602 # Check for specific libraries. Used for SWIG examples | |
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
6604 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
6605 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
6606 $as_echo_n "(cached) " >&6 | |
6607 else | |
6608 ac_check_lib_save_LIBS=$LIBS | |
6609 LIBS="-ldl $LIBS" | |
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6611 /* end confdefs.h. */ | |
6612 | |
6613 /* Override any GCC internal prototype to avoid an error. | |
6614 Use char because int might match the return type of a GCC | |
6615 builtin and then its argument prototype would still apply. */ | |
6616 #ifdef __cplusplus | |
6617 extern "C" | |
6618 #endif | |
6619 char dlopen (); | |
6620 int | |
6621 main () | |
6622 { | |
6623 return dlopen (); | |
6624 ; | |
6625 return 0; | |
6626 } | |
6627 _ACEOF | |
6628 if ac_fn_c_try_link "$LINENO"; then : | |
6629 ac_cv_lib_dl_dlopen=yes | |
6630 else | |
6631 ac_cv_lib_dl_dlopen=no | |
6632 fi | |
6633 rm -f core conftest.err conftest.$ac_objext \ | |
6634 conftest$ac_exeext conftest.$ac_ext | |
6635 LIBS=$ac_check_lib_save_LIBS | |
6636 fi | |
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
6638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
6639 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
6640 cat >>confdefs.h <<_ACEOF | |
6641 #define HAVE_LIBDL 1 | |
6642 _ACEOF | |
6643 | |
6644 LIBS="-ldl $LIBS" | |
6645 | |
6646 fi | |
6647 # Dynamic linking for SunOS/Solaris and SYSV | |
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
6649 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
6650 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
6651 $as_echo_n "(cached) " >&6 | |
6652 else | |
6653 ac_check_lib_save_LIBS=$LIBS | |
6654 LIBS="-ldld $LIBS" | |
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6656 /* end confdefs.h. */ | |
6657 | |
6658 /* Override any GCC internal prototype to avoid an error. | |
6659 Use char because int might match the return type of a GCC | |
6660 builtin and then its argument prototype would still apply. */ | |
6661 #ifdef __cplusplus | |
6662 extern "C" | |
6663 #endif | |
6664 char shl_load (); | |
6665 int | |
6666 main () | |
6667 { | |
6668 return shl_load (); | |
6669 ; | |
6670 return 0; | |
6671 } | |
6672 _ACEOF | |
6673 if ac_fn_c_try_link "$LINENO"; then : | |
6674 ac_cv_lib_dld_shl_load=yes | |
6675 else | |
6676 ac_cv_lib_dld_shl_load=no | |
6677 fi | |
6678 rm -f core conftest.err conftest.$ac_objext \ | |
6679 conftest$ac_exeext conftest.$ac_ext | |
6680 LIBS=$ac_check_lib_save_LIBS | |
6681 fi | |
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
6683 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
6684 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
6685 cat >>confdefs.h <<_ACEOF | |
6686 #define HAVE_LIBDLD 1 | |
6687 _ACEOF | |
6688 | |
6689 LIBS="-ldld $LIBS" | |
6690 | |
6691 fi | |
6692 # Dynamic linking for HP-UX | |
6693 | |
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing t_open" >&5 | |
6695 $as_echo_n "checking for library containing t_open... " >&6; } | |
6696 if ${ac_cv_search_t_open+:} false; then : | |
6697 $as_echo_n "(cached) " >&6 | |
6698 else | |
6699 ac_func_search_save_LIBS=$LIBS | |
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6701 /* end confdefs.h. */ | |
6702 | |
6703 /* Override any GCC internal prototype to avoid an error. | |
6704 Use char because int might match the return type of a GCC | |
6705 builtin and then its argument prototype would still apply. */ | |
6706 #ifdef __cplusplus | |
6707 extern "C" | |
6708 #endif | |
6709 char t_open (); | |
6710 int | |
6711 main () | |
6712 { | |
6713 return t_open (); | |
6714 ; | |
6715 return 0; | |
6716 } | |
6717 _ACEOF | |
6718 for ac_lib in '' nsl; do | |
6719 if test -z "$ac_lib"; then | |
6720 ac_res="none required" | |
6721 else | |
6722 ac_res=-l$ac_lib | |
6723 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6724 fi | |
6725 if ac_fn_c_try_link "$LINENO"; then : | |
6726 ac_cv_search_t_open=$ac_res | |
6727 fi | |
6728 rm -f core conftest.err conftest.$ac_objext \ | |
6729 conftest$ac_exeext | |
6730 if ${ac_cv_search_t_open+:} false; then : | |
6731 break | |
6732 fi | |
6733 done | |
6734 if ${ac_cv_search_t_open+:} false; then : | |
6735 | |
6736 else | |
6737 ac_cv_search_t_open=no | |
6738 fi | |
6739 rm conftest.$ac_ext | |
6740 LIBS=$ac_func_search_save_LIBS | |
6741 fi | |
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_t_open" >&5 | |
6743 $as_echo "$ac_cv_search_t_open" >&6; } | |
6744 ac_res=$ac_cv_search_t_open | |
6745 if test "$ac_res" != no; then : | |
6746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6747 | |
6748 fi | |
6749 # SVR4 | |
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 | |
6751 $as_echo_n "checking for library containing gethostbyname... " >&6; } | |
6752 if ${ac_cv_search_gethostbyname+:} false; then : | |
6753 $as_echo_n "(cached) " >&6 | |
6754 else | |
6755 ac_func_search_save_LIBS=$LIBS | |
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6757 /* end confdefs.h. */ | |
6758 | |
6759 /* Override any GCC internal prototype to avoid an error. | |
6760 Use char because int might match the return type of a GCC | |
6761 builtin and then its argument prototype would still apply. */ | |
6762 #ifdef __cplusplus | |
6763 extern "C" | |
6764 #endif | |
6765 char gethostbyname (); | |
6766 int | |
6767 main () | |
6768 { | |
6769 return gethostbyname (); | |
6770 ; | |
6771 return 0; | |
6772 } | |
6773 _ACEOF | |
6774 for ac_lib in '' inet; do | |
6775 if test -z "$ac_lib"; then | |
6776 ac_res="none required" | |
6777 else | |
6778 ac_res=-l$ac_lib | |
6779 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6780 fi | |
6781 if ac_fn_c_try_link "$LINENO"; then : | |
6782 ac_cv_search_gethostbyname=$ac_res | |
6783 fi | |
6784 rm -f core conftest.err conftest.$ac_objext \ | |
6785 conftest$ac_exeext | |
6786 if ${ac_cv_search_gethostbyname+:} false; then : | |
6787 break | |
6788 fi | |
6789 done | |
6790 if ${ac_cv_search_gethostbyname+:} false; then : | |
6791 | |
6792 else | |
6793 ac_cv_search_gethostbyname=no | |
6794 fi | |
6795 rm conftest.$ac_ext | |
6796 LIBS=$ac_func_search_save_LIBS | |
6797 fi | |
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | |
6799 $as_echo "$ac_cv_search_gethostbyname" >&6; } | |
6800 ac_res=$ac_cv_search_gethostbyname | |
6801 if test "$ac_res" != no; then : | |
6802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6803 | |
6804 fi | |
6805 # Sequent | |
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
6807 $as_echo_n "checking for library containing socket... " >&6; } | |
6808 if ${ac_cv_search_socket+:} false; then : | |
6809 $as_echo_n "(cached) " >&6 | |
6810 else | |
6811 ac_func_search_save_LIBS=$LIBS | |
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6813 /* end confdefs.h. */ | |
6814 | |
6815 /* Override any GCC internal prototype to avoid an error. | |
6816 Use char because int might match the return type of a GCC | |
6817 builtin and then its argument prototype would still apply. */ | |
6818 #ifdef __cplusplus | |
6819 extern "C" | |
6820 #endif | |
6821 char socket (); | |
6822 int | |
6823 main () | |
6824 { | |
6825 return socket (); | |
6826 ; | |
6827 return 0; | |
6828 } | |
6829 _ACEOF | |
6830 for ac_lib in '' socket; do | |
6831 if test -z "$ac_lib"; then | |
6832 ac_res="none required" | |
6833 else | |
6834 ac_res=-l$ac_lib | |
6835 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6836 fi | |
6837 if ac_fn_c_try_link "$LINENO"; then : | |
6838 ac_cv_search_socket=$ac_res | |
6839 fi | |
6840 rm -f core conftest.err conftest.$ac_objext \ | |
6841 conftest$ac_exeext | |
6842 if ${ac_cv_search_socket+:} false; then : | |
6843 break | |
6844 fi | |
6845 done | |
6846 if ${ac_cv_search_socket+:} false; then : | |
6847 | |
6848 else | |
6849 ac_cv_search_socket=no | |
6850 fi | |
6851 rm conftest.$ac_ext | |
6852 LIBS=$ac_func_search_save_LIBS | |
6853 fi | |
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
6855 $as_echo "$ac_cv_search_socket" >&6; } | |
6856 ac_res=$ac_cv_search_socket | |
6857 if test "$ac_res" != no; then : | |
6858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6859 | |
6860 fi | |
6861 # SVR4 sockets | |
6862 | |
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swill_init in -lswill" >&5 | |
6864 $as_echo_n "checking for swill_init in -lswill... " >&6; } | |
6865 if ${ac_cv_lib_swill_swill_init+:} false; then : | |
6866 $as_echo_n "(cached) " >&6 | |
6867 else | |
6868 ac_check_lib_save_LIBS=$LIBS | |
6869 LIBS="-lswill $LIBS" | |
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6871 /* end confdefs.h. */ | |
6872 | |
6873 /* Override any GCC internal prototype to avoid an error. | |
6874 Use char because int might match the return type of a GCC | |
6875 builtin and then its argument prototype would still apply. */ | |
6876 #ifdef __cplusplus | |
6877 extern "C" | |
6878 #endif | |
6879 char swill_init (); | |
6880 int | |
6881 main () | |
6882 { | |
6883 return swill_init (); | |
6884 ; | |
6885 return 0; | |
6886 } | |
6887 _ACEOF | |
6888 if ac_fn_c_try_link "$LINENO"; then : | |
6889 ac_cv_lib_swill_swill_init=yes | |
6890 else | |
6891 ac_cv_lib_swill_swill_init=no | |
6892 fi | |
6893 rm -f core conftest.err conftest.$ac_objext \ | |
6894 conftest$ac_exeext conftest.$ac_ext | |
6895 LIBS=$ac_check_lib_save_LIBS | |
6896 fi | |
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swill_swill_init" >&5 | |
6898 $as_echo "$ac_cv_lib_swill_swill_init" >&6; } | |
6899 if test "x$ac_cv_lib_swill_swill_init" = xyes; then : | |
6900 SWIGLIBS="-lswill $LIBS" SWILL="-DSWIG_SWILL" | |
6901 fi | |
6902 | |
6903 | |
6904 | |
6905 | |
6906 # check for --with-libm=... | |
6907 | |
6908 LIBM=-lm | |
6909 | |
6910 # Check whether --with-libm was given. | |
6911 if test "${with_libm+set}" = set; then : | |
6912 withval=$with_libm; | |
6913 if test "$withval" != yes | |
6914 then LIBM=$withval | |
6915 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 | |
6916 fi | |
6917 fi | |
6918 | |
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5 | |
6920 $as_echo_n "checking for main in -lieee... " >&6; } | |
6921 if ${ac_cv_lib_ieee_main+:} false; then : | |
6922 $as_echo_n "(cached) " >&6 | |
6923 else | |
6924 ac_check_lib_save_LIBS=$LIBS | |
6925 LIBS="-lieee $LIBS" | |
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6927 /* end confdefs.h. */ | |
6928 | |
6929 | |
6930 int | |
6931 main () | |
6932 { | |
6933 return main (); | |
6934 ; | |
6935 return 0; | |
6936 } | |
6937 _ACEOF | |
6938 if ac_fn_c_try_link "$LINENO"; then : | |
6939 ac_cv_lib_ieee_main=yes | |
6940 else | |
6941 ac_cv_lib_ieee_main=no | |
6942 fi | |
6943 rm -f core conftest.err conftest.$ac_objext \ | |
6944 conftest$ac_exeext conftest.$ac_ext | |
6945 LIBS=$ac_check_lib_save_LIBS | |
6946 fi | |
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5 | |
6948 $as_echo "$ac_cv_lib_ieee_main" >&6; } | |
6949 if test "x$ac_cv_lib_ieee_main" = xyes; then : | |
6950 LIBM="-lieee $LIBM" | |
6951 fi | |
6952 | |
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | |
6954 $as_echo_n "checking for crypt in -lcrypt... " >&6; } | |
6955 if ${ac_cv_lib_crypt_crypt+:} false; then : | |
6956 $as_echo_n "(cached) " >&6 | |
6957 else | |
6958 ac_check_lib_save_LIBS=$LIBS | |
6959 LIBS="-lcrypt $LIBS" | |
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6961 /* end confdefs.h. */ | |
6962 | |
6963 /* Override any GCC internal prototype to avoid an error. | |
6964 Use char because int might match the return type of a GCC | |
6965 builtin and then its argument prototype would still apply. */ | |
6966 #ifdef __cplusplus | |
6967 extern "C" | |
6968 #endif | |
6969 char crypt (); | |
6970 int | |
6971 main () | |
6972 { | |
6973 return crypt (); | |
6974 ; | |
6975 return 0; | |
6976 } | |
6977 _ACEOF | |
6978 if ac_fn_c_try_link "$LINENO"; then : | |
6979 ac_cv_lib_crypt_crypt=yes | |
6980 else | |
6981 ac_cv_lib_crypt_crypt=no | |
6982 fi | |
6983 rm -f core conftest.err conftest.$ac_objext \ | |
6984 conftest$ac_exeext conftest.$ac_ext | |
6985 LIBS=$ac_check_lib_save_LIBS | |
6986 fi | |
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | |
6988 $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | |
6989 if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | |
6990 LIBCRYPT="-lcrypt" | |
6991 fi | |
6992 | |
6993 | |
6994 | |
6995 # check for --with-libc=... | |
6996 | |
6997 | |
6998 # Check whether --with-libc was given. | |
6999 if test "${with_libc+set}" = set; then : | |
7000 withval=$with_libc; | |
7001 if test "$withval" != yes | |
7002 then LIBC=$withval | |
7003 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 | |
7004 fi | |
7005 fi | |
7006 | |
7007 | |
7008 #-------------------------------------------------------------------- | |
7009 # Locate the X11 header files and the X11 library archive. Try | |
7010 # the ac_path_x macro first, but if it doesn't find the X stuff | |
7011 # (e.g. because there's no xmkmf program) then check through | |
7012 # a list of possible directories. Under some conditions the | |
7013 # autoconf macro will return an include directory that contains | |
7014 # no include files, so double-check its result just to be safe. | |
7015 #-------------------------------------------------------------------- | |
7016 | |
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | |
7018 $as_echo_n "checking for X... " >&6; } | |
7019 | |
7020 | |
7021 # Check whether --with-x was given. | |
7022 if test "${with_x+set}" = set; then : | |
7023 withval=$with_x; | |
7024 fi | |
7025 | |
7026 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
7027 if test "x$with_x" = xno; then | |
7028 # The user explicitly disabled X. | |
7029 have_x=disabled | |
7030 else | |
7031 case $x_includes,$x_libraries in #( | |
7032 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( | |
7033 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : | |
7034 $as_echo_n "(cached) " >&6 | |
7035 else | |
7036 # One or both of the vars are not set, and there is no cached value. | |
7037 ac_x_includes=no ac_x_libraries=no | |
7038 rm -f -r conftest.dir | |
7039 if mkdir conftest.dir; then | |
7040 cd conftest.dir | |
7041 cat >Imakefile <<'_ACEOF' | |
7042 incroot: | |
7043 @echo incroot='${INCROOT}' | |
7044 usrlibdir: | |
7045 @echo usrlibdir='${USRLIBDIR}' | |
7046 libdir: | |
7047 @echo libdir='${LIBDIR}' | |
7048 _ACEOF | |
7049 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
7050 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
7051 for ac_var in incroot usrlibdir libdir; do | |
7052 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
7053 done | |
7054 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7055 for ac_extension in a so sl dylib la dll; do | |
7056 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | |
7057 test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
7058 ac_im_usrlibdir=$ac_im_libdir; break | |
7059 fi | |
7060 done | |
7061 # Screen out bogus values from the imake configuration. They are | |
7062 # bogus both because they are the default anyway, and because | |
7063 # using them would break gcc on systems where it needs fixed includes. | |
7064 case $ac_im_incroot in | |
7065 /usr/include) ac_x_includes= ;; | |
7066 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
7067 esac | |
7068 case $ac_im_usrlibdir in | |
7069 /usr/lib | /usr/lib64 | /lib | /lib64) ;; | |
7070 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
7071 esac | |
7072 fi | |
7073 cd .. | |
7074 rm -f -r conftest.dir | |
7075 fi | |
7076 | |
7077 # Standard set of common directories for X headers. | |
7078 # Check X11 before X11Rn because it is often a symlink to the current release. | |
7079 ac_x_header_dirs=' | |
7080 /usr/X11/include | |
7081 /usr/X11R7/include | |
7082 /usr/X11R6/include | |
7083 /usr/X11R5/include | |
7084 /usr/X11R4/include | |
7085 | |
7086 /usr/include/X11 | |
7087 /usr/include/X11R7 | |
7088 /usr/include/X11R6 | |
7089 /usr/include/X11R5 | |
7090 /usr/include/X11R4 | |
7091 | |
7092 /usr/local/X11/include | |
7093 /usr/local/X11R7/include | |
7094 /usr/local/X11R6/include | |
7095 /usr/local/X11R5/include | |
7096 /usr/local/X11R4/include | |
7097 | |
7098 /usr/local/include/X11 | |
7099 /usr/local/include/X11R7 | |
7100 /usr/local/include/X11R6 | |
7101 /usr/local/include/X11R5 | |
7102 /usr/local/include/X11R4 | |
7103 | |
7104 /usr/X386/include | |
7105 /usr/x386/include | |
7106 /usr/XFree86/include/X11 | |
7107 | |
7108 /usr/include | |
7109 /usr/local/include | |
7110 /usr/unsupported/include | |
7111 /usr/athena/include | |
7112 /usr/local/x11r5/include | |
7113 /usr/lpp/Xamples/include | |
7114 | |
7115 /usr/openwin/include | |
7116 /usr/openwin/share/include' | |
7117 | |
7118 if test "$ac_x_includes" = no; then | |
7119 # Guess where to find include files, by looking for Xlib.h. | |
7120 # First, try using that file with no special directory specified. | |
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7122 /* end confdefs.h. */ | |
7123 #include <X11/Xlib.h> | |
7124 _ACEOF | |
7125 if ac_fn_c_try_cpp "$LINENO"; then : | |
7126 # We can compile using X headers with no special include directory. | |
7127 ac_x_includes= | |
7128 else | |
7129 for ac_dir in $ac_x_header_dirs; do | |
7130 if test -r "$ac_dir/X11/Xlib.h"; then | |
7131 ac_x_includes=$ac_dir | |
7132 break | |
7133 fi | |
7134 done | |
7135 fi | |
7136 rm -f conftest.err conftest.i conftest.$ac_ext | |
7137 fi # $ac_x_includes = no | |
7138 | |
7139 if test "$ac_x_libraries" = no; then | |
7140 # Check for the libraries. | |
7141 # See if we find them without any special options. | |
7142 # Don't add to $LIBS permanently. | |
7143 ac_save_LIBS=$LIBS | |
7144 LIBS="-lX11 $LIBS" | |
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7146 /* end confdefs.h. */ | |
7147 #include <X11/Xlib.h> | |
7148 int | |
7149 main () | |
7150 { | |
7151 XrmInitialize () | |
7152 ; | |
7153 return 0; | |
7154 } | |
7155 _ACEOF | |
7156 if ac_fn_c_try_link "$LINENO"; then : | |
7157 LIBS=$ac_save_LIBS | |
7158 # We can link X programs with no special library path. | |
7159 ac_x_libraries= | |
7160 else | |
7161 LIBS=$ac_save_LIBS | |
7162 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
7163 do | |
7164 # Don't even attempt the hair of trying to link an X program! | |
7165 for ac_extension in a so sl dylib la dll; do | |
7166 if test -r "$ac_dir/libX11.$ac_extension"; then | |
7167 ac_x_libraries=$ac_dir | |
7168 break 2 | |
7169 fi | |
7170 done | |
7171 done | |
7172 fi | |
7173 rm -f core conftest.err conftest.$ac_objext \ | |
7174 conftest$ac_exeext conftest.$ac_ext | |
7175 fi # $ac_x_libraries = no | |
7176 | |
7177 case $ac_x_includes,$ac_x_libraries in #( | |
7178 no,* | *,no | *\'*) | |
7179 # Didn't find X, or a directory has "'" in its name. | |
7180 ac_cv_have_x="have_x=no";; #( | |
7181 *) | |
7182 # Record where we found X for the cache. | |
7183 ac_cv_have_x="have_x=yes\ | |
7184 ac_x_includes='$ac_x_includes'\ | |
7185 ac_x_libraries='$ac_x_libraries'" | |
7186 esac | |
7187 fi | |
7188 ;; #( | |
7189 *) have_x=yes;; | |
7190 esac | |
7191 eval "$ac_cv_have_x" | |
7192 fi # $with_x != no | |
7193 | |
7194 if test "$have_x" != yes; then | |
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | |
7196 $as_echo "$have_x" >&6; } | |
7197 no_x=yes | |
7198 else | |
7199 # If each of the values was on the command line, it overrides each guess. | |
7200 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7201 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7202 # Update the cache value to reflect the command line values. | |
7203 ac_cv_have_x="have_x=yes\ | |
7204 ac_x_includes='$x_includes'\ | |
7205 ac_x_libraries='$x_libraries'" | |
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | |
7207 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | |
7208 fi | |
7209 | |
7210 not_really_there="" | |
7211 if test "$no_x" = ""; then | |
7212 if test "$x_includes" = ""; then | |
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7214 /* end confdefs.h. */ | |
7215 #include <X11/XIntrinsic.h> | |
7216 _ACEOF | |
7217 if ac_fn_c_try_cpp "$LINENO"; then : | |
7218 | |
7219 else | |
7220 not_really_there="yes" | |
7221 fi | |
7222 rm -f conftest.err conftest.i conftest.$ac_ext | |
7223 else | |
7224 if test ! -r $x_includes/X11/Intrinsic.h; then | |
7225 not_really_there="yes" | |
7226 fi | |
7227 fi | |
7228 fi | |
7229 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then | |
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5 | |
7231 $as_echo_n "checking for X11 header files... " >&6; } | |
7232 XINCLUDES="# no special path needed" | |
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7234 /* end confdefs.h. */ | |
7235 #include <X11/Intrinsic.h> | |
7236 _ACEOF | |
7237 if ac_fn_c_try_cpp "$LINENO"; then : | |
7238 | |
7239 else | |
7240 XINCLUDES="" | |
7241 fi | |
7242 rm -f conftest.err conftest.i conftest.$ac_ext | |
7243 if test -z "$XINCLUDES"; then | |
7244 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include /usr/sww/include /usr/X11R6/include /usr/include/X11R6" | |
7245 for i in $dirs ; do | |
7246 if test -r $i/X11/Intrinsic.h; then | |
7247 XINCLUDES=" -I$i" | |
7248 break | |
7249 fi | |
7250 done | |
7251 fi | |
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XINCLUDES" >&5 | |
7253 $as_echo "$XINCLUDES" >&6; } | |
7254 else | |
7255 if test "$x_includes" != ""; then | |
7256 XINCLUDES=-I$x_includes | |
7257 else | |
7258 XINCLUDES="# no special path needed" | |
7259 fi | |
7260 fi | |
7261 if test -z "$XINCLUDES"; then | |
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5 | |
7263 $as_echo "couldn't find any!" >&6; } | |
7264 XINCLUDES="# no include files found" | |
7265 fi | |
7266 | |
7267 if test "$no_x" = yes; then | |
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5 | |
7269 $as_echo_n "checking for X11 libraries... " >&6; } | |
7270 XLIBSW= | |
7271 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/X11R6/lib /usr/lib/X11R6 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib" | |
7272 for i in $dirs ; do | |
7273 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl; then | |
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 | |
7275 $as_echo "$i" >&6; } | |
7276 XLIBSW="-L$i -lX11" | |
7277 break | |
7278 fi | |
7279 done | |
7280 else | |
7281 if test "$x_libraries" = ""; then | |
7282 XLIBSW=-lX11 | |
7283 else | |
7284 XLIBSW="-L$x_libraries -lX11" | |
7285 fi | |
7286 fi | |
7287 if test -z "$XLIBSW" ; then | |
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5 | |
7289 $as_echo_n "checking for XCreateWindow in -lXwindow... " >&6; } | |
7290 if ${ac_cv_lib_Xwindow_XCreateWindow+:} false; then : | |
7291 $as_echo_n "(cached) " >&6 | |
7292 else | |
7293 ac_check_lib_save_LIBS=$LIBS | |
7294 LIBS="-lXwindow $LIBS" | |
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7296 /* end confdefs.h. */ | |
7297 | |
7298 /* Override any GCC internal prototype to avoid an error. | |
7299 Use char because int might match the return type of a GCC | |
7300 builtin and then its argument prototype would still apply. */ | |
7301 #ifdef __cplusplus | |
7302 extern "C" | |
7303 #endif | |
7304 char XCreateWindow (); | |
7305 int | |
7306 main () | |
7307 { | |
7308 return XCreateWindow (); | |
7309 ; | |
7310 return 0; | |
7311 } | |
7312 _ACEOF | |
7313 if ac_fn_c_try_link "$LINENO"; then : | |
7314 ac_cv_lib_Xwindow_XCreateWindow=yes | |
7315 else | |
7316 ac_cv_lib_Xwindow_XCreateWindow=no | |
7317 fi | |
7318 rm -f core conftest.err conftest.$ac_objext \ | |
7319 conftest$ac_exeext conftest.$ac_ext | |
7320 LIBS=$ac_check_lib_save_LIBS | |
7321 fi | |
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5 | |
7323 $as_echo "$ac_cv_lib_Xwindow_XCreateWindow" >&6; } | |
7324 if test "x$ac_cv_lib_Xwindow_XCreateWindow" = xyes; then : | |
7325 XLIBSW=-lXwindow | |
7326 fi | |
7327 | |
7328 fi | |
7329 if test -z "$XLIBSW" ; then | |
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: couldn't find any! Using -lX11." >&5 | |
7331 $as_echo "couldn't find any! Using -lX11." >&6; } | |
7332 XLIBSW=-lX11 | |
7333 fi | |
7334 | |
7335 | |
7336 | |
7337 | |
7338 | |
7339 # Check whether --with-alllang was given. | |
7340 if test "${with_alllang+set}" = set; then : | |
7341 withval=$with_alllang; with_alllang="$withval" | |
7342 fi | |
7343 | |
7344 | |
7345 #-------------------------------------------------------------------- | |
7346 # Look for Tcl | |
7347 #-------------------------------------------------------------------- | |
7348 | |
7349 TCLINCLUDE= | |
7350 TCLLIB= | |
7351 TCLPACKAGE= | |
7352 | |
7353 | |
7354 # Check whether --with-tclconfig was given. | |
7355 if test "${with_tclconfig+set}" = set; then : | |
7356 withval=$with_tclconfig; with_tclconfig="$withval" | |
7357 else | |
7358 with_tclconfig= | |
7359 fi | |
7360 | |
7361 | |
7362 # Check whether --with-tcl was given. | |
7363 if test "${with_tcl+set}" = set; then : | |
7364 withval=$with_tcl; | |
7365 TCLPACKAGE="$withval" | |
7366 else | |
7367 TCLPACKAGE=yes | |
7368 fi | |
7369 | |
7370 | |
7371 # Check whether --with-tclincl was given. | |
7372 if test "${with_tclincl+set}" = set; then : | |
7373 withval=$with_tclincl; | |
7374 TCLINCLUDE="$ISYSTEM$withval" | |
7375 else | |
7376 TCLINCLUDE= | |
7377 fi | |
7378 | |
7379 | |
7380 # Check whether --with-tcllib was given. | |
7381 if test "${with_tcllib+set}" = set; then : | |
7382 withval=$with_tcllib; | |
7383 TCLLIB="-L$withval" | |
7384 else | |
7385 TCLLIB= | |
7386 fi | |
7387 | |
7388 | |
7389 # First, check for "--without-tcl" or "--with-tcl=no". | |
7390 if test x"${TCLPACKAGE}" = xno -o x"${with_alllang}" = xno; then | |
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Tcl" >&5 | |
7392 $as_echo "$as_me: Disabling Tcl" >&6;} | |
7393 else | |
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 | |
7395 $as_echo_n "checking for Tcl configuration... " >&6; } | |
7396 # First check to see if --with-tclconfig was specified. | |
7397 if test x"${with_tclconfig}" != x ; then | |
7398 if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
7399 TCLCONFIG=`(cd ${with_tclconfig}; pwd)` | |
7400 else | |
7401 as_fn_error $? "${with_tcl} directory doesn't contain tclConfig.sh" "$LINENO" 5 | |
7402 fi | |
7403 fi | |
7404 # check in a few common install locations | |
7405 if test x"${TCLCONFIG}" = x ; then | |
7406 for i in `ls -d /usr/lib/ 2>/dev/null` \ | |
7407 `ls -d -r /usr/lib/tcl*/ 2>/dev/null` \ | |
7408 `ls -d /usr/local/lib/ 2>/dev/null` \ | |
7409 `ls -d -r /usr/local/lib/tcl*/ 2>/dev/null` ; do | |
7410 if test -f $i"tclConfig.sh" ; then | |
7411 TCLCONFIG=`(cd $i; pwd)` | |
7412 break | |
7413 fi | |
7414 done | |
7415 fi | |
7416 if test x"${TCLCONFIG}" = x ; then | |
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7418 $as_echo "no" >&6; } | |
7419 else | |
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCLCONFIG/tclConfig.sh" >&5 | |
7421 $as_echo "found $TCLCONFIG/tclConfig.sh" >&6; } | |
7422 . $TCLCONFIG/tclConfig.sh | |
7423 if test -z "$TCLINCLUDE"; then | |
7424 TCLINCLUDE=`echo $TCL_INCLUDE_SPEC | sed "s/-I/$ISYSTEM/"` | |
7425 fi | |
7426 if test -z "$TCLLIB"; then | |
7427 TCLLIB=$TCL_LIB_SPEC | |
7428 fi | |
7429 fi | |
7430 | |
7431 if test -z "$TCLINCLUDE"; then | |
7432 if test "x$TCLPACKAGE" != xyes; then | |
7433 TCLINCLUDE="$ISYSTEM$TCLPACKAGE/include" | |
7434 fi | |
7435 fi | |
7436 | |
7437 if test -z "$TCLLIB"; then | |
7438 if test "x$TCLPACKAGE" != xyes; then | |
7439 TCLLIB="-L$TCLPACKAGE/lib -ltcl" | |
7440 fi | |
7441 fi | |
7442 | |
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header files" >&5 | |
7444 $as_echo_n "checking for Tcl header files... " >&6; } | |
7445 if test -z "$TCLINCLUDE"; then | |
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7447 /* end confdefs.h. */ | |
7448 #include <tcl.h> | |
7449 _ACEOF | |
7450 if ac_fn_c_try_cpp "$LINENO"; then : | |
7451 | |
7452 else | |
7453 TCLINCLUDE="" | |
7454 fi | |
7455 rm -f conftest.err conftest.i conftest.$ac_ext | |
7456 if test -z "$TCLINCLUDE"; then | |
7457 dirs="/usr/local/include /usr/include /opt/local/include" | |
7458 for i in $dirs ; do | |
7459 if test -r $i/tcl.h; then | |
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 | |
7461 $as_echo "$i" >&6; } | |
7462 TCLINCLUDE="$ISYSTEM$i" | |
7463 break | |
7464 fi | |
7465 done | |
7466 fi | |
7467 if test -z "$TCLINCLUDE"; then | |
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
7469 $as_echo "not found" >&6; } | |
7470 fi | |
7471 else | |
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLINCLUDE" >&5 | |
7473 $as_echo "$TCLINCLUDE" >&6; } | |
7474 fi | |
7475 | |
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5 | |
7477 $as_echo_n "checking for Tcl library... " >&6; } | |
7478 if test -z "$TCLLIB"; then | |
7479 dirs="/usr/local/lib /usr/lib /opt/local/lib" | |
7480 for i in $dirs ; do | |
7481 if test -r $i/libtcl.a; then | |
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 | |
7483 $as_echo "$i" >&6; } | |
7484 TCLLIB="-L$i -ltcl" | |
7485 break | |
7486 fi | |
7487 done | |
7488 if test -z "$TCLLIB"; then | |
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
7490 $as_echo "not found" >&6; } | |
7491 fi | |
7492 else | |
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLLIB" >&5 | |
7494 $as_echo "$TCLLIB" >&6; } | |
7495 fi | |
7496 | |
7497 # Cygwin (Windows) needs the library for dynamic linking | |
7498 case $host in | |
7499 *-*-cygwin* | *-*-mingw*) TCLDYNAMICLINKING="$TCLLIB";; | |
7500 *)TCLDYNAMICLINKING="";; | |
7501 esac | |
7502 | |
7503 case $host in | |
7504 *-*-darwin*) | |
7505 TCLLDSHARED='$(CC) -dynamiclib -undefined suppress -flat_namespace' | |
7506 TCLCXXSHARED='$(CXX) -dynamiclib -undefined suppress -flat_namespace' | |
7507 ;; | |
7508 *) | |
7509 TCLLDSHARED='$(LDSHARED)' | |
7510 TCLCXXSHARED='$(CXXSHARED)' | |
7511 ;; | |
7512 esac | |
7513 | |
7514 fi | |
7515 | |
7516 | |
7517 | |
7518 | |
7519 | |
7520 | |
7521 | |
7522 #---------------------------------------------------------------- | |
7523 # Look for Python | |
7524 #---------------------------------------------------------------- | |
7525 | |
7526 PYINCLUDE= | |
7527 PYLIB= | |
7528 PYPACKAGE= | |
7529 | |
7530 | |
7531 # Check whether --with-python was given. | |
7532 if test "${with_python+set}" = set; then : | |
7533 withval=$with_python; PYBIN="$withval" | |
7534 else | |
7535 PYBIN=yes | |
7536 fi | |
7537 | |
7538 | |
7539 # First, check for "--without-python" or "--with-python=no". | |
7540 if test x"${PYBIN}" = xno -o x"${with_alllang}" = xno ; then | |
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Python" >&5 | |
7542 $as_echo "$as_me: Disabling Python" >&6;} | |
7543 else | |
7544 # First figure out the name of the Python executable | |
7545 if test "x$PYBIN" = xyes; then | |
7546 for ac_prog in python python2.8 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 | |
7547 do | |
7548 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7549 set dummy $ac_prog; ac_word=$2 | |
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7551 $as_echo_n "checking for $ac_word... " >&6; } | |
7552 if ${ac_cv_prog_PYTHON+:} false; then : | |
7553 $as_echo_n "(cached) " >&6 | |
7554 else | |
7555 if test -n "$PYTHON"; then | |
7556 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. | |
7557 else | |
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7559 for as_dir in $PATH | |
7560 do | |
7561 IFS=$as_save_IFS | |
7562 test -z "$as_dir" && as_dir=. | |
7563 for ac_exec_ext in '' $ac_executable_extensions; do | |
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7565 ac_cv_prog_PYTHON="$ac_prog" | |
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7567 break 2 | |
7568 fi | |
7569 done | |
7570 done | |
7571 IFS=$as_save_IFS | |
7572 | |
7573 fi | |
7574 fi | |
7575 PYTHON=$ac_cv_prog_PYTHON | |
7576 if test -n "$PYTHON"; then | |
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
7578 $as_echo "$PYTHON" >&6; } | |
7579 else | |
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7581 $as_echo "no" >&6; } | |
7582 fi | |
7583 | |
7584 | |
7585 test -n "$PYTHON" && break | |
7586 done | |
7587 | |
7588 else | |
7589 PYTHON="$PYBIN" | |
7590 fi | |
7591 | |
7592 if test -n "$PYTHON"; then | |
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python prefix" >&5 | |
7594 $as_echo_n "checking for Python prefix... " >&6; } | |
7595 PYPREFIX=`($PYTHON -c "import sys; print sys.prefix") 2>/dev/null` | |
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYPREFIX" >&5 | |
7597 $as_echo "$PYPREFIX" >&6; } | |
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python exec-prefix" >&5 | |
7599 $as_echo_n "checking for Python exec-prefix... " >&6; } | |
7600 PYEPREFIX=`($PYTHON -c "import sys; print sys.exec_prefix") 2>/dev/null` | |
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYEPREFIX" >&5 | |
7602 $as_echo "$PYEPREFIX" >&6; } | |
7603 | |
7604 | |
7605 # Note: I could not think of a standard way to get the version string from different versions. | |
7606 # This trick pulls it out of the file location for a standard library file. | |
7607 | |
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5 | |
7609 $as_echo_n "checking for Python version... " >&6; } | |
7610 | |
7611 # Need to do this hack since autoconf replaces __file__ with the name of the configure file | |
7612 filehack="file__" | |
7613 PYVERSION=`($PYTHON -c "import string,operator,os.path; print operator.getitem(os.path.split(operator.getitem(os.path.split(string.__$filehack),0)),1)")` | |
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVERSION" >&5 | |
7615 $as_echo "$PYVERSION" >&6; } | |
7616 | |
7617 # Find the directory for libraries this is necessary to deal with | |
7618 # platforms that can have apps built for multiple archs: e.g. x86_64 | |
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python lib dir" >&5 | |
7620 $as_echo_n "checking for Python lib dir... " >&6; } | |
7621 PYLIBDIR=`($PYTHON -c "import sys; print sys.lib") 2>/dev/null` | |
7622 if test -z "$PYLIBDIR"; then | |
7623 # Fedora patch Python to add sys.lib, for other distros we assume "lib". | |
7624 PYLIBDIR="lib" | |
7625 fi | |
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYLIBDIR" >&5 | |
7627 $as_echo "$PYLIBDIR" >&6; } | |
7628 | |
7629 # Set the include directory | |
7630 | |
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python header files" >&5 | |
7632 $as_echo_n "checking for Python header files... " >&6; } | |
7633 if test -r $PYPREFIX/include/$PYVERSION/Python.h; then | |
7634 PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYEPREFIX/$PYLIBDIR/$PYVERSION/config" | |
7635 fi | |
7636 if test -z "$PYINCLUDE"; then | |
7637 if test -r $PYPREFIX/include/Py/Python.h; then | |
7638 PYINCLUDE="-I$PYPREFIX/include/Py -I$PYEPREFIX/$PYLIBDIR/python/lib" | |
7639 fi | |
7640 fi | |
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYINCLUDE" >&5 | |
7642 $as_echo "$PYINCLUDE" >&6; } | |
7643 | |
7644 # Set the library directory blindly. This probably won't work with older versions | |
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library" >&5 | |
7646 $as_echo_n "checking for Python library... " >&6; } | |
7647 dirs="$PYVERSION/config $PYVERSION/$PYLIBDIR python/$PYLIBDIR" | |
7648 for i in $dirs; do | |
7649 if test -d $PYEPREFIX/$PYLIBDIR/$i; then | |
7650 PYLIB="$PYEPREFIX/$PYLIBDIR/$i" | |
7651 break | |
7652 fi | |
7653 done | |
7654 if test -z "$PYLIB"; then | |
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
7656 $as_echo "Not found" >&6; } | |
7657 else | |
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYLIB" >&5 | |
7659 $as_echo "$PYLIB" >&6; } | |
7660 fi | |
7661 | |
7662 PYLINK="-l$PYVERSION" | |
7663 fi | |
7664 | |
7665 # Cygwin (Windows) needs the library for dynamic linking | |
7666 case $host in | |
7667 *-*-cygwin* | *-*-mingw*) | |
7668 PYTHONDYNAMICLINKING="-L$PYLIB $PYLINK" | |
7669 DEFS="-DUSE_DL_IMPORT $DEFS" | |
7670 ;; | |
7671 *)PYTHONDYNAMICLINKING="";; | |
7672 esac | |
7673 fi | |
7674 | |
7675 | |
7676 | |
7677 | |
7678 | |
7679 | |
7680 | |
7681 #---------------------------------------------------------------- | |
7682 # Look for Python 3.x | |
7683 #---------------------------------------------------------------- | |
7684 | |
7685 # mostly copy & pasted from "Look for Python" section, | |
7686 # did some trim, fix and rename | |
7687 | |
7688 PY3INCLUDE= | |
7689 PY3LIB= | |
7690 PY3PACKAGE= | |
7691 | |
7692 | |
7693 # Check whether --with-python3 was given. | |
7694 if test "${with_python3+set}" = set; then : | |
7695 withval=$with_python3; PY3BIN="$withval" | |
7696 else | |
7697 PY3BIN=yes | |
7698 fi | |
7699 | |
7700 | |
7701 # First, check for "--without-python3" or "--with-python3=no". | |
7702 if test x"${PY3BIN}" = xno -o x"${with_alllang}" = xno ; then | |
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Python 3.x support" >&5 | |
7704 $as_echo "$as_me: Disabling Python 3.x support" >&6;} | |
7705 else | |
7706 for py_ver in 3 3.6 3.5 3.4 3.3 3.2 3.1 3.0; do | |
7707 for ac_prog in python$py_ver | |
7708 do | |
7709 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7710 set dummy $ac_prog; ac_word=$2 | |
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7712 $as_echo_n "checking for $ac_word... " >&6; } | |
7713 if ${ac_cv_prog_PYTHON3+:} false; then : | |
7714 $as_echo_n "(cached) " >&6 | |
7715 else | |
7716 if test -n "$PYTHON3"; then | |
7717 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. | |
7718 else | |
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7720 for as_dir in $PATH | |
7721 do | |
7722 IFS=$as_save_IFS | |
7723 test -z "$as_dir" && as_dir=. | |
7724 for ac_exec_ext in '' $ac_executable_extensions; do | |
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7726 ac_cv_prog_PYTHON3="$ac_prog" | |
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7728 break 2 | |
7729 fi | |
7730 done | |
7731 done | |
7732 IFS=$as_save_IFS | |
7733 | |
7734 fi | |
7735 fi | |
7736 PYTHON3=$ac_cv_prog_PYTHON3 | |
7737 if test -n "$PYTHON3"; then | |
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 | |
7739 $as_echo "$PYTHON3" >&6; } | |
7740 else | |
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7742 $as_echo "no" >&6; } | |
7743 fi | |
7744 | |
7745 | |
7746 test -n "$PYTHON3" && break | |
7747 done | |
7748 | |
7749 if test -n "$PYTHON3"; then | |
7750 for ac_prog in $PYTHON3-config | |
7751 do | |
7752 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7753 set dummy $ac_prog; ac_word=$2 | |
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7755 $as_echo_n "checking for $ac_word... " >&6; } | |
7756 if ${ac_cv_prog_PY3CONFIG+:} false; then : | |
7757 $as_echo_n "(cached) " >&6 | |
7758 else | |
7759 if test -n "$PY3CONFIG"; then | |
7760 ac_cv_prog_PY3CONFIG="$PY3CONFIG" # Let the user override the test. | |
7761 else | |
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7763 for as_dir in $PATH | |
7764 do | |
7765 IFS=$as_save_IFS | |
7766 test -z "$as_dir" && as_dir=. | |
7767 for ac_exec_ext in '' $ac_executable_extensions; do | |
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7769 ac_cv_prog_PY3CONFIG="$ac_prog" | |
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7771 break 2 | |
7772 fi | |
7773 done | |
7774 done | |
7775 IFS=$as_save_IFS | |
7776 | |
7777 fi | |
7778 fi | |
7779 PY3CONFIG=$ac_cv_prog_PY3CONFIG | |
7780 if test -n "$PY3CONFIG"; then | |
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3CONFIG" >&5 | |
7782 $as_echo "$PY3CONFIG" >&6; } | |
7783 else | |
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7785 $as_echo "no" >&6; } | |
7786 fi | |
7787 | |
7788 | |
7789 test -n "$PY3CONFIG" && break | |
7790 done | |
7791 | |
7792 if test -n "$PY3CONFIG"; then | |
7793 break | |
7794 fi | |
7795 fi | |
7796 done | |
7797 | |
7798 if test -n "$PYTHON3" -a -n "$PY3CONFIG"; then | |
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x prefix" >&5 | |
7800 $as_echo_n "checking for Python 3.x prefix... " >&6; } | |
7801 PY3PREFIX=`($PY3CONFIG --prefix) 2>/dev/null` | |
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3PREFIX" >&5 | |
7803 $as_echo "$PY3PREFIX" >&6; } | |
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x exec-prefix" >&5 | |
7805 $as_echo_n "checking for Python 3.x exec-prefix... " >&6; } | |
7806 PY3EPREFIX=`($PY3CONFIG --exec-prefix) 2>/dev/null` | |
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3EPREFIX" >&5 | |
7808 $as_echo "$PY3EPREFIX" >&6; } | |
7809 | |
7810 # Note: I could not think of a standard way to get the version string from different versions. | |
7811 # This trick pulls it out of the file location for a standard library file. | |
7812 | |
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x version" >&5 | |
7814 $as_echo_n "checking for Python 3.x version... " >&6; } | |
7815 | |
7816 # Need to do this hack since autoconf replaces __file__ with the name of the configure file | |
7817 filehack="file__" | |
7818 PY3VERSION=`($PYTHON3 -c "import string,operator,os.path; print(operator.getitem(os.path.split(operator.getitem(os.path.split(string.__$filehack),0)),1))")` | |
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3VERSION" >&5 | |
7820 $as_echo "$PY3VERSION" >&6; } | |
7821 | |
7822 # Find the directory for libraries this is necessary to deal with | |
7823 # platforms that can have apps built for multiple archs: e.g. x86_64 | |
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x lib dir" >&5 | |
7825 $as_echo_n "checking for Python 3.x lib dir... " >&6; } | |
7826 PY3LIBDIR=`($PYTHON3 -c "import sys; print(sys.lib)") 2>/dev/null` | |
7827 if test -z "$PY3LIBDIR"; then | |
7828 # some dists don't have sys.lib so the best we can do is assume lib | |
7829 PY3LIBDIR="lib" | |
7830 fi | |
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3LIBDIR" >&5 | |
7832 $as_echo "$PY3LIBDIR" >&6; } | |
7833 | |
7834 # Set the include directory | |
7835 | |
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x header files" >&5 | |
7837 $as_echo_n "checking for Python 3.x header files... " >&6; } | |
7838 PY3INCLUDE=`($PY3CONFIG --includes) 2>/dev/null` | |
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3INCLUDE" >&5 | |
7840 $as_echo "$PY3INCLUDE" >&6; } | |
7841 | |
7842 # Set the library directory blindly. This probably won't work with older versions | |
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3.x library" >&5 | |
7844 $as_echo_n "checking for Python 3.x library... " >&6; } | |
7845 dirs="$PY3VERSION/config $PY3VERSION/$PY3LIBDIR python/$PY3LIBDIR" | |
7846 for i in $dirs; do | |
7847 if test -d $PY3EPREFIX/$PY3LIBDIR/$i; then | |
7848 PY3LIB="$PY3EPREFIX/$PY3LIBDIR/$i" | |
7849 break | |
7850 fi | |
7851 done | |
7852 if test -z "$PY3LIB"; then | |
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
7854 $as_echo "Not found" >&6; } | |
7855 else | |
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY3LIB" >&5 | |
7857 $as_echo "$PY3LIB" >&6; } | |
7858 fi | |
7859 | |
7860 PY3LINK="-l$PY3VERSION" | |
7861 fi | |
7862 | |
7863 # Cygwin (Windows) needs the library for dynamic linking | |
7864 case $host in | |
7865 *-*-cygwin* | *-*-mingw*) | |
7866 PYTHON3DYNAMICLINKING="-L$PYLIB $PY3LINK" | |
7867 DEFS="-DUSE_DL_IMPORT $DEFS" | |
7868 ;; | |
7869 *)PYTHON3DYNAMICLINKING="";; | |
7870 esac | |
7871 fi | |
7872 | |
7873 | |
7874 | |
7875 | |
7876 | |
7877 | |
7878 | |
7879 #---------------------------------------------------------------- | |
7880 # Look for Perl5 | |
7881 #---------------------------------------------------------------- | |
7882 | |
7883 PERLBIN= | |
7884 | |
7885 | |
7886 # Check whether --with-perl5 was given. | |
7887 if test "${with_perl5+set}" = set; then : | |
7888 withval=$with_perl5; PERLBIN="$withval" | |
7889 else | |
7890 PERLBIN=yes | |
7891 fi | |
7892 | |
7893 | |
7894 # First, check for "--without-perl5" or "--with-perl5=no". | |
7895 if test x"${PERLBIN}" = xno -o x"${with_alllang}" = xno ; then | |
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Perl5" >&5 | |
7897 $as_echo "$as_me: Disabling Perl5" >&6;} | |
7898 PERL= | |
7899 else | |
7900 | |
7901 # First figure out what the name of Perl5 is | |
7902 | |
7903 if test "x$PERLBIN" = xyes; then | |
7904 for ac_prog in perl perl5.6.1 perl5.6.0 perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl | |
7905 do | |
7906 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7907 set dummy $ac_prog; ac_word=$2 | |
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7909 $as_echo_n "checking for $ac_word... " >&6; } | |
7910 if ${ac_cv_prog_PERL+:} false; then : | |
7911 $as_echo_n "(cached) " >&6 | |
7912 else | |
7913 if test -n "$PERL"; then | |
7914 ac_cv_prog_PERL="$PERL" # Let the user override the test. | |
7915 else | |
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7917 for as_dir in $PATH | |
7918 do | |
7919 IFS=$as_save_IFS | |
7920 test -z "$as_dir" && as_dir=. | |
7921 for ac_exec_ext in '' $ac_executable_extensions; do | |
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7923 ac_cv_prog_PERL="$ac_prog" | |
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7925 break 2 | |
7926 fi | |
7927 done | |
7928 done | |
7929 IFS=$as_save_IFS | |
7930 | |
7931 fi | |
7932 fi | |
7933 PERL=$ac_cv_prog_PERL | |
7934 if test -n "$PERL"; then | |
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
7936 $as_echo "$PERL" >&6; } | |
7937 else | |
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7939 $as_echo "no" >&6; } | |
7940 fi | |
7941 | |
7942 | |
7943 test -n "$PERL" && break | |
7944 done | |
7945 | |
7946 else | |
7947 PERL="$PERLBIN" | |
7948 fi | |
7949 | |
7950 | |
7951 # This could probably be simplified as for all platforms and all versions of Perl the following apparently should be run to get the compilation options: | |
7952 # perl -MExtUtils::Embed -e ccopts | |
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 header files" >&5 | |
7954 $as_echo_n "checking for Perl5 header files... " >&6; } | |
7955 if test -n "$PERL"; then | |
7956 PERL5DIR=`($PERL -e 'use Config; print $Config{archlib}, "\n";') 2>/dev/null` | |
7957 if test -n "$PERL5DIR" ; then | |
7958 dirs="$PERL5DIR $PERL5DIR/CORE" | |
7959 PERL5EXT=none | |
7960 for i in $dirs; do | |
7961 if test -r $i/perl.h; then | |
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 | |
7963 $as_echo "$i" >&6; } | |
7964 PERL5EXT="$i" | |
7965 break | |
7966 fi | |
7967 done | |
7968 if test "$PERL5EXT" = none; then | |
7969 PERL5EXT="$PERL5DIR/CORE" | |
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not locate perl.h...using $PERL5EXT" >&5 | |
7971 $as_echo "could not locate perl.h...using $PERL5EXT" >&6; } | |
7972 fi | |
7973 | |
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 library" >&5 | |
7975 $as_echo_n "checking for Perl5 library... " >&6; } | |
7976 PERL5LIB=`($PERL -e 'use Config; $_=$Config{libperl}; s/^lib//; s/$Config{_a}$//; s/\.$Config{so}.*//; print $_, "\n"') 2>/dev/null` | |
7977 if test -z "$PERL5LIB" ; then | |
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
7979 $as_echo "not found" >&6; } | |
7980 else | |
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5LIB" >&5 | |
7982 $as_echo "$PERL5LIB" >&6; } | |
7983 fi | |
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 ccflags" >&5 | |
7985 $as_echo_n "checking for Perl5 ccflags... " >&6; } | |
7986 PERL5CCFLAGS=`($PERL -e 'use Config; print $Config{ccflags}, "\n"' | sed "s/-Wdeclaration-after-statement//" | sed "s/-I/$ISYSTEM/") 2>/dev/null` | |
7987 if test -z "$PERL5CCFLAGS" ; then | |
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
7989 $as_echo "not found" >&6; } | |
7990 else | |
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5CCFLAGS" >&5 | |
7992 $as_echo "$PERL5CCFLAGS" >&6; } | |
7993 fi | |
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 ccdlflags" >&5 | |
7995 $as_echo_n "checking for Perl5 ccdlflags... " >&6; } | |
7996 PERL5CCDLFLAGS=`($PERL -e 'use Config; print $Config{ccdlflags}, "\n"') 2>/dev/null` | |
7997 if test -z "$PERL5CCDLFLAGS" ; then | |
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
7999 $as_echo "not found" >&6; } | |
8000 else | |
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5CCDLFLAGS" >&5 | |
8002 $as_echo "$PERL5CCDLFLAGS" >&6; } | |
8003 fi | |
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 cccdlflags" >&5 | |
8005 $as_echo_n "checking for Perl5 cccdlflags... " >&6; } | |
8006 PERL5CCCDLFLAGS=`($PERL -e 'use Config; print $Config{cccdlflags}, "\n"') 2>/dev/null` | |
8007 if test -z "$PERL5CCCDLFLAGS" ; then | |
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
8009 $as_echo "not found" >&6; } | |
8010 else | |
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5CCCDLFLAGS" >&5 | |
8012 $as_echo "$PERL5CCCDLFLAGS" >&6; } | |
8013 fi | |
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl5 ldflags" >&5 | |
8015 $as_echo_n "checking for Perl5 ldflags... " >&6; } | |
8016 PERL5LDFLAGS=`($PERL -e 'use Config; print $Config{ldflags}, "\n"') 2>/dev/null` | |
8017 if test -z "$PERL5LDFLAGS" ; then | |
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
8019 $as_echo "not found" >&6; } | |
8020 else | |
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL5LDFLAGS" >&5 | |
8022 $as_echo "$PERL5LDFLAGS" >&6; } | |
8023 fi | |
8024 else | |
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to determine perl5 configuration" >&5 | |
8026 $as_echo "unable to determine perl5 configuration" >&6; } | |
8027 PERL5EXT=$PERL5DIR | |
8028 fi | |
8029 else | |
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not figure out how to run perl5" >&5 | |
8031 $as_echo "could not figure out how to run perl5" >&6; } | |
8032 fi | |
8033 | |
8034 # Cygwin (Windows) needs the library for dynamic linking | |
8035 case $host in | |
8036 *-*-cygwin* | *-*-mingw*) PERL5DYNAMICLINKING="-L$PERL5EXT -l$PERL5LIB";; | |
8037 *)PERL5DYNAMICLINKING="";; | |
8038 esac | |
8039 fi | |
8040 | |
8041 | |
8042 | |
8043 | |
8044 | |
8045 | |
8046 | |
8047 | |
8048 | |
8049 | |
8050 #---------------------------------------------------------------- | |
8051 # Look for Octave | |
8052 #---------------------------------------------------------------- | |
8053 | |
8054 OCTAVEBIN= | |
8055 OCTAVE_SO=.oct | |
8056 | |
8057 | |
8058 # Check whether --with-octave was given. | |
8059 if test "${with_octave+set}" = set; then : | |
8060 withval=$with_octave; OCTAVEBIN="$withval" | |
8061 else | |
8062 OCTAVEBIN=yes | |
8063 fi | |
8064 | |
8065 | |
8066 # First, check for "--without-octave" or "--with-octave=no". | |
8067 if test x"${OCTAVEBIN}" = xno -o x"${with_alllang}" = xno ; then | |
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Octave" >&5 | |
8069 $as_echo "$as_me: Disabling Octave" >&6;} | |
8070 OCTAVE= | |
8071 | |
8072 # First figure out what the name of Octave is | |
8073 elif test "x$OCTAVEBIN" = xyes; then | |
8074 # Extract the first word of "octave", so it can be a program name with args. | |
8075 set dummy octave; ac_word=$2 | |
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8077 $as_echo_n "checking for $ac_word... " >&6; } | |
8078 if ${ac_cv_path_OCTAVE+:} false; then : | |
8079 $as_echo_n "(cached) " >&6 | |
8080 else | |
8081 case $OCTAVE in | |
8082 [\\/]* | ?:[\\/]*) | |
8083 ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path. | |
8084 ;; | |
8085 *) | |
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8087 for as_dir in $PATH | |
8088 do | |
8089 IFS=$as_save_IFS | |
8090 test -z "$as_dir" && as_dir=. | |
8091 for ac_exec_ext in '' $ac_executable_extensions; do | |
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8093 ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext" | |
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8095 break 2 | |
8096 fi | |
8097 done | |
8098 done | |
8099 IFS=$as_save_IFS | |
8100 | |
8101 ;; | |
8102 esac | |
8103 fi | |
8104 OCTAVE=$ac_cv_path_OCTAVE | |
8105 if test -n "$OCTAVE"; then | |
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5 | |
8107 $as_echo "$OCTAVE" >&6; } | |
8108 else | |
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8110 $as_echo "no" >&6; } | |
8111 fi | |
8112 | |
8113 | |
8114 | |
8115 else | |
8116 OCTAVE="$OCTAVEBIN" | |
8117 fi | |
8118 | |
8119 if test -n "$OCTAVE"; then | |
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkoctfile" >&5 | |
8121 $as_echo_n "checking for mkoctfile... " >&6; } | |
8122 mkoctfile="`dirname ${OCTAVE}`/mkoctfile" | |
8123 if test -x "${mkoctfile}"; then : | |
8124 | |
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mkoctfile}" >&5 | |
8126 $as_echo "${mkoctfile}" >&6; } | |
8127 | |
8128 else | |
8129 | |
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, disabling Octave" >&5 | |
8131 $as_echo "not found, disabling Octave" >&6; } | |
8132 OCTAVE= | |
8133 | |
8134 fi | |
8135 fi | |
8136 if test -n "$OCTAVE"; then | |
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Octave preprocessor flags" >&5 | |
8138 $as_echo_n "checking for Octave preprocessor flags... " >&6; } | |
8139 OCTAVE_CPPFLAGS= | |
8140 for n in CPPFLAGS INCFLAGS; do | |
8141 OCTAVE_CPPFLAGS="${OCTAVE_CPPFLAGS} "`${mkoctfile} -p $n` | |
8142 done | |
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CPPFLAGS" >&5 | |
8144 $as_echo "$OCTAVE_CPPFLAGS" >&6; } | |
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Octave compiler flags" >&5 | |
8146 $as_echo_n "checking for Octave compiler flags... " >&6; } | |
8147 OCTAVE_CXXFLAGS= | |
8148 for n in ALL_CXXFLAGS; do | |
8149 OCTAVE_CXXFLAGS="${OCTAVE_CXXFLAGS} "`${mkoctfile} -p $n` | |
8150 done | |
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CXXFLAGS" >&5 | |
8152 $as_echo "$OCTAVE_CXXFLAGS" >&6; } | |
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Octave linker flags" >&5 | |
8154 $as_echo_n "checking for Octave linker flags... " >&6; } | |
8155 OCTAVE_LDFLAGS= | |
8156 for n in RDYNAMIC_FLAG LFLAGS RLD_FLAG OCTAVE_LIBS LIBS; do | |
8157 OCTAVE_LDFLAGS="${OCTAVE_LDFLAGS} "`${mkoctfile} -p $n` | |
8158 done | |
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_LDFLAGS" >&5 | |
8160 $as_echo "$OCTAVE_LDFLAGS" >&6; } | |
8161 for octave_opt in --silent --norc --no-history --no-window-system; do | |
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Octave option '${octave_opt}' is supported" >&5 | |
8163 $as_echo_n "checking if Octave option '${octave_opt}' is supported... " >&6; } | |
8164 octave_out=`${OCTAVE} ${octave_opt} /dev/null 2>&1 | sed -n '1{/unrecognized/p}'` | |
8165 if test "x${octave_out}" = x; then : | |
8166 | |
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8168 $as_echo "yes" >&6; } | |
8169 OCTAVE="${OCTAVE} ${octave_opt}" | |
8170 | |
8171 else | |
8172 | |
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8174 $as_echo "no" >&6; } | |
8175 | |
8176 fi | |
8177 done | |
8178 fi | |
8179 | |
8180 | |
8181 | |
8182 | |
8183 | |
8184 | |
8185 | |
8186 #---------------------------------------------------------------- | |
8187 # Look for java | |
8188 #---------------------------------------------------------------- | |
8189 | |
8190 | |
8191 # Check whether --with-java was given. | |
8192 if test "${with_java+set}" = set; then : | |
8193 withval=$with_java; JAVABIN="$withval" | |
8194 else | |
8195 JAVABIN=yes | |
8196 fi | |
8197 | |
8198 | |
8199 # Check whether --with-javac was given. | |
8200 if test "${with_javac+set}" = set; then : | |
8201 withval=$with_javac; JAVACBIN="$withval" | |
8202 else | |
8203 JAVACBIN= | |
8204 fi | |
8205 | |
8206 | |
8207 # First, check for "--without-java" or "--with-java=no". | |
8208 if test x"${JAVABIN}" = xno -o x"${with_alllang}" = xno ; then | |
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Java" >&5 | |
8210 $as_echo "$as_me: Disabling Java" >&6;} | |
8211 JAVA= | |
8212 else | |
8213 | |
8214 if test "x$JAVABIN" = xyes; then | |
8215 for ac_prog in java kaffe guavac | |
8216 do | |
8217 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8218 set dummy $ac_prog; ac_word=$2 | |
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8220 $as_echo_n "checking for $ac_word... " >&6; } | |
8221 if ${ac_cv_prog_JAVA+:} false; then : | |
8222 $as_echo_n "(cached) " >&6 | |
8223 else | |
8224 if test -n "$JAVA"; then | |
8225 ac_cv_prog_JAVA="$JAVA" # Let the user override the test. | |
8226 else | |
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8228 for as_dir in $PATH | |
8229 do | |
8230 IFS=$as_save_IFS | |
8231 test -z "$as_dir" && as_dir=. | |
8232 for ac_exec_ext in '' $ac_executable_extensions; do | |
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8234 ac_cv_prog_JAVA="$ac_prog" | |
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8236 break 2 | |
8237 fi | |
8238 done | |
8239 done | |
8240 IFS=$as_save_IFS | |
8241 | |
8242 fi | |
8243 fi | |
8244 JAVA=$ac_cv_prog_JAVA | |
8245 if test -n "$JAVA"; then | |
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 | |
8247 $as_echo "$JAVA" >&6; } | |
8248 else | |
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8250 $as_echo "no" >&6; } | |
8251 fi | |
8252 | |
8253 | |
8254 test -n "$JAVA" && break | |
8255 done | |
8256 | |
8257 else | |
8258 JAVA="$JAVABIN" | |
8259 fi | |
8260 | |
8261 if test -z "$JAVACBIN"; then | |
8262 for ac_prog in javac | |
8263 do | |
8264 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8265 set dummy $ac_prog; ac_word=$2 | |
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8267 $as_echo_n "checking for $ac_word... " >&6; } | |
8268 if ${ac_cv_prog_JAVAC+:} false; then : | |
8269 $as_echo_n "(cached) " >&6 | |
8270 else | |
8271 if test -n "$JAVAC"; then | |
8272 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. | |
8273 else | |
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8275 for as_dir in $PATH | |
8276 do | |
8277 IFS=$as_save_IFS | |
8278 test -z "$as_dir" && as_dir=. | |
8279 for ac_exec_ext in '' $ac_executable_extensions; do | |
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8281 ac_cv_prog_JAVAC="$ac_prog" | |
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8283 break 2 | |
8284 fi | |
8285 done | |
8286 done | |
8287 IFS=$as_save_IFS | |
8288 | |
8289 fi | |
8290 fi | |
8291 JAVAC=$ac_cv_prog_JAVAC | |
8292 if test -n "$JAVAC"; then | |
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 | |
8294 $as_echo "$JAVAC" >&6; } | |
8295 else | |
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8297 $as_echo "no" >&6; } | |
8298 fi | |
8299 | |
8300 | |
8301 test -n "$JAVAC" && break | |
8302 done | |
8303 | |
8304 else | |
8305 JAVAC="$JAVACBIN" | |
8306 fi | |
8307 | |
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java include file jni.h" >&5 | |
8309 $as_echo_n "checking for java include file jni.h... " >&6; } | |
8310 | |
8311 # Check whether --with-javaincl was given. | |
8312 if test "${with_javaincl+set}" = set; then : | |
8313 withval=$with_javaincl; JAVAINCDIR="$withval" | |
8314 else | |
8315 JAVAINCDIR= | |
8316 fi | |
8317 | |
8318 | |
8319 if test -z "$JAVAINCDIR" ; then | |
8320 JAVAINCDIR="/usr/j2sdk*/include /usr/local/j2sdk*/include /usr/jdk*/include /usr/local/jdk*/include /opt/j2sdk*/include /opt/jdk*/include /usr/java/include /usr/java/j2sdk*/include /usr/java/jdk*/include /usr/local/java/include /opt/java/include /usr/include/java /usr/local/include/java /usr/lib/java/include /usr/lib/jvm/java*/include /usr/include/kaffe /usr/local/include/kaffe /usr/include" | |
8321 | |
8322 # Add in default installation directory on Windows for Cygwin | |
8323 case $host in | |
8324 *-*-cygwin* | *-*-mingw*) JAVAINCDIR="c:/Program*Files/Java/jdk*/include d:/Program*Files/Java/jdk*/include c:/j2sdk*/include d:/j2sdk*/include c:/jdk*/include d:/jdk*/include $JAVAINCDIR";; | |
8325 *-*-darwin*) JAVAINCDIR="/System/Library/Frameworks/JavaVM.framework/Headers $JAVAINCDIR";; | |
8326 *);; | |
8327 esac | |
8328 fi | |
8329 | |
8330 JAVAINC="" | |
8331 for d in $JAVAINCDIR ; do | |
8332 if test -r "$d/jni.h" ; then | |
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d" >&5 | |
8334 $as_echo "$d" >&6; } | |
8335 JAVAINCDIR=$d | |
8336 JAVAINC=-I\"$d\" | |
8337 break | |
8338 fi | |
8339 done | |
8340 | |
8341 if test "$JAVAINC" = "" ; then | |
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
8343 $as_echo "not found" >&6; } | |
8344 else | |
8345 # now look for <arch>/jni_md.h | |
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java include file jni_md.h" >&5 | |
8347 $as_echo_n "checking for java include file jni_md.h... " >&6; } | |
8348 JAVAMDDIR=`find "$JAVAINCDIR" -follow -name jni_md.h -print` | |
8349 if test "$JAVAMDDIR" = "" ; then | |
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
8351 $as_echo "not found" >&6; } | |
8352 else | |
8353 JAVAMDDIR=`dirname "$JAVAMDDIR" | tail -1` | |
8354 JAVAINC="${JAVAINC} -I\"$JAVAMDDIR\"" | |
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAMDDIR" >&5 | |
8356 $as_echo "$JAVAMDDIR" >&6; } | |
8357 fi | |
8358 fi | |
8359 | |
8360 # java.exe on Cygwin requires the Windows standard (Pascal) calling convention as it is a normal Windows executable and not a Cygwin built executable | |
8361 case $host in | |
8362 *-*-cygwin* | *-*-mingw*) | |
8363 if test "$GCC" = yes; then | |
8364 JAVADYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias" | |
8365 JAVACFLAGS="-mno-cygwin -mthreads" | |
8366 else | |
8367 JAVADYNAMICLINKING="" | |
8368 JAVACFLAGS="" | |
8369 fi ;; | |
8370 *-*-darwin*) | |
8371 JAVADYNAMICLINKING="-dynamiclib -framework JavaVM" | |
8372 JAVACFLAGS="" | |
8373 ;; | |
8374 *) | |
8375 JAVADYNAMICLINKING="" | |
8376 JAVACFLAGS="" | |
8377 ;; | |
8378 esac | |
8379 | |
8380 # Java on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls | |
8381 case $host in | |
8382 *-*-cygwin* | *-*-mingw*) JAVALIBRARYPREFIX="";; | |
8383 *)JAVALIBRARYPREFIX="lib";; | |
8384 esac | |
8385 | |
8386 # Java on Mac OS X tweaks | |
8387 case $host in | |
8388 *-*-darwin*) | |
8389 JAVASO=".jnilib" | |
8390 JAVALDSHARED='$(CC)' | |
8391 JAVACXXSHARED='$(CXX)' | |
8392 ;; | |
8393 *) | |
8394 JAVASO=$SO | |
8395 JAVALDSHARED='$(LDSHARED)' | |
8396 JAVACXXSHARED='$(CXXSHARED)' | |
8397 ;; | |
8398 esac | |
8399 fi | |
8400 | |
8401 | |
8402 | |
8403 | |
8404 | |
8405 | |
8406 | |
8407 | |
8408 | |
8409 | |
8410 | |
8411 #---------------------------------------------------------------- | |
8412 # Look for gcj | |
8413 #---------------------------------------------------------------- | |
8414 | |
8415 | |
8416 # Check whether --with-gcj was given. | |
8417 if test "${with_gcj+set}" = set; then : | |
8418 withval=$with_gcj; GCJBIN="$withval" | |
8419 else | |
8420 GCJBIN=yes | |
8421 fi | |
8422 | |
8423 | |
8424 # Check whether --with-gcjh was given. | |
8425 if test "${with_gcjh+set}" = set; then : | |
8426 withval=$with_gcjh; GCJHBIN="$withval" | |
8427 else | |
8428 GCJHBIN= | |
8429 fi | |
8430 | |
8431 | |
8432 # First, check for "--without-gcj" or "--with-gcj=no". | |
8433 if test x"${GCJBIN}" = xno -o x"${with_alllang}" = xno ; then | |
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling GCJ" >&5 | |
8435 $as_echo "$as_me: Disabling GCJ" >&6;} | |
8436 else | |
8437 if test "x$GCJBIN" = xyes; then | |
8438 for ac_prog in gcj | |
8439 do | |
8440 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8441 set dummy $ac_prog; ac_word=$2 | |
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8443 $as_echo_n "checking for $ac_word... " >&6; } | |
8444 if ${ac_cv_prog_GCJ+:} false; then : | |
8445 $as_echo_n "(cached) " >&6 | |
8446 else | |
8447 if test -n "$GCJ"; then | |
8448 ac_cv_prog_GCJ="$GCJ" # Let the user override the test. | |
8449 else | |
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8451 for as_dir in $PATH | |
8452 do | |
8453 IFS=$as_save_IFS | |
8454 test -z "$as_dir" && as_dir=. | |
8455 for ac_exec_ext in '' $ac_executable_extensions; do | |
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8457 ac_cv_prog_GCJ="$ac_prog" | |
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8459 break 2 | |
8460 fi | |
8461 done | |
8462 done | |
8463 IFS=$as_save_IFS | |
8464 | |
8465 fi | |
8466 fi | |
8467 GCJ=$ac_cv_prog_GCJ | |
8468 if test -n "$GCJ"; then | |
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5 | |
8470 $as_echo "$GCJ" >&6; } | |
8471 else | |
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8473 $as_echo "no" >&6; } | |
8474 fi | |
8475 | |
8476 | |
8477 test -n "$GCJ" && break | |
8478 done | |
8479 | |
8480 else | |
8481 GCJ="$GCJBIN" | |
8482 fi | |
8483 | |
8484 if test -z "$GCJCBIN"; then | |
8485 for ac_prog in gcjh | |
8486 do | |
8487 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8488 set dummy $ac_prog; ac_word=$2 | |
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8490 $as_echo_n "checking for $ac_word... " >&6; } | |
8491 if ${ac_cv_prog_GCJH+:} false; then : | |
8492 $as_echo_n "(cached) " >&6 | |
8493 else | |
8494 if test -n "$GCJH"; then | |
8495 ac_cv_prog_GCJH="$GCJH" # Let the user override the test. | |
8496 else | |
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8498 for as_dir in $PATH | |
8499 do | |
8500 IFS=$as_save_IFS | |
8501 test -z "$as_dir" && as_dir=. | |
8502 for ac_exec_ext in '' $ac_executable_extensions; do | |
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8504 ac_cv_prog_GCJH="$ac_prog" | |
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8506 break 2 | |
8507 fi | |
8508 done | |
8509 done | |
8510 IFS=$as_save_IFS | |
8511 | |
8512 fi | |
8513 fi | |
8514 GCJH=$ac_cv_prog_GCJH | |
8515 if test -n "$GCJH"; then | |
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJH" >&5 | |
8517 $as_echo "$GCJH" >&6; } | |
8518 else | |
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8520 $as_echo "no" >&6; } | |
8521 fi | |
8522 | |
8523 | |
8524 test -n "$GCJH" && break | |
8525 done | |
8526 | |
8527 else | |
8528 GCJH="$GCJHBIN" | |
8529 fi | |
8530 fi | |
8531 | |
8532 | |
8533 | |
8534 | |
8535 #---------------------------------------------------------------- | |
8536 # Look for Android | |
8537 #---------------------------------------------------------------- | |
8538 | |
8539 | |
8540 # Check whether --with-android was given. | |
8541 if test "${with_android+set}" = set; then : | |
8542 withval=$with_android; ANDROIDBIN="$withval" | |
8543 else | |
8544 ANDROIDBIN=yes | |
8545 fi | |
8546 | |
8547 | |
8548 # Check whether --with-adb was given. | |
8549 if test "${with_adb+set}" = set; then : | |
8550 withval=$with_adb; ADBBIN="$withval" | |
8551 else | |
8552 ADBBIN= | |
8553 fi | |
8554 | |
8555 | |
8556 # Check whether --with-ant was given. | |
8557 if test "${with_ant+set}" = set; then : | |
8558 withval=$with_ant; ANTBIN="$withval" | |
8559 else | |
8560 ANTBIN= | |
8561 fi | |
8562 | |
8563 | |
8564 # Check whether --with-ndk-build was given. | |
8565 if test "${with_ndk_build+set}" = set; then : | |
8566 withval=$with_ndk_build; NDKBUILDBIN="$withval" | |
8567 else | |
8568 NDKBUILDBIN= | |
8569 fi | |
8570 | |
8571 | |
8572 # First, check for "--without-android" or "--with-android=no". | |
8573 if test x"${ANDROIDBIN}" = xno -o x"${with_alllang}" = xno ; then | |
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Android" >&5 | |
8575 $as_echo "$as_me: Disabling Android" >&6;} | |
8576 ANDROID= | |
8577 else | |
8578 if test "x$ANDROIDBIN" = xyes; then | |
8579 for ac_prog in android | |
8580 do | |
8581 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8582 set dummy $ac_prog; ac_word=$2 | |
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8584 $as_echo_n "checking for $ac_word... " >&6; } | |
8585 if ${ac_cv_prog_ANDROID+:} false; then : | |
8586 $as_echo_n "(cached) " >&6 | |
8587 else | |
8588 if test -n "$ANDROID"; then | |
8589 ac_cv_prog_ANDROID="$ANDROID" # Let the user override the test. | |
8590 else | |
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8592 for as_dir in $PATH | |
8593 do | |
8594 IFS=$as_save_IFS | |
8595 test -z "$as_dir" && as_dir=. | |
8596 for ac_exec_ext in '' $ac_executable_extensions; do | |
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8598 ac_cv_prog_ANDROID="$ac_prog" | |
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8600 break 2 | |
8601 fi | |
8602 done | |
8603 done | |
8604 IFS=$as_save_IFS | |
8605 | |
8606 fi | |
8607 fi | |
8608 ANDROID=$ac_cv_prog_ANDROID | |
8609 if test -n "$ANDROID"; then | |
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID" >&5 | |
8611 $as_echo "$ANDROID" >&6; } | |
8612 else | |
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8614 $as_echo "no" >&6; } | |
8615 fi | |
8616 | |
8617 | |
8618 test -n "$ANDROID" && break | |
8619 done | |
8620 | |
8621 else | |
8622 ANDROID="$ANDROIDBIN" | |
8623 fi | |
8624 | |
8625 if test -z "$ADBBIN"; then | |
8626 for ac_prog in adb | |
8627 do | |
8628 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8629 set dummy $ac_prog; ac_word=$2 | |
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8631 $as_echo_n "checking for $ac_word... " >&6; } | |
8632 if ${ac_cv_prog_ADB+:} false; then : | |
8633 $as_echo_n "(cached) " >&6 | |
8634 else | |
8635 if test -n "$ADB"; then | |
8636 ac_cv_prog_ADB="$ADB" # Let the user override the test. | |
8637 else | |
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8639 for as_dir in $PATH | |
8640 do | |
8641 IFS=$as_save_IFS | |
8642 test -z "$as_dir" && as_dir=. | |
8643 for ac_exec_ext in '' $ac_executable_extensions; do | |
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8645 ac_cv_prog_ADB="$ac_prog" | |
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8647 break 2 | |
8648 fi | |
8649 done | |
8650 done | |
8651 IFS=$as_save_IFS | |
8652 | |
8653 fi | |
8654 fi | |
8655 ADB=$ac_cv_prog_ADB | |
8656 if test -n "$ADB"; then | |
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ADB" >&5 | |
8658 $as_echo "$ADB" >&6; } | |
8659 else | |
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8661 $as_echo "no" >&6; } | |
8662 fi | |
8663 | |
8664 | |
8665 test -n "$ADB" && break | |
8666 done | |
8667 | |
8668 else | |
8669 ADB="$ADBBIN" | |
8670 fi | |
8671 | |
8672 if test -z "$ANTBIN"; then | |
8673 for ac_prog in ant | |
8674 do | |
8675 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8676 set dummy $ac_prog; ac_word=$2 | |
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8678 $as_echo_n "checking for $ac_word... " >&6; } | |
8679 if ${ac_cv_prog_ANT+:} false; then : | |
8680 $as_echo_n "(cached) " >&6 | |
8681 else | |
8682 if test -n "$ANT"; then | |
8683 ac_cv_prog_ANT="$ANT" # Let the user override the test. | |
8684 else | |
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8686 for as_dir in $PATH | |
8687 do | |
8688 IFS=$as_save_IFS | |
8689 test -z "$as_dir" && as_dir=. | |
8690 for ac_exec_ext in '' $ac_executable_extensions; do | |
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8692 ac_cv_prog_ANT="$ac_prog" | |
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8694 break 2 | |
8695 fi | |
8696 done | |
8697 done | |
8698 IFS=$as_save_IFS | |
8699 | |
8700 fi | |
8701 fi | |
8702 ANT=$ac_cv_prog_ANT | |
8703 if test -n "$ANT"; then | |
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5 | |
8705 $as_echo "$ANT" >&6; } | |
8706 else | |
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8708 $as_echo "no" >&6; } | |
8709 fi | |
8710 | |
8711 | |
8712 test -n "$ANT" && break | |
8713 done | |
8714 | |
8715 else | |
8716 ANT="$ANTBIN" | |
8717 fi | |
8718 | |
8719 if test -z "$NDKBUILDBIN"; then | |
8720 for ac_prog in ndk-build | |
8721 do | |
8722 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8723 set dummy $ac_prog; ac_word=$2 | |
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8725 $as_echo_n "checking for $ac_word... " >&6; } | |
8726 if ${ac_cv_prog_NDKBUILD+:} false; then : | |
8727 $as_echo_n "(cached) " >&6 | |
8728 else | |
8729 if test -n "$NDKBUILD"; then | |
8730 ac_cv_prog_NDKBUILD="$NDKBUILD" # Let the user override the test. | |
8731 else | |
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8733 for as_dir in $PATH | |
8734 do | |
8735 IFS=$as_save_IFS | |
8736 test -z "$as_dir" && as_dir=. | |
8737 for ac_exec_ext in '' $ac_executable_extensions; do | |
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8739 ac_cv_prog_NDKBUILD="$ac_prog" | |
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8741 break 2 | |
8742 fi | |
8743 done | |
8744 done | |
8745 IFS=$as_save_IFS | |
8746 | |
8747 fi | |
8748 fi | |
8749 NDKBUILD=$ac_cv_prog_NDKBUILD | |
8750 if test -n "$NDKBUILD"; then | |
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NDKBUILD" >&5 | |
8752 $as_echo "$NDKBUILD" >&6; } | |
8753 else | |
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8755 $as_echo "no" >&6; } | |
8756 fi | |
8757 | |
8758 | |
8759 test -n "$NDKBUILD" && break | |
8760 done | |
8761 | |
8762 else | |
8763 NDKBUILD="$NDKBUILDBIN" | |
8764 fi | |
8765 fi | |
8766 | |
8767 | |
8768 | |
8769 | |
8770 | |
8771 | |
8772 #---------------------------------------------------------------- | |
8773 # Look for Guile | |
8774 #---------------------------------------------------------------- | |
8775 | |
8776 GUILE= | |
8777 GUILE_CFLAGS= | |
8778 GUILE_LIBS= | |
8779 | |
8780 | |
8781 # Check whether --with-guile-config was given. | |
8782 if test "${with_guile_config+set}" = set; then : | |
8783 withval=$with_guile_config; GUILE_CONFIG="$withval" | |
8784 else | |
8785 GUILE_CONFIG= | |
8786 fi | |
8787 | |
8788 | |
8789 # Check whether --with-guile was given. | |
8790 if test "${with_guile+set}" = set; then : | |
8791 withval=$with_guile; | |
8792 GUILE="$withval" | |
8793 else | |
8794 GUILE=yes | |
8795 fi | |
8796 | |
8797 | |
8798 # Check whether --with-guile-cflags was given. | |
8799 if test "${with_guile_cflags+set}" = set; then : | |
8800 withval=$with_guile_cflags; | |
8801 GUILE_CFLAGS="$withval" | |
8802 fi | |
8803 | |
8804 | |
8805 # Check whether --with-guile-libs was given. | |
8806 if test "${with_guile_libs+set}" = set; then : | |
8807 withval=$with_guile_libs; | |
8808 GUILE_LIBS="$withval" | |
8809 fi | |
8810 | |
8811 | |
8812 # First, check for "--without-guile" or "--with-guile=no". | |
8813 if test x"${GUILE}" = xno -o x"${with_alllang}" = xno ; then | |
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Guile" >&5 | |
8815 $as_echo "$as_me: Disabling Guile" >&6;} | |
8816 else | |
8817 if test -z "$GUILE_CONFIG" ; then | |
8818 # Extract the first word of "guile-config", so it can be a program name with args. | |
8819 set dummy guile-config; ac_word=$2 | |
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8821 $as_echo_n "checking for $ac_word... " >&6; } | |
8822 if ${ac_cv_path_GUILE_CONFIG+:} false; then : | |
8823 $as_echo_n "(cached) " >&6 | |
8824 else | |
8825 case $GUILE_CONFIG in | |
8826 [\\/]* | ?:[\\/]*) | |
8827 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path. | |
8828 ;; | |
8829 *) | |
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8831 for as_dir in $PATH | |
8832 do | |
8833 IFS=$as_save_IFS | |
8834 test -z "$as_dir" && as_dir=. | |
8835 for ac_exec_ext in '' $ac_executable_extensions; do | |
8836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8837 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8839 break 2 | |
8840 fi | |
8841 done | |
8842 done | |
8843 IFS=$as_save_IFS | |
8844 | |
8845 ;; | |
8846 esac | |
8847 fi | |
8848 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG | |
8849 if test -n "$GUILE_CONFIG"; then | |
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5 | |
8851 $as_echo "$GUILE_CONFIG" >&6; } | |
8852 else | |
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8854 $as_echo "no" >&6; } | |
8855 fi | |
8856 | |
8857 | |
8858 fi | |
8859 if test -n "$GUILE_CONFIG" ; then | |
8860 if test x"$GUILE" = xyes; then | |
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile bindir" >&5 | |
8862 $as_echo_n "checking for guile bindir... " >&6; } | |
8863 guile_bindir="`$GUILE_CONFIG info bindir`" | |
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_bindir" >&5 | |
8865 $as_echo "$guile_bindir" >&6; } | |
8866 GUILE=$guile_bindir/guile | |
8867 if ! test -f "$GUILE" ; then | |
8868 GUILE= | |
8869 # Extract the first word of "guile", so it can be a program name with args. | |
8870 set dummy guile; ac_word=$2 | |
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8872 $as_echo_n "checking for $ac_word... " >&6; } | |
8873 if ${ac_cv_path_GUILE+:} false; then : | |
8874 $as_echo_n "(cached) " >&6 | |
8875 else | |
8876 case $GUILE in | |
8877 [\\/]* | ?:[\\/]*) | |
8878 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path. | |
8879 ;; | |
8880 *) | |
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8882 for as_dir in $PATH | |
8883 do | |
8884 IFS=$as_save_IFS | |
8885 test -z "$as_dir" && as_dir=. | |
8886 for ac_exec_ext in '' $ac_executable_extensions; do | |
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8888 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext" | |
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8890 break 2 | |
8891 fi | |
8892 done | |
8893 done | |
8894 IFS=$as_save_IFS | |
8895 | |
8896 ;; | |
8897 esac | |
8898 fi | |
8899 GUILE=$ac_cv_path_GUILE | |
8900 if test -n "$GUILE"; then | |
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5 | |
8902 $as_echo "$GUILE" >&6; } | |
8903 else | |
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8905 $as_echo "no" >&6; } | |
8906 fi | |
8907 | |
8908 | |
8909 fi | |
8910 fi | |
8911 | |
8912 if test -f "$GUILE" ; then | |
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile version" >&5 | |
8914 $as_echo_n "checking for guile version... " >&6; } | |
8915 guile_version=`$GUILE -c '(display (effective-version))'` | |
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5 | |
8917 $as_echo "$guile_version" >&6; } | |
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile version >= 1.8" >&5 | |
8919 $as_echo_n "checking for guile version >= 1.8... " >&6; } | |
8920 guile_good_version=`$GUILE -c '(if (>= (string->number (effective-version)) 1.8) (display "yes") (display "no"))'` | |
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_good_version" >&5 | |
8922 $as_echo "$guile_good_version" >&6; } | |
8923 if test x"$guile_good_version" != xyes ; then | |
8924 GUILE= | |
8925 fi | |
8926 fi | |
8927 | |
8928 if test -z "$GUILE_CFLAGS" ; then | |
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile compile flags" >&5 | |
8930 $as_echo_n "checking for guile compile flags... " >&6; } | |
8931 GUILE_CFLAGS="`$GUILE_CONFIG compile`" # Note that this can sometimes be empty | |
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5 | |
8933 $as_echo "$GUILE_CFLAGS" >&6; } | |
8934 fi | |
8935 | |
8936 if test -z "$GUILE_LIBS" ; then | |
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile link flags" >&5 | |
8938 $as_echo_n "checking for guile link flags... " >&6; } | |
8939 GUILE_LIBS="`$GUILE_CONFIG link`" | |
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LIBS" >&5 | |
8941 $as_echo "$GUILE_LIBS" >&6; } | |
8942 fi | |
8943 fi | |
8944 fi | |
8945 | |
8946 | |
8947 | |
8948 | |
8949 | |
8950 #---------------------------------------------------------------- | |
8951 # Look for MzScheme | |
8952 #---------------------------------------------------------------- | |
8953 | |
8954 | |
8955 # Check whether --with-mzscheme was given. | |
8956 if test "${with_mzscheme+set}" = set; then : | |
8957 withval=$with_mzscheme; MZSCHEMEBIN="$withval" | |
8958 else | |
8959 MZSCHEMEBIN=yes | |
8960 fi | |
8961 | |
8962 | |
8963 # Check whether --with-mzc was given. | |
8964 if test "${with_mzc+set}" = set; then : | |
8965 withval=$with_mzc; MZCBIN="$withval" | |
8966 else | |
8967 MZCBIN= | |
8968 fi | |
8969 | |
8970 | |
8971 # First, check for "--without-mzscheme" or "--with-mzscheme=no". | |
8972 if test x"${MZSCHEMEBIN}" = xno -o x"${with_alllang}" = xno ; then | |
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling MzScheme" >&5 | |
8974 $as_echo "$as_me: Disabling MzScheme" >&6;} | |
8975 MZC= | |
8976 else | |
8977 if test "x$MZSCHEMEBIN" = xyes; then | |
8978 # Extract the first word of "mzscheme", so it can be a program name with args. | |
8979 set dummy mzscheme; ac_word=$2 | |
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8981 $as_echo_n "checking for $ac_word... " >&6; } | |
8982 if ${ac_cv_path_MZSCHEME+:} false; then : | |
8983 $as_echo_n "(cached) " >&6 | |
8984 else | |
8985 case $MZSCHEME in | |
8986 [\\/]* | ?:[\\/]*) | |
8987 ac_cv_path_MZSCHEME="$MZSCHEME" # Let the user override the test with a path. | |
8988 ;; | |
8989 *) | |
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8991 for as_dir in $PATH | |
8992 do | |
8993 IFS=$as_save_IFS | |
8994 test -z "$as_dir" && as_dir=. | |
8995 for ac_exec_ext in '' $ac_executable_extensions; do | |
8996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8997 ac_cv_path_MZSCHEME="$as_dir/$ac_word$ac_exec_ext" | |
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8999 break 2 | |
9000 fi | |
9001 done | |
9002 done | |
9003 IFS=$as_save_IFS | |
9004 | |
9005 ;; | |
9006 esac | |
9007 fi | |
9008 MZSCHEME=$ac_cv_path_MZSCHEME | |
9009 if test -n "$MZSCHEME"; then | |
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MZSCHEME" >&5 | |
9011 $as_echo "$MZSCHEME" >&6; } | |
9012 else | |
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9014 $as_echo "no" >&6; } | |
9015 fi | |
9016 | |
9017 | |
9018 else | |
9019 MZSCHEME="$MZSCHEMEBIN" | |
9020 fi | |
9021 | |
9022 if test -z "$MZCBIN"; then | |
9023 # Extract the first word of "mzc", so it can be a program name with args. | |
9024 set dummy mzc; ac_word=$2 | |
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9026 $as_echo_n "checking for $ac_word... " >&6; } | |
9027 if ${ac_cv_path_MZC+:} false; then : | |
9028 $as_echo_n "(cached) " >&6 | |
9029 else | |
9030 case $MZC in | |
9031 [\\/]* | ?:[\\/]*) | |
9032 ac_cv_path_MZC="$MZC" # Let the user override the test with a path. | |
9033 ;; | |
9034 *) | |
9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9036 for as_dir in $PATH | |
9037 do | |
9038 IFS=$as_save_IFS | |
9039 test -z "$as_dir" && as_dir=. | |
9040 for ac_exec_ext in '' $ac_executable_extensions; do | |
9041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9042 ac_cv_path_MZC="$as_dir/$ac_word$ac_exec_ext" | |
9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9044 break 2 | |
9045 fi | |
9046 done | |
9047 done | |
9048 IFS=$as_save_IFS | |
9049 | |
9050 ;; | |
9051 esac | |
9052 fi | |
9053 MZC=$ac_cv_path_MZC | |
9054 if test -n "$MZC"; then | |
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MZC" >&5 | |
9056 $as_echo "$MZC" >&6; } | |
9057 else | |
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9059 $as_echo "no" >&6; } | |
9060 fi | |
9061 | |
9062 | |
9063 fi | |
9064 | |
9065 if test -n "$MZSCHEME"; then | |
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MzScheme dynext object" >&5 | |
9067 $as_echo_n "checking for MzScheme dynext object... " >&6; } | |
9068 MZDYNOBJ=`$MZSCHEME --eval '(begin (require dynext/link) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (printf "~a" x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null` | |
9069 if test -f "$MZDYNOBJ"; then | |
9070 : | |
9071 else | |
9072 # older versions (3.72 approx and earlier) | |
9073 MZDYNOBJ=`$MZSCHEME --mute-banner --version --eval '(begin (require (lib "link.ss" "dynext")) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) ((current-make-standard-link-libraries)))) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null` | |
9074 fi | |
9075 if test -f "$MZDYNOBJ"; then | |
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MZDYNOBJ" >&5 | |
9077 $as_echo "$MZDYNOBJ" >&6; } | |
9078 else | |
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9080 $as_echo "not found" >&6; } | |
9081 MZDYNOBJ="" | |
9082 fi | |
9083 fi | |
9084 fi | |
9085 | |
9086 | |
9087 #---------------------------------------------------------------- | |
9088 # Look for Ruby | |
9089 #---------------------------------------------------------------- | |
9090 | |
9091 RUBYBIN= | |
9092 | |
9093 | |
9094 # Check whether --with-ruby was given. | |
9095 if test "${with_ruby+set}" = set; then : | |
9096 withval=$with_ruby; RUBYBIN="$withval" | |
9097 else | |
9098 RUBYBIN=yes | |
9099 fi | |
9100 | |
9101 | |
9102 # First, check for "--without-ruby" or "--with-ruby=no". | |
9103 if test x"${RUBYBIN}" = xno -o x"${with_alllang}" = xno ; then | |
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Ruby" >&5 | |
9105 $as_echo "$as_me: Disabling Ruby" >&6;} | |
9106 RUBY= | |
9107 else | |
9108 | |
9109 # First figure out what the name of Ruby is | |
9110 | |
9111 if test "x$RUBYBIN" = xyes; then | |
9112 for ac_prog in ruby | |
9113 do | |
9114 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9115 set dummy $ac_prog; ac_word=$2 | |
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9117 $as_echo_n "checking for $ac_word... " >&6; } | |
9118 if ${ac_cv_prog_RUBY+:} false; then : | |
9119 $as_echo_n "(cached) " >&6 | |
9120 else | |
9121 if test -n "$RUBY"; then | |
9122 ac_cv_prog_RUBY="$RUBY" # Let the user override the test. | |
9123 else | |
9124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9125 for as_dir in $PATH | |
9126 do | |
9127 IFS=$as_save_IFS | |
9128 test -z "$as_dir" && as_dir=. | |
9129 for ac_exec_ext in '' $ac_executable_extensions; do | |
9130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9131 ac_cv_prog_RUBY="$ac_prog" | |
9132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9133 break 2 | |
9134 fi | |
9135 done | |
9136 done | |
9137 IFS=$as_save_IFS | |
9138 | |
9139 fi | |
9140 fi | |
9141 RUBY=$ac_cv_prog_RUBY | |
9142 if test -n "$RUBY"; then | |
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 | |
9144 $as_echo "$RUBY" >&6; } | |
9145 else | |
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9147 $as_echo "no" >&6; } | |
9148 fi | |
9149 | |
9150 | |
9151 test -n "$RUBY" && break | |
9152 done | |
9153 | |
9154 else | |
9155 RUBY="$RUBYBIN" | |
9156 fi | |
9157 | |
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby header files" >&5 | |
9159 $as_echo_n "checking for Ruby header files... " >&6; } | |
9160 if test -n "$RUBY"; then | |
9161 # Try Ruby1.9 first | |
9162 RUBYDIR=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubyhdrdir"] || $rubyhdrdir') 2>/dev/null` | |
9163 if test x"$RUBYDIR" = x"" || test x"$RUBYDIR" = x"nil"; then | |
9164 RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG["archdir"] || $archdir') 2>/dev/null` | |
9165 else | |
9166 RUBYARCH=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG["arch"] || $arch') 2>/dev/null` | |
9167 fi | |
9168 if test x"$RUBYDIR" != x""; then | |
9169 dirs="$RUBYDIR" | |
9170 RUBYINCLUDE=none | |
9171 for i in $dirs; do | |
9172 if test -r $i/ruby.h; then | |
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 | |
9174 $as_echo "$i" >&6; } | |
9175 RUBYINCLUDE="-I$i" | |
9176 break | |
9177 fi | |
9178 done | |
9179 if test x"$RUBYARCH" != x""; then | |
9180 RUBYINCLUDE="-I$RUBYDIR -I$RUBYDIR/$RUBYARCH" | |
9181 fi | |
9182 if test "$RUBYINCLUDE" = none; then | |
9183 RUBYINCLUDE="-I$RUBYDIR" | |
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not locate ruby.h...using $RUBYINCLUDE" >&5 | |
9185 $as_echo "could not locate ruby.h...using $RUBYINCLUDE" >&6; } | |
9186 fi | |
9187 | |
9188 # Find library and path for linking. | |
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby library" >&5 | |
9190 $as_echo_n "checking for Ruby library... " >&6; } | |
9191 RUBYLIB="" | |
9192 rb_libdir=`($RUBY -rrbconfig -e 'print Config::CONFIG["libdir"]') 2>/dev/null` | |
9193 rb_bindir=`($RUBY -rrbconfig -e 'print Config::CONFIG["bindir"]') 2>/dev/null` | |
9194 dirs="$dirs $rb_libdir $rb_bindir" | |
9195 | |
9196 rb_libruby=`($RUBY -rrbconfig -e 'print Config::CONFIG["LIBRUBY_A"]') 2>/dev/null` | |
9197 RUBYLINK=`($RUBY -rrbconfig -e ' | |
9198 c = Config::CONFIG | |
9199 if c.has_key? "LIBRUBYARG_STATIC" # 1.8.x | |
9200 if c["LIBRUBY"] == c["LIBRUBY_A"] | |
9201 link = c["LIBRUBYARG_STATIC"] | |
9202 else | |
9203 link = c["LIBRUBYARG_SHARED"] | |
9204 end | |
9205 else # 1.6.x | |
9206 link = "-l" + c["RUBY_INSTALL_NAME"] | |
9207 end | |
9208 | |
9209 # Get the target Ruby was built for | |
9210 target = c["target"] | |
9211 | |
9212 if target == "i386-pc-mswin32" | |
9213 # Need to change msvcrt-ruby*.lib to -lmsvcrt-ruby* | |
9214 ext = File.extname(link) | |
9215 # Get index that counts backwards from end of string | |
9216 index = -1 - ext.size | |
9217 # Strip off the extension | |
9218 link = link.slice(0..index) | |
9219 puts "-l#{link}" | |
9220 else | |
9221 puts link | |
9222 end') 2>/dev/null` | |
9223 | |
9224 if test "$rb_libruby" != ""; then | |
9225 for i in $dirs; do | |
9226 if (test -r $i/$rb_libruby;) then | |
9227 RUBYLIB="$i" | |
9228 break | |
9229 fi | |
9230 done | |
9231 fi | |
9232 if test "$RUBYLIB" = ""; then | |
9233 RUBYLIB="$RUBYDIR" | |
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found... using $RUBYDIR" >&5 | |
9235 $as_echo "not found... using $RUBYDIR" >&6; } | |
9236 else | |
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBYLINK in $RUBYLIB" >&5 | |
9238 $as_echo "$RUBYLINK in $RUBYLIB" >&6; } | |
9239 fi | |
9240 else | |
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to determine ruby configuration" >&5 | |
9242 $as_echo "unable to determine ruby configuration" >&6; } | |
9243 RUBYINCLUDE="-I$RUBYDIR" | |
9244 RUBYLIB="$RUBYDIR" | |
9245 fi | |
9246 | |
9247 case $host in | |
9248 *-*-mingw*) ;; # do nothing, the default windows libraries are already included | |
9249 *) RUBYLINK="$RUBYLINK `($RUBY -rrbconfig -e 'print Config::CONFIG["LIBS"]') 2>/dev/null`";; | |
9250 esac | |
9251 | |
9252 RUBYCCDLFLAGS=`($RUBY -rrbconfig -e 'print Config::CONFIG["CCDLFLAGS"]') 2>/dev/null` | |
9253 RUBYSO=.`($RUBY -rrbconfig -e 'print Config::CONFIG["DLEXT"]') 2>/dev/null` | |
9254 else | |
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not figure out how to run ruby" >&5 | |
9256 $as_echo "could not figure out how to run ruby" >&6; } | |
9257 RUBYINCLUDE="-I/usr/local/lib/ruby/1.4/arch" | |
9258 RUBYLIB="/usr/local/lib/ruby/1.4/arch" | |
9259 RUBYLINK="-lruby -lm" | |
9260 fi | |
9261 | |
9262 case $host in | |
9263 *-*-cygwin* | *-*-mingw*) RUBYDYNAMICLINKING="-L$RUBYLIB $RUBYLINK";; | |
9264 *) RUBYDYNAMICLINKING="";; | |
9265 esac | |
9266 fi | |
9267 | |
9268 | |
9269 | |
9270 | |
9271 | |
9272 | |
9273 | |
9274 | |
9275 #------------------------------------------------------------------------- | |
9276 # Look for PHP | |
9277 #------------------------------------------------------------------------- | |
9278 | |
9279 PHPBIN= | |
9280 | |
9281 | |
9282 # Check whether --with-php was given. | |
9283 if test "${with_php+set}" = set; then : | |
9284 withval=$with_php; PHPBIN="$withval" | |
9285 else | |
9286 PHPBIN=yes | |
9287 fi | |
9288 | |
9289 | |
9290 # First, check for "--without-php" or "--with-php=no". | |
9291 if test x"${PHPBIN}" = xno -o x"${with_alllang}" = xno ; then | |
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PHP" >&5 | |
9293 $as_echo "$as_me: Disabling PHP" >&6;} | |
9294 PHP= | |
9295 else | |
9296 | |
9297 if test "x$PHPBIN" = xyes; then | |
9298 for ac_prog in php5 php | |
9299 do | |
9300 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9301 set dummy $ac_prog; ac_word=$2 | |
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9303 $as_echo_n "checking for $ac_word... " >&6; } | |
9304 if ${ac_cv_prog_PHP+:} false; then : | |
9305 $as_echo_n "(cached) " >&6 | |
9306 else | |
9307 if test -n "$PHP"; then | |
9308 ac_cv_prog_PHP="$PHP" # Let the user override the test. | |
9309 else | |
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9311 for as_dir in $PATH | |
9312 do | |
9313 IFS=$as_save_IFS | |
9314 test -z "$as_dir" && as_dir=. | |
9315 for ac_exec_ext in '' $ac_executable_extensions; do | |
9316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9317 ac_cv_prog_PHP="$ac_prog" | |
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9319 break 2 | |
9320 fi | |
9321 done | |
9322 done | |
9323 IFS=$as_save_IFS | |
9324 | |
9325 fi | |
9326 fi | |
9327 PHP=$ac_cv_prog_PHP | |
9328 if test -n "$PHP"; then | |
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5 | |
9330 $as_echo "$PHP" >&6; } | |
9331 else | |
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9333 $as_echo "no" >&6; } | |
9334 fi | |
9335 | |
9336 | |
9337 test -n "$PHP" && break | |
9338 done | |
9339 | |
9340 else | |
9341 PHP=$PHPBIN | |
9342 fi | |
9343 | |
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP header files" >&5 | |
9345 $as_echo_n "checking for PHP header files... " >&6; } | |
9346 case $PHP in | |
9347 *5) | |
9348 PHPCONFIG=`echo "$PHP"|sed 's/5$/-config5/'` ;; | |
9349 *) | |
9350 PHPCONFIG=$PHP-config ;; | |
9351 esac | |
9352 php_version=`$PHPCONFIG --version 2>/dev/null` | |
9353 case $php_version in | |
9354 5*) | |
9355 PHPINC=`$PHPCONFIG --includes 2>/dev/null` | |
9356 if test -n "$PHPINC"; then | |
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPINC" >&5 | |
9358 $as_echo "$PHPINC" >&6; } | |
9359 else | |
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9361 $as_echo "not found" >&6; } | |
9362 fi | |
9363 ;; | |
9364 *) | |
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found PHP $version, but only PHP 5 is supported" >&5 | |
9366 $as_echo "found PHP $version, but only PHP 5 is supported" >&6; } ;; | |
9367 esac | |
9368 fi | |
9369 | |
9370 | |
9371 | |
9372 #---------------------------------------------------------------- | |
9373 # Look for ocaml | |
9374 #---------------------------------------------------------------- | |
9375 | |
9376 | |
9377 # Check whether --with-ocaml was given. | |
9378 if test "${with_ocaml+set}" = set; then : | |
9379 withval=$with_ocaml; OCAMLBIN="$withval" | |
9380 else | |
9381 OCAMLBIN=yes | |
9382 fi | |
9383 | |
9384 | |
9385 # Check whether --with-ocamlc was given. | |
9386 if test "${with_ocamlc+set}" = set; then : | |
9387 withval=$with_ocamlc; OCAMLC="$withval" | |
9388 else | |
9389 OCAMLC= | |
9390 fi | |
9391 | |
9392 | |
9393 # Check whether --with-ocamldlgen was given. | |
9394 if test "${with_ocamldlgen+set}" = set; then : | |
9395 withval=$with_ocamldlgen; OCAMLDLGEN="$withval" | |
9396 else | |
9397 OCAMLDLGEN= | |
9398 fi | |
9399 | |
9400 | |
9401 # Check whether --with-ocamlfind was given. | |
9402 if test "${with_ocamlfind+set}" = set; then : | |
9403 withval=$with_ocamlfind; OCAMLFIND="$withval" | |
9404 else | |
9405 OCAMLFIND= | |
9406 fi | |
9407 | |
9408 | |
9409 # Check whether --with-ocamlmktop was given. | |
9410 if test "${with_ocamlmktop+set}" = set; then : | |
9411 withval=$with_ocamlmktop; OCAMLMKTOP="$withval" | |
9412 else | |
9413 OCAMLMKTOP= | |
9414 fi | |
9415 | |
9416 | |
9417 # First, check for "--without-ocaml" or "--with-ocaml=no". | |
9418 if test x"${OCAMLBIN}" = xno -o x"${with_alllang}" = xno ; then | |
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling OCaml" >&5 | |
9420 $as_echo "$as_me: Disabling OCaml" >&6;} | |
9421 OCAMLBIN= | |
9422 else | |
9423 | |
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ocaml DL load generator" >&5 | |
9425 $as_echo_n "checking for Ocaml DL load generator... " >&6; } | |
9426 if test -z "$OCAMLDLGEN"; then | |
9427 for ac_prog in ocamldlgen | |
9428 do | |
9429 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9430 set dummy $ac_prog; ac_word=$2 | |
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9432 $as_echo_n "checking for $ac_word... " >&6; } | |
9433 if ${ac_cv_prog_OCAMLDLGEN+:} false; then : | |
9434 $as_echo_n "(cached) " >&6 | |
9435 else | |
9436 if test -n "$OCAMLDLGEN"; then | |
9437 ac_cv_prog_OCAMLDLGEN="$OCAMLDLGEN" # Let the user override the test. | |
9438 else | |
9439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9440 for as_dir in $PATH | |
9441 do | |
9442 IFS=$as_save_IFS | |
9443 test -z "$as_dir" && as_dir=. | |
9444 for ac_exec_ext in '' $ac_executable_extensions; do | |
9445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9446 ac_cv_prog_OCAMLDLGEN="$ac_prog" | |
9447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9448 break 2 | |
9449 fi | |
9450 done | |
9451 done | |
9452 IFS=$as_save_IFS | |
9453 | |
9454 fi | |
9455 fi | |
9456 OCAMLDLGEN=$ac_cv_prog_OCAMLDLGEN | |
9457 if test -n "$OCAMLDLGEN"; then | |
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDLGEN" >&5 | |
9459 $as_echo "$OCAMLDLGEN" >&6; } | |
9460 else | |
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9462 $as_echo "no" >&6; } | |
9463 fi | |
9464 | |
9465 | |
9466 test -n "$OCAMLDLGEN" && break | |
9467 done | |
9468 test -n "$OCAMLDLGEN" || OCAMLDLGEN=":" | |
9469 | |
9470 fi | |
9471 | |
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ocaml package tool" >&5 | |
9473 $as_echo_n "checking for Ocaml package tool... " >&6; } | |
9474 if test -z "$OCAMLFIND"; then | |
9475 for ac_prog in ocamlfind | |
9476 do | |
9477 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9478 set dummy $ac_prog; ac_word=$2 | |
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9480 $as_echo_n "checking for $ac_word... " >&6; } | |
9481 if ${ac_cv_prog_OCAMLFIND+:} false; then : | |
9482 $as_echo_n "(cached) " >&6 | |
9483 else | |
9484 if test -n "$OCAMLFIND"; then | |
9485 ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test. | |
9486 else | |
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9488 for as_dir in $PATH | |
9489 do | |
9490 IFS=$as_save_IFS | |
9491 test -z "$as_dir" && as_dir=. | |
9492 for ac_exec_ext in '' $ac_executable_extensions; do | |
9493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9494 ac_cv_prog_OCAMLFIND="$ac_prog" | |
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9496 break 2 | |
9497 fi | |
9498 done | |
9499 done | |
9500 IFS=$as_save_IFS | |
9501 | |
9502 fi | |
9503 fi | |
9504 OCAMLFIND=$ac_cv_prog_OCAMLFIND | |
9505 if test -n "$OCAMLFIND"; then | |
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5 | |
9507 $as_echo "$OCAMLFIND" >&6; } | |
9508 else | |
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9510 $as_echo "no" >&6; } | |
9511 fi | |
9512 | |
9513 | |
9514 test -n "$OCAMLFIND" && break | |
9515 done | |
9516 test -n "$OCAMLFIND" || OCAMLFIND=":" | |
9517 | |
9518 fi | |
9519 | |
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ocaml compiler" >&5 | |
9521 $as_echo_n "checking for Ocaml compiler... " >&6; } | |
9522 if test -z "$OCAMLC"; then | |
9523 for ac_prog in ocamlc | |
9524 do | |
9525 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9526 set dummy $ac_prog; ac_word=$2 | |
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9528 $as_echo_n "checking for $ac_word... " >&6; } | |
9529 if ${ac_cv_prog_OCAMLC+:} false; then : | |
9530 $as_echo_n "(cached) " >&6 | |
9531 else | |
9532 if test -n "$OCAMLC"; then | |
9533 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test. | |
9534 else | |
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9536 for as_dir in $PATH | |
9537 do | |
9538 IFS=$as_save_IFS | |
9539 test -z "$as_dir" && as_dir=. | |
9540 for ac_exec_ext in '' $ac_executable_extensions; do | |
9541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9542 ac_cv_prog_OCAMLC="$ac_prog" | |
9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9544 break 2 | |
9545 fi | |
9546 done | |
9547 done | |
9548 IFS=$as_save_IFS | |
9549 | |
9550 fi | |
9551 fi | |
9552 OCAMLC=$ac_cv_prog_OCAMLC | |
9553 if test -n "$OCAMLC"; then | |
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5 | |
9555 $as_echo "$OCAMLC" >&6; } | |
9556 else | |
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9558 $as_echo "no" >&6; } | |
9559 fi | |
9560 | |
9561 | |
9562 test -n "$OCAMLC" && break | |
9563 done | |
9564 test -n "$OCAMLC" || OCAMLC=":" | |
9565 | |
9566 fi | |
9567 | |
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ocaml interpreter" >&5 | |
9569 $as_echo_n "checking for Ocaml interpreter... " >&6; } | |
9570 if test "x$OCAMLBIN" = xyes; then | |
9571 for ac_prog in ocaml | |
9572 do | |
9573 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9574 set dummy $ac_prog; ac_word=$2 | |
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9576 $as_echo_n "checking for $ac_word... " >&6; } | |
9577 if ${ac_cv_prog_OCAMLBIN+:} false; then : | |
9578 $as_echo_n "(cached) " >&6 | |
9579 else | |
9580 if test -n "$OCAMLBIN"; then | |
9581 ac_cv_prog_OCAMLBIN="$OCAMLBIN" # Let the user override the test. | |
9582 else | |
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9584 for as_dir in $PATH | |
9585 do | |
9586 IFS=$as_save_IFS | |
9587 test -z "$as_dir" && as_dir=. | |
9588 for ac_exec_ext in '' $ac_executable_extensions; do | |
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9590 ac_cv_prog_OCAMLBIN="$ac_prog" | |
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9592 break 2 | |
9593 fi | |
9594 done | |
9595 done | |
9596 IFS=$as_save_IFS | |
9597 | |
9598 fi | |
9599 fi | |
9600 OCAMLBIN=$ac_cv_prog_OCAMLBIN | |
9601 if test -n "$OCAMLBIN"; then | |
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBIN" >&5 | |
9603 $as_echo "$OCAMLBIN" >&6; } | |
9604 else | |
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9606 $as_echo "no" >&6; } | |
9607 fi | |
9608 | |
9609 | |
9610 test -n "$OCAMLBIN" && break | |
9611 done | |
9612 test -n "$OCAMLBIN" || OCAMLBIN=":" | |
9613 | |
9614 fi | |
9615 | |
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ocaml toplevel creator" >&5 | |
9617 $as_echo_n "checking for Ocaml toplevel creator... " >&6; } | |
9618 if test -z "$OCAMLMKTOP"; then | |
9619 for ac_prog in ocamlmktop | |
9620 do | |
9621 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9622 set dummy $ac_prog; ac_word=$2 | |
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9624 $as_echo_n "checking for $ac_word... " >&6; } | |
9625 if ${ac_cv_prog_OCAMLMKTOP+:} false; then : | |
9626 $as_echo_n "(cached) " >&6 | |
9627 else | |
9628 if test -n "$OCAMLMKTOP"; then | |
9629 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test. | |
9630 else | |
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9632 for as_dir in $PATH | |
9633 do | |
9634 IFS=$as_save_IFS | |
9635 test -z "$as_dir" && as_dir=. | |
9636 for ac_exec_ext in '' $ac_executable_extensions; do | |
9637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9638 ac_cv_prog_OCAMLMKTOP="$ac_prog" | |
9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9640 break 2 | |
9641 fi | |
9642 done | |
9643 done | |
9644 IFS=$as_save_IFS | |
9645 | |
9646 fi | |
9647 fi | |
9648 OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP | |
9649 if test -n "$OCAMLMKTOP"; then | |
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5 | |
9651 $as_echo "$OCAMLMKTOP" >&6; } | |
9652 else | |
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9654 $as_echo "no" >&6; } | |
9655 fi | |
9656 | |
9657 | |
9658 test -n "$OCAMLMKTOP" && break | |
9659 done | |
9660 test -n "$OCAMLMKTOP" || OCAMLMKTOP=":" | |
9661 | |
9662 fi | |
9663 | |
9664 OCAMLLOC=loc | |
9665 if test "$OCAMLC" != ":" ; then | |
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ocaml header files" >&5 | |
9667 $as_echo_n "checking for Ocaml header files... " >&6; } | |
9668 dirs="/usr/lib/ocaml/caml /usr/local/lib/ocaml/caml" | |
9669 dir="`$OCAMLC -where 2>/dev/null`" | |
9670 if test "$dir"; then | |
9671 dirs="$dir/caml $dirs" | |
9672 fi | |
9673 for i in $dirs; do | |
9674 if test -r $i/mlvalues.h; then | |
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 | |
9676 $as_echo "$i" >&6; } | |
9677 OCAMLEXT="$i" | |
9678 OCAMLINC="-I$OCAMLEXT" | |
9679 break | |
9680 fi | |
9681 done | |
9682 if test -z "$OCAMLINC"; then | |
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9684 $as_echo "not found" >&6; } | |
9685 fi | |
9686 | |
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ocaml version 3.08.2 or higher" >&5 | |
9688 $as_echo_n "checking for Ocaml version 3.08.2 or higher... " >&6; } | |
9689 OCAMLVER=`$OCAMLC -version | sed -e 's/.*version //g'` | |
9690 | |
9691 # Split the version into units. | |
9692 ver_a="$OCAMLVER" | |
9693 ver_b="3.08.2" | |
9694 nodots_a=`echo $ver_a | sed -e 's/\./ /g'` | |
9695 condition="equal" | |
9696 isolate_b_regex='\([0-9]\+\).*' | |
9697 for ver_part in $nodots_a ; do | |
9698 b_ver_part=`echo "$ver_b" | sed -e 's/'"$isolate_b_regex"'/\1/'` | |
9699 if test \( "$ver_part" -lt "$b_ver_part" \) -a \( "x$condition" = "xequal" \) ; then | |
9700 condition=less | |
9701 elif test \( "$ver_part" -gt "$b_ver_part" \) -a \( "x$condition" = "xequal" \) ; then | |
9702 condition=greater | |
9703 fi | |
9704 isolate_b_regex='[0-9]\+\.'"$isolate_b_regex" | |
9705 done | |
9706 | |
9707 if test "x$condition" = "xequal" ; then | |
9708 : | |
9709 elif test "x$condition" = "xless" ; then | |
9710 : | |
9711 elif test "x$condition" = "xgreater" ; then | |
9712 OCAMLLOC=_loc | |
9713 fi | |
9714 | |
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLVER" >&5 | |
9716 $as_echo "$OCAMLVER" >&6; } | |
9717 fi | |
9718 fi # Disabling ocaml | |
9719 | |
9720 export OCAMLLOC | |
9721 export OCAMLVER | |
9722 export OCAMLINC | |
9723 export OCAMLBIN | |
9724 export OCAMLC | |
9725 export OCAMLDLGEN | |
9726 export OCAMLFIND | |
9727 export OCAMLMKTOP | |
9728 | |
9729 | |
9730 | |
9731 | |
9732 | |
9733 | |
9734 | |
9735 | |
9736 | |
9737 | |
9738 #---------------------------------------------------------------- | |
9739 # Look for Pike | |
9740 #---------------------------------------------------------------- | |
9741 | |
9742 # Identify the name of the Pike executable | |
9743 # Priority: configure option, automatic search | |
9744 PIKEBIN= | |
9745 | |
9746 # Check whether --with-pike was given. | |
9747 if test "${with_pike+set}" = set; then : | |
9748 withval=$with_pike; PIKEBIN="$withval" | |
9749 else | |
9750 PIKEBIN=yes | |
9751 fi | |
9752 | |
9753 | |
9754 # First, check for "--without-pike" or "--with-pike=no". | |
9755 if test x"${PIKEBIN}" = xno -o x"${with_alllang}" = xno ; then | |
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Pike" >&5 | |
9757 $as_echo "$as_me: Disabling Pike" >&6;} | |
9758 PIKEBIN= | |
9759 else | |
9760 | |
9761 if test "x$PIKEBIN" = xyes; then | |
9762 for ac_prog in pike pike7.8 pike7.6 pike7.4 pike7.2 | |
9763 do | |
9764 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9765 set dummy $ac_prog; ac_word=$2 | |
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9767 $as_echo_n "checking for $ac_word... " >&6; } | |
9768 if ${ac_cv_prog_PIKE+:} false; then : | |
9769 $as_echo_n "(cached) " >&6 | |
9770 else | |
9771 if test -n "$PIKE"; then | |
9772 ac_cv_prog_PIKE="$PIKE" # Let the user override the test. | |
9773 else | |
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9775 for as_dir in $PATH | |
9776 do | |
9777 IFS=$as_save_IFS | |
9778 test -z "$as_dir" && as_dir=. | |
9779 for ac_exec_ext in '' $ac_executable_extensions; do | |
9780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9781 ac_cv_prog_PIKE="$ac_prog" | |
9782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9783 break 2 | |
9784 fi | |
9785 done | |
9786 done | |
9787 IFS=$as_save_IFS | |
9788 | |
9789 fi | |
9790 fi | |
9791 PIKE=$ac_cv_prog_PIKE | |
9792 if test -n "$PIKE"; then | |
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIKE" >&5 | |
9794 $as_echo "$PIKE" >&6; } | |
9795 else | |
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9797 $as_echo "no" >&6; } | |
9798 fi | |
9799 | |
9800 | |
9801 test -n "$PIKE" && break | |
9802 done | |
9803 | |
9804 else | |
9805 PIKE="$PIKEBIN" | |
9806 fi | |
9807 | |
9808 | |
9809 # Check for pike-config | |
9810 # Priority: configure option, guessed from $PIKE, search from list | |
9811 | |
9812 # Check whether --with-pike-config was given. | |
9813 if test "${with_pike_config+set}" = set; then : | |
9814 withval=$with_pike_config; PIKECONFIG="$withval" | |
9815 else | |
9816 PIKECONFIG="" | |
9817 fi | |
9818 | |
9819 | |
9820 if test -z "$PIKECONFIG" -a -n "$PIKE"; then | |
9821 for ac_prog in $PIKE-config pike-config \ | |
9822 pike7.6-config pike7.4-config pike7.2-config | |
9823 do | |
9824 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9825 set dummy $ac_prog; ac_word=$2 | |
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9827 $as_echo_n "checking for $ac_word... " >&6; } | |
9828 if ${ac_cv_prog_PIKECONFIG+:} false; then : | |
9829 $as_echo_n "(cached) " >&6 | |
9830 else | |
9831 if test -n "$PIKECONFIG"; then | |
9832 ac_cv_prog_PIKECONFIG="$PIKECONFIG" # Let the user override the test. | |
9833 else | |
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9835 for as_dir in $PATH | |
9836 do | |
9837 IFS=$as_save_IFS | |
9838 test -z "$as_dir" && as_dir=. | |
9839 for ac_exec_ext in '' $ac_executable_extensions; do | |
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9841 ac_cv_prog_PIKECONFIG="$ac_prog" | |
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9843 break 2 | |
9844 fi | |
9845 done | |
9846 done | |
9847 IFS=$as_save_IFS | |
9848 | |
9849 fi | |
9850 fi | |
9851 PIKECONFIG=$ac_cv_prog_PIKECONFIG | |
9852 if test -n "$PIKECONFIG"; then | |
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIKECONFIG" >&5 | |
9854 $as_echo "$PIKECONFIG" >&6; } | |
9855 else | |
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9857 $as_echo "no" >&6; } | |
9858 fi | |
9859 | |
9860 | |
9861 test -n "$PIKECONFIG" && break | |
9862 done | |
9863 | |
9864 fi | |
9865 | |
9866 # Check for a --with-pikeincl option to configure | |
9867 # Priority: configure option, info from $PIKECONFIG, guessed by pike script | |
9868 | |
9869 # Check whether --with-pikeincl was given. | |
9870 if test "${with_pikeincl+set}" = set; then : | |
9871 withval=$with_pikeincl; PIKEINCLUDE="-I$withval" | |
9872 else | |
9873 PIKEINCLUDE= | |
9874 fi | |
9875 | |
9876 | |
9877 if test -n "$PIKE"; then | |
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pike header files" >&5 | |
9879 $as_echo_n "checking for Pike header files... " >&6; } | |
9880 if test -z "$PIKEINCLUDE" -a -n "$PIKECONFIG"; then | |
9881 PIKEINCLUDE=`$PIKECONFIG --cflags` | |
9882 fi | |
9883 if test -z "$PIKEINCLUDE" -a -n "$PIKE"; then | |
9884 PIKEINCLUDE=`$PIKE -x cflags` | |
9885 if test -z "$PIKEINCLUDE"; then | |
9886 PIKEPATH=`which $PIKE` | |
9887 PIKEINCLUDE=`$PIKE Tools/check-include-path.pike $PIKEPATH` | |
9888 PIKEINCLUDE="-I$PIKEINCLUDE" | |
9889 fi | |
9890 fi | |
9891 | |
9892 if test -z "$PIKEINCLUDE"; then | |
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9894 $as_echo "not found" >&6; } | |
9895 else | |
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIKEINCLUDE" >&5 | |
9897 $as_echo "$PIKEINCLUDE" >&6; } | |
9898 fi | |
9899 fi | |
9900 fi | |
9901 | |
9902 | |
9903 | |
9904 #---------------------------------------------------------------- | |
9905 # Look for CHICKEN | |
9906 #---------------------------------------------------------------- | |
9907 | |
9908 CHICKEN= | |
9909 CHICKEN_CONFIG= | |
9910 CHICKENHOME= | |
9911 CHICKENOPTS= | |
9912 CHICKENLIB= | |
9913 | |
9914 | |
9915 | |
9916 # Check whether --with-chicken was given. | |
9917 if test "${with_chicken+set}" = set; then : | |
9918 withval=$with_chicken; CHICKENBIN="$withval" | |
9919 else | |
9920 CHICKENBIN=yes | |
9921 fi | |
9922 | |
9923 | |
9924 # First, check for "--without-chicken" or "--with-chicken=no". | |
9925 if test x"${CHICKENBIN}" = xno -o x"${with_alllang}" = xno ; then | |
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling CHICKEN" >&5 | |
9927 $as_echo "$as_me: Disabling CHICKEN" >&6;} | |
9928 else | |
9929 | |
9930 if test "x$CHICKENBIN" = xyes; then | |
9931 for ac_prog in chicken | |
9932 do | |
9933 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9934 set dummy $ac_prog; ac_word=$2 | |
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9936 $as_echo_n "checking for $ac_word... " >&6; } | |
9937 if ${ac_cv_prog_CHICKEN+:} false; then : | |
9938 $as_echo_n "(cached) " >&6 | |
9939 else | |
9940 if test -n "$CHICKEN"; then | |
9941 ac_cv_prog_CHICKEN="$CHICKEN" # Let the user override the test. | |
9942 else | |
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9944 for as_dir in $PATH | |
9945 do | |
9946 IFS=$as_save_IFS | |
9947 test -z "$as_dir" && as_dir=. | |
9948 for ac_exec_ext in '' $ac_executable_extensions; do | |
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9950 ac_cv_prog_CHICKEN="$ac_prog" | |
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9952 break 2 | |
9953 fi | |
9954 done | |
9955 done | |
9956 IFS=$as_save_IFS | |
9957 | |
9958 fi | |
9959 fi | |
9960 CHICKEN=$ac_cv_prog_CHICKEN | |
9961 if test -n "$CHICKEN"; then | |
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHICKEN" >&5 | |
9963 $as_echo "$CHICKEN" >&6; } | |
9964 else | |
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9966 $as_echo "no" >&6; } | |
9967 fi | |
9968 | |
9969 | |
9970 test -n "$CHICKEN" && break | |
9971 done | |
9972 | |
9973 else | |
9974 CHICKEN="$CHICKENBIN" | |
9975 fi | |
9976 | |
9977 | |
9978 # Check whether --with-chickencsc was given. | |
9979 if test "${with_chickencsc+set}" = set; then : | |
9980 withval=$with_chickencsc; CHICKEN_CSC="$withval" | |
9981 else | |
9982 CHICKEN_CSC= | |
9983 fi | |
9984 | |
9985 | |
9986 if test -z "$CHICKEN_CSC"; then | |
9987 for ac_prog in csc | |
9988 do | |
9989 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9990 set dummy $ac_prog; ac_word=$2 | |
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9992 $as_echo_n "checking for $ac_word... " >&6; } | |
9993 if ${ac_cv_prog_CHICKEN_CSC+:} false; then : | |
9994 $as_echo_n "(cached) " >&6 | |
9995 else | |
9996 if test -n "$CHICKEN_CSC"; then | |
9997 ac_cv_prog_CHICKEN_CSC="$CHICKEN_CSC" # Let the user override the test. | |
9998 else | |
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10000 for as_dir in $PATH | |
10001 do | |
10002 IFS=$as_save_IFS | |
10003 test -z "$as_dir" && as_dir=. | |
10004 for ac_exec_ext in '' $ac_executable_extensions; do | |
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10006 ac_cv_prog_CHICKEN_CSC="$ac_prog" | |
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10008 break 2 | |
10009 fi | |
10010 done | |
10011 done | |
10012 IFS=$as_save_IFS | |
10013 | |
10014 fi | |
10015 fi | |
10016 CHICKEN_CSC=$ac_cv_prog_CHICKEN_CSC | |
10017 if test -n "$CHICKEN_CSC"; then | |
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHICKEN_CSC" >&5 | |
10019 $as_echo "$CHICKEN_CSC" >&6; } | |
10020 else | |
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10022 $as_echo "no" >&6; } | |
10023 fi | |
10024 | |
10025 | |
10026 test -n "$CHICKEN_CSC" && break | |
10027 done | |
10028 | |
10029 # Both the Microsoft C# compiler and chicken have an executable called csc, so check that this csc is really the chicken one | |
10030 if test -n "$CHICKEN_CSC" ; then | |
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether csc is the chicken compiler" >&5 | |
10032 $as_echo_n "checking whether csc is the chicken compiler... " >&6; } | |
10033 $CHICKEN_CSC -version 2>/dev/null | grep "chicken" > /dev/null || CHICKEN_CSC="" | |
10034 if test -z "$CHICKEN_CSC"; then | |
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10036 $as_echo "no" >&6; } | |
10037 else | |
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10039 $as_echo "yes" >&6; } | |
10040 fi | |
10041 fi | |
10042 fi | |
10043 | |
10044 | |
10045 # Check whether --with-chickencsi was given. | |
10046 if test "${with_chickencsi+set}" = set; then : | |
10047 withval=$with_chickencsi; CHICKEN_CSI="$withval" | |
10048 else | |
10049 CHICKEN_CSI= | |
10050 fi | |
10051 | |
10052 | |
10053 if test -z "$CHICKEN_CSI"; then | |
10054 for ac_prog in csi | |
10055 do | |
10056 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10057 set dummy $ac_prog; ac_word=$2 | |
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10059 $as_echo_n "checking for $ac_word... " >&6; } | |
10060 if ${ac_cv_prog_CHICKEN_CSI+:} false; then : | |
10061 $as_echo_n "(cached) " >&6 | |
10062 else | |
10063 if test -n "$CHICKEN_CSI"; then | |
10064 ac_cv_prog_CHICKEN_CSI="$CHICKEN_CSI" # Let the user override the test. | |
10065 else | |
10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10067 for as_dir in $PATH | |
10068 do | |
10069 IFS=$as_save_IFS | |
10070 test -z "$as_dir" && as_dir=. | |
10071 for ac_exec_ext in '' $ac_executable_extensions; do | |
10072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10073 ac_cv_prog_CHICKEN_CSI="$ac_prog" | |
10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10075 break 2 | |
10076 fi | |
10077 done | |
10078 done | |
10079 IFS=$as_save_IFS | |
10080 | |
10081 fi | |
10082 fi | |
10083 CHICKEN_CSI=$ac_cv_prog_CHICKEN_CSI | |
10084 if test -n "$CHICKEN_CSI"; then | |
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHICKEN_CSI" >&5 | |
10086 $as_echo "$CHICKEN_CSI" >&6; } | |
10087 else | |
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10089 $as_echo "no" >&6; } | |
10090 fi | |
10091 | |
10092 | |
10093 test -n "$CHICKEN_CSI" && break | |
10094 done | |
10095 | |
10096 fi | |
10097 | |
10098 if test -n "$CHICKEN_CSC" ; then | |
10099 | |
10100 | |
10101 # Check whether --with-chickenopts was given. | |
10102 if test "${with_chickenopts+set}" = set; then : | |
10103 withval=$with_chickenopts; | |
10104 CHICKENOPTS="$withval" | |
10105 else | |
10106 CHICKENOPTS= | |
10107 fi | |
10108 | |
10109 | |
10110 # Check whether --with-chickensharedlib was given. | |
10111 if test "${with_chickensharedlib+set}" = set; then : | |
10112 withval=$with_chickensharedlib; | |
10113 CHICKENSHAREDLIB="$withval" | |
10114 else | |
10115 CHICKENSHAREDLIB= | |
10116 fi | |
10117 | |
10118 | |
10119 # Check whether --with-chickenlib was given. | |
10120 if test "${with_chickenlib+set}" = set; then : | |
10121 withval=$with_chickenlib; | |
10122 CHICKENLIB="$withval" | |
10123 else | |
10124 CHICKENLIB= | |
10125 fi | |
10126 | |
10127 | |
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler options for static CHICKEN generated code" >&5 | |
10129 $as_echo_n "checking for compiler options for static CHICKEN generated code... " >&6; } | |
10130 if test -z "$CHICKENOPTS"; then | |
10131 CHICKENOPTS="`$CHICKEN_CSC -cflags`" | |
10132 else | |
10133 CHICKENOPTS="`$CHICKEN_CSC -cflags` $CHICKENOPTS" | |
10134 fi | |
10135 if test -z "$CHICKENOPTS"; then | |
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
10137 $as_echo "not found" >&6; } | |
10138 else | |
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHICKENOPTS" >&5 | |
10140 $as_echo "$CHICKENOPTS" >&6; } | |
10141 fi | |
10142 | |
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker options for shared CHICKEN generated code" >&5 | |
10144 $as_echo_n "checking for linker options for shared CHICKEN generated code... " >&6; } | |
10145 if test -z "$CHICKENSHAREDLIB"; then | |
10146 CHICKENSHAREDLIB="`$CHICKEN_CSC -shared -libs`" | |
10147 else | |
10148 CHICKENSHAREDLIB="`$CHICKEN_CSC -shared -libs` $CHICKENSHAREDLIB" | |
10149 fi | |
10150 if test -z "$CHICKENSHAREDLIB"; then | |
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
10152 $as_echo "not found" >&6; } | |
10153 else | |
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHICKENSHAREDLIB" >&5 | |
10155 $as_echo "$CHICKENSHAREDLIB" >&6; } | |
10156 fi | |
10157 | |
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker options for static CHICKEN generated code" >&5 | |
10159 $as_echo_n "checking for linker options for static CHICKEN generated code... " >&6; } | |
10160 if test -z "$CHICKENLIB"; then | |
10161 CHICKENLIB="`$CHICKEN_CSC -libs`" | |
10162 else | |
10163 CHICKENLIB="`$CHICKEN_CSC -libs` $CHICKENLIB" | |
10164 fi | |
10165 if test -z "$CHICKENLIB"; then | |
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
10167 $as_echo "not found" >&6; } | |
10168 else | |
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHICKENLIB" >&5 | |
10170 $as_echo "$CHICKENLIB" >&6; } | |
10171 fi | |
10172 | |
10173 fi # have CHICKEN_CONFIG | |
10174 fi # Check for --without-chicken | |
10175 | |
10176 | |
10177 | |
10178 | |
10179 | |
10180 | |
10181 | |
10182 | |
10183 #---------------------------------------------------------------- | |
10184 # Look for C# | |
10185 #---------------------------------------------------------------- | |
10186 | |
10187 | |
10188 # Check whether --with-csharp was given. | |
10189 if test "${with_csharp+set}" = set; then : | |
10190 withval=$with_csharp; with_csharp="$withval" | |
10191 else | |
10192 with_csharp=yes | |
10193 fi | |
10194 | |
10195 | |
10196 # Check whether --with-cil-interpreter was given. | |
10197 if test "${with_cil_interpreter+set}" = set; then : | |
10198 withval=$with_cil_interpreter; CSHARPBIN="$withval" | |
10199 else | |
10200 CSHARPBIN= | |
10201 fi | |
10202 | |
10203 | |
10204 # Check whether --with-csharp-compiler was given. | |
10205 if test "${with_csharp_compiler+set}" = set; then : | |
10206 withval=$with_csharp_compiler; CSHARPCOMPILERBIN="$withval" | |
10207 else | |
10208 CSHARPCOMPILERBIN= | |
10209 fi | |
10210 | |
10211 | |
10212 # First, check for "--without-csharp" or "--with-csharp=no". | |
10213 if test x"${with_csharp}" = xno -o x"${with_alllang}" = xno ; then | |
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling CSharp" >&5 | |
10215 $as_echo "$as_me: Disabling CSharp" >&6;} | |
10216 CSHARPCOMPILER= | |
10217 else | |
10218 | |
10219 if test -z "$CSHARPCOMPILERBIN" ; then | |
10220 case $host in | |
10221 *-*-cygwin* | *-*-mingw*) | |
10222 # prefer Mono gmcs (.NET 2.0) over mcs (.NET 1.1) - note mcs-1.2.3 has major pinvoke bug | |
10223 for ac_prog in csc mono-csc gmcs mcs cscc | |
10224 do | |
10225 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10226 set dummy $ac_prog; ac_word=$2 | |
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10228 $as_echo_n "checking for $ac_word... " >&6; } | |
10229 if ${ac_cv_prog_CSHARPCOMPILER+:} false; then : | |
10230 $as_echo_n "(cached) " >&6 | |
10231 else | |
10232 if test -n "$CSHARPCOMPILER"; then | |
10233 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test. | |
10234 else | |
10235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10236 for as_dir in $PATH | |
10237 do | |
10238 IFS=$as_save_IFS | |
10239 test -z "$as_dir" && as_dir=. | |
10240 for ac_exec_ext in '' $ac_executable_extensions; do | |
10241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10242 ac_cv_prog_CSHARPCOMPILER="$ac_prog" | |
10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10244 break 2 | |
10245 fi | |
10246 done | |
10247 done | |
10248 IFS=$as_save_IFS | |
10249 | |
10250 fi | |
10251 fi | |
10252 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER | |
10253 if test -n "$CSHARPCOMPILER"; then | |
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCOMPILER" >&5 | |
10255 $as_echo "$CSHARPCOMPILER" >&6; } | |
10256 else | |
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10258 $as_echo "no" >&6; } | |
10259 fi | |
10260 | |
10261 | |
10262 test -n "$CSHARPCOMPILER" && break | |
10263 done | |
10264 | |
10265 if test -n "$CSHARPCOMPILER" && test "$CSHARPCOMPILER" = "csc" ; then | |
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether csc is the Microsoft CSharp compiler" >&5 | |
10267 $as_echo_n "checking whether csc is the Microsoft CSharp compiler... " >&6; } | |
10268 csc 2>/dev/null | grep "C#" > /dev/null || CSHARPCOMPILER="" | |
10269 if test -z "$CSHARPCOMPILER" ; then | |
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10271 $as_echo "no" >&6; } | |
10272 for ac_prog in mono-csc gmcs mcs cscc | |
10273 do | |
10274 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10275 set dummy $ac_prog; ac_word=$2 | |
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10277 $as_echo_n "checking for $ac_word... " >&6; } | |
10278 if ${ac_cv_prog_CSHARPCOMPILER+:} false; then : | |
10279 $as_echo_n "(cached) " >&6 | |
10280 else | |
10281 if test -n "$CSHARPCOMPILER"; then | |
10282 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test. | |
10283 else | |
10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10285 for as_dir in $PATH | |
10286 do | |
10287 IFS=$as_save_IFS | |
10288 test -z "$as_dir" && as_dir=. | |
10289 for ac_exec_ext in '' $ac_executable_extensions; do | |
10290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10291 ac_cv_prog_CSHARPCOMPILER="$ac_prog" | |
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10293 break 2 | |
10294 fi | |
10295 done | |
10296 done | |
10297 IFS=$as_save_IFS | |
10298 | |
10299 fi | |
10300 fi | |
10301 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER | |
10302 if test -n "$CSHARPCOMPILER"; then | |
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCOMPILER" >&5 | |
10304 $as_echo "$CSHARPCOMPILER" >&6; } | |
10305 else | |
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10307 $as_echo "no" >&6; } | |
10308 fi | |
10309 | |
10310 | |
10311 test -n "$CSHARPCOMPILER" && break | |
10312 done | |
10313 | |
10314 else | |
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10316 $as_echo "yes" >&6; } | |
10317 fi | |
10318 fi | |
10319 ;; | |
10320 *)for ac_prog in mono-csc gmcs mcs cscc | |
10321 do | |
10322 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10323 set dummy $ac_prog; ac_word=$2 | |
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10325 $as_echo_n "checking for $ac_word... " >&6; } | |
10326 if ${ac_cv_prog_CSHARPCOMPILER+:} false; then : | |
10327 $as_echo_n "(cached) " >&6 | |
10328 else | |
10329 if test -n "$CSHARPCOMPILER"; then | |
10330 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test. | |
10331 else | |
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10333 for as_dir in $PATH | |
10334 do | |
10335 IFS=$as_save_IFS | |
10336 test -z "$as_dir" && as_dir=. | |
10337 for ac_exec_ext in '' $ac_executable_extensions; do | |
10338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10339 ac_cv_prog_CSHARPCOMPILER="$ac_prog" | |
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10341 break 2 | |
10342 fi | |
10343 done | |
10344 done | |
10345 IFS=$as_save_IFS | |
10346 | |
10347 fi | |
10348 fi | |
10349 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER | |
10350 if test -n "$CSHARPCOMPILER"; then | |
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCOMPILER" >&5 | |
10352 $as_echo "$CSHARPCOMPILER" >&6; } | |
10353 else | |
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10355 $as_echo "no" >&6; } | |
10356 fi | |
10357 | |
10358 | |
10359 test -n "$CSHARPCOMPILER" && break | |
10360 done | |
10361 ;; | |
10362 esac | |
10363 else | |
10364 CSHARPCOMPILER="$CSHARPCOMPILERBIN" | |
10365 fi | |
10366 | |
10367 CSHARPPATHSEPARATOR="/" | |
10368 CSHARPCYGPATH_W=echo | |
10369 if test -z "$CSHARPBIN" ; then | |
10370 CSHARPCILINTERPRETER="" | |
10371 CSHARPCILINTERPRETER_FLAGS="" | |
10372 if test "cscc" = "$CSHARPCOMPILER" ; then | |
10373 for ac_prog in ilrun | |
10374 do | |
10375 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10376 set dummy $ac_prog; ac_word=$2 | |
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10378 $as_echo_n "checking for $ac_word... " >&6; } | |
10379 if ${ac_cv_prog_CSHARPCILINTERPRETER+:} false; then : | |
10380 $as_echo_n "(cached) " >&6 | |
10381 else | |
10382 if test -n "$CSHARPCILINTERPRETER"; then | |
10383 ac_cv_prog_CSHARPCILINTERPRETER="$CSHARPCILINTERPRETER" # Let the user override the test. | |
10384 else | |
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10386 for as_dir in $PATH | |
10387 do | |
10388 IFS=$as_save_IFS | |
10389 test -z "$as_dir" && as_dir=. | |
10390 for ac_exec_ext in '' $ac_executable_extensions; do | |
10391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10392 ac_cv_prog_CSHARPCILINTERPRETER="$ac_prog" | |
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10394 break 2 | |
10395 fi | |
10396 done | |
10397 done | |
10398 IFS=$as_save_IFS | |
10399 | |
10400 fi | |
10401 fi | |
10402 CSHARPCILINTERPRETER=$ac_cv_prog_CSHARPCILINTERPRETER | |
10403 if test -n "$CSHARPCILINTERPRETER"; then | |
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCILINTERPRETER" >&5 | |
10405 $as_echo "$CSHARPCILINTERPRETER" >&6; } | |
10406 else | |
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10408 $as_echo "no" >&6; } | |
10409 fi | |
10410 | |
10411 | |
10412 test -n "$CSHARPCILINTERPRETER" && break | |
10413 done | |
10414 | |
10415 else | |
10416 if test "mcs" = "$CSHARPCOMPILER"; then | |
10417 # Check that mcs is the C# compiler and not the Unix mcs utility by examining the output of 'mcs --version' | |
10418 # The Mono compiler should emit: Mono C# compiler version a.b.c.d | |
10419 csharp_version_raw=`(mcs --version) 2>/dev/null` | |
10420 csharp_version_searched=`(mcs --version | sed -e "/C#/b" -e "/Mono/b" -e d) 2>/dev/null` # return string if contains 'Mono' or 'C#' | |
10421 CSHARPCOMPILER="" | |
10422 if test -n "$csharp_version_raw" ; then | |
10423 if test "$csharp_version_raw" = "$csharp_version_searched" ; then | |
10424 CSHARPCOMPILER="mcs" | |
10425 fi | |
10426 fi | |
10427 if test "mcs" != "$CSHARPCOMPILER" ; then | |
10428 echo "mcs is not a working Mono C# compiler" | |
10429 fi | |
10430 fi | |
10431 if test "mcs" = "$CSHARPCOMPILER" || test "gmcs" = "$CSHARPCOMPILER"; then | |
10432 for ac_prog in mono | |
10433 do | |
10434 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10435 set dummy $ac_prog; ac_word=$2 | |
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10437 $as_echo_n "checking for $ac_word... " >&6; } | |
10438 if ${ac_cv_prog_CSHARPCILINTERPRETER+:} false; then : | |
10439 $as_echo_n "(cached) " >&6 | |
10440 else | |
10441 if test -n "$CSHARPCILINTERPRETER"; then | |
10442 ac_cv_prog_CSHARPCILINTERPRETER="$CSHARPCILINTERPRETER" # Let the user override the test. | |
10443 else | |
10444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10445 for as_dir in $PATH | |
10446 do | |
10447 IFS=$as_save_IFS | |
10448 test -z "$as_dir" && as_dir=. | |
10449 for ac_exec_ext in '' $ac_executable_extensions; do | |
10450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10451 ac_cv_prog_CSHARPCILINTERPRETER="$ac_prog" | |
10452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10453 break 2 | |
10454 fi | |
10455 done | |
10456 done | |
10457 IFS=$as_save_IFS | |
10458 | |
10459 fi | |
10460 fi | |
10461 CSHARPCILINTERPRETER=$ac_cv_prog_CSHARPCILINTERPRETER | |
10462 if test -n "$CSHARPCILINTERPRETER"; then | |
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARPCILINTERPRETER" >&5 | |
10464 $as_echo "$CSHARPCILINTERPRETER" >&6; } | |
10465 else | |
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10467 $as_echo "no" >&6; } | |
10468 fi | |
10469 | |
10470 | |
10471 test -n "$CSHARPCILINTERPRETER" && break | |
10472 done | |
10473 # Mono JIT | |
10474 CSHARPCILINTERPRETER_FLAGS="--debug" | |
10475 else | |
10476 if test "csc" = "$CSHARPCOMPILER"; then | |
10477 CSHARPPATHSEPARATOR="\\\\" | |
10478 CSHARPCYGPATH_W='cygpath -w' | |
10479 fi | |
10480 fi | |
10481 fi | |
10482 else | |
10483 CSHARPCILINTERPRETER="$CSHARPBIN" | |
10484 fi | |
10485 | |
10486 # Cygwin requires the Windows standard (Pascal) calling convention as it is a Windows executable and not a Cygwin built executable | |
10487 case $host in | |
10488 *-*-cygwin* | *-*-mingw*) | |
10489 if test "$GCC" = yes; then | |
10490 CSHARPDYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias" | |
10491 CSHARPCFLAGS="-mno-cygwin -mthreads" | |
10492 else | |
10493 CSHARPDYNAMICLINKING="" | |
10494 CSHARPCFLAGS="" | |
10495 fi ;; | |
10496 *) | |
10497 CSHARPDYNAMICLINKING="" | |
10498 CSHARPCFLAGS="" | |
10499 ;; | |
10500 esac | |
10501 | |
10502 # CSharp on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls | |
10503 case $host in | |
10504 *-*-cygwin* | *-*-mingw*) CSHARPLIBRARYPREFIX="";; | |
10505 *)CSHARPLIBRARYPREFIX="lib";; | |
10506 esac | |
10507 | |
10508 # C#/Mono on Mac OS X tweaks | |
10509 case $host in | |
10510 *-*-darwin*) | |
10511 CSHARPSO=".so" | |
10512 ;; | |
10513 *) | |
10514 CSHARPSO=$SO | |
10515 ;; | |
10516 esac | |
10517 fi | |
10518 | |
10519 | |
10520 | |
10521 | |
10522 | |
10523 | |
10524 | |
10525 # Is this going to be used? | |
10526 | |
10527 | |
10528 | |
10529 #---------------------------------------------------------------- | |
10530 # Look for Lua | |
10531 #---------------------------------------------------------------- | |
10532 | |
10533 LUABIN= | |
10534 LUAINCLUDE= | |
10535 LUALIB= | |
10536 LUADYNAMICLOADLIB= | |
10537 LUAFLAGS= | |
10538 LUALINK= | |
10539 # note: if LUABIN is empty then lua tests will not be done | |
10540 # LUABIN will be cleared if certain dependencies cannot be found | |
10541 | |
10542 | |
10543 # Check whether --with-lua was given. | |
10544 if test "${with_lua+set}" = set; then : | |
10545 withval=$with_lua; LUABIN="$withval" | |
10546 else | |
10547 LUABIN=yes | |
10548 fi | |
10549 | |
10550 | |
10551 # Check whether --with-luaincl was given. | |
10552 if test "${with_luaincl+set}" = set; then : | |
10553 withval=$with_luaincl; | |
10554 LUAINCLUDE="$withval" | |
10555 else | |
10556 LUAINCLUDE= | |
10557 fi | |
10558 | |
10559 | |
10560 # Check whether --with-lualib was given. | |
10561 if test "${with_lualib+set}" = set; then : | |
10562 withval=$with_lualib; | |
10563 LUALIB="$withval" | |
10564 else | |
10565 LUALIB= | |
10566 fi | |
10567 | |
10568 | |
10569 # First, check for "--without-lua" or "--with-lua=no". | |
10570 if test x"${LUABIN}" = xno -o x"${with_alllang}" = xno ; then | |
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Lua" >&5 | |
10572 $as_echo "$as_me: Disabling Lua" >&6;} | |
10573 else | |
10574 | |
10575 # can we find lua? | |
10576 if test "x$LUABIN" = xyes; then | |
10577 # We look for a versioned Lua binary first, as there can be | |
10578 # multiple versions of Lua installed on some systems (like Debian). | |
10579 # The search order should match the include-file and library search | |
10580 # orders below (a Lua shared library built for one version may not | |
10581 # work with a Lua binary of a different version). | |
10582 for ac_prog in lua5.2 lua5.1 lua | |
10583 do | |
10584 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10585 set dummy $ac_prog; ac_word=$2 | |
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10587 $as_echo_n "checking for $ac_word... " >&6; } | |
10588 if ${ac_cv_path_LUABIN+:} false; then : | |
10589 $as_echo_n "(cached) " >&6 | |
10590 else | |
10591 case $LUABIN in | |
10592 [\\/]* | ?:[\\/]*) | |
10593 ac_cv_path_LUABIN="$LUABIN" # Let the user override the test with a path. | |
10594 ;; | |
10595 *) | |
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10597 for as_dir in $PATH | |
10598 do | |
10599 IFS=$as_save_IFS | |
10600 test -z "$as_dir" && as_dir=. | |
10601 for ac_exec_ext in '' $ac_executable_extensions; do | |
10602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10603 ac_cv_path_LUABIN="$as_dir/$ac_word$ac_exec_ext" | |
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10605 break 2 | |
10606 fi | |
10607 done | |
10608 done | |
10609 IFS=$as_save_IFS | |
10610 | |
10611 ;; | |
10612 esac | |
10613 fi | |
10614 LUABIN=$ac_cv_path_LUABIN | |
10615 if test -n "$LUABIN"; then | |
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUABIN" >&5 | |
10617 $as_echo "$LUABIN" >&6; } | |
10618 else | |
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10620 $as_echo "no" >&6; } | |
10621 fi | |
10622 | |
10623 | |
10624 test -n "$LUABIN" && break | |
10625 done | |
10626 | |
10627 fi | |
10628 | |
10629 # check version: we need Lua 5.x | |
10630 if test "$LUABIN"; then | |
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 | |
10632 $as_echo_n "checking Lua version... " >&6; } | |
10633 # if version 5.x | |
10634 LUAV5=`$LUABIN -e 'if string.sub(_VERSION,5,5)=="5" then print "1" end'` | |
10635 # if not version 5.0 | |
10636 LUAV51=`$LUABIN -e 'if string.sub(_VERSION,5,7)~="5.0" then print "1" end'` | |
10637 | |
10638 if test -z "$LUAV5"; then | |
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not Lua 5.x" >&5 | |
10640 $as_echo "$as_me: WARNING: Not Lua 5.x" >&2;} | |
10641 LUABIN="" | |
10642 elif test -z "$LUAV51"; then | |
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Lua 5.0.x" >&5 | |
10644 $as_echo "Lua 5.0.x" >&6; } | |
10645 else | |
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Lua 5.1 or later" >&5 | |
10647 $as_echo "Lua 5.1 or later" >&6; } | |
10648 fi | |
10649 fi | |
10650 | |
10651 if test "$LUABIN"; then | |
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Lua dynamic loading is enabled" >&5 | |
10653 $as_echo_n "checking whether Lua dynamic loading is enabled... " >&6; } | |
10654 # using Lua to check Lua | |
10655 # lua 5.0 & 5.1 have different fn names | |
10656 if test -z "$LUAV51"; then | |
10657 LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=loadlib("no_such_lib","") if c~="absent" then print "1" end'` | |
10658 else | |
10659 LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=package.loadlib("no_such_lib","") if c~="absent" then print "1" end'` | |
10660 fi | |
10661 | |
10662 if test -z "$LUADYNAMICLOADLIB"; then | |
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10664 $as_echo "no" >&6; } | |
10665 else | |
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10667 $as_echo "yes" >&6; } | |
10668 fi | |
10669 fi | |
10670 | |
10671 # look for the header files & set LUAFLAGS accordingly | |
10672 # will clear LUABIN if not present | |
10673 if test -n "$LUAINCLUDE"; then | |
10674 as_ac_File=`$as_echo "ac_cv_file_$LUAINCLUDE/lua.h" | $as_tr_sh` | |
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUAINCLUDE/lua.h" >&5 | |
10676 $as_echo_n "checking for $LUAINCLUDE/lua.h... " >&6; } | |
10677 if eval \${$as_ac_File+:} false; then : | |
10678 $as_echo_n "(cached) " >&6 | |
10679 else | |
10680 test "$cross_compiling" = yes && | |
10681 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | |
10682 if test -r "$LUAINCLUDE/lua.h"; then | |
10683 eval "$as_ac_File=yes" | |
10684 else | |
10685 eval "$as_ac_File=no" | |
10686 fi | |
10687 fi | |
10688 eval ac_res=\$$as_ac_File | |
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
10690 $as_echo "$ac_res" >&6; } | |
10691 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | |
10692 LUAFLAGS="$ISYSTEM$LUAINCLUDE" | |
10693 else | |
10694 LUABIN= | |
10695 fi | |
10696 | |
10697 else | |
10698 LUA_OK="1" | |
10699 ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default" | |
10700 if test "x$ac_cv_header_lua_h" = xyes; then : | |
10701 LUAFLAGS="" | |
10702 else | |
10703 LUA_OK="" | |
10704 fi | |
10705 | |
10706 | |
10707 # if we didn't get it, going to have to look elsewhere (the hard way) | |
10708 if test -z "$LUA_OK"; then | |
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua.h in other locations" >&5 | |
10710 $as_echo_n "checking for lua.h in other locations... " >&6; } | |
10711 # note: Debian/Ubuntu seem to like /usr/include/lua5.1/lua.h | |
10712 # The ordering of the include directories to search should match | |
10713 # the ordering of libraries to search in the library test below. | |
10714 inc=/usr/include | |
10715 dirs="$inc/lua5.2 $inc/lua5.1 $inc/lua51 $inc/lua5.0 $inc/lua50 /usr/local/include" | |
10716 for i in $dirs; do | |
10717 #echo "$i" | |
10718 if test -r $i/lua.h; then | |
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i/lua.h" >&5 | |
10720 $as_echo "$i/lua.h" >&6; } | |
10721 LUAFLAGS="$ISYSTEM$i" | |
10722 break | |
10723 fi | |
10724 done | |
10725 if test -z "$LUAFLAGS"; then | |
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
10727 $as_echo "not found" >&6; } | |
10728 LUABIN="" # clear the bin | |
10729 fi | |
10730 fi | |
10731 fi | |
10732 | |
10733 # look for the library files & set LUALINK accordingly | |
10734 # will clear LUABIN if not present | |
10735 lua_save_LIBS=$LIBS # the code seems to disrupt LIBS, so saving | |
10736 | |
10737 if test -n "$LUALIB"; then | |
10738 as_ac_File=`$as_echo "ac_cv_file_$LUALIB/liblua.a" | $as_tr_sh` | |
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUALIB/liblua.a" >&5 | |
10740 $as_echo_n "checking for $LUALIB/liblua.a... " >&6; } | |
10741 if eval \${$as_ac_File+:} false; then : | |
10742 $as_echo_n "(cached) " >&6 | |
10743 else | |
10744 test "$cross_compiling" = yes && | |
10745 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | |
10746 if test -r "$LUALIB/liblua.a"; then | |
10747 eval "$as_ac_File=yes" | |
10748 else | |
10749 eval "$as_ac_File=no" | |
10750 fi | |
10751 fi | |
10752 eval ac_res=\$$as_ac_File | |
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
10754 $as_echo "$ac_res" >&6; } | |
10755 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | |
10756 LUALINK="-L$LUALIB -llua" | |
10757 else | |
10758 LUABIN= | |
10759 fi | |
10760 | |
10761 else | |
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_close" >&5 | |
10763 $as_echo_n "checking for library containing lua_close... " >&6; } | |
10764 if ${ac_cv_search_lua_close+:} false; then : | |
10765 $as_echo_n "(cached) " >&6 | |
10766 else | |
10767 ac_func_search_save_LIBS=$LIBS | |
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10769 /* end confdefs.h. */ | |
10770 | |
10771 /* Override any GCC internal prototype to avoid an error. | |
10772 Use char because int might match the return type of a GCC | |
10773 builtin and then its argument prototype would still apply. */ | |
10774 #ifdef __cplusplus | |
10775 extern "C" | |
10776 #endif | |
10777 char lua_close (); | |
10778 int | |
10779 main () | |
10780 { | |
10781 return lua_close (); | |
10782 ; | |
10783 return 0; | |
10784 } | |
10785 _ACEOF | |
10786 for ac_lib in '' lua lua5.2 lua5.1 lua51 lua5.0 lua50; do | |
10787 if test -z "$ac_lib"; then | |
10788 ac_res="none required" | |
10789 else | |
10790 ac_res=-l$ac_lib | |
10791 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10792 fi | |
10793 if ac_fn_c_try_link "$LINENO"; then : | |
10794 ac_cv_search_lua_close=$ac_res | |
10795 fi | |
10796 rm -f core conftest.err conftest.$ac_objext \ | |
10797 conftest$ac_exeext | |
10798 if ${ac_cv_search_lua_close+:} false; then : | |
10799 break | |
10800 fi | |
10801 done | |
10802 if ${ac_cv_search_lua_close+:} false; then : | |
10803 | |
10804 else | |
10805 ac_cv_search_lua_close=no | |
10806 fi | |
10807 rm conftest.$ac_ext | |
10808 LIBS=$ac_func_search_save_LIBS | |
10809 fi | |
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_close" >&5 | |
10811 $as_echo "$ac_cv_search_lua_close" >&6; } | |
10812 ac_res=$ac_cv_search_lua_close | |
10813 if test "$ac_res" != no; then : | |
10814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10815 LUALINK="-l$ac_lib" | |
10816 else | |
10817 LUABIN= | |
10818 fi | |
10819 | |
10820 fi | |
10821 | |
10822 # adding lualib for lua 5.0 | |
10823 if test -z "$LUAV51"; then # extra for lua 5.0 | |
10824 LUALINK="$LUALINK -llualib" | |
10825 fi | |
10826 | |
10827 LIBS=$lua_save_LIBS # restore LIBS | |
10828 | |
10829 fi # if not disabled | |
10830 | |
10831 | |
10832 | |
10833 | |
10834 | |
10835 | |
10836 #---------------------------------------------------------------- | |
10837 # Look for Allegro Common Lisp | |
10838 #---------------------------------------------------------------- | |
10839 | |
10840 ALLEGROCLBIN= | |
10841 | |
10842 | |
10843 # Check whether --with-allegrocl was given. | |
10844 if test "${with_allegrocl+set}" = set; then : | |
10845 withval=$with_allegrocl; ALLEGROCLBIN="$withval" | |
10846 else | |
10847 ALLEGROCLBIN=yes | |
10848 fi | |
10849 | |
10850 | |
10851 # First, check for "--without-allegrocl" or "--with-allegrocl=no". | |
10852 if test x"${ALLEGROCLBIN}" = xno -o x"${with_alllang}" = xno ; then | |
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Allegro CL" >&5 | |
10854 $as_echo "$as_me: Disabling Allegro CL" >&6;} | |
10855 ALLEGROCLBIN= | |
10856 else | |
10857 | |
10858 # can we find allegrocl? | |
10859 if test "x$ALLEGROCLBIN" = xyes; then | |
10860 # Extract the first word of "alisp", so it can be a program name with args. | |
10861 set dummy alisp; ac_word=$2 | |
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10863 $as_echo_n "checking for $ac_word... " >&6; } | |
10864 if ${ac_cv_path_ALLEGROCLBIN+:} false; then : | |
10865 $as_echo_n "(cached) " >&6 | |
10866 else | |
10867 case $ALLEGROCLBIN in | |
10868 [\\/]* | ?:[\\/]*) | |
10869 ac_cv_path_ALLEGROCLBIN="$ALLEGROCLBIN" # Let the user override the test with a path. | |
10870 ;; | |
10871 *) | |
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10873 for as_dir in $PATH | |
10874 do | |
10875 IFS=$as_save_IFS | |
10876 test -z "$as_dir" && as_dir=. | |
10877 for ac_exec_ext in '' $ac_executable_extensions; do | |
10878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10879 ac_cv_path_ALLEGROCLBIN="$as_dir/$ac_word$ac_exec_ext" | |
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10881 break 2 | |
10882 fi | |
10883 done | |
10884 done | |
10885 IFS=$as_save_IFS | |
10886 | |
10887 ;; | |
10888 esac | |
10889 fi | |
10890 ALLEGROCLBIN=$ac_cv_path_ALLEGROCLBIN | |
10891 if test -n "$ALLEGROCLBIN"; then | |
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALLEGROCLBIN" >&5 | |
10893 $as_echo "$ALLEGROCLBIN" >&6; } | |
10894 else | |
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10896 $as_echo "no" >&6; } | |
10897 fi | |
10898 | |
10899 | |
10900 fi | |
10901 fi | |
10902 | |
10903 | |
10904 | |
10905 #---------------------------------------------------------------- | |
10906 # Look for GNU CLISP | |
10907 #---------------------------------------------------------------- | |
10908 | |
10909 CLISPBIN= | |
10910 | |
10911 | |
10912 # Check whether --with-clisp was given. | |
10913 if test "${with_clisp+set}" = set; then : | |
10914 withval=$with_clisp; CLISPBIN="$withval" | |
10915 else | |
10916 CLISPBIN=yes | |
10917 fi | |
10918 | |
10919 | |
10920 # First, check for "--without-clisp" or "--with-clisp=no". | |
10921 if test x"${CLISPBIN}" = xno -o x"${with_alllang}" = xno ; then | |
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling CLISP" >&5 | |
10923 $as_echo "$as_me: Disabling CLISP" >&6;} | |
10924 CLISPBIN= | |
10925 else | |
10926 | |
10927 # can we find clisp? | |
10928 if test "x$CLISPBIN" = xyes; then | |
10929 # Extract the first word of "clisp", so it can be a program name with args. | |
10930 set dummy clisp; ac_word=$2 | |
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10932 $as_echo_n "checking for $ac_word... " >&6; } | |
10933 if ${ac_cv_path_CLISPBIN+:} false; then : | |
10934 $as_echo_n "(cached) " >&6 | |
10935 else | |
10936 case $CLISPBIN in | |
10937 [\\/]* | ?:[\\/]*) | |
10938 ac_cv_path_CLISPBIN="$CLISPBIN" # Let the user override the test with a path. | |
10939 ;; | |
10940 *) | |
10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10942 for as_dir in $PATH | |
10943 do | |
10944 IFS=$as_save_IFS | |
10945 test -z "$as_dir" && as_dir=. | |
10946 for ac_exec_ext in '' $ac_executable_extensions; do | |
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10948 ac_cv_path_CLISPBIN="$as_dir/$ac_word$ac_exec_ext" | |
10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10950 break 2 | |
10951 fi | |
10952 done | |
10953 done | |
10954 IFS=$as_save_IFS | |
10955 | |
10956 ;; | |
10957 esac | |
10958 fi | |
10959 CLISPBIN=$ac_cv_path_CLISPBIN | |
10960 if test -n "$CLISPBIN"; then | |
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLISPBIN" >&5 | |
10962 $as_echo "$CLISPBIN" >&6; } | |
10963 else | |
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10965 $as_echo "no" >&6; } | |
10966 fi | |
10967 | |
10968 | |
10969 fi | |
10970 fi | |
10971 | |
10972 | |
10973 | |
10974 #---------------------------------------------------------------- | |
10975 # Look for GNU R | |
10976 #---------------------------------------------------------------- | |
10977 | |
10978 RBIN= | |
10979 | |
10980 | |
10981 # Check whether --with-r was given. | |
10982 if test "${with_r+set}" = set; then : | |
10983 withval=$with_r; RBIN="$withval" | |
10984 else | |
10985 RBIN=yes | |
10986 fi | |
10987 | |
10988 | |
10989 # First, check for "--without-r" or "--with-r=no". | |
10990 if test x"${RBIN}" = xno -o x"${with_alllang}" = xno ; then | |
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling R" >&5 | |
10992 $as_echo "$as_me: Disabling R" >&6;} | |
10993 RBIN= | |
10994 else | |
10995 | |
10996 # can we find R? | |
10997 if test "x$RBIN" = xyes; then | |
10998 # Extract the first word of "R", so it can be a program name with args. | |
10999 set dummy R; ac_word=$2 | |
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11001 $as_echo_n "checking for $ac_word... " >&6; } | |
11002 if ${ac_cv_path_RBIN+:} false; then : | |
11003 $as_echo_n "(cached) " >&6 | |
11004 else | |
11005 case $RBIN in | |
11006 [\\/]* | ?:[\\/]*) | |
11007 ac_cv_path_RBIN="$RBIN" # Let the user override the test with a path. | |
11008 ;; | |
11009 *) | |
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11011 for as_dir in $PATH | |
11012 do | |
11013 IFS=$as_save_IFS | |
11014 test -z "$as_dir" && as_dir=. | |
11015 for ac_exec_ext in '' $ac_executable_extensions; do | |
11016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11017 ac_cv_path_RBIN="$as_dir/$ac_word$ac_exec_ext" | |
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11019 break 2 | |
11020 fi | |
11021 done | |
11022 done | |
11023 IFS=$as_save_IFS | |
11024 | |
11025 ;; | |
11026 esac | |
11027 fi | |
11028 RBIN=$ac_cv_path_RBIN | |
11029 if test -n "$RBIN"; then | |
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RBIN" >&5 | |
11031 $as_echo "$RBIN" >&6; } | |
11032 else | |
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11034 $as_echo "no" >&6; } | |
11035 fi | |
11036 | |
11037 | |
11038 fi | |
11039 fi | |
11040 | |
11041 | |
11042 | |
11043 #---------------------------------------------------------------- | |
11044 # Look for Go compilers | |
11045 #---------------------------------------------------------------- | |
11046 | |
11047 | |
11048 # Check whether --with-go was given. | |
11049 if test "${with_go+set}" = set; then : | |
11050 withval=$with_go; GOBIN="$withval" | |
11051 else | |
11052 GOBIN=yes | |
11053 fi | |
11054 | |
11055 | |
11056 if test x"${GOBIN}" = xno -o x"${with_alllang}" = xno ; then | |
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling Go" >&5 | |
11058 $as_echo "$as_me: Disabling Go" >&6;} | |
11059 GO= | |
11060 GOC= | |
11061 GO1=false | |
11062 GOGCC=false | |
11063 GOOPT= | |
11064 GOVERSIONOPTION= | |
11065 else | |
11066 | |
11067 if test "x$GOBIN" = xyes; then | |
11068 for ac_prog in go 6g 8g gccgo | |
11069 do | |
11070 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11071 set dummy $ac_prog; ac_word=$2 | |
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11073 $as_echo_n "checking for $ac_word... " >&6; } | |
11074 if ${ac_cv_prog_GO+:} false; then : | |
11075 $as_echo_n "(cached) " >&6 | |
11076 else | |
11077 if test -n "$GO"; then | |
11078 ac_cv_prog_GO="$GO" # Let the user override the test. | |
11079 else | |
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11081 for as_dir in $PATH | |
11082 do | |
11083 IFS=$as_save_IFS | |
11084 test -z "$as_dir" && as_dir=. | |
11085 for ac_exec_ext in '' $ac_executable_extensions; do | |
11086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11087 ac_cv_prog_GO="$ac_prog" | |
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11089 break 2 | |
11090 fi | |
11091 done | |
11092 done | |
11093 IFS=$as_save_IFS | |
11094 | |
11095 fi | |
11096 fi | |
11097 GO=$ac_cv_prog_GO | |
11098 if test -n "$GO"; then | |
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5 | |
11100 $as_echo "$GO" >&6; } | |
11101 else | |
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11103 $as_echo "no" >&6; } | |
11104 fi | |
11105 | |
11106 | |
11107 test -n "$GO" && break | |
11108 done | |
11109 | |
11110 else | |
11111 GO="$GOBIN" | |
11112 fi | |
11113 | |
11114 GOGCC=false | |
11115 GO1=false | |
11116 GOOPT= | |
11117 GOVERSIONOPTION= | |
11118 if test -n "$GO" ; then | |
11119 if $GO --help 2>/dev/null | grep gccgo >/dev/null 2>&1 ; then | |
11120 GOGCC=true | |
11121 GOVERSIONOPTION=--version | |
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gccgo version is too old" >&5 | |
11123 $as_echo_n "checking whether gccgo version is too old... " >&6; } | |
11124 go_version=`$GO $GOVERSIONOPTION | sed -e 's/^0-9* \(0-9.*\) .*$/\1/' -e 's/.//g'` | |
11125 if test "$go_version" -lt 470; then | |
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - minimum version is 4.7.0" >&5 | |
11127 $as_echo "yes - minimum version is 4.7.0" >&6; } | |
11128 else | |
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11130 $as_echo "no" >&6; } | |
11131 if test "$go_version" -lt 480; then | |
11132 GOOPT="-intgosize 32" | |
11133 else | |
11134 # The cast to long int works around a bug in the HP C Compiler | |
11135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11137 # This bug is HP SR number 8606223364. | |
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
11139 $as_echo_n "checking size of void *... " >&6; } | |
11140 if ${ac_cv_sizeof_void_p+:} false; then : | |
11141 $as_echo_n "(cached) " >&6 | |
11142 else | |
11143 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
11144 | |
11145 else | |
11146 if test "$ac_cv_type_void_p" = yes; then | |
11147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11149 as_fn_error 77 "cannot compute sizeof (void *) | |
11150 See \`config.log' for more details" "$LINENO" 5; } | |
11151 else | |
11152 ac_cv_sizeof_void_p=0 | |
11153 fi | |
11154 fi | |
11155 | |
11156 fi | |
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
11158 $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
11159 | |
11160 | |
11161 | |
11162 cat >>confdefs.h <<_ACEOF | |
11163 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
11164 _ACEOF | |
11165 | |
11166 | |
11167 if test "$ac_cv_sizeof_void_p" = "8"; then | |
11168 GOOPT="-intgosize 64" | |
11169 else | |
11170 GOOPT="-intgosize 32" | |
11171 fi | |
11172 fi | |
11173 fi | |
11174 elif test "`echo $GO | sed -e 's|.*/||'`" = "go"; then | |
11175 GO1=true | |
11176 GOVERSIONOPTION=version | |
11177 GOC=$(sh -c "$(go env) && echo \$GOCHAR")c | |
11178 go_version=$($GO $GOVERSIONOPTION | sed -e 's/go version //') | |
11179 case $go_version in | |
11180 go1.0*) GOOPT="-intgosize 32" ;; | |
11181 *) if test "$GOC" = "6c"; then | |
11182 GOOPT="-intgosize 64" | |
11183 else | |
11184 GOOPT="-intgosize 32" | |
11185 fi | |
11186 ;; | |
11187 esac | |
11188 else | |
11189 GOC=`echo $GO | sed -e 's/g/c/'` | |
11190 GOVERSIONOPTION=-V | |
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Go ($GO) version is too old" >&5 | |
11192 $as_echo_n "checking whether Go ($GO) version is too old... " >&6; } | |
11193 go_version=`$GO $GOVERSIONOPTION 2>/dev/null | sed -e 's/.*version.* \([0-9]*\).*/\1/'` | |
11194 go_min_version=7077 | |
11195 if test "$go_version" != "" -a "$go_version" -lt $go_min_version; then | |
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - minimum version is $go_min_version" >&5 | |
11197 $as_echo "yes - minimum version is $go_min_version" >&6; } | |
11198 GO= | |
11199 else | |
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11201 $as_echo "no" >&6; } | |
11202 fi | |
11203 GOOPT="-intgosize 32" | |
11204 fi | |
11205 fi | |
11206 fi | |
11207 | |
11208 | |
11209 | |
11210 | |
11211 | |
11212 | |
11213 | |
11214 | |
11215 #---------------------------------------------------------------- | |
11216 # Look for D | |
11217 #---------------------------------------------------------------- | |
11218 | |
11219 | |
11220 # Check whether --with-d was given. | |
11221 if test "${with_d+set}" = set; then : | |
11222 withval=$with_d; with_d="$withval" | |
11223 else | |
11224 with_d=yes | |
11225 fi | |
11226 | |
11227 | |
11228 # Check whether --with-d1-compiler was given. | |
11229 if test "${with_d1_compiler+set}" = set; then : | |
11230 withval=$with_d1_compiler; D1COMPILERBIN="$withval" | |
11231 else | |
11232 D1COMPILERBIN= | |
11233 fi | |
11234 | |
11235 | |
11236 # Check whether --with-d2-compiler was given. | |
11237 if test "${with_d2_compiler+set}" = set; then : | |
11238 withval=$with_d2_compiler; D2COMPILERBIN="$withval" | |
11239 else | |
11240 D2COMPILERBIN= | |
11241 fi | |
11242 | |
11243 | |
11244 | |
11245 # First, check for "--without-d" or "--with-d=no". | |
11246 if test x"${with_d}" = xno -o x"${with_alllang}" = xno ; then | |
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling D" >&5 | |
11248 $as_echo "$as_me: Disabling D" >&6;} | |
11249 D1COMPILER= | |
11250 D2COMPILER= | |
11251 else | |
11252 old_ac_ext=$ac_ext | |
11253 ac_ext=d | |
11254 | |
11255 if test -z "$D1COMPILERBIN" ; then | |
11256 for ac_prog in dmd ldmd gdmd | |
11257 do | |
11258 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11259 set dummy $ac_prog; ac_word=$2 | |
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11261 $as_echo_n "checking for $ac_word... " >&6; } | |
11262 if ${ac_cv_prog_D1COMPILER+:} false; then : | |
11263 $as_echo_n "(cached) " >&6 | |
11264 else | |
11265 if test -n "$D1COMPILER"; then | |
11266 ac_cv_prog_D1COMPILER="$D1COMPILER" # Let the user override the test. | |
11267 else | |
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11269 for as_dir in $PATH | |
11270 do | |
11271 IFS=$as_save_IFS | |
11272 test -z "$as_dir" && as_dir=. | |
11273 for ac_exec_ext in '' $ac_executable_extensions; do | |
11274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11275 ac_cv_prog_D1COMPILER="$ac_prog" | |
11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11277 break 2 | |
11278 fi | |
11279 done | |
11280 done | |
11281 IFS=$as_save_IFS | |
11282 | |
11283 fi | |
11284 fi | |
11285 D1COMPILER=$ac_cv_prog_D1COMPILER | |
11286 if test -n "$D1COMPILER"; then | |
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $D1COMPILER" >&5 | |
11288 $as_echo "$D1COMPILER" >&6; } | |
11289 else | |
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11291 $as_echo "no" >&6; } | |
11292 fi | |
11293 | |
11294 | |
11295 test -n "$D1COMPILER" && break | |
11296 done | |
11297 | |
11298 | |
11299 if test -n "$D1COMPILER" ; then | |
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D1/Tango compiler works" >&5 | |
11301 $as_echo_n "checking whether the D1/Tango compiler works... " >&6; } | |
11302 cat > conftest.$ac_ext <<_ACEOF | |
11303 import tango.io.Stdout; | |
11304 void main() { | |
11305 } | |
11306 _ACEOF | |
11307 rm -f conftest.$ac_objext | |
11308 if { { ac_try="$D1COMPILER conftest.$ac_ext" | |
11309 case "(($ac_try" in | |
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11311 *) ac_try_echo=$ac_try;; | |
11312 esac | |
11313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11314 $as_echo "$ac_try_echo"; } >&5 | |
11315 (eval "$D1COMPILER conftest.$ac_ext") 2>conftest.err | |
11316 ac_status=$? | |
11317 if test -s conftest.err; then | |
11318 grep -v '^ *+' conftest.err >conftest.er1 | |
11319 cat conftest.er1 >&5 | |
11320 mv -f conftest.er1 conftest.err | |
11321 fi | |
11322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11323 test $ac_status = 0; } && test ! -s conftest.err && test -s conftest.$ac_objext; then : | |
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11325 $as_echo "yes" >&6; } | |
11326 else | |
11327 $as_echo "$as_me: failed program was:" >&5 | |
11328 sed 's/^/| /' conftest.$ac_ext >&5 | |
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11330 $as_echo "no" >&6; } | |
11331 D1COMPILER= | |
11332 | |
11333 fi | |
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11335 fi | |
11336 else | |
11337 D1COMPILER="$D1COMPILERBIN" | |
11338 fi | |
11339 | |
11340 if test -z "$D2COMPILERBIN" ; then | |
11341 for ac_prog in dmd gdmd | |
11342 do | |
11343 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11344 set dummy $ac_prog; ac_word=$2 | |
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11346 $as_echo_n "checking for $ac_word... " >&6; } | |
11347 if ${ac_cv_prog_D2COMPILER+:} false; then : | |
11348 $as_echo_n "(cached) " >&6 | |
11349 else | |
11350 if test -n "$D2COMPILER"; then | |
11351 ac_cv_prog_D2COMPILER="$D2COMPILER" # Let the user override the test. | |
11352 else | |
11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11354 for as_dir in $PATH | |
11355 do | |
11356 IFS=$as_save_IFS | |
11357 test -z "$as_dir" && as_dir=. | |
11358 for ac_exec_ext in '' $ac_executable_extensions; do | |
11359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11360 ac_cv_prog_D2COMPILER="$ac_prog" | |
11361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11362 break 2 | |
11363 fi | |
11364 done | |
11365 done | |
11366 IFS=$as_save_IFS | |
11367 | |
11368 fi | |
11369 fi | |
11370 D2COMPILER=$ac_cv_prog_D2COMPILER | |
11371 if test -n "$D2COMPILER"; then | |
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $D2COMPILER" >&5 | |
11373 $as_echo "$D2COMPILER" >&6; } | |
11374 else | |
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11376 $as_echo "no" >&6; } | |
11377 fi | |
11378 | |
11379 | |
11380 test -n "$D2COMPILER" && break | |
11381 done | |
11382 | |
11383 | |
11384 if test -n "$D2COMPILER" ; then | |
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D2 compiler works" >&5 | |
11386 $as_echo_n "checking whether the D2 compiler works... " >&6; } | |
11387 cat > conftest.$ac_ext <<_ACEOF | |
11388 import std.algorithm; | |
11389 void main() { | |
11390 } | |
11391 _ACEOF | |
11392 rm -f conftest.$ac_objext | |
11393 if { { ac_try="$D2COMPILER conftest.$ac_ext" | |
11394 case "(($ac_try" in | |
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11396 *) ac_try_echo=$ac_try;; | |
11397 esac | |
11398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11399 $as_echo "$ac_try_echo"; } >&5 | |
11400 (eval "$D2COMPILER conftest.$ac_ext") 2>conftest.err | |
11401 ac_status=$? | |
11402 if test -s conftest.err; then | |
11403 grep -v '^ *+' conftest.err >conftest.er1 | |
11404 cat conftest.er1 >&5 | |
11405 mv -f conftest.er1 conftest.err | |
11406 fi | |
11407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11408 test $ac_status = 0; } && test ! -s conftest.err && test -s conftest.$ac_objext; then : | |
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11410 $as_echo "yes" >&6; } | |
11411 else | |
11412 $as_echo "$as_me: failed program was:" >&5 | |
11413 sed 's/^/| /' conftest.$ac_ext >&5 | |
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11415 $as_echo "no" >&6; } | |
11416 D2COMPILER= | |
11417 | |
11418 fi | |
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11420 fi | |
11421 else | |
11422 D2COMPILER="$D2COMPILERBIN" | |
11423 fi | |
11424 | |
11425 ac_ext=$old_ac_ext | |
11426 fi | |
11427 | |
11428 if test -n "$D1COMPILER"; then | |
11429 DDEFAULTVERSION=1 | |
11430 elif test -n "$D2COMPILER"; then | |
11431 DDEFAULTVERSION=2 | |
11432 fi | |
11433 | |
11434 # Do not prefix library file names with "lib" on Windows. | |
11435 case $host in | |
11436 *-*-cygwin* | *-*-mingw*) DLIBPREFIX="";; | |
11437 *)DLIBPREFIX="lib";; | |
11438 esac | |
11439 | |
11440 | |
11441 | |
11442 | |
11443 | |
11444 | |
11445 #---------------------------------------------------------------- | |
11446 # Determine which languages to use for examples/test-suite | |
11447 #---------------------------------------------------------------- | |
11448 | |
11449 SKIP_TCL= | |
11450 if test -z "$TCLINCLUDE" || test -z "$TCLLIB" ; then | |
11451 SKIP_TCL="1" | |
11452 fi | |
11453 | |
11454 | |
11455 | |
11456 SKIP_PERL5= | |
11457 if test -z "$PERL" || test -z "$PERL5EXT" ; then | |
11458 SKIP_PERL5="1" | |
11459 fi | |
11460 | |
11461 | |
11462 | |
11463 SKIP_OCTAVE= | |
11464 if test -z "$OCTAVE" ; then | |
11465 SKIP_OCTAVE="1" | |
11466 fi | |
11467 | |
11468 | |
11469 | |
11470 SKIP_PYTHON= | |
11471 if (test -z "$PYINCLUDE") && | |
11472 (test -z "$PY3INCLUDE") ; then | |
11473 SKIP_PYTHON="1" | |
11474 fi | |
11475 | |
11476 | |
11477 SKIP_PYTHON3= | |
11478 if test -z "$PY3INCLUDE" ; then | |
11479 SKIP_PYTHON3="1" | |
11480 fi | |
11481 | |
11482 | |
11483 SKIP_JAVA= | |
11484 if test -z "$JAVA" || test -z "$JAVAC" || test -z "$JAVAINC" ; then | |
11485 SKIP_JAVA="1" | |
11486 fi | |
11487 | |
11488 | |
11489 | |
11490 SKIP_GUILE= | |
11491 if test -z "$GUILE" || test -z "$GUILE_LIBS" ; then | |
11492 SKIP_GUILE="1" | |
11493 fi | |
11494 | |
11495 | |
11496 | |
11497 SKIP_MZSCHEME= | |
11498 if test -z "$MZC" || test -z "$MZDYNOBJ" ; then | |
11499 SKIP_MZSCHEME="1" | |
11500 fi | |
11501 | |
11502 | |
11503 | |
11504 SKIP_RUBY= | |
11505 if test -z "$RUBY" || test -z "$RUBYINCLUDE" || test -z "$RUBYLIB" ; then | |
11506 SKIP_RUBY="1" | |
11507 fi | |
11508 | |
11509 | |
11510 | |
11511 SKIP_PHP= | |
11512 if test -z "$PHP" || test -z "$PHPINC" ; then | |
11513 SKIP_PHP="1" | |
11514 fi | |
11515 | |
11516 | |
11517 | |
11518 SKIP_OCAML= | |
11519 if test -z "$OCAMLBIN" || test -z "$OCAMLINC" ; then | |
11520 SKIP_OCAML="1" | |
11521 fi | |
11522 | |
11523 | |
11524 | |
11525 SKIP_PIKE= | |
11526 if test -z "$PIKE" || test -z "$PIKEINCLUDE" ; then | |
11527 SKIP_PIKE="1" | |
11528 fi | |
11529 | |
11530 | |
11531 | |
11532 SKIP_CHICKEN= | |
11533 if test -z "$CHICKEN_CSC" || test -z "$CHICKEN"; then | |
11534 SKIP_CHICKEN="1" | |
11535 fi | |
11536 | |
11537 | |
11538 | |
11539 SKIP_CSHARP= | |
11540 if test -z "$CSHARPCOMPILER" ; then | |
11541 SKIP_CSHARP="1" | |
11542 else | |
11543 if test "cscc" = "$CSHARPCOMPILER" && test -z "$CSHARPCILINTERPRETER" ; then | |
11544 SKIP_CSHARP="1" | |
11545 fi | |
11546 fi | |
11547 | |
11548 | |
11549 SKIP_MODULA3="1" # Always skipped! | |
11550 | |
11551 | |
11552 SKIP_LUA= | |
11553 # we need LUABIN & dynamic loading | |
11554 if test -z "$LUABIN" || test -z "$LUADYNAMICLOADLIB"; then | |
11555 SKIP_LUA="1" | |
11556 fi | |
11557 | |
11558 | |
11559 SKIP_ALLEGROCL= | |
11560 if test -z "$ALLEGROCLBIN" ; then | |
11561 SKIP_ALLEGROCL="1" | |
11562 fi | |
11563 | |
11564 | |
11565 SKIP_CLISP= | |
11566 if test -z "$CLISPBIN" ; then | |
11567 SKIP_CLISP="1" | |
11568 fi | |
11569 | |
11570 | |
11571 SKIP_R= | |
11572 if test -z "$RBIN" ; then | |
11573 SKIP_R="1" | |
11574 fi | |
11575 | |
11576 | |
11577 SKIP_CFFI= | |
11578 #if test -z "$CFFIBIN" ; then | |
11579 SKIP_CFFI="1" | |
11580 #fi | |
11581 | |
11582 | |
11583 SKIP_UFFI= | |
11584 #if test -z "$UFFIBIN" ; then | |
11585 SKIP_UFFI="1" | |
11586 #fi | |
11587 | |
11588 | |
11589 SKIP_GO= | |
11590 if test -z "$GO" ; then | |
11591 SKIP_GO="1" | |
11592 fi | |
11593 | |
11594 | |
11595 SKIP_D= | |
11596 if test -z "$DDEFAULTVERSION" ; then | |
11597 SKIP_D="1" | |
11598 fi | |
11599 | |
11600 | |
11601 #---------------------------------------------------------------- | |
11602 # Additional language dependencies | |
11603 #---------------------------------------------------------------- | |
11604 SKIP_GCJ= | |
11605 if test -z "$GCJ" || test -z "$GCJH" ; then | |
11606 SKIP_GCJ="1" | |
11607 else | |
11608 if test "$GCC" != yes; then | |
11609 SKIP_GCJ="1" | |
11610 fi | |
11611 fi | |
11612 | |
11613 | |
11614 | |
11615 SKIP_ANDROID= | |
11616 if test -z "$ANDROID" || test -z "$ADB" || test -z "$ANT" || test -z "$NDKBUILD" ; then | |
11617 SKIP_ANDROID="1" | |
11618 fi | |
11619 | |
11620 | |
11621 | |
11622 | |
11623 #---------------------------------------------------------------- | |
11624 # Miscellaneous | |
11625 #---------------------------------------------------------------- | |
11626 | |
11627 | |
11628 # Root directory | |
11629 # Translate path for native Windows compilers for use with 'make check' | |
11630 ROOT_DIR=`pwd` | |
11631 case $host in | |
11632 *-*-cygwin* | *-*-mingw*) | |
11633 if (cygpath --mixed $ROOT_DIR) >/dev/null 2>/dev/null; then | |
11634 ROOT_DIR=`cygpath --mixed $ROOT_DIR` | |
11635 fi | |
11636 # Extra files generated by some Windows compilers | |
11637 EXTRA_CLEAN="*.stackdump *.exp *.lib *.pdb *.ilk" | |
11638 ;; | |
11639 esac | |
11640 | |
11641 | |
11642 | |
11643 | |
11644 | |
11645 # Configure SWIG_LIB path | |
11646 | |
11647 | |
11648 # Check whether --with-swiglibdir was given. | |
11649 if test "${with_swiglibdir+set}" = set; then : | |
11650 withval=$with_swiglibdir; swig_lib="$withval" | |
11651 else | |
11652 swig_lib="${datadir}/swig/${PACKAGE_VERSION}" | |
11653 fi | |
11654 | |
11655 | |
11656 | |
11657 prefix_NONE= | |
11658 exec_prefix_NONE= | |
11659 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix | |
11660 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix | |
11661 eval ac_define_dir="\"$swig_lib\"" | |
11662 eval ac_define_dir="\"$ac_define_dir\"" | |
11663 SWIG_LIB="$ac_define_dir" | |
11664 | |
11665 | |
11666 cat >>confdefs.h <<_ACEOF | |
11667 #define SWIG_LIB "$ac_define_dir" | |
11668 _ACEOF | |
11669 | |
11670 test "$prefix_NONE" && prefix=NONE | |
11671 test "$exec_prefix_NONE" && exec_prefix=NONE | |
11672 | |
11673 | |
11674 case $build in | |
11675 # Windows does not understand unix directories. Convert into a windows directory with drive letter. | |
11676 *-*-mingw*) SWIG_LIB_WIN_UNIX=`cmd //c echo $SWIG_LIB | sed -e "s/ *$//"`;; # This echo converts unix to mixed paths. Then zap unexpected trailing space. | |
11677 *-*-cygwin*) SWIG_LIB_WIN_UNIX=`cygpath --mixed "$SWIG_LIB"`;; | |
11678 *) SWIG_LIB_WIN_UNIX="";; | |
11679 esac | |
11680 | |
11681 cat >>confdefs.h <<_ACEOF | |
11682 #define SWIG_LIB_WIN_UNIX "$SWIG_LIB_WIN_UNIX" | |
11683 _ACEOF | |
11684 | |
11685 | |
11686 ac_config_files="$ac_config_files Makefile swig.spec Source/Makefile Examples/Makefile Examples/xml/Makefile Examples/test-suite/chicken/Makefile Examples/test-suite/csharp/Makefile Examples/test-suite/d/Makefile Examples/test-suite/guile/Makefile Examples/test-suite/java/Makefile Examples/test-suite/mzscheme/Makefile Examples/test-suite/ocaml/Makefile Examples/test-suite/octave/Makefile Examples/test-suite/perl5/Makefile Examples/test-suite/php/Makefile Examples/test-suite/pike/Makefile Examples/test-suite/python/Makefile Examples/test-suite/ruby/Makefile Examples/test-suite/tcl/Makefile Examples/test-suite/lua/Makefile Examples/test-suite/allegrocl/Makefile Examples/test-suite/clisp/Makefile Examples/test-suite/cffi/Makefile Examples/test-suite/uffi/Makefile Examples/test-suite/r/Makefile Examples/test-suite/go/Makefile Lib/ocaml/swigp4.ml" | |
11687 | |
11688 ac_config_files="$ac_config_files preinst-swig" | |
11689 | |
11690 ac_config_files="$ac_config_files CCache/ccache_swig_config.h" | |
11691 | |
11692 | |
11693 cat >confcache <<\_ACEOF | |
11694 # This file is a shell script that caches the results of configure | |
11695 # tests run on this system so they can be shared between configure | |
11696 # scripts and configure runs, see configure's option --config-cache. | |
11697 # It is not useful on other systems. If it contains results you don't | |
11698 # want to keep, you may remove or edit it. | |
11699 # | |
11700 # config.status only pays attention to the cache file if you give it | |
11701 # the --recheck option to rerun configure. | |
11702 # | |
11703 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11704 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11705 # following values. | |
11706 | |
11707 _ACEOF | |
11708 | |
11709 # The following way of writing the cache mishandles newlines in values, | |
11710 # but we know of no workaround that is simple, portable, and efficient. | |
11711 # So, we kill variables containing newlines. | |
11712 # Ultrix sh set writes to stderr and can't be redirected directly, | |
11713 # and sets the high bit in the cache file unless we assign to the vars. | |
11714 ( | |
11715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11716 eval ac_val=\$$ac_var | |
11717 case $ac_val in #( | |
11718 *${as_nl}*) | |
11719 case $ac_var in #( | |
11720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
11721 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11722 esac | |
11723 case $ac_var in #( | |
11724 _ | IFS | as_nl) ;; #( | |
11725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11726 *) { eval $ac_var=; unset $ac_var;} ;; | |
11727 esac ;; | |
11728 esac | |
11729 done | |
11730 | |
11731 (set) 2>&1 | | |
11732 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
11733 *${as_nl}ac_space=\ *) | |
11734 # `set' does not quote correctly, so add quotes: double-quote | |
11735 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
11736 sed -n \ | |
11737 "s/'/'\\\\''/g; | |
11738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11739 ;; #( | |
11740 *) | |
11741 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
11743 ;; | |
11744 esac | | |
11745 sort | |
11746 ) | | |
11747 sed ' | |
11748 /^ac_cv_env_/b end | |
11749 t clear | |
11750 :clear | |
11751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11752 t end | |
11753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11754 :end' >>confcache | |
11755 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11756 if test -w "$cache_file"; then | |
11757 if test "x$cache_file" != "x/dev/null"; then | |
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
11759 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
11760 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
11761 cat confcache >"$cache_file" | |
11762 else | |
11763 case $cache_file in #( | |
11764 */* | ?:*) | |
11765 mv -f confcache "$cache_file"$$ && | |
11766 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
11767 *) | |
11768 mv -f confcache "$cache_file" ;; | |
11769 esac | |
11770 fi | |
11771 fi | |
11772 else | |
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
11774 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
11775 fi | |
11776 fi | |
11777 rm -f confcache | |
11778 | |
11779 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11780 # Let make expand exec_prefix. | |
11781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11782 | |
11783 DEFS=-DHAVE_CONFIG_H | |
11784 | |
11785 ac_libobjs= | |
11786 ac_ltlibobjs= | |
11787 U= | |
11788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11789 # 1. Remove the extension, and $U if already installed. | |
11790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
11791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11793 # will be set to the directory where LIBOBJS objects are built. | |
11794 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11795 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
11796 done | |
11797 LIBOBJS=$ac_libobjs | |
11798 | |
11799 LTLIBOBJS=$ac_ltlibobjs | |
11800 | |
11801 | |
11802 if test -n "$EXEEXT"; then | |
11803 am__EXEEXT_TRUE= | |
11804 am__EXEEXT_FALSE='#' | |
11805 else | |
11806 am__EXEEXT_TRUE='#' | |
11807 am__EXEEXT_FALSE= | |
11808 fi | |
11809 | |
11810 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
11811 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
11812 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11813 fi | |
11814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11815 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
11816 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11817 fi | |
11818 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
11819 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
11820 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11821 fi | |
11822 | |
11823 : "${CONFIG_STATUS=./config.status}" | |
11824 ac_write_fail=0 | |
11825 ac_clean_files_save=$ac_clean_files | |
11826 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
11828 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11829 as_write_fail=0 | |
11830 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
11831 #! $SHELL | |
11832 # Generated by $as_me. | |
11833 # Run this file to recreate the current configuration. | |
11834 # Compiler output produced by configure, useful for debugging | |
11835 # configure, is in config.log if it exists. | |
11836 | |
11837 debug=false | |
11838 ac_cs_recheck=false | |
11839 ac_cs_silent=false | |
11840 | |
11841 SHELL=\${CONFIG_SHELL-$SHELL} | |
11842 export SHELL | |
11843 _ASEOF | |
11844 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11845 ## -------------------- ## | |
11846 ## M4sh Initialization. ## | |
11847 ## -------------------- ## | |
11848 | |
11849 # Be more Bourne compatible | |
11850 DUALCASE=1; export DUALCASE # for MKS sh | |
11851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
11852 emulate sh | |
11853 NULLCMD=: | |
11854 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
11855 # is contrary to our usage. Disable this feature. | |
11856 alias -g '${1+"$@"}'='"$@"' | |
11857 setopt NO_GLOB_SUBST | |
11858 else | |
11859 case `(set -o) 2>/dev/null` in #( | |
11860 *posix*) : | |
11861 set -o posix ;; #( | |
11862 *) : | |
11863 ;; | |
11864 esac | |
11865 fi | |
11866 | |
11867 | |
11868 as_nl=' | |
11869 ' | |
11870 export as_nl | |
11871 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11872 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11873 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11875 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
11876 # but without wasting forks for bash or zsh. | |
11877 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11878 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11879 as_echo='print -r --' | |
11880 as_echo_n='print -rn --' | |
11881 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11882 as_echo='printf %s\n' | |
11883 as_echo_n='printf %s' | |
11884 else | |
11885 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11886 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11887 as_echo_n='/usr/ucb/echo -n' | |
11888 else | |
11889 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
11890 as_echo_n_body='eval | |
11891 arg=$1; | |
11892 case $arg in #( | |
11893 *"$as_nl"*) | |
11894 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11895 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11896 esac; | |
11897 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11898 ' | |
11899 export as_echo_n_body | |
11900 as_echo_n='sh -c $as_echo_n_body as_echo' | |
11901 fi | |
11902 export as_echo_body | |
11903 as_echo='sh -c $as_echo_body as_echo' | |
11904 fi | |
11905 | |
11906 # The user is always right. | |
11907 if test "${PATH_SEPARATOR+set}" != set; then | |
11908 PATH_SEPARATOR=: | |
11909 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11910 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11911 PATH_SEPARATOR=';' | |
11912 } | |
11913 fi | |
11914 | |
11915 | |
11916 # IFS | |
11917 # We need space, tab and new line, in precisely that order. Quoting is | |
11918 # there to prevent editors from complaining about space-tab. | |
11919 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11920 # splitting by setting IFS to empty value.) | |
11921 IFS=" "" $as_nl" | |
11922 | |
11923 # Find who we are. Look in the path if we contain no directory separator. | |
11924 as_myself= | |
11925 case $0 in #(( | |
11926 *[\\/]* ) as_myself=$0 ;; | |
11927 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11928 for as_dir in $PATH | |
11929 do | |
11930 IFS=$as_save_IFS | |
11931 test -z "$as_dir" && as_dir=. | |
11932 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11933 done | |
11934 IFS=$as_save_IFS | |
11935 | |
11936 ;; | |
11937 esac | |
11938 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11939 # in which case we are not to be found in the path. | |
11940 if test "x$as_myself" = x; then | |
11941 as_myself=$0 | |
11942 fi | |
11943 if test ! -f "$as_myself"; then | |
11944 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
11945 exit 1 | |
11946 fi | |
11947 | |
11948 # Unset variables that we do not need and which cause bugs (e.g. in | |
11949 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11950 # suppresses any "Segmentation fault" message there. '((' could | |
11951 # trigger a bug in pdksh 5.2.14. | |
11952 for as_var in BASH_ENV ENV MAIL MAILPATH | |
11953 do eval test x\${$as_var+set} = xset \ | |
11954 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
11955 done | |
11956 PS1='$ ' | |
11957 PS2='> ' | |
11958 PS4='+ ' | |
11959 | |
11960 # NLS nuisances. | |
11961 LC_ALL=C | |
11962 export LC_ALL | |
11963 LANGUAGE=C | |
11964 export LANGUAGE | |
11965 | |
11966 # CDPATH. | |
11967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11968 | |
11969 | |
11970 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
11971 # ---------------------------------------- | |
11972 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
11973 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
11974 # script with STATUS, using 1 if that was 0. | |
11975 as_fn_error () | |
11976 { | |
11977 as_status=$1; test $as_status -eq 0 && as_status=1 | |
11978 if test "$4"; then | |
11979 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
11981 fi | |
11982 $as_echo "$as_me: error: $2" >&2 | |
11983 as_fn_exit $as_status | |
11984 } # as_fn_error | |
11985 | |
11986 | |
11987 # as_fn_set_status STATUS | |
11988 # ----------------------- | |
11989 # Set $? to STATUS, without forking. | |
11990 as_fn_set_status () | |
11991 { | |
11992 return $1 | |
11993 } # as_fn_set_status | |
11994 | |
11995 # as_fn_exit STATUS | |
11996 # ----------------- | |
11997 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
11998 as_fn_exit () | |
11999 { | |
12000 set +e | |
12001 as_fn_set_status $1 | |
12002 exit $1 | |
12003 } # as_fn_exit | |
12004 | |
12005 # as_fn_unset VAR | |
12006 # --------------- | |
12007 # Portably unset VAR. | |
12008 as_fn_unset () | |
12009 { | |
12010 { eval $1=; unset $1;} | |
12011 } | |
12012 as_unset=as_fn_unset | |
12013 # as_fn_append VAR VALUE | |
12014 # ---------------------- | |
12015 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12016 # advantage of any shell optimizations that allow amortized linear growth over | |
12017 # repeated appends, instead of the typical quadratic growth present in naive | |
12018 # implementations. | |
12019 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12020 eval 'as_fn_append () | |
12021 { | |
12022 eval $1+=\$2 | |
12023 }' | |
12024 else | |
12025 as_fn_append () | |
12026 { | |
12027 eval $1=\$$1\$2 | |
12028 } | |
12029 fi # as_fn_append | |
12030 | |
12031 # as_fn_arith ARG... | |
12032 # ------------------ | |
12033 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12034 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12035 # must be portable across $(()) and expr. | |
12036 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12037 eval 'as_fn_arith () | |
12038 { | |
12039 as_val=$(( $* )) | |
12040 }' | |
12041 else | |
12042 as_fn_arith () | |
12043 { | |
12044 as_val=`expr "$@" || test $? -eq 1` | |
12045 } | |
12046 fi # as_fn_arith | |
12047 | |
12048 | |
12049 if expr a : '\(a\)' >/dev/null 2>&1 && | |
12050 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12051 as_expr=expr | |
12052 else | |
12053 as_expr=false | |
12054 fi | |
12055 | |
12056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
12057 as_basename=basename | |
12058 else | |
12059 as_basename=false | |
12060 fi | |
12061 | |
12062 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
12063 as_dirname=dirname | |
12064 else | |
12065 as_dirname=false | |
12066 fi | |
12067 | |
12068 as_me=`$as_basename -- "$0" || | |
12069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12070 X"$0" : 'X\(//\)$' \| \ | |
12071 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12072 $as_echo X/"$0" | | |
12073 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12074 s//\1/ | |
12075 q | |
12076 } | |
12077 /^X\/\(\/\/\)$/{ | |
12078 s//\1/ | |
12079 q | |
12080 } | |
12081 /^X\/\(\/\).*/{ | |
12082 s//\1/ | |
12083 q | |
12084 } | |
12085 s/.*/./; q'` | |
12086 | |
12087 # Avoid depending upon Character Ranges. | |
12088 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12089 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12090 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12091 as_cr_digits='0123456789' | |
12092 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12093 | |
12094 ECHO_C= ECHO_N= ECHO_T= | |
12095 case `echo -n x` in #((((( | |
12096 -n*) | |
12097 case `echo 'xy\c'` in | |
12098 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12099 xy) ECHO_C='\c';; | |
12100 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12101 ECHO_T=' ';; | |
12102 esac;; | |
12103 *) | |
12104 ECHO_N='-n';; | |
12105 esac | |
12106 | |
12107 rm -f conf$$ conf$$.exe conf$$.file | |
12108 if test -d conf$$.dir; then | |
12109 rm -f conf$$.dir/conf$$.file | |
12110 else | |
12111 rm -f conf$$.dir | |
12112 mkdir conf$$.dir 2>/dev/null | |
12113 fi | |
12114 if (echo >conf$$.file) 2>/dev/null; then | |
12115 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12116 as_ln_s='ln -s' | |
12117 # ... but there are two gotchas: | |
12118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12120 # In both cases, we have to default to `cp -p'. | |
12121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12122 as_ln_s='cp -p' | |
12123 elif ln conf$$.file conf$$ 2>/dev/null; then | |
12124 as_ln_s=ln | |
12125 else | |
12126 as_ln_s='cp -p' | |
12127 fi | |
12128 else | |
12129 as_ln_s='cp -p' | |
12130 fi | |
12131 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12132 rmdir conf$$.dir 2>/dev/null | |
12133 | |
12134 | |
12135 # as_fn_mkdir_p | |
12136 # ------------- | |
12137 # Create "$as_dir" as a directory, including parents if necessary. | |
12138 as_fn_mkdir_p () | |
12139 { | |
12140 | |
12141 case $as_dir in #( | |
12142 -*) as_dir=./$as_dir;; | |
12143 esac | |
12144 test -d "$as_dir" || eval $as_mkdir_p || { | |
12145 as_dirs= | |
12146 while :; do | |
12147 case $as_dir in #( | |
12148 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12149 *) as_qdir=$as_dir;; | |
12150 esac | |
12151 as_dirs="'$as_qdir' $as_dirs" | |
12152 as_dir=`$as_dirname -- "$as_dir" || | |
12153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12154 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12155 X"$as_dir" : 'X\(//\)$' \| \ | |
12156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12157 $as_echo X"$as_dir" | | |
12158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12159 s//\1/ | |
12160 q | |
12161 } | |
12162 /^X\(\/\/\)[^/].*/{ | |
12163 s//\1/ | |
12164 q | |
12165 } | |
12166 /^X\(\/\/\)$/{ | |
12167 s//\1/ | |
12168 q | |
12169 } | |
12170 /^X\(\/\).*/{ | |
12171 s//\1/ | |
12172 q | |
12173 } | |
12174 s/.*/./; q'` | |
12175 test -d "$as_dir" && break | |
12176 done | |
12177 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12178 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
12179 | |
12180 | |
12181 } # as_fn_mkdir_p | |
12182 if mkdir -p . 2>/dev/null; then | |
12183 as_mkdir_p='mkdir -p "$as_dir"' | |
12184 else | |
12185 test -d ./-p && rmdir ./-p | |
12186 as_mkdir_p=false | |
12187 fi | |
12188 | |
12189 if test -x / >/dev/null 2>&1; then | |
12190 as_test_x='test -x' | |
12191 else | |
12192 if ls -dL / >/dev/null 2>&1; then | |
12193 as_ls_L_option=L | |
12194 else | |
12195 as_ls_L_option= | |
12196 fi | |
12197 as_test_x=' | |
12198 eval sh -c '\'' | |
12199 if test -d "$1"; then | |
12200 test -d "$1/."; | |
12201 else | |
12202 case $1 in #( | |
12203 -*)set "./$1";; | |
12204 esac; | |
12205 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
12206 ???[sx]*):;;*)false;;esac;fi | |
12207 '\'' sh | |
12208 ' | |
12209 fi | |
12210 as_executable_p=$as_test_x | |
12211 | |
12212 # Sed expression to map a string onto a valid CPP name. | |
12213 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12214 | |
12215 # Sed expression to map a string onto a valid variable name. | |
12216 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12217 | |
12218 | |
12219 exec 6>&1 | |
12220 ## ----------------------------------- ## | |
12221 ## Main body of $CONFIG_STATUS script. ## | |
12222 ## ----------------------------------- ## | |
12223 _ASEOF | |
12224 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
12225 | |
12226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12227 # Save the log message, to keep $0 and so on meaningful, and to | |
12228 # report actual input values of CONFIG_FILES etc. instead of their | |
12229 # values after options handling. | |
12230 ac_log=" | |
12231 This file was extended by swig $as_me 2.0.11, which was | |
12232 generated by GNU Autoconf 2.68. Invocation command line was | |
12233 | |
12234 CONFIG_FILES = $CONFIG_FILES | |
12235 CONFIG_HEADERS = $CONFIG_HEADERS | |
12236 CONFIG_LINKS = $CONFIG_LINKS | |
12237 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12238 $ $0 $@ | |
12239 | |
12240 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12241 " | |
12242 | |
12243 _ACEOF | |
12244 | |
12245 case $ac_config_files in *" | |
12246 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12247 esac | |
12248 | |
12249 case $ac_config_headers in *" | |
12250 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12251 esac | |
12252 | |
12253 | |
12254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12255 # Files that config.status was made for. | |
12256 config_files="$ac_config_files" | |
12257 config_headers="$ac_config_headers" | |
12258 config_commands="$ac_config_commands" | |
12259 | |
12260 _ACEOF | |
12261 | |
12262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12263 ac_cs_usage="\ | |
12264 \`$as_me' instantiates files and other configuration actions | |
12265 from templates according to the current configuration. Unless the files | |
12266 and actions are specified as TAGs, all are instantiated by default. | |
12267 | |
12268 Usage: $0 [OPTION]... [TAG]... | |
12269 | |
12270 -h, --help print this help, then exit | |
12271 -V, --version print version number and configuration settings, then exit | |
12272 --config print configuration, then exit | |
12273 -q, --quiet, --silent | |
12274 do not print progress messages | |
12275 -d, --debug don't remove temporary files | |
12276 --recheck update $as_me by reconfiguring in the same conditions | |
12277 --file=FILE[:TEMPLATE] | |
12278 instantiate the configuration file FILE | |
12279 --header=FILE[:TEMPLATE] | |
12280 instantiate the configuration header FILE | |
12281 | |
12282 Configuration files: | |
12283 $config_files | |
12284 | |
12285 Configuration headers: | |
12286 $config_headers | |
12287 | |
12288 Configuration commands: | |
12289 $config_commands | |
12290 | |
12291 Report bugs to <http://www.swig.org>." | |
12292 | |
12293 _ACEOF | |
12294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12295 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
12296 ac_cs_version="\\ | |
12297 swig config.status 2.0.11 | |
12298 configured by $0, generated by GNU Autoconf 2.68, | |
12299 with options \\"\$ac_cs_config\\" | |
12300 | |
12301 Copyright (C) 2010 Free Software Foundation, Inc. | |
12302 This config.status script is free software; the Free Software Foundation | |
12303 gives unlimited permission to copy, distribute and modify it." | |
12304 | |
12305 ac_pwd='$ac_pwd' | |
12306 srcdir='$srcdir' | |
12307 INSTALL='$INSTALL' | |
12308 MKDIR_P='$MKDIR_P' | |
12309 AWK='$AWK' | |
12310 test -n "\$AWK" || AWK=awk | |
12311 _ACEOF | |
12312 | |
12313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12314 # The default lists apply if the user does not specify any file. | |
12315 ac_need_defaults=: | |
12316 while test $# != 0 | |
12317 do | |
12318 case $1 in | |
12319 --*=?*) | |
12320 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12321 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12322 ac_shift=: | |
12323 ;; | |
12324 --*=) | |
12325 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12326 ac_optarg= | |
12327 ac_shift=: | |
12328 ;; | |
12329 *) | |
12330 ac_option=$1 | |
12331 ac_optarg=$2 | |
12332 ac_shift=shift | |
12333 ;; | |
12334 esac | |
12335 | |
12336 case $ac_option in | |
12337 # Handling of the options. | |
12338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12339 ac_cs_recheck=: ;; | |
12340 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12341 $as_echo "$ac_cs_version"; exit ;; | |
12342 --config | --confi | --conf | --con | --co | --c ) | |
12343 $as_echo "$ac_cs_config"; exit ;; | |
12344 --debug | --debu | --deb | --de | --d | -d ) | |
12345 debug=: ;; | |
12346 --file | --fil | --fi | --f ) | |
12347 $ac_shift | |
12348 case $ac_optarg in | |
12349 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12350 '') as_fn_error $? "missing file argument" ;; | |
12351 esac | |
12352 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
12353 ac_need_defaults=false;; | |
12354 --header | --heade | --head | --hea ) | |
12355 $ac_shift | |
12356 case $ac_optarg in | |
12357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12358 esac | |
12359 as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
12360 ac_need_defaults=false;; | |
12361 --he | --h) | |
12362 # Conflict between --help and --header | |
12363 as_fn_error $? "ambiguous option: \`$1' | |
12364 Try \`$0 --help' for more information.";; | |
12365 --help | --hel | -h ) | |
12366 $as_echo "$ac_cs_usage"; exit ;; | |
12367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12368 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12369 ac_cs_silent=: ;; | |
12370 | |
12371 # This is an error. | |
12372 -*) as_fn_error $? "unrecognized option: \`$1' | |
12373 Try \`$0 --help' for more information." ;; | |
12374 | |
12375 *) as_fn_append ac_config_targets " $1" | |
12376 ac_need_defaults=false ;; | |
12377 | |
12378 esac | |
12379 shift | |
12380 done | |
12381 | |
12382 ac_configure_extra_args= | |
12383 | |
12384 if $ac_cs_silent; then | |
12385 exec 6>/dev/null | |
12386 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12387 fi | |
12388 | |
12389 _ACEOF | |
12390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12391 if \$ac_cs_recheck; then | |
12392 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
12393 shift | |
12394 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12395 CONFIG_SHELL='$SHELL' | |
12396 export CONFIG_SHELL | |
12397 exec "\$@" | |
12398 fi | |
12399 | |
12400 _ACEOF | |
12401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12402 exec 5>>config.log | |
12403 { | |
12404 echo | |
12405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12406 ## Running $as_me. ## | |
12407 _ASBOX | |
12408 $as_echo "$ac_log" | |
12409 } >&5 | |
12410 | |
12411 _ACEOF | |
12412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12413 # | |
12414 # INIT-COMMANDS | |
12415 # | |
12416 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
12417 | |
12418 _ACEOF | |
12419 | |
12420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12421 | |
12422 # Handling of arguments. | |
12423 for ac_config_target in $ac_config_targets | |
12424 do | |
12425 case $ac_config_target in | |
12426 "Source/Include/swigconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS Source/Include/swigconfig.h" ;; | |
12427 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12428 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12429 "swig.spec") CONFIG_FILES="$CONFIG_FILES swig.spec" ;; | |
12430 "Source/Makefile") CONFIG_FILES="$CONFIG_FILES Source/Makefile" ;; | |
12431 "Examples/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;; | |
12432 "Examples/xml/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/xml/Makefile" ;; | |
12433 "Examples/test-suite/chicken/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/chicken/Makefile" ;; | |
12434 "Examples/test-suite/csharp/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/csharp/Makefile" ;; | |
12435 "Examples/test-suite/d/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/d/Makefile" ;; | |
12436 "Examples/test-suite/guile/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/guile/Makefile" ;; | |
12437 "Examples/test-suite/java/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/java/Makefile" ;; | |
12438 "Examples/test-suite/mzscheme/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/mzscheme/Makefile" ;; | |
12439 "Examples/test-suite/ocaml/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ocaml/Makefile" ;; | |
12440 "Examples/test-suite/octave/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/octave/Makefile" ;; | |
12441 "Examples/test-suite/perl5/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/perl5/Makefile" ;; | |
12442 "Examples/test-suite/php/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/php/Makefile" ;; | |
12443 "Examples/test-suite/pike/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/pike/Makefile" ;; | |
12444 "Examples/test-suite/python/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/python/Makefile" ;; | |
12445 "Examples/test-suite/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ruby/Makefile" ;; | |
12446 "Examples/test-suite/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/tcl/Makefile" ;; | |
12447 "Examples/test-suite/lua/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/lua/Makefile" ;; | |
12448 "Examples/test-suite/allegrocl/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/allegrocl/Makefile" ;; | |
12449 "Examples/test-suite/clisp/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/clisp/Makefile" ;; | |
12450 "Examples/test-suite/cffi/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/cffi/Makefile" ;; | |
12451 "Examples/test-suite/uffi/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/uffi/Makefile" ;; | |
12452 "Examples/test-suite/r/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/r/Makefile" ;; | |
12453 "Examples/test-suite/go/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/go/Makefile" ;; | |
12454 "Lib/ocaml/swigp4.ml") CONFIG_FILES="$CONFIG_FILES Lib/ocaml/swigp4.ml" ;; | |
12455 "preinst-swig") CONFIG_FILES="$CONFIG_FILES preinst-swig" ;; | |
12456 "CCache/ccache_swig_config.h") CONFIG_FILES="$CONFIG_FILES CCache/ccache_swig_config.h" ;; | |
12457 | |
12458 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
12459 esac | |
12460 done | |
12461 | |
12462 | |
12463 # If the user did not use the arguments to specify the items to instantiate, | |
12464 # then the envvar interface is used. Set only those that are not. | |
12465 # We use the long form for the default assignment because of an extremely | |
12466 # bizarre bug on SunOS 4.1.3. | |
12467 if $ac_need_defaults; then | |
12468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12471 fi | |
12472 | |
12473 # Have a temporary directory for convenience. Make it in the build tree | |
12474 # simply because there is no reason against having it here, and in addition, | |
12475 # creating and moving files from /tmp can sometimes cause problems. | |
12476 # Hook for its removal unless debugging. | |
12477 # Note that there is a small window in which the directory will not be cleaned: | |
12478 # after its creation but before its name has been assigned to `$tmp'. | |
12479 $debug || | |
12480 { | |
12481 tmp= ac_tmp= | |
12482 trap 'exit_status=$? | |
12483 : "${ac_tmp:=$tmp}" | |
12484 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
12485 ' 0 | |
12486 trap 'as_fn_exit 1' 1 2 13 15 | |
12487 } | |
12488 # Create a (secure) tmp directory for tmp files. | |
12489 | |
12490 { | |
12491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
12492 test -d "$tmp" | |
12493 } || | |
12494 { | |
12495 tmp=./conf$$-$RANDOM | |
12496 (umask 077 && mkdir "$tmp") | |
12497 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
12498 ac_tmp=$tmp | |
12499 | |
12500 # Set up the scripts for CONFIG_FILES section. | |
12501 # No need to generate them if there are no CONFIG_FILES. | |
12502 # This happens for instance with `./config.status config.h'. | |
12503 if test -n "$CONFIG_FILES"; then | |
12504 | |
12505 | |
12506 ac_cr=`echo X | tr X '\015'` | |
12507 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12508 # But we know of no other shell where ac_cr would be empty at this | |
12509 # point, so we can use a bashism as a fallback. | |
12510 if test "x$ac_cr" = x; then | |
12511 eval ac_cr=\$\'\\r\' | |
12512 fi | |
12513 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12514 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12515 ac_cs_awk_cr='\\r' | |
12516 else | |
12517 ac_cs_awk_cr=$ac_cr | |
12518 fi | |
12519 | |
12520 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
12521 _ACEOF | |
12522 | |
12523 | |
12524 { | |
12525 echo "cat >conf$$subs.awk <<_ACEOF" && | |
12526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12527 echo "_ACEOF" | |
12528 } >conf$$subs.sh || | |
12529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
12531 ac_delim='%!_!# ' | |
12532 for ac_last_try in false false false false false :; do | |
12533 . ./conf$$subs.sh || | |
12534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12535 | |
12536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12537 if test $ac_delim_n = $ac_delim_num; then | |
12538 break | |
12539 elif $ac_last_try; then | |
12540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12541 else | |
12542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12543 fi | |
12544 done | |
12545 rm -f conf$$subs.sh | |
12546 | |
12547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12548 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
12549 _ACEOF | |
12550 sed -n ' | |
12551 h | |
12552 s/^/S["/; s/!.*/"]=/ | |
12553 p | |
12554 g | |
12555 s/^[^!]*!// | |
12556 :repl | |
12557 t repl | |
12558 s/'"$ac_delim"'$// | |
12559 t delim | |
12560 :nl | |
12561 h | |
12562 s/\(.\{148\}\)..*/\1/ | |
12563 t more1 | |
12564 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12565 p | |
12566 n | |
12567 b repl | |
12568 :more1 | |
12569 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12570 p | |
12571 g | |
12572 s/.\{148\}// | |
12573 t nl | |
12574 :delim | |
12575 h | |
12576 s/\(.\{148\}\)..*/\1/ | |
12577 t more2 | |
12578 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12579 p | |
12580 b | |
12581 :more2 | |
12582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12583 p | |
12584 g | |
12585 s/.\{148\}// | |
12586 t delim | |
12587 ' <conf$$subs.awk | sed ' | |
12588 /^[^""]/{ | |
12589 N | |
12590 s/\n// | |
12591 } | |
12592 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12593 rm -f conf$$subs.awk | |
12594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12595 _ACAWK | |
12596 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
12597 for (key in S) S_is_set[key] = 1 | |
12598 FS = "" | |
12599 | |
12600 } | |
12601 { | |
12602 line = $ 0 | |
12603 nfields = split(line, field, "@") | |
12604 substed = 0 | |
12605 len = length(field[1]) | |
12606 for (i = 2; i < nfields; i++) { | |
12607 key = field[i] | |
12608 keylen = length(key) | |
12609 if (S_is_set[key]) { | |
12610 value = S[key] | |
12611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12612 len += length(value) + length(field[++i]) | |
12613 substed = 1 | |
12614 } else | |
12615 len += 1 + keylen | |
12616 } | |
12617 | |
12618 print line | |
12619 } | |
12620 | |
12621 _ACAWK | |
12622 _ACEOF | |
12623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12624 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12625 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12626 else | |
12627 cat | |
12628 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
12629 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
12630 _ACEOF | |
12631 | |
12632 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
12633 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
12634 # trailing colons and then remove the whole line if VPATH becomes empty | |
12635 # (actually we leave an empty line to preserve line numbers). | |
12636 if test "x$srcdir" = x.; then | |
12637 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
12638 h | |
12639 s/// | |
12640 s/^/:/ | |
12641 s/[ ]*$/:/ | |
12642 s/:\$(srcdir):/:/g | |
12643 s/:\${srcdir}:/:/g | |
12644 s/:@srcdir@:/:/g | |
12645 s/^:*// | |
12646 s/:*$// | |
12647 x | |
12648 s/\(=[ ]*\).*/\1/ | |
12649 G | |
12650 s/\n// | |
12651 s/^[^=]*=[ ]*$// | |
12652 }' | |
12653 fi | |
12654 | |
12655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12656 fi # test -n "$CONFIG_FILES" | |
12657 | |
12658 # Set up the scripts for CONFIG_HEADERS section. | |
12659 # No need to generate them if there are no CONFIG_HEADERS. | |
12660 # This happens for instance with `./config.status Makefile'. | |
12661 if test -n "$CONFIG_HEADERS"; then | |
12662 cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
12663 BEGIN { | |
12664 _ACEOF | |
12665 | |
12666 # Transform confdefs.h into an awk script `defines.awk', embedded as | |
12667 # here-document in config.status, that substitutes the proper values into | |
12668 # config.h.in to produce config.h. | |
12669 | |
12670 # Create a delimiter string that does not exist in confdefs.h, to ease | |
12671 # handling of long lines. | |
12672 ac_delim='%!_!# ' | |
12673 for ac_last_try in false false :; do | |
12674 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
12675 if test -z "$ac_tt"; then | |
12676 break | |
12677 elif $ac_last_try; then | |
12678 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
12679 else | |
12680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12681 fi | |
12682 done | |
12683 | |
12684 # For the awk script, D is an array of macro values keyed by name, | |
12685 # likewise P contains macro parameters if any. Preserve backslash | |
12686 # newline sequences. | |
12687 | |
12688 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12689 sed -n ' | |
12690 s/.\{148\}/&'"$ac_delim"'/g | |
12691 t rset | |
12692 :rset | |
12693 s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12694 t def | |
12695 d | |
12696 :def | |
12697 s/\\$// | |
12698 t bsnl | |
12699 s/["\\]/\\&/g | |
12700 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12701 D["\1"]=" \3"/p | |
12702 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12703 d | |
12704 :bsnl | |
12705 s/["\\]/\\&/g | |
12706 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12707 D["\1"]=" \3\\\\\\n"\\/p | |
12708 t cont | |
12709 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12710 t cont | |
12711 d | |
12712 :cont | |
12713 n | |
12714 s/.\{148\}/&'"$ac_delim"'/g | |
12715 t clear | |
12716 :clear | |
12717 s/\\$// | |
12718 t bsnlc | |
12719 s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12720 d | |
12721 :bsnlc | |
12722 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12723 b cont | |
12724 ' <confdefs.h | sed ' | |
12725 s/'"$ac_delim"'/"\\\ | |
12726 "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12727 | |
12728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12729 for (key in D) D_is_set[key] = 1 | |
12730 FS = "" | |
12731 } | |
12732 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12733 line = \$ 0 | |
12734 split(line, arg, " ") | |
12735 if (arg[1] == "#") { | |
12736 defundef = arg[2] | |
12737 mac1 = arg[3] | |
12738 } else { | |
12739 defundef = substr(arg[1], 2) | |
12740 mac1 = arg[2] | |
12741 } | |
12742 split(mac1, mac2, "(") #) | |
12743 macro = mac2[1] | |
12744 prefix = substr(line, 1, index(line, defundef) - 1) | |
12745 if (D_is_set[macro]) { | |
12746 # Preserve the white space surrounding the "#". | |
12747 print prefix "define", macro P[macro] D[macro] | |
12748 next | |
12749 } else { | |
12750 # Replace #undef with comments. This is necessary, for example, | |
12751 # in the case of _POSIX_SOURCE, which is predefined and required | |
12752 # on some systems where configure will not decide to define it. | |
12753 if (defundef == "undef") { | |
12754 print "/*", prefix defundef, macro, "*/" | |
12755 next | |
12756 } | |
12757 } | |
12758 } | |
12759 { print } | |
12760 _ACAWK | |
12761 _ACEOF | |
12762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12763 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
12764 fi # test -n "$CONFIG_HEADERS" | |
12765 | |
12766 | |
12767 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
12768 shift | |
12769 for ac_tag | |
12770 do | |
12771 case $ac_tag in | |
12772 :[FHLC]) ac_mode=$ac_tag; continue;; | |
12773 esac | |
12774 case $ac_mode$ac_tag in | |
12775 :[FHL]*:*);; | |
12776 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
12777 :[FH]-) ac_tag=-:-;; | |
12778 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12779 esac | |
12780 ac_save_IFS=$IFS | |
12781 IFS=: | |
12782 set x $ac_tag | |
12783 IFS=$ac_save_IFS | |
12784 shift | |
12785 ac_file=$1 | |
12786 shift | |
12787 | |
12788 case $ac_mode in | |
12789 :L) ac_source=$1;; | |
12790 :[FH]) | |
12791 ac_file_inputs= | |
12792 for ac_f | |
12793 do | |
12794 case $ac_f in | |
12795 -) ac_f="$ac_tmp/stdin";; | |
12796 *) # Look for the file first in the build tree, then in the source tree | |
12797 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12798 # because $ac_f cannot contain `:'. | |
12799 test -f "$ac_f" || | |
12800 case $ac_f in | |
12801 [\\/$]*) false;; | |
12802 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12803 esac || | |
12804 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
12805 esac | |
12806 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
12807 as_fn_append ac_file_inputs " '$ac_f'" | |
12808 done | |
12809 | |
12810 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12811 # use $as_me), people would be surprised to read: | |
12812 # /* config.h. Generated by config.status. */ | |
12813 configure_input='Generated from '` | |
12814 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12815 `' by configure.' | |
12816 if test x"$ac_file" != x-; then | |
12817 configure_input="$ac_file. $configure_input" | |
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
12819 $as_echo "$as_me: creating $ac_file" >&6;} | |
12820 fi | |
12821 # Neutralize special characters interpreted by sed in replacement strings. | |
12822 case $configure_input in #( | |
12823 *\&* | *\|* | *\\* ) | |
12824 ac_sed_conf_input=`$as_echo "$configure_input" | | |
12825 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12826 *) ac_sed_conf_input=$configure_input;; | |
12827 esac | |
12828 | |
12829 case $ac_tag in | |
12830 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
12831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
12832 esac | |
12833 ;; | |
12834 esac | |
12835 | |
12836 ac_dir=`$as_dirname -- "$ac_file" || | |
12837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12838 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12839 X"$ac_file" : 'X\(//\)$' \| \ | |
12840 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
12841 $as_echo X"$ac_file" | | |
12842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12843 s//\1/ | |
12844 q | |
12845 } | |
12846 /^X\(\/\/\)[^/].*/{ | |
12847 s//\1/ | |
12848 q | |
12849 } | |
12850 /^X\(\/\/\)$/{ | |
12851 s//\1/ | |
12852 q | |
12853 } | |
12854 /^X\(\/\).*/{ | |
12855 s//\1/ | |
12856 q | |
12857 } | |
12858 s/.*/./; q'` | |
12859 as_dir="$ac_dir"; as_fn_mkdir_p | |
12860 ac_builddir=. | |
12861 | |
12862 case "$ac_dir" in | |
12863 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12864 *) | |
12865 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
12866 # A ".." for each directory in $ac_dir_suffix. | |
12867 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
12868 case $ac_top_builddir_sub in | |
12869 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12870 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12871 esac ;; | |
12872 esac | |
12873 ac_abs_top_builddir=$ac_pwd | |
12874 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12875 # for backward compatibility: | |
12876 ac_top_builddir=$ac_top_build_prefix | |
12877 | |
12878 case $srcdir in | |
12879 .) # We are building in place. | |
12880 ac_srcdir=. | |
12881 ac_top_srcdir=$ac_top_builddir_sub | |
12882 ac_abs_top_srcdir=$ac_pwd ;; | |
12883 [\\/]* | ?:[\\/]* ) # Absolute name. | |
12884 ac_srcdir=$srcdir$ac_dir_suffix; | |
12885 ac_top_srcdir=$srcdir | |
12886 ac_abs_top_srcdir=$srcdir ;; | |
12887 *) # Relative name. | |
12888 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12889 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12890 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
12891 esac | |
12892 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
12893 | |
12894 | |
12895 case $ac_mode in | |
12896 :F) | |
12897 # | |
12898 # CONFIG_FILE | |
12899 # | |
12900 | |
12901 case $INSTALL in | |
12902 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
12903 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
12904 esac | |
12905 ac_MKDIR_P=$MKDIR_P | |
12906 case $MKDIR_P in | |
12907 [\\/$]* | ?:[\\/]* ) ;; | |
12908 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12909 esac | |
12910 _ACEOF | |
12911 | |
12912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12913 # If the template does not know about datarootdir, expand it. | |
12914 # FIXME: This hack should be removed a few years after 2.60. | |
12915 ac_datarootdir_hack=; ac_datarootdir_seen= | |
12916 ac_sed_dataroot=' | |
12917 /datarootdir/ { | |
12918 p | |
12919 q | |
12920 } | |
12921 /@datadir@/p | |
12922 /@docdir@/p | |
12923 /@infodir@/p | |
12924 /@localedir@/p | |
12925 /@mandir@/p' | |
12926 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
12927 *datarootdir*) ac_datarootdir_seen=yes;; | |
12928 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
12930 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
12931 _ACEOF | |
12932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12933 ac_datarootdir_hack=' | |
12934 s&@datadir@&$datadir&g | |
12935 s&@docdir@&$docdir&g | |
12936 s&@infodir@&$infodir&g | |
12937 s&@localedir@&$localedir&g | |
12938 s&@mandir@&$mandir&g | |
12939 s&\\\${datarootdir}&$datarootdir&g' ;; | |
12940 esac | |
12941 _ACEOF | |
12942 | |
12943 # Neutralize VPATH when `$srcdir' = `.'. | |
12944 # Shell code in configure.ac might set extrasub. | |
12945 # FIXME: do we really want to maintain this feature? | |
12946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12947 ac_sed_extra="$ac_vpsub | |
12948 $extrasub | |
12949 _ACEOF | |
12950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12951 :t | |
12952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12953 s|@configure_input@|$ac_sed_conf_input|;t t | |
12954 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
12955 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
12956 s&@srcdir@&$ac_srcdir&;t t | |
12957 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12958 s&@top_srcdir@&$ac_top_srcdir&;t t | |
12959 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12960 s&@builddir@&$ac_builddir&;t t | |
12961 s&@abs_builddir@&$ac_abs_builddir&;t t | |
12962 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12963 s&@INSTALL@&$ac_INSTALL&;t t | |
12964 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
12965 $ac_datarootdir_hack | |
12966 " | |
12967 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
12968 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
12969 | |
12970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12971 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
12972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
12973 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12975 which seems to be undefined. Please make sure it is defined" >&5 | |
12976 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
12977 which seems to be undefined. Please make sure it is defined" >&2;} | |
12978 | |
12979 rm -f "$ac_tmp/stdin" | |
12980 case $ac_file in | |
12981 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
12982 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
12983 esac \ | |
12984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
12985 ;; | |
12986 :H) | |
12987 # | |
12988 # CONFIG_HEADER | |
12989 # | |
12990 if test x"$ac_file" != x-; then | |
12991 { | |
12992 $as_echo "/* $configure_input */" \ | |
12993 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
12994 } >"$ac_tmp/config.h" \ | |
12995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
12996 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
12998 $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
12999 else | |
13000 rm -f "$ac_file" | |
13001 mv "$ac_tmp/config.h" "$ac_file" \ | |
13002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13003 fi | |
13004 else | |
13005 $as_echo "/* $configure_input */" \ | |
13006 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
13007 || as_fn_error $? "could not create -" "$LINENO" 5 | |
13008 fi | |
13009 # Compute "$ac_file"'s index in $config_headers. | |
13010 _am_arg="$ac_file" | |
13011 _am_stamp_count=1 | |
13012 for _am_header in $config_headers :; do | |
13013 case $_am_header in | |
13014 $_am_arg | $_am_arg:* ) | |
13015 break ;; | |
13016 * ) | |
13017 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13018 esac | |
13019 done | |
13020 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13021 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13022 X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13023 X"$_am_arg" : 'X\(//\)$' \| \ | |
13024 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13025 $as_echo X"$_am_arg" | | |
13026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13027 s//\1/ | |
13028 q | |
13029 } | |
13030 /^X\(\/\/\)[^/].*/{ | |
13031 s//\1/ | |
13032 q | |
13033 } | |
13034 /^X\(\/\/\)$/{ | |
13035 s//\1/ | |
13036 q | |
13037 } | |
13038 /^X\(\/\).*/{ | |
13039 s//\1/ | |
13040 q | |
13041 } | |
13042 s/.*/./; q'`/stamp-h$_am_stamp_count | |
13043 ;; | |
13044 | |
13045 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
13046 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13047 ;; | |
13048 esac | |
13049 | |
13050 | |
13051 case $ac_file$ac_mode in | |
13052 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
13053 # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
13054 # are listed without --file. Let's play safe and only enable the eval | |
13055 # if we detect the quoting. | |
13056 case $CONFIG_FILES in | |
13057 *\'*) eval set x "$CONFIG_FILES" ;; | |
13058 *) set x $CONFIG_FILES ;; | |
13059 esac | |
13060 shift | |
13061 for mf | |
13062 do | |
13063 # Strip MF so we end up with the name of the file. | |
13064 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13065 # Check whether this is an Automake generated Makefile or not. | |
13066 # We used to match only the files named `Makefile.in', but | |
13067 # some people rename them; so instead we look at the file content. | |
13068 # Grep'ing the first line is not enough: some people post-process | |
13069 # each Makefile.in and add a new line on top of each file to say so. | |
13070 # Grep'ing the whole file is not good either: AIX grep has a line | |
13071 # limit of 2048, but all sed's we know have understand at least 4000. | |
13072 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13073 dirpart=`$as_dirname -- "$mf" || | |
13074 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13075 X"$mf" : 'X\(//\)[^/]' \| \ | |
13076 X"$mf" : 'X\(//\)$' \| \ | |
13077 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13078 $as_echo X"$mf" | | |
13079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13080 s//\1/ | |
13081 q | |
13082 } | |
13083 /^X\(\/\/\)[^/].*/{ | |
13084 s//\1/ | |
13085 q | |
13086 } | |
13087 /^X\(\/\/\)$/{ | |
13088 s//\1/ | |
13089 q | |
13090 } | |
13091 /^X\(\/\).*/{ | |
13092 s//\1/ | |
13093 q | |
13094 } | |
13095 s/.*/./; q'` | |
13096 else | |
13097 continue | |
13098 fi | |
13099 # Extract the definition of DEPDIR, am__include, and am__quote | |
13100 # from the Makefile without running `make'. | |
13101 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13102 test -z "$DEPDIR" && continue | |
13103 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13104 test -z "am__include" && continue | |
13105 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13106 # When using ansi2knr, U may be empty or an underscore; expand it | |
13107 U=`sed -n 's/^U = //p' < "$mf"` | |
13108 # Find all dependency output files, they are included files with | |
13109 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13110 # simplest approach to changing $(DEPDIR) to its actual value in the | |
13111 # expansion. | |
13112 for file in `sed -n " | |
13113 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13114 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13115 # Make sure the directory exists. | |
13116 test -f "$dirpart/$file" && continue | |
13117 fdir=`$as_dirname -- "$file" || | |
13118 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13119 X"$file" : 'X\(//\)[^/]' \| \ | |
13120 X"$file" : 'X\(//\)$' \| \ | |
13121 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13122 $as_echo X"$file" | | |
13123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13124 s//\1/ | |
13125 q | |
13126 } | |
13127 /^X\(\/\/\)[^/].*/{ | |
13128 s//\1/ | |
13129 q | |
13130 } | |
13131 /^X\(\/\/\)$/{ | |
13132 s//\1/ | |
13133 q | |
13134 } | |
13135 /^X\(\/\).*/{ | |
13136 s//\1/ | |
13137 q | |
13138 } | |
13139 s/.*/./; q'` | |
13140 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
13141 # echo "creating $dirpart/$file" | |
13142 echo '# dummy' > "$dirpart/$file" | |
13143 done | |
13144 done | |
13145 } | |
13146 ;; | |
13147 "preinst-swig":F) chmod +x preinst-swig ;; | |
13148 | |
13149 esac | |
13150 done # for ac_tag | |
13151 | |
13152 | |
13153 as_fn_exit 0 | |
13154 _ACEOF | |
13155 ac_clean_files=$ac_clean_files_save | |
13156 | |
13157 test $ac_write_fail = 0 || | |
13158 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
13159 | |
13160 | |
13161 # configure is writing to config.log, and then calls config.status. | |
13162 # config.status does its own redirection, appending to config.log. | |
13163 # Unfortunately, on DOS this fails, as config.log is still kept open | |
13164 # by configure, so config.status won't be able to write to it; its | |
13165 # output is simply discarded. So we exec the FD to /dev/null, | |
13166 # effectively closing config.log, so it can be properly (re)opened and | |
13167 # appended to by config.status. When coming back to configure, we | |
13168 # need to make the FD available again. | |
13169 if test "$no_create" != yes; then | |
13170 ac_cs_success=: | |
13171 ac_config_status_args= | |
13172 test "$silent" = yes && | |
13173 ac_config_status_args="$ac_config_status_args --quiet" | |
13174 exec 5>/dev/null | |
13175 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13176 exec 5>>config.log | |
13177 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13178 # would make configure fail if this is the last instruction. | |
13179 $ac_cs_success || as_fn_exit 1 | |
13180 fi | |
13181 | |
13182 # | |
13183 # CONFIG_SUBDIRS section. | |
13184 # | |
13185 if test "$no_recursion" != yes; then | |
13186 | |
13187 # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
13188 # so they do not pile up. | |
13189 ac_sub_configure_args= | |
13190 ac_prev= | |
13191 eval "set x $ac_configure_args" | |
13192 shift | |
13193 for ac_arg | |
13194 do | |
13195 if test -n "$ac_prev"; then | |
13196 ac_prev= | |
13197 continue | |
13198 fi | |
13199 case $ac_arg in | |
13200 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
13201 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
13202 ac_prev=cache_file ;; | |
13203 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
13204 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
13205 | --c=*) | |
13206 ;; | |
13207 --config-cache | -C) | |
13208 ;; | |
13209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
13210 ac_prev=srcdir ;; | |
13211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13212 ;; | |
13213 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
13214 ac_prev=prefix ;; | |
13215 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13216 ;; | |
13217 --disable-option-checking) | |
13218 ;; | |
13219 *) | |
13220 case $ac_arg in | |
13221 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13222 esac | |
13223 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
13224 esac | |
13225 done | |
13226 | |
13227 # Always prepend --prefix to ensure using the same prefix | |
13228 # in subdir configurations. | |
13229 ac_arg="--prefix=$prefix" | |
13230 case $ac_arg in | |
13231 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13232 esac | |
13233 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
13234 | |
13235 # Pass --silent | |
13236 if test "$silent" = yes; then | |
13237 ac_sub_configure_args="--silent $ac_sub_configure_args" | |
13238 fi | |
13239 | |
13240 # Always prepend --disable-option-checking to silence warnings, since | |
13241 # different subdirs can have different --enable and --with options. | |
13242 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
13243 | |
13244 ac_popdir=`pwd` | |
13245 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
13246 | |
13247 # Do not complain, so a configure script can configure whichever | |
13248 # parts of a large source tree are present. | |
13249 test -d "$srcdir/$ac_dir" || continue | |
13250 | |
13251 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
13252 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
13253 $as_echo "$ac_msg" >&6 | |
13254 as_dir="$ac_dir"; as_fn_mkdir_p | |
13255 ac_builddir=. | |
13256 | |
13257 case "$ac_dir" in | |
13258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13259 *) | |
13260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13261 # A ".." for each directory in $ac_dir_suffix. | |
13262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13263 case $ac_top_builddir_sub in | |
13264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13266 esac ;; | |
13267 esac | |
13268 ac_abs_top_builddir=$ac_pwd | |
13269 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13270 # for backward compatibility: | |
13271 ac_top_builddir=$ac_top_build_prefix | |
13272 | |
13273 case $srcdir in | |
13274 .) # We are building in place. | |
13275 ac_srcdir=. | |
13276 ac_top_srcdir=$ac_top_builddir_sub | |
13277 ac_abs_top_srcdir=$ac_pwd ;; | |
13278 [\\/]* | ?:[\\/]* ) # Absolute name. | |
13279 ac_srcdir=$srcdir$ac_dir_suffix; | |
13280 ac_top_srcdir=$srcdir | |
13281 ac_abs_top_srcdir=$srcdir ;; | |
13282 *) # Relative name. | |
13283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13284 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13286 esac | |
13287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
13288 | |
13289 | |
13290 cd "$ac_dir" | |
13291 | |
13292 # Check for guested configure; otherwise get Cygnus style configure. | |
13293 if test -f "$ac_srcdir/configure.gnu"; then | |
13294 ac_sub_configure=$ac_srcdir/configure.gnu | |
13295 elif test -f "$ac_srcdir/configure"; then | |
13296 ac_sub_configure=$ac_srcdir/configure | |
13297 elif test -f "$ac_srcdir/configure.in"; then | |
13298 # This should be Cygnus configure. | |
13299 ac_sub_configure=$ac_aux_dir/configure | |
13300 else | |
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
13302 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
13303 ac_sub_configure= | |
13304 fi | |
13305 | |
13306 # The recursion is here. | |
13307 if test -n "$ac_sub_configure"; then | |
13308 # Make the cache file name correct relative to the subdirectory. | |
13309 case $cache_file in | |
13310 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
13311 *) # Relative name. | |
13312 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
13313 esac | |
13314 | |
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
13316 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
13317 # The eval makes quoting arguments work. | |
13318 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
13319 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
13320 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
13321 fi | |
13322 | |
13323 cd "$ac_popdir" | |
13324 done | |
13325 fi | |
13326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
13328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13329 fi | |
13330 |