permit multiline comments and strings in macros
[bpt/coccinelle.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for coccinelle 1.0.0-rc15.
4 #
5 # Report bugs to <cocci@diku.dk>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and cocci@diku.dk
269 $0: about your system, including any error possibly output
270 $0: before this message. Then install a modern shell, or
271 $0: manually run the script under such a shell if you do
272 $0: have one."
273 fi
274 exit 1
275 fi
276 fi
277 fi
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
291 {
292 { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
313
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
318 {
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360 } # as_fn_mkdir_p
361
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
366 {
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380 else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385 fi # as_fn_append
386
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397 else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402 fi # as_fn_arith
403
404
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
411 {
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
420
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
426 fi
427
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
432 fi
433
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
438 fi
439
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500 }
501
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511 *)
512 ECHO_N='-n';;
513 esac
514
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521 fi
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536 else
537 as_ln_s='cp -pR'
538 fi
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
541
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547 fi
548
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
551
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558 as_awk_strverscmp='
559 # Use only awk features that work with 7th edition Unix awk (1978).
560 # My, what an old awk you have, Mr. Solaris!
561 END {
562 while (length(v1) && length(v2)) {
563 # Set d1 to be the next thing to compare from v1, and likewise for d2.
564 # Normally this is a single character, but if v1 and v2 contain digits,
565 # compare them as integers and fractions as strverscmp does.
566 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
567 # Split v1 and v2 into their leading digit string components d1 and d2,
568 # and advance v1 and v2 past the leading digit strings.
569 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
570 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
571 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
572 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
573 if (d1 ~ /^0/) {
574 if (d2 ~ /^0/) {
575 # Compare two fractions.
576 while (d1 ~ /^0/ && d2 ~ /^0/) {
577 d1 = substr(d1, 2); len1--
578 d2 = substr(d2, 2); len2--
579 }
580 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
581 # The two components differ in length, and the common prefix
582 # contains only leading zeros. Consider the longer to be less.
583 d1 = -len1
584 d2 = -len2
585 } else {
586 # Otherwise, compare as strings.
587 d1 = "x" d1
588 d2 = "x" d2
589 }
590 } else {
591 # A fraction is less than an integer.
592 exit 1
593 }
594 } else {
595 if (d2 ~ /^0/) {
596 # An integer is greater than a fraction.
597 exit 2
598 } else {
599 # Compare two integers.
600 d1 += 0
601 d2 += 0
602 }
603 }
604 } else {
605 # The normal case, without worrying about digits.
606 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
607 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
608 }
609 if (d1 < d2) exit 1
610 if (d1 > d2) exit 2
611 }
612 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
613 # which mishandles some comparisons of empty strings to integers.
614 if (length(v2)) exit 1
615 if (length(v1)) exit 2
616 }
617 '
618
619 test -n "$DJDIR" || exec 7<&0 </dev/null
620 exec 6>&1
621
622 # Name of the host.
623 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
624 # so uname gets run too.
625 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
626
627 #
628 # Initializations.
629 #
630 ac_default_prefix=/usr/local
631 ac_clean_files=
632 ac_config_libobj_dir=.
633 LIBOBJS=
634 cross_compiling=no
635 subdirs=
636 MFLAGS=
637 MAKEFLAGS=
638
639 # Identity of this package.
640 PACKAGE_NAME='coccinelle'
641 PACKAGE_TARNAME='coccinelle'
642 PACKAGE_VERSION='1.0.0-rc15'
643 PACKAGE_STRING='coccinelle 1.0.0-rc15'
644 PACKAGE_BUGREPORT='cocci@diku.dk'
645 PACKAGE_URL='http://coccinelle.lip6.fr/'
646
647 ac_unique_file="cocci.ml"
648 ac_subst_vars='am__EXEEXT_FALSE
649 am__EXEEXT_TRUE
650 LTLIBOBJS
651 LIBOBJS
652 FEATURE_OCAMLBUILD
653 MAKETARGET_SPATCH
654 SPATCHNAME
655 enable_opt
656 MAKETARGET_ALL
657 MODULES_profiling
658 enable_release
659 SUBSTITUTED_PDFLATEX
660 with_PDFLATEX
661 PDFLATEX
662 DYNLINK_IS_NATIVE
663 FEATURE_OCAML
664 FEATURE_PYTHON
665 SHAREDIR
666 REGEXP_FILE
667 REGEXP_MODULE
668 MAKE_pcre
669 OPTFLAGS_pcre
670 enable_pcre
671 GLOBAL_pcre
672 OCAML_PKG_pcre
673 enable_pcre_syntax
674 HAVE_PCRE
675 PCRE_LIBS
676 PCRE_CFLAGS
677 PYCOCCI_FILE
678 PYCOCCI_MODULE
679 MAKE_pycaml
680 OPTFLAGS_pycaml
681 GLOBAL_pycaml
682 OCAML_PKG_pycaml
683 enable_python
684 HAVE_PYTHON
685 PYTHON_LIBS
686 PYTHON_CFLAGS
687 PYVER_MAJOR
688 SUBSTITUTED_PYTHON
689 with_PYTHON
690 enable_pycaml
691 PYTHON
692 OCAMLCOCCI_FILE
693 OCAMLCOCCI_MODULE
694 enable_ocaml
695 SUBSTITUTED_MENHIR
696 with_MENHIR
697 MENHIR
698 OPTIMIZED_dynlink
699 MAKE_menhirLib
700 OPTFLAGS_menhirLib
701 enable_menhirLib
702 GLOBAL_menhirLib
703 OCAML_PKG_menhirLib
704 MAKE_camlp4
705 OPTFLAGS_camlp4
706 enable_camlp4
707 GLOBAL_camlp4
708 OCAML_PKG_camlp4
709 MAKE_dynlink
710 OPTFLAGS_dynlink
711 enable_dynlink
712 GLOBAL_dynlink
713 OCAML_PKG_dynlink
714 PATH_str
715 OCAML_PKG_str
716 PATH_num
717 OCAML_PKG_num
718 PATH_bigarray
719 OCAML_PKG_bigarray
720 PATH_unix
721 OCAML_PKG_unix
722 PATH_camlp4
723 MODULESOPT_camlp4
724 MODULES_camlp4
725 FLAGS_camlp4
726 LOCALLIB_camlp4
727 FEATURE_camlp4
728 PATH_pycaml
729 MODULESOPT_pycaml
730 MODULES_pycaml
731 FLAGS_pycaml
732 LOCALLIB_pycaml
733 FEATURE_pycaml
734 PATH_pcre
735 MODULESOPT_pcre
736 MODULES_pcre
737 FLAGS_pcre
738 LOCALLIB_pcre
739 FEATURE_pcre
740 PATH_dynlink
741 MODULESOPT_dynlink
742 MODULES_dynlink
743 FLAGS_dynlink
744 LOCALLIB_dynlink
745 FEATURE_dynlink
746 PATH_menhirLib
747 MODULESOPT_menhirLib
748 MODULES_menhirLib
749 FLAGS_menhirLib
750 LOCALLIB_menhirLib
751 FEATURE_menhirLib
752 COCCI_OCAML_EXTERNAL
753 RUNTIME_CAMLP4O_CMD
754 RUNTIME_CAMLP4_CMD
755 RUNTIME_OCAMLDEP_CMD
756 RUNTIME_OCAMLOPT_CMD
757 RUNTIME_OCAMLC_CMD
758 RUNTIME_OCAMLFIND_CMD
759 SUBSTITUTED_OCAMLPROF
760 with_OCAMLPROF
761 OCAMLPROF
762 SUBSTITUTED_OCAMLFIND
763 with_OCAMLFIND
764 OCAMLFIND
765 SUBSTITUTED_OCAMLYACC
766 with_OCAMLYACC
767 SUBSTITUTED_OCAMLLEX
768 with_OCAMLLEX
769 CAMLP4RF
770 CAMLP4R
771 CAMLP4PROF
772 CAMLP4ORF
773 CAMLP4OOF
774 CAMLP4OF
775 CAMLP4O
776 CAMLP4BOOT
777 CAMLP4
778 OCAMLCORIG
779 OCAMLATLEAST311
780 OCAMLATLEAST310
781 OCAMLBUILD
782 OCAMLDOC
783 OCAMLMKLIB
784 OCAMLMKTOP
785 OCAMLDEP
786 OCAML
787 OCAMLOPTDOTOPT
788 OCAMLCDOTOPT
789 OCAMLBEST
790 OCAMLOPT
791 OCAMLLIB
792 OCAMLVERSION
793 OCAMLC
794 PKG_CONFIG_ORIG
795 SUBSTITUTED_PKG_CONFIG
796 OCAMLYACC
797 OCAMLLEXDOTOPT
798 OCAMLLEX
799 PKG_CONFIG_LIBDIR
800 PKG_CONFIG_PATH
801 with_PKG_CONFIG
802 PKG_CONFIG
803 PATCHELF
804 INSTALL
805 PATCH
806 TAR
807 CPP
808 am__fastdepCC_FALSE
809 am__fastdepCC_TRUE
810 CCDEPMODE
811 am__nodep
812 AMDEPBACKSLASH
813 AMDEP_FALSE
814 AMDEP_TRUE
815 am__quote
816 am__include
817 DEPDIR
818 OBJEXT
819 EXEEXT
820 ac_ct_CC
821 CPPFLAGS
822 LDFLAGS
823 CFLAGS
824 CC
825 DATE
826 GIT
827 CONFVERSION
828 am__untar
829 am__tar
830 AMTAR
831 am__leading_dot
832 SET_MAKE
833 AWK
834 mkdir_p
835 MKDIR_P
836 INSTALL_STRIP_PROGRAM
837 STRIP
838 install_sh
839 MAKEINFO
840 AUTOHEADER
841 AUTOMAKE
842 AUTOCONF
843 ACLOCAL
844 VERSION
845 PACKAGE
846 CYGPATH_W
847 am__isrc
848 INSTALL_DATA
849 INSTALL_SCRIPT
850 INSTALL_PROGRAM
851 COCCI_SRCDIR
852 COCCI_VERSION
853 CONFIGURE_FLAGS
854 target_alias
855 host_alias
856 build_alias
857 LIBS
858 ECHO_T
859 ECHO_N
860 ECHO_C
861 DEFS
862 mandir
863 localedir
864 libdir
865 psdir
866 pdfdir
867 dvidir
868 htmldir
869 infodir
870 docdir
871 oldincludedir
872 includedir
873 localstatedir
874 sharedstatedir
875 sysconfdir
876 datadir
877 datarootdir
878 libexecdir
879 sbindir
880 bindir
881 program_transform_name
882 prefix
883 exec_prefix
884 PACKAGE_URL
885 PACKAGE_BUGREPORT
886 PACKAGE_STRING
887 PACKAGE_VERSION
888 PACKAGE_TARNAME
889 PACKAGE_NAME
890 PATH_SEPARATOR
891 SHELL
892 PYVER'
893 ac_subst_files=''
894 ac_user_opts='
895 enable_option_checking
896 enable_dependency_tracking
897 with_pkg_config
898 with_ocamllex
899 with_ocamlyacc
900 with_ocamlfind
901 with_ocamlprof
902 with_runtime_ocamlfind
903 with_runtime_ocamlc
904 with_runtime_ocamlopt
905 with_runtime_ocamldep
906 with_runtime_camlp4
907 with_runtime_camlp4o
908 enable_dynlink
909 enable_camlp4
910 enable_menhirLib
911 with_menhir
912 enable_ocaml
913 enable_python
914 with_python
915 enable_pycaml
916 enable_pcre_syntax
917 enable_pcre
918 with_pdflatex
919 enable_release
920 enable_opt
921 enable_ocamlbuild
922 '
923 ac_precious_vars='PYVER
924 build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CPP
933 PKG_CONFIG
934 PKG_CONFIG_PATH
935 PKG_CONFIG_LIBDIR
936 OCAMLLEX
937 OCAMLYACC
938 OCAMLFIND
939 OCAMLPROF
940 RUNTIME_OCAMLFIND_CMD
941 RUNTIME_OCAMLC_CMD
942 RUNTIME_OCAMLOPT_CMD
943 RUNTIME_OCAMLDEP_CMD
944 RUNTIME_CAMLP4_CMD
945 RUNTIME_CAMLP4O_CMD
946 COCCI_OCAML_EXTERNAL
947 MENHIR
948 PYTHON
949 PYTHON_CFLAGS
950 PYTHON_LIBS
951 PCRE_CFLAGS
952 PCRE_LIBS
953 PDFLATEX'
954
955
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 ac_unrecognized_opts=
960 ac_unrecognized_sep=
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
963 cache_file=/dev/null
964 exec_prefix=NONE
965 no_create=
966 no_recursion=
967 prefix=NONE
968 program_prefix=NONE
969 program_suffix=NONE
970 program_transform_name=s,x,x,
971 silent=
972 site=
973 srcdir=
974 verbose=
975 x_includes=NONE
976 x_libraries=NONE
977
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1003
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1007 do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1013 fi
1014
1015 case $ac_option in
1016 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *=) ac_optarg= ;;
1018 *) ac_optarg=yes ;;
1019 esac
1020
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1022
1023 case $ac_dashdash$ac_option in
1024 --)
1025 ac_dashdash=yes ;;
1026
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1031
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1036
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1043
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1046
1047 -datadir | --datadir | --datadi | --datad)
1048 ac_prev=datadir ;;
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1051
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1058
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1084
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1100
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1109
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1113
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1120
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1125
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1131
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1138
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1143
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1148
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1155
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1160
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1167
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1172
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1176
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1180
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1184
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1193
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1198
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1205
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1212
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1229
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1234
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1239
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1304
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1320
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1324
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1331
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1338
1339 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information"
1341 ;;
1342
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1352
1353 *)
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359 ;;
1360
1361 esac
1362 done
1363
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error $? "missing argument to $ac_option"
1367 fi
1368
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1375 fi
1376
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1382 do
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1397
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1404
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 elif test "x$build_alias" != "x$host_alias"; then
1410 cross_compiling=yes
1411 fi
1412 fi
1413
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417 test "$silent" = yes && exec 6>/dev/null
1418
1419
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error $? "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error $? "pwd does not report name of working directory"
1426
1427
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\/\)[^/].*/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\/\)$/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\).*/{
1451 s//\1/
1452 q
1453 }
1454 s/.*/./; q'`
1455 srcdir=$ac_confdir
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 srcdir=..
1458 fi
1459 else
1460 ac_srcdir_defaulted=no
1461 fi
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465 fi
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469 pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1486
1487 #
1488 # Report the --help message.
1489 #
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1493 cat <<_ACEOF
1494 \`configure' configures coccinelle 1.0.0-rc15 to adapt to many kinds of systems.
1495
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1500
1501 Defaults for the options are specified in brackets.
1502
1503 Configuration:
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking ...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 [PREFIX]
1519
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1524
1525 For better control, use the options below.
1526
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --libdir=DIR object code libraries [EPREFIX/lib]
1535 --includedir=DIR C header files [PREFIX/include]
1536 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1539 --infodir=DIR info documentation [DATAROOTDIR/info]
1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1541 --mandir=DIR man documentation [DATAROOTDIR/man]
1542 --docdir=DIR documentation root [DATAROOTDIR/doc/coccinelle]
1543 --htmldir=DIR html documentation [DOCDIR]
1544 --dvidir=DIR dvi documentation [DOCDIR]
1545 --pdfdir=DIR pdf documentation [DOCDIR]
1546 --psdir=DIR ps documentation [DOCDIR]
1547 _ACEOF
1548
1549 cat <<\_ACEOF
1550
1551 Program names:
1552 --program-prefix=PREFIX prepend PREFIX to installed program names
1553 --program-suffix=SUFFIX append SUFFIX to installed program names
1554 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1555 _ACEOF
1556 fi
1557
1558 if test -n "$ac_init_help"; then
1559 case $ac_init_help in
1560 short | recursive ) echo "Configuration of coccinelle 1.0.0-rc15:";;
1561 esac
1562 cat <<\_ACEOF
1563
1564 Optional Features:
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --enable-dependency-tracking
1569 do not reject slow dependency extractors
1570 --disable-dependency-tracking
1571 speeds up one-time build
1572 --enable-dynlink enable global package dynlink (yes,no) (default:
1573 auto)
1574 --enable-camlp4 enable global package camlp4 (yes,no) (default:
1575 auto)
1576 --enable-menhirLib enable global package menhirLib (yes,no) (default:
1577 auto)
1578 --enable-ocaml enable ocaml scripting (default: auto)
1579 --enable-python enable python scripting (yes/no) (default: auto)
1580 --enable-pycaml enable global package pycaml (yes,no) (default:
1581 auto)
1582 --enable-pcre-syntax enable pcre regular expression syntax (default:
1583 auto)
1584 --enable-pcre enable global package pcre (yes,no) (default: auto)
1585 --enable-release build with a release configuration (yes,no,profile
1586 default: no)
1587 --enable-opt build an optimized spatch (yes,no, default: auto)
1588 --enable-ocamlbuild enable ocamlbuild support (default: no)
1589
1590 Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-pkg-config whether/which pkg-config to use (default: auto)
1594 --with-ocamllex whether/which ocamllex to use (default: auto)
1595 --with-ocamlyacc whether/which ocamlyacc to use (default: auto)
1596 --with-ocamlfind whether/which ocamlfind to use (default: auto)
1597 --with-ocamlprof whether/which ocamlprof to use (default: auto)
1598 --with-runtime-ocamlfind
1599 override the runtime cmd for ocamlfind
1600 --with-runtime-ocamlc override the runtime cmd for ocamlc
1601 --with-runtime-ocamlopt override the runtime cmd for ocamlopt
1602 --with-runtime-ocamldep override the runtime cmd for ocamldep
1603 --with-runtime-camlp4 override the runtime cmd for camlp4
1604 --with-runtime-camlp4o override the runtime cmd for camlp4o
1605 --with-menhir whether/which menhir to use (default: auto)
1606 --with-python whether/which python to use (default: auto)
1607 --with-pdflatex whether/which pdflatex to use (default: auto)
1608
1609 Some influential environment variables:
1610 PYVER python version
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 CPP C preprocessor
1619 PKG_CONFIG path to pkg-config
1620 PKG_CONFIG_PATH
1621 directories to add to pkg-config's search path
1622 PKG_CONFIG_LIBDIR
1623 path overriding pkg-config's built-in search path
1624 OCAMLLEX path to ocamllex
1625 OCAMLYACC path to ocamlyacc
1626 OCAMLFIND path to ocamlfind
1627 OCAMLPROF path to ocamlprof
1628 RUNTIME_OCAMLFIND_CMD
1629 path to ocamlfind
1630 RUNTIME_OCAMLC_CMD
1631 path to ocamlc
1632 RUNTIME_OCAMLOPT_CMD
1633 path to ocamlopt
1634 RUNTIME_OCAMLDEP_CMD
1635 path to ocamldep
1636 RUNTIME_CAMLP4_CMD
1637 path to camlp4
1638 RUNTIME_CAMLP4O_CMD
1639 path to camlp4o
1640 COCCI_OCAML_EXTERNAL
1641 path to extra ocaml packages (default: $COCCI_SRCDIR/bundles)
1642 MENHIR path to menhir
1643 PYTHON path to python when the version is determined automatically
1644 PYTHON_CFLAGS
1645 C compiler flags for PYTHON, overriding pkg-config
1646 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
1647 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1648 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1649 PDFLATEX path to pdflatex
1650
1651 Use these variables to override the choices made by `configure' or to help
1652 it to find libraries and programs with nonstandard names/locations.
1653
1654 Report bugs to <cocci@diku.dk>.
1655 coccinelle home page: <http://coccinelle.lip6.fr/>.
1656 _ACEOF
1657 ac_status=$?
1658 fi
1659
1660 if test "$ac_init_help" = "recursive"; then
1661 # If there are subdirs, report their specific --help.
1662 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663 test -d "$ac_dir" ||
1664 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1665 continue
1666 ac_builddir=.
1667
1668 case "$ac_dir" in
1669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *)
1671 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1672 # A ".." for each directory in $ac_dir_suffix.
1673 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1674 case $ac_top_builddir_sub in
1675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677 esac ;;
1678 esac
1679 ac_abs_top_builddir=$ac_pwd
1680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681 # for backward compatibility:
1682 ac_top_builddir=$ac_top_build_prefix
1683
1684 case $srcdir in
1685 .) # We are building in place.
1686 ac_srcdir=.
1687 ac_top_srcdir=$ac_top_builddir_sub
1688 ac_abs_top_srcdir=$ac_pwd ;;
1689 [\\/]* | ?:[\\/]* ) # Absolute name.
1690 ac_srcdir=$srcdir$ac_dir_suffix;
1691 ac_top_srcdir=$srcdir
1692 ac_abs_top_srcdir=$srcdir ;;
1693 *) # Relative name.
1694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695 ac_top_srcdir=$ac_top_build_prefix$srcdir
1696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 esac
1698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699
1700 cd "$ac_dir" || { ac_status=$?; continue; }
1701 # Check for guested configure.
1702 if test -f "$ac_srcdir/configure.gnu"; then
1703 echo &&
1704 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705 elif test -f "$ac_srcdir/configure"; then
1706 echo &&
1707 $SHELL "$ac_srcdir/configure" --help=recursive
1708 else
1709 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710 fi || ac_status=$?
1711 cd "$ac_pwd" || { ac_status=$?; break; }
1712 done
1713 fi
1714
1715 test -n "$ac_init_help" && exit $ac_status
1716 if $ac_init_version; then
1717 cat <<\_ACEOF
1718 coccinelle configure 1.0.0-rc15
1719 generated by GNU Autoconf 2.69
1720
1721 Copyright (C) 2012 Free Software Foundation, Inc.
1722 This configure script is free software; the Free Software Foundation
1723 gives unlimited permission to copy, distribute and modify it.
1724 _ACEOF
1725 exit
1726 fi
1727
1728 ## ------------------------ ##
1729 ## Autoconf initialization. ##
1730 ## ------------------------ ##
1731
1732 # ac_fn_c_try_compile LINENO
1733 # --------------------------
1734 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext
1739 if { { ac_try="$ac_compile"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_compile") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest.$ac_objext; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764 fi
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_compile
1769
1770 # ac_fn_c_try_cpp LINENO
1771 # ----------------------
1772 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_c_try_cpp ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_cpp conftest.$ac_ext"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } > conftest.i && {
1792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801 fi
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_cpp
1806 cat >config.log <<_ACEOF
1807 This file contains any messages produced by compilers while
1808 running configure, to aid debugging if configure makes a mistake.
1809
1810 It was created by coccinelle $as_me 1.0.0-rc15, which was
1811 generated by GNU Autoconf 2.69. Invocation command line was
1812
1813 $ $0 $@
1814
1815 _ACEOF
1816 exec 5>>config.log
1817 {
1818 cat <<_ASUNAME
1819 ## --------- ##
1820 ## Platform. ##
1821 ## --------- ##
1822
1823 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1824 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1825 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1826 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1827 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1828
1829 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1830 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1831
1832 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1833 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1834 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1835 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1836 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1837 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1838 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839
1840 _ASUNAME
1841
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 $as_echo "PATH: $as_dir"
1848 done
1849 IFS=$as_save_IFS
1850
1851 } >&5
1852
1853 cat >&5 <<_ACEOF
1854
1855
1856 ## ----------- ##
1857 ## Core tests. ##
1858 ## ----------- ##
1859
1860 _ACEOF
1861
1862
1863 # Keep a trace of the command line.
1864 # Strip out --no-create and --no-recursion so they do not pile up.
1865 # Strip out --silent because we don't want to record it for future runs.
1866 # Also quote any args containing shell meta-characters.
1867 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_configure_args=
1869 ac_configure_args0=
1870 ac_configure_args1=
1871 ac_must_keep_next=false
1872 for ac_pass in 1 2
1873 do
1874 for ac_arg
1875 do
1876 case $ac_arg in
1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1879 | -silent | --silent | --silen | --sile | --sil)
1880 continue ;;
1881 *\'*)
1882 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 case $ac_pass in
1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 2)
1887 as_fn_append ac_configure_args1 " '$ac_arg'"
1888 if test $ac_must_keep_next = true; then
1889 ac_must_keep_next=false # Got value, back to normal.
1890 else
1891 case $ac_arg in
1892 *=* | --config-cache | -C | -disable-* | --disable-* \
1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1895 | -with-* | --with-* | -without-* | --without-* | --x)
1896 case "$ac_configure_args0 " in
1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 esac
1899 ;;
1900 -* ) ac_must_keep_next=true ;;
1901 esac
1902 fi
1903 as_fn_append ac_configure_args " '$ac_arg'"
1904 ;;
1905 esac
1906 done
1907 done
1908 { ac_configure_args0=; unset ac_configure_args0;}
1909 { ac_configure_args1=; unset ac_configure_args1;}
1910
1911 # When interrupted or exit'd, cleanup temporary files, and complete
1912 # config.log. We remove comments because anyway the quotes in there
1913 # would cause problems or look ugly.
1914 # WARNING: Use '\'' to represent an apostrophe within the trap.
1915 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1916 trap 'exit_status=$?
1917 # Save into config.log some information that might help in debugging.
1918 {
1919 echo
1920
1921 $as_echo "## ---------------- ##
1922 ## Cache variables. ##
1923 ## ---------------- ##"
1924 echo
1925 # The following way of writing the cache mishandles newlines in values,
1926 (
1927 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in #(
1930 *${as_nl}*)
1931 case $ac_var in #(
1932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934 esac
1935 case $ac_var in #(
1936 _ | IFS | as_nl) ;; #(
1937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1938 *) { eval $ac_var=; unset $ac_var;} ;;
1939 esac ;;
1940 esac
1941 done
1942 (set) 2>&1 |
1943 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1944 *${as_nl}ac_space=\ *)
1945 sed -n \
1946 "s/'\''/'\''\\\\'\'''\''/g;
1947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948 ;; #(
1949 *)
1950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 ;;
1952 esac |
1953 sort
1954 )
1955 echo
1956
1957 $as_echo "## ----------------- ##
1958 ## Output variables. ##
1959 ## ----------------- ##"
1960 echo
1961 for ac_var in $ac_subst_vars
1962 do
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1970
1971 if test -n "$ac_subst_files"; then
1972 $as_echo "## ------------------- ##
1973 ## File substitutions. ##
1974 ## ------------------- ##"
1975 echo
1976 for ac_var in $ac_subst_files
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985 fi
1986
1987 if test -s confdefs.h; then
1988 $as_echo "## ----------- ##
1989 ## confdefs.h. ##
1990 ## ----------- ##"
1991 echo
1992 cat confdefs.h
1993 echo
1994 fi
1995 test "$ac_signal" != 0 &&
1996 $as_echo "$as_me: caught signal $ac_signal"
1997 $as_echo "$as_me: exit $exit_status"
1998 } >&5
1999 rm -f core *.core core.conftest.* &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 exit $exit_status
2002 ' 0
2003 for ac_signal in 1 2 13 15; do
2004 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005 done
2006 ac_signal=0
2007
2008 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2009 rm -f -r conftest* confdefs.h
2010
2011 $as_echo "/* confdefs.h */" > confdefs.h
2012
2013 # Predefined preprocessor variables.
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_NAME "$PACKAGE_NAME"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_STRING "$PACKAGE_STRING"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_URL "$PACKAGE_URL"
2037 _ACEOF
2038
2039
2040 # Let the site file select an alternate cache file if it wants to.
2041 # Prefer an explicitly selected file to automatically selected ones.
2042 ac_site_file1=NONE
2043 ac_site_file2=NONE
2044 if test -n "$CONFIG_SITE"; then
2045 # We do not want a PATH search for config.site.
2046 case $CONFIG_SITE in #((
2047 -*) ac_site_file1=./$CONFIG_SITE;;
2048 */*) ac_site_file1=$CONFIG_SITE;;
2049 *) ac_site_file1=./$CONFIG_SITE;;
2050 esac
2051 elif test "x$prefix" != xNONE; then
2052 ac_site_file1=$prefix/share/config.site
2053 ac_site_file2=$prefix/etc/config.site
2054 else
2055 ac_site_file1=$ac_default_prefix/share/config.site
2056 ac_site_file2=$ac_default_prefix/etc/config.site
2057 fi
2058 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059 do
2060 test "x$ac_site_file" = xNONE && continue
2061 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2063 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file" \
2066 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 as_fn_error $? "failed to load site script $ac_site_file
2069 See \`config.log' for more details" "$LINENO" 5; }
2070 fi
2071 done
2072
2073 if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special files
2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078 $as_echo "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2083 fi
2084 else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2088 fi
2089
2090 # Check that the precious variables saved in the cache have kept the same
2091 # value.
2092 ac_cache_corrupted=false
2093 for ac_var in $ac_precious_vars; do
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
2098 case $ac_old_set,$ac_new_set in
2099 set,)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,set)
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 esac
2138 fi
2139 done
2140 if $ac_cache_corrupted; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146 fi
2147 ## -------------------- ##
2148 ## Main body of script. ##
2149 ## -------------------- ##
2150
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
2158
2159 ac_aux_dir=
2160 for ac_dir in setup "$srcdir"/setup; do
2161 if test -f "$ac_dir/install-sh"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/install-sh -c"
2164 break
2165 elif test -f "$ac_dir/install.sh"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/install.sh -c"
2168 break
2169 elif test -f "$ac_dir/shtool"; then
2170 ac_aux_dir=$ac_dir
2171 ac_install_sh="$ac_aux_dir/shtool install -c"
2172 break
2173 fi
2174 done
2175 if test -z "$ac_aux_dir"; then
2176 as_fn_error $? "cannot find install-sh, install.sh, or shtool in setup \"$srcdir\"/setup" "$LINENO" 5
2177 fi
2178
2179 # These three variables are undocumented and unsupported,
2180 # and are intended to be withdrawn in a future Autoconf release.
2181 # They can cause serious problems if a builder's source tree is in a directory
2182 # whose full name contains unusual characters.
2183 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2184 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2185 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2186
2187
2188 CONFIGURE_FLAGS="$*"
2189
2190 COCCI_VERSION="$PACKAGE_VERSION"
2191
2192 COCCI_SRCDIR="$(pwd)"
2193
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&5
2195 $as_echo "$as_me: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&6;}
2196 am__api_version='1.12'
2197
2198 # Find a good install program. We prefer a C program (faster),
2199 # so one script is as good as another. But avoid the broken or
2200 # incompatible versions:
2201 # SysV /etc/install, /usr/sbin/install
2202 # SunOS /usr/etc/install
2203 # IRIX /sbin/install
2204 # AIX /bin/install
2205 # AmigaOS /C/install, which installs bootblocks on floppy discs
2206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2209 # OS/2's system install, which has a completely different semantic
2210 # ./install, which can be erroneously created by make from ./install.sh.
2211 # Reject install programs that cannot install multiple files.
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2213 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2214 if test -z "$INSTALL"; then
2215 if ${ac_cv_path_install+:} false; then :
2216 $as_echo_n "(cached) " >&6
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 # Account for people who put trailing slashes in PATH elements.
2224 case $as_dir/ in #((
2225 ./ | .// | /[cC]/* | \
2226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2228 /usr/ucb/* ) ;;
2229 *)
2230 # OSF1 and SCO ODT 3.0 have their own names for install.
2231 # Don't use installbsd from OSF since it installs stuff as root
2232 # by default.
2233 for ac_prog in ginstall scoinst install; do
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2236 if test $ac_prog = install &&
2237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2238 # AIX install. It has an incompatible calling convention.
2239 :
2240 elif test $ac_prog = install &&
2241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242 # program-specific install script used by HP pwplus--don't use.
2243 :
2244 else
2245 rm -rf conftest.one conftest.two conftest.dir
2246 echo one > conftest.one
2247 echo two > conftest.two
2248 mkdir conftest.dir
2249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2250 test -s conftest.one && test -s conftest.two &&
2251 test -s conftest.dir/conftest.one &&
2252 test -s conftest.dir/conftest.two
2253 then
2254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2255 break 3
2256 fi
2257 fi
2258 fi
2259 done
2260 done
2261 ;;
2262 esac
2263
2264 done
2265 IFS=$as_save_IFS
2266
2267 rm -rf conftest.one conftest.two conftest.dir
2268
2269 fi
2270 if test "${ac_cv_path_install+set}" = set; then
2271 INSTALL=$ac_cv_path_install
2272 else
2273 # As a last resort, use the slow shell script. Don't cache a
2274 # value for INSTALL within a source directory, because that will
2275 # break other packages using the cache if that directory is
2276 # removed, or if the value is a relative name.
2277 INSTALL=$ac_install_sh
2278 fi
2279 fi
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2281 $as_echo "$INSTALL" >&6; }
2282
2283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2284 # It thinks the first close brace ends the variable substitution.
2285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2286
2287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2288
2289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2290
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2292 $as_echo_n "checking whether build environment is sane... " >&6; }
2293 # Reject unsafe characters in $srcdir or the absolute working directory
2294 # name. Accept space and tab only in the latter.
2295 am_lf='
2296 '
2297 case `pwd` in
2298 *[\\\"\#\$\&\'\`$am_lf]*)
2299 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2300 esac
2301 case $srcdir in
2302 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2303 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2304 esac
2305
2306 # Do 'set' in a subshell so we don't clobber the current shell's
2307 # arguments. Must try -L first in case configure is actually a
2308 # symlink; some systems play weird games with the mod time of symlinks
2309 # (eg FreeBSD returns the mod time of the symlink's containing
2310 # directory).
2311 if (
2312 am_has_slept=no
2313 for am_try in 1 2; do
2314 echo "timestamp, slept: $am_has_slept" > conftest.file
2315 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2316 if test "$*" = "X"; then
2317 # -L didn't work.
2318 set X `ls -t "$srcdir/configure" conftest.file`
2319 fi
2320 if test "$*" != "X $srcdir/configure conftest.file" \
2321 && test "$*" != "X conftest.file $srcdir/configure"; then
2322
2323 # If neither matched, then we have a broken ls. This can happen
2324 # if, for instance, CONFIG_SHELL is bash and it inherits a
2325 # broken ls alias from the environment. This has actually
2326 # happened. Such a system could not be considered "sane".
2327 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2328 alias in your environment" "$LINENO" 5
2329 fi
2330 if test "$2" = conftest.file || test $am_try -eq 2; then
2331 break
2332 fi
2333 # Just in case.
2334 sleep 1
2335 am_has_slept=yes
2336 done
2337 test "$2" = conftest.file
2338 )
2339 then
2340 # Ok.
2341 :
2342 else
2343 as_fn_error $? "newly created file is older than distributed files!
2344 Check your system clock" "$LINENO" 5
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2347 $as_echo "yes" >&6; }
2348 # If we didn't sleep, we still need to ensure time stamps of config.status and
2349 # generated files are strictly newer.
2350 am_sleep_pid=
2351 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2352 ( sleep 1 ) &
2353 am_sleep_pid=$!
2354 fi
2355
2356 rm -f conftest.file
2357
2358 test "$program_prefix" != NONE &&
2359 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2360 # Use a double $ so make ignores it.
2361 test "$program_suffix" != NONE &&
2362 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2363 # Double any \ or $.
2364 # By default was `s,x,x', remove it if useless.
2365 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2366 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2367
2368 # expand $ac_aux_dir to an absolute path
2369 am_aux_dir=`cd $ac_aux_dir && pwd`
2370
2371 if test x"${MISSING+set}" != xset; then
2372 case $am_aux_dir in
2373 *\ * | *\ *)
2374 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2375 *)
2376 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2377 esac
2378 fi
2379 # Use eval to expand $SHELL
2380 if eval "$MISSING --run true"; then
2381 am_missing_run="$MISSING --run "
2382 else
2383 am_missing_run=
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2385 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2386 fi
2387
2388 if test x"${install_sh}" != xset; then
2389 case $am_aux_dir in
2390 *\ * | *\ *)
2391 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2392 *)
2393 install_sh="\${SHELL} $am_aux_dir/install-sh"
2394 esac
2395 fi
2396
2397 # Installed binaries are usually stripped using 'strip' when the user
2398 # run "make install-strip". However 'strip' might not be the right
2399 # tool to use in cross-compilation environments, therefore Automake
2400 # will honor the 'STRIP' environment variable to overrule this program.
2401 if test "$cross_compiling" != no; then
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2404 set dummy ${ac_tool_prefix}strip; ac_word=$2
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406 $as_echo_n "checking for $ac_word... " >&6; }
2407 if ${ac_cv_prog_STRIP+:} false; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 if test -n "$STRIP"; then
2411 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412 else
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 for as_dir in $PATH
2415 do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424 done
2425 done
2426 IFS=$as_save_IFS
2427
2428 fi
2429 fi
2430 STRIP=$ac_cv_prog_STRIP
2431 if test -n "$STRIP"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2433 $as_echo "$STRIP" >&6; }
2434 else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436 $as_echo "no" >&6; }
2437 fi
2438
2439
2440 fi
2441 if test -z "$ac_cv_prog_STRIP"; then
2442 ac_ct_STRIP=$STRIP
2443 # Extract the first word of "strip", so it can be a program name with args.
2444 set dummy strip; ac_word=$2
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 if test -n "$ac_ct_STRIP"; then
2451 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460 ac_cv_prog_ac_ct_STRIP="strip"
2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464 done
2465 done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2471 if test -n "$ac_ct_STRIP"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2473 $as_echo "$ac_ct_STRIP" >&6; }
2474 else
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476 $as_echo "no" >&6; }
2477 fi
2478
2479 if test "x$ac_ct_STRIP" = x; then
2480 STRIP=":"
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483 yes:)
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2486 ac_tool_warned=yes ;;
2487 esac
2488 STRIP=$ac_ct_STRIP
2489 fi
2490 else
2491 STRIP="$ac_cv_prog_STRIP"
2492 fi
2493
2494 fi
2495 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2496
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2498 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2499 if test -z "$MKDIR_P"; then
2500 if ${ac_cv_path_mkdir+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2505 do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_prog in mkdir gmkdir; do
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2511 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2512 'mkdir (GNU coreutils) '* | \
2513 'mkdir (coreutils) '* | \
2514 'mkdir (fileutils) '4.1*)
2515 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2516 break 3;;
2517 esac
2518 done
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524
2525 test -d ./--version && rmdir ./--version
2526 if test "${ac_cv_path_mkdir+set}" = set; then
2527 MKDIR_P="$ac_cv_path_mkdir -p"
2528 else
2529 # As a last resort, use the slow shell script. Don't cache a
2530 # value for MKDIR_P within a source directory, because that will
2531 # break other packages using the cache if that directory is
2532 # removed, or if the value is a relative name.
2533 MKDIR_P="$ac_install_sh -d"
2534 fi
2535 fi
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2537 $as_echo "$MKDIR_P" >&6; }
2538
2539 for ac_prog in gawk mawk nawk awk
2540 do
2541 # Extract the first word of "$ac_prog", so it can be a program name with args.
2542 set dummy $ac_prog; ac_word=$2
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544 $as_echo_n "checking for $ac_word... " >&6; }
2545 if ${ac_cv_prog_AWK+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 if test -n "$AWK"; then
2549 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2550 else
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 for as_dir in $PATH
2553 do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2558 ac_cv_prog_AWK="$ac_prog"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562 done
2563 done
2564 IFS=$as_save_IFS
2565
2566 fi
2567 fi
2568 AWK=$ac_cv_prog_AWK
2569 if test -n "$AWK"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2571 $as_echo "$AWK" >&6; }
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574 $as_echo "no" >&6; }
2575 fi
2576
2577
2578 test -n "$AWK" && break
2579 done
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2582 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2583 set x ${MAKE-make}
2584 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2585 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 cat >conftest.make <<\_ACEOF
2589 SHELL = /bin/sh
2590 all:
2591 @echo '@@@%%%=$(MAKE)=@@@%%%'
2592 _ACEOF
2593 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2594 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2595 *@@@%%%=?*=@@@%%%*)
2596 eval ac_cv_prog_make_${ac_make}_set=yes;;
2597 *)
2598 eval ac_cv_prog_make_${ac_make}_set=no;;
2599 esac
2600 rm -f conftest.make
2601 fi
2602 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604 $as_echo "yes" >&6; }
2605 SET_MAKE=
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 SET_MAKE="MAKE=${MAKE-make}"
2610 fi
2611
2612 rm -rf .tst 2>/dev/null
2613 mkdir .tst 2>/dev/null
2614 if test -d .tst; then
2615 am__leading_dot=.
2616 else
2617 am__leading_dot=_
2618 fi
2619 rmdir .tst 2>/dev/null
2620
2621 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2622 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2623 # is not polluted with repeated "-I."
2624 am__isrc=' -I$(srcdir)'
2625 # test to see if srcdir already configured
2626 if test -f $srcdir/config.status; then
2627 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2628 fi
2629 fi
2630
2631 # test whether we have cygpath
2632 if test -z "$CYGPATH_W"; then
2633 if (cygpath --version) >/dev/null 2>/dev/null; then
2634 CYGPATH_W='cygpath -w'
2635 else
2636 CYGPATH_W=echo
2637 fi
2638 fi
2639
2640
2641 # Define the identity of the package.
2642 PACKAGE='coccinelle'
2643 VERSION='1.0.0-rc15'
2644
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE "$PACKAGE"
2648 _ACEOF
2649
2650
2651 cat >>confdefs.h <<_ACEOF
2652 #define VERSION "$VERSION"
2653 _ACEOF
2654
2655 # Some tools Automake needs.
2656
2657 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2658
2659
2660 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2661
2662
2663 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2664
2665
2666 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2667
2668
2669 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2670
2671 # For better backward compatibility. To be removed once Automake 1.9.x
2672 # dies out for good. For more background, see:
2673 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2674 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2675 mkdir_p='$(MKDIR_P)'
2676
2677 # We need awk for the "check" target. The system "awk" is bad on
2678 # some platforms.
2679 # Always define AMTAR for backward compatibility. Yes, it's still used
2680 # in the wild :-( We should find a proper way to deprecate it ...
2681 AMTAR='$${TAR-tar}'
2682
2683 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2684
2685
2686
2687
2688
2689
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: determining version suffix" >&5
2692 $as_echo "$as_me: determining version suffix" >&6;}
2693
2694 if test -z "$CONFVERSION" -a -d "./.git"; then :
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: building a version from a git repository" >&5
2696 $as_echo "$as_me: building a version from a git repository" >&6;}
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}git", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}git; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if ${ac_cv_path_GIT+:} false; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 case $GIT in
2706 [\\/]* | ?:[\\/]*)
2707 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
2708 ;;
2709 *)
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 ;;
2726 esac
2727 fi
2728 GIT=$ac_cv_path_GIT
2729 if test -n "$GIT"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
2731 $as_echo "$GIT" >&6; }
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737
2738 fi
2739 if test -z "$ac_cv_path_GIT"; then
2740 ac_pt_GIT=$GIT
2741 # Extract the first word of "git", so it can be a program name with args.
2742 set dummy git; ac_word=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if ${ac_cv_path_ac_pt_GIT+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 case $ac_pt_GIT in
2749 [\\/]* | ?:[\\/]*)
2750 ac_cv_path_ac_pt_GIT="$ac_pt_GIT" # Let the user override the test with a path.
2751 ;;
2752 *)
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760 ac_cv_path_ac_pt_GIT="$as_dir/$ac_word$ac_exec_ext"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 ;;
2769 esac
2770 fi
2771 ac_pt_GIT=$ac_cv_path_ac_pt_GIT
2772 if test -n "$ac_pt_GIT"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GIT" >&5
2774 $as_echo "$ac_pt_GIT" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 fi
2779
2780 if test "x$ac_pt_GIT" = x; then
2781 GIT=""
2782 else
2783 case $cross_compiling:$ac_tool_warned in
2784 yes:)
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2787 ac_tool_warned=yes ;;
2788 esac
2789 GIT=$ac_pt_GIT
2790 fi
2791 else
2792 GIT="$ac_cv_path_GIT"
2793 fi
2794
2795 if test -n "$GIT"; then :
2796 CONFVERSION=`$GIT log -1 --date-order --date=rfc --pretty="format:%cd"`
2797
2798 fi
2799
2800 fi
2801
2802 if test -z "$CONFVERSION"; then :
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}date", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}date; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_path_DATE+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 case $DATE in
2812 [\\/]* | ?:[\\/]*)
2813 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
2814 ;;
2815 *)
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 ;;
2832 esac
2833 fi
2834 DATE=$ac_cv_path_DATE
2835 if test -n "$DATE"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
2837 $as_echo "$DATE" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843
2844 fi
2845 if test -z "$ac_cv_path_DATE"; then
2846 ac_pt_DATE=$DATE
2847 # Extract the first word of "date", so it can be a program name with args.
2848 set dummy date; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_path_ac_pt_DATE+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 case $ac_pt_DATE in
2855 [\\/]* | ?:[\\/]*)
2856 ac_cv_path_ac_pt_DATE="$ac_pt_DATE" # Let the user override the test with a path.
2857 ;;
2858 *)
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_path_ac_pt_DATE="$as_dir/$ac_word$ac_exec_ext"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 ;;
2875 esac
2876 fi
2877 ac_pt_DATE=$ac_cv_path_ac_pt_DATE
2878 if test -n "$ac_pt_DATE"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DATE" >&5
2880 $as_echo "$ac_pt_DATE" >&6; }
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886 if test "x$ac_pt_DATE" = x; then
2887 DATE=""
2888 else
2889 case $cross_compiling:$ac_tool_warned in
2890 yes:)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893 ac_tool_warned=yes ;;
2894 esac
2895 DATE=$ac_pt_DATE
2896 fi
2897 else
2898 DATE="$ac_cv_path_DATE"
2899 fi
2900
2901 if test -n "$DATE"; then :
2902 CONFVERSION=`$DATE "+%a, %d %b %Y %H:%M:%S %z"`
2903
2904 fi
2905
2906 fi
2907
2908 if test -z "$CONFVERSION"; then :
2909 CONFVERSION=unknown
2910
2911 fi
2912
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: version suffix set to $CONFVERSION" >&5
2914 $as_echo "$as_me: version suffix set to $CONFVERSION" >&6;}
2915
2916
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses pkg-config m4 macros" >&5
2918 $as_echo "$as_me: this configure program uses pkg-config m4 macros" >&6;}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&5
2920 $as_echo "$as_me: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&6;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses custom m4 macros (see setup/cocci.m4)" >&5
2922 $as_echo "$as_me: this configure program uses custom m4 macros (see setup/cocci.m4)" >&6;}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&5
2924 $as_echo "$as_me: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&6;}
2925
2926
2927
2928
2929
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic tools" >&5
2931 $as_echo "$as_me: verifying basic tools" >&6;}
2932
2933
2934
2935 DEPDIR="${am__leading_dot}deps"
2936
2937 ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2942 am__doit:
2943 @echo this is the am__doit target
2944 .PHONY: am__doit
2945 END
2946 # If we don't find an include directive, just comment out the code.
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2948 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2949 am__include="#"
2950 am__quote=
2951 _am_result=none
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # Ignore all kinds of additional output from 'make'.
2955 case `$am_make -s -f confmf 2> /dev/null` in #(
2956 *the\ am__doit\ target*)
2957 am__include=include
2958 am__quote=
2959 _am_result=GNU
2960 ;;
2961 esac
2962 # Now try BSD make style include.
2963 if test "$am__include" = "#"; then
2964 echo '.include "confinc"' > confmf
2965 case `$am_make -s -f confmf 2> /dev/null` in #(
2966 *the\ am__doit\ target*)
2967 am__include=.include
2968 am__quote="\""
2969 _am_result=BSD
2970 ;;
2971 esac
2972 fi
2973
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2976 $as_echo "$_am_result" >&6; }
2977 rm -f confinc confmf
2978
2979 # Check whether --enable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then :
2981 enableval=$enable_dependency_tracking;
2982 fi
2983
2984 if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2986 AMDEPBACKSLASH='\'
2987 am__nodep='_no'
2988 fi
2989 if test "x$enable_dependency_tracking" != xno; then
2990 AMDEP_TRUE=
2991 AMDEP_FALSE='#'
2992 else
2993 AMDEP_TRUE='#'
2994 AMDEP_FALSE=
2995 fi
2996
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 if test -z "$ac_cv_prog_CC"; then
3043 ac_ct_CC=$CC
3044 # Extract the first word of "gcc", so it can be a program name with args.
3045 set dummy gcc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_CC="gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072 if test -n "$ac_ct_CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074 $as_echo "$ac_ct_CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080 if test "x$ac_ct_CC" = x; then
3081 CC=""
3082 else
3083 case $cross_compiling:$ac_tool_warned in
3084 yes:)
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned=yes ;;
3088 esac
3089 CC=$ac_ct_CC
3090 fi
3091 else
3092 CC="$ac_cv_prog_CC"
3093 fi
3094
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_CC="${ac_tool_prefix}cc"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118 done
3119 done
3120 IFS=$as_save_IFS
3121
3122 fi
3123 fi
3124 CC=$ac_cv_prog_CC
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 fi
3132
3133
3134 fi
3135 fi
3136 if test -z "$CC"; then
3137 # Extract the first word of "cc", so it can be a program name with args.
3138 set dummy cc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 ac_prog_rejected=no
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156 ac_prog_rejected=yes
3157 continue
3158 fi
3159 ac_cv_prog_CC="cc"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163 done
3164 done
3165 IFS=$as_save_IFS
3166
3167 if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy $ac_cv_prog_CC
3170 shift
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3175 shift
3176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3177 fi
3178 fi
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog in cl.exe
3195 do
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 CC=$ac_cv_prog_CC
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 test -n "$CC" && break
3234 done
3235 fi
3236 if test -z "$CC"; then
3237 ac_ct_CC=$CC
3238 for ac_prog in cl.exe
3239 do
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy $ac_prog; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 if test -n "$ac_ct_CC"; then
3248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_ac_ct_CC="$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261 done
3262 done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268 if test -n "$ac_ct_CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3270 $as_echo "$ac_ct_CC" >&6; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 test -n "$ac_ct_CC" && break
3278 done
3279
3280 if test "x$ac_ct_CC" = x; then
3281 CC=""
3282 else
3283 case $cross_compiling:$ac_tool_warned in
3284 yes:)
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287 ac_tool_warned=yes ;;
3288 esac
3289 CC=$ac_ct_CC
3290 fi
3291 fi
3292
3293 fi
3294
3295
3296 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $? "no acceptable C compiler found in \$PATH
3299 See \`config.log' for more details" "$LINENO" 5; }
3300
3301 # Provide some information about the compiler.
3302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3303 set X $ac_compile
3304 ac_compiler=$2
3305 for ac_option in --version -v -V -qversion; do
3306 { { ac_try="$ac_compiler $ac_option >&5"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3314 ac_status=$?
3315 if test -s conftest.err; then
3316 sed '10a\
3317 ... rest of stderr output deleted ...
3318 10q' conftest.err >conftest.er1
3319 cat conftest.er1 >&5
3320 fi
3321 rm -f conftest.er1 conftest.err
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }
3324 done
3325
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328
3329 int
3330 main ()
3331 {
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 ac_clean_files_save=$ac_clean_files
3338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3339 # Try to create an executable without -o first, disregard a.out.
3340 # It will help us diagnose broken compilers, and finding out an intuition
3341 # of exeext.
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343 $as_echo_n "checking whether the C compiler works... " >&6; }
3344 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3345
3346 # The possible output files:
3347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3348
3349 ac_rmfiles=
3350 for ac_file in $ac_files
3351 do
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3355 esac
3356 done
3357 rm -f $ac_rmfiles
3358
3359 if { { ac_try="$ac_link_default"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_link_default") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3373 # so that the user can short-circuit this test for compilers unknown to
3374 # Autoconf.
3375 for ac_file in $ac_files ''
3376 do
3377 test -f "$ac_file" || continue
3378 case $ac_file in
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3380 ;;
3381 [ab].out )
3382 # We found the default executable, but exeext='' is most
3383 # certainly right.
3384 break;;
3385 *.* )
3386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3387 then :; else
3388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3389 fi
3390 # We set ac_cv_exeext here because the later test for it is not
3391 # safe: cross compilers may not add the suffix if given an `-o'
3392 # argument, so we may need to know it at that point already.
3393 # Even if this section looks crufty: it has the advantage of
3394 # actually working.
3395 break;;
3396 * )
3397 break;;
3398 esac
3399 done
3400 test "$ac_cv_exeext" = no && ac_cv_exeext=
3401
3402 else
3403 ac_file=''
3404 fi
3405 if test -z "$ac_file"; then :
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error 77 "C compiler cannot create executables
3414 See \`config.log' for more details" "$LINENO" 5; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 $as_echo "yes" >&6; }
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420 $as_echo_n "checking for C compiler default output file name... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3422 $as_echo "$ac_file" >&6; }
3423 ac_exeext=$ac_cv_exeext
3424
3425 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3426 ac_clean_files=$ac_clean_files_save
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3428 $as_echo_n "checking for suffix of executables... " >&6; }
3429 if { { ac_try="$ac_link"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3441 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3442 # work properly (i.e., refer to `conftest.exe'), while it won't with
3443 # `rm'.
3444 for ac_file in conftest.exe conftest conftest.*; do
3445 test -f "$ac_file" || continue
3446 case $ac_file in
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 break;;
3450 * ) break;;
3451 esac
3452 done
3453 else
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details" "$LINENO" 5; }
3458 fi
3459 rm -f conftest conftest$ac_cv_exeext
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3461 $as_echo "$ac_cv_exeext" >&6; }
3462
3463 rm -f conftest.$ac_ext
3464 EXEEXT=$ac_cv_exeext
3465 ac_exeext=$EXEEXT
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468 #include <stdio.h>
3469 int
3470 main ()
3471 {
3472 FILE *f = fopen ("conftest.out", "w");
3473 return ferror (f) || fclose (f) != 0;
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 ac_clean_files="$ac_clean_files conftest.out"
3480 # Check that the compiler produces executables we can run. If not, either
3481 # the compiler is broken, or we cross compile.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3483 $as_echo_n "checking whether we are cross compiling... " >&6; }
3484 if test "$cross_compiling" != yes; then
3485 { { ac_try="$ac_link"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_link") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496 if { ac_try='./conftest$ac_cv_exeext'
3497 { { case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_try") 2>&5
3504 ac_status=$?
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; }; then
3507 cross_compiling=no
3508 else
3509 if test "$cross_compiling" = maybe; then
3510 cross_compiling=yes
3511 else
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 as_fn_error $? "cannot run C compiled programs.
3515 If you meant to cross compile, use \`--host'.
3516 See \`config.log' for more details" "$LINENO" 5; }
3517 fi
3518 fi
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3521 $as_echo "$cross_compiling" >&6; }
3522
3523 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3524 ac_clean_files=$ac_clean_files_save
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3526 $as_echo_n "checking for suffix of object files... " >&6; }
3527 if ${ac_cv_objext+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532
3533 int
3534 main ()
3535 {
3536
3537 ;
3538 return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.o conftest.obj
3542 if { { ac_try="$ac_compile"
3543 case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546 esac
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compile") 2>&5
3550 ac_status=$?
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; then :
3553 for ac_file in conftest.o conftest.obj conftest.*; do
3554 test -f "$ac_file" || continue;
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3558 break;;
3559 esac
3560 done
3561 else
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "cannot compute suffix of object files: cannot compile
3568 See \`config.log' for more details" "$LINENO" 5; }
3569 fi
3570 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3573 $as_echo "$ac_cv_objext" >&6; }
3574 OBJEXT=$ac_cv_objext
3575 ac_objext=$OBJEXT
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3577 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3578 if ${ac_cv_c_compiler_gnu+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583
3584 int
3585 main ()
3586 {
3587 #ifndef __GNUC__
3588 choke me
3589 #endif
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_compiler_gnu=yes
3597 else
3598 ac_compiler_gnu=no
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3602
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3605 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3606 if test $ac_compiler_gnu = yes; then
3607 GCC=yes
3608 else
3609 GCC=
3610 fi
3611 ac_test_CFLAGS=${CFLAGS+set}
3612 ac_save_CFLAGS=$CFLAGS
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3614 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3615 if ${ac_cv_prog_cc_g+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 ac_save_c_werror_flag=$ac_c_werror_flag
3619 ac_c_werror_flag=yes
3620 ac_cv_prog_cc_g=no
3621 CFLAGS="-g"
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624
3625 int
3626 main ()
3627 {
3628
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_g=yes
3635 else
3636 CFLAGS=""
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639
3640 int
3641 main ()
3642 {
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649
3650 else
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3652 CFLAGS="-g"
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655
3656 int
3657 main ()
3658 {
3659
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 if ac_fn_c_try_compile "$LINENO"; then :
3665 ac_cv_prog_cc_g=yes
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3675 $as_echo "$ac_cv_prog_cc_g" >&6; }
3676 if test "$ac_test_CFLAGS" = set; then
3677 CFLAGS=$ac_save_CFLAGS
3678 elif test $ac_cv_prog_cc_g = yes; then
3679 if test "$GCC" = yes; then
3680 CFLAGS="-g -O2"
3681 else
3682 CFLAGS="-g"
3683 fi
3684 else
3685 if test "$GCC" = yes; then
3686 CFLAGS="-O2"
3687 else
3688 CFLAGS=
3689 fi
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3692 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3693 if ${ac_cv_prog_cc_c89+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 ac_cv_prog_cc_c89=no
3697 ac_save_CC=$CC
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700 #include <stdarg.h>
3701 #include <stdio.h>
3702 struct stat;
3703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3704 struct buf { int x; };
3705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3706 static char *e (p, i)
3707 char **p;
3708 int i;
3709 {
3710 return p[i];
3711 }
3712 static char *f (char * (*g) (char **, int), char **p, ...)
3713 {
3714 char *s;
3715 va_list v;
3716 va_start (v,p);
3717 s = g (p, va_arg (v,int));
3718 va_end (v);
3719 return s;
3720 }
3721
3722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3723 function prototypes and stuff, but not '\xHH' hex character constants.
3724 These don't provoke an error unfortunately, instead are silently treated
3725 as 'x'. The following induces an error, until -std is added to get
3726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3727 array size at least. It's necessary to write '\x00'==0 to get something
3728 that's true only with -std. */
3729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3730
3731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3732 inside strings and character constants. */
3733 #define FOO(x) 'x'
3734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3735
3736 int test (int i, double x);
3737 struct s1 {int (*f) (int a);};
3738 struct s2 {int (*f) (double a);};
3739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3740 int argc;
3741 char **argv;
3742 int
3743 main ()
3744 {
3745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752 do
3753 CC="$ac_save_CC $ac_arg"
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_c89=$ac_arg
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext
3758 test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 done
3760 rm -f conftest.$ac_ext
3761 CC=$ac_save_CC
3762
3763 fi
3764 # AC_CACHE_VAL
3765 case "x$ac_cv_prog_cc_c89" in
3766 x)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768 $as_echo "none needed" >&6; } ;;
3769 xno)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771 $as_echo "unsupported" >&6; } ;;
3772 *)
3773 CC="$CC $ac_cv_prog_cc_c89"
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3776 esac
3777 if test "x$ac_cv_prog_cc_c89" != xno; then :
3778
3779 fi
3780
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787 depcc="$CC" am_compiler_list=
3788
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3790 $as_echo_n "checking dependency style of $depcc... " >&6; }
3791 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795 # We make a subdir and do the tests there. Otherwise we can end up
3796 # making bogus files that we don't know about and never remove. For
3797 # instance it was reported that on HP-UX the gcc test will end up
3798 # making a dummy file named 'D' -- because '-MD' means "put the output
3799 # in D".
3800 rm -rf conftest.dir
3801 mkdir conftest.dir
3802 # Copy depcomp to subdir because otherwise we won't find it if we're
3803 # using a relative directory.
3804 cp "$am_depcomp" conftest.dir
3805 cd conftest.dir
3806 # We will build objects and dependencies in a subdirectory because
3807 # it helps to detect inapplicable dependency modes. For instance
3808 # both Tru64's cc and ICC support -MD to output dependencies as a
3809 # side effect of compilation, but ICC will put the dependencies in
3810 # the current directory while Tru64 will put them in the object
3811 # directory.
3812 mkdir sub
3813
3814 am_cv_CC_dependencies_compiler_type=none
3815 if test "$am_compiler_list" = ""; then
3816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817 fi
3818 am__universal=false
3819 case " $depcc " in #(
3820 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3821 esac
3822
3823 for depmode in $am_compiler_list; do
3824 # Setup a source with many dependencies, because some compilers
3825 # like to wrap large dependency lists on column 80 (with \), and
3826 # we should not choose a depcomp mode which is confused by this.
3827 #
3828 # We need to recreate these files for each test, as the compiler may
3829 # overwrite some of them when testing with obscure command lines.
3830 # This happens at least with the AIX C compiler.
3831 : > sub/conftest.c
3832 for i in 1 2 3 4 5 6; do
3833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3835 # Solaris 10 /bin/sh.
3836 echo '/* dummy */' > sub/conftst$i.h
3837 done
3838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3839
3840 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3841 # mode. It turns out that the SunPro C++ compiler does not properly
3842 # handle '-M -o', and we need to detect this. Also, some Intel
3843 # versions had trouble with output in subdirs.
3844 am__obj=sub/conftest.${OBJEXT-o}
3845 am__minus_obj="-o $am__obj"
3846 case $depmode in
3847 gcc)
3848 # This depmode causes a compiler race in universal mode.
3849 test "$am__universal" = false || continue
3850 ;;
3851 nosideeffect)
3852 # After this tag, mechanisms are not by side-effect, so they'll
3853 # only be used when explicitly requested.
3854 if test "x$enable_dependency_tracking" = xyes; then
3855 continue
3856 else
3857 break
3858 fi
3859 ;;
3860 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3861 # This compiler won't grok '-c -o', but also, the minuso test has
3862 # not run yet. These depmodes are late enough in the game, and
3863 # so weak that their functioning should not be impacted.
3864 am__obj=conftest.${OBJEXT-o}
3865 am__minus_obj=
3866 ;;
3867 none) break ;;
3868 esac
3869 if depmode=$depmode \
3870 source=sub/conftest.c object=$am__obj \
3871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3873 >/dev/null 2>conftest.err &&
3874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3878 # icc doesn't choke on unknown options, it will just issue warnings
3879 # or remarks (even with -Werror). So we grep stderr for any message
3880 # that says an option was ignored or not supported.
3881 # When given -MP, icc 7.0 and 7.1 complain thusly:
3882 # icc: Command line warning: ignoring option '-M'; no argument required
3883 # The diagnosis changed in icc 8.0:
3884 # icc: Command line remark: option '-MP' not supported
3885 if (grep 'ignoring option' conftest.err ||
3886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3887 am_cv_CC_dependencies_compiler_type=$depmode
3888 break
3889 fi
3890 fi
3891 done
3892
3893 cd ..
3894 rm -rf conftest.dir
3895 else
3896 am_cv_CC_dependencies_compiler_type=none
3897 fi
3898
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3901 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903
3904 if
3905 test "x$enable_dependency_tracking" != xno \
3906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3907 am__fastdepCC_TRUE=
3908 am__fastdepCC_FALSE='#'
3909 else
3910 am__fastdepCC_TRUE='#'
3911 am__fastdepCC_FALSE=
3912 fi
3913
3914
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3921 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3922 # On Suns, sometimes $CPP names a directory.
3923 if test -n "$CPP" && test -d "$CPP"; then
3924 CPP=
3925 fi
3926 if test -z "$CPP"; then
3927 if ${ac_cv_prog_CPP+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 # Double quotes because CPP needs to be expanded
3931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3932 do
3933 ac_preproc_ok=false
3934 for ac_c_preproc_warn_flag in '' yes
3935 do
3936 # Use a header file that comes with gcc, so configuring glibc
3937 # with a fresh cross-compiler works.
3938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939 # <limits.h> exists even on freestanding compilers.
3940 # On the NeXT, cc -E runs the code through the compiler's parser,
3941 # not just through cpp. "Syntax error" is here to catch this case.
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944 #ifdef __STDC__
3945 # include <limits.h>
3946 #else
3947 # include <assert.h>
3948 #endif
3949 Syntax error
3950 _ACEOF
3951 if ac_fn_c_try_cpp "$LINENO"; then :
3952
3953 else
3954 # Broken: fails on valid input.
3955 continue
3956 fi
3957 rm -f conftest.err conftest.i conftest.$ac_ext
3958
3959 # OK, works on sane cases. Now check whether nonexistent headers
3960 # can be detected and how.
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <ac_nonexistent.h>
3964 _ACEOF
3965 if ac_fn_c_try_cpp "$LINENO"; then :
3966 # Broken: success on invalid input.
3967 continue
3968 else
3969 # Passes both tests.
3970 ac_preproc_ok=:
3971 break
3972 fi
3973 rm -f conftest.err conftest.i conftest.$ac_ext
3974
3975 done
3976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977 rm -f conftest.i conftest.err conftest.$ac_ext
3978 if $ac_preproc_ok; then :
3979 break
3980 fi
3981
3982 done
3983 ac_cv_prog_CPP=$CPP
3984
3985 fi
3986 CPP=$ac_cv_prog_CPP
3987 else
3988 ac_cv_prog_CPP=$CPP
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3991 $as_echo "$CPP" >&6; }
3992 ac_preproc_ok=false
3993 for ac_c_preproc_warn_flag in '' yes
3994 do
3995 # Use a header file that comes with gcc, so configuring glibc
3996 # with a fresh cross-compiler works.
3997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 # <limits.h> exists even on freestanding compilers.
3999 # On the NeXT, cc -E runs the code through the compiler's parser,
4000 # not just through cpp. "Syntax error" is here to catch this case.
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003 #ifdef __STDC__
4004 # include <limits.h>
4005 #else
4006 # include <assert.h>
4007 #endif
4008 Syntax error
4009 _ACEOF
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011
4012 else
4013 # Broken: fails on valid input.
4014 continue
4015 fi
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018 # OK, works on sane cases. Now check whether nonexistent headers
4019 # can be detected and how.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022 #include <ac_nonexistent.h>
4023 _ACEOF
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4025 # Broken: success on invalid input.
4026 continue
4027 else
4028 # Passes both tests.
4029 ac_preproc_ok=:
4030 break
4031 fi
4032 rm -f conftest.err conftest.i conftest.$ac_ext
4033
4034 done
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.i conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then :
4038
4039 else
4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4043 See \`config.log' for more details" "$LINENO" 5; }
4044 fi
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052 # Extract the first word of "tar", so it can be a program name with args.
4053 set dummy tar; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if ${ac_cv_path_TAR+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 case $TAR in
4060 [\\/]* | ?:[\\/]*)
4061 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4062 ;;
4063 *)
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075 done
4076 done
4077 IFS=$as_save_IFS
4078
4079 ;;
4080 esac
4081 fi
4082 TAR=$ac_cv_path_TAR
4083 if test -n "$TAR"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4085 $as_echo "$TAR" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092 # Extract the first word of "patch", so it can be a program name with args.
4093 set dummy patch; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if ${ac_cv_path_PATCH+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 case $PATCH in
4100 [\\/]* | ?:[\\/]*)
4101 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
4102 ;;
4103 *)
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 ;;
4120 esac
4121 fi
4122 PATCH=$ac_cv_path_PATCH
4123 if test -n "$PATCH"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
4125 $as_echo "$PATCH" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131
4132
4133 if test "$INSTALL" = "setup/install-sh -c" -o "$INSTALL" = "./setup-install-sh -c"; then :
4134 INSTALL="$COCCI_SRCDIR/$INSTALL"
4135
4136
4137 fi
4138
4139 if test "$MKDIR_P" = "setup/install-sh -c -d" -o "$INSTALL" = "./setup-install-sh -c -d"; then :
4140 MKDIR_P="$COCCI_SRCDIR/$MKDIR_P"
4141
4142
4143 fi
4144
4145 # Extract the first word of "patchelf", so it can be a program name with args.
4146 set dummy patchelf; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if ${ac_cv_path_PATCHELF+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 case $PATCHELF in
4153 [\\/]* | ?:[\\/]*)
4154 ac_cv_path_PATCHELF="$PATCHELF" # Let the user override the test with a path.
4155 ;;
4156 *)
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_path_PATCHELF="$as_dir/$ac_word$ac_exec_ext"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168 done
4169 done
4170 IFS=$as_save_IFS
4171
4172 ;;
4173 esac
4174 fi
4175 PATCHELF=$ac_cv_path_PATCHELF
4176 if test -n "$PATCHELF"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCHELF" >&5
4178 $as_echo "$PATCHELF" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 fi
4183
4184
4185
4186
4187
4188 # Check whether --with-pkg-config was given.
4189 if test "${with_pkg_config+set}" = set; then :
4190 withval=$with_pkg_config;
4191 fi
4192
4193 with_PKG_CONFIG="$with_pkg_config"
4194
4195 if test -n "$with_PKG_CONFIG" -a "x$with_PKG_CONFIG" != xno -a "x$with_PKG_CONFIG" != xyes; then :
4196 PKG_CONFIG="$with_PKG_CONFIG"
4197
4198
4199 else
4200 PKG_CONFIG="pkg-config"
4201
4202
4203 fi
4204
4205 if test "x$with_PKG_CONFIG" = xno; then :
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config is disabled explicitly" >&5
4207 $as_echo "$as_me: pkg-config is disabled explicitly" >&6;}
4208 PKG_CONFIG=no
4209
4210
4211 else
4212 if test "x$PKG_CONFIG" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then :
4213
4214
4215
4216
4217
4218
4219
4220 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4223 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 case $PKG_CONFIG in
4230 [\\/]* | ?:[\\/]*)
4231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4232 ;;
4233 *)
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 ;;
4250 esac
4251 fi
4252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4253 if test -n "$PKG_CONFIG"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4255 $as_echo "$PKG_CONFIG" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4259 fi
4260
4261
4262 fi
4263 if test -z "$ac_cv_path_PKG_CONFIG"; then
4264 ac_pt_PKG_CONFIG=$PKG_CONFIG
4265 # Extract the first word of "pkg-config", so it can be a program name with args.
4266 set dummy pkg-config; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 case $ac_pt_PKG_CONFIG in
4273 [\\/]* | ?:[\\/]*)
4274 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4275 ;;
4276 *)
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4290 IFS=$as_save_IFS
4291
4292 ;;
4293 esac
4294 fi
4295 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4296 if test -n "$ac_pt_PKG_CONFIG"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4298 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304 if test "x$ac_pt_PKG_CONFIG" = x; then
4305 PKG_CONFIG=""
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308 yes:)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311 ac_tool_warned=yes ;;
4312 esac
4313 PKG_CONFIG=$ac_pt_PKG_CONFIG
4314 fi
4315 else
4316 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4317 fi
4318
4319 fi
4320 if test -n "$PKG_CONFIG"; then
4321 _pkg_min_version=0.9.0
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4323 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4324 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326 $as_echo "yes" >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4330 PKG_CONFIG=""
4331 fi
4332 fi
4333
4334 elif test "x$PKG_CONFIG" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then :
4335 # checking for ocamllex
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
4338 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_path_OCAMLLEX+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 case $OCAMLLEX in
4345 [\\/]* | ?:[\\/]*)
4346 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
4347 ;;
4348 *)
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 ;;
4365 esac
4366 fi
4367 OCAMLLEX=$ac_cv_path_OCAMLLEX
4368 if test -n "$OCAMLLEX"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
4370 $as_echo "$OCAMLLEX" >&6; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4374 fi
4375
4376
4377 fi
4378 if test -z "$ac_cv_path_OCAMLLEX"; then
4379 ac_pt_OCAMLLEX=$OCAMLLEX
4380 # Extract the first word of "ocamllex", so it can be a program name with args.
4381 set dummy ocamllex; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 case $ac_pt_OCAMLLEX in
4388 [\\/]* | ?:[\\/]*)
4389 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
4390 ;;
4391 *)
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403 done
4404 done
4405 IFS=$as_save_IFS
4406
4407 ;;
4408 esac
4409 fi
4410 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
4411 if test -n "$ac_pt_OCAMLLEX"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
4413 $as_echo "$ac_pt_OCAMLLEX" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418
4419 if test "x$ac_pt_OCAMLLEX" = x; then
4420 OCAMLLEX="no"
4421 else
4422 case $cross_compiling:$ac_tool_warned in
4423 yes:)
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426 ac_tool_warned=yes ;;
4427 esac
4428 OCAMLLEX=$ac_pt_OCAMLLEX
4429 fi
4430 else
4431 OCAMLLEX="$ac_cv_path_OCAMLLEX"
4432 fi
4433
4434 if test "$OCAMLLEX" != "no"; then
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 case $OCAMLLEXDOTOPT in
4444 [\\/]* | ?:[\\/]*)
4445 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
4446 ;;
4447 *)
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 ;;
4464 esac
4465 fi
4466 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
4467 if test -n "$OCAMLLEXDOTOPT"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
4469 $as_echo "$OCAMLLEXDOTOPT" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 fi
4477 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
4478 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
4479 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
4480 set dummy ocamllex.opt; ac_word=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 case $ac_pt_OCAMLLEXDOTOPT in
4487 [\\/]* | ?:[\\/]*)
4488 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
4489 ;;
4490 *)
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4501 fi
4502 done
4503 done
4504 IFS=$as_save_IFS
4505
4506 ;;
4507 esac
4508 fi
4509 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
4510 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
4512 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
4513 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517
4518 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
4519 OCAMLLEXDOTOPT="no"
4520 else
4521 case $cross_compiling:$ac_tool_warned in
4522 yes:)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525 ac_tool_warned=yes ;;
4526 esac
4527 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
4528 fi
4529 else
4530 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
4531 fi
4532
4533 if test "$OCAMLLEXDOTOPT" != "no"; then
4534 OCAMLLEX=$OCAMLLEXDOTOPT
4535 fi
4536 fi
4537
4538
4539
4540 elif test "x$PKG_CONFIG" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then :
4541 if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_path_OCAMLYACC+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 case $OCAMLYACC in
4550 [\\/]* | ?:[\\/]*)
4551 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
4552 ;;
4553 *)
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 ;;
4570 esac
4571 fi
4572 OCAMLYACC=$ac_cv_path_OCAMLYACC
4573 if test -n "$OCAMLYACC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
4575 $as_echo "$OCAMLYACC" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581
4582 fi
4583 if test -z "$ac_cv_path_OCAMLYACC"; then
4584 ac_pt_OCAMLYACC=$OCAMLYACC
4585 # Extract the first word of "ocamlyacc", so it can be a program name with args.
4586 set dummy ocamlyacc; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 case $ac_pt_OCAMLYACC in
4593 [\\/]* | ?:[\\/]*)
4594 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
4595 ;;
4596 *)
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608 done
4609 done
4610 IFS=$as_save_IFS
4611
4612 ;;
4613 esac
4614 fi
4615 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
4616 if test -n "$ac_pt_OCAMLYACC"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
4618 $as_echo "$ac_pt_OCAMLYACC" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4622 fi
4623
4624 if test "x$ac_pt_OCAMLYACC" = x; then
4625 OCAMLYACC="no"
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628 yes:)
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631 ac_tool_warned=yes ;;
4632 esac
4633 OCAMLYACC=$ac_pt_OCAMLYACC
4634 fi
4635 else
4636 OCAMLYACC="$ac_cv_path_OCAMLYACC"
4637 fi
4638
4639
4640
4641
4642 else
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}[$]PKG_CONFIG", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}$PKG_CONFIG; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 case $PKG_CONFIG in
4652 [\\/]* | ?:[\\/]*)
4653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4654 ;;
4655 *)
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 ;;
4672 esac
4673 fi
4674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4675 if test -n "$PKG_CONFIG"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4677 $as_echo "$PKG_CONFIG" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684 fi
4685 if test -z "$ac_cv_path_PKG_CONFIG"; then
4686 ac_pt_PKG_CONFIG=$PKG_CONFIG
4687 # Extract the first word of "[$]PKG_CONFIG", so it can be a program name with args.
4688 set dummy $PKG_CONFIG; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 case $ac_pt_PKG_CONFIG in
4695 [\\/]* | ?:[\\/]*)
4696 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4697 ;;
4698 *)
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710 done
4711 done
4712 IFS=$as_save_IFS
4713
4714 ;;
4715 esac
4716 fi
4717 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4718 if test -n "$ac_pt_PKG_CONFIG"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4720 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726 if test "x$ac_pt_PKG_CONFIG" = x; then
4727 PKG_CONFIG=""
4728 else
4729 case $cross_compiling:$ac_tool_warned in
4730 yes:)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4734 esac
4735 PKG_CONFIG=$ac_pt_PKG_CONFIG
4736 fi
4737 else
4738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4739 fi
4740
4741
4742 fi
4743
4744
4745 fi
4746
4747 if test -z "$PKG_CONFIG" -o "x$PKG_CONFIG" = xno; then :
4748 if test "x$with_PKG_CONFIG" = xyes; then :
4749 as_fn_error $? "--with=pkg-config is given explicitly but not found" "$LINENO" 5
4750
4751 fi
4752
4753 if test -n ""; then :
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config not found. Trying substitute ." >&5
4755 $as_echo "$as_me: pkg-config not found. Trying substitute ." >&6;}
4756 PKG_CONFIG=""
4757
4758 if test "xpkg-config" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then :
4759
4760
4761
4762
4763
4764
4765
4766 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 case $PKG_CONFIG in
4776 [\\/]* | ?:[\\/]*)
4777 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4778 ;;
4779 *)
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 ;;
4796 esac
4797 fi
4798 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4799 if test -n "$PKG_CONFIG"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4801 $as_echo "$PKG_CONFIG" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806
4807
4808 fi
4809 if test -z "$ac_cv_path_PKG_CONFIG"; then
4810 ac_pt_PKG_CONFIG=$PKG_CONFIG
4811 # Extract the first word of "pkg-config", so it can be a program name with args.
4812 set dummy pkg-config; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 case $ac_pt_PKG_CONFIG in
4819 [\\/]* | ?:[\\/]*)
4820 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4821 ;;
4822 *)
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 ;;
4839 esac
4840 fi
4841 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4842 if test -n "$ac_pt_PKG_CONFIG"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4844 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850 if test "x$ac_pt_PKG_CONFIG" = x; then
4851 PKG_CONFIG=""
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 PKG_CONFIG=$ac_pt_PKG_CONFIG
4860 fi
4861 else
4862 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4863 fi
4864
4865 fi
4866 if test -n "$PKG_CONFIG"; then
4867 _pkg_min_version=0.9.0
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4869 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4870 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4872 $as_echo "yes" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 PKG_CONFIG=""
4877 fi
4878 fi
4879
4880 elif test "xpkg-config" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then :
4881 # checking for ocamllex
4882 if test -n "$ac_tool_prefix"; then
4883 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
4884 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_path_OCAMLLEX+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 case $OCAMLLEX in
4891 [\\/]* | ?:[\\/]*)
4892 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
4893 ;;
4894 *)
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910 ;;
4911 esac
4912 fi
4913 OCAMLLEX=$ac_cv_path_OCAMLLEX
4914 if test -n "$OCAMLLEX"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
4916 $as_echo "$OCAMLLEX" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922
4923 fi
4924 if test -z "$ac_cv_path_OCAMLLEX"; then
4925 ac_pt_OCAMLLEX=$OCAMLLEX
4926 # Extract the first word of "ocamllex", so it can be a program name with args.
4927 set dummy ocamllex; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 case $ac_pt_OCAMLLEX in
4934 [\\/]* | ?:[\\/]*)
4935 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
4936 ;;
4937 *)
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949 done
4950 done
4951 IFS=$as_save_IFS
4952
4953 ;;
4954 esac
4955 fi
4956 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
4957 if test -n "$ac_pt_OCAMLLEX"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
4959 $as_echo "$ac_pt_OCAMLLEX" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965 if test "x$ac_pt_OCAMLLEX" = x; then
4966 OCAMLLEX="no"
4967 else
4968 case $cross_compiling:$ac_tool_warned in
4969 yes:)
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972 ac_tool_warned=yes ;;
4973 esac
4974 OCAMLLEX=$ac_pt_OCAMLLEX
4975 fi
4976 else
4977 OCAMLLEX="$ac_cv_path_OCAMLLEX"
4978 fi
4979
4980 if test "$OCAMLLEX" != "no"; then
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 case $OCAMLLEXDOTOPT in
4990 [\\/]* | ?:[\\/]*)
4991 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
4992 ;;
4993 *)
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5004 fi
5005 done
5006 done
5007 IFS=$as_save_IFS
5008
5009 ;;
5010 esac
5011 fi
5012 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
5013 if test -n "$OCAMLLEXDOTOPT"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
5015 $as_echo "$OCAMLLEXDOTOPT" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5019 fi
5020
5021
5022 fi
5023 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
5024 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
5025 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
5026 set dummy ocamllex.opt; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 case $ac_pt_OCAMLLEXDOTOPT in
5033 [\\/]* | ?:[\\/]*)
5034 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
5035 ;;
5036 *)
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052 ;;
5053 esac
5054 fi
5055 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
5056 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
5058 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061 $as_echo "no" >&6; }
5062 fi
5063
5064 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
5065 OCAMLLEXDOTOPT="no"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068 yes:)
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071 ac_tool_warned=yes ;;
5072 esac
5073 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
5074 fi
5075 else
5076 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
5077 fi
5078
5079 if test "$OCAMLLEXDOTOPT" != "no"; then
5080 OCAMLLEX=$OCAMLLEXDOTOPT
5081 fi
5082 fi
5083
5084
5085
5086 elif test "xpkg-config" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then :
5087 if test -n "$ac_tool_prefix"; then
5088 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
5089 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_path_OCAMLYACC+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 case $OCAMLYACC in
5096 [\\/]* | ?:[\\/]*)
5097 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
5098 ;;
5099 *)
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5110 fi
5111 done
5112 done
5113 IFS=$as_save_IFS
5114
5115 ;;
5116 esac
5117 fi
5118 OCAMLYACC=$ac_cv_path_OCAMLYACC
5119 if test -n "$OCAMLYACC"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
5121 $as_echo "$OCAMLYACC" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5125 fi
5126
5127
5128 fi
5129 if test -z "$ac_cv_path_OCAMLYACC"; then
5130 ac_pt_OCAMLYACC=$OCAMLYACC
5131 # Extract the first word of "ocamlyacc", so it can be a program name with args.
5132 set dummy ocamlyacc; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 case $ac_pt_OCAMLYACC in
5139 [\\/]* | ?:[\\/]*)
5140 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
5141 ;;
5142 *)
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 ;;
5159 esac
5160 fi
5161 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
5162 if test -n "$ac_pt_OCAMLYACC"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
5164 $as_echo "$ac_pt_OCAMLYACC" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169
5170 if test "x$ac_pt_OCAMLYACC" = x; then
5171 OCAMLYACC="no"
5172 else
5173 case $cross_compiling:$ac_tool_warned in
5174 yes:)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5177 ac_tool_warned=yes ;;
5178 esac
5179 OCAMLYACC=$ac_pt_OCAMLYACC
5180 fi
5181 else
5182 OCAMLYACC="$ac_cv_path_OCAMLYACC"
5183 fi
5184
5185
5186
5187
5188 else
5189 if test -n "$ac_tool_prefix"; then
5190 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5191 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 case $PKG_CONFIG in
5198 [\\/]* | ?:[\\/]*)
5199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5200 ;;
5201 *)
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217 ;;
5218 esac
5219 fi
5220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5221 if test -n "$PKG_CONFIG"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5223 $as_echo "$PKG_CONFIG" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229
5230 fi
5231 if test -z "$ac_cv_path_PKG_CONFIG"; then
5232 ac_pt_PKG_CONFIG=$PKG_CONFIG
5233 # Extract the first word of "pkg-config", so it can be a program name with args.
5234 set dummy pkg-config; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 case $ac_pt_PKG_CONFIG in
5241 [\\/]* | ?:[\\/]*)
5242 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5243 ;;
5244 *)
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256 done
5257 done
5258 IFS=$as_save_IFS
5259
5260 ;;
5261 esac
5262 fi
5263 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5264 if test -n "$ac_pt_PKG_CONFIG"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5266 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5270 fi
5271
5272 if test "x$ac_pt_PKG_CONFIG" = x; then
5273 PKG_CONFIG=""
5274 else
5275 case $cross_compiling:$ac_tool_warned in
5276 yes:)
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279 ac_tool_warned=yes ;;
5280 esac
5281 PKG_CONFIG=$ac_pt_PKG_CONFIG
5282 fi
5283 else
5284 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5285 fi
5286
5287
5288 fi
5289
5290 SUBSTITUTED_PKG_CONFIG=yes
5291
5292
5293 fi
5294
5295 fi
5296
5297 if test -z "$PKG_CONFIG"; then :
5298 PKG_CONFIG=no
5299
5300 fi
5301
5302 if test "x$PKG_CONFIG" = xno; then :
5303 PKG_CONFIG_ORIG=pkg-config
5304
5305
5306 else
5307 PKG_CONFIG_ORIG=$PKG_CONFIG
5308
5309
5310 fi
5311
5312 PKG_CONFIG="$COCCI_SRCDIR/setup/fake-subst.sh $PKG_CONFIG_ORIG"
5313
5314
5315
5316 # checking for ocamlc
5317 if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args.
5319 set dummy ${ac_tool_prefix}ocamlc; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_path_OCAMLC+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 case $OCAMLC in
5326 [\\/]* | ?:[\\/]*)
5327 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
5328 ;;
5329 *)
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 ;;
5346 esac
5347 fi
5348 OCAMLC=$ac_cv_path_OCAMLC
5349 if test -n "$OCAMLC"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
5351 $as_echo "$OCAMLC" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356
5357
5358 fi
5359 if test -z "$ac_cv_path_OCAMLC"; then
5360 ac_pt_OCAMLC=$OCAMLC
5361 # Extract the first word of "ocamlc", so it can be a program name with args.
5362 set dummy ocamlc; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_path_ac_pt_OCAMLC+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 case $ac_pt_OCAMLC in
5369 [\\/]* | ?:[\\/]*)
5370 ac_cv_path_ac_pt_OCAMLC="$ac_pt_OCAMLC" # Let the user override the test with a path.
5371 ;;
5372 *)
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_path_ac_pt_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 ;;
5389 esac
5390 fi
5391 ac_pt_OCAMLC=$ac_cv_path_ac_pt_OCAMLC
5392 if test -n "$ac_pt_OCAMLC"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLC" >&5
5394 $as_echo "$ac_pt_OCAMLC" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400 if test "x$ac_pt_OCAMLC" = x; then
5401 OCAMLC="no"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404 yes:)
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407 ac_tool_warned=yes ;;
5408 esac
5409 OCAMLC=$ac_pt_OCAMLC
5410 fi
5411 else
5412 OCAMLC="$ac_cv_path_OCAMLC"
5413 fi
5414
5415
5416 if test "$OCAMLC" != "no"; then
5417 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'`
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5
5419 $as_echo "OCaml version is $OCAMLVERSION" >&6; }
5420 # If OCAMLLIB is set, use it
5421 if test "$OCAMLLIB" = ""; then
5422 OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4`
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5
5425 $as_echo "OCAMLLIB previously set; preserving it." >&6; }
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5
5428 $as_echo "OCaml library path is $OCAMLLIB" >&6; }
5429
5430
5431
5432
5433 # checking for ocamlopt
5434 if test -n "$ac_tool_prefix"; then
5435 # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args.
5436 set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_OCAMLOPT+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 case $OCAMLOPT in
5443 [\\/]* | ?:[\\/]*)
5444 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
5445 ;;
5446 *)
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458 done
5459 done
5460 IFS=$as_save_IFS
5461
5462 ;;
5463 esac
5464 fi
5465 OCAMLOPT=$ac_cv_path_OCAMLOPT
5466 if test -n "$OCAMLOPT"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
5468 $as_echo "$OCAMLOPT" >&6; }
5469 else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5472 fi
5473
5474
5475 fi
5476 if test -z "$ac_cv_path_OCAMLOPT"; then
5477 ac_pt_OCAMLOPT=$OCAMLOPT
5478 # Extract the first word of "ocamlopt", so it can be a program name with args.
5479 set dummy ocamlopt; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_path_ac_pt_OCAMLOPT+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 case $ac_pt_OCAMLOPT in
5486 [\\/]* | ?:[\\/]*)
5487 ac_cv_path_ac_pt_OCAMLOPT="$ac_pt_OCAMLOPT" # Let the user override the test with a path.
5488 ;;
5489 *)
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_path_ac_pt_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501 done
5502 done
5503 IFS=$as_save_IFS
5504
5505 ;;
5506 esac
5507 fi
5508 ac_pt_OCAMLOPT=$ac_cv_path_ac_pt_OCAMLOPT
5509 if test -n "$ac_pt_OCAMLOPT"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPT" >&5
5511 $as_echo "$ac_pt_OCAMLOPT" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517 if test "x$ac_pt_OCAMLOPT" = x; then
5518 OCAMLOPT="no"
5519 else
5520 case $cross_compiling:$ac_tool_warned in
5521 yes:)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5525 esac
5526 OCAMLOPT=$ac_pt_OCAMLOPT
5527 fi
5528 else
5529 OCAMLOPT="$ac_cv_path_OCAMLOPT"
5530 fi
5531
5532 OCAMLBEST=byte
5533 if test "$OCAMLOPT" = "no"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
5535 $as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
5536 else
5537 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5538 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5
5540 $as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; }
5541 OCAMLOPT=no
5542 else
5543 OCAMLBEST=opt
5544 fi
5545 fi
5546
5547
5548
5549 # checking for ocamlc.opt
5550 if test -n "$ac_tool_prefix"; then
5551 # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args.
5552 set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_path_OCAMLCDOTOPT+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 case $OCAMLCDOTOPT in
5559 [\\/]* | ?:[\\/]*)
5560 ac_cv_path_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test with a path.
5561 ;;
5562 *)
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_path_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 ;;
5579 esac
5580 fi
5581 OCAMLCDOTOPT=$ac_cv_path_OCAMLCDOTOPT
5582 if test -n "$OCAMLCDOTOPT"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
5584 $as_echo "$OCAMLCDOTOPT" >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5588 fi
5589
5590
5591 fi
5592 if test -z "$ac_cv_path_OCAMLCDOTOPT"; then
5593 ac_pt_OCAMLCDOTOPT=$OCAMLCDOTOPT
5594 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
5595 set dummy ocamlc.opt; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_path_ac_pt_OCAMLCDOTOPT+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 case $ac_pt_OCAMLCDOTOPT in
5602 [\\/]* | ?:[\\/]*)
5603 ac_cv_path_ac_pt_OCAMLCDOTOPT="$ac_pt_OCAMLCDOTOPT" # Let the user override the test with a path.
5604 ;;
5605 *)
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_path_ac_pt_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 ;;
5622 esac
5623 fi
5624 ac_pt_OCAMLCDOTOPT=$ac_cv_path_ac_pt_OCAMLCDOTOPT
5625 if test -n "$ac_pt_OCAMLCDOTOPT"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLCDOTOPT" >&5
5627 $as_echo "$ac_pt_OCAMLCDOTOPT" >&6; }
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5631 fi
5632
5633 if test "x$ac_pt_OCAMLCDOTOPT" = x; then
5634 OCAMLCDOTOPT="no"
5635 else
5636 case $cross_compiling:$ac_tool_warned in
5637 yes:)
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640 ac_tool_warned=yes ;;
5641 esac
5642 OCAMLCDOTOPT=$ac_pt_OCAMLCDOTOPT
5643 fi
5644 else
5645 OCAMLCDOTOPT="$ac_cv_path_OCAMLCDOTOPT"
5646 fi
5647
5648 if test "$OCAMLCDOTOPT" != "no"; then
5649 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5650 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5
5652 $as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; }
5653 else
5654 OCAMLC=$OCAMLCDOTOPT
5655 fi
5656 fi
5657
5658 # checking for ocamlopt.opt
5659 if test "$OCAMLOPT" != "no" ; then
5660 if test -n "$ac_tool_prefix"; then
5661 # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args.
5662 set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_path_OCAMLOPTDOTOPT+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 case $OCAMLOPTDOTOPT in
5669 [\\/]* | ?:[\\/]*)
5670 ac_cv_path_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test with a path.
5671 ;;
5672 *)
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_path_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684 done
5685 done
5686 IFS=$as_save_IFS
5687
5688 ;;
5689 esac
5690 fi
5691 OCAMLOPTDOTOPT=$ac_cv_path_OCAMLOPTDOTOPT
5692 if test -n "$OCAMLOPTDOTOPT"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
5694 $as_echo "$OCAMLOPTDOTOPT" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 fi
5699
5700
5701 fi
5702 if test -z "$ac_cv_path_OCAMLOPTDOTOPT"; then
5703 ac_pt_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT
5704 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
5705 set dummy ocamlopt.opt; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_path_ac_pt_OCAMLOPTDOTOPT+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 case $ac_pt_OCAMLOPTDOTOPT in
5712 [\\/]* | ?:[\\/]*)
5713 ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$ac_pt_OCAMLOPTDOTOPT" # Let the user override the test with a path.
5714 ;;
5715 *)
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 ;;
5732 esac
5733 fi
5734 ac_pt_OCAMLOPTDOTOPT=$ac_cv_path_ac_pt_OCAMLOPTDOTOPT
5735 if test -n "$ac_pt_OCAMLOPTDOTOPT"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPTDOTOPT" >&5
5737 $as_echo "$ac_pt_OCAMLOPTDOTOPT" >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743 if test "x$ac_pt_OCAMLOPTDOTOPT" = x; then
5744 OCAMLOPTDOTOPT="no"
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747 yes:)
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750 ac_tool_warned=yes ;;
5751 esac
5752 OCAMLOPTDOTOPT=$ac_pt_OCAMLOPTDOTOPT
5753 fi
5754 else
5755 OCAMLOPTDOTOPT="$ac_cv_path_OCAMLOPTDOTOPT"
5756 fi
5757
5758 if test "$OCAMLOPTDOTOPT" != "no"; then
5759 TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5760 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5
5762 $as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; }
5763 else
5764 OCAMLOPT=$OCAMLOPTDOTOPT
5765 fi
5766 fi
5767 fi
5768
5769
5770 fi
5771
5772
5773
5774 # checking for ocaml toplevel
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}ocaml", so it can be a program name with args.
5777 set dummy ${ac_tool_prefix}ocaml; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_path_OCAML+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 case $OCAML in
5784 [\\/]* | ?:[\\/]*)
5785 ac_cv_path_OCAML="$OCAML" # Let the user override the test with a path.
5786 ;;
5787 *)
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_path_OCAML="$as_dir/$ac_word$ac_exec_ext"
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 ;;
5804 esac
5805 fi
5806 OCAML=$ac_cv_path_OCAML
5807 if test -n "$OCAML"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5
5809 $as_echo "$OCAML" >&6; }
5810 else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5813 fi
5814
5815
5816 fi
5817 if test -z "$ac_cv_path_OCAML"; then
5818 ac_pt_OCAML=$OCAML
5819 # Extract the first word of "ocaml", so it can be a program name with args.
5820 set dummy ocaml; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_path_ac_pt_OCAML+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 case $ac_pt_OCAML in
5827 [\\/]* | ?:[\\/]*)
5828 ac_cv_path_ac_pt_OCAML="$ac_pt_OCAML" # Let the user override the test with a path.
5829 ;;
5830 *)
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_path_ac_pt_OCAML="$as_dir/$ac_word$ac_exec_ext"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846 ;;
5847 esac
5848 fi
5849 ac_pt_OCAML=$ac_cv_path_ac_pt_OCAML
5850 if test -n "$ac_pt_OCAML"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAML" >&5
5852 $as_echo "$ac_pt_OCAML" >&6; }
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858 if test "x$ac_pt_OCAML" = x; then
5859 OCAML="no"
5860 else
5861 case $cross_compiling:$ac_tool_warned in
5862 yes:)
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865 ac_tool_warned=yes ;;
5866 esac
5867 OCAML=$ac_pt_OCAML
5868 fi
5869 else
5870 OCAML="$ac_cv_path_OCAML"
5871 fi
5872
5873
5874 # checking for ocamldep
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}ocamldep; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if ${ac_cv_path_OCAMLDEP+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 case $OCAMLDEP in
5884 [\\/]* | ?:[\\/]*)
5885 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
5886 ;;
5887 *)
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903 ;;
5904 esac
5905 fi
5906 OCAMLDEP=$ac_cv_path_OCAMLDEP
5907 if test -n "$OCAMLDEP"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
5909 $as_echo "$OCAMLDEP" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5913 fi
5914
5915
5916 fi
5917 if test -z "$ac_cv_path_OCAMLDEP"; then
5918 ac_pt_OCAMLDEP=$OCAMLDEP
5919 # Extract the first word of "ocamldep", so it can be a program name with args.
5920 set dummy ocamldep; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_path_ac_pt_OCAMLDEP+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 case $ac_pt_OCAMLDEP in
5927 [\\/]* | ?:[\\/]*)
5928 ac_cv_path_ac_pt_OCAMLDEP="$ac_pt_OCAMLDEP" # Let the user override the test with a path.
5929 ;;
5930 *)
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938 ac_cv_path_ac_pt_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 ;;
5947 esac
5948 fi
5949 ac_pt_OCAMLDEP=$ac_cv_path_ac_pt_OCAMLDEP
5950 if test -n "$ac_pt_OCAMLDEP"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDEP" >&5
5952 $as_echo "$ac_pt_OCAMLDEP" >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5956 fi
5957
5958 if test "x$ac_pt_OCAMLDEP" = x; then
5959 OCAMLDEP="no"
5960 else
5961 case $cross_compiling:$ac_tool_warned in
5962 yes:)
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965 ac_tool_warned=yes ;;
5966 esac
5967 OCAMLDEP=$ac_pt_OCAMLDEP
5968 fi
5969 else
5970 OCAMLDEP="$ac_cv_path_OCAMLDEP"
5971 fi
5972
5973
5974 # checking for ocamlmktop
5975 if test -n "$ac_tool_prefix"; then
5976 # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args.
5977 set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if ${ac_cv_path_OCAMLMKTOP+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 case $OCAMLMKTOP in
5984 [\\/]* | ?:[\\/]*)
5985 ac_cv_path_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test with a path.
5986 ;;
5987 *)
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_path_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999 done
6000 done
6001 IFS=$as_save_IFS
6002
6003 ;;
6004 esac
6005 fi
6006 OCAMLMKTOP=$ac_cv_path_OCAMLMKTOP
6007 if test -n "$OCAMLMKTOP"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
6009 $as_echo "$OCAMLMKTOP" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6013 fi
6014
6015
6016 fi
6017 if test -z "$ac_cv_path_OCAMLMKTOP"; then
6018 ac_pt_OCAMLMKTOP=$OCAMLMKTOP
6019 # Extract the first word of "ocamlmktop", so it can be a program name with args.
6020 set dummy ocamlmktop; ac_word=$2
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022 $as_echo_n "checking for $ac_word... " >&6; }
6023 if ${ac_cv_path_ac_pt_OCAMLMKTOP+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 case $ac_pt_OCAMLMKTOP in
6027 [\\/]* | ?:[\\/]*)
6028 ac_cv_path_ac_pt_OCAMLMKTOP="$ac_pt_OCAMLMKTOP" # Let the user override the test with a path.
6029 ;;
6030 *)
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6033 do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_path_ac_pt_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042 done
6043 done
6044 IFS=$as_save_IFS
6045
6046 ;;
6047 esac
6048 fi
6049 ac_pt_OCAMLMKTOP=$ac_cv_path_ac_pt_OCAMLMKTOP
6050 if test -n "$ac_pt_OCAMLMKTOP"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKTOP" >&5
6052 $as_echo "$ac_pt_OCAMLMKTOP" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058 if test "x$ac_pt_OCAMLMKTOP" = x; then
6059 OCAMLMKTOP="no"
6060 else
6061 case $cross_compiling:$ac_tool_warned in
6062 yes:)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6066 esac
6067 OCAMLMKTOP=$ac_pt_OCAMLMKTOP
6068 fi
6069 else
6070 OCAMLMKTOP="$ac_cv_path_OCAMLMKTOP"
6071 fi
6072
6073
6074 # checking for ocamlmklib
6075 if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args.
6077 set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if ${ac_cv_path_OCAMLMKLIB+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 case $OCAMLMKLIB in
6084 [\\/]* | ?:[\\/]*)
6085 ac_cv_path_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test with a path.
6086 ;;
6087 *)
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_path_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 ;;
6104 esac
6105 fi
6106 OCAMLMKLIB=$ac_cv_path_OCAMLMKLIB
6107 if test -n "$OCAMLMKLIB"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
6109 $as_echo "$OCAMLMKLIB" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115
6116 fi
6117 if test -z "$ac_cv_path_OCAMLMKLIB"; then
6118 ac_pt_OCAMLMKLIB=$OCAMLMKLIB
6119 # Extract the first word of "ocamlmklib", so it can be a program name with args.
6120 set dummy ocamlmklib; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if ${ac_cv_path_ac_pt_OCAMLMKLIB+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 case $ac_pt_OCAMLMKLIB in
6127 [\\/]* | ?:[\\/]*)
6128 ac_cv_path_ac_pt_OCAMLMKLIB="$ac_pt_OCAMLMKLIB" # Let the user override the test with a path.
6129 ;;
6130 *)
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_path_ac_pt_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142 done
6143 done
6144 IFS=$as_save_IFS
6145
6146 ;;
6147 esac
6148 fi
6149 ac_pt_OCAMLMKLIB=$ac_cv_path_ac_pt_OCAMLMKLIB
6150 if test -n "$ac_pt_OCAMLMKLIB"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKLIB" >&5
6152 $as_echo "$ac_pt_OCAMLMKLIB" >&6; }
6153 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158 if test "x$ac_pt_OCAMLMKLIB" = x; then
6159 OCAMLMKLIB="no"
6160 else
6161 case $cross_compiling:$ac_tool_warned in
6162 yes:)
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165 ac_tool_warned=yes ;;
6166 esac
6167 OCAMLMKLIB=$ac_pt_OCAMLMKLIB
6168 fi
6169 else
6170 OCAMLMKLIB="$ac_cv_path_OCAMLMKLIB"
6171 fi
6172
6173
6174 # checking for ocamldoc
6175 if test -n "$ac_tool_prefix"; then
6176 # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args.
6177 set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_path_OCAMLDOC+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 case $OCAMLDOC in
6184 [\\/]* | ?:[\\/]*)
6185 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
6186 ;;
6187 *)
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 ;;
6204 esac
6205 fi
6206 OCAMLDOC=$ac_cv_path_OCAMLDOC
6207 if test -n "$OCAMLDOC"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
6209 $as_echo "$OCAMLDOC" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215
6216 fi
6217 if test -z "$ac_cv_path_OCAMLDOC"; then
6218 ac_pt_OCAMLDOC=$OCAMLDOC
6219 # Extract the first word of "ocamldoc", so it can be a program name with args.
6220 set dummy ocamldoc; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_path_ac_pt_OCAMLDOC+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 case $ac_pt_OCAMLDOC in
6227 [\\/]* | ?:[\\/]*)
6228 ac_cv_path_ac_pt_OCAMLDOC="$ac_pt_OCAMLDOC" # Let the user override the test with a path.
6229 ;;
6230 *)
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238 ac_cv_path_ac_pt_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 ;;
6247 esac
6248 fi
6249 ac_pt_OCAMLDOC=$ac_cv_path_ac_pt_OCAMLDOC
6250 if test -n "$ac_pt_OCAMLDOC"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDOC" >&5
6252 $as_echo "$ac_pt_OCAMLDOC" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258 if test "x$ac_pt_OCAMLDOC" = x; then
6259 OCAMLDOC="no"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6266 esac
6267 OCAMLDOC=$ac_pt_OCAMLDOC
6268 fi
6269 else
6270 OCAMLDOC="$ac_cv_path_OCAMLDOC"
6271 fi
6272
6273
6274 # checking for ocamlbuild
6275 if test -n "$ac_tool_prefix"; then
6276 # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args.
6277 set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if ${ac_cv_path_OCAMLBUILD+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 case $OCAMLBUILD in
6284 [\\/]* | ?:[\\/]*)
6285 ac_cv_path_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test with a path.
6286 ;;
6287 *)
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_path_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 ;;
6304 esac
6305 fi
6306 OCAMLBUILD=$ac_cv_path_OCAMLBUILD
6307 if test -n "$OCAMLBUILD"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
6309 $as_echo "$OCAMLBUILD" >&6; }
6310 else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6313 fi
6314
6315
6316 fi
6317 if test -z "$ac_cv_path_OCAMLBUILD"; then
6318 ac_pt_OCAMLBUILD=$OCAMLBUILD
6319 # Extract the first word of "ocamlbuild", so it can be a program name with args.
6320 set dummy ocamlbuild; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_path_ac_pt_OCAMLBUILD+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 case $ac_pt_OCAMLBUILD in
6327 [\\/]* | ?:[\\/]*)
6328 ac_cv_path_ac_pt_OCAMLBUILD="$ac_pt_OCAMLBUILD" # Let the user override the test with a path.
6329 ;;
6330 *)
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_path_ac_pt_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346 ;;
6347 esac
6348 fi
6349 ac_pt_OCAMLBUILD=$ac_cv_path_ac_pt_OCAMLBUILD
6350 if test -n "$ac_pt_OCAMLBUILD"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLBUILD" >&5
6352 $as_echo "$ac_pt_OCAMLBUILD" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358 if test "x$ac_pt_OCAMLBUILD" = x; then
6359 OCAMLBUILD="no"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362 yes:)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365 ac_tool_warned=yes ;;
6366 esac
6367 OCAMLBUILD=$ac_pt_OCAMLBUILD
6368 fi
6369 else
6370 OCAMLBUILD="$ac_cv_path_OCAMLBUILD"
6371 fi
6372
6373
6374 { versioncheck=; unset versioncheck;}
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.10" >&5
6376 $as_echo_n "checking that the OCaml version is at least 3.10... " >&6; }
6377 as_arg_v1=$OCAMLVERSION
6378 as_arg_v2=3.10
6379 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
6380 case $? in #(
6381 1) :
6382 versioncheck=no ;; #(
6383 0) :
6384 versioncheck=yes ;; #(
6385 2) :
6386 versioncheck=yes ;; #(
6387 *) :
6388 ;;
6389 esac
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5
6391 $as_echo "$versioncheck" >&6; }
6392 OCAMLATLEAST310=$versioncheck
6393
6394
6395 { versioncheck=; unset versioncheck;}
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.11" >&5
6397 $as_echo_n "checking that the OCaml version is at least 3.11... " >&6; }
6398 as_arg_v1=$OCAMLVERSION
6399 as_arg_v2=3.11
6400 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
6401 case $? in #(
6402 1) :
6403 versioncheck=no ;; #(
6404 0) :
6405 versioncheck=yes ;; #(
6406 2) :
6407 versioncheck=yes ;; #(
6408 *) :
6409 ;;
6410 esac
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5
6412 $as_echo "$versioncheck" >&6; }
6413 OCAMLATLEAST311=$versioncheck
6414
6415
6416 OCAMLCORIG="$OCAMLC"
6417
6418
6419 if test "x$OCAMLC" = xno -o "x$OCAMLDEP" = xno -o "x$OCAMLDOC" = xno -o "x$OCAMLMKLIB" = xno; then :
6420 as_fn_error $? "You must install the OCaml compiler" "$LINENO" 5
6421
6422 fi
6423 if test "x$OCAMLATLEAST310" = xno; then :
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: a more recent OCaml installation may be required" >&5
6425 $as_echo "$as_me: a more recent OCaml installation may be required" >&6;}
6426 fi
6427
6428
6429 # checking for camlp4
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}camlp4", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}camlp4; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_path_CAMLP4+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 case $CAMLP4 in
6439 [\\/]* | ?:[\\/]*)
6440 ac_cv_path_CAMLP4="$CAMLP4" # Let the user override the test with a path.
6441 ;;
6442 *)
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_path_CAMLP4="$as_dir/$ac_word$ac_exec_ext"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458 ;;
6459 esac
6460 fi
6461 CAMLP4=$ac_cv_path_CAMLP4
6462 if test -n "$CAMLP4"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4" >&5
6464 $as_echo "$CAMLP4" >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_path_CAMLP4"; then
6473 ac_pt_CAMLP4=$CAMLP4
6474 # Extract the first word of "camlp4", so it can be a program name with args.
6475 set dummy camlp4; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_path_ac_pt_CAMLP4+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 case $ac_pt_CAMLP4 in
6482 [\\/]* | ?:[\\/]*)
6483 ac_cv_path_ac_pt_CAMLP4="$ac_pt_CAMLP4" # Let the user override the test with a path.
6484 ;;
6485 *)
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_path_ac_pt_CAMLP4="$as_dir/$ac_word$ac_exec_ext"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 ;;
6502 esac
6503 fi
6504 ac_pt_CAMLP4=$ac_cv_path_ac_pt_CAMLP4
6505 if test -n "$ac_pt_CAMLP4"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4" >&5
6507 $as_echo "$ac_pt_CAMLP4" >&6; }
6508 else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513 if test "x$ac_pt_CAMLP4" = x; then
6514 CAMLP4="no"
6515 else
6516 case $cross_compiling:$ac_tool_warned in
6517 yes:)
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520 ac_tool_warned=yes ;;
6521 esac
6522 CAMLP4=$ac_pt_CAMLP4
6523 fi
6524 else
6525 CAMLP4="$ac_cv_path_CAMLP4"
6526 fi
6527
6528 if test "$CAMLP4" != "no"; then
6529 TMPVERSION=`$CAMLP4 -v 2>&1| sed -n -e 's|.*version *\(.*\)$|\1|p'`
6530 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc" >&5
6532 $as_echo "versions differs from ocamlc" >&6; }
6533 CAMLP4=no
6534 fi
6535 fi
6536
6537
6538 # checking for companion tools
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}camlp4boot", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}camlp4boot; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_path_CAMLP4BOOT+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 case $CAMLP4BOOT in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_CAMLP4BOOT="$CAMLP4BOOT" # Let the user override the test with a path.
6550 ;;
6551 *)
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_path_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 ;;
6568 esac
6569 fi
6570 CAMLP4BOOT=$ac_cv_path_CAMLP4BOOT
6571 if test -n "$CAMLP4BOOT"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4BOOT" >&5
6573 $as_echo "$CAMLP4BOOT" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_path_CAMLP4BOOT"; then
6582 ac_pt_CAMLP4BOOT=$CAMLP4BOOT
6583 # Extract the first word of "camlp4boot", so it can be a program name with args.
6584 set dummy camlp4boot; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_path_ac_pt_CAMLP4BOOT+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 case $ac_pt_CAMLP4BOOT in
6591 [\\/]* | ?:[\\/]*)
6592 ac_cv_path_ac_pt_CAMLP4BOOT="$ac_pt_CAMLP4BOOT" # Let the user override the test with a path.
6593 ;;
6594 *)
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_path_ac_pt_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 ;;
6611 esac
6612 fi
6613 ac_pt_CAMLP4BOOT=$ac_cv_path_ac_pt_CAMLP4BOOT
6614 if test -n "$ac_pt_CAMLP4BOOT"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4BOOT" >&5
6616 $as_echo "$ac_pt_CAMLP4BOOT" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622 if test "x$ac_pt_CAMLP4BOOT" = x; then
6623 CAMLP4BOOT="no"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631 CAMLP4BOOT=$ac_pt_CAMLP4BOOT
6632 fi
6633 else
6634 CAMLP4BOOT="$ac_cv_path_CAMLP4BOOT"
6635 fi
6636
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}camlp4o", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}camlp4o; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_path_CAMLP4O+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 case $CAMLP4O in
6646 [\\/]* | ?:[\\/]*)
6647 ac_cv_path_CAMLP4O="$CAMLP4O" # Let the user override the test with a path.
6648 ;;
6649 *)
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_path_CAMLP4O="$as_dir/$ac_word$ac_exec_ext"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 ;;
6666 esac
6667 fi
6668 CAMLP4O=$ac_cv_path_CAMLP4O
6669 if test -n "$CAMLP4O"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4O" >&5
6671 $as_echo "$CAMLP4O" >&6; }
6672 else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677
6678 fi
6679 if test -z "$ac_cv_path_CAMLP4O"; then
6680 ac_pt_CAMLP4O=$CAMLP4O
6681 # Extract the first word of "camlp4o", so it can be a program name with args.
6682 set dummy camlp4o; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_path_ac_pt_CAMLP4O+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 case $ac_pt_CAMLP4O in
6689 [\\/]* | ?:[\\/]*)
6690 ac_cv_path_ac_pt_CAMLP4O="$ac_pt_CAMLP4O" # Let the user override the test with a path.
6691 ;;
6692 *)
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700 ac_cv_path_ac_pt_CAMLP4O="$as_dir/$ac_word$ac_exec_ext"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 ;;
6709 esac
6710 fi
6711 ac_pt_CAMLP4O=$ac_cv_path_ac_pt_CAMLP4O
6712 if test -n "$ac_pt_CAMLP4O"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4O" >&5
6714 $as_echo "$ac_pt_CAMLP4O" >&6; }
6715 else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6718 fi
6719
6720 if test "x$ac_pt_CAMLP4O" = x; then
6721 CAMLP4O="no"
6722 else
6723 case $cross_compiling:$ac_tool_warned in
6724 yes:)
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727 ac_tool_warned=yes ;;
6728 esac
6729 CAMLP4O=$ac_pt_CAMLP4O
6730 fi
6731 else
6732 CAMLP4O="$ac_cv_path_CAMLP4O"
6733 fi
6734
6735 if test -n "$ac_tool_prefix"; then
6736 # Extract the first word of "${ac_tool_prefix}camlp4of", so it can be a program name with args.
6737 set dummy ${ac_tool_prefix}camlp4of; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if ${ac_cv_path_CAMLP4OF+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 case $CAMLP4OF in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_CAMLP4OF="$CAMLP4OF" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755 ac_cv_path_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763 ;;
6764 esac
6765 fi
6766 CAMLP4OF=$ac_cv_path_CAMLP4OF
6767 if test -n "$CAMLP4OF"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OF" >&5
6769 $as_echo "$CAMLP4OF" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775
6776 fi
6777 if test -z "$ac_cv_path_CAMLP4OF"; then
6778 ac_pt_CAMLP4OF=$CAMLP4OF
6779 # Extract the first word of "camlp4of", so it can be a program name with args.
6780 set dummy camlp4of; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_path_ac_pt_CAMLP4OF+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 case $ac_pt_CAMLP4OF in
6787 [\\/]* | ?:[\\/]*)
6788 ac_cv_path_ac_pt_CAMLP4OF="$ac_pt_CAMLP4OF" # Let the user override the test with a path.
6789 ;;
6790 *)
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_path_ac_pt_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 ;;
6807 esac
6808 fi
6809 ac_pt_CAMLP4OF=$ac_cv_path_ac_pt_CAMLP4OF
6810 if test -n "$ac_pt_CAMLP4OF"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OF" >&5
6812 $as_echo "$ac_pt_CAMLP4OF" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817
6818 if test "x$ac_pt_CAMLP4OF" = x; then
6819 CAMLP4OF="no"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6826 esac
6827 CAMLP4OF=$ac_pt_CAMLP4OF
6828 fi
6829 else
6830 CAMLP4OF="$ac_cv_path_CAMLP4OF"
6831 fi
6832
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}camlp4oof", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}camlp4oof; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_path_CAMLP4OOF+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 case $CAMLP4OOF in
6842 [\\/]* | ?:[\\/]*)
6843 ac_cv_path_CAMLP4OOF="$CAMLP4OOF" # Let the user override the test with a path.
6844 ;;
6845 *)
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_path_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 ;;
6862 esac
6863 fi
6864 CAMLP4OOF=$ac_cv_path_CAMLP4OOF
6865 if test -n "$CAMLP4OOF"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OOF" >&5
6867 $as_echo "$CAMLP4OOF" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873
6874 fi
6875 if test -z "$ac_cv_path_CAMLP4OOF"; then
6876 ac_pt_CAMLP4OOF=$CAMLP4OOF
6877 # Extract the first word of "camlp4oof", so it can be a program name with args.
6878 set dummy camlp4oof; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_path_ac_pt_CAMLP4OOF+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 case $ac_pt_CAMLP4OOF in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_ac_pt_CAMLP4OOF="$ac_pt_CAMLP4OOF" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_path_ac_pt_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 ;;
6905 esac
6906 fi
6907 ac_pt_CAMLP4OOF=$ac_cv_path_ac_pt_CAMLP4OOF
6908 if test -n "$ac_pt_CAMLP4OOF"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OOF" >&5
6910 $as_echo "$ac_pt_CAMLP4OOF" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6915
6916 if test "x$ac_pt_CAMLP4OOF" = x; then
6917 CAMLP4OOF="no"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925 CAMLP4OOF=$ac_pt_CAMLP4OOF
6926 fi
6927 else
6928 CAMLP4OOF="$ac_cv_path_CAMLP4OOF"
6929 fi
6930
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}camlp4orf", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}camlp4orf; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_path_CAMLP4ORF+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 case $CAMLP4ORF in
6940 [\\/]* | ?:[\\/]*)
6941 ac_cv_path_CAMLP4ORF="$CAMLP4ORF" # Let the user override the test with a path.
6942 ;;
6943 *)
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6946 do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951 ac_cv_path_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955 done
6956 done
6957 IFS=$as_save_IFS
6958
6959 ;;
6960 esac
6961 fi
6962 CAMLP4ORF=$ac_cv_path_CAMLP4ORF
6963 if test -n "$CAMLP4ORF"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4ORF" >&5
6965 $as_echo "$CAMLP4ORF" >&6; }
6966 else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 $as_echo "no" >&6; }
6969 fi
6970
6971
6972 fi
6973 if test -z "$ac_cv_path_CAMLP4ORF"; then
6974 ac_pt_CAMLP4ORF=$CAMLP4ORF
6975 # Extract the first word of "camlp4orf", so it can be a program name with args.
6976 set dummy camlp4orf; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_path_ac_pt_CAMLP4ORF+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 case $ac_pt_CAMLP4ORF in
6983 [\\/]* | ?:[\\/]*)
6984 ac_cv_path_ac_pt_CAMLP4ORF="$ac_pt_CAMLP4ORF" # Let the user override the test with a path.
6985 ;;
6986 *)
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_path_ac_pt_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 ;;
7003 esac
7004 fi
7005 ac_pt_CAMLP4ORF=$ac_cv_path_ac_pt_CAMLP4ORF
7006 if test -n "$ac_pt_CAMLP4ORF"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4ORF" >&5
7008 $as_echo "$ac_pt_CAMLP4ORF" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013
7014 if test "x$ac_pt_CAMLP4ORF" = x; then
7015 CAMLP4ORF="no"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 CAMLP4ORF=$ac_pt_CAMLP4ORF
7024 fi
7025 else
7026 CAMLP4ORF="$ac_cv_path_CAMLP4ORF"
7027 fi
7028
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}camlp4prof", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}camlp4prof; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_path_CAMLP4PROF+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 case $CAMLP4PROF in
7038 [\\/]* | ?:[\\/]*)
7039 ac_cv_path_CAMLP4PROF="$CAMLP4PROF" # Let the user override the test with a path.
7040 ;;
7041 *)
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_path_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 ;;
7058 esac
7059 fi
7060 CAMLP4PROF=$ac_cv_path_CAMLP4PROF
7061 if test -n "$CAMLP4PROF"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4PROF" >&5
7063 $as_echo "$CAMLP4PROF" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069
7070 fi
7071 if test -z "$ac_cv_path_CAMLP4PROF"; then
7072 ac_pt_CAMLP4PROF=$CAMLP4PROF
7073 # Extract the first word of "camlp4prof", so it can be a program name with args.
7074 set dummy camlp4prof; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_path_ac_pt_CAMLP4PROF+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 case $ac_pt_CAMLP4PROF in
7081 [\\/]* | ?:[\\/]*)
7082 ac_cv_path_ac_pt_CAMLP4PROF="$ac_pt_CAMLP4PROF" # Let the user override the test with a path.
7083 ;;
7084 *)
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_path_ac_pt_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 ;;
7101 esac
7102 fi
7103 ac_pt_CAMLP4PROF=$ac_cv_path_ac_pt_CAMLP4PROF
7104 if test -n "$ac_pt_CAMLP4PROF"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4PROF" >&5
7106 $as_echo "$ac_pt_CAMLP4PROF" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112 if test "x$ac_pt_CAMLP4PROF" = x; then
7113 CAMLP4PROF="no"
7114 else
7115 case $cross_compiling:$ac_tool_warned in
7116 yes:)
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119 ac_tool_warned=yes ;;
7120 esac
7121 CAMLP4PROF=$ac_pt_CAMLP4PROF
7122 fi
7123 else
7124 CAMLP4PROF="$ac_cv_path_CAMLP4PROF"
7125 fi
7126
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}camlp4r", so it can be a program name with args.
7129 set dummy ${ac_tool_prefix}camlp4r; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_path_CAMLP4R+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 case $CAMLP4R in
7136 [\\/]* | ?:[\\/]*)
7137 ac_cv_path_CAMLP4R="$CAMLP4R" # Let the user override the test with a path.
7138 ;;
7139 *)
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_path_CAMLP4R="$as_dir/$ac_word$ac_exec_ext"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 ;;
7156 esac
7157 fi
7158 CAMLP4R=$ac_cv_path_CAMLP4R
7159 if test -n "$CAMLP4R"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4R" >&5
7161 $as_echo "$CAMLP4R" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_path_CAMLP4R"; then
7170 ac_pt_CAMLP4R=$CAMLP4R
7171 # Extract the first word of "camlp4r", so it can be a program name with args.
7172 set dummy camlp4r; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_path_ac_pt_CAMLP4R+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 case $ac_pt_CAMLP4R in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_ac_pt_CAMLP4R="$ac_pt_CAMLP4R" # Let the user override the test with a path.
7181 ;;
7182 *)
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_path_ac_pt_CAMLP4R="$as_dir/$ac_word$ac_exec_ext"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198 ;;
7199 esac
7200 fi
7201 ac_pt_CAMLP4R=$ac_cv_path_ac_pt_CAMLP4R
7202 if test -n "$ac_pt_CAMLP4R"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4R" >&5
7204 $as_echo "$ac_pt_CAMLP4R" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210 if test "x$ac_pt_CAMLP4R" = x; then
7211 CAMLP4R="no"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219 CAMLP4R=$ac_pt_CAMLP4R
7220 fi
7221 else
7222 CAMLP4R="$ac_cv_path_CAMLP4R"
7223 fi
7224
7225 if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}camlp4rf", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}camlp4rf; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_path_CAMLP4RF+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 case $CAMLP4RF in
7234 [\\/]* | ?:[\\/]*)
7235 ac_cv_path_CAMLP4RF="$CAMLP4RF" # Let the user override the test with a path.
7236 ;;
7237 *)
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_path_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 ;;
7254 esac
7255 fi
7256 CAMLP4RF=$ac_cv_path_CAMLP4RF
7257 if test -n "$CAMLP4RF"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4RF" >&5
7259 $as_echo "$CAMLP4RF" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265
7266 fi
7267 if test -z "$ac_cv_path_CAMLP4RF"; then
7268 ac_pt_CAMLP4RF=$CAMLP4RF
7269 # Extract the first word of "camlp4rf", so it can be a program name with args.
7270 set dummy camlp4rf; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_path_ac_pt_CAMLP4RF+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 case $ac_pt_CAMLP4RF in
7277 [\\/]* | ?:[\\/]*)
7278 ac_cv_path_ac_pt_CAMLP4RF="$ac_pt_CAMLP4RF" # Let the user override the test with a path.
7279 ;;
7280 *)
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_path_ac_pt_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 ;;
7297 esac
7298 fi
7299 ac_pt_CAMLP4RF=$ac_cv_path_ac_pt_CAMLP4RF
7300 if test -n "$ac_pt_CAMLP4RF"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4RF" >&5
7302 $as_echo "$ac_pt_CAMLP4RF" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308 if test "x$ac_pt_CAMLP4RF" = x; then
7309 CAMLP4RF="no"
7310 else
7311 case $cross_compiling:$ac_tool_warned in
7312 yes:)
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315 ac_tool_warned=yes ;;
7316 esac
7317 CAMLP4RF=$ac_pt_CAMLP4RF
7318 fi
7319 else
7320 CAMLP4RF="$ac_cv_path_CAMLP4RF"
7321 fi
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 # Check whether --with-ocamllex was given.
7335 if test "${with_ocamllex+set}" = set; then :
7336 withval=$with_ocamllex;
7337 fi
7338
7339 with_OCAMLLEX="$with_ocamllex"
7340
7341 if test -n "$with_OCAMLLEX" -a "x$with_OCAMLLEX" != xno -a "x$with_OCAMLLEX" != xyes; then :
7342 OCAMLLEX="$with_OCAMLLEX"
7343
7344
7345 else
7346 OCAMLLEX="ocamllex"
7347
7348
7349 fi
7350
7351 if test "x$with_OCAMLLEX" = xno; then :
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex is disabled explicitly" >&5
7353 $as_echo "$as_me: ocamllex is disabled explicitly" >&6;}
7354 OCAMLLEX=no
7355
7356
7357 else
7358 if test "x$OCAMLLEX" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then :
7359
7360
7361
7362
7363
7364
7365
7366 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 case $PKG_CONFIG in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7378 ;;
7379 *)
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395 ;;
7396 esac
7397 fi
7398 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7399 if test -n "$PKG_CONFIG"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7401 $as_echo "$PKG_CONFIG" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407
7408 fi
7409 if test -z "$ac_cv_path_PKG_CONFIG"; then
7410 ac_pt_PKG_CONFIG=$PKG_CONFIG
7411 # Extract the first word of "pkg-config", so it can be a program name with args.
7412 set dummy pkg-config; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 case $ac_pt_PKG_CONFIG in
7419 [\\/]* | ?:[\\/]*)
7420 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7421 ;;
7422 *)
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 ;;
7439 esac
7440 fi
7441 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7442 if test -n "$ac_pt_PKG_CONFIG"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7444 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449
7450 if test "x$ac_pt_PKG_CONFIG" = x; then
7451 PKG_CONFIG=""
7452 else
7453 case $cross_compiling:$ac_tool_warned in
7454 yes:)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457 ac_tool_warned=yes ;;
7458 esac
7459 PKG_CONFIG=$ac_pt_PKG_CONFIG
7460 fi
7461 else
7462 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7463 fi
7464
7465 fi
7466 if test -n "$PKG_CONFIG"; then
7467 _pkg_min_version=0.9.0
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7469 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7470 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7472 $as_echo "yes" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 PKG_CONFIG=""
7477 fi
7478 fi
7479
7480 elif test "x$OCAMLLEX" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then :
7481 # checking for ocamllex
7482 if test -n "$ac_tool_prefix"; then
7483 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
7484 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_path_OCAMLLEX+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 case $OCAMLLEX in
7491 [\\/]* | ?:[\\/]*)
7492 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 ;;
7511 esac
7512 fi
7513 OCAMLLEX=$ac_cv_path_OCAMLLEX
7514 if test -n "$OCAMLLEX"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7516 $as_echo "$OCAMLLEX" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522
7523 fi
7524 if test -z "$ac_cv_path_OCAMLLEX"; then
7525 ac_pt_OCAMLLEX=$OCAMLLEX
7526 # Extract the first word of "ocamllex", so it can be a program name with args.
7527 set dummy ocamllex; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 case $ac_pt_OCAMLLEX in
7534 [\\/]* | ?:[\\/]*)
7535 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7536 ;;
7537 *)
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549 done
7550 done
7551 IFS=$as_save_IFS
7552
7553 ;;
7554 esac
7555 fi
7556 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7557 if test -n "$ac_pt_OCAMLLEX"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7559 $as_echo "$ac_pt_OCAMLLEX" >&6; }
7560 else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565 if test "x$ac_pt_OCAMLLEX" = x; then
7566 OCAMLLEX="no"
7567 else
7568 case $cross_compiling:$ac_tool_warned in
7569 yes:)
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7572 ac_tool_warned=yes ;;
7573 esac
7574 OCAMLLEX=$ac_pt_OCAMLLEX
7575 fi
7576 else
7577 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7578 fi
7579
7580 if test "$OCAMLLEX" != "no"; then
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
7583 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 case $OCAMLLEXDOTOPT in
7590 [\\/]* | ?:[\\/]*)
7591 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
7592 ;;
7593 *)
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605 done
7606 done
7607 IFS=$as_save_IFS
7608
7609 ;;
7610 esac
7611 fi
7612 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
7613 if test -n "$OCAMLLEXDOTOPT"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
7615 $as_echo "$OCAMLLEXDOTOPT" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
7624 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
7625 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
7626 set dummy ocamllex.opt; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 case $ac_pt_OCAMLLEXDOTOPT in
7633 [\\/]* | ?:[\\/]*)
7634 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
7635 ;;
7636 *)
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652 ;;
7653 esac
7654 fi
7655 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
7656 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
7658 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
7659 else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663
7664 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
7665 OCAMLLEXDOTOPT="no"
7666 else
7667 case $cross_compiling:$ac_tool_warned in
7668 yes:)
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671 ac_tool_warned=yes ;;
7672 esac
7673 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
7674 fi
7675 else
7676 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
7677 fi
7678
7679 if test "$OCAMLLEXDOTOPT" != "no"; then
7680 OCAMLLEX=$OCAMLLEXDOTOPT
7681 fi
7682 fi
7683
7684
7685
7686 elif test "x$OCAMLLEX" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then :
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_path_OCAMLYACC+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 case $OCAMLYACC in
7696 [\\/]* | ?:[\\/]*)
7697 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
7698 ;;
7699 *)
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711 done
7712 done
7713 IFS=$as_save_IFS
7714
7715 ;;
7716 esac
7717 fi
7718 OCAMLYACC=$ac_cv_path_OCAMLYACC
7719 if test -n "$OCAMLYACC"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
7721 $as_echo "$OCAMLYACC" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7725 fi
7726
7727
7728 fi
7729 if test -z "$ac_cv_path_OCAMLYACC"; then
7730 ac_pt_OCAMLYACC=$OCAMLYACC
7731 # Extract the first word of "ocamlyacc", so it can be a program name with args.
7732 set dummy ocamlyacc; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 case $ac_pt_OCAMLYACC in
7739 [\\/]* | ?:[\\/]*)
7740 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
7741 ;;
7742 *)
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758 ;;
7759 esac
7760 fi
7761 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
7762 if test -n "$ac_pt_OCAMLYACC"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
7764 $as_echo "$ac_pt_OCAMLYACC" >&6; }
7765 else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7768 fi
7769
7770 if test "x$ac_pt_OCAMLYACC" = x; then
7771 OCAMLYACC="no"
7772 else
7773 case $cross_compiling:$ac_tool_warned in
7774 yes:)
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777 ac_tool_warned=yes ;;
7778 esac
7779 OCAMLYACC=$ac_pt_OCAMLYACC
7780 fi
7781 else
7782 OCAMLYACC="$ac_cv_path_OCAMLYACC"
7783 fi
7784
7785
7786
7787
7788 else
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}[$]OCAMLLEX", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}$OCAMLLEX; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_path_OCAMLLEX+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 case $OCAMLLEX in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7800 ;;
7801 *)
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 ;;
7818 esac
7819 fi
7820 OCAMLLEX=$ac_cv_path_OCAMLLEX
7821 if test -n "$OCAMLLEX"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7823 $as_echo "$OCAMLLEX" >&6; }
7824 else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827 fi
7828
7829
7830 fi
7831 if test -z "$ac_cv_path_OCAMLLEX"; then
7832 ac_pt_OCAMLLEX=$OCAMLLEX
7833 # Extract the first word of "[$]OCAMLLEX", so it can be a program name with args.
7834 set dummy $OCAMLLEX; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840 case $ac_pt_OCAMLLEX in
7841 [\\/]* | ?:[\\/]*)
7842 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7843 ;;
7844 *)
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856 done
7857 done
7858 IFS=$as_save_IFS
7859
7860 ;;
7861 esac
7862 fi
7863 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7864 if test -n "$ac_pt_OCAMLLEX"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7866 $as_echo "$ac_pt_OCAMLLEX" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871
7872 if test "x$ac_pt_OCAMLLEX" = x; then
7873 OCAMLLEX=""
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7880 esac
7881 OCAMLLEX=$ac_pt_OCAMLLEX
7882 fi
7883 else
7884 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7885 fi
7886
7887
7888 fi
7889
7890
7891 fi
7892
7893 if test -z "$OCAMLLEX" -o "x$OCAMLLEX" = xno; then :
7894 if test "x$with_OCAMLLEX" = xyes; then :
7895 as_fn_error $? "--with=ocamllex is given explicitly but not found" "$LINENO" 5
7896
7897 fi
7898
7899 if test -n ""; then :
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex not found. Trying substitute ." >&5
7901 $as_echo "$as_me: ocamllex not found. Trying substitute ." >&6;}
7902 OCAMLLEX=""
7903
7904 if test "xocamllex" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then :
7905
7906
7907
7908
7909
7910
7911
7912 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7913 if test -n "$ac_tool_prefix"; then
7914 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7915 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 case $PKG_CONFIG in
7922 [\\/]* | ?:[\\/]*)
7923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7924 ;;
7925 *)
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7928 do
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7936 fi
7937 done
7938 done
7939 IFS=$as_save_IFS
7940
7941 ;;
7942 esac
7943 fi
7944 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7945 if test -n "$PKG_CONFIG"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7947 $as_echo "$PKG_CONFIG" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953
7954 fi
7955 if test -z "$ac_cv_path_PKG_CONFIG"; then
7956 ac_pt_PKG_CONFIG=$PKG_CONFIG
7957 # Extract the first word of "pkg-config", so it can be a program name with args.
7958 set dummy pkg-config; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 case $ac_pt_PKG_CONFIG in
7965 [\\/]* | ?:[\\/]*)
7966 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7967 ;;
7968 *)
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7976 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 ;;
7985 esac
7986 fi
7987 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7988 if test -n "$ac_pt_PKG_CONFIG"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7990 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996 if test "x$ac_pt_PKG_CONFIG" = x; then
7997 PKG_CONFIG=""
7998 else
7999 case $cross_compiling:$ac_tool_warned in
8000 yes:)
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003 ac_tool_warned=yes ;;
8004 esac
8005 PKG_CONFIG=$ac_pt_PKG_CONFIG
8006 fi
8007 else
8008 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8009 fi
8010
8011 fi
8012 if test -n "$PKG_CONFIG"; then
8013 _pkg_min_version=0.9.0
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8015 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8016 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8018 $as_echo "yes" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 PKG_CONFIG=""
8023 fi
8024 fi
8025
8026 elif test "xocamllex" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then :
8027 # checking for ocamllex
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
8030 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_path_OCAMLLEX+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 case $OCAMLLEX in
8037 [\\/]* | ?:[\\/]*)
8038 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
8039 ;;
8040 *)
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052 done
8053 done
8054 IFS=$as_save_IFS
8055
8056 ;;
8057 esac
8058 fi
8059 OCAMLLEX=$ac_cv_path_OCAMLLEX
8060 if test -n "$OCAMLLEX"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
8062 $as_echo "$OCAMLLEX" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068
8069 fi
8070 if test -z "$ac_cv_path_OCAMLLEX"; then
8071 ac_pt_OCAMLLEX=$OCAMLLEX
8072 # Extract the first word of "ocamllex", so it can be a program name with args.
8073 set dummy ocamllex; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 case $ac_pt_OCAMLLEX in
8080 [\\/]* | ?:[\\/]*)
8081 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8082 ;;
8083 *)
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 ;;
8100 esac
8101 fi
8102 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8103 if test -n "$ac_pt_OCAMLLEX"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8105 $as_echo "$ac_pt_OCAMLLEX" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 fi
8110
8111 if test "x$ac_pt_OCAMLLEX" = x; then
8112 OCAMLLEX="no"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120 OCAMLLEX=$ac_pt_OCAMLLEX
8121 fi
8122 else
8123 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8124 fi
8125
8126 if test "$OCAMLLEX" != "no"; then
8127 if test -n "$ac_tool_prefix"; then
8128 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
8129 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 case $OCAMLLEXDOTOPT in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
8138 ;;
8139 *)
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155 ;;
8156 esac
8157 fi
8158 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
8159 if test -n "$OCAMLLEXDOTOPT"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
8161 $as_echo "$OCAMLLEXDOTOPT" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168 fi
8169 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
8170 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
8171 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
8172 set dummy ocamllex.opt; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 case $ac_pt_OCAMLLEXDOTOPT in
8179 [\\/]* | ?:[\\/]*)
8180 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
8181 ;;
8182 *)
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194 done
8195 done
8196 IFS=$as_save_IFS
8197
8198 ;;
8199 esac
8200 fi
8201 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
8202 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
8204 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8208 fi
8209
8210 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
8211 OCAMLLEXDOTOPT="no"
8212 else
8213 case $cross_compiling:$ac_tool_warned in
8214 yes:)
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8217 ac_tool_warned=yes ;;
8218 esac
8219 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
8220 fi
8221 else
8222 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
8223 fi
8224
8225 if test "$OCAMLLEXDOTOPT" != "no"; then
8226 OCAMLLEX=$OCAMLLEXDOTOPT
8227 fi
8228 fi
8229
8230
8231
8232 elif test "xocamllex" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then :
8233 if test -n "$ac_tool_prefix"; then
8234 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8235 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if ${ac_cv_path_OCAMLYACC+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 case $OCAMLYACC in
8242 [\\/]* | ?:[\\/]*)
8243 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8244 ;;
8245 *)
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8248 do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257 done
8258 done
8259 IFS=$as_save_IFS
8260
8261 ;;
8262 esac
8263 fi
8264 OCAMLYACC=$ac_cv_path_OCAMLYACC
8265 if test -n "$OCAMLYACC"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8267 $as_echo "$OCAMLYACC" >&6; }
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 fi
8272
8273
8274 fi
8275 if test -z "$ac_cv_path_OCAMLYACC"; then
8276 ac_pt_OCAMLYACC=$OCAMLYACC
8277 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8278 set dummy ocamlyacc; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 case $ac_pt_OCAMLYACC in
8285 [\\/]* | ?:[\\/]*)
8286 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8287 ;;
8288 *)
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300 done
8301 done
8302 IFS=$as_save_IFS
8303
8304 ;;
8305 esac
8306 fi
8307 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8308 if test -n "$ac_pt_OCAMLYACC"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8310 $as_echo "$ac_pt_OCAMLYACC" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316 if test "x$ac_pt_OCAMLYACC" = x; then
8317 OCAMLYACC="no"
8318 else
8319 case $cross_compiling:$ac_tool_warned in
8320 yes:)
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323 ac_tool_warned=yes ;;
8324 esac
8325 OCAMLYACC=$ac_pt_OCAMLYACC
8326 fi
8327 else
8328 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8329 fi
8330
8331
8332
8333
8334 else
8335 if test -n "$ac_tool_prefix"; then
8336 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
8337 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_path_OCAMLLEX+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 case $OCAMLLEX in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
8346 ;;
8347 *)
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359 done
8360 done
8361 IFS=$as_save_IFS
8362
8363 ;;
8364 esac
8365 fi
8366 OCAMLLEX=$ac_cv_path_OCAMLLEX
8367 if test -n "$OCAMLLEX"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
8369 $as_echo "$OCAMLLEX" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375
8376 fi
8377 if test -z "$ac_cv_path_OCAMLLEX"; then
8378 ac_pt_OCAMLLEX=$OCAMLLEX
8379 # Extract the first word of "ocamllex", so it can be a program name with args.
8380 set dummy ocamllex; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $ac_pt_OCAMLLEX in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8389 ;;
8390 *)
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8393 do
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8398 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402 done
8403 done
8404 IFS=$as_save_IFS
8405
8406 ;;
8407 esac
8408 fi
8409 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8410 if test -n "$ac_pt_OCAMLLEX"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8412 $as_echo "$ac_pt_OCAMLLEX" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 fi
8417
8418 if test "x$ac_pt_OCAMLLEX" = x; then
8419 OCAMLLEX=""
8420 else
8421 case $cross_compiling:$ac_tool_warned in
8422 yes:)
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425 ac_tool_warned=yes ;;
8426 esac
8427 OCAMLLEX=$ac_pt_OCAMLLEX
8428 fi
8429 else
8430 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8431 fi
8432
8433
8434 fi
8435
8436 SUBSTITUTED_OCAMLLEX=yes
8437
8438
8439 fi
8440
8441 fi
8442
8443 if test -z "$OCAMLLEX"; then :
8444 OCAMLLEX=no
8445
8446 fi
8447
8448
8449
8450 # Check whether --with-ocamlyacc was given.
8451 if test "${with_ocamlyacc+set}" = set; then :
8452 withval=$with_ocamlyacc;
8453 fi
8454
8455 with_OCAMLYACC="$with_ocamlyacc"
8456
8457 if test -n "$with_OCAMLYACC" -a "x$with_OCAMLYACC" != xno -a "x$with_OCAMLYACC" != xyes; then :
8458 OCAMLYACC="$with_OCAMLYACC"
8459
8460
8461 else
8462 OCAMLYACC="ocamlyacc"
8463
8464
8465 fi
8466
8467 if test "x$with_OCAMLYACC" = xno; then :
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc is disabled explicitly" >&5
8469 $as_echo "$as_me: ocamlyacc is disabled explicitly" >&6;}
8470 OCAMLYACC=no
8471
8472
8473 else
8474 if test "x$OCAMLYACC" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then :
8475
8476
8477
8478
8479
8480
8481
8482 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8483 if test -n "$ac_tool_prefix"; then
8484 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 case $PKG_CONFIG in
8492 [\\/]* | ?:[\\/]*)
8493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8494 ;;
8495 *)
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 ;;
8512 esac
8513 fi
8514 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8515 if test -n "$PKG_CONFIG"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8517 $as_echo "$PKG_CONFIG" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8521 fi
8522
8523
8524 fi
8525 if test -z "$ac_cv_path_PKG_CONFIG"; then
8526 ac_pt_PKG_CONFIG=$PKG_CONFIG
8527 # Extract the first word of "pkg-config", so it can be a program name with args.
8528 set dummy pkg-config; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 case $ac_pt_PKG_CONFIG in
8535 [\\/]* | ?:[\\/]*)
8536 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8537 ;;
8538 *)
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550 done
8551 done
8552 IFS=$as_save_IFS
8553
8554 ;;
8555 esac
8556 fi
8557 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8558 if test -n "$ac_pt_PKG_CONFIG"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8560 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8564 fi
8565
8566 if test "x$ac_pt_PKG_CONFIG" = x; then
8567 PKG_CONFIG=""
8568 else
8569 case $cross_compiling:$ac_tool_warned in
8570 yes:)
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575 PKG_CONFIG=$ac_pt_PKG_CONFIG
8576 fi
8577 else
8578 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8579 fi
8580
8581 fi
8582 if test -n "$PKG_CONFIG"; then
8583 _pkg_min_version=0.9.0
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8585 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8586 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8588 $as_echo "yes" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 PKG_CONFIG=""
8593 fi
8594 fi
8595
8596 elif test "x$OCAMLYACC" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then :
8597 # checking for ocamllex
8598 if test -n "$ac_tool_prefix"; then
8599 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
8600 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_path_OCAMLLEX+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 case $OCAMLLEX in
8607 [\\/]* | ?:[\\/]*)
8608 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
8609 ;;
8610 *)
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622 done
8623 done
8624 IFS=$as_save_IFS
8625
8626 ;;
8627 esac
8628 fi
8629 OCAMLLEX=$ac_cv_path_OCAMLLEX
8630 if test -n "$OCAMLLEX"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
8632 $as_echo "$OCAMLLEX" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8636 fi
8637
8638
8639 fi
8640 if test -z "$ac_cv_path_OCAMLLEX"; then
8641 ac_pt_OCAMLLEX=$OCAMLLEX
8642 # Extract the first word of "ocamllex", so it can be a program name with args.
8643 set dummy ocamllex; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 case $ac_pt_OCAMLLEX in
8650 [\\/]* | ?:[\\/]*)
8651 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8652 ;;
8653 *)
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669 ;;
8670 esac
8671 fi
8672 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8673 if test -n "$ac_pt_OCAMLLEX"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8675 $as_echo "$ac_pt_OCAMLLEX" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8679 fi
8680
8681 if test "x$ac_pt_OCAMLLEX" = x; then
8682 OCAMLLEX="no"
8683 else
8684 case $cross_compiling:$ac_tool_warned in
8685 yes:)
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688 ac_tool_warned=yes ;;
8689 esac
8690 OCAMLLEX=$ac_pt_OCAMLLEX
8691 fi
8692 else
8693 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8694 fi
8695
8696 if test "$OCAMLLEX" != "no"; then
8697 if test -n "$ac_tool_prefix"; then
8698 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
8699 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 case $OCAMLLEXDOTOPT in
8706 [\\/]* | ?:[\\/]*)
8707 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
8708 ;;
8709 *)
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8712 do
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8720 fi
8721 done
8722 done
8723 IFS=$as_save_IFS
8724
8725 ;;
8726 esac
8727 fi
8728 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
8729 if test -n "$OCAMLLEXDOTOPT"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
8731 $as_echo "$OCAMLLEXDOTOPT" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736
8737
8738 fi
8739 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
8740 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
8741 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
8742 set dummy ocamllex.opt; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 case $ac_pt_OCAMLLEXDOTOPT in
8749 [\\/]* | ?:[\\/]*)
8750 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
8751 ;;
8752 *)
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8755 do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764 done
8765 done
8766 IFS=$as_save_IFS
8767
8768 ;;
8769 esac
8770 fi
8771 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
8772 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
8774 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8778 fi
8779
8780 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
8781 OCAMLLEXDOTOPT="no"
8782 else
8783 case $cross_compiling:$ac_tool_warned in
8784 yes:)
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8787 ac_tool_warned=yes ;;
8788 esac
8789 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
8790 fi
8791 else
8792 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
8793 fi
8794
8795 if test "$OCAMLLEXDOTOPT" != "no"; then
8796 OCAMLLEX=$OCAMLLEXDOTOPT
8797 fi
8798 fi
8799
8800
8801
8802 elif test "x$OCAMLYACC" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then :
8803 if test -n "$ac_tool_prefix"; then
8804 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8805 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_path_OCAMLYACC+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 case $OCAMLYACC in
8812 [\\/]* | ?:[\\/]*)
8813 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8814 ;;
8815 *)
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 for as_dir in $PATH
8818 do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8823 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8826 fi
8827 done
8828 done
8829 IFS=$as_save_IFS
8830
8831 ;;
8832 esac
8833 fi
8834 OCAMLYACC=$ac_cv_path_OCAMLYACC
8835 if test -n "$OCAMLYACC"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8837 $as_echo "$OCAMLYACC" >&6; }
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8841 fi
8842
8843
8844 fi
8845 if test -z "$ac_cv_path_OCAMLYACC"; then
8846 ac_pt_OCAMLYACC=$OCAMLYACC
8847 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8848 set dummy ocamlyacc; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 case $ac_pt_OCAMLYACC in
8855 [\\/]* | ?:[\\/]*)
8856 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8857 ;;
8858 *)
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8861 do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870 done
8871 done
8872 IFS=$as_save_IFS
8873
8874 ;;
8875 esac
8876 fi
8877 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8878 if test -n "$ac_pt_OCAMLYACC"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8880 $as_echo "$ac_pt_OCAMLYACC" >&6; }
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8884 fi
8885
8886 if test "x$ac_pt_OCAMLYACC" = x; then
8887 OCAMLYACC="no"
8888 else
8889 case $cross_compiling:$ac_tool_warned in
8890 yes:)
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8893 ac_tool_warned=yes ;;
8894 esac
8895 OCAMLYACC=$ac_pt_OCAMLYACC
8896 fi
8897 else
8898 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8899 fi
8900
8901
8902
8903
8904 else
8905 if test -n "$ac_tool_prefix"; then
8906 # Extract the first word of "${ac_tool_prefix}[$]OCAMLYACC", so it can be a program name with args.
8907 set dummy ${ac_tool_prefix}$OCAMLYACC; ac_word=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_path_OCAMLYACC+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 case $OCAMLYACC in
8914 [\\/]* | ?:[\\/]*)
8915 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8916 ;;
8917 *)
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 for as_dir in $PATH
8920 do
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8925 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 break 2
8928 fi
8929 done
8930 done
8931 IFS=$as_save_IFS
8932
8933 ;;
8934 esac
8935 fi
8936 OCAMLYACC=$ac_cv_path_OCAMLYACC
8937 if test -n "$OCAMLYACC"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8939 $as_echo "$OCAMLYACC" >&6; }
8940 else
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8943 fi
8944
8945
8946 fi
8947 if test -z "$ac_cv_path_OCAMLYACC"; then
8948 ac_pt_OCAMLYACC=$OCAMLYACC
8949 # Extract the first word of "[$]OCAMLYACC", so it can be a program name with args.
8950 set dummy $OCAMLYACC; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 case $ac_pt_OCAMLYACC in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8959 ;;
8960 *)
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8963 do
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8968 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8971 fi
8972 done
8973 done
8974 IFS=$as_save_IFS
8975
8976 ;;
8977 esac
8978 fi
8979 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8980 if test -n "$ac_pt_OCAMLYACC"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8982 $as_echo "$ac_pt_OCAMLYACC" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 fi
8987
8988 if test "x$ac_pt_OCAMLYACC" = x; then
8989 OCAMLYACC=""
8990 else
8991 case $cross_compiling:$ac_tool_warned in
8992 yes:)
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8995 ac_tool_warned=yes ;;
8996 esac
8997 OCAMLYACC=$ac_pt_OCAMLYACC
8998 fi
8999 else
9000 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9001 fi
9002
9003
9004 fi
9005
9006
9007 fi
9008
9009 if test -z "$OCAMLYACC" -o "x$OCAMLYACC" = xno; then :
9010 if test "x$with_OCAMLYACC" = xyes; then :
9011 as_fn_error $? "--with=ocamlyacc is given explicitly but not found" "$LINENO" 5
9012
9013 fi
9014
9015 if test -n ""; then :
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc not found. Trying substitute ." >&5
9017 $as_echo "$as_me: ocamlyacc not found. Trying substitute ." >&6;}
9018 OCAMLYACC=""
9019
9020 if test "xocamlyacc" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then :
9021
9022
9023
9024
9025
9026
9027
9028 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9029 if test -n "$ac_tool_prefix"; then
9030 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9031 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 case $PKG_CONFIG in
9038 [\\/]* | ?:[\\/]*)
9039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9040 ;;
9041 *)
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in $PATH
9044 do
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051 break 2
9052 fi
9053 done
9054 done
9055 IFS=$as_save_IFS
9056
9057 ;;
9058 esac
9059 fi
9060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9061 if test -n "$PKG_CONFIG"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9063 $as_echo "$PKG_CONFIG" >&6; }
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9067 fi
9068
9069
9070 fi
9071 if test -z "$ac_cv_path_PKG_CONFIG"; then
9072 ac_pt_PKG_CONFIG=$PKG_CONFIG
9073 # Extract the first word of "pkg-config", so it can be a program name with args.
9074 set dummy pkg-config; ac_word=$2
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076 $as_echo_n "checking for $ac_word... " >&6; }
9077 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 case $ac_pt_PKG_CONFIG in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9083 ;;
9084 *)
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 for as_dir in $PATH
9087 do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096 done
9097 done
9098 IFS=$as_save_IFS
9099
9100 ;;
9101 esac
9102 fi
9103 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9104 if test -n "$ac_pt_PKG_CONFIG"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9106 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9107 else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9110 fi
9111
9112 if test "x$ac_pt_PKG_CONFIG" = x; then
9113 PKG_CONFIG=""
9114 else
9115 case $cross_compiling:$ac_tool_warned in
9116 yes:)
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9119 ac_tool_warned=yes ;;
9120 esac
9121 PKG_CONFIG=$ac_pt_PKG_CONFIG
9122 fi
9123 else
9124 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9125 fi
9126
9127 fi
9128 if test -n "$PKG_CONFIG"; then
9129 _pkg_min_version=0.9.0
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9131 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9132 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9134 $as_echo "yes" >&6; }
9135 else
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9138 PKG_CONFIG=""
9139 fi
9140 fi
9141
9142 elif test "xocamlyacc" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then :
9143 # checking for ocamllex
9144 if test -n "$ac_tool_prefix"; then
9145 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
9146 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_path_OCAMLLEX+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 case $OCAMLLEX in
9153 [\\/]* | ?:[\\/]*)
9154 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
9155 ;;
9156 *)
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 break 2
9167 fi
9168 done
9169 done
9170 IFS=$as_save_IFS
9171
9172 ;;
9173 esac
9174 fi
9175 OCAMLLEX=$ac_cv_path_OCAMLLEX
9176 if test -n "$OCAMLLEX"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
9178 $as_echo "$OCAMLLEX" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183
9184
9185 fi
9186 if test -z "$ac_cv_path_OCAMLLEX"; then
9187 ac_pt_OCAMLLEX=$OCAMLLEX
9188 # Extract the first word of "ocamllex", so it can be a program name with args.
9189 set dummy ocamllex; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 case $ac_pt_OCAMLLEX in
9196 [\\/]* | ?:[\\/]*)
9197 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
9198 ;;
9199 *)
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9202 do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9210 fi
9211 done
9212 done
9213 IFS=$as_save_IFS
9214
9215 ;;
9216 esac
9217 fi
9218 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
9219 if test -n "$ac_pt_OCAMLLEX"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
9221 $as_echo "$ac_pt_OCAMLLEX" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9225 fi
9226
9227 if test "x$ac_pt_OCAMLLEX" = x; then
9228 OCAMLLEX="no"
9229 else
9230 case $cross_compiling:$ac_tool_warned in
9231 yes:)
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9234 ac_tool_warned=yes ;;
9235 esac
9236 OCAMLLEX=$ac_pt_OCAMLLEX
9237 fi
9238 else
9239 OCAMLLEX="$ac_cv_path_OCAMLLEX"
9240 fi
9241
9242 if test "$OCAMLLEX" != "no"; then
9243 if test -n "$ac_tool_prefix"; then
9244 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
9245 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247 $as_echo_n "checking for $ac_word... " >&6; }
9248 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 case $OCAMLLEXDOTOPT in
9252 [\\/]* | ?:[\\/]*)
9253 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
9254 ;;
9255 *)
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9266 fi
9267 done
9268 done
9269 IFS=$as_save_IFS
9270
9271 ;;
9272 esac
9273 fi
9274 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
9275 if test -n "$OCAMLLEXDOTOPT"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
9277 $as_echo "$OCAMLLEXDOTOPT" >&6; }
9278 else
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 $as_echo "no" >&6; }
9281 fi
9282
9283
9284 fi
9285 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
9286 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
9287 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
9288 set dummy ocamllex.opt; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 case $ac_pt_OCAMLLEXDOTOPT in
9295 [\\/]* | ?:[\\/]*)
9296 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
9297 ;;
9298 *)
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9301 do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9306 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9309 fi
9310 done
9311 done
9312 IFS=$as_save_IFS
9313
9314 ;;
9315 esac
9316 fi
9317 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
9318 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
9320 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9324 fi
9325
9326 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
9327 OCAMLLEXDOTOPT="no"
9328 else
9329 case $cross_compiling:$ac_tool_warned in
9330 yes:)
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9333 ac_tool_warned=yes ;;
9334 esac
9335 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
9336 fi
9337 else
9338 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
9339 fi
9340
9341 if test "$OCAMLLEXDOTOPT" != "no"; then
9342 OCAMLLEX=$OCAMLLEXDOTOPT
9343 fi
9344 fi
9345
9346
9347
9348 elif test "xocamlyacc" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then :
9349 if test -n "$ac_tool_prefix"; then
9350 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9351 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353 $as_echo_n "checking for $ac_word... " >&6; }
9354 if ${ac_cv_path_OCAMLYACC+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 case $OCAMLYACC in
9358 [\\/]* | ?:[\\/]*)
9359 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9360 ;;
9361 *)
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363 for as_dir in $PATH
9364 do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9369 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9372 fi
9373 done
9374 done
9375 IFS=$as_save_IFS
9376
9377 ;;
9378 esac
9379 fi
9380 OCAMLYACC=$ac_cv_path_OCAMLYACC
9381 if test -n "$OCAMLYACC"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9383 $as_echo "$OCAMLYACC" >&6; }
9384 else
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386 $as_echo "no" >&6; }
9387 fi
9388
9389
9390 fi
9391 if test -z "$ac_cv_path_OCAMLYACC"; then
9392 ac_pt_OCAMLYACC=$OCAMLYACC
9393 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9394 set dummy ocamlyacc; ac_word=$2
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396 $as_echo_n "checking for $ac_word... " >&6; }
9397 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 case $ac_pt_OCAMLYACC in
9401 [\\/]* | ?:[\\/]*)
9402 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9403 ;;
9404 *)
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9407 do
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9412 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9414 break 2
9415 fi
9416 done
9417 done
9418 IFS=$as_save_IFS
9419
9420 ;;
9421 esac
9422 fi
9423 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9424 if test -n "$ac_pt_OCAMLYACC"; then
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9426 $as_echo "$ac_pt_OCAMLYACC" >&6; }
9427 else
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429 $as_echo "no" >&6; }
9430 fi
9431
9432 if test "x$ac_pt_OCAMLYACC" = x; then
9433 OCAMLYACC="no"
9434 else
9435 case $cross_compiling:$ac_tool_warned in
9436 yes:)
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9439 ac_tool_warned=yes ;;
9440 esac
9441 OCAMLYACC=$ac_pt_OCAMLYACC
9442 fi
9443 else
9444 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9445 fi
9446
9447
9448
9449
9450 else
9451 if test -n "$ac_tool_prefix"; then
9452 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9453 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if ${ac_cv_path_OCAMLYACC+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 case $OCAMLYACC in
9460 [\\/]* | ?:[\\/]*)
9461 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9462 ;;
9463 *)
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9466 do
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9471 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 break 2
9474 fi
9475 done
9476 done
9477 IFS=$as_save_IFS
9478
9479 ;;
9480 esac
9481 fi
9482 OCAMLYACC=$ac_cv_path_OCAMLYACC
9483 if test -n "$OCAMLYACC"; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9485 $as_echo "$OCAMLYACC" >&6; }
9486 else
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9489 fi
9490
9491
9492 fi
9493 if test -z "$ac_cv_path_OCAMLYACC"; then
9494 ac_pt_OCAMLYACC=$OCAMLYACC
9495 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9496 set dummy ocamlyacc; ac_word=$2
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498 $as_echo_n "checking for $ac_word... " >&6; }
9499 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 case $ac_pt_OCAMLYACC in
9503 [\\/]* | ?:[\\/]*)
9504 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9505 ;;
9506 *)
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 for as_dir in $PATH
9509 do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9517 fi
9518 done
9519 done
9520 IFS=$as_save_IFS
9521
9522 ;;
9523 esac
9524 fi
9525 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9526 if test -n "$ac_pt_OCAMLYACC"; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9528 $as_echo "$ac_pt_OCAMLYACC" >&6; }
9529 else
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9532 fi
9533
9534 if test "x$ac_pt_OCAMLYACC" = x; then
9535 OCAMLYACC=""
9536 else
9537 case $cross_compiling:$ac_tool_warned in
9538 yes:)
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9541 ac_tool_warned=yes ;;
9542 esac
9543 OCAMLYACC=$ac_pt_OCAMLYACC
9544 fi
9545 else
9546 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9547 fi
9548
9549
9550 fi
9551
9552 SUBSTITUTED_OCAMLYACC=yes
9553
9554
9555 fi
9556
9557 fi
9558
9559 if test -z "$OCAMLYACC"; then :
9560 OCAMLYACC=no
9561
9562 fi
9563
9564
9565
9566 # Check whether --with-ocamlfind was given.
9567 if test "${with_ocamlfind+set}" = set; then :
9568 withval=$with_ocamlfind;
9569 fi
9570
9571 with_OCAMLFIND="$with_ocamlfind"
9572
9573 if test -n "$with_OCAMLFIND" -a "x$with_OCAMLFIND" != xno -a "x$with_OCAMLFIND" != xyes; then :
9574 OCAMLFIND="$with_OCAMLFIND"
9575
9576
9577 else
9578 OCAMLFIND="ocamlfind"
9579
9580
9581 fi
9582
9583 if test "x$with_OCAMLFIND" = xno; then :
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind is disabled explicitly" >&5
9585 $as_echo "$as_me: ocamlfind is disabled explicitly" >&6;}
9586 OCAMLFIND=no
9587
9588
9589 else
9590 if test "x$OCAMLFIND" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then :
9591
9592
9593
9594
9595
9596
9597
9598 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9599 if test -n "$ac_tool_prefix"; then
9600 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9601 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 case $PKG_CONFIG in
9608 [\\/]* | ?:[\\/]*)
9609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9610 ;;
9611 *)
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9614 do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623 done
9624 done
9625 IFS=$as_save_IFS
9626
9627 ;;
9628 esac
9629 fi
9630 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9631 if test -n "$PKG_CONFIG"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9633 $as_echo "$PKG_CONFIG" >&6; }
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637 fi
9638
9639
9640 fi
9641 if test -z "$ac_cv_path_PKG_CONFIG"; then
9642 ac_pt_PKG_CONFIG=$PKG_CONFIG
9643 # Extract the first word of "pkg-config", so it can be a program name with args.
9644 set dummy pkg-config; ac_word=$2
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646 $as_echo_n "checking for $ac_word... " >&6; }
9647 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 case $ac_pt_PKG_CONFIG in
9651 [\\/]* | ?:[\\/]*)
9652 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9653 ;;
9654 *)
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656 for as_dir in $PATH
9657 do
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
9661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9662 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9665 fi
9666 done
9667 done
9668 IFS=$as_save_IFS
9669
9670 ;;
9671 esac
9672 fi
9673 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9674 if test -n "$ac_pt_PKG_CONFIG"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9676 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9677 else
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9680 fi
9681
9682 if test "x$ac_pt_PKG_CONFIG" = x; then
9683 PKG_CONFIG=""
9684 else
9685 case $cross_compiling:$ac_tool_warned in
9686 yes:)
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9689 ac_tool_warned=yes ;;
9690 esac
9691 PKG_CONFIG=$ac_pt_PKG_CONFIG
9692 fi
9693 else
9694 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9695 fi
9696
9697 fi
9698 if test -n "$PKG_CONFIG"; then
9699 _pkg_min_version=0.9.0
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9701 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9702 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9704 $as_echo "yes" >&6; }
9705 else
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9708 PKG_CONFIG=""
9709 fi
9710 fi
9711
9712 elif test "x$OCAMLFIND" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then :
9713 # checking for ocamllex
9714 if test -n "$ac_tool_prefix"; then
9715 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
9716 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718 $as_echo_n "checking for $ac_word... " >&6; }
9719 if ${ac_cv_path_OCAMLLEX+:} false; then :
9720 $as_echo_n "(cached) " >&6
9721 else
9722 case $OCAMLLEX in
9723 [\\/]* | ?:[\\/]*)
9724 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
9725 ;;
9726 *)
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in $PATH
9729 do
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
9733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9734 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 break 2
9737 fi
9738 done
9739 done
9740 IFS=$as_save_IFS
9741
9742 ;;
9743 esac
9744 fi
9745 OCAMLLEX=$ac_cv_path_OCAMLLEX
9746 if test -n "$OCAMLLEX"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
9748 $as_echo "$OCAMLLEX" >&6; }
9749 else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9752 fi
9753
9754
9755 fi
9756 if test -z "$ac_cv_path_OCAMLLEX"; then
9757 ac_pt_OCAMLLEX=$OCAMLLEX
9758 # Extract the first word of "ocamllex", so it can be a program name with args.
9759 set dummy ocamllex; ac_word=$2
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761 $as_echo_n "checking for $ac_word... " >&6; }
9762 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 case $ac_pt_OCAMLLEX in
9766 [\\/]* | ?:[\\/]*)
9767 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
9768 ;;
9769 *)
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 for as_dir in $PATH
9772 do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
9776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9777 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781 done
9782 done
9783 IFS=$as_save_IFS
9784
9785 ;;
9786 esac
9787 fi
9788 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
9789 if test -n "$ac_pt_OCAMLLEX"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
9791 $as_echo "$ac_pt_OCAMLLEX" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9795 fi
9796
9797 if test "x$ac_pt_OCAMLLEX" = x; then
9798 OCAMLLEX="no"
9799 else
9800 case $cross_compiling:$ac_tool_warned in
9801 yes:)
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9804 ac_tool_warned=yes ;;
9805 esac
9806 OCAMLLEX=$ac_pt_OCAMLLEX
9807 fi
9808 else
9809 OCAMLLEX="$ac_cv_path_OCAMLLEX"
9810 fi
9811
9812 if test "$OCAMLLEX" != "no"; then
9813 if test -n "$ac_tool_prefix"; then
9814 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
9815 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 case $OCAMLLEXDOTOPT in
9822 [\\/]* | ?:[\\/]*)
9823 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
9824 ;;
9825 *)
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9833 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9836 fi
9837 done
9838 done
9839 IFS=$as_save_IFS
9840
9841 ;;
9842 esac
9843 fi
9844 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
9845 if test -n "$OCAMLLEXDOTOPT"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
9847 $as_echo "$OCAMLLEXDOTOPT" >&6; }
9848 else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9851 fi
9852
9853
9854 fi
9855 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
9856 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
9857 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
9858 set dummy ocamllex.opt; ac_word=$2
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9860 $as_echo_n "checking for $ac_word... " >&6; }
9861 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 case $ac_pt_OCAMLLEXDOTOPT in
9865 [\\/]* | ?:[\\/]*)
9866 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
9867 ;;
9868 *)
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9871 do
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9876 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9879 fi
9880 done
9881 done
9882 IFS=$as_save_IFS
9883
9884 ;;
9885 esac
9886 fi
9887 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
9888 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
9890 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
9891 else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 fi
9895
9896 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
9897 OCAMLLEXDOTOPT="no"
9898 else
9899 case $cross_compiling:$ac_tool_warned in
9900 yes:)
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9903 ac_tool_warned=yes ;;
9904 esac
9905 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
9906 fi
9907 else
9908 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
9909 fi
9910
9911 if test "$OCAMLLEXDOTOPT" != "no"; then
9912 OCAMLLEX=$OCAMLLEXDOTOPT
9913 fi
9914 fi
9915
9916
9917
9918 elif test "x$OCAMLFIND" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then :
9919 if test -n "$ac_tool_prefix"; then
9920 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9921 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if ${ac_cv_path_OCAMLYACC+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 case $OCAMLYACC in
9928 [\\/]* | ?:[\\/]*)
9929 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9930 ;;
9931 *)
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933 for as_dir in $PATH
9934 do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9939 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9942 fi
9943 done
9944 done
9945 IFS=$as_save_IFS
9946
9947 ;;
9948 esac
9949 fi
9950 OCAMLYACC=$ac_cv_path_OCAMLYACC
9951 if test -n "$OCAMLYACC"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9953 $as_echo "$OCAMLYACC" >&6; }
9954 else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 fi
9958
9959
9960 fi
9961 if test -z "$ac_cv_path_OCAMLYACC"; then
9962 ac_pt_OCAMLYACC=$OCAMLYACC
9963 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9964 set dummy ocamlyacc; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 case $ac_pt_OCAMLYACC in
9971 [\\/]* | ?:[\\/]*)
9972 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9973 ;;
9974 *)
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH
9977 do
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984 break 2
9985 fi
9986 done
9987 done
9988 IFS=$as_save_IFS
9989
9990 ;;
9991 esac
9992 fi
9993 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9994 if test -n "$ac_pt_OCAMLYACC"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9996 $as_echo "$ac_pt_OCAMLYACC" >&6; }
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10000 fi
10001
10002 if test "x$ac_pt_OCAMLYACC" = x; then
10003 OCAMLYACC="no"
10004 else
10005 case $cross_compiling:$ac_tool_warned in
10006 yes:)
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10009 ac_tool_warned=yes ;;
10010 esac
10011 OCAMLYACC=$ac_pt_OCAMLYACC
10012 fi
10013 else
10014 OCAMLYACC="$ac_cv_path_OCAMLYACC"
10015 fi
10016
10017
10018
10019
10020 else
10021 if test -n "$ac_tool_prefix"; then
10022 # Extract the first word of "${ac_tool_prefix}[$]OCAMLFIND", so it can be a program name with args.
10023 set dummy ${ac_tool_prefix}$OCAMLFIND; ac_word=$2
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025 $as_echo_n "checking for $ac_word... " >&6; }
10026 if ${ac_cv_path_OCAMLFIND+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028 else
10029 case $OCAMLFIND in
10030 [\\/]* | ?:[\\/]*)
10031 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
10032 ;;
10033 *)
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10036 do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045 done
10046 done
10047 IFS=$as_save_IFS
10048
10049 ;;
10050 esac
10051 fi
10052 OCAMLFIND=$ac_cv_path_OCAMLFIND
10053 if test -n "$OCAMLFIND"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
10055 $as_echo "$OCAMLFIND" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10059 fi
10060
10061
10062 fi
10063 if test -z "$ac_cv_path_OCAMLFIND"; then
10064 ac_pt_OCAMLFIND=$OCAMLFIND
10065 # Extract the first word of "[$]OCAMLFIND", so it can be a program name with args.
10066 set dummy $OCAMLFIND; ac_word=$2
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 $as_echo_n "checking for $ac_word... " >&6; }
10069 if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 case $ac_pt_OCAMLFIND in
10073 [\\/]* | ?:[\\/]*)
10074 ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path.
10075 ;;
10076 *)
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10079 do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084 ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088 done
10089 done
10090 IFS=$as_save_IFS
10091
10092 ;;
10093 esac
10094 fi
10095 ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND
10096 if test -n "$ac_pt_OCAMLFIND"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5
10098 $as_echo "$ac_pt_OCAMLFIND" >&6; }
10099 else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10102 fi
10103
10104 if test "x$ac_pt_OCAMLFIND" = x; then
10105 OCAMLFIND=""
10106 else
10107 case $cross_compiling:$ac_tool_warned in
10108 yes:)
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10111 ac_tool_warned=yes ;;
10112 esac
10113 OCAMLFIND=$ac_pt_OCAMLFIND
10114 fi
10115 else
10116 OCAMLFIND="$ac_cv_path_OCAMLFIND"
10117 fi
10118
10119
10120 fi
10121
10122
10123 fi
10124
10125 if test -z "$OCAMLFIND" -o "x$OCAMLFIND" = xno; then :
10126 if test "x$with_OCAMLFIND" = xyes; then :
10127 as_fn_error $? "--with=ocamlfind is given explicitly but not found" "$LINENO" 5
10128
10129 fi
10130
10131 if test -n "$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"; then :
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&5
10133 $as_echo "$as_me: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&6;}
10134 OCAMLFIND="$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"
10135
10136 if test "xocamlfind" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then :
10137
10138
10139
10140
10141
10142
10143
10144 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10145 if test -n "$ac_tool_prefix"; then
10146 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10147 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 case $PKG_CONFIG in
10154 [\\/]* | ?:[\\/]*)
10155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10156 ;;
10157 *)
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10160 do
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 for ac_exec_ext in '' $ac_executable_extensions; do
10164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10165 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 break 2
10168 fi
10169 done
10170 done
10171 IFS=$as_save_IFS
10172
10173 ;;
10174 esac
10175 fi
10176 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10177 if test -n "$PKG_CONFIG"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10179 $as_echo "$PKG_CONFIG" >&6; }
10180 else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182 $as_echo "no" >&6; }
10183 fi
10184
10185
10186 fi
10187 if test -z "$ac_cv_path_PKG_CONFIG"; then
10188 ac_pt_PKG_CONFIG=$PKG_CONFIG
10189 # Extract the first word of "pkg-config", so it can be a program name with args.
10190 set dummy pkg-config; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 case $ac_pt_PKG_CONFIG in
10197 [\\/]* | ?:[\\/]*)
10198 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10199 ;;
10200 *)
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10203 do
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 break 2
10211 fi
10212 done
10213 done
10214 IFS=$as_save_IFS
10215
10216 ;;
10217 esac
10218 fi
10219 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10220 if test -n "$ac_pt_PKG_CONFIG"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10222 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10226 fi
10227
10228 if test "x$ac_pt_PKG_CONFIG" = x; then
10229 PKG_CONFIG=""
10230 else
10231 case $cross_compiling:$ac_tool_warned in
10232 yes:)
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10235 ac_tool_warned=yes ;;
10236 esac
10237 PKG_CONFIG=$ac_pt_PKG_CONFIG
10238 fi
10239 else
10240 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10241 fi
10242
10243 fi
10244 if test -n "$PKG_CONFIG"; then
10245 _pkg_min_version=0.9.0
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10247 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10248 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10250 $as_echo "yes" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10254 PKG_CONFIG=""
10255 fi
10256 fi
10257
10258 elif test "xocamlfind" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then :
10259 # checking for ocamllex
10260 if test -n "$ac_tool_prefix"; then
10261 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
10262 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10264 $as_echo_n "checking for $ac_word... " >&6; }
10265 if ${ac_cv_path_OCAMLLEX+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 case $OCAMLLEX in
10269 [\\/]* | ?:[\\/]*)
10270 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
10271 ;;
10272 *)
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274 for as_dir in $PATH
10275 do
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10280 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 break 2
10283 fi
10284 done
10285 done
10286 IFS=$as_save_IFS
10287
10288 ;;
10289 esac
10290 fi
10291 OCAMLLEX=$ac_cv_path_OCAMLLEX
10292 if test -n "$OCAMLLEX"; then
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
10294 $as_echo "$OCAMLLEX" >&6; }
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297 $as_echo "no" >&6; }
10298 fi
10299
10300
10301 fi
10302 if test -z "$ac_cv_path_OCAMLLEX"; then
10303 ac_pt_OCAMLLEX=$OCAMLLEX
10304 # Extract the first word of "ocamllex", so it can be a program name with args.
10305 set dummy ocamllex; ac_word=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 case $ac_pt_OCAMLLEX in
10312 [\\/]* | ?:[\\/]*)
10313 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
10314 ;;
10315 *)
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10318 do
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10326 fi
10327 done
10328 done
10329 IFS=$as_save_IFS
10330
10331 ;;
10332 esac
10333 fi
10334 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
10335 if test -n "$ac_pt_OCAMLLEX"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
10337 $as_echo "$ac_pt_OCAMLLEX" >&6; }
10338 else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10341 fi
10342
10343 if test "x$ac_pt_OCAMLLEX" = x; then
10344 OCAMLLEX="no"
10345 else
10346 case $cross_compiling:$ac_tool_warned in
10347 yes:)
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10350 ac_tool_warned=yes ;;
10351 esac
10352 OCAMLLEX=$ac_pt_OCAMLLEX
10353 fi
10354 else
10355 OCAMLLEX="$ac_cv_path_OCAMLLEX"
10356 fi
10357
10358 if test "$OCAMLLEX" != "no"; then
10359 if test -n "$ac_tool_prefix"; then
10360 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
10361 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 case $OCAMLLEXDOTOPT in
10368 [\\/]* | ?:[\\/]*)
10369 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
10370 ;;
10371 *)
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10374 do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 break 2
10382 fi
10383 done
10384 done
10385 IFS=$as_save_IFS
10386
10387 ;;
10388 esac
10389 fi
10390 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
10391 if test -n "$OCAMLLEXDOTOPT"; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
10393 $as_echo "$OCAMLLEXDOTOPT" >&6; }
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10397 fi
10398
10399
10400 fi
10401 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
10402 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
10403 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
10404 set dummy ocamllex.opt; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 case $ac_pt_OCAMLLEXDOTOPT in
10411 [\\/]* | ?:[\\/]*)
10412 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
10413 ;;
10414 *)
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10417 do
10418 IFS=$as_save_IFS
10419 test -z "$as_dir" && as_dir=.
10420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424 break 2
10425 fi
10426 done
10427 done
10428 IFS=$as_save_IFS
10429
10430 ;;
10431 esac
10432 fi
10433 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
10434 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
10436 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10440 fi
10441
10442 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
10443 OCAMLLEXDOTOPT="no"
10444 else
10445 case $cross_compiling:$ac_tool_warned in
10446 yes:)
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10449 ac_tool_warned=yes ;;
10450 esac
10451 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
10452 fi
10453 else
10454 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
10455 fi
10456
10457 if test "$OCAMLLEXDOTOPT" != "no"; then
10458 OCAMLLEX=$OCAMLLEXDOTOPT
10459 fi
10460 fi
10461
10462
10463
10464 elif test "xocamlfind" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then :
10465 if test -n "$ac_tool_prefix"; then
10466 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
10467 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469 $as_echo_n "checking for $ac_word... " >&6; }
10470 if ${ac_cv_path_OCAMLYACC+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 case $OCAMLYACC in
10474 [\\/]* | ?:[\\/]*)
10475 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
10476 ;;
10477 *)
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10480 do
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10485 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10488 fi
10489 done
10490 done
10491 IFS=$as_save_IFS
10492
10493 ;;
10494 esac
10495 fi
10496 OCAMLYACC=$ac_cv_path_OCAMLYACC
10497 if test -n "$OCAMLYACC"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
10499 $as_echo "$OCAMLYACC" >&6; }
10500 else
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; }
10503 fi
10504
10505
10506 fi
10507 if test -z "$ac_cv_path_OCAMLYACC"; then
10508 ac_pt_OCAMLYACC=$OCAMLYACC
10509 # Extract the first word of "ocamlyacc", so it can be a program name with args.
10510 set dummy ocamlyacc; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512 $as_echo_n "checking for $ac_word... " >&6; }
10513 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
10514 $as_echo_n "(cached) " >&6
10515 else
10516 case $ac_pt_OCAMLYACC in
10517 [\\/]* | ?:[\\/]*)
10518 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
10519 ;;
10520 *)
10521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522 for as_dir in $PATH
10523 do
10524 IFS=$as_save_IFS
10525 test -z "$as_dir" && as_dir=.
10526 for ac_exec_ext in '' $ac_executable_extensions; do
10527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10528 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
10529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10530 break 2
10531 fi
10532 done
10533 done
10534 IFS=$as_save_IFS
10535
10536 ;;
10537 esac
10538 fi
10539 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
10540 if test -n "$ac_pt_OCAMLYACC"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
10542 $as_echo "$ac_pt_OCAMLYACC" >&6; }
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547
10548 if test "x$ac_pt_OCAMLYACC" = x; then
10549 OCAMLYACC="no"
10550 else
10551 case $cross_compiling:$ac_tool_warned in
10552 yes:)
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10555 ac_tool_warned=yes ;;
10556 esac
10557 OCAMLYACC=$ac_pt_OCAMLYACC
10558 fi
10559 else
10560 OCAMLYACC="$ac_cv_path_OCAMLYACC"
10561 fi
10562
10563
10564
10565
10566 else
10567 if test -n "$ac_tool_prefix"; then
10568 # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args.
10569 set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571 $as_echo_n "checking for $ac_word... " >&6; }
10572 if ${ac_cv_path_OCAMLFIND+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 case $OCAMLFIND in
10576 [\\/]* | ?:[\\/]*)
10577 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
10578 ;;
10579 *)
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10582 do
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10587 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10590 fi
10591 done
10592 done
10593 IFS=$as_save_IFS
10594
10595 ;;
10596 esac
10597 fi
10598 OCAMLFIND=$ac_cv_path_OCAMLFIND
10599 if test -n "$OCAMLFIND"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
10601 $as_echo "$OCAMLFIND" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10605 fi
10606
10607
10608 fi
10609 if test -z "$ac_cv_path_OCAMLFIND"; then
10610 ac_pt_OCAMLFIND=$OCAMLFIND
10611 # Extract the first word of "ocamlfind", so it can be a program name with args.
10612 set dummy ocamlfind; ac_word=$2
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614 $as_echo_n "checking for $ac_word... " >&6; }
10615 if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 case $ac_pt_OCAMLFIND in
10619 [\\/]* | ?:[\\/]*)
10620 ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path.
10621 ;;
10622 *)
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10625 do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634 done
10635 done
10636 IFS=$as_save_IFS
10637
10638 ;;
10639 esac
10640 fi
10641 ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND
10642 if test -n "$ac_pt_OCAMLFIND"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5
10644 $as_echo "$ac_pt_OCAMLFIND" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10648 fi
10649
10650 if test "x$ac_pt_OCAMLFIND" = x; then
10651 OCAMLFIND=""
10652 else
10653 case $cross_compiling:$ac_tool_warned in
10654 yes:)
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10657 ac_tool_warned=yes ;;
10658 esac
10659 OCAMLFIND=$ac_pt_OCAMLFIND
10660 fi
10661 else
10662 OCAMLFIND="$ac_cv_path_OCAMLFIND"
10663 fi
10664
10665
10666 fi
10667
10668 SUBSTITUTED_OCAMLFIND=yes
10669
10670
10671 fi
10672
10673 fi
10674
10675 if test -z "$OCAMLFIND"; then :
10676 OCAMLFIND=no
10677
10678 fi
10679
10680
10681
10682 # Check whether --with-ocamlprof was given.
10683 if test "${with_ocamlprof+set}" = set; then :
10684 withval=$with_ocamlprof;
10685 fi
10686
10687 with_OCAMLPROF="$with_ocamlprof"
10688
10689 if test -n "$with_OCAMLPROF" -a "x$with_OCAMLPROF" != xno -a "x$with_OCAMLPROF" != xyes; then :
10690 OCAMLPROF="$with_OCAMLPROF"
10691
10692
10693 else
10694 OCAMLPROF="ocamlprof"
10695
10696
10697 fi
10698
10699 if test "x$with_OCAMLPROF" = xno; then :
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlprof is disabled explicitly" >&5
10701 $as_echo "$as_me: ocamlprof is disabled explicitly" >&6;}
10702 OCAMLPROF=no
10703
10704
10705 else
10706 if test "x$OCAMLPROF" = xpkg-config -a "xOCAMLPROF" = xPKG_CONFIG; then :
10707
10708
10709
10710
10711
10712
10713
10714 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10715 if test -n "$ac_tool_prefix"; then
10716 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10717 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719 $as_echo_n "checking for $ac_word... " >&6; }
10720 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 case $PKG_CONFIG in
10724 [\\/]* | ?:[\\/]*)
10725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10726 ;;
10727 *)
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10730 do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10738 fi
10739 done
10740 done
10741 IFS=$as_save_IFS
10742
10743 ;;
10744 esac
10745 fi
10746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10747 if test -n "$PKG_CONFIG"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10749 $as_echo "$PKG_CONFIG" >&6; }
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10753 fi
10754
10755
10756 fi
10757 if test -z "$ac_cv_path_PKG_CONFIG"; then
10758 ac_pt_PKG_CONFIG=$PKG_CONFIG
10759 # Extract the first word of "pkg-config", so it can be a program name with args.
10760 set dummy pkg-config; ac_word=$2
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762 $as_echo_n "checking for $ac_word... " >&6; }
10763 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 case $ac_pt_PKG_CONFIG in
10767 [\\/]* | ?:[\\/]*)
10768 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10769 ;;
10770 *)
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10773 do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10781 fi
10782 done
10783 done
10784 IFS=$as_save_IFS
10785
10786 ;;
10787 esac
10788 fi
10789 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10790 if test -n "$ac_pt_PKG_CONFIG"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10792 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10796 fi
10797
10798 if test "x$ac_pt_PKG_CONFIG" = x; then
10799 PKG_CONFIG=""
10800 else
10801 case $cross_compiling:$ac_tool_warned in
10802 yes:)
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10805 ac_tool_warned=yes ;;
10806 esac
10807 PKG_CONFIG=$ac_pt_PKG_CONFIG
10808 fi
10809 else
10810 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10811 fi
10812
10813 fi
10814 if test -n "$PKG_CONFIG"; then
10815 _pkg_min_version=0.9.0
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10817 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10818 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820 $as_echo "yes" >&6; }
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10824 PKG_CONFIG=""
10825 fi
10826 fi
10827
10828 elif test "x$OCAMLPROF" = xocamllex -a "xOCAMLPROF" = xOCAMLLEX; then :
10829 # checking for ocamllex
10830 if test -n "$ac_tool_prefix"; then
10831 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
10832 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_path_OCAMLLEX+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 case $OCAMLLEX in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
10841 ;;
10842 *)
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10853 fi
10854 done
10855 done
10856 IFS=$as_save_IFS
10857
10858 ;;
10859 esac
10860 fi
10861 OCAMLLEX=$ac_cv_path_OCAMLLEX
10862 if test -n "$OCAMLLEX"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
10864 $as_echo "$OCAMLLEX" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10868 fi
10869
10870
10871 fi
10872 if test -z "$ac_cv_path_OCAMLLEX"; then
10873 ac_pt_OCAMLLEX=$OCAMLLEX
10874 # Extract the first word of "ocamllex", so it can be a program name with args.
10875 set dummy ocamllex; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 case $ac_pt_OCAMLLEX in
10882 [\\/]* | ?:[\\/]*)
10883 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
10884 ;;
10885 *)
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10888 do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897 done
10898 done
10899 IFS=$as_save_IFS
10900
10901 ;;
10902 esac
10903 fi
10904 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
10905 if test -n "$ac_pt_OCAMLLEX"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
10907 $as_echo "$ac_pt_OCAMLLEX" >&6; }
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911 fi
10912
10913 if test "x$ac_pt_OCAMLLEX" = x; then
10914 OCAMLLEX="no"
10915 else
10916 case $cross_compiling:$ac_tool_warned in
10917 yes:)
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10920 ac_tool_warned=yes ;;
10921 esac
10922 OCAMLLEX=$ac_pt_OCAMLLEX
10923 fi
10924 else
10925 OCAMLLEX="$ac_cv_path_OCAMLLEX"
10926 fi
10927
10928 if test "$OCAMLLEX" != "no"; then
10929 if test -n "$ac_tool_prefix"; then
10930 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
10931 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 case $OCAMLLEXDOTOPT in
10938 [\\/]* | ?:[\\/]*)
10939 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
10940 ;;
10941 *)
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953 done
10954 done
10955 IFS=$as_save_IFS
10956
10957 ;;
10958 esac
10959 fi
10960 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
10961 if test -n "$OCAMLLEXDOTOPT"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
10963 $as_echo "$OCAMLLEXDOTOPT" >&6; }
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10967 fi
10968
10969
10970 fi
10971 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
10972 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
10973 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
10974 set dummy ocamllex.opt; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 case $ac_pt_OCAMLLEXDOTOPT in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
10983 ;;
10984 *)
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $PATH
10987 do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10992 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10995 fi
10996 done
10997 done
10998 IFS=$as_save_IFS
10999
11000 ;;
11001 esac
11002 fi
11003 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
11004 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
11006 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11010 fi
11011
11012 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
11013 OCAMLLEXDOTOPT="no"
11014 else
11015 case $cross_compiling:$ac_tool_warned in
11016 yes:)
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11019 ac_tool_warned=yes ;;
11020 esac
11021 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
11022 fi
11023 else
11024 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
11025 fi
11026
11027 if test "$OCAMLLEXDOTOPT" != "no"; then
11028 OCAMLLEX=$OCAMLLEXDOTOPT
11029 fi
11030 fi
11031
11032
11033
11034 elif test "x$OCAMLPROF" = xocamlyacc -a "xOCAMLPROF" = xOCAMLYACC; then :
11035 if test -n "$ac_tool_prefix"; then
11036 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
11037 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if ${ac_cv_path_OCAMLYACC+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 case $OCAMLYACC in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
11046 ;;
11047 *)
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11050 do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059 done
11060 done
11061 IFS=$as_save_IFS
11062
11063 ;;
11064 esac
11065 fi
11066 OCAMLYACC=$ac_cv_path_OCAMLYACC
11067 if test -n "$OCAMLYACC"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
11069 $as_echo "$OCAMLYACC" >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11073 fi
11074
11075
11076 fi
11077 if test -z "$ac_cv_path_OCAMLYACC"; then
11078 ac_pt_OCAMLYACC=$OCAMLYACC
11079 # Extract the first word of "ocamlyacc", so it can be a program name with args.
11080 set dummy ocamlyacc; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 case $ac_pt_OCAMLYACC in
11087 [\\/]* | ?:[\\/]*)
11088 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
11089 ;;
11090 *)
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11093 do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11101 fi
11102 done
11103 done
11104 IFS=$as_save_IFS
11105
11106 ;;
11107 esac
11108 fi
11109 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
11110 if test -n "$ac_pt_OCAMLYACC"; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
11112 $as_echo "$ac_pt_OCAMLYACC" >&6; }
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; }
11116 fi
11117
11118 if test "x$ac_pt_OCAMLYACC" = x; then
11119 OCAMLYACC="no"
11120 else
11121 case $cross_compiling:$ac_tool_warned in
11122 yes:)
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11125 ac_tool_warned=yes ;;
11126 esac
11127 OCAMLYACC=$ac_pt_OCAMLYACC
11128 fi
11129 else
11130 OCAMLYACC="$ac_cv_path_OCAMLYACC"
11131 fi
11132
11133
11134
11135
11136 else
11137 if test -n "$ac_tool_prefix"; then
11138 # Extract the first word of "${ac_tool_prefix}[$]OCAMLPROF", so it can be a program name with args.
11139 set dummy ${ac_tool_prefix}$OCAMLPROF; ac_word=$2
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 $as_echo_n "checking for $ac_word... " >&6; }
11142 if ${ac_cv_path_OCAMLPROF+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 case $OCAMLPROF in
11146 [\\/]* | ?:[\\/]*)
11147 ac_cv_path_OCAMLPROF="$OCAMLPROF" # Let the user override the test with a path.
11148 ;;
11149 *)
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH
11152 do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11157 ac_cv_path_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 break 2
11160 fi
11161 done
11162 done
11163 IFS=$as_save_IFS
11164
11165 ;;
11166 esac
11167 fi
11168 OCAMLPROF=$ac_cv_path_OCAMLPROF
11169 if test -n "$OCAMLPROF"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLPROF" >&5
11171 $as_echo "$OCAMLPROF" >&6; }
11172 else
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175 fi
11176
11177
11178 fi
11179 if test -z "$ac_cv_path_OCAMLPROF"; then
11180 ac_pt_OCAMLPROF=$OCAMLPROF
11181 # Extract the first word of "[$]OCAMLPROF", so it can be a program name with args.
11182 set dummy $OCAMLPROF; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_path_ac_pt_OCAMLPROF+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 case $ac_pt_OCAMLPROF in
11189 [\\/]* | ?:[\\/]*)
11190 ac_cv_path_ac_pt_OCAMLPROF="$ac_pt_OCAMLPROF" # Let the user override the test with a path.
11191 ;;
11192 *)
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11195 do
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_path_ac_pt_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11203 fi
11204 done
11205 done
11206 IFS=$as_save_IFS
11207
11208 ;;
11209 esac
11210 fi
11211 ac_pt_OCAMLPROF=$ac_cv_path_ac_pt_OCAMLPROF
11212 if test -n "$ac_pt_OCAMLPROF"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLPROF" >&5
11214 $as_echo "$ac_pt_OCAMLPROF" >&6; }
11215 else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11218 fi
11219
11220 if test "x$ac_pt_OCAMLPROF" = x; then
11221 OCAMLPROF=""
11222 else
11223 case $cross_compiling:$ac_tool_warned in
11224 yes:)
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11227 ac_tool_warned=yes ;;
11228 esac
11229 OCAMLPROF=$ac_pt_OCAMLPROF
11230 fi
11231 else
11232 OCAMLPROF="$ac_cv_path_OCAMLPROF"
11233 fi
11234
11235
11236 fi
11237
11238
11239 fi
11240
11241 if test -z "$OCAMLPROF" -o "x$OCAMLPROF" = xno; then :
11242 if test "x$with_OCAMLPROF" = xyes; then :
11243 as_fn_error $? "--with=ocamlprof is given explicitly but not found" "$LINENO" 5
11244
11245 fi
11246
11247 if test -n ""; then :
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlprof not found. Trying substitute ." >&5
11249 $as_echo "$as_me: ocamlprof not found. Trying substitute ." >&6;}
11250 OCAMLPROF=""
11251
11252 if test "xocamlprof" = xpkg-config -a "xOCAMLPROF" = xPKG_CONFIG; then :
11253
11254
11255
11256
11257
11258
11259
11260 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11261 if test -n "$ac_tool_prefix"; then
11262 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11263 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 case $PKG_CONFIG in
11270 [\\/]* | ?:[\\/]*)
11271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11272 ;;
11273 *)
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285 done
11286 done
11287 IFS=$as_save_IFS
11288
11289 ;;
11290 esac
11291 fi
11292 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11293 if test -n "$PKG_CONFIG"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11295 $as_echo "$PKG_CONFIG" >&6; }
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300
11301
11302 fi
11303 if test -z "$ac_cv_path_PKG_CONFIG"; then
11304 ac_pt_PKG_CONFIG=$PKG_CONFIG
11305 # Extract the first word of "pkg-config", so it can be a program name with args.
11306 set dummy pkg-config; ac_word=$2
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 $as_echo_n "checking for $ac_word... " >&6; }
11309 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 case $ac_pt_PKG_CONFIG in
11313 [\\/]* | ?:[\\/]*)
11314 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11315 ;;
11316 *)
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $PATH
11319 do
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11327 fi
11328 done
11329 done
11330 IFS=$as_save_IFS
11331
11332 ;;
11333 esac
11334 fi
11335 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11336 if test -n "$ac_pt_PKG_CONFIG"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11338 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11342 fi
11343
11344 if test "x$ac_pt_PKG_CONFIG" = x; then
11345 PKG_CONFIG=""
11346 else
11347 case $cross_compiling:$ac_tool_warned in
11348 yes:)
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11351 ac_tool_warned=yes ;;
11352 esac
11353 PKG_CONFIG=$ac_pt_PKG_CONFIG
11354 fi
11355 else
11356 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11357 fi
11358
11359 fi
11360 if test -n "$PKG_CONFIG"; then
11361 _pkg_min_version=0.9.0
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11363 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11364 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11366 $as_echo "yes" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369 $as_echo "no" >&6; }
11370 PKG_CONFIG=""
11371 fi
11372 fi
11373
11374 elif test "xocamlprof" = xocamllex -a "xOCAMLPROF" = xOCAMLLEX; then :
11375 # checking for ocamllex
11376 if test -n "$ac_tool_prefix"; then
11377 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
11378 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if ${ac_cv_path_OCAMLLEX+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 case $OCAMLLEX in
11385 [\\/]* | ?:[\\/]*)
11386 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
11387 ;;
11388 *)
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11391 do
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11396 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11399 fi
11400 done
11401 done
11402 IFS=$as_save_IFS
11403
11404 ;;
11405 esac
11406 fi
11407 OCAMLLEX=$ac_cv_path_OCAMLLEX
11408 if test -n "$OCAMLLEX"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
11410 $as_echo "$OCAMLLEX" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11414 fi
11415
11416
11417 fi
11418 if test -z "$ac_cv_path_OCAMLLEX"; then
11419 ac_pt_OCAMLLEX=$OCAMLLEX
11420 # Extract the first word of "ocamllex", so it can be a program name with args.
11421 set dummy ocamllex; ac_word=$2
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423 $as_echo_n "checking for $ac_word... " >&6; }
11424 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 case $ac_pt_OCAMLLEX in
11428 [\\/]* | ?:[\\/]*)
11429 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
11430 ;;
11431 *)
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 break 2
11442 fi
11443 done
11444 done
11445 IFS=$as_save_IFS
11446
11447 ;;
11448 esac
11449 fi
11450 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
11451 if test -n "$ac_pt_OCAMLLEX"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
11453 $as_echo "$ac_pt_OCAMLLEX" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458
11459 if test "x$ac_pt_OCAMLLEX" = x; then
11460 OCAMLLEX="no"
11461 else
11462 case $cross_compiling:$ac_tool_warned in
11463 yes:)
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11466 ac_tool_warned=yes ;;
11467 esac
11468 OCAMLLEX=$ac_pt_OCAMLLEX
11469 fi
11470 else
11471 OCAMLLEX="$ac_cv_path_OCAMLLEX"
11472 fi
11473
11474 if test "$OCAMLLEX" != "no"; then
11475 if test -n "$ac_tool_prefix"; then
11476 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
11477 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 case $OCAMLLEXDOTOPT in
11484 [\\/]* | ?:[\\/]*)
11485 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
11486 ;;
11487 *)
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11490 do
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11495 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11498 fi
11499 done
11500 done
11501 IFS=$as_save_IFS
11502
11503 ;;
11504 esac
11505 fi
11506 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
11507 if test -n "$OCAMLLEXDOTOPT"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
11509 $as_echo "$OCAMLLEXDOTOPT" >&6; }
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515
11516 fi
11517 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
11518 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
11519 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
11520 set dummy ocamllex.opt; ac_word=$2
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 case $ac_pt_OCAMLLEXDOTOPT in
11527 [\\/]* | ?:[\\/]*)
11528 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
11529 ;;
11530 *)
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11533 do
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11538 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11541 fi
11542 done
11543 done
11544 IFS=$as_save_IFS
11545
11546 ;;
11547 esac
11548 fi
11549 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
11550 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
11552 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556 fi
11557
11558 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
11559 OCAMLLEXDOTOPT="no"
11560 else
11561 case $cross_compiling:$ac_tool_warned in
11562 yes:)
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11565 ac_tool_warned=yes ;;
11566 esac
11567 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
11568 fi
11569 else
11570 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
11571 fi
11572
11573 if test "$OCAMLLEXDOTOPT" != "no"; then
11574 OCAMLLEX=$OCAMLLEXDOTOPT
11575 fi
11576 fi
11577
11578
11579
11580 elif test "xocamlprof" = xocamlyacc -a "xOCAMLPROF" = xOCAMLYACC; then :
11581 if test -n "$ac_tool_prefix"; then
11582 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
11583 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if ${ac_cv_path_OCAMLYACC+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 case $OCAMLYACC in
11590 [\\/]* | ?:[\\/]*)
11591 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
11592 ;;
11593 *)
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11596 do
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11604 fi
11605 done
11606 done
11607 IFS=$as_save_IFS
11608
11609 ;;
11610 esac
11611 fi
11612 OCAMLYACC=$ac_cv_path_OCAMLYACC
11613 if test -n "$OCAMLYACC"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
11615 $as_echo "$OCAMLYACC" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11619 fi
11620
11621
11622 fi
11623 if test -z "$ac_cv_path_OCAMLYACC"; then
11624 ac_pt_OCAMLYACC=$OCAMLYACC
11625 # Extract the first word of "ocamlyacc", so it can be a program name with args.
11626 set dummy ocamlyacc; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 case $ac_pt_OCAMLYACC in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
11635 ;;
11636 *)
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11639 do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11644 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646 break 2
11647 fi
11648 done
11649 done
11650 IFS=$as_save_IFS
11651
11652 ;;
11653 esac
11654 fi
11655 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
11656 if test -n "$ac_pt_OCAMLYACC"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
11658 $as_echo "$ac_pt_OCAMLYACC" >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11662 fi
11663
11664 if test "x$ac_pt_OCAMLYACC" = x; then
11665 OCAMLYACC="no"
11666 else
11667 case $cross_compiling:$ac_tool_warned in
11668 yes:)
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11671 ac_tool_warned=yes ;;
11672 esac
11673 OCAMLYACC=$ac_pt_OCAMLYACC
11674 fi
11675 else
11676 OCAMLYACC="$ac_cv_path_OCAMLYACC"
11677 fi
11678
11679
11680
11681
11682 else
11683 if test -n "$ac_tool_prefix"; then
11684 # Extract the first word of "${ac_tool_prefix}ocamlprof", so it can be a program name with args.
11685 set dummy ${ac_tool_prefix}ocamlprof; ac_word=$2
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687 $as_echo_n "checking for $ac_word... " >&6; }
11688 if ${ac_cv_path_OCAMLPROF+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 case $OCAMLPROF in
11692 [\\/]* | ?:[\\/]*)
11693 ac_cv_path_OCAMLPROF="$OCAMLPROF" # Let the user override the test with a path.
11694 ;;
11695 *)
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697 for as_dir in $PATH
11698 do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11703 ac_cv_path_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707 done
11708 done
11709 IFS=$as_save_IFS
11710
11711 ;;
11712 esac
11713 fi
11714 OCAMLPROF=$ac_cv_path_OCAMLPROF
11715 if test -n "$OCAMLPROF"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLPROF" >&5
11717 $as_echo "$OCAMLPROF" >&6; }
11718 else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720 $as_echo "no" >&6; }
11721 fi
11722
11723
11724 fi
11725 if test -z "$ac_cv_path_OCAMLPROF"; then
11726 ac_pt_OCAMLPROF=$OCAMLPROF
11727 # Extract the first word of "ocamlprof", so it can be a program name with args.
11728 set dummy ocamlprof; ac_word=$2
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730 $as_echo_n "checking for $ac_word... " >&6; }
11731 if ${ac_cv_path_ac_pt_OCAMLPROF+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 case $ac_pt_OCAMLPROF in
11735 [\\/]* | ?:[\\/]*)
11736 ac_cv_path_ac_pt_OCAMLPROF="$ac_pt_OCAMLPROF" # Let the user override the test with a path.
11737 ;;
11738 *)
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11741 do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746 ac_cv_path_ac_pt_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 break 2
11749 fi
11750 done
11751 done
11752 IFS=$as_save_IFS
11753
11754 ;;
11755 esac
11756 fi
11757 ac_pt_OCAMLPROF=$ac_cv_path_ac_pt_OCAMLPROF
11758 if test -n "$ac_pt_OCAMLPROF"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLPROF" >&5
11760 $as_echo "$ac_pt_OCAMLPROF" >&6; }
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11764 fi
11765
11766 if test "x$ac_pt_OCAMLPROF" = x; then
11767 OCAMLPROF=""
11768 else
11769 case $cross_compiling:$ac_tool_warned in
11770 yes:)
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773 ac_tool_warned=yes ;;
11774 esac
11775 OCAMLPROF=$ac_pt_OCAMLPROF
11776 fi
11777 else
11778 OCAMLPROF="$ac_cv_path_OCAMLPROF"
11779 fi
11780
11781
11782 fi
11783
11784 SUBSTITUTED_OCAMLPROF=yes
11785
11786
11787 fi
11788
11789 fi
11790
11791 if test -z "$OCAMLPROF"; then :
11792 OCAMLPROF=no
11793
11794 fi
11795
11796
11797 if test "x$OCAMLLEX" = xno; then :
11798 as_fn_error $? "the OCaml Lexer needs to be installed (the ocamllex command). It should be part of your OCaml distribution." "$LINENO" 5
11799
11800 fi
11801
11802 if test "x$OCAMLYACC" = xno; then :
11803 as_fn_error $? "The OCaml parser generated needs to be installed (the ocamlyacc command). It should be part of your OCaml distribution." "$LINENO" 5
11804
11805 fi
11806
11807 if test "x$OCAMLFIND" = xno; then :
11808 as_fn_error $? "A suitable OCaml findlib (the ocamlfind command) could not be found." "$LINENO" 5
11809
11810 fi
11811
11812
11813
11814 # Check whether --with-runtime-ocamlfind was given.
11815 if test "${with_runtime_ocamlfind+set}" = set; then :
11816 withval=$with_runtime_ocamlfind;
11817 fi
11818
11819
11820 if test -z "$RUNTIME_OCAMLFIND_CMD"; then :
11821 if test "x$with_runtime_ocamlfind" = xno; then :
11822 RUNTIME_OCAMLFIND_CMD=$OCAMLFIND
11823
11824
11825 elif test -n "$with_runtime_ocamlfind" -a "x$with_runtime_ocamlfind" != xyes; then :
11826 RUNTIME_OCAMLFIND_CMD="$with_runtime_ocamlfind"
11827
11828
11829 else
11830 RUNTIME_OCAMLFIND_CMD="ocamlfind"
11831
11832
11833 fi
11834
11835 fi
11836
11837
11838
11839 # Check whether --with-runtime-ocamlc was given.
11840 if test "${with_runtime_ocamlc+set}" = set; then :
11841 withval=$with_runtime_ocamlc;
11842 fi
11843
11844
11845 if test -z "$RUNTIME_OCAMLC_CMD"; then :
11846 if test "x$with_runtime_ocamlc" = xno; then :
11847 RUNTIME_OCAMLC_CMD=$OCAMLC
11848
11849
11850 elif test -n "$with_runtime_ocamlc" -a "x$with_runtime_ocamlc" != xyes; then :
11851 RUNTIME_OCAMLC_CMD="$with_runtime_ocamlc"
11852
11853
11854 else
11855 RUNTIME_OCAMLC_CMD="ocamlc"
11856
11857
11858 fi
11859
11860 fi
11861
11862
11863
11864 # Check whether --with-runtime-ocamlopt was given.
11865 if test "${with_runtime_ocamlopt+set}" = set; then :
11866 withval=$with_runtime_ocamlopt;
11867 fi
11868
11869
11870 if test -z "$RUNTIME_OCAMLOPT_CMD"; then :
11871 if test "x$with_runtime_ocamlopt" = xno; then :
11872 RUNTIME_OCAMLOPT_CMD=$OCAMLOPT
11873
11874
11875 elif test -n "$with_runtime_ocamlopt" -a "x$with_runtime_ocamlopt" != xyes; then :
11876 RUNTIME_OCAMLOPT_CMD="$with_runtime_ocamlopt"
11877
11878
11879 else
11880 RUNTIME_OCAMLOPT_CMD="ocamlopt"
11881
11882
11883 fi
11884
11885 fi
11886
11887
11888
11889 # Check whether --with-runtime-ocamldep was given.
11890 if test "${with_runtime_ocamldep+set}" = set; then :
11891 withval=$with_runtime_ocamldep;
11892 fi
11893
11894
11895 if test -z "$RUNTIME_OCAMLDEP_CMD"; then :
11896 if test "x$with_runtime_ocamldep" = xno; then :
11897 RUNTIME_OCAMLDEP_CMD=$OCAMLDEP
11898
11899
11900 elif test -n "$with_runtime_ocamldep" -a "x$with_runtime_ocamldep" != xyes; then :
11901 RUNTIME_OCAMLDEP_CMD="$with_runtime_ocamldep"
11902
11903
11904 else
11905 RUNTIME_OCAMLDEP_CMD="ocamldep"
11906
11907
11908 fi
11909
11910 fi
11911
11912
11913
11914 # Check whether --with-runtime-camlp4 was given.
11915 if test "${with_runtime_camlp4+set}" = set; then :
11916 withval=$with_runtime_camlp4;
11917 fi
11918
11919
11920 if test -z "$RUNTIME_CAMLP4_CMD"; then :
11921 if test "x$with_runtime_camlp4" = xno; then :
11922 RUNTIME_CAMLP4_CMD=$CAMLP4
11923
11924
11925 elif test -n "$with_runtime_camlp4" -a "x$with_runtime_camlp4" != xyes; then :
11926 RUNTIME_CAMLP4_CMD="$with_runtime_camlp4"
11927
11928
11929 else
11930 RUNTIME_CAMLP4_CMD="camlp4"
11931
11932
11933 fi
11934
11935 fi
11936
11937
11938
11939 # Check whether --with-runtime-camlp4o was given.
11940 if test "${with_runtime_camlp4o+set}" = set; then :
11941 withval=$with_runtime_camlp4o;
11942 fi
11943
11944
11945 if test -z "$RUNTIME_CAMLP4O_CMD"; then :
11946 if test "x$with_runtime_camlp4o" = xno; then :
11947 RUNTIME_CAMLP4O_CMD=$CAMLP4O
11948
11949
11950 elif test -n "$with_runtime_camlp4o" -a "x$with_runtime_camlp4o" != xyes; then :
11951 RUNTIME_CAMLP4O_CMD="$with_runtime_camlp4o"
11952
11953
11954 else
11955 RUNTIME_CAMLP4O_CMD="camlp4o"
11956
11957
11958 fi
11959
11960 fi
11961
11962
11963
11964
11965
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic ocaml modules" >&5
11967 $as_echo "$as_me: verifying basic ocaml modules" >&6;}
11968
11969
11970 COCCI_OCAML_EXTERNAL="$COCCI_SRCDIR/bundles"
11971
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&5
11973 $as_echo "$as_me: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&6;}
11974
11975
11976 FEATURE_menhirLib=0
11977
11978 LOCALLIB_menhirLib=0
11979
11980 FLAGS_menhirLib=
11981
11982 MODULES_menhirLib=
11983
11984 MODULESOPT_menhirLib=
11985
11986 PATH_menhirLib=
11987
11988
11989 FEATURE_dynlink=0
11990
11991 LOCALLIB_dynlink=0
11992
11993 FLAGS_dynlink=
11994
11995 MODULES_dynlink=
11996
11997 MODULESOPT_dynlink=
11998
11999 PATH_dynlink=
12000
12001
12002 FEATURE_pcre=0
12003
12004 LOCALLIB_pcre=0
12005
12006 FLAGS_pcre=
12007
12008 MODULES_pcre=
12009
12010 MODULESOPT_pcre=
12011
12012 PATH_pcre=
12013
12014
12015 FEATURE_pycaml=0
12016
12017 LOCALLIB_pycaml=0
12018
12019 FLAGS_pycaml=
12020
12021 MODULES_pycaml=
12022
12023 MODULESOPT_pycaml=
12024
12025 PATH_pycaml=
12026
12027
12028 FEATURE_camlp4=0
12029
12030 LOCALLIB_camlp4=0
12031
12032 FLAGS_camlp4=
12033
12034 MODULES_camlp4=
12035
12036 MODULESOPT_camlp4=
12037
12038 PATH_camlp4=
12039
12040
12041
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: the following OCaml packages should be provided by your ocaml installation" >&5
12043 $as_echo "$as_me: the following OCaml packages should be provided by your ocaml installation" >&6;}
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package unix" >&5
12046 $as_echo_n "checking for OCaml findlib package unix... " >&6; }
12047
12048 unset found
12049 unset pkg
12050 found=no
12051 for pkg in unix ; do
12052 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12054 $as_echo "found" >&6; }
12055 OCAML_PKG_unix=$pkg
12056 found=yes
12057 break
12058 fi
12059 done
12060 if test "$found" = "no" ; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12062 $as_echo "not found" >&6; }
12063 OCAML_PKG_unix=no
12064 fi
12065
12066
12067
12068 if test "x$OCAML_PKG_unix" != xno; then :
12069 PATH_unix=`$OCAMLFIND query unix 2>/dev/null`
12070
12071
12072 fi
12073
12074 if test "x$OCAML_PKG_unix" = xno; then :
12075 as_fn_error $? "package unix is required. It should be part of your ocaml installation." "$LINENO" 5
12076
12077 fi
12078
12079
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package bigarray" >&5
12081 $as_echo_n "checking for OCaml findlib package bigarray... " >&6; }
12082
12083 unset found
12084 unset pkg
12085 found=no
12086 for pkg in bigarray ; do
12087 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12089 $as_echo "found" >&6; }
12090 OCAML_PKG_bigarray=$pkg
12091 found=yes
12092 break
12093 fi
12094 done
12095 if test "$found" = "no" ; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12097 $as_echo "not found" >&6; }
12098 OCAML_PKG_bigarray=no
12099 fi
12100
12101
12102
12103 if test "x$OCAML_PKG_bigarray" != xno; then :
12104 PATH_bigarray=`$OCAMLFIND query bigarray 2>/dev/null`
12105
12106
12107 fi
12108
12109 if test "x$OCAML_PKG_bigarray" = xno; then :
12110 as_fn_error $? "package bigarray is required. It should be part of your ocaml installation." "$LINENO" 5
12111
12112 fi
12113
12114
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package num" >&5
12116 $as_echo_n "checking for OCaml findlib package num... " >&6; }
12117
12118 unset found
12119 unset pkg
12120 found=no
12121 for pkg in num ; do
12122 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12124 $as_echo "found" >&6; }
12125 OCAML_PKG_num=$pkg
12126 found=yes
12127 break
12128 fi
12129 done
12130 if test "$found" = "no" ; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12132 $as_echo "not found" >&6; }
12133 OCAML_PKG_num=no
12134 fi
12135
12136
12137
12138 if test "x$OCAML_PKG_num" != xno; then :
12139 PATH_num=`$OCAMLFIND query num 2>/dev/null`
12140
12141
12142 fi
12143
12144 if test "x$OCAML_PKG_num" = xno; then :
12145 as_fn_error $? "package num is required. It should be part of your ocaml installation." "$LINENO" 5
12146
12147 fi
12148
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package str" >&5
12151 $as_echo_n "checking for OCaml findlib package str... " >&6; }
12152
12153 unset found
12154 unset pkg
12155 found=no
12156 for pkg in str ; do
12157 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12159 $as_echo "found" >&6; }
12160 OCAML_PKG_str=$pkg
12161 found=yes
12162 break
12163 fi
12164 done
12165 if test "$found" = "no" ; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12167 $as_echo "not found" >&6; }
12168 OCAML_PKG_str=no
12169 fi
12170
12171
12172
12173 if test "x$OCAML_PKG_str" != xno; then :
12174 PATH_str=`$OCAMLFIND query str 2>/dev/null`
12175
12176
12177 fi
12178
12179 if test "x$OCAML_PKG_str" = xno; then :
12180 as_fn_error $? "package str is required. It should be part of your ocaml installation." "$LINENO" 5
12181
12182 fi
12183
12184
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package dynlink" >&5
12186 $as_echo "$as_me: configuring package dynlink" >&6;}
12187 # Check whether --enable-dynlink was given.
12188 if test "${enable_dynlink+set}" = set; then :
12189 enableval=$enable_dynlink;
12190 fi
12191
12192
12193 if test "x$enable_dynlink" != xno; then :
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package dynlink" >&5
12196 $as_echo_n "checking for OCaml findlib package dynlink... " >&6; }
12197
12198 unset found
12199 unset pkg
12200 found=no
12201 for pkg in dynlink ; do
12202 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12204 $as_echo "found" >&6; }
12205 OCAML_PKG_dynlink=$pkg
12206 found=yes
12207 break
12208 fi
12209 done
12210 if test "$found" = "no" ; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12212 $as_echo "not found" >&6; }
12213 OCAML_PKG_dynlink=no
12214 fi
12215
12216
12217
12218 if test "x$OCAML_PKG_dynlink" != xno; then :
12219 PATH_dynlink=`$OCAMLFIND query dynlink 2>/dev/null`
12220
12221
12222 fi
12223
12224 GLOBAL_dynlink=$OCAML_PKG_dynlink
12225
12226
12227 if test "x$GLOBAL_dynlink" != xno; then :
12228 enable_dynlink=yes
12229
12230
12231 else
12232 if test "x$enable_dynlink" = xyes; then :
12233 as_fn_error $? "OCaml package dynlink is not available but requested explicitly" "$LINENO" 5
12234
12235 fi
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package dynlink is not available" >&5
12237 $as_echo "$as_me: OCaml package dynlink is not available" >&6;}
12238 enable_dynlink=no
12239
12240
12241 fi
12242
12243 fi
12244
12245 if test "x$enable_dynlink" = xno; then :
12246 { pkgdir=; unset pkgdir;}
12247 pkgdir="$COCCI_OCAML_EXTERNAL/dynlink/"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of dynlink" >&5
12249 $as_echo_n "checking for a bundled substitute of dynlink... " >&6; }
12250 if test -d "$pkgdir"; then :
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12252 $as_echo "yes" >&6; }
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for dynlink in $pkgdir" >&5
12254 $as_echo "$as_me: using bundled substitute for dynlink in $pkgdir" >&6;}
12255 enable_dynlink=local
12256
12257 PATH_dynlink="$pkgdir"
12258
12259
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
12262 $as_echo "not available" >&6; }
12263 fi
12264
12265 fi
12266
12267 if test "x$enable_dynlink" != xno; then :
12268 FEATURE_dynlink=1
12269
12270 FLAGS_dynlink='$(FLAGS_dynlink)'
12271
12272 OPTFLAGS_dynlink='$(OPTFLAGS_dynlink)'
12273
12274
12275 if test "x$enable_dynlink" = xlocal; then :
12276 LOCALLIB_dynlink=1
12277
12278 MODULES_dynlink='$(LOCAL_dynlink)'
12279
12280 MODULESOPT_dynlink='$(LOCALOPT_dynlink)'
12281
12282
12283 if test -f "$PATH_dynlink/Makefile"; then :
12284 MAKE_dynlink=$PATH_dynlink
12285
12286
12287 else
12288 MAKE_dynlink=
12289
12290
12291 fi
12292
12293 else
12294 MODULES_dynlink='$(GLOBAL_dynlink)'
12295
12296 MODULESOPT_dynlink='$(GLOBALOPT_dynlink)'
12297
12298
12299 fi
12300
12301 fi
12302
12303 if test "x$enable_dynlink" = xno; then :
12304 as_fn_error $? "OCaml package dynlink is required. Please make sure it is available." "$LINENO" 5
12305
12306 fi
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package camlp4" >&5
12309 $as_echo "$as_me: configuring package camlp4" >&6;}
12310 # Check whether --enable-camlp4 was given.
12311 if test "${enable_camlp4+set}" = set; then :
12312 enableval=$enable_camlp4;
12313 fi
12314
12315
12316 if test "x$enable_camlp4" != xno; then :
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package camlp4" >&5
12319 $as_echo_n "checking for OCaml findlib package camlp4... " >&6; }
12320
12321 unset found
12322 unset pkg
12323 found=no
12324 for pkg in camlp4 ; do
12325 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12327 $as_echo "found" >&6; }
12328 OCAML_PKG_camlp4=$pkg
12329 found=yes
12330 break
12331 fi
12332 done
12333 if test "$found" = "no" ; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12335 $as_echo "not found" >&6; }
12336 OCAML_PKG_camlp4=no
12337 fi
12338
12339
12340
12341 if test "x$OCAML_PKG_camlp4" != xno; then :
12342 PATH_camlp4=`$OCAMLFIND query camlp4 2>/dev/null`
12343
12344
12345 fi
12346
12347 GLOBAL_camlp4=$OCAML_PKG_camlp4
12348
12349
12350 if test "x$GLOBAL_camlp4" != xno; then :
12351 enable_camlp4=yes
12352
12353
12354 else
12355 if test "x$enable_camlp4" = xyes; then :
12356 as_fn_error $? "OCaml package camlp4 is not available but requested explicitly" "$LINENO" 5
12357
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package camlp4 is not available" >&5
12360 $as_echo "$as_me: OCaml package camlp4 is not available" >&6;}
12361 enable_camlp4=no
12362
12363
12364 fi
12365
12366 fi
12367
12368 if test "x$enable_camlp4" = xno; then :
12369 { pkgdir=; unset pkgdir;}
12370 pkgdir="$COCCI_OCAML_EXTERNAL/camlp4/"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of camlp4" >&5
12372 $as_echo_n "checking for a bundled substitute of camlp4... " >&6; }
12373 if test -d "$pkgdir"; then :
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12375 $as_echo "yes" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for camlp4 in $pkgdir" >&5
12377 $as_echo "$as_me: using bundled substitute for camlp4 in $pkgdir" >&6;}
12378 enable_camlp4=local
12379
12380 PATH_camlp4="$pkgdir"
12381
12382
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
12385 $as_echo "not available" >&6; }
12386 fi
12387
12388 fi
12389
12390 if test "x$enable_camlp4" != xno; then :
12391 FEATURE_camlp4=1
12392
12393 FLAGS_camlp4='$(FLAGS_camlp4)'
12394
12395 OPTFLAGS_camlp4='$(OPTFLAGS_camlp4)'
12396
12397
12398 if test "x$enable_camlp4" = xlocal; then :
12399 LOCALLIB_camlp4=1
12400
12401 MODULES_camlp4='$(LOCAL_camlp4)'
12402
12403 MODULESOPT_camlp4='$(LOCALOPT_camlp4)'
12404
12405
12406 if test -f "$PATH_camlp4/Makefile"; then :
12407 MAKE_camlp4=$PATH_camlp4
12408
12409
12410 else
12411 MAKE_camlp4=
12412
12413
12414 fi
12415
12416 else
12417 MODULES_camlp4='$(GLOBAL_camlp4)'
12418
12419 MODULESOPT_camlp4='$(GLOBALOPT_camlp4)'
12420
12421
12422 fi
12423
12424 fi
12425
12426 if test "x$enable_camlp4" = xno; then :
12427 as_fn_error $? "OCaml package camlp4 is required. Please make sure it is available." "$LINENO" 5
12428
12429 fi
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package menhirLib" >&5
12432 $as_echo "$as_me: configuring package menhirLib" >&6;}
12433 # Check whether --enable-menhirLib was given.
12434 if test "${enable_menhirLib+set}" = set; then :
12435 enableval=$enable_menhirLib;
12436 fi
12437
12438
12439 if test "x$enable_menhirLib" != xno; then :
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package menhirLib" >&5
12442 $as_echo_n "checking for OCaml findlib package menhirLib... " >&6; }
12443
12444 unset found
12445 unset pkg
12446 found=no
12447 for pkg in menhirLib ; do
12448 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12450 $as_echo "found" >&6; }
12451 OCAML_PKG_menhirLib=$pkg
12452 found=yes
12453 break
12454 fi
12455 done
12456 if test "$found" = "no" ; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12458 $as_echo "not found" >&6; }
12459 OCAML_PKG_menhirLib=no
12460 fi
12461
12462
12463
12464 if test "x$OCAML_PKG_menhirLib" != xno; then :
12465 PATH_menhirLib=`$OCAMLFIND query menhirLib 2>/dev/null`
12466
12467
12468 fi
12469
12470 GLOBAL_menhirLib=$OCAML_PKG_menhirLib
12471
12472
12473 if test "x$GLOBAL_menhirLib" != xno; then :
12474 enable_menhirLib=yes
12475
12476
12477 else
12478 if test "x$enable_menhirLib" = xyes; then :
12479 as_fn_error $? "OCaml package menhirLib is not available but requested explicitly" "$LINENO" 5
12480
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package menhirLib is not available" >&5
12483 $as_echo "$as_me: OCaml package menhirLib is not available" >&6;}
12484 enable_menhirLib=no
12485
12486
12487 fi
12488
12489 fi
12490
12491 if test "x$enable_menhirLib" = xno; then :
12492 { pkgdir=; unset pkgdir;}
12493 pkgdir="$COCCI_OCAML_EXTERNAL/menhirLib/"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of menhirLib" >&5
12495 $as_echo_n "checking for a bundled substitute of menhirLib... " >&6; }
12496 if test -d "$pkgdir"; then :
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12498 $as_echo "yes" >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for menhirLib in $pkgdir" >&5
12500 $as_echo "$as_me: using bundled substitute for menhirLib in $pkgdir" >&6;}
12501 enable_menhirLib=local
12502
12503 PATH_menhirLib="$pkgdir"
12504
12505
12506 else
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
12508 $as_echo "not available" >&6; }
12509 fi
12510
12511 fi
12512
12513 if test "x$enable_menhirLib" != xno; then :
12514 FEATURE_menhirLib=1
12515
12516 FLAGS_menhirLib='$(FLAGS_menhirLib)'
12517
12518 OPTFLAGS_menhirLib='$(OPTFLAGS_menhirLib)'
12519
12520
12521 if test "x$enable_menhirLib" = xlocal; then :
12522 LOCALLIB_menhirLib=1
12523
12524 MODULES_menhirLib='$(LOCAL_menhirLib)'
12525
12526 MODULESOPT_menhirLib='$(LOCALOPT_menhirLib)'
12527
12528
12529 if test -f "$PATH_menhirLib/Makefile"; then :
12530 MAKE_menhirLib=$PATH_menhirLib
12531
12532
12533 else
12534 MAKE_menhirLib=
12535
12536
12537 fi
12538
12539 else
12540 MODULES_menhirLib='$(GLOBAL_menhirLib)'
12541
12542 MODULESOPT_menhirLib='$(GLOBALOPT_menhirLib)'
12543
12544
12545 fi
12546
12547 fi
12548
12549 if test "x$enable_menhirLib" = xno; then :
12550 as_fn_error $? "OCaml package menhirLib is required. Please make sure it is available." "$LINENO" 5
12551
12552 fi
12553
12554
12555
12556
12557
12558
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: verifying optional features" >&5
12560 $as_echo "$as_me: verifying optional features" >&6;}
12561
12562 if test "x$OCAML_PKG_dynlink" != xno -a -f "$PATH_dynlink/dynlink.cmxa"; then :
12563 OPTIMIZED_dynlink=yes
12564
12565
12566 else
12567 OPTIMIZED_dynlink=no
12568
12569
12570 fi
12571
12572
12573
12574
12575 # Check whether --with-menhir was given.
12576 if test "${with_menhir+set}" = set; then :
12577 withval=$with_menhir;
12578 fi
12579
12580 with_MENHIR="$with_menhir"
12581
12582 if test -n "$with_MENHIR" -a "x$with_MENHIR" != xno -a "x$with_MENHIR" != xyes; then :
12583 MENHIR="$with_MENHIR"
12584
12585
12586 else
12587 MENHIR="menhir"
12588
12589
12590 fi
12591
12592 if test "x$with_MENHIR" = xno; then :
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: menhir is disabled explicitly" >&5
12594 $as_echo "$as_me: menhir is disabled explicitly" >&6;}
12595 MENHIR=no
12596
12597
12598 else
12599 if test "x$MENHIR" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then :
12600
12601
12602
12603
12604
12605
12606
12607 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12608 if test -n "$ac_tool_prefix"; then
12609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12610 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612 $as_echo_n "checking for $ac_word... " >&6; }
12613 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 case $PKG_CONFIG in
12617 [\\/]* | ?:[\\/]*)
12618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12619 ;;
12620 *)
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12623 do
12624 IFS=$as_save_IFS
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 break 2
12631 fi
12632 done
12633 done
12634 IFS=$as_save_IFS
12635
12636 ;;
12637 esac
12638 fi
12639 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12640 if test -n "$PKG_CONFIG"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12642 $as_echo "$PKG_CONFIG" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12646 fi
12647
12648
12649 fi
12650 if test -z "$ac_cv_path_PKG_CONFIG"; then
12651 ac_pt_PKG_CONFIG=$PKG_CONFIG
12652 # Extract the first word of "pkg-config", so it can be a program name with args.
12653 set dummy pkg-config; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 case $ac_pt_PKG_CONFIG in
12660 [\\/]* | ?:[\\/]*)
12661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12662 ;;
12663 *)
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12666 do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12674 fi
12675 done
12676 done
12677 IFS=$as_save_IFS
12678
12679 ;;
12680 esac
12681 fi
12682 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12683 if test -n "$ac_pt_PKG_CONFIG"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12685 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12689 fi
12690
12691 if test "x$ac_pt_PKG_CONFIG" = x; then
12692 PKG_CONFIG=""
12693 else
12694 case $cross_compiling:$ac_tool_warned in
12695 yes:)
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12698 ac_tool_warned=yes ;;
12699 esac
12700 PKG_CONFIG=$ac_pt_PKG_CONFIG
12701 fi
12702 else
12703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12704 fi
12705
12706 fi
12707 if test -n "$PKG_CONFIG"; then
12708 _pkg_min_version=0.9.0
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12710 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12713 $as_echo "yes" >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12717 PKG_CONFIG=""
12718 fi
12719 fi
12720
12721 elif test "x$MENHIR" = xocamllex -a "xMENHIR" = xOCAMLLEX; then :
12722 # checking for ocamllex
12723 if test -n "$ac_tool_prefix"; then
12724 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
12725 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if ${ac_cv_path_OCAMLLEX+:} false; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 case $OCAMLLEX in
12732 [\\/]* | ?:[\\/]*)
12733 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
12734 ;;
12735 *)
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12738 do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747 done
12748 done
12749 IFS=$as_save_IFS
12750
12751 ;;
12752 esac
12753 fi
12754 OCAMLLEX=$ac_cv_path_OCAMLLEX
12755 if test -n "$OCAMLLEX"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
12757 $as_echo "$OCAMLLEX" >&6; }
12758 else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12761 fi
12762
12763
12764 fi
12765 if test -z "$ac_cv_path_OCAMLLEX"; then
12766 ac_pt_OCAMLLEX=$OCAMLLEX
12767 # Extract the first word of "ocamllex", so it can be a program name with args.
12768 set dummy ocamllex; ac_word=$2
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770 $as_echo_n "checking for $ac_word... " >&6; }
12771 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 case $ac_pt_OCAMLLEX in
12775 [\\/]* | ?:[\\/]*)
12776 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
12777 ;;
12778 *)
12779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780 for as_dir in $PATH
12781 do
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12786 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 break 2
12789 fi
12790 done
12791 done
12792 IFS=$as_save_IFS
12793
12794 ;;
12795 esac
12796 fi
12797 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
12798 if test -n "$ac_pt_OCAMLLEX"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
12800 $as_echo "$ac_pt_OCAMLLEX" >&6; }
12801 else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12804 fi
12805
12806 if test "x$ac_pt_OCAMLLEX" = x; then
12807 OCAMLLEX="no"
12808 else
12809 case $cross_compiling:$ac_tool_warned in
12810 yes:)
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12813 ac_tool_warned=yes ;;
12814 esac
12815 OCAMLLEX=$ac_pt_OCAMLLEX
12816 fi
12817 else
12818 OCAMLLEX="$ac_cv_path_OCAMLLEX"
12819 fi
12820
12821 if test "$OCAMLLEX" != "no"; then
12822 if test -n "$ac_tool_prefix"; then
12823 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
12824 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 case $OCAMLLEXDOTOPT in
12831 [\\/]* | ?:[\\/]*)
12832 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
12833 ;;
12834 *)
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12837 do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12842 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 ;;
12851 esac
12852 fi
12853 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
12854 if test -n "$OCAMLLEXDOTOPT"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
12856 $as_echo "$OCAMLLEXDOTOPT" >&6; }
12857 else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 $as_echo "no" >&6; }
12860 fi
12861
12862
12863 fi
12864 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
12865 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
12866 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
12867 set dummy ocamllex.opt; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 case $ac_pt_OCAMLLEXDOTOPT in
12874 [\\/]* | ?:[\\/]*)
12875 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
12876 ;;
12877 *)
12878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12880 do
12881 IFS=$as_save_IFS
12882 test -z "$as_dir" && as_dir=.
12883 for ac_exec_ext in '' $ac_executable_extensions; do
12884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12885 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 break 2
12888 fi
12889 done
12890 done
12891 IFS=$as_save_IFS
12892
12893 ;;
12894 esac
12895 fi
12896 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
12897 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
12899 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 fi
12904
12905 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
12906 OCAMLLEXDOTOPT="no"
12907 else
12908 case $cross_compiling:$ac_tool_warned in
12909 yes:)
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12912 ac_tool_warned=yes ;;
12913 esac
12914 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
12915 fi
12916 else
12917 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
12918 fi
12919
12920 if test "$OCAMLLEXDOTOPT" != "no"; then
12921 OCAMLLEX=$OCAMLLEXDOTOPT
12922 fi
12923 fi
12924
12925
12926
12927 elif test "x$MENHIR" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then :
12928 if test -n "$ac_tool_prefix"; then
12929 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
12930 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if ${ac_cv_path_OCAMLYACC+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 case $OCAMLYACC in
12937 [\\/]* | ?:[\\/]*)
12938 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
12939 ;;
12940 *)
12941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942 for as_dir in $PATH
12943 do
12944 IFS=$as_save_IFS
12945 test -z "$as_dir" && as_dir=.
12946 for ac_exec_ext in '' $ac_executable_extensions; do
12947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12948 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 break 2
12951 fi
12952 done
12953 done
12954 IFS=$as_save_IFS
12955
12956 ;;
12957 esac
12958 fi
12959 OCAMLYACC=$ac_cv_path_OCAMLYACC
12960 if test -n "$OCAMLYACC"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
12962 $as_echo "$OCAMLYACC" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967
12968
12969 fi
12970 if test -z "$ac_cv_path_OCAMLYACC"; then
12971 ac_pt_OCAMLYACC=$OCAMLYACC
12972 # Extract the first word of "ocamlyacc", so it can be a program name with args.
12973 set dummy ocamlyacc; ac_word=$2
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975 $as_echo_n "checking for $ac_word... " >&6; }
12976 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 case $ac_pt_OCAMLYACC in
12980 [\\/]* | ?:[\\/]*)
12981 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
12982 ;;
12983 *)
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12986 do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12991 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12994 fi
12995 done
12996 done
12997 IFS=$as_save_IFS
12998
12999 ;;
13000 esac
13001 fi
13002 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
13003 if test -n "$ac_pt_OCAMLYACC"; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
13005 $as_echo "$ac_pt_OCAMLYACC" >&6; }
13006 else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 $as_echo "no" >&6; }
13009 fi
13010
13011 if test "x$ac_pt_OCAMLYACC" = x; then
13012 OCAMLYACC="no"
13013 else
13014 case $cross_compiling:$ac_tool_warned in
13015 yes:)
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13018 ac_tool_warned=yes ;;
13019 esac
13020 OCAMLYACC=$ac_pt_OCAMLYACC
13021 fi
13022 else
13023 OCAMLYACC="$ac_cv_path_OCAMLYACC"
13024 fi
13025
13026
13027
13028
13029 else
13030 if test -n "$ac_tool_prefix"; then
13031 # Extract the first word of "${ac_tool_prefix}[$]MENHIR", so it can be a program name with args.
13032 set dummy ${ac_tool_prefix}$MENHIR; ac_word=$2
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034 $as_echo_n "checking for $ac_word... " >&6; }
13035 if ${ac_cv_path_MENHIR+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 case $MENHIR in
13039 [\\/]* | ?:[\\/]*)
13040 ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path.
13041 ;;
13042 *)
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13045 do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054 done
13055 done
13056 IFS=$as_save_IFS
13057
13058 ;;
13059 esac
13060 fi
13061 MENHIR=$ac_cv_path_MENHIR
13062 if test -n "$MENHIR"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5
13064 $as_echo "$MENHIR" >&6; }
13065 else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13068 fi
13069
13070
13071 fi
13072 if test -z "$ac_cv_path_MENHIR"; then
13073 ac_pt_MENHIR=$MENHIR
13074 # Extract the first word of "[$]MENHIR", so it can be a program name with args.
13075 set dummy $MENHIR; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_path_ac_pt_MENHIR+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 case $ac_pt_MENHIR in
13082 [\\/]* | ?:[\\/]*)
13083 ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path.
13084 ;;
13085 *)
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097 done
13098 done
13099 IFS=$as_save_IFS
13100
13101 ;;
13102 esac
13103 fi
13104 ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR
13105 if test -n "$ac_pt_MENHIR"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5
13107 $as_echo "$ac_pt_MENHIR" >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113 if test "x$ac_pt_MENHIR" = x; then
13114 MENHIR=""
13115 else
13116 case $cross_compiling:$ac_tool_warned in
13117 yes:)
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13120 ac_tool_warned=yes ;;
13121 esac
13122 MENHIR=$ac_pt_MENHIR
13123 fi
13124 else
13125 MENHIR="$ac_cv_path_MENHIR"
13126 fi
13127
13128
13129 fi
13130
13131
13132 fi
13133
13134 if test -z "$MENHIR" -o "x$MENHIR" = xno; then :
13135 if test "x$with_MENHIR" = xyes; then :
13136 as_fn_error $? "--with=menhir is given explicitly but not found" "$LINENO" 5
13137
13138 fi
13139
13140 if test -n "$COCCI_SRCDIR/setup/fake-menhir.sh menhir"; then :
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&5
13142 $as_echo "$as_me: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&6;}
13143 MENHIR="$COCCI_SRCDIR/setup/fake-menhir.sh menhir"
13144
13145 if test "xmenhir" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then :
13146
13147
13148
13149
13150
13151
13152
13153 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13154 if test -n "$ac_tool_prefix"; then
13155 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13156 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158 $as_echo_n "checking for $ac_word... " >&6; }
13159 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 case $PKG_CONFIG in
13163 [\\/]* | ?:[\\/]*)
13164 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13165 ;;
13166 *)
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168 for as_dir in $PATH
13169 do
13170 IFS=$as_save_IFS
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
13173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13174 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 break 2
13177 fi
13178 done
13179 done
13180 IFS=$as_save_IFS
13181
13182 ;;
13183 esac
13184 fi
13185 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13186 if test -n "$PKG_CONFIG"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13188 $as_echo "$PKG_CONFIG" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13192 fi
13193
13194
13195 fi
13196 if test -z "$ac_cv_path_PKG_CONFIG"; then
13197 ac_pt_PKG_CONFIG=$PKG_CONFIG
13198 # Extract the first word of "pkg-config", so it can be a program name with args.
13199 set dummy pkg-config; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 case $ac_pt_PKG_CONFIG in
13206 [\\/]* | ?:[\\/]*)
13207 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13208 ;;
13209 *)
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13212 do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221 done
13222 done
13223 IFS=$as_save_IFS
13224
13225 ;;
13226 esac
13227 fi
13228 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13229 if test -n "$ac_pt_PKG_CONFIG"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13231 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236
13237 if test "x$ac_pt_PKG_CONFIG" = x; then
13238 PKG_CONFIG=""
13239 else
13240 case $cross_compiling:$ac_tool_warned in
13241 yes:)
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13244 ac_tool_warned=yes ;;
13245 esac
13246 PKG_CONFIG=$ac_pt_PKG_CONFIG
13247 fi
13248 else
13249 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13250 fi
13251
13252 fi
13253 if test -n "$PKG_CONFIG"; then
13254 _pkg_min_version=0.9.0
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13256 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13257 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259 $as_echo "yes" >&6; }
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13263 PKG_CONFIG=""
13264 fi
13265 fi
13266
13267 elif test "xmenhir" = xocamllex -a "xMENHIR" = xOCAMLLEX; then :
13268 # checking for ocamllex
13269 if test -n "$ac_tool_prefix"; then
13270 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
13271 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273 $as_echo_n "checking for $ac_word... " >&6; }
13274 if ${ac_cv_path_OCAMLLEX+:} false; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 case $OCAMLLEX in
13278 [\\/]* | ?:[\\/]*)
13279 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
13280 ;;
13281 *)
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283 for as_dir in $PATH
13284 do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13289 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293 done
13294 done
13295 IFS=$as_save_IFS
13296
13297 ;;
13298 esac
13299 fi
13300 OCAMLLEX=$ac_cv_path_OCAMLLEX
13301 if test -n "$OCAMLLEX"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
13303 $as_echo "$OCAMLLEX" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307 fi
13308
13309
13310 fi
13311 if test -z "$ac_cv_path_OCAMLLEX"; then
13312 ac_pt_OCAMLLEX=$OCAMLLEX
13313 # Extract the first word of "ocamllex", so it can be a program name with args.
13314 set dummy ocamllex; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 case $ac_pt_OCAMLLEX in
13321 [\\/]* | ?:[\\/]*)
13322 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
13323 ;;
13324 *)
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $PATH
13327 do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13332 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336 done
13337 done
13338 IFS=$as_save_IFS
13339
13340 ;;
13341 esac
13342 fi
13343 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
13344 if test -n "$ac_pt_OCAMLLEX"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
13346 $as_echo "$ac_pt_OCAMLLEX" >&6; }
13347 else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13350 fi
13351
13352 if test "x$ac_pt_OCAMLLEX" = x; then
13353 OCAMLLEX="no"
13354 else
13355 case $cross_compiling:$ac_tool_warned in
13356 yes:)
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13359 ac_tool_warned=yes ;;
13360 esac
13361 OCAMLLEX=$ac_pt_OCAMLLEX
13362 fi
13363 else
13364 OCAMLLEX="$ac_cv_path_OCAMLLEX"
13365 fi
13366
13367 if test "$OCAMLLEX" != "no"; then
13368 if test -n "$ac_tool_prefix"; then
13369 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
13370 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372 $as_echo_n "checking for $ac_word... " >&6; }
13373 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 case $OCAMLLEXDOTOPT in
13377 [\\/]* | ?:[\\/]*)
13378 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
13379 ;;
13380 *)
13381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382 for as_dir in $PATH
13383 do
13384 IFS=$as_save_IFS
13385 test -z "$as_dir" && as_dir=.
13386 for ac_exec_ext in '' $ac_executable_extensions; do
13387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13388 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13390 break 2
13391 fi
13392 done
13393 done
13394 IFS=$as_save_IFS
13395
13396 ;;
13397 esac
13398 fi
13399 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
13400 if test -n "$OCAMLLEXDOTOPT"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
13402 $as_echo "$OCAMLLEXDOTOPT" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13406 fi
13407
13408
13409 fi
13410 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
13411 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
13412 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
13413 set dummy ocamllex.opt; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415 $as_echo_n "checking for $ac_word... " >&6; }
13416 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 case $ac_pt_OCAMLLEXDOTOPT in
13420 [\\/]* | ?:[\\/]*)
13421 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
13422 ;;
13423 *)
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH
13426 do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13431 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13434 fi
13435 done
13436 done
13437 IFS=$as_save_IFS
13438
13439 ;;
13440 esac
13441 fi
13442 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
13443 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
13445 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
13446 else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 $as_echo "no" >&6; }
13449 fi
13450
13451 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
13452 OCAMLLEXDOTOPT="no"
13453 else
13454 case $cross_compiling:$ac_tool_warned in
13455 yes:)
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13458 ac_tool_warned=yes ;;
13459 esac
13460 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
13461 fi
13462 else
13463 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
13464 fi
13465
13466 if test "$OCAMLLEXDOTOPT" != "no"; then
13467 OCAMLLEX=$OCAMLLEXDOTOPT
13468 fi
13469 fi
13470
13471
13472
13473 elif test "xmenhir" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then :
13474 if test -n "$ac_tool_prefix"; then
13475 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
13476 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_path_OCAMLYACC+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 case $OCAMLYACC in
13483 [\\/]* | ?:[\\/]*)
13484 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
13485 ;;
13486 *)
13487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488 for as_dir in $PATH
13489 do
13490 IFS=$as_save_IFS
13491 test -z "$as_dir" && as_dir=.
13492 for ac_exec_ext in '' $ac_executable_extensions; do
13493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13494 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 break 2
13497 fi
13498 done
13499 done
13500 IFS=$as_save_IFS
13501
13502 ;;
13503 esac
13504 fi
13505 OCAMLYACC=$ac_cv_path_OCAMLYACC
13506 if test -n "$OCAMLYACC"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
13508 $as_echo "$OCAMLYACC" >&6; }
13509 else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13512 fi
13513
13514
13515 fi
13516 if test -z "$ac_cv_path_OCAMLYACC"; then
13517 ac_pt_OCAMLYACC=$OCAMLYACC
13518 # Extract the first word of "ocamlyacc", so it can be a program name with args.
13519 set dummy ocamlyacc; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 case $ac_pt_OCAMLYACC in
13526 [\\/]* | ?:[\\/]*)
13527 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
13528 ;;
13529 *)
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13532 do
13533 IFS=$as_save_IFS
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 break 2
13540 fi
13541 done
13542 done
13543 IFS=$as_save_IFS
13544
13545 ;;
13546 esac
13547 fi
13548 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
13549 if test -n "$ac_pt_OCAMLYACC"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
13551 $as_echo "$ac_pt_OCAMLYACC" >&6; }
13552 else
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 $as_echo "no" >&6; }
13555 fi
13556
13557 if test "x$ac_pt_OCAMLYACC" = x; then
13558 OCAMLYACC="no"
13559 else
13560 case $cross_compiling:$ac_tool_warned in
13561 yes:)
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13564 ac_tool_warned=yes ;;
13565 esac
13566 OCAMLYACC=$ac_pt_OCAMLYACC
13567 fi
13568 else
13569 OCAMLYACC="$ac_cv_path_OCAMLYACC"
13570 fi
13571
13572
13573
13574
13575 else
13576 if test -n "$ac_tool_prefix"; then
13577 # Extract the first word of "${ac_tool_prefix}menhir", so it can be a program name with args.
13578 set dummy ${ac_tool_prefix}menhir; ac_word=$2
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580 $as_echo_n "checking for $ac_word... " >&6; }
13581 if ${ac_cv_path_MENHIR+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 case $MENHIR in
13585 [\\/]* | ?:[\\/]*)
13586 ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path.
13587 ;;
13588 *)
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13591 do
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596 ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 break 2
13599 fi
13600 done
13601 done
13602 IFS=$as_save_IFS
13603
13604 ;;
13605 esac
13606 fi
13607 MENHIR=$ac_cv_path_MENHIR
13608 if test -n "$MENHIR"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5
13610 $as_echo "$MENHIR" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13614 fi
13615
13616
13617 fi
13618 if test -z "$ac_cv_path_MENHIR"; then
13619 ac_pt_MENHIR=$MENHIR
13620 # Extract the first word of "menhir", so it can be a program name with args.
13621 set dummy menhir; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if ${ac_cv_path_ac_pt_MENHIR+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 case $ac_pt_MENHIR in
13628 [\\/]* | ?:[\\/]*)
13629 ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path.
13630 ;;
13631 *)
13632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633 for as_dir in $PATH
13634 do
13635 IFS=$as_save_IFS
13636 test -z "$as_dir" && as_dir=.
13637 for ac_exec_ext in '' $ac_executable_extensions; do
13638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13639 ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext"
13640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 break 2
13642 fi
13643 done
13644 done
13645 IFS=$as_save_IFS
13646
13647 ;;
13648 esac
13649 fi
13650 ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR
13651 if test -n "$ac_pt_MENHIR"; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5
13653 $as_echo "$ac_pt_MENHIR" >&6; }
13654 else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13657 fi
13658
13659 if test "x$ac_pt_MENHIR" = x; then
13660 MENHIR=""
13661 else
13662 case $cross_compiling:$ac_tool_warned in
13663 yes:)
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13666 ac_tool_warned=yes ;;
13667 esac
13668 MENHIR=$ac_pt_MENHIR
13669 fi
13670 else
13671 MENHIR="$ac_cv_path_MENHIR"
13672 fi
13673
13674
13675 fi
13676
13677 SUBSTITUTED_MENHIR=yes
13678
13679
13680 fi
13681
13682 fi
13683
13684 if test -z "$MENHIR"; then :
13685 MENHIR=no
13686
13687 fi
13688
13689 if test "x$SUBSTITUTED_MENHIR" = xyes; then :
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: pregenerated parsers will be required as substitute for Menhir" >&5
13691 $as_echo "$as_me: pregenerated parsers will be required as substitute for Menhir" >&6;}
13692
13693 fi
13694
13695
13696 # Check whether --enable-ocaml was given.
13697 if test "${enable_ocaml+set}" = set; then :
13698 enableval=$enable_ocaml;
13699 fi
13700
13701 if test "x$OCAML_PKG_dynlink" = xno; then :
13702 if test -z "$enable_ocaml"; then :
13703 enable_ocaml=no
13704
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because the 'dynlink' package is not installed" >&5
13706 $as_echo "$as_me: ocaml scripting is disabled because the 'dynlink' package is not installed" >&6;}
13707
13708 elif test "x$enable_ocaml" != xno; then :
13709 as_fn_error $? "the OCaml package dynlink is required for ocaml scripting" "$LINENO" 5
13710
13711 fi
13712
13713 fi
13714
13715 if test "x$OCAMLATLEAST311" = xno; then :
13716 if test -z "$enable_ocaml"; then :
13717 enable_ocaml=no
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting has been disabled by default because your OCaml version may not support dynamic linking properly" >&5
13720 $as_echo "$as_me: ocaml scripting has been disabled by default because your OCaml version may not support dynamic linking properly" >&6;}
13721
13722 elif test "x$enable_ocaml" = xyes; then :
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: your ocaml version may be too old for dynamic linking, thus ocaml scripting may not work" >&5
13724 $as_echo "$as_me: warning: your ocaml version may be too old for dynamic linking, thus ocaml scripting may not work" >&6;}
13725
13726 fi
13727
13728 fi
13729
13730 if test "x$OPTIMIZED_dynlink" = xno; then :
13731 if test -z "$enable_ocaml"; then :
13732 enable_ocaml=no
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&5
13735 $as_echo "$as_me: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&6;}
13736
13737 elif test "x$enable_ocaml" = xyes; then :
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&5
13739 $as_echo "$as_me: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&6;}
13740
13741 fi
13742
13743 fi
13744
13745 if test -n "$SUBSTITUTED_OCAMLFIND"; then :
13746 if test -z "$enable_ocaml"; then :
13747 enable_ocaml=no
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it depends on ocamlfind" >&5
13750 $as_echo "$as_me: ocaml scripting is disabled because it depends on ocamlfind" >&6;}
13751
13752 elif test "x$enable_ocaml" != xno; then :
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&5
13754 $as_echo "$as_me: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&6;}
13755
13756 fi
13757
13758 fi
13759
13760 if test "x$CAMLP4" = xno; then :
13761 if test -z "$enable_ocaml"; then :
13762 enable_ocaml=no
13763
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it requires camlp4 which is not available" >&5
13765 $as_echo "$as_me: ocaml scripting is disabled because it requires camlp4 which is not available" >&6;}
13766
13767 elif test "x$enable_ocaml" != xno; then :
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: camlp4 is not found but may be required when ocaml scripts are used" >&5
13769 $as_echo "$as_me: warning: camlp4 is not found but may be required when ocaml scripts are used" >&6;}
13770
13771 fi
13772
13773 fi
13774
13775 if test "x$enable_ocaml" = xno; then :
13776 FEATURE_dynlink=0
13777
13778 LOCALLIB_dynlink=0
13779
13780 FLAGS_dynlink=
13781
13782 MODULES_dynlink=
13783
13784 MODULESOPT_dynlink=
13785
13786 PATH_dynlink=
13787
13788 OCAMLCOCCI_MODULE=No_prepare_ocamlcocci
13789
13790 OCAMLCOCCI_FILE=no_prepare_ocamlcocci.ml
13791
13792
13793 else
13794 enable_ocaml=yes
13795
13796 OCAMLCOCCI_MODULE=Yes_prepare_ocamlcocci
13797
13798 OCAMLCOCCI_FILE=yes_prepare_ocamlcocci.ml
13799
13800
13801 fi
13802
13803
13804
13805 # Check whether --enable-python was given.
13806 if test "${enable_python+set}" = set; then :
13807 enableval=$enable_python;
13808 fi
13809
13810 if test "x$enable_python" != xno; then :
13811 if test -n "$enable_python" -a -z "$enable_pycaml"; then :
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: skipped the selection of a global pycaml module because --enable-python is given explicitly but --enable-pycaml is not." >&5
13813 $as_echo "$as_me: skipped the selection of a global pycaml module because --enable-python is given explicitly but --enable-pycaml is not." >&6;}
13814 enable_pycaml=no
13815
13816
13817 fi
13818
13819 if test -z "$PYVER"; then :
13820
13821
13822
13823 # Check whether --with-python was given.
13824 if test "${with_python+set}" = set; then :
13825 withval=$with_python;
13826 fi
13827
13828 with_PYTHON="$with_python"
13829
13830 if test -n "$with_PYTHON" -a "x$with_PYTHON" != xno -a "x$with_PYTHON" != xyes; then :
13831 PYTHON="$with_PYTHON"
13832
13833
13834 else
13835 PYTHON="python"
13836
13837
13838 fi
13839
13840 if test "x$with_PYTHON" = xno; then :
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: python is disabled explicitly" >&5
13842 $as_echo "$as_me: python is disabled explicitly" >&6;}
13843 PYTHON=no
13844
13845
13846 else
13847 if test "x$PYTHON" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then :
13848
13849
13850
13851
13852
13853
13854
13855 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13856 if test -n "$ac_tool_prefix"; then
13857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13858 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13860 $as_echo_n "checking for $ac_word... " >&6; }
13861 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13862 $as_echo_n "(cached) " >&6
13863 else
13864 case $PKG_CONFIG in
13865 [\\/]* | ?:[\\/]*)
13866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13867 ;;
13868 *)
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13871 do
13872 IFS=$as_save_IFS
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
13875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13878 break 2
13879 fi
13880 done
13881 done
13882 IFS=$as_save_IFS
13883
13884 ;;
13885 esac
13886 fi
13887 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13888 if test -n "$PKG_CONFIG"; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13890 $as_echo "$PKG_CONFIG" >&6; }
13891 else
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893 $as_echo "no" >&6; }
13894 fi
13895
13896
13897 fi
13898 if test -z "$ac_cv_path_PKG_CONFIG"; then
13899 ac_pt_PKG_CONFIG=$PKG_CONFIG
13900 # Extract the first word of "pkg-config", so it can be a program name with args.
13901 set dummy pkg-config; ac_word=$2
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903 $as_echo_n "checking for $ac_word... " >&6; }
13904 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 case $ac_pt_PKG_CONFIG in
13908 [\\/]* | ?:[\\/]*)
13909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13910 ;;
13911 *)
13912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913 for as_dir in $PATH
13914 do
13915 IFS=$as_save_IFS
13916 test -z "$as_dir" && as_dir=.
13917 for ac_exec_ext in '' $ac_executable_extensions; do
13918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13919 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13921 break 2
13922 fi
13923 done
13924 done
13925 IFS=$as_save_IFS
13926
13927 ;;
13928 esac
13929 fi
13930 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13931 if test -n "$ac_pt_PKG_CONFIG"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13933 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13934 else
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936 $as_echo "no" >&6; }
13937 fi
13938
13939 if test "x$ac_pt_PKG_CONFIG" = x; then
13940 PKG_CONFIG=""
13941 else
13942 case $cross_compiling:$ac_tool_warned in
13943 yes:)
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13946 ac_tool_warned=yes ;;
13947 esac
13948 PKG_CONFIG=$ac_pt_PKG_CONFIG
13949 fi
13950 else
13951 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13952 fi
13953
13954 fi
13955 if test -n "$PKG_CONFIG"; then
13956 _pkg_min_version=0.9.0
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13958 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13959 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13961 $as_echo "yes" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13965 PKG_CONFIG=""
13966 fi
13967 fi
13968
13969 elif test "x$PYTHON" = xocamllex -a "xPYTHON" = xOCAMLLEX; then :
13970 # checking for ocamllex
13971 if test -n "$ac_tool_prefix"; then
13972 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
13973 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13975 $as_echo_n "checking for $ac_word... " >&6; }
13976 if ${ac_cv_path_OCAMLLEX+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 case $OCAMLLEX in
13980 [\\/]* | ?:[\\/]*)
13981 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
13982 ;;
13983 *)
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13986 do
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 break 2
13994 fi
13995 done
13996 done
13997 IFS=$as_save_IFS
13998
13999 ;;
14000 esac
14001 fi
14002 OCAMLLEX=$ac_cv_path_OCAMLLEX
14003 if test -n "$OCAMLLEX"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
14005 $as_echo "$OCAMLLEX" >&6; }
14006 else
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14009 fi
14010
14011
14012 fi
14013 if test -z "$ac_cv_path_OCAMLLEX"; then
14014 ac_pt_OCAMLLEX=$OCAMLLEX
14015 # Extract the first word of "ocamllex", so it can be a program name with args.
14016 set dummy ocamllex; ac_word=$2
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14018 $as_echo_n "checking for $ac_word... " >&6; }
14019 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 case $ac_pt_OCAMLLEX in
14023 [\\/]* | ?:[\\/]*)
14024 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
14025 ;;
14026 *)
14027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028 for as_dir in $PATH
14029 do
14030 IFS=$as_save_IFS
14031 test -z "$as_dir" && as_dir=.
14032 for ac_exec_ext in '' $ac_executable_extensions; do
14033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14034 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
14035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 break 2
14037 fi
14038 done
14039 done
14040 IFS=$as_save_IFS
14041
14042 ;;
14043 esac
14044 fi
14045 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
14046 if test -n "$ac_pt_OCAMLLEX"; then
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
14048 $as_echo "$ac_pt_OCAMLLEX" >&6; }
14049 else
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14052 fi
14053
14054 if test "x$ac_pt_OCAMLLEX" = x; then
14055 OCAMLLEX="no"
14056 else
14057 case $cross_compiling:$ac_tool_warned in
14058 yes:)
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14061 ac_tool_warned=yes ;;
14062 esac
14063 OCAMLLEX=$ac_pt_OCAMLLEX
14064 fi
14065 else
14066 OCAMLLEX="$ac_cv_path_OCAMLLEX"
14067 fi
14068
14069 if test "$OCAMLLEX" != "no"; then
14070 if test -n "$ac_tool_prefix"; then
14071 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
14072 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14074 $as_echo_n "checking for $ac_word... " >&6; }
14075 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 case $OCAMLLEXDOTOPT in
14079 [\\/]* | ?:[\\/]*)
14080 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
14081 ;;
14082 *)
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14085 do
14086 IFS=$as_save_IFS
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14090 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092 break 2
14093 fi
14094 done
14095 done
14096 IFS=$as_save_IFS
14097
14098 ;;
14099 esac
14100 fi
14101 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
14102 if test -n "$OCAMLLEXDOTOPT"; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
14104 $as_echo "$OCAMLLEXDOTOPT" >&6; }
14105 else
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107 $as_echo "no" >&6; }
14108 fi
14109
14110
14111 fi
14112 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
14113 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
14114 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
14115 set dummy ocamllex.opt; ac_word=$2
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14117 $as_echo_n "checking for $ac_word... " >&6; }
14118 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 case $ac_pt_OCAMLLEXDOTOPT in
14122 [\\/]* | ?:[\\/]*)
14123 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
14124 ;;
14125 *)
14126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127 for as_dir in $PATH
14128 do
14129 IFS=$as_save_IFS
14130 test -z "$as_dir" && as_dir=.
14131 for ac_exec_ext in '' $ac_executable_extensions; do
14132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14133 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14135 break 2
14136 fi
14137 done
14138 done
14139 IFS=$as_save_IFS
14140
14141 ;;
14142 esac
14143 fi
14144 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
14145 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
14147 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
14148 else
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150 $as_echo "no" >&6; }
14151 fi
14152
14153 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
14154 OCAMLLEXDOTOPT="no"
14155 else
14156 case $cross_compiling:$ac_tool_warned in
14157 yes:)
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14160 ac_tool_warned=yes ;;
14161 esac
14162 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
14163 fi
14164 else
14165 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
14166 fi
14167
14168 if test "$OCAMLLEXDOTOPT" != "no"; then
14169 OCAMLLEX=$OCAMLLEXDOTOPT
14170 fi
14171 fi
14172
14173
14174
14175 elif test "x$PYTHON" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then :
14176 if test -n "$ac_tool_prefix"; then
14177 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
14178 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14180 $as_echo_n "checking for $ac_word... " >&6; }
14181 if ${ac_cv_path_OCAMLYACC+:} false; then :
14182 $as_echo_n "(cached) " >&6
14183 else
14184 case $OCAMLYACC in
14185 [\\/]* | ?:[\\/]*)
14186 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
14187 ;;
14188 *)
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190 for as_dir in $PATH
14191 do
14192 IFS=$as_save_IFS
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
14195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14196 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14198 break 2
14199 fi
14200 done
14201 done
14202 IFS=$as_save_IFS
14203
14204 ;;
14205 esac
14206 fi
14207 OCAMLYACC=$ac_cv_path_OCAMLYACC
14208 if test -n "$OCAMLYACC"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
14210 $as_echo "$OCAMLYACC" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14214 fi
14215
14216
14217 fi
14218 if test -z "$ac_cv_path_OCAMLYACC"; then
14219 ac_pt_OCAMLYACC=$OCAMLYACC
14220 # Extract the first word of "ocamlyacc", so it can be a program name with args.
14221 set dummy ocamlyacc; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 case $ac_pt_OCAMLYACC in
14228 [\\/]* | ?:[\\/]*)
14229 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
14230 ;;
14231 *)
14232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233 for as_dir in $PATH
14234 do
14235 IFS=$as_save_IFS
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
14238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 break 2
14242 fi
14243 done
14244 done
14245 IFS=$as_save_IFS
14246
14247 ;;
14248 esac
14249 fi
14250 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
14251 if test -n "$ac_pt_OCAMLYACC"; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
14253 $as_echo "$ac_pt_OCAMLYACC" >&6; }
14254 else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256 $as_echo "no" >&6; }
14257 fi
14258
14259 if test "x$ac_pt_OCAMLYACC" = x; then
14260 OCAMLYACC="no"
14261 else
14262 case $cross_compiling:$ac_tool_warned in
14263 yes:)
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14266 ac_tool_warned=yes ;;
14267 esac
14268 OCAMLYACC=$ac_pt_OCAMLYACC
14269 fi
14270 else
14271 OCAMLYACC="$ac_cv_path_OCAMLYACC"
14272 fi
14273
14274
14275
14276
14277 else
14278 if test -n "$ac_tool_prefix"; then
14279 # Extract the first word of "${ac_tool_prefix}[$]PYTHON", so it can be a program name with args.
14280 set dummy ${ac_tool_prefix}$PYTHON; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_path_PYTHON+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 case $PYTHON in
14287 [\\/]* | ?:[\\/]*)
14288 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14289 ;;
14290 *)
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14293 do
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14301 fi
14302 done
14303 done
14304 IFS=$as_save_IFS
14305
14306 ;;
14307 esac
14308 fi
14309 PYTHON=$ac_cv_path_PYTHON
14310 if test -n "$PYTHON"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14312 $as_echo "$PYTHON" >&6; }
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316 fi
14317
14318
14319 fi
14320 if test -z "$ac_cv_path_PYTHON"; then
14321 ac_pt_PYTHON=$PYTHON
14322 # Extract the first word of "[$]PYTHON", so it can be a program name with args.
14323 set dummy $PYTHON; ac_word=$2
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14325 $as_echo_n "checking for $ac_word... " >&6; }
14326 if ${ac_cv_path_ac_pt_PYTHON+:} false; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 case $ac_pt_PYTHON in
14330 [\\/]* | ?:[\\/]*)
14331 ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path.
14332 ;;
14333 *)
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14336 do
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14341 ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345 done
14346 done
14347 IFS=$as_save_IFS
14348
14349 ;;
14350 esac
14351 fi
14352 ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON
14353 if test -n "$ac_pt_PYTHON"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5
14355 $as_echo "$ac_pt_PYTHON" >&6; }
14356 else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358 $as_echo "no" >&6; }
14359 fi
14360
14361 if test "x$ac_pt_PYTHON" = x; then
14362 PYTHON=""
14363 else
14364 case $cross_compiling:$ac_tool_warned in
14365 yes:)
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14368 ac_tool_warned=yes ;;
14369 esac
14370 PYTHON=$ac_pt_PYTHON
14371 fi
14372 else
14373 PYTHON="$ac_cv_path_PYTHON"
14374 fi
14375
14376
14377 fi
14378
14379
14380 fi
14381
14382 if test -z "$PYTHON" -o "x$PYTHON" = xno; then :
14383 if test "x$with_PYTHON" = xyes; then :
14384 as_fn_error $? "--with=python is given explicitly but not found" "$LINENO" 5
14385
14386 fi
14387
14388 if test -n ""; then :
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: python not found. Trying substitute ." >&5
14390 $as_echo "$as_me: python not found. Trying substitute ." >&6;}
14391 PYTHON=""
14392
14393 if test "xpython" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then :
14394
14395
14396
14397
14398
14399
14400
14401 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14402 if test -n "$ac_tool_prefix"; then
14403 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14404 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14406 $as_echo_n "checking for $ac_word... " >&6; }
14407 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 case $PKG_CONFIG in
14411 [\\/]* | ?:[\\/]*)
14412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14413 ;;
14414 *)
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14417 do
14418 IFS=$as_save_IFS
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
14421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14424 break 2
14425 fi
14426 done
14427 done
14428 IFS=$as_save_IFS
14429
14430 ;;
14431 esac
14432 fi
14433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14434 if test -n "$PKG_CONFIG"; then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14436 $as_echo "$PKG_CONFIG" >&6; }
14437 else
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14440 fi
14441
14442
14443 fi
14444 if test -z "$ac_cv_path_PKG_CONFIG"; then
14445 ac_pt_PKG_CONFIG=$PKG_CONFIG
14446 # Extract the first word of "pkg-config", so it can be a program name with args.
14447 set dummy pkg-config; ac_word=$2
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14449 $as_echo_n "checking for $ac_word... " >&6; }
14450 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453 case $ac_pt_PKG_CONFIG in
14454 [\\/]* | ?:[\\/]*)
14455 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14456 ;;
14457 *)
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14460 do
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
14464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14465 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 break 2
14468 fi
14469 done
14470 done
14471 IFS=$as_save_IFS
14472
14473 ;;
14474 esac
14475 fi
14476 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14477 if test -n "$ac_pt_PKG_CONFIG"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14479 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14480 else
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14483 fi
14484
14485 if test "x$ac_pt_PKG_CONFIG" = x; then
14486 PKG_CONFIG=""
14487 else
14488 case $cross_compiling:$ac_tool_warned in
14489 yes:)
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14492 ac_tool_warned=yes ;;
14493 esac
14494 PKG_CONFIG=$ac_pt_PKG_CONFIG
14495 fi
14496 else
14497 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14498 fi
14499
14500 fi
14501 if test -n "$PKG_CONFIG"; then
14502 _pkg_min_version=0.9.0
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14504 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14505 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14507 $as_echo "yes" >&6; }
14508 else
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14511 PKG_CONFIG=""
14512 fi
14513 fi
14514
14515 elif test "xpython" = xocamllex -a "xPYTHON" = xOCAMLLEX; then :
14516 # checking for ocamllex
14517 if test -n "$ac_tool_prefix"; then
14518 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
14519 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14521 $as_echo_n "checking for $ac_word... " >&6; }
14522 if ${ac_cv_path_OCAMLLEX+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524 else
14525 case $OCAMLLEX in
14526 [\\/]* | ?:[\\/]*)
14527 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
14528 ;;
14529 *)
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531 for as_dir in $PATH
14532 do
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
14536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14537 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
14538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14539 break 2
14540 fi
14541 done
14542 done
14543 IFS=$as_save_IFS
14544
14545 ;;
14546 esac
14547 fi
14548 OCAMLLEX=$ac_cv_path_OCAMLLEX
14549 if test -n "$OCAMLLEX"; then
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
14551 $as_echo "$OCAMLLEX" >&6; }
14552 else
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 $as_echo "no" >&6; }
14555 fi
14556
14557
14558 fi
14559 if test -z "$ac_cv_path_OCAMLLEX"; then
14560 ac_pt_OCAMLLEX=$OCAMLLEX
14561 # Extract the first word of "ocamllex", so it can be a program name with args.
14562 set dummy ocamllex; ac_word=$2
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 $as_echo_n "checking for $ac_word... " >&6; }
14565 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 case $ac_pt_OCAMLLEX in
14569 [\\/]* | ?:[\\/]*)
14570 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
14571 ;;
14572 *)
14573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574 for as_dir in $PATH
14575 do
14576 IFS=$as_save_IFS
14577 test -z "$as_dir" && as_dir=.
14578 for ac_exec_ext in '' $ac_executable_extensions; do
14579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14580 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
14581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14582 break 2
14583 fi
14584 done
14585 done
14586 IFS=$as_save_IFS
14587
14588 ;;
14589 esac
14590 fi
14591 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
14592 if test -n "$ac_pt_OCAMLLEX"; then
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
14594 $as_echo "$ac_pt_OCAMLLEX" >&6; }
14595 else
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597 $as_echo "no" >&6; }
14598 fi
14599
14600 if test "x$ac_pt_OCAMLLEX" = x; then
14601 OCAMLLEX="no"
14602 else
14603 case $cross_compiling:$ac_tool_warned in
14604 yes:)
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14607 ac_tool_warned=yes ;;
14608 esac
14609 OCAMLLEX=$ac_pt_OCAMLLEX
14610 fi
14611 else
14612 OCAMLLEX="$ac_cv_path_OCAMLLEX"
14613 fi
14614
14615 if test "$OCAMLLEX" != "no"; then
14616 if test -n "$ac_tool_prefix"; then
14617 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
14618 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14620 $as_echo_n "checking for $ac_word... " >&6; }
14621 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
14622 $as_echo_n "(cached) " >&6
14623 else
14624 case $OCAMLLEXDOTOPT in
14625 [\\/]* | ?:[\\/]*)
14626 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
14627 ;;
14628 *)
14629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14630 for as_dir in $PATH
14631 do
14632 IFS=$as_save_IFS
14633 test -z "$as_dir" && as_dir=.
14634 for ac_exec_ext in '' $ac_executable_extensions; do
14635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14636 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14638 break 2
14639 fi
14640 done
14641 done
14642 IFS=$as_save_IFS
14643
14644 ;;
14645 esac
14646 fi
14647 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
14648 if test -n "$OCAMLLEXDOTOPT"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
14650 $as_echo "$OCAMLLEXDOTOPT" >&6; }
14651 else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 $as_echo "no" >&6; }
14654 fi
14655
14656
14657 fi
14658 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
14659 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
14660 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
14661 set dummy ocamllex.opt; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 $as_echo_n "checking for $ac_word... " >&6; }
14664 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 case $ac_pt_OCAMLLEXDOTOPT in
14668 [\\/]* | ?:[\\/]*)
14669 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
14670 ;;
14671 *)
14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673 for as_dir in $PATH
14674 do
14675 IFS=$as_save_IFS
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14679 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14681 break 2
14682 fi
14683 done
14684 done
14685 IFS=$as_save_IFS
14686
14687 ;;
14688 esac
14689 fi
14690 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
14691 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
14693 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
14694 else
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14696 $as_echo "no" >&6; }
14697 fi
14698
14699 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
14700 OCAMLLEXDOTOPT="no"
14701 else
14702 case $cross_compiling:$ac_tool_warned in
14703 yes:)
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14706 ac_tool_warned=yes ;;
14707 esac
14708 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
14709 fi
14710 else
14711 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
14712 fi
14713
14714 if test "$OCAMLLEXDOTOPT" != "no"; then
14715 OCAMLLEX=$OCAMLLEXDOTOPT
14716 fi
14717 fi
14718
14719
14720
14721 elif test "xpython" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then :
14722 if test -n "$ac_tool_prefix"; then
14723 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
14724 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14726 $as_echo_n "checking for $ac_word... " >&6; }
14727 if ${ac_cv_path_OCAMLYACC+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 case $OCAMLYACC in
14731 [\\/]* | ?:[\\/]*)
14732 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
14733 ;;
14734 *)
14735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14736 for as_dir in $PATH
14737 do
14738 IFS=$as_save_IFS
14739 test -z "$as_dir" && as_dir=.
14740 for ac_exec_ext in '' $ac_executable_extensions; do
14741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14742 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14744 break 2
14745 fi
14746 done
14747 done
14748 IFS=$as_save_IFS
14749
14750 ;;
14751 esac
14752 fi
14753 OCAMLYACC=$ac_cv_path_OCAMLYACC
14754 if test -n "$OCAMLYACC"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
14756 $as_echo "$OCAMLYACC" >&6; }
14757 else
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14760 fi
14761
14762
14763 fi
14764 if test -z "$ac_cv_path_OCAMLYACC"; then
14765 ac_pt_OCAMLYACC=$OCAMLYACC
14766 # Extract the first word of "ocamlyacc", so it can be a program name with args.
14767 set dummy ocamlyacc; ac_word=$2
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 $as_echo_n "checking for $ac_word... " >&6; }
14770 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 case $ac_pt_OCAMLYACC in
14774 [\\/]* | ?:[\\/]*)
14775 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
14776 ;;
14777 *)
14778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14779 for as_dir in $PATH
14780 do
14781 IFS=$as_save_IFS
14782 test -z "$as_dir" && as_dir=.
14783 for ac_exec_ext in '' $ac_executable_extensions; do
14784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14785 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14787 break 2
14788 fi
14789 done
14790 done
14791 IFS=$as_save_IFS
14792
14793 ;;
14794 esac
14795 fi
14796 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
14797 if test -n "$ac_pt_OCAMLYACC"; then
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
14799 $as_echo "$ac_pt_OCAMLYACC" >&6; }
14800 else
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802 $as_echo "no" >&6; }
14803 fi
14804
14805 if test "x$ac_pt_OCAMLYACC" = x; then
14806 OCAMLYACC="no"
14807 else
14808 case $cross_compiling:$ac_tool_warned in
14809 yes:)
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14812 ac_tool_warned=yes ;;
14813 esac
14814 OCAMLYACC=$ac_pt_OCAMLYACC
14815 fi
14816 else
14817 OCAMLYACC="$ac_cv_path_OCAMLYACC"
14818 fi
14819
14820
14821
14822
14823 else
14824 if test -n "$ac_tool_prefix"; then
14825 # Extract the first word of "${ac_tool_prefix}python", so it can be a program name with args.
14826 set dummy ${ac_tool_prefix}python; ac_word=$2
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14828 $as_echo_n "checking for $ac_word... " >&6; }
14829 if ${ac_cv_path_PYTHON+:} false; then :
14830 $as_echo_n "(cached) " >&6
14831 else
14832 case $PYTHON in
14833 [\\/]* | ?:[\\/]*)
14834 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14835 ;;
14836 *)
14837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14838 for as_dir in $PATH
14839 do
14840 IFS=$as_save_IFS
14841 test -z "$as_dir" && as_dir=.
14842 for ac_exec_ext in '' $ac_executable_extensions; do
14843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14844 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14846 break 2
14847 fi
14848 done
14849 done
14850 IFS=$as_save_IFS
14851
14852 ;;
14853 esac
14854 fi
14855 PYTHON=$ac_cv_path_PYTHON
14856 if test -n "$PYTHON"; then
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14858 $as_echo "$PYTHON" >&6; }
14859 else
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14861 $as_echo "no" >&6; }
14862 fi
14863
14864
14865 fi
14866 if test -z "$ac_cv_path_PYTHON"; then
14867 ac_pt_PYTHON=$PYTHON
14868 # Extract the first word of "python", so it can be a program name with args.
14869 set dummy python; ac_word=$2
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14871 $as_echo_n "checking for $ac_word... " >&6; }
14872 if ${ac_cv_path_ac_pt_PYTHON+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 case $ac_pt_PYTHON in
14876 [\\/]* | ?:[\\/]*)
14877 ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path.
14878 ;;
14879 *)
14880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $PATH
14882 do
14883 IFS=$as_save_IFS
14884 test -z "$as_dir" && as_dir=.
14885 for ac_exec_ext in '' $ac_executable_extensions; do
14886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887 ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14889 break 2
14890 fi
14891 done
14892 done
14893 IFS=$as_save_IFS
14894
14895 ;;
14896 esac
14897 fi
14898 ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON
14899 if test -n "$ac_pt_PYTHON"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5
14901 $as_echo "$ac_pt_PYTHON" >&6; }
14902 else
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 $as_echo "no" >&6; }
14905 fi
14906
14907 if test "x$ac_pt_PYTHON" = x; then
14908 PYTHON=""
14909 else
14910 case $cross_compiling:$ac_tool_warned in
14911 yes:)
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14914 ac_tool_warned=yes ;;
14915 esac
14916 PYTHON=$ac_pt_PYTHON
14917 fi
14918 else
14919 PYTHON="$ac_cv_path_PYTHON"
14920 fi
14921
14922
14923 fi
14924
14925 SUBSTITUTED_PYTHON=yes
14926
14927
14928 fi
14929
14930 fi
14931
14932 if test -z "$PYTHON"; then :
14933 PYTHON=no
14934
14935 fi
14936
14937
14938 if test "x$PYTHON" = xno -a -z "$with_python"; then :
14939 for ac_prog in python python3 python3.2 python3.1 python2 python2.7 python2.6 python2.5
14940 do
14941 # Extract the first word of "$ac_prog", so it can be a program name with args.
14942 set dummy $ac_prog; ac_word=$2
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14944 $as_echo_n "checking for $ac_word... " >&6; }
14945 if ${ac_cv_path_PYTHON+:} false; then :
14946 $as_echo_n "(cached) " >&6
14947 else
14948 case $PYTHON in
14949 [\\/]* | ?:[\\/]*)
14950 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14951 ;;
14952 *)
14953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954 for as_dir in $PATH
14955 do
14956 IFS=$as_save_IFS
14957 test -z "$as_dir" && as_dir=.
14958 for ac_exec_ext in '' $ac_executable_extensions; do
14959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14960 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14962 break 2
14963 fi
14964 done
14965 done
14966 IFS=$as_save_IFS
14967
14968 ;;
14969 esac
14970 fi
14971 PYTHON=$ac_cv_path_PYTHON
14972 if test -n "$PYTHON"; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14974 $as_echo "$PYTHON" >&6; }
14975 else
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14977 $as_echo "no" >&6; }
14978 fi
14979
14980
14981 test -n "$PYTHON" && break
14982 done
14983
14984 if test -z "$PYTHON"; then :
14985 PYTHON=no
14986
14987 fi
14988
14989 fi
14990
14991 if test "x$PYTHON" = xno -a -n "$with_python" -a "x$with_python" != xyes; then :
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: $with_python is not a found as tool, therefore interpreted as version" >&5
14993 $as_echo "$as_me: $with_python is not a found as tool, therefore interpreted as version" >&6;}
14994 PYVER="$with_python"
14995
14996
14997 fi
14998
14999 if test "x$PYTHON" != xno; then :
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python version" >&5
15001 $as_echo_n "checking python version... " >&6; }
15002 PYVER=`$PYTHON -c "import sys; print(sys.version[:3])"`
15003 if test -n "$PYVER"; then :
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVER found" >&5
15005 $as_echo "$PYVER found" >&6; }
15006 else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15008 $as_echo "failed" >&6; }
15009 fi
15010
15011
15012 fi
15013
15014 else
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: python version assumed to be $PYVER" >&5
15016 $as_echo "$as_me: python version assumed to be $PYVER" >&6;}
15017
15018 fi
15019
15020 PYVER_MAJOR=${PYVER%%.*}
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: python major version: $PYVER_MAJOR" >&5
15023 $as_echo "$as_me: python major version: $PYVER_MAJOR" >&6;}
15024
15025
15026 if test -z "$PYVER"; then :
15027 if test "x$enable_python" = xyes; then :
15028 as_fn_error $? "python scripting is enabled explicitly but the version of python could not be determined" "$LINENO" 5
15029
15030 fi
15031
15032 else
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for the corresponding python library" >&5
15034 $as_echo "$as_me: looking for the corresponding python library" >&6;}
15035
15036 pkg_failed=no
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
15038 $as_echo_n "checking for PYTHON... " >&6; }
15039
15040 if test -n "$PYTHON_CFLAGS"; then
15041 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
15042 elif test -n "$PKG_CONFIG"; then
15043 if test -n "$PKG_CONFIG" && \
15044 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5
15045 ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5
15046 ac_status=$?
15047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15048 test $ac_status = 0; }; then
15049 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-$PYVER" 2>/dev/null`
15050 test "x$?" != "x0" && pkg_failed=yes
15051 else
15052 pkg_failed=yes
15053 fi
15054 else
15055 pkg_failed=untried
15056 fi
15057 if test -n "$PYTHON_LIBS"; then
15058 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
15059 elif test -n "$PKG_CONFIG"; then
15060 if test -n "$PKG_CONFIG" && \
15061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5
15062 ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5
15063 ac_status=$?
15064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15065 test $ac_status = 0; }; then
15066 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-$PYVER" 2>/dev/null`
15067 test "x$?" != "x0" && pkg_failed=yes
15068 else
15069 pkg_failed=yes
15070 fi
15071 else
15072 pkg_failed=untried
15073 fi
15074
15075
15076
15077 if test $pkg_failed = yes; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079 $as_echo "no" >&6; }
15080
15081 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15082 _pkg_short_errors_supported=yes
15083 else
15084 _pkg_short_errors_supported=no
15085 fi
15086 if test $_pkg_short_errors_supported = yes; then
15087 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-$PYVER" 2>&1`
15088 else
15089 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-$PYVER" 2>&1`
15090 fi
15091 # Put the nasty error message in config.log where it belongs
15092 echo "$PYTHON_PKG_ERRORS" >&5
15093
15094 HAVE_PYTHON=no
15095
15096 elif test $pkg_failed = untried; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15098 $as_echo "no" >&6; }
15099 HAVE_PYTHON=no
15100
15101 else
15102 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
15103 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15105 $as_echo "yes" >&6; }
15106 HAVE_PYTHON=yes
15107
15108 fi
15109
15110 if test "x$HAVE_PYTHON" != xyes -a "x$enable_python" != xyes; then :
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: trying the default python library as fallback" >&5
15112 $as_echo "$as_me: trying the default python library as fallback" >&6;}
15113
15114 pkg_failed=no
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
15116 $as_echo_n "checking for PYTHON... " >&6; }
15117
15118 if test -n "$PYTHON_CFLAGS"; then
15119 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
15120 elif test -n "$PKG_CONFIG"; then
15121 if test -n "$PKG_CONFIG" && \
15122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
15123 ($PKG_CONFIG --exists --print-errors "python") 2>&5
15124 ac_status=$?
15125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15126 test $ac_status = 0; }; then
15127 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null`
15128 test "x$?" != "x0" && pkg_failed=yes
15129 else
15130 pkg_failed=yes
15131 fi
15132 else
15133 pkg_failed=untried
15134 fi
15135 if test -n "$PYTHON_LIBS"; then
15136 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
15137 elif test -n "$PKG_CONFIG"; then
15138 if test -n "$PKG_CONFIG" && \
15139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
15140 ($PKG_CONFIG --exists --print-errors "python") 2>&5
15141 ac_status=$?
15142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15143 test $ac_status = 0; }; then
15144 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null`
15145 test "x$?" != "x0" && pkg_failed=yes
15146 else
15147 pkg_failed=yes
15148 fi
15149 else
15150 pkg_failed=untried
15151 fi
15152
15153
15154
15155 if test $pkg_failed = yes; then
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15158
15159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15160 _pkg_short_errors_supported=yes
15161 else
15162 _pkg_short_errors_supported=no
15163 fi
15164 if test $_pkg_short_errors_supported = yes; then
15165 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python" 2>&1`
15166 else
15167 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python" 2>&1`
15168 fi
15169 # Put the nasty error message in config.log where it belongs
15170 echo "$PYTHON_PKG_ERRORS" >&5
15171
15172 HAVE_PYTHON=no
15173
15174 elif test $pkg_failed = untried; then
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15176 $as_echo "no" >&6; }
15177 HAVE_PYTHON=no
15178
15179 else
15180 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
15181 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183 $as_echo "yes" >&6; }
15184 HAVE_PYTHON=yes
15185
15186 fi
15187
15188 fi
15189
15190 fi
15191
15192 fi
15193
15194 if test -z "$enable_python"; then :
15195 if test "x$HAVE_PYTHON" = xyes; then :
15196 enable_python=yes
15197
15198
15199 else
15200 enable_python=no
15201
15202
15203 fi
15204
15205 fi
15206
15207 if test "x$enable_python" != xno; then :
15208 if test "x$HAVE_PYTHON" = xyes; then :
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: support for python scripts is enabled" >&5
15210 $as_echo "$as_me: support for python scripts is enabled" >&6;}
15211
15212 else
15213 as_fn_error $? "the python scripts feature is enabled but the pkg-config python library is not found" "$LINENO" 5
15214
15215 fi
15216
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pycaml" >&5
15218 $as_echo "$as_me: configuring package pycaml" >&6;}
15219 # Check whether --enable-pycaml was given.
15220 if test "${enable_pycaml+set}" = set; then :
15221 enableval=$enable_pycaml;
15222 fi
15223
15224
15225 if test "x$enable_pycaml" != xno; then :
15226
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pycaml" >&5
15228 $as_echo_n "checking for OCaml findlib package pycaml... " >&6; }
15229
15230 unset found
15231 unset pkg
15232 found=no
15233 for pkg in pycaml ; do
15234 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15236 $as_echo "found" >&6; }
15237 OCAML_PKG_pycaml=$pkg
15238 found=yes
15239 break
15240 fi
15241 done
15242 if test "$found" = "no" ; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15244 $as_echo "not found" >&6; }
15245 OCAML_PKG_pycaml=no
15246 fi
15247
15248
15249
15250 if test "x$OCAML_PKG_pycaml" != xno; then :
15251 PATH_pycaml=`$OCAMLFIND query pycaml 2>/dev/null`
15252
15253
15254 fi
15255
15256 GLOBAL_pycaml=$OCAML_PKG_pycaml
15257
15258
15259 if test "x$GLOBAL_pycaml" != xno; then :
15260 enable_pycaml=yes
15261
15262
15263 else
15264 if test "x$enable_pycaml" = xyes; then :
15265 as_fn_error $? "OCaml package pycaml is not available but requested explicitly" "$LINENO" 5
15266
15267 fi
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pycaml is not available" >&5
15269 $as_echo "$as_me: OCaml package pycaml is not available" >&6;}
15270 enable_pycaml=no
15271
15272
15273 fi
15274
15275 fi
15276
15277 if test "x$enable_pycaml" = xno; then :
15278 { pkgdir=; unset pkgdir;}
15279 pkgdir="$COCCI_OCAML_EXTERNAL/pycaml/"
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pycaml" >&5
15281 $as_echo_n "checking for a bundled substitute of pycaml... " >&6; }
15282 if test -d "$pkgdir"; then :
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15284 $as_echo "yes" >&6; }
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pycaml in $pkgdir" >&5
15286 $as_echo "$as_me: using bundled substitute for pycaml in $pkgdir" >&6;}
15287 enable_pycaml=local
15288
15289 PATH_pycaml="$pkgdir"
15290
15291
15292 else
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
15294 $as_echo "not available" >&6; }
15295 fi
15296
15297 fi
15298
15299 if test "x$enable_pycaml" != xno; then :
15300 FEATURE_pycaml=1
15301
15302 FLAGS_pycaml='$(FLAGS_pycaml)'
15303
15304 OPTFLAGS_pycaml='$(OPTFLAGS_pycaml)'
15305
15306
15307 if test "x$enable_pycaml" = xlocal; then :
15308 LOCALLIB_pycaml=1
15309
15310 MODULES_pycaml='$(LOCAL_pycaml)'
15311
15312 MODULESOPT_pycaml='$(LOCALOPT_pycaml)'
15313
15314
15315 if test -f "$PATH_pycaml/Makefile"; then :
15316 MAKE_pycaml=$PATH_pycaml
15317
15318
15319 else
15320 MAKE_pycaml=
15321
15322
15323 fi
15324
15325 else
15326 MODULES_pycaml='$(GLOBAL_pycaml)'
15327
15328 MODULESOPT_pycaml='$(GLOBALOPT_pycaml)'
15329
15330
15331 fi
15332
15333 fi
15334
15335 if test "x$enable_pycaml" = xno; then :
15336 as_fn_error $? "OCaml package pycaml is required. Please make sure it is available." "$LINENO" 5
15337
15338 fi
15339
15340 PYCOCCI_MODULE=Yes_pycocci
15341
15342 PYCOCCI_FILE=yes_pycocci.ml
15343
15344
15345 else
15346 FEATURE_pycaml=0
15347
15348 LOCALLIB_pycaml=0
15349
15350 FLAGS_pycaml=
15351
15352 MODULES_pycaml=
15353
15354 MODULESOPT_pycaml=
15355
15356 PATH_pycaml=
15357
15358
15359 PYCOCCI_MODULE=No_pycocci
15360
15361 PYCOCCI_FILE=no_pycocci.ml
15362
15363
15364 fi
15365
15366
15367 # Check whether --enable-pcre-syntax was given.
15368 if test "${enable_pcre_syntax+set}" = set; then :
15369 enableval=$enable_pcre_syntax;
15370 fi
15371
15372 if test "x$enable_pcre_syntax" != "xno"; then :
15373
15374 pkg_failed=no
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
15376 $as_echo_n "checking for PCRE... " >&6; }
15377
15378 if test -n "$PCRE_CFLAGS"; then
15379 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
15380 elif test -n "$PKG_CONFIG"; then
15381 if test -n "$PKG_CONFIG" && \
15382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
15383 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
15384 ac_status=$?
15385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15386 test $ac_status = 0; }; then
15387 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
15388 test "x$?" != "x0" && pkg_failed=yes
15389 else
15390 pkg_failed=yes
15391 fi
15392 else
15393 pkg_failed=untried
15394 fi
15395 if test -n "$PCRE_LIBS"; then
15396 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
15397 elif test -n "$PKG_CONFIG"; then
15398 if test -n "$PKG_CONFIG" && \
15399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
15400 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
15401 ac_status=$?
15402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15403 test $ac_status = 0; }; then
15404 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
15405 test "x$?" != "x0" && pkg_failed=yes
15406 else
15407 pkg_failed=yes
15408 fi
15409 else
15410 pkg_failed=untried
15411 fi
15412
15413
15414
15415 if test $pkg_failed = yes; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 $as_echo "no" >&6; }
15418
15419 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15420 _pkg_short_errors_supported=yes
15421 else
15422 _pkg_short_errors_supported=no
15423 fi
15424 if test $_pkg_short_errors_supported = yes; then
15425 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre" 2>&1`
15426 else
15427 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre" 2>&1`
15428 fi
15429 # Put the nasty error message in config.log where it belongs
15430 echo "$PCRE_PKG_ERRORS" >&5
15431
15432 HAVE_PCRE=no
15433
15434 elif test $pkg_failed = untried; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15436 $as_echo "no" >&6; }
15437 HAVE_PCRE=no
15438
15439 else
15440 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
15441 PCRE_LIBS=$pkg_cv_PCRE_LIBS
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15443 $as_echo "yes" >&6; }
15444 HAVE_PCRE=yes
15445
15446 fi
15447 if test -z "$enable_pcre_syntax" -a "x$HAVE_PCRE" != xyes; then :
15448 enable_pcre_syntax=no
15449
15450
15451 else
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pcre" >&5
15453 $as_echo "$as_me: configuring package pcre" >&6;}
15454 # Check whether --enable-pcre was given.
15455 if test "${enable_pcre+set}" = set; then :
15456 enableval=$enable_pcre;
15457 fi
15458
15459
15460 if test "x$enable_pcre" != xno; then :
15461
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pcre" >&5
15463 $as_echo_n "checking for OCaml findlib package pcre... " >&6; }
15464
15465 unset found
15466 unset pkg
15467 found=no
15468 for pkg in pcre ; do
15469 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15471 $as_echo "found" >&6; }
15472 OCAML_PKG_pcre=$pkg
15473 found=yes
15474 break
15475 fi
15476 done
15477 if test "$found" = "no" ; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15479 $as_echo "not found" >&6; }
15480 OCAML_PKG_pcre=no
15481 fi
15482
15483
15484
15485 if test "x$OCAML_PKG_pcre" != xno; then :
15486 PATH_pcre=`$OCAMLFIND query pcre 2>/dev/null`
15487
15488
15489 fi
15490
15491 GLOBAL_pcre=$OCAML_PKG_pcre
15492
15493
15494 if test "x$GLOBAL_pcre" != xno; then :
15495 enable_pcre=yes
15496
15497
15498 else
15499 if test "x$enable_pcre" = xyes; then :
15500 as_fn_error $? "OCaml package pcre is not available but requested explicitly" "$LINENO" 5
15501
15502 fi
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pcre is not available" >&5
15504 $as_echo "$as_me: OCaml package pcre is not available" >&6;}
15505 enable_pcre=no
15506
15507
15508 fi
15509
15510 fi
15511
15512 if test "x$enable_pcre" = xno; then :
15513 { pkgdir=; unset pkgdir;}
15514 pkgdir="$COCCI_OCAML_EXTERNAL/pcre/"
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pcre" >&5
15516 $as_echo_n "checking for a bundled substitute of pcre... " >&6; }
15517 if test -d "$pkgdir"; then :
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15519 $as_echo "yes" >&6; }
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pcre in $pkgdir" >&5
15521 $as_echo "$as_me: using bundled substitute for pcre in $pkgdir" >&6;}
15522 enable_pcre=local
15523
15524 PATH_pcre="$pkgdir"
15525
15526
15527 else
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
15529 $as_echo "not available" >&6; }
15530 fi
15531
15532 fi
15533
15534 if test "x$enable_pcre" != xno; then :
15535 FEATURE_pcre=1
15536
15537 FLAGS_pcre='$(FLAGS_pcre)'
15538
15539 OPTFLAGS_pcre='$(OPTFLAGS_pcre)'
15540
15541
15542 if test "x$enable_pcre" = xlocal; then :
15543 LOCALLIB_pcre=1
15544
15545 MODULES_pcre='$(LOCAL_pcre)'
15546
15547 MODULESOPT_pcre='$(LOCALOPT_pcre)'
15548
15549
15550 if test -f "$PATH_pcre/Makefile"; then :
15551 MAKE_pcre=$PATH_pcre
15552
15553
15554 else
15555 MAKE_pcre=
15556
15557
15558 fi
15559
15560 else
15561 MODULES_pcre='$(GLOBAL_pcre)'
15562
15563 MODULESOPT_pcre='$(GLOBALOPT_pcre)'
15564
15565
15566 fi
15567
15568 fi
15569 enable_pcre_syntax=$enable_pcre
15570
15571 fi
15572
15573 fi
15574
15575 if test "x$enable_pcre_syntax" != xno; then :
15576 if test "x$HAVE_PCRE" = xyes; then :
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: support for pcre syntax is enabled" >&5
15578 $as_echo "$as_me: support for pcre syntax is enabled" >&6;}
15579
15580 else
15581 as_fn_error $? "the pcre feature is enabled but the pkg-config libpcre library is not found" "$LINENO" 5
15582
15583 fi
15584
15585 REGEXP_MODULE=Regexp_pcre
15586
15587 REGEXP_FILE=regexp_pcre.ml
15588
15589
15590 else
15591 FEATURE_pcre=0
15592
15593 LOCALLIB_pcre=0
15594
15595 FLAGS_pcre=
15596
15597 MODULES_pcre=
15598
15599 MODULESOPT_pcre=
15600
15601 PATH_pcre=
15602
15603
15604 REGEXP_MODULE=Regexp_str
15605
15606 REGEXP_FILE=regexp_str.ml
15607
15608
15609 fi
15610
15611
15612
15613
15614 if test "$prefix" = "NONE"; then :
15615 prefix=$ac_default_prefix
15616 fi
15617
15618
15619
15620 SHAREDIR="${prefix}/share/coccinelle"
15621
15622
15623 if test "x$enable_python" != xno; then :
15624 FEATURE_PYTHON=1
15625
15626
15627 else
15628 FEATURE_PYTHON=0
15629
15630
15631 fi
15632
15633 if test "x$enable_ocaml" != xno; then :
15634 FEATURE_OCAML=1
15635
15636
15637 else
15638 FEATURE_OCAML=0
15639
15640
15641 fi
15642
15643 if test "x$OCAMLATLEAST311" = xyes -a "x$enable_ocaml" = xyes -a "x$OCAMLOPT" != xno; then :
15644 DYNLINK_IS_NATIVE=Dynlink.is_native
15645
15646
15647 else
15648 DYNLINK_IS_NATIVE=false
15649
15650
15651 fi
15652
15653
15654
15655 # Check whether --with-pdflatex was given.
15656 if test "${with_pdflatex+set}" = set; then :
15657 withval=$with_pdflatex;
15658 fi
15659
15660 with_PDFLATEX="$with_pdflatex"
15661
15662 if test -n "$with_PDFLATEX" -a "x$with_PDFLATEX" != xno -a "x$with_PDFLATEX" != xyes; then :
15663 PDFLATEX="$with_PDFLATEX"
15664
15665
15666 else
15667 PDFLATEX="pdflatex"
15668
15669
15670 fi
15671
15672 if test "x$with_PDFLATEX" = xno; then :
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex is disabled explicitly" >&5
15674 $as_echo "$as_me: pdflatex is disabled explicitly" >&6;}
15675 PDFLATEX=no
15676
15677
15678 else
15679 if test "x$PDFLATEX" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then :
15680
15681
15682
15683
15684
15685
15686
15687 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15688 if test -n "$ac_tool_prefix"; then
15689 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15690 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15692 $as_echo_n "checking for $ac_word... " >&6; }
15693 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 case $PKG_CONFIG in
15697 [\\/]* | ?:[\\/]*)
15698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15699 ;;
15700 *)
15701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702 for as_dir in $PATH
15703 do
15704 IFS=$as_save_IFS
15705 test -z "$as_dir" && as_dir=.
15706 for ac_exec_ext in '' $ac_executable_extensions; do
15707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15710 break 2
15711 fi
15712 done
15713 done
15714 IFS=$as_save_IFS
15715
15716 ;;
15717 esac
15718 fi
15719 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15720 if test -n "$PKG_CONFIG"; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15722 $as_echo "$PKG_CONFIG" >&6; }
15723 else
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725 $as_echo "no" >&6; }
15726 fi
15727
15728
15729 fi
15730 if test -z "$ac_cv_path_PKG_CONFIG"; then
15731 ac_pt_PKG_CONFIG=$PKG_CONFIG
15732 # Extract the first word of "pkg-config", so it can be a program name with args.
15733 set dummy pkg-config; ac_word=$2
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15735 $as_echo_n "checking for $ac_word... " >&6; }
15736 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15737 $as_echo_n "(cached) " >&6
15738 else
15739 case $ac_pt_PKG_CONFIG in
15740 [\\/]* | ?:[\\/]*)
15741 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15742 ;;
15743 *)
15744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15745 for as_dir in $PATH
15746 do
15747 IFS=$as_save_IFS
15748 test -z "$as_dir" && as_dir=.
15749 for ac_exec_ext in '' $ac_executable_extensions; do
15750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15751 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15753 break 2
15754 fi
15755 done
15756 done
15757 IFS=$as_save_IFS
15758
15759 ;;
15760 esac
15761 fi
15762 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15763 if test -n "$ac_pt_PKG_CONFIG"; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15765 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15766 else
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768 $as_echo "no" >&6; }
15769 fi
15770
15771 if test "x$ac_pt_PKG_CONFIG" = x; then
15772 PKG_CONFIG=""
15773 else
15774 case $cross_compiling:$ac_tool_warned in
15775 yes:)
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15778 ac_tool_warned=yes ;;
15779 esac
15780 PKG_CONFIG=$ac_pt_PKG_CONFIG
15781 fi
15782 else
15783 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15784 fi
15785
15786 fi
15787 if test -n "$PKG_CONFIG"; then
15788 _pkg_min_version=0.9.0
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15790 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15791 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15793 $as_echo "yes" >&6; }
15794 else
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15796 $as_echo "no" >&6; }
15797 PKG_CONFIG=""
15798 fi
15799 fi
15800
15801 elif test "x$PDFLATEX" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then :
15802 # checking for ocamllex
15803 if test -n "$ac_tool_prefix"; then
15804 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
15805 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15807 $as_echo_n "checking for $ac_word... " >&6; }
15808 if ${ac_cv_path_OCAMLLEX+:} false; then :
15809 $as_echo_n "(cached) " >&6
15810 else
15811 case $OCAMLLEX in
15812 [\\/]* | ?:[\\/]*)
15813 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
15814 ;;
15815 *)
15816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817 for as_dir in $PATH
15818 do
15819 IFS=$as_save_IFS
15820 test -z "$as_dir" && as_dir=.
15821 for ac_exec_ext in '' $ac_executable_extensions; do
15822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15823 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15825 break 2
15826 fi
15827 done
15828 done
15829 IFS=$as_save_IFS
15830
15831 ;;
15832 esac
15833 fi
15834 OCAMLLEX=$ac_cv_path_OCAMLLEX
15835 if test -n "$OCAMLLEX"; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
15837 $as_echo "$OCAMLLEX" >&6; }
15838 else
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15840 $as_echo "no" >&6; }
15841 fi
15842
15843
15844 fi
15845 if test -z "$ac_cv_path_OCAMLLEX"; then
15846 ac_pt_OCAMLLEX=$OCAMLLEX
15847 # Extract the first word of "ocamllex", so it can be a program name with args.
15848 set dummy ocamllex; ac_word=$2
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15850 $as_echo_n "checking for $ac_word... " >&6; }
15851 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 case $ac_pt_OCAMLLEX in
15855 [\\/]* | ?:[\\/]*)
15856 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
15857 ;;
15858 *)
15859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15861 do
15862 IFS=$as_save_IFS
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15866 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15868 break 2
15869 fi
15870 done
15871 done
15872 IFS=$as_save_IFS
15873
15874 ;;
15875 esac
15876 fi
15877 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
15878 if test -n "$ac_pt_OCAMLLEX"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
15880 $as_echo "$ac_pt_OCAMLLEX" >&6; }
15881 else
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 $as_echo "no" >&6; }
15884 fi
15885
15886 if test "x$ac_pt_OCAMLLEX" = x; then
15887 OCAMLLEX="no"
15888 else
15889 case $cross_compiling:$ac_tool_warned in
15890 yes:)
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15893 ac_tool_warned=yes ;;
15894 esac
15895 OCAMLLEX=$ac_pt_OCAMLLEX
15896 fi
15897 else
15898 OCAMLLEX="$ac_cv_path_OCAMLLEX"
15899 fi
15900
15901 if test "$OCAMLLEX" != "no"; then
15902 if test -n "$ac_tool_prefix"; then
15903 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
15904 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906 $as_echo_n "checking for $ac_word... " >&6; }
15907 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 case $OCAMLLEXDOTOPT in
15911 [\\/]* | ?:[\\/]*)
15912 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
15913 ;;
15914 *)
15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15917 do
15918 IFS=$as_save_IFS
15919 test -z "$as_dir" && as_dir=.
15920 for ac_exec_ext in '' $ac_executable_extensions; do
15921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15924 break 2
15925 fi
15926 done
15927 done
15928 IFS=$as_save_IFS
15929
15930 ;;
15931 esac
15932 fi
15933 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
15934 if test -n "$OCAMLLEXDOTOPT"; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
15936 $as_echo "$OCAMLLEXDOTOPT" >&6; }
15937 else
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 $as_echo "no" >&6; }
15940 fi
15941
15942
15943 fi
15944 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
15945 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
15946 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
15947 set dummy ocamllex.opt; ac_word=$2
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15949 $as_echo_n "checking for $ac_word... " >&6; }
15950 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
15951 $as_echo_n "(cached) " >&6
15952 else
15953 case $ac_pt_OCAMLLEXDOTOPT in
15954 [\\/]* | ?:[\\/]*)
15955 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
15956 ;;
15957 *)
15958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15959 for as_dir in $PATH
15960 do
15961 IFS=$as_save_IFS
15962 test -z "$as_dir" && as_dir=.
15963 for ac_exec_ext in '' $ac_executable_extensions; do
15964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15965 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15967 break 2
15968 fi
15969 done
15970 done
15971 IFS=$as_save_IFS
15972
15973 ;;
15974 esac
15975 fi
15976 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
15977 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
15979 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
15980 else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982 $as_echo "no" >&6; }
15983 fi
15984
15985 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
15986 OCAMLLEXDOTOPT="no"
15987 else
15988 case $cross_compiling:$ac_tool_warned in
15989 yes:)
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15992 ac_tool_warned=yes ;;
15993 esac
15994 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
15995 fi
15996 else
15997 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
15998 fi
15999
16000 if test "$OCAMLLEXDOTOPT" != "no"; then
16001 OCAMLLEX=$OCAMLLEXDOTOPT
16002 fi
16003 fi
16004
16005
16006
16007 elif test "x$PDFLATEX" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then :
16008 if test -n "$ac_tool_prefix"; then
16009 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
16010 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16012 $as_echo_n "checking for $ac_word... " >&6; }
16013 if ${ac_cv_path_OCAMLYACC+:} false; then :
16014 $as_echo_n "(cached) " >&6
16015 else
16016 case $OCAMLYACC in
16017 [\\/]* | ?:[\\/]*)
16018 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
16019 ;;
16020 *)
16021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16022 for as_dir in $PATH
16023 do
16024 IFS=$as_save_IFS
16025 test -z "$as_dir" && as_dir=.
16026 for ac_exec_ext in '' $ac_executable_extensions; do
16027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16028 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
16029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16030 break 2
16031 fi
16032 done
16033 done
16034 IFS=$as_save_IFS
16035
16036 ;;
16037 esac
16038 fi
16039 OCAMLYACC=$ac_cv_path_OCAMLYACC
16040 if test -n "$OCAMLYACC"; then
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
16042 $as_echo "$OCAMLYACC" >&6; }
16043 else
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16046 fi
16047
16048
16049 fi
16050 if test -z "$ac_cv_path_OCAMLYACC"; then
16051 ac_pt_OCAMLYACC=$OCAMLYACC
16052 # Extract the first word of "ocamlyacc", so it can be a program name with args.
16053 set dummy ocamlyacc; ac_word=$2
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16055 $as_echo_n "checking for $ac_word... " >&6; }
16056 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
16057 $as_echo_n "(cached) " >&6
16058 else
16059 case $ac_pt_OCAMLYACC in
16060 [\\/]* | ?:[\\/]*)
16061 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
16062 ;;
16063 *)
16064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16065 for as_dir in $PATH
16066 do
16067 IFS=$as_save_IFS
16068 test -z "$as_dir" && as_dir=.
16069 for ac_exec_ext in '' $ac_executable_extensions; do
16070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16071 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
16072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16073 break 2
16074 fi
16075 done
16076 done
16077 IFS=$as_save_IFS
16078
16079 ;;
16080 esac
16081 fi
16082 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
16083 if test -n "$ac_pt_OCAMLYACC"; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
16085 $as_echo "$ac_pt_OCAMLYACC" >&6; }
16086 else
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088 $as_echo "no" >&6; }
16089 fi
16090
16091 if test "x$ac_pt_OCAMLYACC" = x; then
16092 OCAMLYACC="no"
16093 else
16094 case $cross_compiling:$ac_tool_warned in
16095 yes:)
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16098 ac_tool_warned=yes ;;
16099 esac
16100 OCAMLYACC=$ac_pt_OCAMLYACC
16101 fi
16102 else
16103 OCAMLYACC="$ac_cv_path_OCAMLYACC"
16104 fi
16105
16106
16107
16108
16109 else
16110 if test -n "$ac_tool_prefix"; then
16111 # Extract the first word of "${ac_tool_prefix}[$]PDFLATEX", so it can be a program name with args.
16112 set dummy ${ac_tool_prefix}$PDFLATEX; ac_word=$2
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 $as_echo_n "checking for $ac_word... " >&6; }
16115 if ${ac_cv_path_PDFLATEX+:} false; then :
16116 $as_echo_n "(cached) " >&6
16117 else
16118 case $PDFLATEX in
16119 [\\/]* | ?:[\\/]*)
16120 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
16121 ;;
16122 *)
16123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16124 for as_dir in $PATH
16125 do
16126 IFS=$as_save_IFS
16127 test -z "$as_dir" && as_dir=.
16128 for ac_exec_ext in '' $ac_executable_extensions; do
16129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16130 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16132 break 2
16133 fi
16134 done
16135 done
16136 IFS=$as_save_IFS
16137
16138 ;;
16139 esac
16140 fi
16141 PDFLATEX=$ac_cv_path_PDFLATEX
16142 if test -n "$PDFLATEX"; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
16144 $as_echo "$PDFLATEX" >&6; }
16145 else
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16148 fi
16149
16150
16151 fi
16152 if test -z "$ac_cv_path_PDFLATEX"; then
16153 ac_pt_PDFLATEX=$PDFLATEX
16154 # Extract the first word of "[$]PDFLATEX", so it can be a program name with args.
16155 set dummy $PDFLATEX; ac_word=$2
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16157 $as_echo_n "checking for $ac_word... " >&6; }
16158 if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161 case $ac_pt_PDFLATEX in
16162 [\\/]* | ?:[\\/]*)
16163 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
16164 ;;
16165 *)
16166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16167 for as_dir in $PATH
16168 do
16169 IFS=$as_save_IFS
16170 test -z "$as_dir" && as_dir=.
16171 for ac_exec_ext in '' $ac_executable_extensions; do
16172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16173 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16175 break 2
16176 fi
16177 done
16178 done
16179 IFS=$as_save_IFS
16180
16181 ;;
16182 esac
16183 fi
16184 ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
16185 if test -n "$ac_pt_PDFLATEX"; then
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
16187 $as_echo "$ac_pt_PDFLATEX" >&6; }
16188 else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 $as_echo "no" >&6; }
16191 fi
16192
16193 if test "x$ac_pt_PDFLATEX" = x; then
16194 PDFLATEX=""
16195 else
16196 case $cross_compiling:$ac_tool_warned in
16197 yes:)
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16200 ac_tool_warned=yes ;;
16201 esac
16202 PDFLATEX=$ac_pt_PDFLATEX
16203 fi
16204 else
16205 PDFLATEX="$ac_cv_path_PDFLATEX"
16206 fi
16207
16208
16209 fi
16210
16211
16212 fi
16213
16214 if test -z "$PDFLATEX" -o "x$PDFLATEX" = xno; then :
16215 if test "x$with_PDFLATEX" = xyes; then :
16216 as_fn_error $? "--with=pdflatex is given explicitly but not found" "$LINENO" 5
16217
16218 fi
16219
16220 if test -n "$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"; then :
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&5
16222 $as_echo "$as_me: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&6;}
16223 PDFLATEX="$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"
16224
16225 if test "xpdflatex" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then :
16226
16227
16228
16229
16230
16231
16232
16233 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16234 if test -n "$ac_tool_prefix"; then
16235 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16236 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16238 $as_echo_n "checking for $ac_word... " >&6; }
16239 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16240 $as_echo_n "(cached) " >&6
16241 else
16242 case $PKG_CONFIG in
16243 [\\/]* | ?:[\\/]*)
16244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16245 ;;
16246 *)
16247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16248 for as_dir in $PATH
16249 do
16250 IFS=$as_save_IFS
16251 test -z "$as_dir" && as_dir=.
16252 for ac_exec_ext in '' $ac_executable_extensions; do
16253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16254 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16256 break 2
16257 fi
16258 done
16259 done
16260 IFS=$as_save_IFS
16261
16262 ;;
16263 esac
16264 fi
16265 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16266 if test -n "$PKG_CONFIG"; then
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16268 $as_echo "$PKG_CONFIG" >&6; }
16269 else
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271 $as_echo "no" >&6; }
16272 fi
16273
16274
16275 fi
16276 if test -z "$ac_cv_path_PKG_CONFIG"; then
16277 ac_pt_PKG_CONFIG=$PKG_CONFIG
16278 # Extract the first word of "pkg-config", so it can be a program name with args.
16279 set dummy pkg-config; ac_word=$2
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16281 $as_echo_n "checking for $ac_word... " >&6; }
16282 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16283 $as_echo_n "(cached) " >&6
16284 else
16285 case $ac_pt_PKG_CONFIG in
16286 [\\/]* | ?:[\\/]*)
16287 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16288 ;;
16289 *)
16290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16291 for as_dir in $PATH
16292 do
16293 IFS=$as_save_IFS
16294 test -z "$as_dir" && as_dir=.
16295 for ac_exec_ext in '' $ac_executable_extensions; do
16296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16297 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16299 break 2
16300 fi
16301 done
16302 done
16303 IFS=$as_save_IFS
16304
16305 ;;
16306 esac
16307 fi
16308 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16309 if test -n "$ac_pt_PKG_CONFIG"; then
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16311 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16312 else
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16314 $as_echo "no" >&6; }
16315 fi
16316
16317 if test "x$ac_pt_PKG_CONFIG" = x; then
16318 PKG_CONFIG=""
16319 else
16320 case $cross_compiling:$ac_tool_warned in
16321 yes:)
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16324 ac_tool_warned=yes ;;
16325 esac
16326 PKG_CONFIG=$ac_pt_PKG_CONFIG
16327 fi
16328 else
16329 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16330 fi
16331
16332 fi
16333 if test -n "$PKG_CONFIG"; then
16334 _pkg_min_version=0.9.0
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16336 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16337 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16339 $as_echo "yes" >&6; }
16340 else
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342 $as_echo "no" >&6; }
16343 PKG_CONFIG=""
16344 fi
16345 fi
16346
16347 elif test "xpdflatex" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then :
16348 # checking for ocamllex
16349 if test -n "$ac_tool_prefix"; then
16350 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
16351 set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16353 $as_echo_n "checking for $ac_word... " >&6; }
16354 if ${ac_cv_path_OCAMLLEX+:} false; then :
16355 $as_echo_n "(cached) " >&6
16356 else
16357 case $OCAMLLEX in
16358 [\\/]* | ?:[\\/]*)
16359 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
16360 ;;
16361 *)
16362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16363 for as_dir in $PATH
16364 do
16365 IFS=$as_save_IFS
16366 test -z "$as_dir" && as_dir=.
16367 for ac_exec_ext in '' $ac_executable_extensions; do
16368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16369 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
16370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16371 break 2
16372 fi
16373 done
16374 done
16375 IFS=$as_save_IFS
16376
16377 ;;
16378 esac
16379 fi
16380 OCAMLLEX=$ac_cv_path_OCAMLLEX
16381 if test -n "$OCAMLLEX"; then
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
16383 $as_echo "$OCAMLLEX" >&6; }
16384 else
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386 $as_echo "no" >&6; }
16387 fi
16388
16389
16390 fi
16391 if test -z "$ac_cv_path_OCAMLLEX"; then
16392 ac_pt_OCAMLLEX=$OCAMLLEX
16393 # Extract the first word of "ocamllex", so it can be a program name with args.
16394 set dummy ocamllex; ac_word=$2
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16396 $as_echo_n "checking for $ac_word... " >&6; }
16397 if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 case $ac_pt_OCAMLLEX in
16401 [\\/]* | ?:[\\/]*)
16402 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
16403 ;;
16404 *)
16405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16406 for as_dir in $PATH
16407 do
16408 IFS=$as_save_IFS
16409 test -z "$as_dir" && as_dir=.
16410 for ac_exec_ext in '' $ac_executable_extensions; do
16411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16412 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
16413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16414 break 2
16415 fi
16416 done
16417 done
16418 IFS=$as_save_IFS
16419
16420 ;;
16421 esac
16422 fi
16423 ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
16424 if test -n "$ac_pt_OCAMLLEX"; then
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
16426 $as_echo "$ac_pt_OCAMLLEX" >&6; }
16427 else
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16429 $as_echo "no" >&6; }
16430 fi
16431
16432 if test "x$ac_pt_OCAMLLEX" = x; then
16433 OCAMLLEX="no"
16434 else
16435 case $cross_compiling:$ac_tool_warned in
16436 yes:)
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16439 ac_tool_warned=yes ;;
16440 esac
16441 OCAMLLEX=$ac_pt_OCAMLLEX
16442 fi
16443 else
16444 OCAMLLEX="$ac_cv_path_OCAMLLEX"
16445 fi
16446
16447 if test "$OCAMLLEX" != "no"; then
16448 if test -n "$ac_tool_prefix"; then
16449 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
16450 set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16452 $as_echo_n "checking for $ac_word... " >&6; }
16453 if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
16454 $as_echo_n "(cached) " >&6
16455 else
16456 case $OCAMLLEXDOTOPT in
16457 [\\/]* | ?:[\\/]*)
16458 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
16459 ;;
16460 *)
16461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16462 for as_dir in $PATH
16463 do
16464 IFS=$as_save_IFS
16465 test -z "$as_dir" && as_dir=.
16466 for ac_exec_ext in '' $ac_executable_extensions; do
16467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16468 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
16469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16470 break 2
16471 fi
16472 done
16473 done
16474 IFS=$as_save_IFS
16475
16476 ;;
16477 esac
16478 fi
16479 OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
16480 if test -n "$OCAMLLEXDOTOPT"; then
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
16482 $as_echo "$OCAMLLEXDOTOPT" >&6; }
16483 else
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16485 $as_echo "no" >&6; }
16486 fi
16487
16488
16489 fi
16490 if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
16491 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
16492 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
16493 set dummy ocamllex.opt; ac_word=$2
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16495 $as_echo_n "checking for $ac_word... " >&6; }
16496 if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498 else
16499 case $ac_pt_OCAMLLEXDOTOPT in
16500 [\\/]* | ?:[\\/]*)
16501 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
16502 ;;
16503 *)
16504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16505 for as_dir in $PATH
16506 do
16507 IFS=$as_save_IFS
16508 test -z "$as_dir" && as_dir=.
16509 for ac_exec_ext in '' $ac_executable_extensions; do
16510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16511 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
16512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16513 break 2
16514 fi
16515 done
16516 done
16517 IFS=$as_save_IFS
16518
16519 ;;
16520 esac
16521 fi
16522 ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
16523 if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
16525 $as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
16526 else
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16528 $as_echo "no" >&6; }
16529 fi
16530
16531 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
16532 OCAMLLEXDOTOPT="no"
16533 else
16534 case $cross_compiling:$ac_tool_warned in
16535 yes:)
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16538 ac_tool_warned=yes ;;
16539 esac
16540 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
16541 fi
16542 else
16543 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
16544 fi
16545
16546 if test "$OCAMLLEXDOTOPT" != "no"; then
16547 OCAMLLEX=$OCAMLLEXDOTOPT
16548 fi
16549 fi
16550
16551
16552
16553 elif test "xpdflatex" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then :
16554 if test -n "$ac_tool_prefix"; then
16555 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
16556 set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16558 $as_echo_n "checking for $ac_word... " >&6; }
16559 if ${ac_cv_path_OCAMLYACC+:} false; then :
16560 $as_echo_n "(cached) " >&6
16561 else
16562 case $OCAMLYACC in
16563 [\\/]* | ?:[\\/]*)
16564 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
16565 ;;
16566 *)
16567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568 for as_dir in $PATH
16569 do
16570 IFS=$as_save_IFS
16571 test -z "$as_dir" && as_dir=.
16572 for ac_exec_ext in '' $ac_executable_extensions; do
16573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16574 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
16575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16576 break 2
16577 fi
16578 done
16579 done
16580 IFS=$as_save_IFS
16581
16582 ;;
16583 esac
16584 fi
16585 OCAMLYACC=$ac_cv_path_OCAMLYACC
16586 if test -n "$OCAMLYACC"; then
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
16588 $as_echo "$OCAMLYACC" >&6; }
16589 else
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16591 $as_echo "no" >&6; }
16592 fi
16593
16594
16595 fi
16596 if test -z "$ac_cv_path_OCAMLYACC"; then
16597 ac_pt_OCAMLYACC=$OCAMLYACC
16598 # Extract the first word of "ocamlyacc", so it can be a program name with args.
16599 set dummy ocamlyacc; ac_word=$2
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16601 $as_echo_n "checking for $ac_word... " >&6; }
16602 if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16605 case $ac_pt_OCAMLYACC in
16606 [\\/]* | ?:[\\/]*)
16607 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
16608 ;;
16609 *)
16610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16611 for as_dir in $PATH
16612 do
16613 IFS=$as_save_IFS
16614 test -z "$as_dir" && as_dir=.
16615 for ac_exec_ext in '' $ac_executable_extensions; do
16616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16617 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
16618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16619 break 2
16620 fi
16621 done
16622 done
16623 IFS=$as_save_IFS
16624
16625 ;;
16626 esac
16627 fi
16628 ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
16629 if test -n "$ac_pt_OCAMLYACC"; then
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
16631 $as_echo "$ac_pt_OCAMLYACC" >&6; }
16632 else
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16634 $as_echo "no" >&6; }
16635 fi
16636
16637 if test "x$ac_pt_OCAMLYACC" = x; then
16638 OCAMLYACC="no"
16639 else
16640 case $cross_compiling:$ac_tool_warned in
16641 yes:)
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16644 ac_tool_warned=yes ;;
16645 esac
16646 OCAMLYACC=$ac_pt_OCAMLYACC
16647 fi
16648 else
16649 OCAMLYACC="$ac_cv_path_OCAMLYACC"
16650 fi
16651
16652
16653
16654
16655 else
16656 if test -n "$ac_tool_prefix"; then
16657 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
16658 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16660 $as_echo_n "checking for $ac_word... " >&6; }
16661 if ${ac_cv_path_PDFLATEX+:} false; then :
16662 $as_echo_n "(cached) " >&6
16663 else
16664 case $PDFLATEX in
16665 [\\/]* | ?:[\\/]*)
16666 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
16667 ;;
16668 *)
16669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16670 for as_dir in $PATH
16671 do
16672 IFS=$as_save_IFS
16673 test -z "$as_dir" && as_dir=.
16674 for ac_exec_ext in '' $ac_executable_extensions; do
16675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16676 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16678 break 2
16679 fi
16680 done
16681 done
16682 IFS=$as_save_IFS
16683
16684 ;;
16685 esac
16686 fi
16687 PDFLATEX=$ac_cv_path_PDFLATEX
16688 if test -n "$PDFLATEX"; then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
16690 $as_echo "$PDFLATEX" >&6; }
16691 else
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16693 $as_echo "no" >&6; }
16694 fi
16695
16696
16697 fi
16698 if test -z "$ac_cv_path_PDFLATEX"; then
16699 ac_pt_PDFLATEX=$PDFLATEX
16700 # Extract the first word of "pdflatex", so it can be a program name with args.
16701 set dummy pdflatex; ac_word=$2
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16703 $as_echo_n "checking for $ac_word... " >&6; }
16704 if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then :
16705 $as_echo_n "(cached) " >&6
16706 else
16707 case $ac_pt_PDFLATEX in
16708 [\\/]* | ?:[\\/]*)
16709 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
16710 ;;
16711 *)
16712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16713 for as_dir in $PATH
16714 do
16715 IFS=$as_save_IFS
16716 test -z "$as_dir" && as_dir=.
16717 for ac_exec_ext in '' $ac_executable_extensions; do
16718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16719 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16721 break 2
16722 fi
16723 done
16724 done
16725 IFS=$as_save_IFS
16726
16727 ;;
16728 esac
16729 fi
16730 ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
16731 if test -n "$ac_pt_PDFLATEX"; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
16733 $as_echo "$ac_pt_PDFLATEX" >&6; }
16734 else
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16736 $as_echo "no" >&6; }
16737 fi
16738
16739 if test "x$ac_pt_PDFLATEX" = x; then
16740 PDFLATEX=""
16741 else
16742 case $cross_compiling:$ac_tool_warned in
16743 yes:)
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16746 ac_tool_warned=yes ;;
16747 esac
16748 PDFLATEX=$ac_pt_PDFLATEX
16749 fi
16750 else
16751 PDFLATEX="$ac_cv_path_PDFLATEX"
16752 fi
16753
16754
16755 fi
16756
16757 SUBSTITUTED_PDFLATEX=yes
16758
16759
16760 fi
16761
16762 fi
16763
16764 if test -z "$PDFLATEX"; then :
16765 PDFLATEX=no
16766
16767 fi
16768
16769
16770
16771 # Check whether --enable-release was given.
16772 if test "${enable_release+set}" = set; then :
16773 enableval=$enable_release;
16774 fi
16775
16776 if test -z "$enable_release"; then :
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&5
16778 $as_echo "$as_me: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&6;}
16779 enable_release=no
16780
16781
16782 fi
16783
16784
16785 if test "x$enable_release" = xyes; then :
16786 MAKETARGET_ALL=all-release
16787
16788
16789 elif test "x$enable_release" = xno; then :
16790 MAKETARGET_ALL=all-dev
16791
16792
16793 elif test "x$enable_release" = xprofile; then :
16794 if test -z "$OCAMLPROF" -o "x$OCAMLPROF" = xno; then :
16795 as_fn_error $? "ocamlprof is required for profiling, but is absent." "$LINENO" 5
16796
16797 fi
16798
16799 MAKETARGET_ALL=all-dev
16800
16801 OCAMLC="$COCCI_SRCDIR/setup/wrapper-ocamlcp.sh $OCAMLCORIG $OCAMLPROF"
16802
16803 MODULES_profiling=profiling.cmo
16804
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: configured coccinelle for profiling" >&5
16806 $as_echo "$as_me: configured coccinelle for profiling" >&6;}
16807
16808 else
16809 MAKETARGET_ALL="$enable_release"
16810
16811
16812 fi
16813
16814 # Check whether --enable-opt was given.
16815 if test "${enable_opt+set}" = set; then :
16816 enableval=$enable_opt;
16817 fi
16818
16819 if test "x$OCAMLOPT" = xno -a "x$enable_opt" != xno; then :
16820 if test -n "$enable_release" -a "x$enable_release" != xyes -a "x$enable_release" != xno; then :
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&5
16822 $as_echo "$as_me: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&6;}
16823
16824 elif test "x$enable_opt" = xyes; then :
16825 as_fn_error $? "the optimized version of coccinelle is requested explicitly, but ocamlopt is absent" "$LINENO" 5
16826
16827 else
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build because ocamlopt is not present" >&5
16829 $as_echo "$as_me: the optimized version of coccinelle will not be build because ocamlopt is not present" >&6;}
16830 enable_opt=no
16831
16832
16833 fi
16834
16835 fi
16836
16837 if test "x$OCAMLVERSION" = x3.11.2 -a -z "$enable_opt"; then :
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&5
16839 $as_echo "$as_me: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&6;}
16840 enable_opt=no
16841
16842
16843 fi
16844
16845 if test "x$OPTIMIZED_dynlink" = xno -a "x$enable_ocaml" = xyes; then :
16846 if test -z "$enable_opt"; then :
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build by default because ocaml scripting is enabled but the required optimized dynlink package is not present" >&5
16848 $as_echo "$as_me: the optimized version of coccinelle will not be build by default because ocaml scripting is enabled but the required optimized dynlink package is not present" >&6;}
16849 enable_opt=no
16850
16851
16852 elif test "x$enable_opt" = xyes; then :
16853 as_fn_error $? "the optimized version of coccinelle in combination with ocaml scripting requires the optimized version of the dynlik package, which is not present" "$LINENO" 5
16854
16855 fi
16856
16857 fi
16858
16859 if test -z "$enable_opt"; then :
16860 if test "x$enable_release" = xyes -o "x$enable_release" = xno; then :
16861 enable_opt="$enable_release"
16862
16863
16864 fi
16865
16866 fi
16867
16868 if test "x$enable_opt" = xyes; then :
16869 SPATCHNAME=spatch.opt
16870
16871 MAKETARGET_SPATCH=opt-only
16872
16873
16874 else
16875 SPATCHNAME=spatch
16876
16877 MAKETARGET_SPATCH=byte-only
16878
16879
16880 fi
16881
16882
16883 # Check whether --enable-ocamlbuild was given.
16884 if test "${enable_ocamlbuild+set}" = set; then :
16885 enableval=$enable_ocamlbuild;
16886 fi
16887
16888 if test "x$enable_ocamlbuild" = xyes; then :
16889 if test -z "$OCAMLBUILD" -o "x$OCAMLBUILD" = xno; then :
16890 as_fn_error $? "Ocamlbuild is required but is not installed." "$LINENO" 5
16891
16892 fi
16893
16894 FEATURE_OCAMLBUILD=yes
16895
16896
16897 else
16898 FEATURE_OCAMLBUILD=
16899
16900
16901 fi
16902
16903
16904
16905 ac_config_files="$ac_config_files Makefile.config version.ml commons/commands.ml globals/config.ml globals/regexp.ml python/pycocci.ml ocaml/prepare_ocamlcocci.ml scripts/spatch.sh docs/spatch.1 myocamlbuild.ml setup/Makefile"
16906
16907
16908 cat >confcache <<\_ACEOF
16909 # This file is a shell script that caches the results of configure
16910 # tests run on this system so they can be shared between configure
16911 # scripts and configure runs, see configure's option --config-cache.
16912 # It is not useful on other systems. If it contains results you don't
16913 # want to keep, you may remove or edit it.
16914 #
16915 # config.status only pays attention to the cache file if you give it
16916 # the --recheck option to rerun configure.
16917 #
16918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16920 # following values.
16921
16922 _ACEOF
16923
16924 # The following way of writing the cache mishandles newlines in values,
16925 # but we know of no workaround that is simple, portable, and efficient.
16926 # So, we kill variables containing newlines.
16927 # Ultrix sh set writes to stderr and can't be redirected directly,
16928 # and sets the high bit in the cache file unless we assign to the vars.
16929 (
16930 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16931 eval ac_val=\$$ac_var
16932 case $ac_val in #(
16933 *${as_nl}*)
16934 case $ac_var in #(
16935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16937 esac
16938 case $ac_var in #(
16939 _ | IFS | as_nl) ;; #(
16940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16941 *) { eval $ac_var=; unset $ac_var;} ;;
16942 esac ;;
16943 esac
16944 done
16945
16946 (set) 2>&1 |
16947 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16948 *${as_nl}ac_space=\ *)
16949 # `set' does not quote correctly, so add quotes: double-quote
16950 # substitution turns \\\\ into \\, and sed turns \\ into \.
16951 sed -n \
16952 "s/'/'\\\\''/g;
16953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16954 ;; #(
16955 *)
16956 # `set' quotes correctly as required by POSIX, so do not add quotes.
16957 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16958 ;;
16959 esac |
16960 sort
16961 ) |
16962 sed '
16963 /^ac_cv_env_/b end
16964 t clear
16965 :clear
16966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16967 t end
16968 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16969 :end' >>confcache
16970 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16971 if test -w "$cache_file"; then
16972 if test "x$cache_file" != "x/dev/null"; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16974 $as_echo "$as_me: updating cache $cache_file" >&6;}
16975 if test ! -f "$cache_file" || test -h "$cache_file"; then
16976 cat confcache >"$cache_file"
16977 else
16978 case $cache_file in #(
16979 */* | ?:*)
16980 mv -f confcache "$cache_file"$$ &&
16981 mv -f "$cache_file"$$ "$cache_file" ;; #(
16982 *)
16983 mv -f confcache "$cache_file" ;;
16984 esac
16985 fi
16986 fi
16987 else
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16989 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16990 fi
16991 fi
16992 rm -f confcache
16993
16994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16995 # Let make expand exec_prefix.
16996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16997
16998 # Transform confdefs.h into DEFS.
16999 # Protect against shell expansion while executing Makefile rules.
17000 # Protect against Makefile macro expansion.
17001 #
17002 # If the first sed substitution is executed (which looks for macros that
17003 # take arguments), then branch to the quote section. Otherwise,
17004 # look for a macro that doesn't take arguments.
17005 ac_script='
17006 :mline
17007 /\\$/{
17008 N
17009 s,\\\n,,
17010 b mline
17011 }
17012 t clear
17013 :clear
17014 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17015 t quote
17016 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17017 t quote
17018 b any
17019 :quote
17020 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17021 s/\[/\\&/g
17022 s/\]/\\&/g
17023 s/\$/$$/g
17024 H
17025 :any
17026 ${
17027 g
17028 s/^\n//
17029 s/\n/ /g
17030 p
17031 }
17032 '
17033 DEFS=`sed -n "$ac_script" confdefs.h`
17034
17035
17036 ac_libobjs=
17037 ac_ltlibobjs=
17038 U=
17039 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17040 # 1. Remove the extension, and $U if already installed.
17041 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17042 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17044 # will be set to the directory where LIBOBJS objects are built.
17045 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17046 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17047 done
17048 LIBOBJS=$ac_libobjs
17049
17050 LTLIBOBJS=$ac_ltlibobjs
17051
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17054 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17055 if test -n "$am_sleep_pid"; then
17056 # Hide warnings about reused PIDs.
17057 wait $am_sleep_pid 2>/dev/null
17058 fi
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17060 $as_echo "done" >&6; }
17061 if test -n "$EXEEXT"; then
17062 am__EXEEXT_TRUE=
17063 am__EXEEXT_FALSE='#'
17064 else
17065 am__EXEEXT_TRUE='#'
17066 am__EXEEXT_FALSE=
17067 fi
17068
17069 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17070 as_fn_error $? "conditional \"AMDEP\" was never defined.
17071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17072 fi
17073 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17074 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17076 fi
17077
17078 : "${CONFIG_STATUS=./config.status}"
17079 ac_write_fail=0
17080 ac_clean_files_save=$ac_clean_files
17081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17083 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17084 as_write_fail=0
17085 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17086 #! $SHELL
17087 # Generated by $as_me.
17088 # Run this file to recreate the current configuration.
17089 # Compiler output produced by configure, useful for debugging
17090 # configure, is in config.log if it exists.
17091
17092 debug=false
17093 ac_cs_recheck=false
17094 ac_cs_silent=false
17095
17096 SHELL=\${CONFIG_SHELL-$SHELL}
17097 export SHELL
17098 _ASEOF
17099 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17100 ## -------------------- ##
17101 ## M4sh Initialization. ##
17102 ## -------------------- ##
17103
17104 # Be more Bourne compatible
17105 DUALCASE=1; export DUALCASE # for MKS sh
17106 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17107 emulate sh
17108 NULLCMD=:
17109 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17110 # is contrary to our usage. Disable this feature.
17111 alias -g '${1+"$@"}'='"$@"'
17112 setopt NO_GLOB_SUBST
17113 else
17114 case `(set -o) 2>/dev/null` in #(
17115 *posix*) :
17116 set -o posix ;; #(
17117 *) :
17118 ;;
17119 esac
17120 fi
17121
17122
17123 as_nl='
17124 '
17125 export as_nl
17126 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17127 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17128 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17129 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17130 # Prefer a ksh shell builtin over an external printf program on Solaris,
17131 # but without wasting forks for bash or zsh.
17132 if test -z "$BASH_VERSION$ZSH_VERSION" \
17133 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17134 as_echo='print -r --'
17135 as_echo_n='print -rn --'
17136 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17137 as_echo='printf %s\n'
17138 as_echo_n='printf %s'
17139 else
17140 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17141 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17142 as_echo_n='/usr/ucb/echo -n'
17143 else
17144 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17145 as_echo_n_body='eval
17146 arg=$1;
17147 case $arg in #(
17148 *"$as_nl"*)
17149 expr "X$arg" : "X\\(.*\\)$as_nl";
17150 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17151 esac;
17152 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17153 '
17154 export as_echo_n_body
17155 as_echo_n='sh -c $as_echo_n_body as_echo'
17156 fi
17157 export as_echo_body
17158 as_echo='sh -c $as_echo_body as_echo'
17159 fi
17160
17161 # The user is always right.
17162 if test "${PATH_SEPARATOR+set}" != set; then
17163 PATH_SEPARATOR=:
17164 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17165 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17166 PATH_SEPARATOR=';'
17167 }
17168 fi
17169
17170
17171 # IFS
17172 # We need space, tab and new line, in precisely that order. Quoting is
17173 # there to prevent editors from complaining about space-tab.
17174 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17175 # splitting by setting IFS to empty value.)
17176 IFS=" "" $as_nl"
17177
17178 # Find who we are. Look in the path if we contain no directory separator.
17179 as_myself=
17180 case $0 in #((
17181 *[\\/]* ) as_myself=$0 ;;
17182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17183 for as_dir in $PATH
17184 do
17185 IFS=$as_save_IFS
17186 test -z "$as_dir" && as_dir=.
17187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17188 done
17189 IFS=$as_save_IFS
17190
17191 ;;
17192 esac
17193 # We did not find ourselves, most probably we were run as `sh COMMAND'
17194 # in which case we are not to be found in the path.
17195 if test "x$as_myself" = x; then
17196 as_myself=$0
17197 fi
17198 if test ! -f "$as_myself"; then
17199 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17200 exit 1
17201 fi
17202
17203 # Unset variables that we do not need and which cause bugs (e.g. in
17204 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17205 # suppresses any "Segmentation fault" message there. '((' could
17206 # trigger a bug in pdksh 5.2.14.
17207 for as_var in BASH_ENV ENV MAIL MAILPATH
17208 do eval test x\${$as_var+set} = xset \
17209 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17210 done
17211 PS1='$ '
17212 PS2='> '
17213 PS4='+ '
17214
17215 # NLS nuisances.
17216 LC_ALL=C
17217 export LC_ALL
17218 LANGUAGE=C
17219 export LANGUAGE
17220
17221 # CDPATH.
17222 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17223
17224
17225 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17226 # ----------------------------------------
17227 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17228 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17229 # script with STATUS, using 1 if that was 0.
17230 as_fn_error ()
17231 {
17232 as_status=$1; test $as_status -eq 0 && as_status=1
17233 if test "$4"; then
17234 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17235 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17236 fi
17237 $as_echo "$as_me: error: $2" >&2
17238 as_fn_exit $as_status
17239 } # as_fn_error
17240
17241
17242 # as_fn_set_status STATUS
17243 # -----------------------
17244 # Set $? to STATUS, without forking.
17245 as_fn_set_status ()
17246 {
17247 return $1
17248 } # as_fn_set_status
17249
17250 # as_fn_exit STATUS
17251 # -----------------
17252 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17253 as_fn_exit ()
17254 {
17255 set +e
17256 as_fn_set_status $1
17257 exit $1
17258 } # as_fn_exit
17259
17260 # as_fn_unset VAR
17261 # ---------------
17262 # Portably unset VAR.
17263 as_fn_unset ()
17264 {
17265 { eval $1=; unset $1;}
17266 }
17267 as_unset=as_fn_unset
17268 # as_fn_append VAR VALUE
17269 # ----------------------
17270 # Append the text in VALUE to the end of the definition contained in VAR. Take
17271 # advantage of any shell optimizations that allow amortized linear growth over
17272 # repeated appends, instead of the typical quadratic growth present in naive
17273 # implementations.
17274 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17275 eval 'as_fn_append ()
17276 {
17277 eval $1+=\$2
17278 }'
17279 else
17280 as_fn_append ()
17281 {
17282 eval $1=\$$1\$2
17283 }
17284 fi # as_fn_append
17285
17286 # as_fn_arith ARG...
17287 # ------------------
17288 # Perform arithmetic evaluation on the ARGs, and store the result in the
17289 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17290 # must be portable across $(()) and expr.
17291 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17292 eval 'as_fn_arith ()
17293 {
17294 as_val=$(( $* ))
17295 }'
17296 else
17297 as_fn_arith ()
17298 {
17299 as_val=`expr "$@" || test $? -eq 1`
17300 }
17301 fi # as_fn_arith
17302
17303
17304 if expr a : '\(a\)' >/dev/null 2>&1 &&
17305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17306 as_expr=expr
17307 else
17308 as_expr=false
17309 fi
17310
17311 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17312 as_basename=basename
17313 else
17314 as_basename=false
17315 fi
17316
17317 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17318 as_dirname=dirname
17319 else
17320 as_dirname=false
17321 fi
17322
17323 as_me=`$as_basename -- "$0" ||
17324 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17325 X"$0" : 'X\(//\)$' \| \
17326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17327 $as_echo X/"$0" |
17328 sed '/^.*\/\([^/][^/]*\)\/*$/{
17329 s//\1/
17330 q
17331 }
17332 /^X\/\(\/\/\)$/{
17333 s//\1/
17334 q
17335 }
17336 /^X\/\(\/\).*/{
17337 s//\1/
17338 q
17339 }
17340 s/.*/./; q'`
17341
17342 # Avoid depending upon Character Ranges.
17343 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17344 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17345 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17346 as_cr_digits='0123456789'
17347 as_cr_alnum=$as_cr_Letters$as_cr_digits
17348
17349 ECHO_C= ECHO_N= ECHO_T=
17350 case `echo -n x` in #(((((
17351 -n*)
17352 case `echo 'xy\c'` in
17353 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17354 xy) ECHO_C='\c';;
17355 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17356 ECHO_T=' ';;
17357 esac;;
17358 *)
17359 ECHO_N='-n';;
17360 esac
17361
17362 rm -f conf$$ conf$$.exe conf$$.file
17363 if test -d conf$$.dir; then
17364 rm -f conf$$.dir/conf$$.file
17365 else
17366 rm -f conf$$.dir
17367 mkdir conf$$.dir 2>/dev/null
17368 fi
17369 if (echo >conf$$.file) 2>/dev/null; then
17370 if ln -s conf$$.file conf$$ 2>/dev/null; then
17371 as_ln_s='ln -s'
17372 # ... but there are two gotchas:
17373 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17374 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17375 # In both cases, we have to default to `cp -pR'.
17376 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17377 as_ln_s='cp -pR'
17378 elif ln conf$$.file conf$$ 2>/dev/null; then
17379 as_ln_s=ln
17380 else
17381 as_ln_s='cp -pR'
17382 fi
17383 else
17384 as_ln_s='cp -pR'
17385 fi
17386 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17387 rmdir conf$$.dir 2>/dev/null
17388
17389
17390 # as_fn_mkdir_p
17391 # -------------
17392 # Create "$as_dir" as a directory, including parents if necessary.
17393 as_fn_mkdir_p ()
17394 {
17395
17396 case $as_dir in #(
17397 -*) as_dir=./$as_dir;;
17398 esac
17399 test -d "$as_dir" || eval $as_mkdir_p || {
17400 as_dirs=
17401 while :; do
17402 case $as_dir in #(
17403 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17404 *) as_qdir=$as_dir;;
17405 esac
17406 as_dirs="'$as_qdir' $as_dirs"
17407 as_dir=`$as_dirname -- "$as_dir" ||
17408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17409 X"$as_dir" : 'X\(//\)[^/]' \| \
17410 X"$as_dir" : 'X\(//\)$' \| \
17411 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17412 $as_echo X"$as_dir" |
17413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17414 s//\1/
17415 q
17416 }
17417 /^X\(\/\/\)[^/].*/{
17418 s//\1/
17419 q
17420 }
17421 /^X\(\/\/\)$/{
17422 s//\1/
17423 q
17424 }
17425 /^X\(\/\).*/{
17426 s//\1/
17427 q
17428 }
17429 s/.*/./; q'`
17430 test -d "$as_dir" && break
17431 done
17432 test -z "$as_dirs" || eval "mkdir $as_dirs"
17433 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17434
17435
17436 } # as_fn_mkdir_p
17437 if mkdir -p . 2>/dev/null; then
17438 as_mkdir_p='mkdir -p "$as_dir"'
17439 else
17440 test -d ./-p && rmdir ./-p
17441 as_mkdir_p=false
17442 fi
17443
17444
17445 # as_fn_executable_p FILE
17446 # -----------------------
17447 # Test if FILE is an executable regular file.
17448 as_fn_executable_p ()
17449 {
17450 test -f "$1" && test -x "$1"
17451 } # as_fn_executable_p
17452 as_test_x='test -x'
17453 as_executable_p=as_fn_executable_p
17454
17455 # Sed expression to map a string onto a valid CPP name.
17456 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17457
17458 # Sed expression to map a string onto a valid variable name.
17459 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17460
17461
17462 exec 6>&1
17463 ## ----------------------------------- ##
17464 ## Main body of $CONFIG_STATUS script. ##
17465 ## ----------------------------------- ##
17466 _ASEOF
17467 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17468
17469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17470 # Save the log message, to keep $0 and so on meaningful, and to
17471 # report actual input values of CONFIG_FILES etc. instead of their
17472 # values after options handling.
17473 ac_log="
17474 This file was extended by coccinelle $as_me 1.0.0-rc15, which was
17475 generated by GNU Autoconf 2.69. Invocation command line was
17476
17477 CONFIG_FILES = $CONFIG_FILES
17478 CONFIG_HEADERS = $CONFIG_HEADERS
17479 CONFIG_LINKS = $CONFIG_LINKS
17480 CONFIG_COMMANDS = $CONFIG_COMMANDS
17481 $ $0 $@
17482
17483 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17484 "
17485
17486 _ACEOF
17487
17488 case $ac_config_files in *"
17489 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17490 esac
17491
17492
17493
17494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17495 # Files that config.status was made for.
17496 config_files="$ac_config_files"
17497 config_commands="$ac_config_commands"
17498
17499 _ACEOF
17500
17501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17502 ac_cs_usage="\
17503 \`$as_me' instantiates files and other configuration actions
17504 from templates according to the current configuration. Unless the files
17505 and actions are specified as TAGs, all are instantiated by default.
17506
17507 Usage: $0 [OPTION]... [TAG]...
17508
17509 -h, --help print this help, then exit
17510 -V, --version print version number and configuration settings, then exit
17511 --config print configuration, then exit
17512 -q, --quiet, --silent
17513 do not print progress messages
17514 -d, --debug don't remove temporary files
17515 --recheck update $as_me by reconfiguring in the same conditions
17516 --file=FILE[:TEMPLATE]
17517 instantiate the configuration file FILE
17518
17519 Configuration files:
17520 $config_files
17521
17522 Configuration commands:
17523 $config_commands
17524
17525 Report bugs to <cocci@diku.dk>.
17526 coccinelle home page: <http://coccinelle.lip6.fr/>."
17527
17528 _ACEOF
17529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17530 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17531 ac_cs_version="\\
17532 coccinelle config.status 1.0.0-rc15
17533 configured by $0, generated by GNU Autoconf 2.69,
17534 with options \\"\$ac_cs_config\\"
17535
17536 Copyright (C) 2012 Free Software Foundation, Inc.
17537 This config.status script is free software; the Free Software Foundation
17538 gives unlimited permission to copy, distribute and modify it."
17539
17540 ac_pwd='$ac_pwd'
17541 srcdir='$srcdir'
17542 INSTALL='$INSTALL'
17543 MKDIR_P='$MKDIR_P'
17544 AWK='$AWK'
17545 test -n "\$AWK" || AWK=awk
17546 _ACEOF
17547
17548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17549 # The default lists apply if the user does not specify any file.
17550 ac_need_defaults=:
17551 while test $# != 0
17552 do
17553 case $1 in
17554 --*=?*)
17555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17557 ac_shift=:
17558 ;;
17559 --*=)
17560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17561 ac_optarg=
17562 ac_shift=:
17563 ;;
17564 *)
17565 ac_option=$1
17566 ac_optarg=$2
17567 ac_shift=shift
17568 ;;
17569 esac
17570
17571 case $ac_option in
17572 # Handling of the options.
17573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17574 ac_cs_recheck=: ;;
17575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17576 $as_echo "$ac_cs_version"; exit ;;
17577 --config | --confi | --conf | --con | --co | --c )
17578 $as_echo "$ac_cs_config"; exit ;;
17579 --debug | --debu | --deb | --de | --d | -d )
17580 debug=: ;;
17581 --file | --fil | --fi | --f )
17582 $ac_shift
17583 case $ac_optarg in
17584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17585 '') as_fn_error $? "missing file argument" ;;
17586 esac
17587 as_fn_append CONFIG_FILES " '$ac_optarg'"
17588 ac_need_defaults=false;;
17589 --he | --h | --help | --hel | -h )
17590 $as_echo "$ac_cs_usage"; exit ;;
17591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17593 ac_cs_silent=: ;;
17594
17595 # This is an error.
17596 -*) as_fn_error $? "unrecognized option: \`$1'
17597 Try \`$0 --help' for more information." ;;
17598
17599 *) as_fn_append ac_config_targets " $1"
17600 ac_need_defaults=false ;;
17601
17602 esac
17603 shift
17604 done
17605
17606 ac_configure_extra_args=
17607
17608 if $ac_cs_silent; then
17609 exec 6>/dev/null
17610 ac_configure_extra_args="$ac_configure_extra_args --silent"
17611 fi
17612
17613 _ACEOF
17614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17615 if \$ac_cs_recheck; then
17616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17617 shift
17618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17619 CONFIG_SHELL='$SHELL'
17620 export CONFIG_SHELL
17621 exec "\$@"
17622 fi
17623
17624 _ACEOF
17625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17626 exec 5>>config.log
17627 {
17628 echo
17629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17630 ## Running $as_me. ##
17631 _ASBOX
17632 $as_echo "$ac_log"
17633 } >&5
17634
17635 _ACEOF
17636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17637 #
17638 # INIT-COMMANDS
17639 #
17640 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17641
17642 _ACEOF
17643
17644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17645
17646 # Handling of arguments.
17647 for ac_config_target in $ac_config_targets
17648 do
17649 case $ac_config_target in
17650 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17651 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
17652 "version.ml") CONFIG_FILES="$CONFIG_FILES version.ml" ;;
17653 "commons/commands.ml") CONFIG_FILES="$CONFIG_FILES commons/commands.ml" ;;
17654 "globals/config.ml") CONFIG_FILES="$CONFIG_FILES globals/config.ml" ;;
17655 "globals/regexp.ml") CONFIG_FILES="$CONFIG_FILES globals/regexp.ml" ;;
17656 "python/pycocci.ml") CONFIG_FILES="$CONFIG_FILES python/pycocci.ml" ;;
17657 "ocaml/prepare_ocamlcocci.ml") CONFIG_FILES="$CONFIG_FILES ocaml/prepare_ocamlcocci.ml" ;;
17658 "scripts/spatch.sh") CONFIG_FILES="$CONFIG_FILES scripts/spatch.sh" ;;
17659 "docs/spatch.1") CONFIG_FILES="$CONFIG_FILES docs/spatch.1" ;;
17660 "myocamlbuild.ml") CONFIG_FILES="$CONFIG_FILES myocamlbuild.ml" ;;
17661 "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
17662
17663 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17664 esac
17665 done
17666
17667
17668 # If the user did not use the arguments to specify the items to instantiate,
17669 # then the envvar interface is used. Set only those that are not.
17670 # We use the long form for the default assignment because of an extremely
17671 # bizarre bug on SunOS 4.1.3.
17672 if $ac_need_defaults; then
17673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17675 fi
17676
17677 # Have a temporary directory for convenience. Make it in the build tree
17678 # simply because there is no reason against having it here, and in addition,
17679 # creating and moving files from /tmp can sometimes cause problems.
17680 # Hook for its removal unless debugging.
17681 # Note that there is a small window in which the directory will not be cleaned:
17682 # after its creation but before its name has been assigned to `$tmp'.
17683 $debug ||
17684 {
17685 tmp= ac_tmp=
17686 trap 'exit_status=$?
17687 : "${ac_tmp:=$tmp}"
17688 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17689 ' 0
17690 trap 'as_fn_exit 1' 1 2 13 15
17691 }
17692 # Create a (secure) tmp directory for tmp files.
17693
17694 {
17695 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17696 test -d "$tmp"
17697 } ||
17698 {
17699 tmp=./conf$$-$RANDOM
17700 (umask 077 && mkdir "$tmp")
17701 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17702 ac_tmp=$tmp
17703
17704 # Set up the scripts for CONFIG_FILES section.
17705 # No need to generate them if there are no CONFIG_FILES.
17706 # This happens for instance with `./config.status config.h'.
17707 if test -n "$CONFIG_FILES"; then
17708
17709
17710 ac_cr=`echo X | tr X '\015'`
17711 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17712 # But we know of no other shell where ac_cr would be empty at this
17713 # point, so we can use a bashism as a fallback.
17714 if test "x$ac_cr" = x; then
17715 eval ac_cr=\$\'\\r\'
17716 fi
17717 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17718 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17719 ac_cs_awk_cr='\\r'
17720 else
17721 ac_cs_awk_cr=$ac_cr
17722 fi
17723
17724 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17725 _ACEOF
17726
17727
17728 {
17729 echo "cat >conf$$subs.awk <<_ACEOF" &&
17730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17731 echo "_ACEOF"
17732 } >conf$$subs.sh ||
17733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17734 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17735 ac_delim='%!_!# '
17736 for ac_last_try in false false false false false :; do
17737 . ./conf$$subs.sh ||
17738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17739
17740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17741 if test $ac_delim_n = $ac_delim_num; then
17742 break
17743 elif $ac_last_try; then
17744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17745 else
17746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17747 fi
17748 done
17749 rm -f conf$$subs.sh
17750
17751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17752 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17753 _ACEOF
17754 sed -n '
17755 h
17756 s/^/S["/; s/!.*/"]=/
17757 p
17758 g
17759 s/^[^!]*!//
17760 :repl
17761 t repl
17762 s/'"$ac_delim"'$//
17763 t delim
17764 :nl
17765 h
17766 s/\(.\{148\}\)..*/\1/
17767 t more1
17768 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17769 p
17770 n
17771 b repl
17772 :more1
17773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17774 p
17775 g
17776 s/.\{148\}//
17777 t nl
17778 :delim
17779 h
17780 s/\(.\{148\}\)..*/\1/
17781 t more2
17782 s/["\\]/\\&/g; s/^/"/; s/$/"/
17783 p
17784 b
17785 :more2
17786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17787 p
17788 g
17789 s/.\{148\}//
17790 t delim
17791 ' <conf$$subs.awk | sed '
17792 /^[^""]/{
17793 N
17794 s/\n//
17795 }
17796 ' >>$CONFIG_STATUS || ac_write_fail=1
17797 rm -f conf$$subs.awk
17798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17799 _ACAWK
17800 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17801 for (key in S) S_is_set[key] = 1
17802 FS = "\a"
17803
17804 }
17805 {
17806 line = $ 0
17807 nfields = split(line, field, "@")
17808 substed = 0
17809 len = length(field[1])
17810 for (i = 2; i < nfields; i++) {
17811 key = field[i]
17812 keylen = length(key)
17813 if (S_is_set[key]) {
17814 value = S[key]
17815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17816 len += length(value) + length(field[++i])
17817 substed = 1
17818 } else
17819 len += 1 + keylen
17820 }
17821
17822 print line
17823 }
17824
17825 _ACAWK
17826 _ACEOF
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17829 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17830 else
17831 cat
17832 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17833 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17834 _ACEOF
17835
17836 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17837 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17838 # trailing colons and then remove the whole line if VPATH becomes empty
17839 # (actually we leave an empty line to preserve line numbers).
17840 if test "x$srcdir" = x.; then
17841 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17842 h
17843 s///
17844 s/^/:/
17845 s/[ ]*$/:/
17846 s/:\$(srcdir):/:/g
17847 s/:\${srcdir}:/:/g
17848 s/:@srcdir@:/:/g
17849 s/^:*//
17850 s/:*$//
17851 x
17852 s/\(=[ ]*\).*/\1/
17853 G
17854 s/\n//
17855 s/^[^=]*=[ ]*$//
17856 }'
17857 fi
17858
17859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17860 fi # test -n "$CONFIG_FILES"
17861
17862
17863 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17864 shift
17865 for ac_tag
17866 do
17867 case $ac_tag in
17868 :[FHLC]) ac_mode=$ac_tag; continue;;
17869 esac
17870 case $ac_mode$ac_tag in
17871 :[FHL]*:*);;
17872 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17873 :[FH]-) ac_tag=-:-;;
17874 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17875 esac
17876 ac_save_IFS=$IFS
17877 IFS=:
17878 set x $ac_tag
17879 IFS=$ac_save_IFS
17880 shift
17881 ac_file=$1
17882 shift
17883
17884 case $ac_mode in
17885 :L) ac_source=$1;;
17886 :[FH])
17887 ac_file_inputs=
17888 for ac_f
17889 do
17890 case $ac_f in
17891 -) ac_f="$ac_tmp/stdin";;
17892 *) # Look for the file first in the build tree, then in the source tree
17893 # (if the path is not absolute). The absolute path cannot be DOS-style,
17894 # because $ac_f cannot contain `:'.
17895 test -f "$ac_f" ||
17896 case $ac_f in
17897 [\\/$]*) false;;
17898 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17899 esac ||
17900 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17901 esac
17902 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17903 as_fn_append ac_file_inputs " '$ac_f'"
17904 done
17905
17906 # Let's still pretend it is `configure' which instantiates (i.e., don't
17907 # use $as_me), people would be surprised to read:
17908 # /* config.h. Generated by config.status. */
17909 configure_input='Generated from '`
17910 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17911 `' by configure.'
17912 if test x"$ac_file" != x-; then
17913 configure_input="$ac_file. $configure_input"
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17915 $as_echo "$as_me: creating $ac_file" >&6;}
17916 fi
17917 # Neutralize special characters interpreted by sed in replacement strings.
17918 case $configure_input in #(
17919 *\&* | *\|* | *\\* )
17920 ac_sed_conf_input=`$as_echo "$configure_input" |
17921 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17922 *) ac_sed_conf_input=$configure_input;;
17923 esac
17924
17925 case $ac_tag in
17926 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17928 esac
17929 ;;
17930 esac
17931
17932 ac_dir=`$as_dirname -- "$ac_file" ||
17933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17934 X"$ac_file" : 'X\(//\)[^/]' \| \
17935 X"$ac_file" : 'X\(//\)$' \| \
17936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17937 $as_echo X"$ac_file" |
17938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17939 s//\1/
17940 q
17941 }
17942 /^X\(\/\/\)[^/].*/{
17943 s//\1/
17944 q
17945 }
17946 /^X\(\/\/\)$/{
17947 s//\1/
17948 q
17949 }
17950 /^X\(\/\).*/{
17951 s//\1/
17952 q
17953 }
17954 s/.*/./; q'`
17955 as_dir="$ac_dir"; as_fn_mkdir_p
17956 ac_builddir=.
17957
17958 case "$ac_dir" in
17959 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17960 *)
17961 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17962 # A ".." for each directory in $ac_dir_suffix.
17963 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17964 case $ac_top_builddir_sub in
17965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17967 esac ;;
17968 esac
17969 ac_abs_top_builddir=$ac_pwd
17970 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17971 # for backward compatibility:
17972 ac_top_builddir=$ac_top_build_prefix
17973
17974 case $srcdir in
17975 .) # We are building in place.
17976 ac_srcdir=.
17977 ac_top_srcdir=$ac_top_builddir_sub
17978 ac_abs_top_srcdir=$ac_pwd ;;
17979 [\\/]* | ?:[\\/]* ) # Absolute name.
17980 ac_srcdir=$srcdir$ac_dir_suffix;
17981 ac_top_srcdir=$srcdir
17982 ac_abs_top_srcdir=$srcdir ;;
17983 *) # Relative name.
17984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17985 ac_top_srcdir=$ac_top_build_prefix$srcdir
17986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17987 esac
17988 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17989
17990
17991 case $ac_mode in
17992 :F)
17993 #
17994 # CONFIG_FILE
17995 #
17996
17997 case $INSTALL in
17998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18000 esac
18001 ac_MKDIR_P=$MKDIR_P
18002 case $MKDIR_P in
18003 [\\/$]* | ?:[\\/]* ) ;;
18004 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18005 esac
18006 _ACEOF
18007
18008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18009 # If the template does not know about datarootdir, expand it.
18010 # FIXME: This hack should be removed a few years after 2.60.
18011 ac_datarootdir_hack=; ac_datarootdir_seen=
18012 ac_sed_dataroot='
18013 /datarootdir/ {
18014 p
18015 q
18016 }
18017 /@datadir@/p
18018 /@docdir@/p
18019 /@infodir@/p
18020 /@localedir@/p
18021 /@mandir@/p'
18022 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18023 *datarootdir*) ac_datarootdir_seen=yes;;
18024 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18026 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18027 _ACEOF
18028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18029 ac_datarootdir_hack='
18030 s&@datadir@&$datadir&g
18031 s&@docdir@&$docdir&g
18032 s&@infodir@&$infodir&g
18033 s&@localedir@&$localedir&g
18034 s&@mandir@&$mandir&g
18035 s&\\\${datarootdir}&$datarootdir&g' ;;
18036 esac
18037 _ACEOF
18038
18039 # Neutralize VPATH when `$srcdir' = `.'.
18040 # Shell code in configure.ac might set extrasub.
18041 # FIXME: do we really want to maintain this feature?
18042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18043 ac_sed_extra="$ac_vpsub
18044 $extrasub
18045 _ACEOF
18046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18047 :t
18048 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18049 s|@configure_input@|$ac_sed_conf_input|;t t
18050 s&@top_builddir@&$ac_top_builddir_sub&;t t
18051 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18052 s&@srcdir@&$ac_srcdir&;t t
18053 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18054 s&@top_srcdir@&$ac_top_srcdir&;t t
18055 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18056 s&@builddir@&$ac_builddir&;t t
18057 s&@abs_builddir@&$ac_abs_builddir&;t t
18058 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18059 s&@INSTALL@&$ac_INSTALL&;t t
18060 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18061 $ac_datarootdir_hack
18062 "
18063 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18064 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18065
18066 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18067 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18069 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18071 which seems to be undefined. Please make sure it is defined" >&5
18072 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18073 which seems to be undefined. Please make sure it is defined" >&2;}
18074
18075 rm -f "$ac_tmp/stdin"
18076 case $ac_file in
18077 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18078 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18079 esac \
18080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18081 ;;
18082
18083
18084 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18085 $as_echo "$as_me: executing $ac_file commands" >&6;}
18086 ;;
18087 esac
18088
18089
18090 case $ac_file$ac_mode in
18091 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18092 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18093 # are listed without --file. Let's play safe and only enable the eval
18094 # if we detect the quoting.
18095 case $CONFIG_FILES in
18096 *\'*) eval set x "$CONFIG_FILES" ;;
18097 *) set x $CONFIG_FILES ;;
18098 esac
18099 shift
18100 for mf
18101 do
18102 # Strip MF so we end up with the name of the file.
18103 mf=`echo "$mf" | sed -e 's/:.*$//'`
18104 # Check whether this is an Automake generated Makefile or not.
18105 # We used to match only the files named 'Makefile.in', but
18106 # some people rename them; so instead we look at the file content.
18107 # Grep'ing the first line is not enough: some people post-process
18108 # each Makefile.in and add a new line on top of each file to say so.
18109 # Grep'ing the whole file is not good either: AIX grep has a line
18110 # limit of 2048, but all sed's we know have understand at least 4000.
18111 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18112 dirpart=`$as_dirname -- "$mf" ||
18113 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18114 X"$mf" : 'X\(//\)[^/]' \| \
18115 X"$mf" : 'X\(//\)$' \| \
18116 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18117 $as_echo X"$mf" |
18118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18119 s//\1/
18120 q
18121 }
18122 /^X\(\/\/\)[^/].*/{
18123 s//\1/
18124 q
18125 }
18126 /^X\(\/\/\)$/{
18127 s//\1/
18128 q
18129 }
18130 /^X\(\/\).*/{
18131 s//\1/
18132 q
18133 }
18134 s/.*/./; q'`
18135 else
18136 continue
18137 fi
18138 # Extract the definition of DEPDIR, am__include, and am__quote
18139 # from the Makefile without running 'make'.
18140 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18141 test -z "$DEPDIR" && continue
18142 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18143 test -z "am__include" && continue
18144 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18145 # Find all dependency output files, they are included files with
18146 # $(DEPDIR) in their names. We invoke sed twice because it is the
18147 # simplest approach to changing $(DEPDIR) to its actual value in the
18148 # expansion.
18149 for file in `sed -n "
18150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18152 # Make sure the directory exists.
18153 test -f "$dirpart/$file" && continue
18154 fdir=`$as_dirname -- "$file" ||
18155 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18156 X"$file" : 'X\(//\)[^/]' \| \
18157 X"$file" : 'X\(//\)$' \| \
18158 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18159 $as_echo X"$file" |
18160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18161 s//\1/
18162 q
18163 }
18164 /^X\(\/\/\)[^/].*/{
18165 s//\1/
18166 q
18167 }
18168 /^X\(\/\/\)$/{
18169 s//\1/
18170 q
18171 }
18172 /^X\(\/\).*/{
18173 s//\1/
18174 q
18175 }
18176 s/.*/./; q'`
18177 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18178 # echo "creating $dirpart/$file"
18179 echo '# dummy' > "$dirpart/$file"
18180 done
18181 done
18182 }
18183 ;;
18184
18185 esac
18186 done # for ac_tag
18187
18188
18189 as_fn_exit 0
18190 _ACEOF
18191 ac_clean_files=$ac_clean_files_save
18192
18193 test $ac_write_fail = 0 ||
18194 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18195
18196
18197 # configure is writing to config.log, and then calls config.status.
18198 # config.status does its own redirection, appending to config.log.
18199 # Unfortunately, on DOS this fails, as config.log is still kept open
18200 # by configure, so config.status won't be able to write to it; its
18201 # output is simply discarded. So we exec the FD to /dev/null,
18202 # effectively closing config.log, so it can be properly (re)opened and
18203 # appended to by config.status. When coming back to configure, we
18204 # need to make the FD available again.
18205 if test "$no_create" != yes; then
18206 ac_cs_success=:
18207 ac_config_status_args=
18208 test "$silent" = yes &&
18209 ac_config_status_args="$ac_config_status_args --quiet"
18210 exec 5>/dev/null
18211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18212 exec 5>>config.log
18213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18214 # would make configure fail if this is the last instruction.
18215 $ac_cs_success || as_fn_exit 1
18216 fi
18217 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18219 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18220 fi
18221
18222
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: configuration completed" >&5
18224 $as_echo "$as_me: configuration completed" >&6;}
18225
18226 cat << EOF
18227 ------------------------------------------------------------------------------
18228 Summary
18229
18230 configure flags: $CONFIGURE_FLAGS
18231 findlib: $OCAMLFIND (an actual version is strongly recommended)
18232 menhir: $MENHIR (should be an optional tool)
18233 menhirLib module: $enable_menhirLib (for local package use --disable-menhirLib)
18234
18235 ocaml scripting: $enable_ocaml (overridable with --enable-ocaml)
18236 python scripting: $enable_python (overridable with --enable-python)
18237 pycaml module: $enable_pycaml (for local package use --disable-pycaml)
18238
18239 pcre regexes: $enable_pcre_syntax (overridable with --enable-pcre-syntax)
18240 pcre module: $enable_pcre (for local package use --disable-pcre)
18241 pcre library: $HAVE_PCRE (requires the dev version of libpcre)
18242
18243 release config: $enable_release (strongly recommended to be 'yes', overridable with --enable-release)
18244 optimized spatch: $enable_opt (overridable with --disable-opt)
18245
18246 ------------------------------------------------------------------------------
18247 Coccinelle can now be compiled and installed.
18248
18249
18250 If you compile coccinelle again after source code changes or
18251 configuration changes, you may need to run first:
18252 \$ make clean
18253
18254 To compile coccinelle, run:
18255 \$ make all
18256
18257 To install coccinelle, run:
18258 \$ make install
18259
18260 Then, to test coccinelle, run for example:
18261 \$ spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c
18262
18263 Or when coccinelle is not installed yet:
18264 \$ COCCINELLE_HOME=$(pwd) ./scripts/spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c
18265 EOF
18266
18267 if test "x$enable_python" != "xno"; then
18268 cat << EOF
18269 ------------------------------------------------------------------------------
18270 You may need to set some environment variables so that the python
18271 libraries are found. The frontend 'spatch' sets the following variables:
18272
18273 \$ export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$prefix/lib
18274 \$ export PYTHONPATH=\$PYTHONPATH:$prefix/share/coccinelle/python
18275
18276 EOF
18277 fi
18278
18279 cat << EOF
18280 ------------------------------------------------------------------------------
18281 EOF