Coccinelle release 1.0.0-rc15
[bpt/coccinelle.git] / configure
CommitLineData
feec80c3
C
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
755320b0 3# Generated by GNU Autoconf 2.69 for coccinelle 1.0.0-rc14.
feec80c3
C
4#
5# Report bugs to <cocci@diku.dk>.
6#
7#
755320b0 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
feec80c3
C
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## -------------------- ##
34e49164 16
feec80c3
C
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
978fd7e5
C
34
35
feec80c3
C
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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=';'
97111a47 80 }
feec80c3 81fi
97111a47 82
17ba0788 83
feec80c3
C
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.)
89IFS=" "" $as_nl"
34e49164 90
feec80c3
C
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
0708f913 103
feec80c3
C
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
3a314143 115
feec80c3
C
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
ca417fcf 127
feec80c3
C
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
90aeb998 133
feec80c3
C
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
90aeb998 136
755320b0
C
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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
feec80c3
C
162if 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
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
90aeb998 184
feec80c3
C
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
90aeb998 191
feec80c3
C
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
755320b0
C
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
feec80c3
C
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
203else
204 as_have_required=no
205fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
90aeb998 207
feec80c3
C
208else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210as_found=false
211for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212do
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
226fi
227fi
228 done;;
229 esac
230 as_found=false
231done
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
235fi; }
236IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
755320b0
C
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.
245BASH_ENV=/dev/null
246ENV=/dev/null
247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253esac
254exec $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
258exit 255
feec80c3
C
259fi
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
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
993936c0 293}
feec80c3 294as_unset=as_fn_unset
993936c0 295
feec80c3
C
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_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.
307as_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.
317as_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
755320b0
C
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
feec80c3
C
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.
375if (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 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # 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.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # 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.
410as_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
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424else
425 as_expr=false
426fi
427
428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430else
431 as_basename=false
432fi
433
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
439
440as_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.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_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
755320b0
C
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
feec80c3
C
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
90aeb998
C
500}
501
feec80c3
C
502ECHO_C= ECHO_N= ECHO_T=
503case `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';;
513esac
97111a47 514
feec80c3
C
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521fi
522if (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.
755320b0 528 # In both cases, we have to default to `cp -pR'.
feec80c3 529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
755320b0 530 as_ln_s='cp -pR'
feec80c3
C
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
755320b0 534 as_ln_s='cp -pR'
feec80c3
C
535 fi
536else
755320b0 537 as_ln_s='cp -pR'
feec80c3
C
538fi
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
97111a47 541
feec80c3
C
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547fi
97111a47 548
755320b0
C
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
feec80c3
C
551
552# Sed expression to map a string onto a valid CPP name.
553as_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.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558as_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 }
97111a47 604 } else {
feec80c3
C
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)
97111a47 608 }
feec80c3
C
609 if (d1 < d2) exit 1
610 if (d1 > d2) exit 2
97111a47 611 }
feec80c3
C
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
97111a47 616 }
feec80c3 617'
97111a47 618
feec80c3
C
619test -n "$DJDIR" || exec 7<&0 </dev/null
620exec 6>&1
97111a47 621
feec80c3
C
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.
625ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
626
627#
628# Initializations.
629#
630ac_default_prefix=/usr/local
631ac_clean_files=
632ac_config_libobj_dir=.
633LIBOBJS=
634cross_compiling=no
635subdirs=
636MFLAGS=
637MAKEFLAGS=
34e49164 638
feec80c3
C
639# Identity of this package.
640PACKAGE_NAME='coccinelle'
641PACKAGE_TARNAME='coccinelle'
755320b0
C
642PACKAGE_VERSION='1.0.0-rc14'
643PACKAGE_STRING='coccinelle 1.0.0-rc14'
feec80c3
C
644PACKAGE_BUGREPORT='cocci@diku.dk'
645PACKAGE_URL='http://coccinelle.lip6.fr/'
34e49164 646
feec80c3
C
647ac_unique_file="cocci.ml"
648ac_subst_vars='LTLIBOBJS
649LIBOBJS
d6ce1786
C
650MAKETARGET_SPATCH
651SPATCHNAME
652enable_opt
feec80c3 653MAKETARGET_ALL
755320b0 654MODULES_profiling
feec80c3
C
655enable_release
656SUBSTITUTED_PDFLATEX
657with_PDFLATEX
658PDFLATEX
659DYNLINK_IS_NATIVE
660FEATURE_OCAML
661FEATURE_PYTHON
662SHAREDIR
663REGEXP_FILE
664REGEXP_MODULE
665MAKE_pcre
d6ce1786 666OPTFLAGS_pcre
feec80c3
C
667enable_pcre
668GLOBAL_pcre
669OCAML_PKG_pcre
670enable_pcre_syntax
671HAVE_PCRE
672PCRE_LIBS
673PCRE_CFLAGS
674PYCOCCI_FILE
675PYCOCCI_MODULE
676MAKE_pycaml
d6ce1786 677OPTFLAGS_pycaml
feec80c3
C
678GLOBAL_pycaml
679OCAML_PKG_pycaml
680enable_python
681HAVE_PYTHON
682PYTHON_LIBS
683PYTHON_CFLAGS
d6ce1786 684PYVER_MAJOR
feec80c3
C
685SUBSTITUTED_PYTHON
686with_PYTHON
687enable_pycaml
688PYTHON
689OCAMLCOCCI_FILE
690OCAMLCOCCI_MODULE
691enable_ocaml
692SUBSTITUTED_MENHIR
693with_MENHIR
694MENHIR
d6ce1786 695OPTIMIZED_dynlink
feec80c3 696MAKE_menhirLib
d6ce1786 697OPTFLAGS_menhirLib
feec80c3
C
698enable_menhirLib
699GLOBAL_menhirLib
700OCAML_PKG_menhirLib
feec80c3 701MAKE_camlp4
d6ce1786 702OPTFLAGS_camlp4
feec80c3
C
703enable_camlp4
704GLOBAL_camlp4
705OCAML_PKG_camlp4
706MAKE_dynlink
d6ce1786 707OPTFLAGS_dynlink
feec80c3
C
708enable_dynlink
709GLOBAL_dynlink
710OCAML_PKG_dynlink
feec80c3
C
711PATH_str
712OCAML_PKG_str
713PATH_num
714OCAML_PKG_num
715PATH_bigarray
716OCAML_PKG_bigarray
717PATH_unix
718OCAML_PKG_unix
719PATH_camlp4
720MODULESOPT_camlp4
721MODULES_camlp4
722FLAGS_camlp4
723LOCALLIB_camlp4
724FEATURE_camlp4
725PATH_pycaml
726MODULESOPT_pycaml
727MODULES_pycaml
728FLAGS_pycaml
729LOCALLIB_pycaml
730FEATURE_pycaml
731PATH_pcre
732MODULESOPT_pcre
733MODULES_pcre
734FLAGS_pcre
735LOCALLIB_pcre
736FEATURE_pcre
737PATH_dynlink
738MODULESOPT_dynlink
739MODULES_dynlink
740FLAGS_dynlink
741LOCALLIB_dynlink
742FEATURE_dynlink
feec80c3
C
743PATH_menhirLib
744MODULESOPT_menhirLib
745MODULES_menhirLib
746FLAGS_menhirLib
747LOCALLIB_menhirLib
748FEATURE_menhirLib
feec80c3
C
749COCCI_OCAML_EXTERNAL
750RUNTIME_CAMLP4O_CMD
751RUNTIME_CAMLP4_CMD
752RUNTIME_OCAMLDEP_CMD
753RUNTIME_OCAMLOPT_CMD
754RUNTIME_OCAMLC_CMD
755RUNTIME_OCAMLFIND_CMD
755320b0
C
756SUBSTITUTED_OCAMLPROF
757with_OCAMLPROF
758OCAMLPROF
feec80c3
C
759SUBSTITUTED_OCAMLFIND
760with_OCAMLFIND
761OCAMLFIND
762SUBSTITUTED_OCAMLYACC
763with_OCAMLYACC
764SUBSTITUTED_OCAMLLEX
765with_OCAMLLEX
766CAMLP4RF
767CAMLP4R
768CAMLP4PROF
769CAMLP4ORF
770CAMLP4OOF
771CAMLP4OF
772CAMLP4O
773CAMLP4BOOT
774CAMLP4
755320b0 775OCAMLCORIG
feec80c3
C
776OCAMLATLEAST311
777OCAMLATLEAST310
778OCAMLBUILD
779OCAMLDOC
780OCAMLMKLIB
781OCAMLMKTOP
782OCAMLDEP
783OCAML
784OCAMLOPTDOTOPT
785OCAMLCDOTOPT
786OCAMLBEST
787OCAMLOPT
788OCAMLLIB
789OCAMLVERSION
790OCAMLC
791SUBSTITUTED_PKG_CONFIG
792OCAMLYACC
793OCAMLLEXDOTOPT
794OCAMLLEX
795with_PKG_CONFIG
796PKG_CONFIG
d6ce1786 797PATCHELF
feec80c3
C
798PATCH
799TAR
800CPP
801OBJEXT
802EXEEXT
803ac_ct_CC
804CPPFLAGS
805LDFLAGS
806CFLAGS
807CC
808MKDIR_P
809INSTALL_DATA
810INSTALL_SCRIPT
811INSTALL_PROGRAM
812DATE
813GIT
814CONFVERSION
815COCCI_SRCDIR
816COCCI_VERSION
d6ce1786 817CONFIGURE_FLAGS
feec80c3
C
818target_alias
819host_alias
820build_alias
821LIBS
822ECHO_T
823ECHO_N
824ECHO_C
825DEFS
826mandir
827localedir
828libdir
829psdir
830pdfdir
831dvidir
832htmldir
833infodir
834docdir
835oldincludedir
836includedir
837localstatedir
838sharedstatedir
839sysconfdir
840datadir
841datarootdir
842libexecdir
843sbindir
844bindir
845program_transform_name
846prefix
847exec_prefix
848PACKAGE_URL
849PACKAGE_BUGREPORT
850PACKAGE_STRING
851PACKAGE_VERSION
852PACKAGE_TARNAME
853PACKAGE_NAME
854PATH_SEPARATOR
855SHELL
856PYVER'
857ac_subst_files=''
858ac_user_opts='
859enable_option_checking
860with_pkg_config
861with_ocamllex
862with_ocamlyacc
863with_ocamlfind
755320b0 864with_ocamlprof
feec80c3
C
865with_runtime_ocamlfind
866with_runtime_ocamlc
867with_runtime_ocamlopt
868with_runtime_ocamldep
869with_runtime_camlp4
870with_runtime_camlp4o
871enable_dynlink
872enable_camlp4
feec80c3 873enable_menhirLib
feec80c3
C
874with_menhir
875enable_ocaml
876enable_python
877with_python
878enable_pycaml
879enable_pcre_syntax
880enable_pcre
881with_pdflatex
882enable_release
d6ce1786 883enable_opt
feec80c3
C
884'
885 ac_precious_vars='PYVER
886build_alias
887host_alias
888target_alias
889CC
890CFLAGS
891LDFLAGS
892LIBS
893CPPFLAGS
894CPP
895PKG_CONFIG
896OCAMLLEX
897OCAMLYACC
898OCAMLFIND
755320b0 899OCAMLPROF
feec80c3
C
900RUNTIME_OCAMLFIND_CMD
901RUNTIME_OCAMLC_CMD
902RUNTIME_OCAMLOPT_CMD
903RUNTIME_OCAMLDEP_CMD
904RUNTIME_CAMLP4_CMD
905RUNTIME_CAMLP4O_CMD
906COCCI_OCAML_EXTERNAL
907MENHIR
908PYTHON
909PYTHON_CFLAGS
910PYTHON_LIBS
911PCRE_CFLAGS
912PCRE_LIBS
913PDFLATEX'
34e49164 914
34e49164 915
feec80c3
C
916# Initialize some variables set by options.
917ac_init_help=
918ac_init_version=false
919ac_unrecognized_opts=
920ac_unrecognized_sep=
921# The variables have the same names as the options, with
922# dashes changed to underlines.
923cache_file=/dev/null
924exec_prefix=NONE
925no_create=
926no_recursion=
927prefix=NONE
928program_prefix=NONE
929program_suffix=NONE
930program_transform_name=s,x,x,
931silent=
932site=
933srcdir=
934verbose=
935x_includes=NONE
936x_libraries=NONE
34e49164 937
feec80c3
C
938# Installation directory options.
939# These are left unexpanded so users can "make install exec_prefix=/foo"
940# and all the variables that are supposed to be based on exec_prefix
941# by default will actually change.
942# Use braces instead of parens because sh, perl, etc. also accept them.
943# (The list follows the same order as the GNU Coding Standards.)
944bindir='${exec_prefix}/bin'
945sbindir='${exec_prefix}/sbin'
946libexecdir='${exec_prefix}/libexec'
947datarootdir='${prefix}/share'
948datadir='${datarootdir}'
949sysconfdir='${prefix}/etc'
950sharedstatedir='${prefix}/com'
951localstatedir='${prefix}/var'
952includedir='${prefix}/include'
953oldincludedir='/usr/include'
954docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955infodir='${datarootdir}/info'
956htmldir='${docdir}'
957dvidir='${docdir}'
958pdfdir='${docdir}'
959psdir='${docdir}'
960libdir='${exec_prefix}/lib'
961localedir='${datarootdir}/locale'
962mandir='${datarootdir}/man'
34e49164 963
feec80c3
C
964ac_prev=
965ac_dashdash=
966for ac_option
967do
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
973 fi
34e49164 974
feec80c3
C
975 case $ac_option in
976 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *=) ac_optarg= ;;
978 *) ac_optarg=yes ;;
979 esac
708f4980 980
feec80c3 981 # Accept the important Cygnus configure options, so we can diagnose typos.
708f4980 982
feec80c3
C
983 case $ac_dashdash$ac_option in
984 --)
985 ac_dashdash=yes ;;
34e49164 986
feec80c3
C
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
988 ac_prev=bindir ;;
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 bindir=$ac_optarg ;;
34e49164 991
feec80c3
C
992 -build | --build | --buil | --bui | --bu)
993 ac_prev=build_alias ;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias=$ac_optarg ;;
34e49164 996
feec80c3
C
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev=cache_file ;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file=$ac_optarg ;;
34e49164 1003
feec80c3
C
1004 --config-cache | -C)
1005 cache_file=config.cache ;;
ca417fcf 1006
feec80c3
C
1007 -datadir | --datadir | --datadi | --datad)
1008 ac_prev=datadir ;;
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir=$ac_optarg ;;
34e49164 1011
feec80c3
C
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev=datarootdir ;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir=$ac_optarg ;;
34e49164 1018
feec80c3
C
1019 -disable-* | --disable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1027 *"
1028"enable_$ac_useropt"
1029"*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
ca417fcf 1034
feec80c3
C
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
34e49164 1039
feec80c3
C
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
8ba84ae2 1044
feec80c3
C
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054"enable_$ac_useropt"
1055"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=\$ac_optarg ;;
34e49164 1060
feec80c3
C
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev=exec_prefix ;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix=$ac_optarg ;;
34e49164 1069
feec80c3
C
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1072 with_gas=yes ;;
34e49164 1073
feec80c3
C
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help=long ;;
1076 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077 ac_init_help=recursive ;;
1078 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079 ac_init_help=short ;;
34e49164 1080
feec80c3
C
1081 -host | --host | --hos | --ho)
1082 ac_prev=host_alias ;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias=$ac_optarg ;;
174d1640 1085
feec80c3
C
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 ac_prev=htmldir ;;
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 | --ht=*)
1090 htmldir=$ac_optarg ;;
b23ff9c7 1091
feec80c3
C
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev=includedir ;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir=$ac_optarg ;;
0708f913 1098
feec80c3
C
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 ac_prev=infodir ;;
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir=$ac_optarg ;;
993936c0 1103
feec80c3
C
1104 -libdir | --libdir | --libdi | --libd)
1105 ac_prev=libdir ;;
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir=$ac_optarg ;;
90aeb998 1108
feec80c3
C
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev=libexecdir ;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir=$ac_optarg ;;
1115
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev=localedir ;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir=$ac_optarg ;;
1120
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev=localstatedir ;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir=$ac_optarg ;;
1127
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 ac_prev=mandir ;;
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir=$ac_optarg ;;
1132
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1135 with_fp=no ;;
1136
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1139 no_create=yes ;;
1140
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143 no_recursion=yes ;;
1144
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev=oldincludedir ;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir=$ac_optarg ;;
1153
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 ac_prev=prefix ;;
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix=$ac_optarg ;;
1158
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev=program_prefix ;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix=$ac_optarg ;;
1165
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev=program_suffix ;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix=$ac_optarg ;;
1172
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev=program_transform_name ;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name=$ac_optarg ;;
1189
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 ac_prev=pdfdir ;;
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir=$ac_optarg ;;
1194
1195 -psdir | --psdir | --psdi | --psd | --ps)
1196 ac_prev=psdir ;;
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198 psdir=$ac_optarg ;;
1199
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1202 silent=yes ;;
1203
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
1208 sbindir=$ac_optarg ;;
1209
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
1219 sharedstatedir=$ac_optarg ;;
1220
1221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
1224 site=$ac_optarg ;;
1225
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir=$ac_optarg ;;
1230
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir=$ac_optarg ;;
1237
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev=target_alias ;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias=$ac_optarg ;;
1242
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1245
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
1248
1249 -with-* | --with-*)
1250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253 as_fn_error $? "invalid package name: $ac_useropt"
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
1264
1265 -without-* | --without-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
1280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1298
1299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300Try \`$0 --help' for more information"
1301 ;;
1302
1303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1309 esac
1310 eval $ac_envvar=\$ac_optarg
1311 export $ac_envvar ;;
1312
1313 *)
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $? "missing argument to $ac_option"
1327fi
1328
1329if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
1332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1335fi
1336
1337# Check all directory arguments for consistency.
1338for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1342do
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
feec80c3
C
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1371 fi
1372fi
1373
1374ac_tool_prefix=
1375test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377test "$silent" = yes && exec 6>/dev/null
1378
1379
1380ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381ac_ls_di=`ls -di .` &&
1382ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1383 as_fn_error $? "working directory cannot be determined"
1384test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 as_fn_error $? "pwd does not report name of working directory"
1386
1387
1388# Find the source files, if location was not specified.
1389if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397$as_echo X"$as_myself" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1418 fi
1419else
1420 ac_srcdir_defaulted=no
1421fi
1422if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1425fi
1426ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1429 pwd)`
1430# When building in place, set srcdir=.
1431if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1433fi
1434# Remove unnecessary trailing slashes from srcdir.
1435# Double slashes in file names in object file debugging info
1436# mess up M-x gdb in Emacs.
1437case $srcdir in
1438*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439esac
1440for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445done
34e49164 1446
97111a47 1447#
feec80c3 1448# Report the --help message.
97111a47 1449#
feec80c3
C
1450if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
755320b0 1454\`configure' configures coccinelle 1.0.0-rc14 to adapt to many kinds of systems.
97111a47 1455
feec80c3 1456Usage: $0 [OPTION]... [VAR=VALUE]...
97111a47 1457
feec80c3
C
1458To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459VAR=VALUE. See below for descriptions of some of the useful variables.
97111a47 1460
feec80c3
C
1461Defaults for the options are specified in brackets.
1462
1463Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking ...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
1474Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 [PREFIX]
1479
1480By default, \`make install' will install all the files in
1481\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483for instance \`--prefix=\$HOME'.
1484
1485For better control, use the options below.
1486
1487Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/coccinelle]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1507_ACEOF
1508
1509 cat <<\_ACEOF
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514 case $ac_init_help in
755320b0 1515 short | recursive ) echo "Configuration of coccinelle 1.0.0-rc14:";;
feec80c3
C
1516 esac
1517 cat <<\_ACEOF
1518
1519Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-dynlink enable global package dynlink (yes,no) (default:
1524 auto)
1525 --enable-camlp4 enable global package camlp4 (yes,no) (default:
1526 auto)
feec80c3
C
1527 --enable-menhirLib enable global package menhirLib (yes,no) (default:
1528 auto)
feec80c3
C
1529 --enable-ocaml enable ocaml scripting (default: auto)
1530 --enable-python enable python scripting (yes/no) (default: auto)
1531 --enable-pycaml enable global package pycaml (yes,no) (default:
1532 auto)
1533 --enable-pcre-syntax enable pcre regular expression syntax (default:
1534 auto)
1535 --enable-pcre enable global package pcre (yes,no) (default: auto)
755320b0
C
1536 --enable-release build with a release configuration (yes,no,profile
1537 default: no)
d6ce1786 1538 --enable-opt build an optimized spatch (yes,no, default: auto)
feec80c3
C
1539
1540Optional Packages:
1541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1543 --with-pkg-config whether/which pkg-config to use (default: auto)
1544 --with-ocamllex whether/which ocamllex to use (default: auto)
1545 --with-ocamlyacc whether/which ocamlyacc to use (default: auto)
1546 --with-ocamlfind whether/which ocamlfind to use (default: auto)
755320b0 1547 --with-ocamlprof whether/which ocamlprof to use (default: auto)
feec80c3
C
1548 --with-runtime-ocamlfind
1549 override the runtime cmd for ocamlfind
1550 --with-runtime-ocamlc override the runtime cmd for ocamlc
1551 --with-runtime-ocamlopt override the runtime cmd for ocamlopt
1552 --with-runtime-ocamldep override the runtime cmd for ocamldep
1553 --with-runtime-camlp4 override the runtime cmd for camlp4
1554 --with-runtime-camlp4o override the runtime cmd for camlp4o
1555 --with-menhir whether/which menhir to use (default: auto)
1556 --with-python whether/which python to use (default: auto)
1557 --with-pdflatex whether/which pdflatex to use (default: auto)
1558
1559Some influential environment variables:
1560 PYVER python version
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CPP C preprocessor
1569 PKG_CONFIG path to pkg-config
1570 OCAMLLEX path to ocamllex
1571 OCAMLYACC path to ocamlyacc
1572 OCAMLFIND path to ocamlfind
755320b0 1573 OCAMLPROF path to ocamlprof
feec80c3
C
1574 RUNTIME_OCAMLFIND_CMD
1575 path to ocamlfind
1576 RUNTIME_OCAMLC_CMD
1577 path to ocamlc
1578 RUNTIME_OCAMLOPT_CMD
1579 path to ocamlopt
1580 RUNTIME_OCAMLDEP_CMD
1581 path to ocamldep
1582 RUNTIME_CAMLP4_CMD
1583 path to camlp4
1584 RUNTIME_CAMLP4O_CMD
1585 path to camlp4o
1586 COCCI_OCAML_EXTERNAL
1587 path to extra ocaml packages (default: $COCCI_SRCDIR/bundles)
1588 MENHIR path to menhir
1589 PYTHON path to python when the version is determined automatically
1590 PYTHON_CFLAGS
1591 C compiler flags for PYTHON, overriding pkg-config
1592 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
1593 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1594 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1595 PDFLATEX path to pdflatex
1596
1597Use these variables to override the choices made by `configure' or to help
1598it to find libraries and programs with nonstandard names/locations.
1599
1600Report bugs to <cocci@diku.dk>.
1601coccinelle home page: <http://coccinelle.lip6.fr/>.
1602_ACEOF
1603ac_status=$?
1604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1613
1614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
1629
1630case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643esac
1644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659fi
1660
1661test -n "$ac_init_help" && exit $ac_status
1662if $ac_init_version; then
1663 cat <<\_ACEOF
755320b0
C
1664coccinelle configure 1.0.0-rc14
1665generated by GNU Autoconf 2.69
feec80c3 1666
755320b0 1667Copyright (C) 2012 Free Software Foundation, Inc.
feec80c3
C
1668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
1670_ACEOF
1671 exit
1672fi
1673
1674## ------------------------ ##
1675## Autoconf initialization. ##
1676## ------------------------ ##
1677
1678# ac_fn_c_try_compile LINENO
1679# --------------------------
1680# Try to compile conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_compile ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705else
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_compile
1715
1716# ac_fn_c_try_cpp LINENO
1717# ----------------------
1718# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_cpp ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1723case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } > conftest.i && {
1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 }; then :
1741 ac_retval=0
1742else
1743 $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747fi
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_cpp
1752cat >config.log <<_ACEOF
1753This file contains any messages produced by compilers while
1754running configure, to aid debugging if configure makes a mistake.
1755
755320b0
C
1756It was created by coccinelle $as_me 1.0.0-rc14, which was
1757generated by GNU Autoconf 2.69. Invocation command line was
feec80c3
C
1758
1759 $ $0 $@
1760
1761_ACEOF
1762exec 5>>config.log
1763{
1764cat <<_ASUNAME
1765## --------- ##
1766## Platform. ##
1767## --------- ##
1768
1769hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1770uname -m = `(uname -m) 2>/dev/null || echo unknown`
1771uname -r = `(uname -r) 2>/dev/null || echo unknown`
1772uname -s = `(uname -s) 2>/dev/null || echo unknown`
1773uname -v = `(uname -v) 2>/dev/null || echo unknown`
1774
1775/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1776/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1777
1778/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1779/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1780/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1781/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1782/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1783/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1784/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1785
1786_ASUNAME
1787
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 $as_echo "PATH: $as_dir"
1794 done
1795IFS=$as_save_IFS
1796
1797} >&5
1798
1799cat >&5 <<_ACEOF
1800
1801
1802## ----------- ##
1803## Core tests. ##
1804## ----------- ##
1805
1806_ACEOF
1807
1808
1809# Keep a trace of the command line.
1810# Strip out --no-create and --no-recursion so they do not pile up.
1811# Strip out --silent because we don't want to record it for future runs.
1812# Also quote any args containing shell meta-characters.
1813# Make two passes to allow for proper duplicate-argument suppression.
1814ac_configure_args=
1815ac_configure_args0=
1816ac_configure_args1=
1817ac_must_keep_next=false
1818for ac_pass in 1 2
1819do
1820 for ac_arg
1821 do
1822 case $ac_arg in
1823 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1825 | -silent | --silent | --silen | --sile | --sil)
1826 continue ;;
1827 *\'*)
1828 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1829 esac
1830 case $ac_pass in
1831 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1832 2)
1833 as_fn_append ac_configure_args1 " '$ac_arg'"
1834 if test $ac_must_keep_next = true; then
1835 ac_must_keep_next=false # Got value, back to normal.
1836 else
1837 case $ac_arg in
1838 *=* | --config-cache | -C | -disable-* | --disable-* \
1839 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1840 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1841 | -with-* | --with-* | -without-* | --without-* | --x)
1842 case "$ac_configure_args0 " in
1843 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1844 esac
1845 ;;
1846 -* ) ac_must_keep_next=true ;;
1847 esac
1848 fi
1849 as_fn_append ac_configure_args " '$ac_arg'"
1850 ;;
1851 esac
1852 done
1853done
1854{ ac_configure_args0=; unset ac_configure_args0;}
1855{ ac_configure_args1=; unset ac_configure_args1;}
1856
1857# When interrupted or exit'd, cleanup temporary files, and complete
1858# config.log. We remove comments because anyway the quotes in there
1859# would cause problems or look ugly.
1860# WARNING: Use '\'' to represent an apostrophe within the trap.
1861# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862trap 'exit_status=$?
1863 # Save into config.log some information that might help in debugging.
1864 {
1865 echo
1866
1867 $as_echo "## ---------------- ##
1868## Cache variables. ##
1869## ---------------- ##"
1870 echo
1871 # The following way of writing the cache mishandles newlines in values,
1872(
1873 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1874 eval ac_val=\$$ac_var
1875 case $ac_val in #(
1876 *${as_nl}*)
1877 case $ac_var in #(
1878 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1879$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1880 esac
1881 case $ac_var in #(
1882 _ | IFS | as_nl) ;; #(
1883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1884 *) { eval $ac_var=; unset $ac_var;} ;;
1885 esac ;;
1886 esac
1887 done
1888 (set) 2>&1 |
1889 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1890 *${as_nl}ac_space=\ *)
1891 sed -n \
1892 "s/'\''/'\''\\\\'\'''\''/g;
1893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1894 ;; #(
1895 *)
1896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1897 ;;
1898 esac |
1899 sort
1900)
1901 echo
1902
1903 $as_echo "## ----------------- ##
1904## Output variables. ##
1905## ----------------- ##"
1906 echo
1907 for ac_var in $ac_subst_vars
1908 do
1909 eval ac_val=\$$ac_var
1910 case $ac_val in
1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 esac
1913 $as_echo "$ac_var='\''$ac_val'\''"
1914 done | sort
1915 echo
1916
1917 if test -n "$ac_subst_files"; then
1918 $as_echo "## ------------------- ##
1919## File substitutions. ##
1920## ------------------- ##"
1921 echo
1922 for ac_var in $ac_subst_files
1923 do
1924 eval ac_val=\$$ac_var
1925 case $ac_val in
1926 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927 esac
1928 $as_echo "$ac_var='\''$ac_val'\''"
1929 done | sort
1930 echo
1931 fi
1932
1933 if test -s confdefs.h; then
1934 $as_echo "## ----------- ##
1935## confdefs.h. ##
1936## ----------- ##"
1937 echo
1938 cat confdefs.h
1939 echo
1940 fi
1941 test "$ac_signal" != 0 &&
1942 $as_echo "$as_me: caught signal $ac_signal"
1943 $as_echo "$as_me: exit $exit_status"
1944 } >&5
1945 rm -f core *.core core.conftest.* &&
1946 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1947 exit $exit_status
1948' 0
1949for ac_signal in 1 2 13 15; do
1950 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1951done
1952ac_signal=0
1953
1954# confdefs.h avoids OS command line length limits that DEFS can exceed.
1955rm -f -r conftest* confdefs.h
1956
1957$as_echo "/* confdefs.h */" > confdefs.h
1958
1959# Predefined preprocessor variables.
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_NAME "$PACKAGE_NAME"
1963_ACEOF
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1967_ACEOF
1968
1969cat >>confdefs.h <<_ACEOF
1970#define PACKAGE_VERSION "$PACKAGE_VERSION"
1971_ACEOF
1972
1973cat >>confdefs.h <<_ACEOF
1974#define PACKAGE_STRING "$PACKAGE_STRING"
1975_ACEOF
1976
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979_ACEOF
1980
1981cat >>confdefs.h <<_ACEOF
1982#define PACKAGE_URL "$PACKAGE_URL"
1983_ACEOF
1984
1985
1986# Let the site file select an alternate cache file if it wants to.
1987# Prefer an explicitly selected file to automatically selected ones.
1988ac_site_file1=NONE
1989ac_site_file2=NONE
1990if test -n "$CONFIG_SITE"; then
1991 # We do not want a PATH search for config.site.
1992 case $CONFIG_SITE in #((
1993 -*) ac_site_file1=./$CONFIG_SITE;;
1994 */*) ac_site_file1=$CONFIG_SITE;;
1995 *) ac_site_file1=./$CONFIG_SITE;;
1996 esac
1997elif test "x$prefix" != xNONE; then
1998 ac_site_file1=$prefix/share/config.site
1999 ac_site_file2=$prefix/etc/config.site
2000else
2001 ac_site_file1=$ac_default_prefix/share/config.site
2002 ac_site_file2=$ac_default_prefix/etc/config.site
2003fi
2004for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2005do
2006 test "x$ac_site_file" = xNONE && continue
2007 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2009$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2010 sed 's/^/| /' "$ac_site_file" >&5
2011 . "$ac_site_file" \
2012 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2014as_fn_error $? "failed to load site script $ac_site_file
2015See \`config.log' for more details" "$LINENO" 5; }
2016 fi
2017done
2018
2019if test -r "$cache_file"; then
2020 # Some versions of bash will fail to source /dev/null (special files
2021 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2022 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2024$as_echo "$as_me: loading cache $cache_file" >&6;}
2025 case $cache_file in
2026 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2027 *) . "./$cache_file";;
2028 esac
2029 fi
2030else
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2032$as_echo "$as_me: creating cache $cache_file" >&6;}
2033 >$cache_file
2034fi
2035
2036# Check that the precious variables saved in the cache have kept the same
2037# value.
2038ac_cache_corrupted=false
2039for ac_var in $ac_precious_vars; do
2040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2041 eval ac_new_set=\$ac_env_${ac_var}_set
2042 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2043 eval ac_new_val=\$ac_env_${ac_var}_value
2044 case $ac_old_set,$ac_new_set in
2045 set,)
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2047$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2049 ,set)
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2051$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2052 ac_cache_corrupted=: ;;
2053 ,);;
2054 *)
2055 if test "x$ac_old_val" != "x$ac_new_val"; then
2056 # differences in whitespace do not lead to failure.
2057 ac_old_val_w=`echo x $ac_old_val`
2058 ac_new_val_w=`echo x $ac_new_val`
2059 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2061$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2062 ac_cache_corrupted=:
2063 else
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2065$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2066 eval $ac_var=\$ac_old_val
2067 fi
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2069$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2071$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2072 fi;;
2073 esac
2074 # Pass precious variables to config.status.
2075 if test "$ac_new_set" = set; then
2076 case $ac_new_val in
2077 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 *) ac_arg=$ac_var=$ac_new_val ;;
2079 esac
2080 case " $ac_configure_args " in
2081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2082 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2083 esac
2084 fi
2085done
2086if $ac_cache_corrupted; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2090$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2092fi
2093## -------------------- ##
2094## Main body of script. ##
2095## -------------------- ##
2096
2097ac_ext=c
2098ac_cpp='$CPP $CPPFLAGS'
2099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102
2103
feec80c3 2104
d6ce1786
C
2105ac_aux_dir=
2106for ac_dir in setup "$srcdir"/setup; do
2107 if test -f "$ac_dir/install-sh"; then
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/install-sh -c"
2110 break
2111 elif test -f "$ac_dir/install.sh"; then
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/install.sh -c"
2114 break
2115 elif test -f "$ac_dir/shtool"; then
2116 ac_aux_dir=$ac_dir
2117 ac_install_sh="$ac_aux_dir/shtool install -c"
2118 break
2119 fi
2120done
2121if test -z "$ac_aux_dir"; then
2122 as_fn_error $? "cannot find install-sh, install.sh, or shtool in setup \"$srcdir\"/setup" "$LINENO" 5
2123fi
2124
2125# These three variables are undocumented and unsupported,
2126# and are intended to be withdrawn in a future Autoconf release.
2127# They can cause serious problems if a builder's source tree is in a directory
2128# whose full name contains unusual characters.
2129ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2130ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2131ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2132
2133
2134
2135CONFIGURE_FLAGS="$*"
2136
2137COCCI_VERSION="$PACKAGE_VERSION"
2138
2139COCCI_SRCDIR="$(pwd)"
feec80c3
C
2140
2141{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&5
2142$as_echo "$as_me: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&6;}
2143
2144
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: determining version suffix" >&5
2146$as_echo "$as_me: determining version suffix" >&6;}
2147
2148 if test -z "$CONFVERSION" -a -d "./.git"; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: building a version from a git repository" >&5
2150$as_echo "$as_me: building a version from a git repository" >&6;}
2151 if test -n "$ac_tool_prefix"; then
2152 # Extract the first word of "${ac_tool_prefix}git", so it can be a program name with args.
2153set dummy ${ac_tool_prefix}git; ac_word=$2
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2155$as_echo_n "checking for $ac_word... " >&6; }
2156if ${ac_cv_path_GIT+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158else
2159 case $GIT in
2160 [\\/]* | ?:[\\/]*)
2161 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
2162 ;;
2163 *)
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2171 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
2172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2174 fi
2175done
2176 done
2177IFS=$as_save_IFS
2178
2179 ;;
2180esac
2181fi
2182GIT=$ac_cv_path_GIT
2183if test -n "$GIT"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
2185$as_echo "$GIT" >&6; }
2186else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2188$as_echo "no" >&6; }
2189fi
2190
2191
2192fi
2193if test -z "$ac_cv_path_GIT"; then
2194 ac_pt_GIT=$GIT
2195 # Extract the first word of "git", so it can be a program name with args.
2196set dummy git; ac_word=$2
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2198$as_echo_n "checking for $ac_word... " >&6; }
2199if ${ac_cv_path_ac_pt_GIT+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201else
2202 case $ac_pt_GIT in
2203 [\\/]* | ?:[\\/]*)
2204 ac_cv_path_ac_pt_GIT="$ac_pt_GIT" # Let the user override the test with a path.
2205 ;;
2206 *)
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2214 ac_cv_path_ac_pt_GIT="$as_dir/$ac_word$ac_exec_ext"
2215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 break 2
2217 fi
2218done
2219 done
2220IFS=$as_save_IFS
2221
2222 ;;
2223esac
2224fi
2225ac_pt_GIT=$ac_cv_path_ac_pt_GIT
2226if test -n "$ac_pt_GIT"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GIT" >&5
2228$as_echo "$ac_pt_GIT" >&6; }
2229else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2231$as_echo "no" >&6; }
2232fi
2233
2234 if test "x$ac_pt_GIT" = x; then
2235 GIT=""
2236 else
2237 case $cross_compiling:$ac_tool_warned in
2238yes:)
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2241ac_tool_warned=yes ;;
2242esac
2243 GIT=$ac_pt_GIT
2244 fi
2245else
2246 GIT="$ac_cv_path_GIT"
2247fi
2248
2249 if test -n "$GIT"; then :
2250 CONFVERSION=`$GIT log -1 --date-order --date=rfc --pretty="format:%cd"`
2251
2252fi
2253
2254fi
2255
2256 if test -z "$CONFVERSION"; then :
2257 if test -n "$ac_tool_prefix"; then
2258 # Extract the first word of "${ac_tool_prefix}date", so it can be a program name with args.
2259set dummy ${ac_tool_prefix}date; ac_word=$2
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2261$as_echo_n "checking for $ac_word... " >&6; }
2262if ${ac_cv_path_DATE+:} false; then :
2263 $as_echo_n "(cached) " >&6
2264else
2265 case $DATE in
2266 [\\/]* | ?:[\\/]*)
2267 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
2268 ;;
2269 *)
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2277 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
2278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 break 2
2280 fi
2281done
2282 done
2283IFS=$as_save_IFS
2284
2285 ;;
2286esac
2287fi
2288DATE=$ac_cv_path_DATE
2289if test -n "$DATE"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
2291$as_echo "$DATE" >&6; }
2292else
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2294$as_echo "no" >&6; }
2295fi
2296
2297
2298fi
2299if test -z "$ac_cv_path_DATE"; then
2300 ac_pt_DATE=$DATE
2301 # Extract the first word of "date", so it can be a program name with args.
2302set dummy date; ac_word=$2
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2304$as_echo_n "checking for $ac_word... " >&6; }
2305if ${ac_cv_path_ac_pt_DATE+:} false; then :
2306 $as_echo_n "(cached) " >&6
2307else
2308 case $ac_pt_DATE in
2309 [\\/]* | ?:[\\/]*)
2310 ac_cv_path_ac_pt_DATE="$ac_pt_DATE" # Let the user override the test with a path.
2311 ;;
2312 *)
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2320 ac_cv_path_ac_pt_DATE="$as_dir/$ac_word$ac_exec_ext"
2321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324done
2325 done
2326IFS=$as_save_IFS
2327
2328 ;;
2329esac
2330fi
2331ac_pt_DATE=$ac_cv_path_ac_pt_DATE
2332if test -n "$ac_pt_DATE"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DATE" >&5
2334$as_echo "$ac_pt_DATE" >&6; }
2335else
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2337$as_echo "no" >&6; }
2338fi
2339
2340 if test "x$ac_pt_DATE" = x; then
2341 DATE=""
2342 else
2343 case $cross_compiling:$ac_tool_warned in
2344yes:)
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2347ac_tool_warned=yes ;;
2348esac
2349 DATE=$ac_pt_DATE
2350 fi
2351else
2352 DATE="$ac_cv_path_DATE"
2353fi
2354
2355 if test -n "$DATE"; then :
2356 CONFVERSION=`$DATE "+%a, %d %b %Y %H:%M:%S %z"`
2357
2358fi
2359
2360fi
2361
2362 if test -z "$CONFVERSION"; then :
2363 CONFVERSION=unknown
2364
2365fi
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: version suffix set to $CONFVERSION" >&5
2368$as_echo "$as_me: version suffix set to $CONFVERSION" >&6;}
2369
2370
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses pkg-config m4 macros" >&5
2372$as_echo "$as_me: this configure program uses pkg-config m4 macros" >&6;}
2373{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&5
2374$as_echo "$as_me: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&6;}
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses custom m4 macros (see setup/cocci.m4)" >&5
2376$as_echo "$as_me: this configure program uses custom m4 macros (see setup/cocci.m4)" >&6;}
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&5
2378$as_echo "$as_me: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&6;}
2379
2380
2381
2382
2383
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic tools" >&5
2385$as_echo "$as_me: verifying basic tools" >&6;}
2386
feec80c3
C
2387# Find a good install program. We prefer a C program (faster),
2388# so one script is as good as another. But avoid the broken or
2389# incompatible versions:
2390# SysV /etc/install, /usr/sbin/install
2391# SunOS /usr/etc/install
2392# IRIX /sbin/install
2393# AIX /bin/install
2394# AmigaOS /C/install, which installs bootblocks on floppy discs
2395# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398# OS/2's system install, which has a completely different semantic
2399# ./install, which can be erroneously created by make from ./install.sh.
2400# Reject install programs that cannot install multiple files.
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2402$as_echo_n "checking for a BSD-compatible install... " >&6; }
2403if test -z "$INSTALL"; then
2404if ${ac_cv_path_install+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 # Account for people who put trailing slashes in PATH elements.
2413case $as_dir/ in #((
2414 ./ | .// | /[cC]/* | \
2415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2416 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2417 /usr/ucb/* ) ;;
2418 *)
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2421 # by default.
2422 for ac_prog in ginstall scoinst install; do
2423 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2424 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
feec80c3
C
2425 if test $ac_prog = install &&
2426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2428 :
2429 elif test $ac_prog = install &&
2430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2432 :
2433 else
2434 rm -rf conftest.one conftest.two conftest.dir
2435 echo one > conftest.one
2436 echo two > conftest.two
2437 mkdir conftest.dir
2438 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2439 test -s conftest.one && test -s conftest.two &&
2440 test -s conftest.dir/conftest.one &&
2441 test -s conftest.dir/conftest.two
2442 then
2443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2444 break 3
2445 fi
2446 fi
2447 fi
2448 done
2449 done
2450 ;;
2451esac
2452
2453 done
2454IFS=$as_save_IFS
2455
2456rm -rf conftest.one conftest.two conftest.dir
2457
2458fi
2459 if test "${ac_cv_path_install+set}" = set; then
2460 INSTALL=$ac_cv_path_install
2461 else
2462 # As a last resort, use the slow shell script. Don't cache a
2463 # value for INSTALL within a source directory, because that will
2464 # break other packages using the cache if that directory is
2465 # removed, or if the value is a relative name.
2466 INSTALL=$ac_install_sh
2467 fi
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2470$as_echo "$INSTALL" >&6; }
2471
2472# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2473# It thinks the first close brace ends the variable substitution.
2474test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2475
2476test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2477
2478test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2479
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2481$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2482if test -z "$MKDIR_P"; then
2483 if ${ac_cv_path_mkdir+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_prog in mkdir gmkdir; do
2492 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2493 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
feec80c3
C
2494 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2495 'mkdir (GNU coreutils) '* | \
2496 'mkdir (coreutils) '* | \
2497 'mkdir (fileutils) '4.1*)
2498 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2499 break 3;;
2500 esac
2501 done
2502 done
2503 done
2504IFS=$as_save_IFS
2505
2506fi
2507
2508 test -d ./--version && rmdir ./--version
2509 if test "${ac_cv_path_mkdir+set}" = set; then
2510 MKDIR_P="$ac_cv_path_mkdir -p"
2511 else
2512 # As a last resort, use the slow shell script. Don't cache a
2513 # value for MKDIR_P within a source directory, because that will
2514 # break other packages using the cache if that directory is
2515 # removed, or if the value is a relative name.
2516 MKDIR_P="$ac_install_sh -d"
2517 fi
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2520$as_echo "$MKDIR_P" >&6; }
2521
2522ac_ext=c
2523ac_cpp='$CPP $CPPFLAGS'
2524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2529set dummy ${ac_tool_prefix}gcc; ac_word=$2
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531$as_echo_n "checking for $ac_word... " >&6; }
2532if ${ac_cv_prog_CC+:} false; then :
2533 $as_echo_n "(cached) " >&6
2534else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549done
2550 done
2551IFS=$as_save_IFS
2552
2553fi
2554fi
2555CC=$ac_cv_prog_CC
2556if test -n "$CC"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2558$as_echo "$CC" >&6; }
2559else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561$as_echo "no" >&6; }
2562fi
2563
2564
2565fi
2566if test -z "$ac_cv_prog_CC"; then
2567 ac_ct_CC=$CC
2568 # Extract the first word of "gcc", so it can be a program name with args.
2569set dummy gcc; ac_word=$2
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if ${ac_cv_prog_ac_ct_CC+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574else
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2585 ac_cv_prog_ac_ct_CC="gcc"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589done
2590 done
2591IFS=$as_save_IFS
2592
2593fi
2594fi
2595ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596if test -n "$ac_ct_CC"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2598$as_echo "$ac_ct_CC" >&6; }
2599else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
2602fi
2603
2604 if test "x$ac_ct_CC" = x; then
2605 CC=""
2606 else
2607 case $cross_compiling:$ac_tool_warned in
2608yes:)
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2611ac_tool_warned=yes ;;
2612esac
2613 CC=$ac_ct_CC
2614 fi
2615else
2616 CC="$ac_cv_prog_CC"
2617fi
2618
2619if test -z "$CC"; then
2620 if test -n "$ac_tool_prefix"; then
2621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2622set dummy ${ac_tool_prefix}cc; ac_word=$2
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if ${ac_cv_prog_CC+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627else
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2638 ac_cv_prog_CC="${ac_tool_prefix}cc"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2641 fi
2642done
2643 done
2644IFS=$as_save_IFS
2645
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651$as_echo "$CC" >&6; }
2652else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
2655fi
2656
2657
2658 fi
2659fi
2660if test -z "$CC"; then
2661 # Extract the first word of "cc", so it can be a program name with args.
2662set dummy cc; ac_word=$2
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664$as_echo_n "checking for $ac_word... " >&6; }
2665if ${ac_cv_prog_CC+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670else
2671 ac_prog_rejected=no
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2680 ac_prog_rejected=yes
2681 continue
2682 fi
2683 ac_cv_prog_CC="cc"
2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687done
2688 done
2689IFS=$as_save_IFS
2690
2691if test $ac_prog_rejected = yes; then
2692 # We found a bogon in the path, so make sure we never use it.
2693 set dummy $ac_cv_prog_CC
2694 shift
2695 if test $# != 0; then
2696 # We chose a different compiler from the bogus one.
2697 # However, it has the same basename, so the bogon will be chosen
2698 # first if we set CC to just the basename; use the full file name.
2699 shift
2700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2701 fi
2702fi
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2708$as_echo "$CC" >&6; }
2709else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711$as_echo "no" >&6; }
2712fi
2713
2714
2715fi
2716if test -z "$CC"; then
2717 if test -n "$ac_tool_prefix"; then
2718 for ac_prog in cl.exe
2719 do
2720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742 done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747CC=$ac_cv_prog_CC
2748if test -n "$CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750$as_echo "$CC" >&6; }
2751else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756
2757 test -n "$CC" && break
2758 done
2759fi
2760if test -z "$CC"; then
2761 ac_ct_CC=$CC
2762 for ac_prog in cl.exe
2763do
2764 # Extract the first word of "$ac_prog", so it can be a program name with args.
2765set dummy $ac_prog; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
2768if ${ac_cv_prog_ac_ct_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2781 ac_cv_prog_ac_ct_CC="$ac_prog"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792if test -n "$ac_ct_CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2794$as_echo "$ac_ct_CC" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801 test -n "$ac_ct_CC" && break
2802done
2803
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808yes:)
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2811ac_tool_warned=yes ;;
2812esac
2813 CC=$ac_ct_CC
2814 fi
2815fi
2816
2817fi
2818
2819
2820test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822as_fn_error $? "no acceptable C compiler found in \$PATH
2823See \`config.log' for more details" "$LINENO" 5; }
2824
2825# Provide some information about the compiler.
2826$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2827set X $ac_compile
2828ac_compiler=$2
2829for ac_option in --version -v -V -qversion; do
2830 { { ac_try="$ac_compiler $ac_option >&5"
2831case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834esac
2835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2836$as_echo "$ac_try_echo"; } >&5
2837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2838 ac_status=$?
2839 if test -s conftest.err; then
2840 sed '10a\
2841... rest of stderr output deleted ...
2842 10q' conftest.err >conftest.er1
2843 cat conftest.er1 >&5
2844 fi
2845 rm -f conftest.er1 conftest.err
2846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2847 test $ac_status = 0; }
2848done
2849
2850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851/* end confdefs.h. */
2852
2853int
2854main ()
2855{
2856
2857 ;
2858 return 0;
97111a47 2859}
feec80c3
C
2860_ACEOF
2861ac_clean_files_save=$ac_clean_files
2862ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2863# Try to create an executable without -o first, disregard a.out.
2864# It will help us diagnose broken compilers, and finding out an intuition
2865# of exeext.
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2867$as_echo_n "checking whether the C compiler works... " >&6; }
2868ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
97111a47 2869
feec80c3
C
2870# The possible output files:
2871ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2872
2873ac_rmfiles=
2874for ac_file in $ac_files
2875do
2876 case $ac_file in
2877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2878 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2879 esac
2880done
2881rm -f $ac_rmfiles
2882
2883if { { ac_try="$ac_link_default"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2889$as_echo "$ac_try_echo"; } >&5
2890 (eval "$ac_link_default") 2>&5
2891 ac_status=$?
2892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893 test $ac_status = 0; }; then :
2894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2895# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2896# in a Makefile. We should not override ac_cv_exeext if it was cached,
2897# so that the user can short-circuit this test for compilers unknown to
2898# Autoconf.
2899for ac_file in $ac_files ''
2900do
2901 test -f "$ac_file" || continue
2902 case $ac_file in
2903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2904 ;;
2905 [ab].out )
2906 # We found the default executable, but exeext='' is most
2907 # certainly right.
2908 break;;
2909 *.* )
2910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2911 then :; else
2912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 fi
2914 # We set ac_cv_exeext here because the later test for it is not
2915 # safe: cross compilers may not add the suffix if given an `-o'
2916 # argument, so we may need to know it at that point already.
2917 # Even if this section looks crufty: it has the advantage of
2918 # actually working.
2919 break;;
2920 * )
2921 break;;
2922 esac
2923done
2924test "$ac_cv_exeext" = no && ac_cv_exeext=
2925
2926else
2927 ac_file=''
2928fi
2929if test -z "$ac_file"; then :
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932$as_echo "$as_me: failed program was:" >&5
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
2935{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937as_fn_error 77 "C compiler cannot create executables
2938See \`config.log' for more details" "$LINENO" 5; }
2939else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2941$as_echo "yes" >&6; }
2942fi
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2944$as_echo_n "checking for C compiler default output file name... " >&6; }
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2946$as_echo "$ac_file" >&6; }
2947ac_exeext=$ac_cv_exeext
2948
2949rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2950ac_clean_files=$ac_clean_files_save
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2952$as_echo_n "checking for suffix of executables... " >&6; }
2953if { { ac_try="$ac_link"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960 (eval "$ac_link") 2>&5
2961 ac_status=$?
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }; then :
2964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2965# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2966# work properly (i.e., refer to `conftest.exe'), while it won't with
2967# `rm'.
2968for ac_file in conftest.exe conftest conftest.*; do
2969 test -f "$ac_file" || continue
2970 case $ac_file in
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 break;;
2974 * ) break;;
2975 esac
2976done
2977else
2978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2981See \`config.log' for more details" "$LINENO" 5; }
2982fi
2983rm -f conftest conftest$ac_cv_exeext
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2985$as_echo "$ac_cv_exeext" >&6; }
2986
2987rm -f conftest.$ac_ext
2988EXEEXT=$ac_cv_exeext
2989ac_exeext=$EXEEXT
2990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991/* end confdefs.h. */
2992#include <stdio.h>
2993int
2994main ()
2995{
2996FILE *f = fopen ("conftest.out", "w");
2997 return ferror (f) || fclose (f) != 0;
2998
2999 ;
3000 return 0;
17ba0788 3001}
feec80c3
C
3002_ACEOF
3003ac_clean_files="$ac_clean_files conftest.out"
3004# Check that the compiler produces executables we can run. If not, either
3005# the compiler is broken, or we cross compile.
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3007$as_echo_n "checking whether we are cross compiling... " >&6; }
3008if test "$cross_compiling" != yes; then
3009 { { ac_try="$ac_link"
3010case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015$as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_link") 2>&5
3017 ac_status=$?
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }
3020 if { ac_try='./conftest$ac_cv_exeext'
3021 { { case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026$as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_try") 2>&5
3028 ac_status=$?
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }; }; then
3031 cross_compiling=no
3032 else
3033 if test "$cross_compiling" = maybe; then
3034 cross_compiling=yes
3035 else
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038as_fn_error $? "cannot run C compiled programs.
3039If you meant to cross compile, use \`--host'.
3040See \`config.log' for more details" "$LINENO" 5; }
3041 fi
3042 fi
3043fi
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3045$as_echo "$cross_compiling" >&6; }
3046
3047rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3048ac_clean_files=$ac_clean_files_save
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3050$as_echo_n "checking for suffix of object files... " >&6; }
3051if ${ac_cv_objext+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053else
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055/* end confdefs.h. */
174d1640 3056
feec80c3
C
3057int
3058main ()
3059{
3060
3061 ;
3062 return 0;
ca417fcf 3063}
feec80c3
C
3064_ACEOF
3065rm -f conftest.o conftest.obj
3066if { { ac_try="$ac_compile"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_compile") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }; then :
3077 for ac_file in conftest.o conftest.obj conftest.*; do
3078 test -f "$ac_file" || continue;
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082 break;;
3083 esac
3084done
3085else
3086 $as_echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091as_fn_error $? "cannot compute suffix of object files: cannot compile
3092See \`config.log' for more details" "$LINENO" 5; }
3093fi
3094rm -f conftest.$ac_cv_objext conftest.$ac_ext
3095fi
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3097$as_echo "$ac_cv_objext" >&6; }
3098OBJEXT=$ac_cv_objext
3099ac_objext=$OBJEXT
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3101$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3102if ${ac_cv_c_compiler_gnu+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104else
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h. */
3107
3108int
3109main ()
3110{
3111#ifndef __GNUC__
3112 choke me
3113#endif
3114
3115 ;
3116 return 0;
ca417fcf 3117}
feec80c3
C
3118_ACEOF
3119if ac_fn_c_try_compile "$LINENO"; then :
3120 ac_compiler_gnu=yes
3121else
3122 ac_compiler_gnu=no
3123fi
3124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125ac_cv_c_compiler_gnu=$ac_compiler_gnu
3126
3127fi
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3129$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3130if test $ac_compiler_gnu = yes; then
3131 GCC=yes
3132else
3133 GCC=
3134fi
3135ac_test_CFLAGS=${CFLAGS+set}
3136ac_save_CFLAGS=$CFLAGS
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3138$as_echo_n "checking whether $CC accepts -g... " >&6; }
3139if ${ac_cv_prog_cc_g+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141else
3142 ac_save_c_werror_flag=$ac_c_werror_flag
3143 ac_c_werror_flag=yes
3144 ac_cv_prog_cc_g=no
3145 CFLAGS="-g"
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147/* end confdefs.h. */
3148
3149int
3150main ()
3151{
3152
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157if ac_fn_c_try_compile "$LINENO"; then :
3158 ac_cv_prog_cc_g=yes
3159else
3160 CFLAGS=""
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h. */
3163
3164int
3165main ()
3166{
3167
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172if ac_fn_c_try_compile "$LINENO"; then :
3173
3174else
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3176 CFLAGS="-g"
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h. */
3179
3180int
3181main ()
3182{
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
3188if ac_fn_c_try_compile "$LINENO"; then :
3189 ac_cv_prog_cc_g=yes
3190fi
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192fi
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3197fi
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3199$as_echo "$ac_cv_prog_cc_g" >&6; }
3200if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
3205 else
3206 CFLAGS="-g"
3207 fi
3208else
3209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
3211 else
3212 CFLAGS=
3213 fi
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3216$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3217if ${ac_cv_prog_cc_c89+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219else
3220 ac_cv_prog_cc_c89=no
3221ac_save_CC=$CC
3222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223/* end confdefs.h. */
3224#include <stdarg.h>
3225#include <stdio.h>
755320b0 3226struct stat;
feec80c3
C
3227/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3228struct buf { int x; };
3229FILE * (*rcsopen) (struct buf *, struct stat *, int);
3230static char *e (p, i)
3231 char **p;
3232 int i;
3233{
3234 return p[i];
3235}
3236static char *f (char * (*g) (char **, int), char **p, ...)
3237{
3238 char *s;
3239 va_list v;
3240 va_start (v,p);
3241 s = g (p, va_arg (v,int));
3242 va_end (v);
3243 return s;
3244}
3245
3246/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3247 function prototypes and stuff, but not '\xHH' hex character constants.
3248 These don't provoke an error unfortunately, instead are silently treated
3249 as 'x'. The following induces an error, until -std is added to get
3250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3251 array size at least. It's necessary to write '\x00'==0 to get something
3252 that's true only with -std. */
3253int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3254
3255/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3256 inside strings and character constants. */
3257#define FOO(x) 'x'
3258int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3259
3260int test (int i, double x);
3261struct s1 {int (*f) (int a);};
3262struct s2 {int (*f) (double a);};
3263int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3264int argc;
3265char **argv;
3266int
3267main ()
3268{
3269return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3276do
3277 CC="$ac_save_CC $ac_arg"
3278 if ac_fn_c_try_compile "$LINENO"; then :
3279 ac_cv_prog_cc_c89=$ac_arg
3280fi
3281rm -f core conftest.err conftest.$ac_objext
3282 test "x$ac_cv_prog_cc_c89" != "xno" && break
3283done
3284rm -f conftest.$ac_ext
3285CC=$ac_save_CC
3286
3287fi
3288# AC_CACHE_VAL
3289case "x$ac_cv_prog_cc_c89" in
3290 x)
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3292$as_echo "none needed" >&6; } ;;
3293 xno)
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3295$as_echo "unsupported" >&6; } ;;
3296 *)
3297 CC="$CC $ac_cv_prog_cc_c89"
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3299$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3300esac
3301if test "x$ac_cv_prog_cc_c89" != xno; then :
3302
3303fi
3304
3305ac_ext=c
3306ac_cpp='$CPP $CPPFLAGS'
3307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
3311ac_ext=c
3312ac_cpp='$CPP $CPPFLAGS'
3313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3317$as_echo_n "checking how to run the C preprocessor... " >&6; }
3318# On Suns, sometimes $CPP names a directory.
3319if test -n "$CPP" && test -d "$CPP"; then
3320 CPP=
3321fi
3322if test -z "$CPP"; then
3323 if ${ac_cv_prog_CPP+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325else
3326 # Double quotes because CPP needs to be expanded
3327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3328 do
3329 ac_preproc_ok=false
3330for ac_c_preproc_warn_flag in '' yes
3331do
3332 # Use a header file that comes with gcc, so configuring glibc
3333 # with a fresh cross-compiler works.
3334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3335 # <limits.h> exists even on freestanding compilers.
3336 # On the NeXT, cc -E runs the code through the compiler's parser,
3337 # not just through cpp. "Syntax error" is here to catch this case.
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339/* end confdefs.h. */
3340#ifdef __STDC__
3341# include <limits.h>
3342#else
3343# include <assert.h>
3344#endif
3345 Syntax error
3346_ACEOF
3347if ac_fn_c_try_cpp "$LINENO"; then :
3348
3349else
3350 # Broken: fails on valid input.
3351continue
3352fi
3353rm -f conftest.err conftest.i conftest.$ac_ext
3354
3355 # OK, works on sane cases. Now check whether nonexistent headers
3356 # can be detected and how.
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h. */
3359#include <ac_nonexistent.h>
3360_ACEOF
3361if ac_fn_c_try_cpp "$LINENO"; then :
3362 # Broken: success on invalid input.
3363continue
3364else
3365 # Passes both tests.
3366ac_preproc_ok=:
3367break
3368fi
3369rm -f conftest.err conftest.i conftest.$ac_ext
3370
3371done
3372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373rm -f conftest.i conftest.err conftest.$ac_ext
3374if $ac_preproc_ok; then :
3375 break
3376fi
3377
3378 done
3379 ac_cv_prog_CPP=$CPP
3380
3381fi
3382 CPP=$ac_cv_prog_CPP
3383else
3384 ac_cv_prog_CPP=$CPP
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3387$as_echo "$CPP" >&6; }
3388ac_preproc_ok=false
3389for ac_c_preproc_warn_flag in '' yes
3390do
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h. */
3399#ifdef __STDC__
3400# include <limits.h>
3401#else
3402# include <assert.h>
3403#endif
3404 Syntax error
3405_ACEOF
3406if ac_fn_c_try_cpp "$LINENO"; then :
3407
3408else
3409 # Broken: fails on valid input.
3410continue
3411fi
3412rm -f conftest.err conftest.i conftest.$ac_ext
3413
3414 # OK, works on sane cases. Now check whether nonexistent headers
3415 # can be detected and how.
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h. */
3418#include <ac_nonexistent.h>
3419_ACEOF
3420if ac_fn_c_try_cpp "$LINENO"; then :
3421 # Broken: success on invalid input.
3422continue
3423else
3424 # Passes both tests.
3425ac_preproc_ok=:
3426break
3427fi
3428rm -f conftest.err conftest.i conftest.$ac_ext
3429
3430done
3431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3432rm -f conftest.i conftest.err conftest.$ac_ext
3433if $ac_preproc_ok; then :
3434
3435else
3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3439See \`config.log' for more details" "$LINENO" 5; }
3440fi
3441
3442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448# Extract the first word of "tar", so it can be a program name with args.
3449set dummy tar; ac_word=$2
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451$as_echo_n "checking for $ac_word... " >&6; }
3452if ${ac_cv_path_TAR+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454else
3455 case $TAR in
3456 [\\/]* | ?:[\\/]*)
3457 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3458 ;;
3459 *)
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461for as_dir in $PATH
3462do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3467 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471done
3472 done
3473IFS=$as_save_IFS
3474
3475 ;;
3476esac
3477fi
3478TAR=$ac_cv_path_TAR
3479if test -n "$TAR"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3481$as_echo "$TAR" >&6; }
3482else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487
3488# Extract the first word of "patch", so it can be a program name with args.
3489set dummy patch; ac_word=$2
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491$as_echo_n "checking for $ac_word... " >&6; }
3492if ${ac_cv_path_PATCH+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494else
3495 case $PATCH in
3496 [\\/]* | ?:[\\/]*)
3497 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
3498 ;;
3499 *)
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3507 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511done
3512 done
3513IFS=$as_save_IFS
3514
3515 ;;
3516esac
3517fi
3518PATCH=$ac_cv_path_PATCH
3519if test -n "$PATCH"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
3521$as_echo "$PATCH" >&6; }
3522else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524$as_echo "no" >&6; }
3525fi
3526
3527
d6ce1786
C
3528# Extract the first word of "patchelf", so it can be a program name with args.
3529set dummy patchelf; ac_word=$2
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531$as_echo_n "checking for $ac_word... " >&6; }
3532if ${ac_cv_path_PATCHELF+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534else
3535 case $PATCHELF in
3536 [\\/]* | ?:[\\/]*)
3537 ac_cv_path_PATCHELF="$PATCHELF" # Let the user override the test with a path.
3538 ;;
3539 *)
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6ce1786
C
3547 ac_cv_path_PATCHELF="$as_dir/$ac_word$ac_exec_ext"
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551done
3552 done
3553IFS=$as_save_IFS
3554
3555 ;;
3556esac
3557fi
3558PATCHELF=$ac_cv_path_PATCHELF
3559if test -n "$PATCHELF"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCHELF" >&5
3561$as_echo "$PATCHELF" >&6; }
3562else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564$as_echo "no" >&6; }
3565fi
3566
3567
feec80c3
C
3568
3569
3570
3571# Check whether --with-pkg-config was given.
3572if test "${with_pkg_config+set}" = set; then :
3573 withval=$with_pkg_config;
3574fi
3575
3576 with_PKG_CONFIG="$with_pkg_config"
3577
feec80c3
C
3578 if test -n "$with_PKG_CONFIG" -a "x$with_PKG_CONFIG" != xno -a "x$with_PKG_CONFIG" != xyes; then :
3579 PKG_CONFIG="$with_PKG_CONFIG"
3580
3581
d6ce1786
C
3582else
3583 PKG_CONFIG="pkg-config"
3584
3585
feec80c3
C
3586fi
3587
d6ce1786
C
3588 if test "x$with_PKG_CONFIG" = xno; then :
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config is disabled explicitly" >&5
3590$as_echo "$as_me: pkg-config is disabled explicitly" >&6;}
3591 PKG_CONFIG=no
3592
3593
3594else
3595 if test "x$PKG_CONFIG" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then :
feec80c3
C
3596
3597
3598if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3599 if test -n "$ac_tool_prefix"; then
3600 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3601set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603$as_echo_n "checking for $ac_word... " >&6; }
3604if ${ac_cv_path_PKG_CONFIG+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606else
3607 case $PKG_CONFIG in
3608 [\\/]* | ?:[\\/]*)
3609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3610 ;;
3611 *)
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3619 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623done
3624 done
3625IFS=$as_save_IFS
3626
3627 ;;
3628esac
3629fi
3630PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3631if test -n "$PKG_CONFIG"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3633$as_echo "$PKG_CONFIG" >&6; }
3634else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636$as_echo "no" >&6; }
3637fi
3638
3639
3640fi
3641if test -z "$ac_cv_path_PKG_CONFIG"; then
3642 ac_pt_PKG_CONFIG=$PKG_CONFIG
3643 # Extract the first word of "pkg-config", so it can be a program name with args.
3644set dummy pkg-config; ac_word=$2
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646$as_echo_n "checking for $ac_word... " >&6; }
3647if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649else
3650 case $ac_pt_PKG_CONFIG in
3651 [\\/]* | ?:[\\/]*)
3652 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3653 ;;
3654 *)
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3662 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3665 fi
3666done
3667 done
3668IFS=$as_save_IFS
3669
3670 ;;
3671esac
3672fi
3673ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3674if test -n "$ac_pt_PKG_CONFIG"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3676$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3677else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679$as_echo "no" >&6; }
3680fi
3681
3682 if test "x$ac_pt_PKG_CONFIG" = x; then
3683 PKG_CONFIG=""
3684 else
3685 case $cross_compiling:$ac_tool_warned in
3686yes:)
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3689ac_tool_warned=yes ;;
3690esac
3691 PKG_CONFIG=$ac_pt_PKG_CONFIG
3692 fi
3693else
3694 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3695fi
3696
3697fi
3698if test -n "$PKG_CONFIG"; then
3699 _pkg_min_version=0.9.0
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3701$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3702 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704$as_echo "yes" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708 PKG_CONFIG=""
3709 fi
3710
3711fi
3712
d6ce1786 3713elif test "x$PKG_CONFIG" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then :
feec80c3
C
3714 # checking for ocamllex
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
3717set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719$as_echo_n "checking for $ac_word... " >&6; }
3720if ${ac_cv_path_OCAMLLEX+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722else
3723 case $OCAMLLEX in
3724 [\\/]* | ?:[\\/]*)
3725 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
3726 ;;
3727 *)
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3735 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3738 fi
3739done
3740 done
3741IFS=$as_save_IFS
3742
3743 ;;
3744esac
3745fi
3746OCAMLLEX=$ac_cv_path_OCAMLLEX
3747if test -n "$OCAMLLEX"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
3749$as_echo "$OCAMLLEX" >&6; }
3750else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752$as_echo "no" >&6; }
3753fi
3754
3755
3756fi
3757if test -z "$ac_cv_path_OCAMLLEX"; then
3758 ac_pt_OCAMLLEX=$OCAMLLEX
3759 # Extract the first word of "ocamllex", so it can be a program name with args.
3760set dummy ocamllex; ac_word=$2
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
3763if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765else
3766 case $ac_pt_OCAMLLEX in
3767 [\\/]* | ?:[\\/]*)
3768 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
3769 ;;
3770 *)
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3778 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782done
3783 done
3784IFS=$as_save_IFS
3785
3786 ;;
3787esac
3788fi
3789ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
3790if test -n "$ac_pt_OCAMLLEX"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
3792$as_echo "$ac_pt_OCAMLLEX" >&6; }
3793else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798 if test "x$ac_pt_OCAMLLEX" = x; then
3799 OCAMLLEX="no"
3800 else
3801 case $cross_compiling:$ac_tool_warned in
3802yes:)
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805ac_tool_warned=yes ;;
3806esac
3807 OCAMLLEX=$ac_pt_OCAMLLEX
3808 fi
3809else
3810 OCAMLLEX="$ac_cv_path_OCAMLLEX"
3811fi
3812
3813 if test "$OCAMLLEX" != "no"; then
3814 if test -n "$ac_tool_prefix"; then
3815 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
3816set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
3819if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 case $OCAMLLEXDOTOPT in
3823 [\\/]* | ?:[\\/]*)
3824 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
3825 ;;
3826 *)
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3834 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3837 fi
3838done
3839 done
3840IFS=$as_save_IFS
3841
3842 ;;
3843esac
3844fi
3845OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
3846if test -n "$OCAMLLEXDOTOPT"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
3848$as_echo "$OCAMLLEXDOTOPT" >&6; }
3849else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
3852fi
3853
3854
3855fi
3856if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
3857 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
3858 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
3859set dummy ocamllex.opt; ac_word=$2
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861$as_echo_n "checking for $ac_word... " >&6; }
3862if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864else
3865 case $ac_pt_OCAMLLEXDOTOPT in
3866 [\\/]* | ?:[\\/]*)
3867 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
3868 ;;
3869 *)
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3877 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882 done
3883IFS=$as_save_IFS
3884
3885 ;;
3886esac
3887fi
3888ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
3889if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
3891$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
3892else
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894$as_echo "no" >&6; }
3895fi
3896
3897 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
3898 OCAMLLEXDOTOPT="no"
3899 else
3900 case $cross_compiling:$ac_tool_warned in
3901yes:)
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3904ac_tool_warned=yes ;;
3905esac
3906 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
3907 fi
3908else
3909 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
3910fi
3911
3912 if test "$OCAMLLEXDOTOPT" != "no"; then
3913 OCAMLLEX=$OCAMLLEXDOTOPT
3914 fi
3915 fi
3916
3917
3918
d6ce1786 3919elif test "x$PKG_CONFIG" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then :
feec80c3
C
3920 if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
3922set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924$as_echo_n "checking for $ac_word... " >&6; }
3925if ${ac_cv_path_OCAMLYACC+:} false; then :
3926 $as_echo_n "(cached) " >&6
3927else
3928 case $OCAMLYACC in
3929 [\\/]* | ?:[\\/]*)
3930 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
3931 ;;
3932 *)
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3940 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944done
3945 done
3946IFS=$as_save_IFS
3947
3948 ;;
3949esac
3950fi
3951OCAMLYACC=$ac_cv_path_OCAMLYACC
3952if test -n "$OCAMLYACC"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
3954$as_echo "$OCAMLYACC" >&6; }
3955else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
3958fi
3959
3960
3961fi
3962if test -z "$ac_cv_path_OCAMLYACC"; then
3963 ac_pt_OCAMLYACC=$OCAMLYACC
3964 # Extract the first word of "ocamlyacc", so it can be a program name with args.
3965set dummy ocamlyacc; ac_word=$2
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967$as_echo_n "checking for $ac_word... " >&6; }
3968if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970else
3971 case $ac_pt_OCAMLYACC in
3972 [\\/]* | ?:[\\/]*)
3973 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
3974 ;;
3975 *)
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH
3978do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3983 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987done
3988 done
3989IFS=$as_save_IFS
3990
3991 ;;
3992esac
3993fi
3994ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
3995if test -n "$ac_pt_OCAMLYACC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
3997$as_echo "$ac_pt_OCAMLYACC" >&6; }
3998else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
4001fi
4002
4003 if test "x$ac_pt_OCAMLYACC" = x; then
4004 OCAMLYACC="no"
4005 else
4006 case $cross_compiling:$ac_tool_warned in
4007yes:)
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010ac_tool_warned=yes ;;
4011esac
4012 OCAMLYACC=$ac_pt_OCAMLYACC
4013 fi
4014else
4015 OCAMLYACC="$ac_cv_path_OCAMLYACC"
4016fi
4017
4018
4019
4020
4021else
4022 if test -n "$ac_tool_prefix"; then
d6ce1786
C
4023 # Extract the first word of "${ac_tool_prefix}[$]PKG_CONFIG", so it can be a program name with args.
4024set dummy ${ac_tool_prefix}$PKG_CONFIG; ac_word=$2
feec80c3
C
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026$as_echo_n "checking for $ac_word... " >&6; }
4027if ${ac_cv_path_PKG_CONFIG+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029else
4030 case $PKG_CONFIG in
4031 [\\/]* | ?:[\\/]*)
4032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4033 ;;
4034 *)
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046done
4047 done
4048IFS=$as_save_IFS
4049
4050 ;;
4051esac
4052fi
4053PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4054if test -n "$PKG_CONFIG"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4056$as_echo "$PKG_CONFIG" >&6; }
4057else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
4060fi
4061
4062
4063fi
4064if test -z "$ac_cv_path_PKG_CONFIG"; then
4065 ac_pt_PKG_CONFIG=$PKG_CONFIG
d6ce1786
C
4066 # Extract the first word of "[$]PKG_CONFIG", so it can be a program name with args.
4067set dummy $PKG_CONFIG; ac_word=$2
feec80c3
C
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
4070if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072else
4073 case $ac_pt_PKG_CONFIG in
4074 [\\/]* | ?:[\\/]*)
4075 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4076 ;;
4077 *)
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079for as_dir in $PATH
4080do
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4085 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089done
4090 done
4091IFS=$as_save_IFS
4092
4093 ;;
4094esac
4095fi
4096ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4097if test -n "$ac_pt_PKG_CONFIG"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4099$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4100else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
4103fi
4104
4105 if test "x$ac_pt_PKG_CONFIG" = x; then
4106 PKG_CONFIG=""
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109yes:)
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112ac_tool_warned=yes ;;
4113esac
4114 PKG_CONFIG=$ac_pt_PKG_CONFIG
4115 fi
4116else
4117 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4118fi
4119
4120
4121fi
4122
4123
4124fi
4125
4126 if test -z "$PKG_CONFIG" -o "x$PKG_CONFIG" = xno; then :
4127 if test "x$with_PKG_CONFIG" = xyes; then :
4128 as_fn_error $? "--with=pkg-config is given explicitly but not found" "$LINENO" 5
4129
4130fi
4131
4132 if test -n "$COCCI_SRCDIR/setup/fake-subst.sh pkg-config"; then :
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh pkg-config." >&5
4134$as_echo "$as_me: pkg-config not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh pkg-config." >&6;}
4135 PKG_CONFIG="$COCCI_SRCDIR/setup/fake-subst.sh pkg-config"
4136
4137 if test "xpkg-config" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then :
4138
4139
4140if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4141 if test -n "$ac_tool_prefix"; then
4142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4143set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145$as_echo_n "checking for $ac_word... " >&6; }
4146if ${ac_cv_path_PKG_CONFIG+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148else
4149 case $PKG_CONFIG in
4150 [\\/]* | ?:[\\/]*)
4151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4152 ;;
4153 *)
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155for as_dir in $PATH
4156do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4164 fi
4165done
4166 done
4167IFS=$as_save_IFS
4168
4169 ;;
4170esac
4171fi
4172PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4173if test -n "$PKG_CONFIG"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4175$as_echo "$PKG_CONFIG" >&6; }
4176else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178$as_echo "no" >&6; }
4179fi
4180
4181
4182fi
4183if test -z "$ac_cv_path_PKG_CONFIG"; then
4184 ac_pt_PKG_CONFIG=$PKG_CONFIG
4185 # Extract the first word of "pkg-config", so it can be a program name with args.
4186set dummy pkg-config; ac_word=$2
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188$as_echo_n "checking for $ac_word... " >&6; }
4189if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191else
4192 case $ac_pt_PKG_CONFIG in
4193 [\\/]* | ?:[\\/]*)
4194 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4195 ;;
4196 *)
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4204 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208done
4209 done
4210IFS=$as_save_IFS
4211
4212 ;;
4213esac
4214fi
4215ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4216if test -n "$ac_pt_PKG_CONFIG"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4218$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4219else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221$as_echo "no" >&6; }
4222fi
4223
4224 if test "x$ac_pt_PKG_CONFIG" = x; then
4225 PKG_CONFIG=""
4226 else
4227 case $cross_compiling:$ac_tool_warned in
4228yes:)
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231ac_tool_warned=yes ;;
4232esac
4233 PKG_CONFIG=$ac_pt_PKG_CONFIG
4234 fi
4235else
4236 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4237fi
4238
4239fi
4240if test -n "$PKG_CONFIG"; then
4241 _pkg_min_version=0.9.0
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4243$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4244 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4246$as_echo "yes" >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249$as_echo "no" >&6; }
4250 PKG_CONFIG=""
4251 fi
4252
4253fi
4254
4255elif test "xpkg-config" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then :
4256 # checking for ocamllex
4257 if test -n "$ac_tool_prefix"; then
4258 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
4259set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261$as_echo_n "checking for $ac_word... " >&6; }
4262if ${ac_cv_path_OCAMLLEX+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264else
4265 case $OCAMLLEX in
4266 [\\/]* | ?:[\\/]*)
4267 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
4268 ;;
4269 *)
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4277 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281done
4282 done
4283IFS=$as_save_IFS
4284
4285 ;;
4286esac
4287fi
4288OCAMLLEX=$ac_cv_path_OCAMLLEX
4289if test -n "$OCAMLLEX"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
4291$as_echo "$OCAMLLEX" >&6; }
4292else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
4295fi
4296
4297
4298fi
4299if test -z "$ac_cv_path_OCAMLLEX"; then
4300 ac_pt_OCAMLLEX=$OCAMLLEX
4301 # Extract the first word of "ocamllex", so it can be a program name with args.
4302set dummy ocamllex; ac_word=$2
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304$as_echo_n "checking for $ac_word... " >&6; }
4305if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307else
4308 case $ac_pt_OCAMLLEX in
4309 [\\/]* | ?:[\\/]*)
4310 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
4311 ;;
4312 *)
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4320 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325 done
4326IFS=$as_save_IFS
4327
4328 ;;
4329esac
4330fi
4331ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
4332if test -n "$ac_pt_OCAMLLEX"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
4334$as_echo "$ac_pt_OCAMLLEX" >&6; }
4335else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
4338fi
4339
4340 if test "x$ac_pt_OCAMLLEX" = x; then
4341 OCAMLLEX="no"
4342 else
4343 case $cross_compiling:$ac_tool_warned in
4344yes:)
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347ac_tool_warned=yes ;;
4348esac
4349 OCAMLLEX=$ac_pt_OCAMLLEX
4350 fi
4351else
4352 OCAMLLEX="$ac_cv_path_OCAMLLEX"
4353fi
4354
4355 if test "$OCAMLLEX" != "no"; then
4356 if test -n "$ac_tool_prefix"; then
4357 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
4358set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360$as_echo_n "checking for $ac_word... " >&6; }
4361if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363else
4364 case $OCAMLLEXDOTOPT in
4365 [\\/]* | ?:[\\/]*)
4366 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
4367 ;;
4368 *)
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4376 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381 done
4382IFS=$as_save_IFS
4383
4384 ;;
4385esac
4386fi
4387OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
4388if test -n "$OCAMLLEXDOTOPT"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
4390$as_echo "$OCAMLLEXDOTOPT" >&6; }
4391else
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393$as_echo "no" >&6; }
4394fi
4395
4396
4397fi
4398if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
4399 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
4400 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
4401set dummy ocamllex.opt; ac_word=$2
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403$as_echo_n "checking for $ac_word... " >&6; }
4404if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406else
4407 case $ac_pt_OCAMLLEXDOTOPT in
4408 [\\/]* | ?:[\\/]*)
4409 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
4410 ;;
4411 *)
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4419 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423done
4424 done
4425IFS=$as_save_IFS
4426
4427 ;;
4428esac
4429fi
4430ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
4431if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
4433$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
4434else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
4437fi
4438
4439 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
4440 OCAMLLEXDOTOPT="no"
4441 else
4442 case $cross_compiling:$ac_tool_warned in
4443yes:)
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4446ac_tool_warned=yes ;;
4447esac
4448 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
4449 fi
4450else
4451 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
4452fi
4453
4454 if test "$OCAMLLEXDOTOPT" != "no"; then
4455 OCAMLLEX=$OCAMLLEXDOTOPT
4456 fi
4457 fi
4458
4459
4460
4461elif test "xpkg-config" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then :
4462 if test -n "$ac_tool_prefix"; then
4463 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
4464set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466$as_echo_n "checking for $ac_word... " >&6; }
4467if ${ac_cv_path_OCAMLYACC+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469else
4470 case $OCAMLYACC in
4471 [\\/]* | ?:[\\/]*)
4472 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
4473 ;;
4474 *)
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4482 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
4487 done
4488IFS=$as_save_IFS
4489
4490 ;;
4491esac
4492fi
4493OCAMLYACC=$ac_cv_path_OCAMLYACC
4494if test -n "$OCAMLYACC"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
4496$as_echo "$OCAMLYACC" >&6; }
4497else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499$as_echo "no" >&6; }
4500fi
4501
4502
4503fi
4504if test -z "$ac_cv_path_OCAMLYACC"; then
4505 ac_pt_OCAMLYACC=$OCAMLYACC
4506 # Extract the first word of "ocamlyacc", so it can be a program name with args.
4507set dummy ocamlyacc; ac_word=$2
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509$as_echo_n "checking for $ac_word... " >&6; }
4510if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512else
4513 case $ac_pt_OCAMLYACC in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
4516 ;;
4517 *)
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4525 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529done
4530 done
4531IFS=$as_save_IFS
4532
4533 ;;
4534esac
4535fi
4536ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
4537if test -n "$ac_pt_OCAMLYACC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
4539$as_echo "$ac_pt_OCAMLYACC" >&6; }
4540else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
4543fi
4544
4545 if test "x$ac_pt_OCAMLYACC" = x; then
4546 OCAMLYACC="no"
4547 else
4548 case $cross_compiling:$ac_tool_warned in
4549yes:)
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552ac_tool_warned=yes ;;
4553esac
4554 OCAMLYACC=$ac_pt_OCAMLYACC
4555 fi
4556else
4557 OCAMLYACC="$ac_cv_path_OCAMLYACC"
4558fi
4559
4560
4561
4562
4563else
4564 if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4566set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568$as_echo_n "checking for $ac_word... " >&6; }
4569if ${ac_cv_path_PKG_CONFIG+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571else
4572 case $PKG_CONFIG in
4573 [\\/]* | ?:[\\/]*)
4574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4575 ;;
4576 *)
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588done
4589 done
4590IFS=$as_save_IFS
4591
4592 ;;
4593esac
4594fi
4595PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4596if test -n "$PKG_CONFIG"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4598$as_echo "$PKG_CONFIG" >&6; }
4599else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
4602fi
4603
4604
4605fi
4606if test -z "$ac_cv_path_PKG_CONFIG"; then
4607 ac_pt_PKG_CONFIG=$PKG_CONFIG
4608 # Extract the first word of "pkg-config", so it can be a program name with args.
4609set dummy pkg-config; ac_word=$2
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611$as_echo_n "checking for $ac_word... " >&6; }
4612if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614else
4615 case $ac_pt_PKG_CONFIG in
4616 [\\/]* | ?:[\\/]*)
4617 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4618 ;;
4619 *)
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4627 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632 done
4633IFS=$as_save_IFS
4634
4635 ;;
4636esac
4637fi
4638ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4639if test -n "$ac_pt_PKG_CONFIG"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4641$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4642else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
4645fi
4646
4647 if test "x$ac_pt_PKG_CONFIG" = x; then
4648 PKG_CONFIG=""
4649 else
4650 case $cross_compiling:$ac_tool_warned in
4651yes:)
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4654ac_tool_warned=yes ;;
4655esac
4656 PKG_CONFIG=$ac_pt_PKG_CONFIG
4657 fi
4658else
4659 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4660fi
4661
4662
4663fi
4664
4665 SUBSTITUTED_PKG_CONFIG=yes
4666
4667
4668fi
4669
4670fi
4671
4672 if test -z "$PKG_CONFIG"; then :
4673 PKG_CONFIG=no
4674
4675fi
4676
4677if test "x$PKG_CONFIG" = xno; then :
4678 as_fn_error $? "A suitable pkg-config could not be found." "$LINENO" 5
4679
4680fi
4681
4682 # checking for ocamlc
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args.
4685set dummy ${ac_tool_prefix}ocamlc; ac_word=$2
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687$as_echo_n "checking for $ac_word... " >&6; }
4688if ${ac_cv_path_OCAMLC+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690else
4691 case $OCAMLC in
4692 [\\/]* | ?:[\\/]*)
4693 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
4694 ;;
4695 *)
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697for as_dir in $PATH
4698do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4703 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707done
4708 done
4709IFS=$as_save_IFS
4710
4711 ;;
4712esac
4713fi
4714OCAMLC=$ac_cv_path_OCAMLC
4715if test -n "$OCAMLC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
4717$as_echo "$OCAMLC" >&6; }
4718else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723
4724fi
4725if test -z "$ac_cv_path_OCAMLC"; then
4726 ac_pt_OCAMLC=$OCAMLC
4727 # Extract the first word of "ocamlc", so it can be a program name with args.
4728set dummy ocamlc; ac_word=$2
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
4731if ${ac_cv_path_ac_pt_OCAMLC+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733else
4734 case $ac_pt_OCAMLC in
4735 [\\/]* | ?:[\\/]*)
4736 ac_cv_path_ac_pt_OCAMLC="$ac_pt_OCAMLC" # Let the user override the test with a path.
4737 ;;
4738 *)
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740for as_dir in $PATH
4741do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4746 ac_cv_path_ac_pt_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750done
4751 done
4752IFS=$as_save_IFS
4753
4754 ;;
4755esac
4756fi
4757ac_pt_OCAMLC=$ac_cv_path_ac_pt_OCAMLC
4758if test -n "$ac_pt_OCAMLC"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLC" >&5
4760$as_echo "$ac_pt_OCAMLC" >&6; }
4761else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763$as_echo "no" >&6; }
4764fi
4765
4766 if test "x$ac_pt_OCAMLC" = x; then
4767 OCAMLC="no"
4768 else
4769 case $cross_compiling:$ac_tool_warned in
4770yes:)
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773ac_tool_warned=yes ;;
4774esac
4775 OCAMLC=$ac_pt_OCAMLC
4776 fi
4777else
4778 OCAMLC="$ac_cv_path_OCAMLC"
4779fi
4780
4781
4782 if test "$OCAMLC" != "no"; then
4783 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'`
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5
4785$as_echo "OCaml version is $OCAMLVERSION" >&6; }
4786 # If OCAMLLIB is set, use it
4787 if test "$OCAMLLIB" = ""; then
4788 OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4`
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5
4791$as_echo "OCAMLLIB previously set; preserving it." >&6; }
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5
4794$as_echo "OCaml library path is $OCAMLLIB" >&6; }
4795
4796
4797
4798
4799 # checking for ocamlopt
4800 if test -n "$ac_tool_prefix"; then
4801 # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args.
4802set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804$as_echo_n "checking for $ac_word... " >&6; }
4805if ${ac_cv_path_OCAMLOPT+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807else
4808 case $OCAMLOPT in
4809 [\\/]* | ?:[\\/]*)
4810 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
4811 ;;
4812 *)
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4820 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824done
4825 done
4826IFS=$as_save_IFS
4827
4828 ;;
4829esac
4830fi
4831OCAMLOPT=$ac_cv_path_OCAMLOPT
4832if test -n "$OCAMLOPT"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
4834$as_echo "$OCAMLOPT" >&6; }
4835else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837$as_echo "no" >&6; }
4838fi
4839
4840
4841fi
4842if test -z "$ac_cv_path_OCAMLOPT"; then
4843 ac_pt_OCAMLOPT=$OCAMLOPT
4844 # Extract the first word of "ocamlopt", so it can be a program name with args.
4845set dummy ocamlopt; ac_word=$2
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847$as_echo_n "checking for $ac_word... " >&6; }
4848if ${ac_cv_path_ac_pt_OCAMLOPT+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850else
4851 case $ac_pt_OCAMLOPT in
4852 [\\/]* | ?:[\\/]*)
4853 ac_cv_path_ac_pt_OCAMLOPT="$ac_pt_OCAMLOPT" # Let the user override the test with a path.
4854 ;;
4855 *)
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4863 ac_cv_path_ac_pt_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4866 fi
4867done
4868 done
4869IFS=$as_save_IFS
4870
4871 ;;
4872esac
4873fi
4874ac_pt_OCAMLOPT=$ac_cv_path_ac_pt_OCAMLOPT
4875if test -n "$ac_pt_OCAMLOPT"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPT" >&5
4877$as_echo "$ac_pt_OCAMLOPT" >&6; }
4878else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880$as_echo "no" >&6; }
4881fi
4882
4883 if test "x$ac_pt_OCAMLOPT" = x; then
4884 OCAMLOPT="no"
4885 else
4886 case $cross_compiling:$ac_tool_warned in
4887yes:)
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4890ac_tool_warned=yes ;;
4891esac
4892 OCAMLOPT=$ac_pt_OCAMLOPT
4893 fi
4894else
4895 OCAMLOPT="$ac_cv_path_OCAMLOPT"
4896fi
4897
4898 OCAMLBEST=byte
4899 if test "$OCAMLOPT" = "no"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
4901$as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
4902 else
4903 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
4904 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5
4906$as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; }
4907 OCAMLOPT=no
4908 else
4909 OCAMLBEST=opt
4910 fi
4911 fi
4912
4913
4914
4915 # checking for ocamlc.opt
4916 if test -n "$ac_tool_prefix"; then
4917 # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args.
4918set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920$as_echo_n "checking for $ac_word... " >&6; }
4921if ${ac_cv_path_OCAMLCDOTOPT+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923else
4924 case $OCAMLCDOTOPT in
4925 [\\/]* | ?:[\\/]*)
4926 ac_cv_path_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test with a path.
4927 ;;
4928 *)
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4936 ac_cv_path_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940done
4941 done
4942IFS=$as_save_IFS
4943
4944 ;;
4945esac
4946fi
4947OCAMLCDOTOPT=$ac_cv_path_OCAMLCDOTOPT
4948if test -n "$OCAMLCDOTOPT"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
4950$as_echo "$OCAMLCDOTOPT" >&6; }
4951else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953$as_echo "no" >&6; }
4954fi
4955
4956
4957fi
4958if test -z "$ac_cv_path_OCAMLCDOTOPT"; then
4959 ac_pt_OCAMLCDOTOPT=$OCAMLCDOTOPT
4960 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
4961set dummy ocamlc.opt; ac_word=$2
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963$as_echo_n "checking for $ac_word... " >&6; }
4964if ${ac_cv_path_ac_pt_OCAMLCDOTOPT+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966else
4967 case $ac_pt_OCAMLCDOTOPT in
4968 [\\/]* | ?:[\\/]*)
4969 ac_cv_path_ac_pt_OCAMLCDOTOPT="$ac_pt_OCAMLCDOTOPT" # Let the user override the test with a path.
4970 ;;
4971 *)
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4979 ac_cv_path_ac_pt_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4982 fi
4983done
4984 done
4985IFS=$as_save_IFS
4986
4987 ;;
4988esac
4989fi
4990ac_pt_OCAMLCDOTOPT=$ac_cv_path_ac_pt_OCAMLCDOTOPT
4991if test -n "$ac_pt_OCAMLCDOTOPT"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLCDOTOPT" >&5
4993$as_echo "$ac_pt_OCAMLCDOTOPT" >&6; }
4994else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996$as_echo "no" >&6; }
4997fi
4998
4999 if test "x$ac_pt_OCAMLCDOTOPT" = x; then
5000 OCAMLCDOTOPT="no"
5001 else
5002 case $cross_compiling:$ac_tool_warned in
5003yes:)
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006ac_tool_warned=yes ;;
5007esac
5008 OCAMLCDOTOPT=$ac_pt_OCAMLCDOTOPT
5009 fi
5010else
5011 OCAMLCDOTOPT="$ac_cv_path_OCAMLCDOTOPT"
5012fi
5013
5014 if test "$OCAMLCDOTOPT" != "no"; then
5015 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5016 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5
5018$as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; }
5019 else
5020 OCAMLC=$OCAMLCDOTOPT
5021 fi
5022 fi
5023
5024 # checking for ocamlopt.opt
5025 if test "$OCAMLOPT" != "no" ; then
5026 if test -n "$ac_tool_prefix"; then
5027 # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args.
5028set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030$as_echo_n "checking for $ac_word... " >&6; }
5031if ${ac_cv_path_OCAMLOPTDOTOPT+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033else
5034 case $OCAMLOPTDOTOPT in
5035 [\\/]* | ?:[\\/]*)
5036 ac_cv_path_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test with a path.
5037 ;;
5038 *)
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5046 ac_cv_path_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050done
5051 done
5052IFS=$as_save_IFS
5053
5054 ;;
5055esac
5056fi
5057OCAMLOPTDOTOPT=$ac_cv_path_OCAMLOPTDOTOPT
5058if test -n "$OCAMLOPTDOTOPT"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
5060$as_echo "$OCAMLOPTDOTOPT" >&6; }
5061else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
5064fi
5065
5066
5067fi
5068if test -z "$ac_cv_path_OCAMLOPTDOTOPT"; then
5069 ac_pt_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT
5070 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
5071set dummy ocamlopt.opt; ac_word=$2
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if ${ac_cv_path_ac_pt_OCAMLOPTDOTOPT+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076else
5077 case $ac_pt_OCAMLOPTDOTOPT in
5078 [\\/]* | ?:[\\/]*)
5079 ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$ac_pt_OCAMLOPTDOTOPT" # Let the user override the test with a path.
5080 ;;
5081 *)
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5089 ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093done
5094 done
5095IFS=$as_save_IFS
5096
5097 ;;
5098esac
5099fi
5100ac_pt_OCAMLOPTDOTOPT=$ac_cv_path_ac_pt_OCAMLOPTDOTOPT
5101if test -n "$ac_pt_OCAMLOPTDOTOPT"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPTDOTOPT" >&5
5103$as_echo "$ac_pt_OCAMLOPTDOTOPT" >&6; }
5104else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106$as_echo "no" >&6; }
5107fi
5108
5109 if test "x$ac_pt_OCAMLOPTDOTOPT" = x; then
5110 OCAMLOPTDOTOPT="no"
5111 else
5112 case $cross_compiling:$ac_tool_warned in
5113yes:)
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5116ac_tool_warned=yes ;;
5117esac
5118 OCAMLOPTDOTOPT=$ac_pt_OCAMLOPTDOTOPT
5119 fi
5120else
5121 OCAMLOPTDOTOPT="$ac_cv_path_OCAMLOPTDOTOPT"
5122fi
5123
5124 if test "$OCAMLOPTDOTOPT" != "no"; then
5125 TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5126 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5
5128$as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; }
5129 else
5130 OCAMLOPT=$OCAMLOPTDOTOPT
5131 fi
5132 fi
5133 fi
5134
5135
5136 fi
5137
5138
5139
5140 # checking for ocaml toplevel
5141 if test -n "$ac_tool_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}ocaml", so it can be a program name with args.
5143set dummy ${ac_tool_prefix}ocaml; ac_word=$2
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145$as_echo_n "checking for $ac_word... " >&6; }
5146if ${ac_cv_path_OCAML+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148else
5149 case $OCAML in
5150 [\\/]* | ?:[\\/]*)
5151 ac_cv_path_OCAML="$OCAML" # Let the user override the test with a path.
5152 ;;
5153 *)
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5161 ac_cv_path_OCAML="$as_dir/$ac_word$ac_exec_ext"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165done
5166 done
5167IFS=$as_save_IFS
5168
5169 ;;
5170esac
5171fi
5172OCAML=$ac_cv_path_OCAML
5173if test -n "$OCAML"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5
5175$as_echo "$OCAML" >&6; }
5176else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178$as_echo "no" >&6; }
5179fi
5180
5181
5182fi
5183if test -z "$ac_cv_path_OCAML"; then
5184 ac_pt_OCAML=$OCAML
5185 # Extract the first word of "ocaml", so it can be a program name with args.
5186set dummy ocaml; ac_word=$2
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if ${ac_cv_path_ac_pt_OCAML+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191else
5192 case $ac_pt_OCAML in
5193 [\\/]* | ?:[\\/]*)
5194 ac_cv_path_ac_pt_OCAML="$ac_pt_OCAML" # Let the user override the test with a path.
5195 ;;
5196 *)
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5204 ac_cv_path_ac_pt_OCAML="$as_dir/$ac_word$ac_exec_ext"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209 done
5210IFS=$as_save_IFS
5211
5212 ;;
5213esac
5214fi
5215ac_pt_OCAML=$ac_cv_path_ac_pt_OCAML
5216if test -n "$ac_pt_OCAML"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAML" >&5
5218$as_echo "$ac_pt_OCAML" >&6; }
5219else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221$as_echo "no" >&6; }
5222fi
5223
5224 if test "x$ac_pt_OCAML" = x; then
5225 OCAML="no"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228yes:)
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231ac_tool_warned=yes ;;
5232esac
5233 OCAML=$ac_pt_OCAML
5234 fi
5235else
5236 OCAML="$ac_cv_path_OCAML"
5237fi
5238
5239
5240 # checking for ocamldep
5241 if test -n "$ac_tool_prefix"; then
5242 # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args.
5243set dummy ${ac_tool_prefix}ocamldep; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if ${ac_cv_path_OCAMLDEP+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248else
5249 case $OCAMLDEP in
5250 [\\/]* | ?:[\\/]*)
5251 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
5252 ;;
5253 *)
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5261 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265done
5266 done
5267IFS=$as_save_IFS
5268
5269 ;;
5270esac
5271fi
5272OCAMLDEP=$ac_cv_path_OCAMLDEP
5273if test -n "$OCAMLDEP"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
5275$as_echo "$OCAMLDEP" >&6; }
5276else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278$as_echo "no" >&6; }
5279fi
5280
5281
5282fi
5283if test -z "$ac_cv_path_OCAMLDEP"; then
5284 ac_pt_OCAMLDEP=$OCAMLDEP
5285 # Extract the first word of "ocamldep", so it can be a program name with args.
5286set dummy ocamldep; ac_word=$2
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288$as_echo_n "checking for $ac_word... " >&6; }
5289if ${ac_cv_path_ac_pt_OCAMLDEP+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291else
5292 case $ac_pt_OCAMLDEP in
5293 [\\/]* | ?:[\\/]*)
5294 ac_cv_path_ac_pt_OCAMLDEP="$ac_pt_OCAMLDEP" # Let the user override the test with a path.
5295 ;;
5296 *)
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5304 ac_cv_path_ac_pt_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308done
5309 done
5310IFS=$as_save_IFS
5311
5312 ;;
5313esac
5314fi
5315ac_pt_OCAMLDEP=$ac_cv_path_ac_pt_OCAMLDEP
5316if test -n "$ac_pt_OCAMLDEP"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDEP" >&5
5318$as_echo "$ac_pt_OCAMLDEP" >&6; }
5319else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321$as_echo "no" >&6; }
5322fi
5323
5324 if test "x$ac_pt_OCAMLDEP" = x; then
5325 OCAMLDEP="no"
5326 else
5327 case $cross_compiling:$ac_tool_warned in
5328yes:)
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331ac_tool_warned=yes ;;
5332esac
5333 OCAMLDEP=$ac_pt_OCAMLDEP
5334 fi
5335else
5336 OCAMLDEP="$ac_cv_path_OCAMLDEP"
5337fi
5338
5339
5340 # checking for ocamlmktop
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args.
5343set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
5346if ${ac_cv_path_OCAMLMKTOP+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348else
5349 case $OCAMLMKTOP in
5350 [\\/]* | ?:[\\/]*)
5351 ac_cv_path_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test with a path.
5352 ;;
5353 *)
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5361 ac_cv_path_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5364 fi
5365done
5366 done
5367IFS=$as_save_IFS
5368
5369 ;;
5370esac
5371fi
5372OCAMLMKTOP=$ac_cv_path_OCAMLMKTOP
5373if test -n "$OCAMLMKTOP"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
5375$as_echo "$OCAMLMKTOP" >&6; }
5376else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378$as_echo "no" >&6; }
5379fi
5380
5381
5382fi
5383if test -z "$ac_cv_path_OCAMLMKTOP"; then
5384 ac_pt_OCAMLMKTOP=$OCAMLMKTOP
5385 # Extract the first word of "ocamlmktop", so it can be a program name with args.
5386set dummy ocamlmktop; ac_word=$2
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if ${ac_cv_path_ac_pt_OCAMLMKTOP+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391else
5392 case $ac_pt_OCAMLMKTOP in
5393 [\\/]* | ?:[\\/]*)
5394 ac_cv_path_ac_pt_OCAMLMKTOP="$ac_pt_OCAMLMKTOP" # Let the user override the test with a path.
5395 ;;
5396 *)
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5404 ac_cv_path_ac_pt_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408done
5409 done
5410IFS=$as_save_IFS
5411
5412 ;;
5413esac
5414fi
5415ac_pt_OCAMLMKTOP=$ac_cv_path_ac_pt_OCAMLMKTOP
5416if test -n "$ac_pt_OCAMLMKTOP"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKTOP" >&5
5418$as_echo "$ac_pt_OCAMLMKTOP" >&6; }
5419else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
5422fi
5423
5424 if test "x$ac_pt_OCAMLMKTOP" = x; then
5425 OCAMLMKTOP="no"
5426 else
5427 case $cross_compiling:$ac_tool_warned in
5428yes:)
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431ac_tool_warned=yes ;;
5432esac
5433 OCAMLMKTOP=$ac_pt_OCAMLMKTOP
5434 fi
5435else
5436 OCAMLMKTOP="$ac_cv_path_OCAMLMKTOP"
5437fi
5438
5439
5440 # checking for ocamlmklib
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args.
5443set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
5446if ${ac_cv_path_OCAMLMKLIB+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448else
5449 case $OCAMLMKLIB in
5450 [\\/]* | ?:[\\/]*)
5451 ac_cv_path_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test with a path.
5452 ;;
5453 *)
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455for as_dir in $PATH
5456do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5461 ac_cv_path_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465done
5466 done
5467IFS=$as_save_IFS
5468
5469 ;;
5470esac
5471fi
5472OCAMLMKLIB=$ac_cv_path_OCAMLMKLIB
5473if test -n "$OCAMLMKLIB"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
5475$as_echo "$OCAMLMKLIB" >&6; }
5476else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478$as_echo "no" >&6; }
5479fi
5480
5481
5482fi
5483if test -z "$ac_cv_path_OCAMLMKLIB"; then
5484 ac_pt_OCAMLMKLIB=$OCAMLMKLIB
5485 # Extract the first word of "ocamlmklib", so it can be a program name with args.
5486set dummy ocamlmklib; ac_word=$2
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if ${ac_cv_path_ac_pt_OCAMLMKLIB+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491else
5492 case $ac_pt_OCAMLMKLIB in
5493 [\\/]* | ?:[\\/]*)
5494 ac_cv_path_ac_pt_OCAMLMKLIB="$ac_pt_OCAMLMKLIB" # Let the user override the test with a path.
5495 ;;
5496 *)
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5504 ac_cv_path_ac_pt_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508done
5509 done
5510IFS=$as_save_IFS
5511
5512 ;;
5513esac
5514fi
5515ac_pt_OCAMLMKLIB=$ac_cv_path_ac_pt_OCAMLMKLIB
5516if test -n "$ac_pt_OCAMLMKLIB"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKLIB" >&5
5518$as_echo "$ac_pt_OCAMLMKLIB" >&6; }
5519else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523
5524 if test "x$ac_pt_OCAMLMKLIB" = x; then
5525 OCAMLMKLIB="no"
5526 else
5527 case $cross_compiling:$ac_tool_warned in
5528yes:)
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5531ac_tool_warned=yes ;;
5532esac
5533 OCAMLMKLIB=$ac_pt_OCAMLMKLIB
5534 fi
5535else
5536 OCAMLMKLIB="$ac_cv_path_OCAMLMKLIB"
5537fi
5538
5539
5540 # checking for ocamldoc
5541 if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args.
5543set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
5546if ${ac_cv_path_OCAMLDOC+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548else
5549 case $OCAMLDOC in
5550 [\\/]* | ?:[\\/]*)
5551 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
5552 ;;
5553 *)
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5561 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565done
5566 done
5567IFS=$as_save_IFS
5568
5569 ;;
5570esac
5571fi
5572OCAMLDOC=$ac_cv_path_OCAMLDOC
5573if test -n "$OCAMLDOC"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
5575$as_echo "$OCAMLDOC" >&6; }
5576else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578$as_echo "no" >&6; }
5579fi
5580
5581
5582fi
5583if test -z "$ac_cv_path_OCAMLDOC"; then
5584 ac_pt_OCAMLDOC=$OCAMLDOC
5585 # Extract the first word of "ocamldoc", so it can be a program name with args.
5586set dummy ocamldoc; ac_word=$2
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588$as_echo_n "checking for $ac_word... " >&6; }
5589if ${ac_cv_path_ac_pt_OCAMLDOC+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591else
5592 case $ac_pt_OCAMLDOC in
5593 [\\/]* | ?:[\\/]*)
5594 ac_cv_path_ac_pt_OCAMLDOC="$ac_pt_OCAMLDOC" # Let the user override the test with a path.
5595 ;;
5596 *)
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5604 ac_cv_path_ac_pt_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608done
5609 done
5610IFS=$as_save_IFS
5611
5612 ;;
5613esac
5614fi
5615ac_pt_OCAMLDOC=$ac_cv_path_ac_pt_OCAMLDOC
5616if test -n "$ac_pt_OCAMLDOC"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDOC" >&5
5618$as_echo "$ac_pt_OCAMLDOC" >&6; }
5619else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624 if test "x$ac_pt_OCAMLDOC" = x; then
5625 OCAMLDOC="no"
5626 else
5627 case $cross_compiling:$ac_tool_warned in
5628yes:)
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631ac_tool_warned=yes ;;
5632esac
5633 OCAMLDOC=$ac_pt_OCAMLDOC
5634 fi
5635else
5636 OCAMLDOC="$ac_cv_path_OCAMLDOC"
5637fi
5638
5639
5640 # checking for ocamlbuild
5641 if test -n "$ac_tool_prefix"; then
5642 # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args.
5643set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if ${ac_cv_path_OCAMLBUILD+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648else
5649 case $OCAMLBUILD in
5650 [\\/]* | ?:[\\/]*)
5651 ac_cv_path_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test with a path.
5652 ;;
5653 *)
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5661 ac_cv_path_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665done
5666 done
5667IFS=$as_save_IFS
5668
5669 ;;
5670esac
5671fi
5672OCAMLBUILD=$ac_cv_path_OCAMLBUILD
5673if test -n "$OCAMLBUILD"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
5675$as_echo "$OCAMLBUILD" >&6; }
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682fi
5683if test -z "$ac_cv_path_OCAMLBUILD"; then
5684 ac_pt_OCAMLBUILD=$OCAMLBUILD
5685 # Extract the first word of "ocamlbuild", so it can be a program name with args.
5686set dummy ocamlbuild; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_path_ac_pt_OCAMLBUILD+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691else
5692 case $ac_pt_OCAMLBUILD in
5693 [\\/]* | ?:[\\/]*)
5694 ac_cv_path_ac_pt_OCAMLBUILD="$ac_pt_OCAMLBUILD" # Let the user override the test with a path.
5695 ;;
5696 *)
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5704 ac_cv_path_ac_pt_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708done
5709 done
5710IFS=$as_save_IFS
5711
5712 ;;
5713esac
5714fi
5715ac_pt_OCAMLBUILD=$ac_cv_path_ac_pt_OCAMLBUILD
5716if test -n "$ac_pt_OCAMLBUILD"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLBUILD" >&5
5718$as_echo "$ac_pt_OCAMLBUILD" >&6; }
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722fi
5723
5724 if test "x$ac_pt_OCAMLBUILD" = x; then
5725 OCAMLBUILD="no"
5726 else
5727 case $cross_compiling:$ac_tool_warned in
5728yes:)
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731ac_tool_warned=yes ;;
5732esac
5733 OCAMLBUILD=$ac_pt_OCAMLBUILD
5734 fi
5735else
5736 OCAMLBUILD="$ac_cv_path_OCAMLBUILD"
5737fi
5738
5739
5740 { versioncheck=; unset versioncheck;}
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.10" >&5
5742$as_echo_n "checking that the OCaml version is at least 3.10... " >&6; }
5743 as_arg_v1=$OCAMLVERSION
5744as_arg_v2=3.10
5745awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5746case $? in #(
5747 1) :
5748 versioncheck=no ;; #(
5749 0) :
5750 versioncheck=yes ;; #(
5751 2) :
5752 versioncheck=yes ;; #(
5753 *) :
5754 ;;
5755esac
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5
5757$as_echo "$versioncheck" >&6; }
5758 OCAMLATLEAST310=$versioncheck
5759
5760
5761 { versioncheck=; unset versioncheck;}
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.11" >&5
5763$as_echo_n "checking that the OCaml version is at least 3.11... " >&6; }
5764 as_arg_v1=$OCAMLVERSION
5765as_arg_v2=3.11
5766awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5767case $? in #(
5768 1) :
5769 versioncheck=no ;; #(
5770 0) :
5771 versioncheck=yes ;; #(
5772 2) :
5773 versioncheck=yes ;; #(
5774 *) :
5775 ;;
5776esac
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5
5778$as_echo "$versioncheck" >&6; }
5779 OCAMLATLEAST311=$versioncheck
5780
5781
755320b0
C
5782OCAMLCORIG="$OCAMLC"
5783
feec80c3
C
5784
5785if test "x$OCAMLC" = xno -o "x$OCAMLDEP" = xno -o "x$OCAMLDOC" = xno -o "x$OCAMLMKLIB" = xno; then :
5786 as_fn_error $? "You must install the OCaml compiler" "$LINENO" 5
5787
5788fi
5789if test "x$OCAMLATLEAST310" = xno; then :
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: a more recent OCaml installation may be required" >&5
5791$as_echo "$as_me: a more recent OCaml installation may be required" >&6;}
5792fi
5793
5794
5795 # checking for camlp4
5796 if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}camlp4", so it can be a program name with args.
5798set dummy ${ac_tool_prefix}camlp4; ac_word=$2
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800$as_echo_n "checking for $ac_word... " >&6; }
5801if ${ac_cv_path_CAMLP4+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803else
5804 case $CAMLP4 in
5805 [\\/]* | ?:[\\/]*)
5806 ac_cv_path_CAMLP4="$CAMLP4" # Let the user override the test with a path.
5807 ;;
5808 *)
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5816 ac_cv_path_CAMLP4="$as_dir/$ac_word$ac_exec_ext"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820done
5821 done
5822IFS=$as_save_IFS
5823
5824 ;;
5825esac
5826fi
5827CAMLP4=$ac_cv_path_CAMLP4
5828if test -n "$CAMLP4"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4" >&5
5830$as_echo "$CAMLP4" >&6; }
5831else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; }
5834fi
5835
5836
5837fi
5838if test -z "$ac_cv_path_CAMLP4"; then
5839 ac_pt_CAMLP4=$CAMLP4
5840 # Extract the first word of "camlp4", so it can be a program name with args.
5841set dummy camlp4; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if ${ac_cv_path_ac_pt_CAMLP4+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846else
5847 case $ac_pt_CAMLP4 in
5848 [\\/]* | ?:[\\/]*)
5849 ac_cv_path_ac_pt_CAMLP4="$ac_pt_CAMLP4" # Let the user override the test with a path.
5850 ;;
5851 *)
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5859 ac_cv_path_ac_pt_CAMLP4="$as_dir/$ac_word$ac_exec_ext"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863done
5864 done
5865IFS=$as_save_IFS
5866
5867 ;;
5868esac
5869fi
5870ac_pt_CAMLP4=$ac_cv_path_ac_pt_CAMLP4
5871if test -n "$ac_pt_CAMLP4"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4" >&5
5873$as_echo "$ac_pt_CAMLP4" >&6; }
5874else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876$as_echo "no" >&6; }
5877fi
5878
5879 if test "x$ac_pt_CAMLP4" = x; then
5880 CAMLP4="no"
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883yes:)
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886ac_tool_warned=yes ;;
5887esac
5888 CAMLP4=$ac_pt_CAMLP4
5889 fi
5890else
5891 CAMLP4="$ac_cv_path_CAMLP4"
5892fi
5893
5894 if test "$CAMLP4" != "no"; then
5895 TMPVERSION=`$CAMLP4 -v 2>&1| sed -n -e 's|.*version *\(.*\)$|\1|p'`
5896 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc" >&5
5898$as_echo "versions differs from ocamlc" >&6; }
5899 CAMLP4=no
5900 fi
5901 fi
5902
5903
5904 # checking for companion tools
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}camlp4boot", so it can be a program name with args.
5907set dummy ${ac_tool_prefix}camlp4boot; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
5910if ${ac_cv_path_CAMLP4BOOT+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912else
5913 case $CAMLP4BOOT in
5914 [\\/]* | ?:[\\/]*)
5915 ac_cv_path_CAMLP4BOOT="$CAMLP4BOOT" # Let the user override the test with a path.
5916 ;;
5917 *)
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5925 ac_cv_path_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930 done
5931IFS=$as_save_IFS
5932
5933 ;;
5934esac
5935fi
5936CAMLP4BOOT=$ac_cv_path_CAMLP4BOOT
5937if test -n "$CAMLP4BOOT"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4BOOT" >&5
5939$as_echo "$CAMLP4BOOT" >&6; }
5940else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944
5945
5946fi
5947if test -z "$ac_cv_path_CAMLP4BOOT"; then
5948 ac_pt_CAMLP4BOOT=$CAMLP4BOOT
5949 # Extract the first word of "camlp4boot", so it can be a program name with args.
5950set dummy camlp4boot; ac_word=$2
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if ${ac_cv_path_ac_pt_CAMLP4BOOT+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955else
5956 case $ac_pt_CAMLP4BOOT in
5957 [\\/]* | ?:[\\/]*)
5958 ac_cv_path_ac_pt_CAMLP4BOOT="$ac_pt_CAMLP4BOOT" # Let the user override the test with a path.
5959 ;;
5960 *)
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5968 ac_cv_path_ac_pt_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972done
5973 done
5974IFS=$as_save_IFS
5975
5976 ;;
5977esac
5978fi
5979ac_pt_CAMLP4BOOT=$ac_cv_path_ac_pt_CAMLP4BOOT
5980if test -n "$ac_pt_CAMLP4BOOT"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4BOOT" >&5
5982$as_echo "$ac_pt_CAMLP4BOOT" >&6; }
5983else
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985$as_echo "no" >&6; }
5986fi
5987
5988 if test "x$ac_pt_CAMLP4BOOT" = x; then
5989 CAMLP4BOOT="no"
5990 else
5991 case $cross_compiling:$ac_tool_warned in
5992yes:)
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995ac_tool_warned=yes ;;
5996esac
5997 CAMLP4BOOT=$ac_pt_CAMLP4BOOT
5998 fi
5999else
6000 CAMLP4BOOT="$ac_cv_path_CAMLP4BOOT"
6001fi
6002
6003 if test -n "$ac_tool_prefix"; then
6004 # Extract the first word of "${ac_tool_prefix}camlp4o", so it can be a program name with args.
6005set dummy ${ac_tool_prefix}camlp4o; ac_word=$2
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007$as_echo_n "checking for $ac_word... " >&6; }
6008if ${ac_cv_path_CAMLP4O+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010else
6011 case $CAMLP4O in
6012 [\\/]* | ?:[\\/]*)
6013 ac_cv_path_CAMLP4O="$CAMLP4O" # Let the user override the test with a path.
6014 ;;
6015 *)
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6023 ac_cv_path_CAMLP4O="$as_dir/$ac_word$ac_exec_ext"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027done
6028 done
6029IFS=$as_save_IFS
6030
6031 ;;
6032esac
6033fi
6034CAMLP4O=$ac_cv_path_CAMLP4O
6035if test -n "$CAMLP4O"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4O" >&5
6037$as_echo "$CAMLP4O" >&6; }
6038else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043
6044fi
6045if test -z "$ac_cv_path_CAMLP4O"; then
6046 ac_pt_CAMLP4O=$CAMLP4O
6047 # Extract the first word of "camlp4o", so it can be a program name with args.
6048set dummy camlp4o; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
6051if ${ac_cv_path_ac_pt_CAMLP4O+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053else
6054 case $ac_pt_CAMLP4O in
6055 [\\/]* | ?:[\\/]*)
6056 ac_cv_path_ac_pt_CAMLP4O="$ac_pt_CAMLP4O" # Let the user override the test with a path.
6057 ;;
6058 *)
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6066 ac_cv_path_ac_pt_CAMLP4O="$as_dir/$ac_word$ac_exec_ext"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070done
6071 done
6072IFS=$as_save_IFS
6073
6074 ;;
6075esac
6076fi
6077ac_pt_CAMLP4O=$ac_cv_path_ac_pt_CAMLP4O
6078if test -n "$ac_pt_CAMLP4O"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4O" >&5
6080$as_echo "$ac_pt_CAMLP4O" >&6; }
6081else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
6084fi
6085
6086 if test "x$ac_pt_CAMLP4O" = x; then
6087 CAMLP4O="no"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090yes:)
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093ac_tool_warned=yes ;;
6094esac
6095 CAMLP4O=$ac_pt_CAMLP4O
6096 fi
6097else
6098 CAMLP4O="$ac_cv_path_CAMLP4O"
6099fi
6100
6101 if test -n "$ac_tool_prefix"; then
6102 # Extract the first word of "${ac_tool_prefix}camlp4of", so it can be a program name with args.
6103set dummy ${ac_tool_prefix}camlp4of; ac_word=$2
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if ${ac_cv_path_CAMLP4OF+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108else
6109 case $CAMLP4OF in
6110 [\\/]* | ?:[\\/]*)
6111 ac_cv_path_CAMLP4OF="$CAMLP4OF" # Let the user override the test with a path.
6112 ;;
6113 *)
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6121 ac_cv_path_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125done
6126 done
6127IFS=$as_save_IFS
6128
6129 ;;
6130esac
6131fi
6132CAMLP4OF=$ac_cv_path_CAMLP4OF
6133if test -n "$CAMLP4OF"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OF" >&5
6135$as_echo "$CAMLP4OF" >&6; }
6136else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142fi
6143if test -z "$ac_cv_path_CAMLP4OF"; then
6144 ac_pt_CAMLP4OF=$CAMLP4OF
6145 # Extract the first word of "camlp4of", so it can be a program name with args.
6146set dummy camlp4of; ac_word=$2
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148$as_echo_n "checking for $ac_word... " >&6; }
6149if ${ac_cv_path_ac_pt_CAMLP4OF+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151else
6152 case $ac_pt_CAMLP4OF in
6153 [\\/]* | ?:[\\/]*)
6154 ac_cv_path_ac_pt_CAMLP4OF="$ac_pt_CAMLP4OF" # Let the user override the test with a path.
6155 ;;
6156 *)
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6164 ac_cv_path_ac_pt_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168done
6169 done
6170IFS=$as_save_IFS
6171
6172 ;;
6173esac
6174fi
6175ac_pt_CAMLP4OF=$ac_cv_path_ac_pt_CAMLP4OF
6176if test -n "$ac_pt_CAMLP4OF"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OF" >&5
6178$as_echo "$ac_pt_CAMLP4OF" >&6; }
6179else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184 if test "x$ac_pt_CAMLP4OF" = x; then
6185 CAMLP4OF="no"
6186 else
6187 case $cross_compiling:$ac_tool_warned in
6188yes:)
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191ac_tool_warned=yes ;;
6192esac
6193 CAMLP4OF=$ac_pt_CAMLP4OF
6194 fi
6195else
6196 CAMLP4OF="$ac_cv_path_CAMLP4OF"
6197fi
6198
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}camlp4oof", so it can be a program name with args.
6201set dummy ${ac_tool_prefix}camlp4oof; ac_word=$2
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203$as_echo_n "checking for $ac_word... " >&6; }
6204if ${ac_cv_path_CAMLP4OOF+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206else
6207 case $CAMLP4OOF in
6208 [\\/]* | ?:[\\/]*)
6209 ac_cv_path_CAMLP4OOF="$CAMLP4OOF" # Let the user override the test with a path.
6210 ;;
6211 *)
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6219 ac_cv_path_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223done
6224 done
6225IFS=$as_save_IFS
6226
6227 ;;
6228esac
6229fi
6230CAMLP4OOF=$ac_cv_path_CAMLP4OOF
6231if test -n "$CAMLP4OOF"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OOF" >&5
6233$as_echo "$CAMLP4OOF" >&6; }
6234else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
6237fi
6238
6239
6240fi
6241if test -z "$ac_cv_path_CAMLP4OOF"; then
6242 ac_pt_CAMLP4OOF=$CAMLP4OOF
6243 # Extract the first word of "camlp4oof", so it can be a program name with args.
6244set dummy camlp4oof; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_path_ac_pt_CAMLP4OOF+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249else
6250 case $ac_pt_CAMLP4OOF in
6251 [\\/]* | ?:[\\/]*)
6252 ac_cv_path_ac_pt_CAMLP4OOF="$ac_pt_CAMLP4OOF" # Let the user override the test with a path.
6253 ;;
6254 *)
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6262 ac_cv_path_ac_pt_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267 done
6268IFS=$as_save_IFS
6269
6270 ;;
6271esac
6272fi
6273ac_pt_CAMLP4OOF=$ac_cv_path_ac_pt_CAMLP4OOF
6274if test -n "$ac_pt_CAMLP4OOF"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OOF" >&5
6276$as_echo "$ac_pt_CAMLP4OOF" >&6; }
6277else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282 if test "x$ac_pt_CAMLP4OOF" = x; then
6283 CAMLP4OOF="no"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286yes:)
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289ac_tool_warned=yes ;;
6290esac
6291 CAMLP4OOF=$ac_pt_CAMLP4OOF
6292 fi
6293else
6294 CAMLP4OOF="$ac_cv_path_CAMLP4OOF"
6295fi
6296
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}camlp4orf", so it can be a program name with args.
6299set dummy ${ac_tool_prefix}camlp4orf; ac_word=$2
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301$as_echo_n "checking for $ac_word... " >&6; }
6302if ${ac_cv_path_CAMLP4ORF+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304else
6305 case $CAMLP4ORF in
6306 [\\/]* | ?:[\\/]*)
6307 ac_cv_path_CAMLP4ORF="$CAMLP4ORF" # Let the user override the test with a path.
6308 ;;
6309 *)
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6317 ac_cv_path_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321done
6322 done
6323IFS=$as_save_IFS
6324
6325 ;;
6326esac
6327fi
6328CAMLP4ORF=$ac_cv_path_CAMLP4ORF
6329if test -n "$CAMLP4ORF"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4ORF" >&5
6331$as_echo "$CAMLP4ORF" >&6; }
6332else
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338fi
6339if test -z "$ac_cv_path_CAMLP4ORF"; then
6340 ac_pt_CAMLP4ORF=$CAMLP4ORF
6341 # Extract the first word of "camlp4orf", so it can be a program name with args.
6342set dummy camlp4orf; ac_word=$2
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if ${ac_cv_path_ac_pt_CAMLP4ORF+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347else
6348 case $ac_pt_CAMLP4ORF in
6349 [\\/]* | ?:[\\/]*)
6350 ac_cv_path_ac_pt_CAMLP4ORF="$ac_pt_CAMLP4ORF" # Let the user override the test with a path.
6351 ;;
6352 *)
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6360 ac_cv_path_ac_pt_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6363 fi
6364done
6365 done
6366IFS=$as_save_IFS
6367
6368 ;;
6369esac
6370fi
6371ac_pt_CAMLP4ORF=$ac_cv_path_ac_pt_CAMLP4ORF
6372if test -n "$ac_pt_CAMLP4ORF"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4ORF" >&5
6374$as_echo "$ac_pt_CAMLP4ORF" >&6; }
6375else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378fi
6379
6380 if test "x$ac_pt_CAMLP4ORF" = x; then
6381 CAMLP4ORF="no"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384yes:)
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387ac_tool_warned=yes ;;
6388esac
6389 CAMLP4ORF=$ac_pt_CAMLP4ORF
6390 fi
6391else
6392 CAMLP4ORF="$ac_cv_path_CAMLP4ORF"
6393fi
6394
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}camlp4prof", so it can be a program name with args.
6397set dummy ${ac_tool_prefix}camlp4prof; ac_word=$2
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399$as_echo_n "checking for $ac_word... " >&6; }
6400if ${ac_cv_path_CAMLP4PROF+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402else
6403 case $CAMLP4PROF in
6404 [\\/]* | ?:[\\/]*)
6405 ac_cv_path_CAMLP4PROF="$CAMLP4PROF" # Let the user override the test with a path.
6406 ;;
6407 *)
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6415 ac_cv_path_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419done
6420 done
6421IFS=$as_save_IFS
6422
6423 ;;
6424esac
6425fi
6426CAMLP4PROF=$ac_cv_path_CAMLP4PROF
6427if test -n "$CAMLP4PROF"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4PROF" >&5
6429$as_echo "$CAMLP4PROF" >&6; }
6430else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432$as_echo "no" >&6; }
6433fi
6434
6435
6436fi
6437if test -z "$ac_cv_path_CAMLP4PROF"; then
6438 ac_pt_CAMLP4PROF=$CAMLP4PROF
6439 # Extract the first word of "camlp4prof", so it can be a program name with args.
6440set dummy camlp4prof; ac_word=$2
6441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442$as_echo_n "checking for $ac_word... " >&6; }
6443if ${ac_cv_path_ac_pt_CAMLP4PROF+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445else
6446 case $ac_pt_CAMLP4PROF in
6447 [\\/]* | ?:[\\/]*)
6448 ac_cv_path_ac_pt_CAMLP4PROF="$ac_pt_CAMLP4PROF" # Let the user override the test with a path.
6449 ;;
6450 *)
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452for as_dir in $PATH
6453do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6458 ac_cv_path_ac_pt_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462done
6463 done
6464IFS=$as_save_IFS
6465
6466 ;;
6467esac
6468fi
6469ac_pt_CAMLP4PROF=$ac_cv_path_ac_pt_CAMLP4PROF
6470if test -n "$ac_pt_CAMLP4PROF"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4PROF" >&5
6472$as_echo "$ac_pt_CAMLP4PROF" >&6; }
6473else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478 if test "x$ac_pt_CAMLP4PROF" = x; then
6479 CAMLP4PROF="no"
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482yes:)
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485ac_tool_warned=yes ;;
6486esac
6487 CAMLP4PROF=$ac_pt_CAMLP4PROF
6488 fi
6489else
6490 CAMLP4PROF="$ac_cv_path_CAMLP4PROF"
6491fi
6492
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}camlp4r", so it can be a program name with args.
6495set dummy ${ac_tool_prefix}camlp4r; ac_word=$2
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497$as_echo_n "checking for $ac_word... " >&6; }
6498if ${ac_cv_path_CAMLP4R+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500else
6501 case $CAMLP4R in
6502 [\\/]* | ?:[\\/]*)
6503 ac_cv_path_CAMLP4R="$CAMLP4R" # Let the user override the test with a path.
6504 ;;
6505 *)
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6513 ac_cv_path_CAMLP4R="$as_dir/$ac_word$ac_exec_ext"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517done
6518 done
6519IFS=$as_save_IFS
6520
6521 ;;
6522esac
6523fi
6524CAMLP4R=$ac_cv_path_CAMLP4R
6525if test -n "$CAMLP4R"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4R" >&5
6527$as_echo "$CAMLP4R" >&6; }
6528else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532
6533
6534fi
6535if test -z "$ac_cv_path_CAMLP4R"; then
6536 ac_pt_CAMLP4R=$CAMLP4R
6537 # Extract the first word of "camlp4r", so it can be a program name with args.
6538set dummy camlp4r; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
6541if ${ac_cv_path_ac_pt_CAMLP4R+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543else
6544 case $ac_pt_CAMLP4R in
6545 [\\/]* | ?:[\\/]*)
6546 ac_cv_path_ac_pt_CAMLP4R="$ac_pt_CAMLP4R" # Let the user override the test with a path.
6547 ;;
6548 *)
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6556 ac_cv_path_ac_pt_CAMLP4R="$as_dir/$ac_word$ac_exec_ext"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560done
6561 done
6562IFS=$as_save_IFS
6563
6564 ;;
6565esac
6566fi
6567ac_pt_CAMLP4R=$ac_cv_path_ac_pt_CAMLP4R
6568if test -n "$ac_pt_CAMLP4R"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4R" >&5
6570$as_echo "$ac_pt_CAMLP4R" >&6; }
6571else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573$as_echo "no" >&6; }
6574fi
6575
6576 if test "x$ac_pt_CAMLP4R" = x; then
6577 CAMLP4R="no"
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580yes:)
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583ac_tool_warned=yes ;;
6584esac
6585 CAMLP4R=$ac_pt_CAMLP4R
6586 fi
6587else
6588 CAMLP4R="$ac_cv_path_CAMLP4R"
6589fi
6590
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}camlp4rf", so it can be a program name with args.
6593set dummy ${ac_tool_prefix}camlp4rf; ac_word=$2
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595$as_echo_n "checking for $ac_word... " >&6; }
6596if ${ac_cv_path_CAMLP4RF+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598else
6599 case $CAMLP4RF in
6600 [\\/]* | ?:[\\/]*)
6601 ac_cv_path_CAMLP4RF="$CAMLP4RF" # Let the user override the test with a path.
6602 ;;
6603 *)
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605for as_dir in $PATH
6606do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6611 ac_cv_path_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615done
6616 done
6617IFS=$as_save_IFS
6618
6619 ;;
6620esac
6621fi
6622CAMLP4RF=$ac_cv_path_CAMLP4RF
6623if test -n "$CAMLP4RF"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4RF" >&5
6625$as_echo "$CAMLP4RF" >&6; }
6626else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628$as_echo "no" >&6; }
6629fi
6630
6631
6632fi
6633if test -z "$ac_cv_path_CAMLP4RF"; then
6634 ac_pt_CAMLP4RF=$CAMLP4RF
6635 # Extract the first word of "camlp4rf", so it can be a program name with args.
6636set dummy camlp4rf; ac_word=$2
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638$as_echo_n "checking for $ac_word... " >&6; }
6639if ${ac_cv_path_ac_pt_CAMLP4RF+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641else
6642 case $ac_pt_CAMLP4RF in
6643 [\\/]* | ?:[\\/]*)
6644 ac_cv_path_ac_pt_CAMLP4RF="$ac_pt_CAMLP4RF" # Let the user override the test with a path.
6645 ;;
6646 *)
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6654 ac_cv_path_ac_pt_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6657 fi
6658done
6659 done
6660IFS=$as_save_IFS
6661
6662 ;;
6663esac
6664fi
6665ac_pt_CAMLP4RF=$ac_cv_path_ac_pt_CAMLP4RF
6666if test -n "$ac_pt_CAMLP4RF"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4RF" >&5
6668$as_echo "$ac_pt_CAMLP4RF" >&6; }
6669else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674 if test "x$ac_pt_CAMLP4RF" = x; then
6675 CAMLP4RF="no"
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678yes:)
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681ac_tool_warned=yes ;;
6682esac
6683 CAMLP4RF=$ac_pt_CAMLP4RF
6684 fi
6685else
6686 CAMLP4RF="$ac_cv_path_CAMLP4RF"
6687fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700# Check whether --with-ocamllex was given.
6701if test "${with_ocamllex+set}" = set; then :
6702 withval=$with_ocamllex;
6703fi
6704
6705 with_OCAMLLEX="$with_ocamllex"
6706
feec80c3
C
6707 if test -n "$with_OCAMLLEX" -a "x$with_OCAMLLEX" != xno -a "x$with_OCAMLLEX" != xyes; then :
6708 OCAMLLEX="$with_OCAMLLEX"
6709
6710
d6ce1786
C
6711else
6712 OCAMLLEX="ocamllex"
6713
6714
feec80c3
C
6715fi
6716
d6ce1786
C
6717 if test "x$with_OCAMLLEX" = xno; then :
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex is disabled explicitly" >&5
6719$as_echo "$as_me: ocamllex is disabled explicitly" >&6;}
6720 OCAMLLEX=no
6721
6722
6723else
6724 if test "x$OCAMLLEX" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then :
feec80c3
C
6725
6726
6727if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6730set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732$as_echo_n "checking for $ac_word... " >&6; }
6733if ${ac_cv_path_PKG_CONFIG+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735else
6736 case $PKG_CONFIG in
6737 [\\/]* | ?:[\\/]*)
6738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6739 ;;
6740 *)
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752done
6753 done
6754IFS=$as_save_IFS
6755
6756 ;;
6757esac
6758fi
6759PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6760if test -n "$PKG_CONFIG"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6762$as_echo "$PKG_CONFIG" >&6; }
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768
6769fi
6770if test -z "$ac_cv_path_PKG_CONFIG"; then
6771 ac_pt_PKG_CONFIG=$PKG_CONFIG
6772 # Extract the first word of "pkg-config", so it can be a program name with args.
6773set dummy pkg-config; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
6776if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778else
6779 case $ac_pt_PKG_CONFIG in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6782 ;;
6783 *)
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6791 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795done
6796 done
6797IFS=$as_save_IFS
6798
6799 ;;
6800esac
6801fi
6802ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6803if test -n "$ac_pt_PKG_CONFIG"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6805$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6806else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808$as_echo "no" >&6; }
6809fi
6810
6811 if test "x$ac_pt_PKG_CONFIG" = x; then
6812 PKG_CONFIG=""
6813 else
6814 case $cross_compiling:$ac_tool_warned in
6815yes:)
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818ac_tool_warned=yes ;;
6819esac
6820 PKG_CONFIG=$ac_pt_PKG_CONFIG
6821 fi
6822else
6823 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6824fi
6825
6826fi
6827if test -n "$PKG_CONFIG"; then
6828 _pkg_min_version=0.9.0
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6830$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6831 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6833$as_echo "yes" >&6; }
6834 else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836$as_echo "no" >&6; }
6837 PKG_CONFIG=""
6838 fi
6839
6840fi
6841
d6ce1786 6842elif test "x$OCAMLLEX" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then :
feec80c3
C
6843 # checking for ocamllex
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
6846set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848$as_echo_n "checking for $ac_word... " >&6; }
6849if ${ac_cv_path_OCAMLLEX+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851else
6852 case $OCAMLLEX in
6853 [\\/]* | ?:[\\/]*)
6854 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
6855 ;;
6856 *)
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6864 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869 done
6870IFS=$as_save_IFS
6871
6872 ;;
6873esac
6874fi
6875OCAMLLEX=$ac_cv_path_OCAMLLEX
6876if test -n "$OCAMLLEX"; then
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
6878$as_echo "$OCAMLLEX" >&6; }
6879else
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881$as_echo "no" >&6; }
6882fi
6883
6884
6885fi
6886if test -z "$ac_cv_path_OCAMLLEX"; then
6887 ac_pt_OCAMLLEX=$OCAMLLEX
6888 # Extract the first word of "ocamllex", so it can be a program name with args.
6889set dummy ocamllex; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894else
6895 case $ac_pt_OCAMLLEX in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
6898 ;;
6899 *)
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6907 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911done
6912 done
6913IFS=$as_save_IFS
6914
6915 ;;
6916esac
6917fi
6918ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
6919if test -n "$ac_pt_OCAMLLEX"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
6921$as_echo "$ac_pt_OCAMLLEX" >&6; }
6922else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927 if test "x$ac_pt_OCAMLLEX" = x; then
6928 OCAMLLEX="no"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931yes:)
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934ac_tool_warned=yes ;;
6935esac
6936 OCAMLLEX=$ac_pt_OCAMLLEX
6937 fi
6938else
6939 OCAMLLEX="$ac_cv_path_OCAMLLEX"
6940fi
6941
6942 if test "$OCAMLLEX" != "no"; then
6943 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
6945set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947$as_echo_n "checking for $ac_word... " >&6; }
6948if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950else
6951 case $OCAMLLEXDOTOPT in
6952 [\\/]* | ?:[\\/]*)
6953 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
6954 ;;
6955 *)
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6963 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968 done
6969IFS=$as_save_IFS
6970
6971 ;;
6972esac
6973fi
6974OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
6975if test -n "$OCAMLLEXDOTOPT"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
6977$as_echo "$OCAMLLEXDOTOPT" >&6; }
6978else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980$as_echo "no" >&6; }
6981fi
6982
6983
6984fi
6985if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
6986 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
6987 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
6988set dummy ocamllex.opt; ac_word=$2
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990$as_echo_n "checking for $ac_word... " >&6; }
6991if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993else
6994 case $ac_pt_OCAMLLEXDOTOPT in
6995 [\\/]* | ?:[\\/]*)
6996 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
6997 ;;
6998 *)
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7006 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011 done
7012IFS=$as_save_IFS
7013
7014 ;;
7015esac
7016fi
7017ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
7018if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
7020$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
7021else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
7027 OCAMLLEXDOTOPT="no"
7028 else
7029 case $cross_compiling:$ac_tool_warned in
7030yes:)
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033ac_tool_warned=yes ;;
7034esac
7035 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
7036 fi
7037else
7038 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
7039fi
7040
7041 if test "$OCAMLLEXDOTOPT" != "no"; then
7042 OCAMLLEX=$OCAMLLEXDOTOPT
7043 fi
7044 fi
7045
7046
7047
d6ce1786 7048elif test "x$OCAMLLEX" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then :
feec80c3
C
7049 if test -n "$ac_tool_prefix"; then
7050 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
7051set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053$as_echo_n "checking for $ac_word... " >&6; }
7054if ${ac_cv_path_OCAMLYACC+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056else
7057 case $OCAMLYACC in
7058 [\\/]* | ?:[\\/]*)
7059 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
7060 ;;
7061 *)
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7069 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073done
7074 done
7075IFS=$as_save_IFS
7076
7077 ;;
7078esac
7079fi
7080OCAMLYACC=$ac_cv_path_OCAMLYACC
7081if test -n "$OCAMLYACC"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
7083$as_echo "$OCAMLYACC" >&6; }
7084else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087fi
7088
7089
7090fi
7091if test -z "$ac_cv_path_OCAMLYACC"; then
7092 ac_pt_OCAMLYACC=$OCAMLYACC
7093 # Extract the first word of "ocamlyacc", so it can be a program name with args.
7094set dummy ocamlyacc; ac_word=$2
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096$as_echo_n "checking for $ac_word... " >&6; }
7097if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099else
7100 case $ac_pt_OCAMLYACC in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7112 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117 done
7118IFS=$as_save_IFS
7119
7120 ;;
7121esac
7122fi
7123ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
7124if test -n "$ac_pt_OCAMLYACC"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
7126$as_echo "$ac_pt_OCAMLYACC" >&6; }
7127else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
7130fi
7131
7132 if test "x$ac_pt_OCAMLYACC" = x; then
7133 OCAMLYACC="no"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139ac_tool_warned=yes ;;
7140esac
7141 OCAMLYACC=$ac_pt_OCAMLYACC
7142 fi
7143else
7144 OCAMLYACC="$ac_cv_path_OCAMLYACC"
7145fi
7146
7147
7148
7149
7150else
7151 if test -n "$ac_tool_prefix"; then
d6ce1786
C
7152 # Extract the first word of "${ac_tool_prefix}[$]OCAMLLEX", so it can be a program name with args.
7153set dummy ${ac_tool_prefix}$OCAMLLEX; ac_word=$2
feec80c3
C
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if ${ac_cv_path_OCAMLLEX+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158else
7159 case $OCAMLLEX in
7160 [\\/]* | ?:[\\/]*)
7161 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7162 ;;
7163 *)
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7171 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175done
7176 done
7177IFS=$as_save_IFS
7178
7179 ;;
7180esac
7181fi
7182OCAMLLEX=$ac_cv_path_OCAMLLEX
7183if test -n "$OCAMLLEX"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7185$as_echo "$OCAMLLEX" >&6; }
7186else
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188$as_echo "no" >&6; }
7189fi
7190
7191
7192fi
7193if test -z "$ac_cv_path_OCAMLLEX"; then
7194 ac_pt_OCAMLLEX=$OCAMLLEX
d6ce1786
C
7195 # Extract the first word of "[$]OCAMLLEX", so it can be a program name with args.
7196set dummy $OCAMLLEX; ac_word=$2
feec80c3
C
7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198$as_echo_n "checking for $ac_word... " >&6; }
7199if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201else
7202 case $ac_pt_OCAMLLEX in
7203 [\\/]* | ?:[\\/]*)
7204 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7205 ;;
7206 *)
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7214 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218done
7219 done
7220IFS=$as_save_IFS
7221
7222 ;;
7223esac
7224fi
7225ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7226if test -n "$ac_pt_OCAMLLEX"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7228$as_echo "$ac_pt_OCAMLLEX" >&6; }
7229else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231$as_echo "no" >&6; }
7232fi
7233
7234 if test "x$ac_pt_OCAMLLEX" = x; then
7235 OCAMLLEX=""
7236 else
7237 case $cross_compiling:$ac_tool_warned in
7238yes:)
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241ac_tool_warned=yes ;;
7242esac
7243 OCAMLLEX=$ac_pt_OCAMLLEX
7244 fi
7245else
7246 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7247fi
7248
7249
7250fi
7251
7252
7253fi
7254
7255 if test -z "$OCAMLLEX" -o "x$OCAMLLEX" = xno; then :
7256 if test "x$with_OCAMLLEX" = xyes; then :
7257 as_fn_error $? "--with=ocamllex is given explicitly but not found" "$LINENO" 5
7258
7259fi
7260
7261 if test -n ""; then :
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex not found. Trying substitute ." >&5
7263$as_echo "$as_me: ocamllex not found. Trying substitute ." >&6;}
7264 OCAMLLEX=""
7265
7266 if test "xocamllex" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then :
7267
7268
7269if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7272set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274$as_echo_n "checking for $ac_word... " >&6; }
7275if ${ac_cv_path_PKG_CONFIG+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277else
7278 case $PKG_CONFIG in
7279 [\\/]* | ?:[\\/]*)
7280 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7281 ;;
7282 *)
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7290 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294done
7295 done
7296IFS=$as_save_IFS
7297
7298 ;;
7299esac
7300fi
7301PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7302if test -n "$PKG_CONFIG"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7304$as_echo "$PKG_CONFIG" >&6; }
7305else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307$as_echo "no" >&6; }
7308fi
7309
7310
7311fi
7312if test -z "$ac_cv_path_PKG_CONFIG"; then
7313 ac_pt_PKG_CONFIG=$PKG_CONFIG
7314 # Extract the first word of "pkg-config", so it can be a program name with args.
7315set dummy pkg-config; ac_word=$2
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317$as_echo_n "checking for $ac_word... " >&6; }
7318if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320else
7321 case $ac_pt_PKG_CONFIG in
7322 [\\/]* | ?:[\\/]*)
7323 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7324 ;;
7325 *)
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7333 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337done
7338 done
7339IFS=$as_save_IFS
7340
7341 ;;
7342esac
7343fi
7344ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7345if test -n "$ac_pt_PKG_CONFIG"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7347$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7348else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350$as_echo "no" >&6; }
7351fi
7352
7353 if test "x$ac_pt_PKG_CONFIG" = x; then
7354 PKG_CONFIG=""
7355 else
7356 case $cross_compiling:$ac_tool_warned in
7357yes:)
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360ac_tool_warned=yes ;;
7361esac
7362 PKG_CONFIG=$ac_pt_PKG_CONFIG
7363 fi
7364else
7365 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7366fi
7367
7368fi
7369if test -n "$PKG_CONFIG"; then
7370 _pkg_min_version=0.9.0
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7372$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7373 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7375$as_echo "yes" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379 PKG_CONFIG=""
7380 fi
7381
7382fi
7383
7384elif test "xocamllex" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then :
7385 # checking for ocamllex
7386 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
7388set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if ${ac_cv_path_OCAMLLEX+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393else
7394 case $OCAMLLEX in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7406 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411 done
7412IFS=$as_save_IFS
7413
7414 ;;
7415esac
7416fi
7417OCAMLLEX=$ac_cv_path_OCAMLLEX
7418if test -n "$OCAMLLEX"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7420$as_echo "$OCAMLLEX" >&6; }
7421else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
7424fi
7425
7426
7427fi
7428if test -z "$ac_cv_path_OCAMLLEX"; then
7429 ac_pt_OCAMLLEX=$OCAMLLEX
7430 # Extract the first word of "ocamllex", so it can be a program name with args.
7431set dummy ocamllex; ac_word=$2
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433$as_echo_n "checking for $ac_word... " >&6; }
7434if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436else
7437 case $ac_pt_OCAMLLEX in
7438 [\\/]* | ?:[\\/]*)
7439 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7440 ;;
7441 *)
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7449 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454 done
7455IFS=$as_save_IFS
7456
7457 ;;
7458esac
7459fi
7460ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7461if test -n "$ac_pt_OCAMLLEX"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7463$as_echo "$ac_pt_OCAMLLEX" >&6; }
7464else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466$as_echo "no" >&6; }
7467fi
7468
7469 if test "x$ac_pt_OCAMLLEX" = x; then
7470 OCAMLLEX="no"
7471 else
7472 case $cross_compiling:$ac_tool_warned in
7473yes:)
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7476ac_tool_warned=yes ;;
7477esac
7478 OCAMLLEX=$ac_pt_OCAMLLEX
7479 fi
7480else
7481 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7482fi
7483
7484 if test "$OCAMLLEX" != "no"; then
7485 if test -n "$ac_tool_prefix"; then
7486 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
7487set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489$as_echo_n "checking for $ac_word... " >&6; }
7490if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492else
7493 case $OCAMLLEXDOTOPT in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7505 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510 done
7511IFS=$as_save_IFS
7512
7513 ;;
7514esac
7515fi
7516OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
7517if test -n "$OCAMLLEXDOTOPT"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
7519$as_echo "$OCAMLLEXDOTOPT" >&6; }
7520else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522$as_echo "no" >&6; }
7523fi
7524
7525
7526fi
7527if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
7528 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
7529 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
7530set dummy ocamllex.opt; ac_word=$2
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532$as_echo_n "checking for $ac_word... " >&6; }
7533if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535else
7536 case $ac_pt_OCAMLLEXDOTOPT in
7537 [\\/]* | ?:[\\/]*)
7538 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
7539 ;;
7540 *)
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7548 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552done
7553 done
7554IFS=$as_save_IFS
7555
7556 ;;
7557esac
7558fi
7559ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
7560if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
7562$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
7563else
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
7566fi
7567
7568 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
7569 OCAMLLEXDOTOPT="no"
7570 else
7571 case $cross_compiling:$ac_tool_warned in
7572yes:)
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575ac_tool_warned=yes ;;
7576esac
7577 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
7578 fi
7579else
7580 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
7581fi
7582
7583 if test "$OCAMLLEXDOTOPT" != "no"; then
7584 OCAMLLEX=$OCAMLLEXDOTOPT
7585 fi
7586 fi
7587
7588
7589
7590elif test "xocamllex" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then :
7591 if test -n "$ac_tool_prefix"; then
7592 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
7593set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595$as_echo_n "checking for $ac_word... " >&6; }
7596if ${ac_cv_path_OCAMLYACC+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598else
7599 case $OCAMLYACC in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7611 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615done
7616 done
7617IFS=$as_save_IFS
7618
7619 ;;
7620esac
7621fi
7622OCAMLYACC=$ac_cv_path_OCAMLYACC
7623if test -n "$OCAMLYACC"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
7625$as_echo "$OCAMLYACC" >&6; }
7626else
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629fi
7630
7631
7632fi
7633if test -z "$ac_cv_path_OCAMLYACC"; then
7634 ac_pt_OCAMLYACC=$OCAMLYACC
7635 # Extract the first word of "ocamlyacc", so it can be a program name with args.
7636set dummy ocamlyacc; ac_word=$2
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
7639if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641else
7642 case $ac_pt_OCAMLYACC in
7643 [\\/]* | ?:[\\/]*)
7644 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
7645 ;;
7646 *)
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7654 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7657 fi
7658done
7659 done
7660IFS=$as_save_IFS
7661
7662 ;;
7663esac
7664fi
7665ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
7666if test -n "$ac_pt_OCAMLYACC"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
7668$as_echo "$ac_pt_OCAMLYACC" >&6; }
7669else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
7672fi
7673
7674 if test "x$ac_pt_OCAMLYACC" = x; then
7675 OCAMLYACC="no"
7676 else
7677 case $cross_compiling:$ac_tool_warned in
7678yes:)
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681ac_tool_warned=yes ;;
7682esac
7683 OCAMLYACC=$ac_pt_OCAMLYACC
7684 fi
7685else
7686 OCAMLYACC="$ac_cv_path_OCAMLYACC"
7687fi
7688
7689
7690
7691
7692else
7693 if test -n "$ac_tool_prefix"; then
7694 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
7695set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697$as_echo_n "checking for $ac_word... " >&6; }
7698if ${ac_cv_path_OCAMLLEX+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700else
7701 case $OCAMLLEX in
7702 [\\/]* | ?:[\\/]*)
7703 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7704 ;;
7705 *)
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7713 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717done
7718 done
7719IFS=$as_save_IFS
7720
7721 ;;
7722esac
7723fi
7724OCAMLLEX=$ac_cv_path_OCAMLLEX
7725if test -n "$OCAMLLEX"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7727$as_echo "$OCAMLLEX" >&6; }
7728else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734fi
7735if test -z "$ac_cv_path_OCAMLLEX"; then
7736 ac_pt_OCAMLLEX=$OCAMLLEX
7737 # Extract the first word of "ocamllex", so it can be a program name with args.
7738set dummy ocamllex; ac_word=$2
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743else
7744 case $ac_pt_OCAMLLEX in
7745 [\\/]* | ?:[\\/]*)
7746 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7747 ;;
7748 *)
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7756 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7759 fi
7760done
7761 done
7762IFS=$as_save_IFS
7763
7764 ;;
7765esac
7766fi
7767ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7768if test -n "$ac_pt_OCAMLLEX"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7770$as_echo "$ac_pt_OCAMLLEX" >&6; }
7771else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773$as_echo "no" >&6; }
7774fi
7775
7776 if test "x$ac_pt_OCAMLLEX" = x; then
7777 OCAMLLEX=""
7778 else
7779 case $cross_compiling:$ac_tool_warned in
7780yes:)
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783ac_tool_warned=yes ;;
7784esac
7785 OCAMLLEX=$ac_pt_OCAMLLEX
7786 fi
7787else
7788 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7789fi
7790
7791
7792fi
7793
7794 SUBSTITUTED_OCAMLLEX=yes
7795
7796
7797fi
7798
7799fi
7800
7801 if test -z "$OCAMLLEX"; then :
7802 OCAMLLEX=no
7803
7804fi
7805
7806
7807
7808# Check whether --with-ocamlyacc was given.
7809if test "${with_ocamlyacc+set}" = set; then :
7810 withval=$with_ocamlyacc;
7811fi
7812
7813 with_OCAMLYACC="$with_ocamlyacc"
7814
feec80c3
C
7815 if test -n "$with_OCAMLYACC" -a "x$with_OCAMLYACC" != xno -a "x$with_OCAMLYACC" != xyes; then :
7816 OCAMLYACC="$with_OCAMLYACC"
7817
7818
d6ce1786
C
7819else
7820 OCAMLYACC="ocamlyacc"
7821
7822
feec80c3
C
7823fi
7824
d6ce1786
C
7825 if test "x$with_OCAMLYACC" = xno; then :
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc is disabled explicitly" >&5
7827$as_echo "$as_me: ocamlyacc is disabled explicitly" >&6;}
7828 OCAMLYACC=no
7829
7830
7831else
7832 if test "x$OCAMLYACC" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then :
feec80c3
C
7833
7834
7835if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7836 if test -n "$ac_tool_prefix"; then
7837 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7838set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
7841if ${ac_cv_path_PKG_CONFIG+:} false; then :
7842 $as_echo_n "(cached) " >&6
7843else
7844 case $PKG_CONFIG in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7847 ;;
7848 *)
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7856 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860done
7861 done
7862IFS=$as_save_IFS
7863
7864 ;;
7865esac
7866fi
7867PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7868if test -n "$PKG_CONFIG"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7870$as_echo "$PKG_CONFIG" >&6; }
7871else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874fi
7875
7876
7877fi
7878if test -z "$ac_cv_path_PKG_CONFIG"; then
7879 ac_pt_PKG_CONFIG=$PKG_CONFIG
7880 # Extract the first word of "pkg-config", so it can be a program name with args.
7881set dummy pkg-config; ac_word=$2
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883$as_echo_n "checking for $ac_word... " >&6; }
7884if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886else
7887 case $ac_pt_PKG_CONFIG in
7888 [\\/]* | ?:[\\/]*)
7889 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7890 ;;
7891 *)
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7899 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903done
7904 done
7905IFS=$as_save_IFS
7906
7907 ;;
7908esac
7909fi
7910ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7911if test -n "$ac_pt_PKG_CONFIG"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7913$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7914else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919 if test "x$ac_pt_PKG_CONFIG" = x; then
7920 PKG_CONFIG=""
7921 else
7922 case $cross_compiling:$ac_tool_warned in
7923yes:)
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926ac_tool_warned=yes ;;
7927esac
7928 PKG_CONFIG=$ac_pt_PKG_CONFIG
7929 fi
7930else
7931 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7932fi
7933
7934fi
7935if test -n "$PKG_CONFIG"; then
7936 _pkg_min_version=0.9.0
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7938$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7939 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7941$as_echo "yes" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
7945 PKG_CONFIG=""
7946 fi
7947
7948fi
7949
d6ce1786 7950elif test "x$OCAMLYACC" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then :
feec80c3
C
7951 # checking for ocamllex
7952 if test -n "$ac_tool_prefix"; then
7953 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
7954set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956$as_echo_n "checking for $ac_word... " >&6; }
7957if ${ac_cv_path_OCAMLLEX+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959else
7960 case $OCAMLLEX in
7961 [\\/]* | ?:[\\/]*)
7962 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7963 ;;
7964 *)
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966for as_dir in $PATH
7967do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7972 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976done
7977 done
7978IFS=$as_save_IFS
7979
7980 ;;
7981esac
7982fi
7983OCAMLLEX=$ac_cv_path_OCAMLLEX
7984if test -n "$OCAMLLEX"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7986$as_echo "$OCAMLLEX" >&6; }
7987else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
7990fi
7991
7992
7993fi
7994if test -z "$ac_cv_path_OCAMLLEX"; then
7995 ac_pt_OCAMLLEX=$OCAMLLEX
7996 # Extract the first word of "ocamllex", so it can be a program name with args.
7997set dummy ocamllex; ac_word=$2
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999$as_echo_n "checking for $ac_word... " >&6; }
8000if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8001 $as_echo_n "(cached) " >&6
8002else
8003 case $ac_pt_OCAMLLEX in
8004 [\\/]* | ?:[\\/]*)
8005 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8006 ;;
8007 *)
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8015 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019done
8020 done
8021IFS=$as_save_IFS
8022
8023 ;;
8024esac
8025fi
8026ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8027if test -n "$ac_pt_OCAMLLEX"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8029$as_echo "$ac_pt_OCAMLLEX" >&6; }
8030else
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032$as_echo "no" >&6; }
8033fi
8034
8035 if test "x$ac_pt_OCAMLLEX" = x; then
8036 OCAMLLEX="no"
8037 else
8038 case $cross_compiling:$ac_tool_warned in
8039yes:)
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8042ac_tool_warned=yes ;;
8043esac
8044 OCAMLLEX=$ac_pt_OCAMLLEX
8045 fi
8046else
8047 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8048fi
8049
8050 if test "$OCAMLLEX" != "no"; then
8051 if test -n "$ac_tool_prefix"; then
8052 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
8053set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055$as_echo_n "checking for $ac_word... " >&6; }
8056if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058else
8059 case $OCAMLLEXDOTOPT in
8060 [\\/]* | ?:[\\/]*)
8061 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
8062 ;;
8063 *)
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8071 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075done
8076 done
8077IFS=$as_save_IFS
8078
8079 ;;
8080esac
8081fi
8082OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
8083if test -n "$OCAMLLEXDOTOPT"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
8085$as_echo "$OCAMLLEXDOTOPT" >&6; }
8086else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
8089fi
8090
8091
8092fi
8093if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
8094 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
8095 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
8096set dummy ocamllex.opt; ac_word=$2
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098$as_echo_n "checking for $ac_word... " >&6; }
8099if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101else
8102 case $ac_pt_OCAMLLEXDOTOPT in
8103 [\\/]* | ?:[\\/]*)
8104 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
8105 ;;
8106 *)
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8114 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119 done
8120IFS=$as_save_IFS
8121
8122 ;;
8123esac
8124fi
8125ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
8126if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
8128$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
8129else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131$as_echo "no" >&6; }
8132fi
8133
8134 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
8135 OCAMLLEXDOTOPT="no"
8136 else
8137 case $cross_compiling:$ac_tool_warned in
8138yes:)
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8141ac_tool_warned=yes ;;
8142esac
8143 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
8144 fi
8145else
8146 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
8147fi
8148
8149 if test "$OCAMLLEXDOTOPT" != "no"; then
8150 OCAMLLEX=$OCAMLLEXDOTOPT
8151 fi
8152 fi
8153
8154
8155
d6ce1786 8156elif test "x$OCAMLYACC" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then :
feec80c3
C
8157 if test -n "$ac_tool_prefix"; then
8158 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8159set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
8162if ${ac_cv_path_OCAMLYACC+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164else
8165 case $OCAMLYACC in
8166 [\\/]* | ?:[\\/]*)
8167 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8168 ;;
8169 *)
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171for as_dir in $PATH
8172do
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8177 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 break 2
8180 fi
8181done
8182 done
8183IFS=$as_save_IFS
8184
8185 ;;
8186esac
8187fi
8188OCAMLYACC=$ac_cv_path_OCAMLYACC
8189if test -n "$OCAMLYACC"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8191$as_echo "$OCAMLYACC" >&6; }
8192else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194$as_echo "no" >&6; }
8195fi
8196
8197
8198fi
8199if test -z "$ac_cv_path_OCAMLYACC"; then
8200 ac_pt_OCAMLYACC=$OCAMLYACC
8201 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8202set dummy ocamlyacc; ac_word=$2
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204$as_echo_n "checking for $ac_word... " >&6; }
8205if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207else
8208 case $ac_pt_OCAMLYACC in
8209 [\\/]* | ?:[\\/]*)
8210 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8211 ;;
8212 *)
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214for as_dir in $PATH
8215do
8216 IFS=$as_save_IFS
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8220 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 break 2
8223 fi
8224done
8225 done
8226IFS=$as_save_IFS
8227
8228 ;;
8229esac
8230fi
8231ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8232if test -n "$ac_pt_OCAMLYACC"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8234$as_echo "$ac_pt_OCAMLYACC" >&6; }
8235else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237$as_echo "no" >&6; }
8238fi
8239
8240 if test "x$ac_pt_OCAMLYACC" = x; then
8241 OCAMLYACC="no"
8242 else
8243 case $cross_compiling:$ac_tool_warned in
8244yes:)
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247ac_tool_warned=yes ;;
8248esac
8249 OCAMLYACC=$ac_pt_OCAMLYACC
8250 fi
8251else
8252 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8253fi
8254
8255
8256
8257
8258else
8259 if test -n "$ac_tool_prefix"; then
d6ce1786
C
8260 # Extract the first word of "${ac_tool_prefix}[$]OCAMLYACC", so it can be a program name with args.
8261set dummy ${ac_tool_prefix}$OCAMLYACC; ac_word=$2
feec80c3
C
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263$as_echo_n "checking for $ac_word... " >&6; }
8264if ${ac_cv_path_OCAMLYACC+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266else
8267 case $OCAMLYACC in
8268 [\\/]* | ?:[\\/]*)
8269 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8270 ;;
8271 *)
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8279 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8282 fi
8283done
8284 done
8285IFS=$as_save_IFS
8286
8287 ;;
8288esac
8289fi
8290OCAMLYACC=$ac_cv_path_OCAMLYACC
8291if test -n "$OCAMLYACC"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8293$as_echo "$OCAMLYACC" >&6; }
8294else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296$as_echo "no" >&6; }
8297fi
8298
8299
8300fi
8301if test -z "$ac_cv_path_OCAMLYACC"; then
8302 ac_pt_OCAMLYACC=$OCAMLYACC
d6ce1786
C
8303 # Extract the first word of "[$]OCAMLYACC", so it can be a program name with args.
8304set dummy $OCAMLYACC; ac_word=$2
feec80c3
C
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
8307if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309else
8310 case $ac_pt_OCAMLYACC in
8311 [\\/]* | ?:[\\/]*)
8312 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8313 ;;
8314 *)
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8322 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326done
8327 done
8328IFS=$as_save_IFS
8329
8330 ;;
8331esac
8332fi
8333ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8334if test -n "$ac_pt_OCAMLYACC"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8336$as_echo "$ac_pt_OCAMLYACC" >&6; }
8337else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339$as_echo "no" >&6; }
8340fi
8341
8342 if test "x$ac_pt_OCAMLYACC" = x; then
8343 OCAMLYACC=""
8344 else
8345 case $cross_compiling:$ac_tool_warned in
8346yes:)
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8349ac_tool_warned=yes ;;
8350esac
8351 OCAMLYACC=$ac_pt_OCAMLYACC
8352 fi
8353else
8354 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8355fi
8356
8357
8358fi
8359
8360
8361fi
8362
8363 if test -z "$OCAMLYACC" -o "x$OCAMLYACC" = xno; then :
8364 if test "x$with_OCAMLYACC" = xyes; then :
8365 as_fn_error $? "--with=ocamlyacc is given explicitly but not found" "$LINENO" 5
8366
8367fi
8368
8369 if test -n ""; then :
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc not found. Trying substitute ." >&5
8371$as_echo "$as_me: ocamlyacc not found. Trying substitute ." >&6;}
8372 OCAMLYACC=""
8373
8374 if test "xocamlyacc" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then :
8375
8376
8377if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8378 if test -n "$ac_tool_prefix"; then
8379 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8380set dummy ${ac_tool_prefix}pkg-config; 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; }
8383if ${ac_cv_path_PKG_CONFIG+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385else
8386 case $PKG_CONFIG in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8389 ;;
8390 *)
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392for as_dir in $PATH
8393do
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8398 ac_cv_path_PKG_CONFIG="$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
8402done
8403 done
8404IFS=$as_save_IFS
8405
8406 ;;
8407esac
8408fi
8409PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8410if test -n "$PKG_CONFIG"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8412$as_echo "$PKG_CONFIG" >&6; }
8413else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416fi
8417
8418
8419fi
8420if test -z "$ac_cv_path_PKG_CONFIG"; then
8421 ac_pt_PKG_CONFIG=$PKG_CONFIG
8422 # Extract the first word of "pkg-config", so it can be a program name with args.
8423set dummy pkg-config; ac_word=$2
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425$as_echo_n "checking for $ac_word... " >&6; }
8426if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428else
8429 case $ac_pt_PKG_CONFIG in
8430 [\\/]* | ?:[\\/]*)
8431 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8432 ;;
8433 *)
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8441 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445done
8446 done
8447IFS=$as_save_IFS
8448
8449 ;;
8450esac
8451fi
8452ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8453if test -n "$ac_pt_PKG_CONFIG"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8455$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8456else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458$as_echo "no" >&6; }
8459fi
8460
8461 if test "x$ac_pt_PKG_CONFIG" = x; then
8462 PKG_CONFIG=""
8463 else
8464 case $cross_compiling:$ac_tool_warned in
8465yes:)
8466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468ac_tool_warned=yes ;;
8469esac
8470 PKG_CONFIG=$ac_pt_PKG_CONFIG
8471 fi
8472else
8473 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8474fi
8475
8476fi
8477if test -n "$PKG_CONFIG"; then
8478 _pkg_min_version=0.9.0
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8480$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8481 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8483$as_echo "yes" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486$as_echo "no" >&6; }
8487 PKG_CONFIG=""
8488 fi
8489
8490fi
8491
8492elif test "xocamlyacc" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then :
8493 # checking for ocamllex
8494 if test -n "$ac_tool_prefix"; then
8495 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
8496set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if ${ac_cv_path_OCAMLLEX+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501else
8502 case $OCAMLLEX in
8503 [\\/]* | ?:[\\/]*)
8504 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
8505 ;;
8506 *)
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8514 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518done
8519 done
8520IFS=$as_save_IFS
8521
8522 ;;
8523esac
8524fi
8525OCAMLLEX=$ac_cv_path_OCAMLLEX
8526if test -n "$OCAMLLEX"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
8528$as_echo "$OCAMLLEX" >&6; }
8529else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531$as_echo "no" >&6; }
8532fi
8533
8534
8535fi
8536if test -z "$ac_cv_path_OCAMLLEX"; then
8537 ac_pt_OCAMLLEX=$OCAMLLEX
8538 # Extract the first word of "ocamllex", so it can be a program name with args.
8539set dummy ocamllex; ac_word=$2
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541$as_echo_n "checking for $ac_word... " >&6; }
8542if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8543 $as_echo_n "(cached) " >&6
8544else
8545 case $ac_pt_OCAMLLEX in
8546 [\\/]* | ?:[\\/]*)
8547 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8548 ;;
8549 *)
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551for as_dir in $PATH
8552do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8557 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561done
8562 done
8563IFS=$as_save_IFS
8564
8565 ;;
8566esac
8567fi
8568ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8569if test -n "$ac_pt_OCAMLLEX"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8571$as_echo "$ac_pt_OCAMLLEX" >&6; }
8572else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574$as_echo "no" >&6; }
8575fi
8576
8577 if test "x$ac_pt_OCAMLLEX" = x; then
8578 OCAMLLEX="no"
8579 else
8580 case $cross_compiling:$ac_tool_warned in
8581yes:)
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8584ac_tool_warned=yes ;;
8585esac
8586 OCAMLLEX=$ac_pt_OCAMLLEX
8587 fi
8588else
8589 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8590fi
8591
8592 if test "$OCAMLLEX" != "no"; then
8593 if test -n "$ac_tool_prefix"; then
8594 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
8595set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597$as_echo_n "checking for $ac_word... " >&6; }
8598if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600else
8601 case $OCAMLLEXDOTOPT in
8602 [\\/]* | ?:[\\/]*)
8603 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
8604 ;;
8605 *)
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8613 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8616 fi
8617done
8618 done
8619IFS=$as_save_IFS
8620
8621 ;;
8622esac
8623fi
8624OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
8625if test -n "$OCAMLLEXDOTOPT"; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
8627$as_echo "$OCAMLLEXDOTOPT" >&6; }
8628else
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630$as_echo "no" >&6; }
8631fi
8632
8633
8634fi
8635if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
8636 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
8637 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
8638set dummy ocamllex.opt; ac_word=$2
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640$as_echo_n "checking for $ac_word... " >&6; }
8641if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643else
8644 case $ac_pt_OCAMLLEXDOTOPT in
8645 [\\/]* | ?:[\\/]*)
8646 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
8647 ;;
8648 *)
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650for as_dir in $PATH
8651do
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8656 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 break 2
8659 fi
8660done
8661 done
8662IFS=$as_save_IFS
8663
8664 ;;
8665esac
8666fi
8667ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
8668if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
8670$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
8671else
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673$as_echo "no" >&6; }
8674fi
8675
8676 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
8677 OCAMLLEXDOTOPT="no"
8678 else
8679 case $cross_compiling:$ac_tool_warned in
8680yes:)
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8683ac_tool_warned=yes ;;
8684esac
8685 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
8686 fi
8687else
8688 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
8689fi
8690
8691 if test "$OCAMLLEXDOTOPT" != "no"; then
8692 OCAMLLEX=$OCAMLLEXDOTOPT
8693 fi
8694 fi
8695
8696
8697
8698elif test "xocamlyacc" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then :
8699 if test -n "$ac_tool_prefix"; then
8700 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8701set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703$as_echo_n "checking for $ac_word... " >&6; }
8704if ${ac_cv_path_OCAMLYACC+:} false; then :
8705 $as_echo_n "(cached) " >&6
8706else
8707 case $OCAMLYACC in
8708 [\\/]* | ?:[\\/]*)
8709 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8710 ;;
8711 *)
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8719 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 break 2
8722 fi
8723done
8724 done
8725IFS=$as_save_IFS
8726
8727 ;;
8728esac
8729fi
8730OCAMLYACC=$ac_cv_path_OCAMLYACC
8731if test -n "$OCAMLYACC"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8733$as_echo "$OCAMLYACC" >&6; }
8734else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736$as_echo "no" >&6; }
8737fi
8738
8739
8740fi
8741if test -z "$ac_cv_path_OCAMLYACC"; then
8742 ac_pt_OCAMLYACC=$OCAMLYACC
8743 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8744set dummy ocamlyacc; ac_word=$2
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746$as_echo_n "checking for $ac_word... " >&6; }
8747if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749else
8750 case $ac_pt_OCAMLYACC in
8751 [\\/]* | ?:[\\/]*)
8752 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8753 ;;
8754 *)
8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756for as_dir in $PATH
8757do
8758 IFS=$as_save_IFS
8759 test -z "$as_dir" && as_dir=.
8760 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8762 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8764 break 2
8765 fi
8766done
8767 done
8768IFS=$as_save_IFS
8769
8770 ;;
8771esac
8772fi
8773ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8774if test -n "$ac_pt_OCAMLYACC"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8776$as_echo "$ac_pt_OCAMLYACC" >&6; }
8777else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
8780fi
8781
8782 if test "x$ac_pt_OCAMLYACC" = x; then
8783 OCAMLYACC="no"
8784 else
8785 case $cross_compiling:$ac_tool_warned in
8786yes:)
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8789ac_tool_warned=yes ;;
8790esac
8791 OCAMLYACC=$ac_pt_OCAMLYACC
8792 fi
8793else
8794 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8795fi
8796
8797
8798
8799
8800else
8801 if test -n "$ac_tool_prefix"; then
8802 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8803set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
8806if ${ac_cv_path_OCAMLYACC+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808else
8809 case $OCAMLYACC in
8810 [\\/]* | ?:[\\/]*)
8811 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8812 ;;
8813 *)
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8821 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8824 fi
8825done
8826 done
8827IFS=$as_save_IFS
8828
8829 ;;
8830esac
8831fi
8832OCAMLYACC=$ac_cv_path_OCAMLYACC
8833if test -n "$OCAMLYACC"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8835$as_echo "$OCAMLYACC" >&6; }
8836else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838$as_echo "no" >&6; }
8839fi
8840
8841
8842fi
8843if test -z "$ac_cv_path_OCAMLYACC"; then
8844 ac_pt_OCAMLYACC=$OCAMLYACC
8845 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8846set dummy ocamlyacc; ac_word=$2
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848$as_echo_n "checking for $ac_word... " >&6; }
8849if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851else
8852 case $ac_pt_OCAMLYACC in
8853 [\\/]* | ?:[\\/]*)
8854 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8855 ;;
8856 *)
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858for as_dir in $PATH
8859do
8860 IFS=$as_save_IFS
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8864 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 break 2
8867 fi
8868done
8869 done
8870IFS=$as_save_IFS
8871
8872 ;;
8873esac
8874fi
8875ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8876if test -n "$ac_pt_OCAMLYACC"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8878$as_echo "$ac_pt_OCAMLYACC" >&6; }
8879else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
8882fi
8883
8884 if test "x$ac_pt_OCAMLYACC" = x; then
8885 OCAMLYACC=""
8886 else
8887 case $cross_compiling:$ac_tool_warned in
8888yes:)
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8891ac_tool_warned=yes ;;
8892esac
8893 OCAMLYACC=$ac_pt_OCAMLYACC
8894 fi
8895else
8896 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8897fi
8898
8899
8900fi
8901
8902 SUBSTITUTED_OCAMLYACC=yes
8903
8904
8905fi
8906
8907fi
8908
8909 if test -z "$OCAMLYACC"; then :
8910 OCAMLYACC=no
8911
8912fi
8913
8914
8915
8916# Check whether --with-ocamlfind was given.
8917if test "${with_ocamlfind+set}" = set; then :
8918 withval=$with_ocamlfind;
8919fi
8920
8921 with_OCAMLFIND="$with_ocamlfind"
8922
feec80c3
C
8923 if test -n "$with_OCAMLFIND" -a "x$with_OCAMLFIND" != xno -a "x$with_OCAMLFIND" != xyes; then :
8924 OCAMLFIND="$with_OCAMLFIND"
8925
8926
d6ce1786
C
8927else
8928 OCAMLFIND="ocamlfind"
8929
8930
feec80c3
C
8931fi
8932
d6ce1786
C
8933 if test "x$with_OCAMLFIND" = xno; then :
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind is disabled explicitly" >&5
8935$as_echo "$as_me: ocamlfind is disabled explicitly" >&6;}
8936 OCAMLFIND=no
8937
8938
8939else
8940 if test "x$OCAMLFIND" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then :
feec80c3
C
8941
8942
8943if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8944 if test -n "$ac_tool_prefix"; then
8945 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8946set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948$as_echo_n "checking for $ac_word... " >&6; }
8949if ${ac_cv_path_PKG_CONFIG+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951else
8952 case $PKG_CONFIG in
8953 [\\/]* | ?:[\\/]*)
8954 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8955 ;;
8956 *)
8957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8964 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8967 fi
8968done
8969 done
8970IFS=$as_save_IFS
8971
8972 ;;
8973esac
8974fi
8975PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8976if test -n "$PKG_CONFIG"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8978$as_echo "$PKG_CONFIG" >&6; }
8979else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8981$as_echo "no" >&6; }
8982fi
8983
8984
8985fi
8986if test -z "$ac_cv_path_PKG_CONFIG"; then
8987 ac_pt_PKG_CONFIG=$PKG_CONFIG
8988 # Extract the first word of "pkg-config", so it can be a program name with args.
8989set dummy pkg-config; ac_word=$2
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991$as_echo_n "checking for $ac_word... " >&6; }
8992if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994else
8995 case $ac_pt_PKG_CONFIG in
8996 [\\/]* | ?:[\\/]*)
8997 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8998 ;;
8999 *)
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9007 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9010 fi
9011done
9012 done
9013IFS=$as_save_IFS
9014
9015 ;;
9016esac
9017fi
9018ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9019if test -n "$ac_pt_PKG_CONFIG"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9021$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9022else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024$as_echo "no" >&6; }
9025fi
9026
9027 if test "x$ac_pt_PKG_CONFIG" = x; then
9028 PKG_CONFIG=""
9029 else
9030 case $cross_compiling:$ac_tool_warned in
9031yes:)
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9034ac_tool_warned=yes ;;
9035esac
9036 PKG_CONFIG=$ac_pt_PKG_CONFIG
9037 fi
9038else
9039 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9040fi
9041
9042fi
9043if test -n "$PKG_CONFIG"; then
9044 _pkg_min_version=0.9.0
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9046$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9047 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9049$as_echo "yes" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
9053 PKG_CONFIG=""
9054 fi
9055
9056fi
9057
d6ce1786 9058elif test "x$OCAMLFIND" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then :
feec80c3
C
9059 # checking for ocamllex
9060 if test -n "$ac_tool_prefix"; then
9061 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
9062set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
9065if ${ac_cv_path_OCAMLLEX+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067else
9068 case $OCAMLLEX in
9069 [\\/]* | ?:[\\/]*)
9070 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
9071 ;;
9072 *)
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074for as_dir in $PATH
9075do
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9080 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9083 fi
9084done
9085 done
9086IFS=$as_save_IFS
9087
9088 ;;
9089esac
9090fi
9091OCAMLLEX=$ac_cv_path_OCAMLLEX
9092if test -n "$OCAMLLEX"; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
9094$as_echo "$OCAMLLEX" >&6; }
9095else
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097$as_echo "no" >&6; }
9098fi
9099
9100
9101fi
9102if test -z "$ac_cv_path_OCAMLLEX"; then
9103 ac_pt_OCAMLLEX=$OCAMLLEX
9104 # Extract the first word of "ocamllex", so it can be a program name with args.
9105set dummy ocamllex; ac_word=$2
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107$as_echo_n "checking for $ac_word... " >&6; }
9108if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110else
9111 case $ac_pt_OCAMLLEX in
9112 [\\/]* | ?:[\\/]*)
9113 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
9114 ;;
9115 *)
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117for as_dir in $PATH
9118do
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9123 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9126 fi
9127done
9128 done
9129IFS=$as_save_IFS
9130
9131 ;;
9132esac
9133fi
9134ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
9135if test -n "$ac_pt_OCAMLLEX"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
9137$as_echo "$ac_pt_OCAMLLEX" >&6; }
9138else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140$as_echo "no" >&6; }
9141fi
9142
9143 if test "x$ac_pt_OCAMLLEX" = x; then
9144 OCAMLLEX="no"
9145 else
9146 case $cross_compiling:$ac_tool_warned in
9147yes:)
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150ac_tool_warned=yes ;;
9151esac
9152 OCAMLLEX=$ac_pt_OCAMLLEX
9153 fi
9154else
9155 OCAMLLEX="$ac_cv_path_OCAMLLEX"
9156fi
9157
9158 if test "$OCAMLLEX" != "no"; then
9159 if test -n "$ac_tool_prefix"; then
9160 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
9161set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163$as_echo_n "checking for $ac_word... " >&6; }
9164if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166else
9167 case $OCAMLLEXDOTOPT in
9168 [\\/]* | ?:[\\/]*)
9169 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
9170 ;;
9171 *)
9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173for as_dir in $PATH
9174do
9175 IFS=$as_save_IFS
9176 test -z "$as_dir" && as_dir=.
9177 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9179 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 break 2
9182 fi
9183done
9184 done
9185IFS=$as_save_IFS
9186
9187 ;;
9188esac
9189fi
9190OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
9191if test -n "$OCAMLLEXDOTOPT"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
9193$as_echo "$OCAMLLEXDOTOPT" >&6; }
9194else
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196$as_echo "no" >&6; }
9197fi
9198
9199
9200fi
9201if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
9202 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
9203 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
9204set dummy ocamllex.opt; ac_word=$2
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206$as_echo_n "checking for $ac_word... " >&6; }
9207if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
9208 $as_echo_n "(cached) " >&6
9209else
9210 case $ac_pt_OCAMLLEXDOTOPT in
9211 [\\/]* | ?:[\\/]*)
9212 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
9213 ;;
9214 *)
9215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216for as_dir in $PATH
9217do
9218 IFS=$as_save_IFS
9219 test -z "$as_dir" && as_dir=.
9220 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9222 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224 break 2
9225 fi
9226done
9227 done
9228IFS=$as_save_IFS
9229
9230 ;;
9231esac
9232fi
9233ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
9234if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
9236$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
9237else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239$as_echo "no" >&6; }
9240fi
9241
9242 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
9243 OCAMLLEXDOTOPT="no"
9244 else
9245 case $cross_compiling:$ac_tool_warned in
9246yes:)
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9249ac_tool_warned=yes ;;
9250esac
9251 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
9252 fi
9253else
9254 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
9255fi
9256
9257 if test "$OCAMLLEXDOTOPT" != "no"; then
9258 OCAMLLEX=$OCAMLLEXDOTOPT
9259 fi
9260 fi
9261
9262
9263
d6ce1786 9264elif test "x$OCAMLFIND" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then :
feec80c3
C
9265 if test -n "$ac_tool_prefix"; then
9266 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9267set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269$as_echo_n "checking for $ac_word... " >&6; }
9270if ${ac_cv_path_OCAMLYACC+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272else
9273 case $OCAMLYACC in
9274 [\\/]* | ?:[\\/]*)
9275 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9276 ;;
9277 *)
9278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279for as_dir in $PATH
9280do
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9285 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 break 2
9288 fi
9289done
9290 done
9291IFS=$as_save_IFS
9292
9293 ;;
9294esac
9295fi
9296OCAMLYACC=$ac_cv_path_OCAMLYACC
9297if test -n "$OCAMLYACC"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9299$as_echo "$OCAMLYACC" >&6; }
9300else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303fi
9304
9305
9306fi
9307if test -z "$ac_cv_path_OCAMLYACC"; then
9308 ac_pt_OCAMLYACC=$OCAMLYACC
9309 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9310set dummy ocamlyacc; ac_word=$2
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9312$as_echo_n "checking for $ac_word... " >&6; }
9313if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315else
9316 case $ac_pt_OCAMLYACC in
9317 [\\/]* | ?:[\\/]*)
9318 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9319 ;;
9320 *)
9321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322for as_dir in $PATH
9323do
9324 IFS=$as_save_IFS
9325 test -z "$as_dir" && as_dir=.
9326 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9328 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9330 break 2
9331 fi
9332done
9333 done
9334IFS=$as_save_IFS
9335
9336 ;;
9337esac
9338fi
9339ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9340if test -n "$ac_pt_OCAMLYACC"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9342$as_echo "$ac_pt_OCAMLYACC" >&6; }
9343else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345$as_echo "no" >&6; }
9346fi
9347
9348 if test "x$ac_pt_OCAMLYACC" = x; then
9349 OCAMLYACC="no"
9350 else
9351 case $cross_compiling:$ac_tool_warned in
9352yes:)
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9355ac_tool_warned=yes ;;
9356esac
9357 OCAMLYACC=$ac_pt_OCAMLYACC
9358 fi
9359else
9360 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9361fi
9362
9363
9364
9365
9366else
9367 if test -n "$ac_tool_prefix"; then
d6ce1786
C
9368 # Extract the first word of "${ac_tool_prefix}[$]OCAMLFIND", so it can be a program name with args.
9369set dummy ${ac_tool_prefix}$OCAMLFIND; ac_word=$2
feec80c3
C
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371$as_echo_n "checking for $ac_word... " >&6; }
9372if ${ac_cv_path_OCAMLFIND+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374else
9375 case $OCAMLFIND in
9376 [\\/]* | ?:[\\/]*)
9377 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
9378 ;;
9379 *)
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381for as_dir in $PATH
9382do
9383 IFS=$as_save_IFS
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9387 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
9388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389 break 2
9390 fi
9391done
9392 done
9393IFS=$as_save_IFS
9394
9395 ;;
9396esac
9397fi
9398OCAMLFIND=$ac_cv_path_OCAMLFIND
9399if test -n "$OCAMLFIND"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
9401$as_echo "$OCAMLFIND" >&6; }
9402else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404$as_echo "no" >&6; }
9405fi
9406
9407
9408fi
9409if test -z "$ac_cv_path_OCAMLFIND"; then
9410 ac_pt_OCAMLFIND=$OCAMLFIND
d6ce1786
C
9411 # Extract the first word of "[$]OCAMLFIND", so it can be a program name with args.
9412set dummy $OCAMLFIND; ac_word=$2
feec80c3
C
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9414$as_echo_n "checking for $ac_word... " >&6; }
9415if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then :
9416 $as_echo_n "(cached) " >&6
9417else
9418 case $ac_pt_OCAMLFIND in
9419 [\\/]* | ?:[\\/]*)
9420 ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path.
9421 ;;
9422 *)
9423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424for as_dir in $PATH
9425do
9426 IFS=$as_save_IFS
9427 test -z "$as_dir" && as_dir=.
9428 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9430 ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
9431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9432 break 2
9433 fi
9434done
9435 done
9436IFS=$as_save_IFS
9437
9438 ;;
9439esac
9440fi
9441ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND
9442if test -n "$ac_pt_OCAMLFIND"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5
9444$as_echo "$ac_pt_OCAMLFIND" >&6; }
9445else
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447$as_echo "no" >&6; }
9448fi
9449
9450 if test "x$ac_pt_OCAMLFIND" = x; then
9451 OCAMLFIND=""
9452 else
9453 case $cross_compiling:$ac_tool_warned in
9454yes:)
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9457ac_tool_warned=yes ;;
9458esac
9459 OCAMLFIND=$ac_pt_OCAMLFIND
9460 fi
9461else
9462 OCAMLFIND="$ac_cv_path_OCAMLFIND"
9463fi
9464
9465
9466fi
9467
9468
9469fi
9470
9471 if test -z "$OCAMLFIND" -o "x$OCAMLFIND" = xno; then :
9472 if test "x$with_OCAMLFIND" = xyes; then :
9473 as_fn_error $? "--with=ocamlfind is given explicitly but not found" "$LINENO" 5
9474
9475fi
9476
9477 if test -n "$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"; then :
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&5
9479$as_echo "$as_me: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&6;}
9480 OCAMLFIND="$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"
9481
9482 if test "xocamlfind" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then :
9483
9484
9485if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9486 if test -n "$ac_tool_prefix"; then
9487 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9488set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490$as_echo_n "checking for $ac_word... " >&6; }
9491if ${ac_cv_path_PKG_CONFIG+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493else
9494 case $PKG_CONFIG in
9495 [\\/]* | ?:[\\/]*)
9496 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9497 ;;
9498 *)
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9506 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9509 fi
9510done
9511 done
9512IFS=$as_save_IFS
9513
9514 ;;
9515esac
9516fi
9517PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9518if test -n "$PKG_CONFIG"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9520$as_echo "$PKG_CONFIG" >&6; }
9521else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523$as_echo "no" >&6; }
9524fi
9525
9526
9527fi
9528if test -z "$ac_cv_path_PKG_CONFIG"; then
9529 ac_pt_PKG_CONFIG=$PKG_CONFIG
9530 # Extract the first word of "pkg-config", so it can be a program name with args.
9531set dummy pkg-config; ac_word=$2
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533$as_echo_n "checking for $ac_word... " >&6; }
9534if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536else
9537 case $ac_pt_PKG_CONFIG in
9538 [\\/]* | ?:[\\/]*)
9539 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9540 ;;
9541 *)
9542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543for as_dir in $PATH
9544do
9545 IFS=$as_save_IFS
9546 test -z "$as_dir" && as_dir=.
9547 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9549 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 break 2
9552 fi
9553done
9554 done
9555IFS=$as_save_IFS
9556
9557 ;;
9558esac
9559fi
9560ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9561if test -n "$ac_pt_PKG_CONFIG"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9563$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9564else
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566$as_echo "no" >&6; }
9567fi
9568
9569 if test "x$ac_pt_PKG_CONFIG" = x; then
9570 PKG_CONFIG=""
9571 else
9572 case $cross_compiling:$ac_tool_warned in
9573yes:)
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9576ac_tool_warned=yes ;;
9577esac
9578 PKG_CONFIG=$ac_pt_PKG_CONFIG
9579 fi
9580else
9581 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9582fi
9583
9584fi
9585if test -n "$PKG_CONFIG"; then
9586 _pkg_min_version=0.9.0
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9588$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9589 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9591$as_echo "yes" >&6; }
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594$as_echo "no" >&6; }
9595 PKG_CONFIG=""
9596 fi
9597
9598fi
9599
9600elif test "xocamlfind" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then :
9601 # checking for ocamllex
9602 if test -n "$ac_tool_prefix"; then
9603 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
9604set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9606$as_echo_n "checking for $ac_word... " >&6; }
9607if ${ac_cv_path_OCAMLLEX+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609else
9610 case $OCAMLLEX in
9611 [\\/]* | ?:[\\/]*)
9612 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
9613 ;;
9614 *)
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616for as_dir in $PATH
9617do
9618 IFS=$as_save_IFS
9619 test -z "$as_dir" && as_dir=.
9620 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9622 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9624 break 2
9625 fi
9626done
9627 done
9628IFS=$as_save_IFS
9629
9630 ;;
9631esac
9632fi
9633OCAMLLEX=$ac_cv_path_OCAMLLEX
9634if test -n "$OCAMLLEX"; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
9636$as_echo "$OCAMLLEX" >&6; }
9637else
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639$as_echo "no" >&6; }
9640fi
9641
9642
9643fi
9644if test -z "$ac_cv_path_OCAMLLEX"; then
9645 ac_pt_OCAMLLEX=$OCAMLLEX
9646 # Extract the first word of "ocamllex", so it can be a program name with args.
9647set dummy ocamllex; ac_word=$2
9648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649$as_echo_n "checking for $ac_word... " >&6; }
9650if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652else
9653 case $ac_pt_OCAMLLEX in
9654 [\\/]* | ?:[\\/]*)
9655 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
9656 ;;
9657 *)
9658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9659for as_dir in $PATH
9660do
9661 IFS=$as_save_IFS
9662 test -z "$as_dir" && as_dir=.
9663 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9665 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9667 break 2
9668 fi
9669done
9670 done
9671IFS=$as_save_IFS
9672
9673 ;;
9674esac
9675fi
9676ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
9677if test -n "$ac_pt_OCAMLLEX"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
9679$as_echo "$ac_pt_OCAMLLEX" >&6; }
9680else
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682$as_echo "no" >&6; }
9683fi
9684
9685 if test "x$ac_pt_OCAMLLEX" = x; then
9686 OCAMLLEX="no"
9687 else
9688 case $cross_compiling:$ac_tool_warned in
9689yes:)
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9692ac_tool_warned=yes ;;
9693esac
9694 OCAMLLEX=$ac_pt_OCAMLLEX
9695 fi
9696else
9697 OCAMLLEX="$ac_cv_path_OCAMLLEX"
9698fi
9699
9700 if test "$OCAMLLEX" != "no"; then
9701 if test -n "$ac_tool_prefix"; then
9702 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
9703set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705$as_echo_n "checking for $ac_word... " >&6; }
9706if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
9707 $as_echo_n "(cached) " >&6
9708else
9709 case $OCAMLLEXDOTOPT in
9710 [\\/]* | ?:[\\/]*)
9711 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
9712 ;;
9713 *)
9714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715for as_dir in $PATH
9716do
9717 IFS=$as_save_IFS
9718 test -z "$as_dir" && as_dir=.
9719 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9721 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 break 2
9724 fi
9725done
9726 done
9727IFS=$as_save_IFS
9728
9729 ;;
9730esac
9731fi
9732OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
9733if test -n "$OCAMLLEXDOTOPT"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
9735$as_echo "$OCAMLLEXDOTOPT" >&6; }
9736else
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738$as_echo "no" >&6; }
9739fi
9740
9741
9742fi
9743if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
9744 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
9745 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
9746set dummy ocamllex.opt; ac_word=$2
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748$as_echo_n "checking for $ac_word... " >&6; }
9749if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751else
9752 case $ac_pt_OCAMLLEXDOTOPT in
9753 [\\/]* | ?:[\\/]*)
9754 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
9755 ;;
9756 *)
9757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758for as_dir in $PATH
9759do
9760 IFS=$as_save_IFS
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9764 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 break 2
9767 fi
9768done
9769 done
9770IFS=$as_save_IFS
9771
9772 ;;
9773esac
9774fi
9775ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
9776if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
9778$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
9779else
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781$as_echo "no" >&6; }
9782fi
9783
9784 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
9785 OCAMLLEXDOTOPT="no"
9786 else
9787 case $cross_compiling:$ac_tool_warned in
9788yes:)
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9791ac_tool_warned=yes ;;
9792esac
9793 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
9794 fi
9795else
9796 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
9797fi
9798
9799 if test "$OCAMLLEXDOTOPT" != "no"; then
9800 OCAMLLEX=$OCAMLLEXDOTOPT
9801 fi
9802 fi
9803
9804
9805
9806elif test "xocamlfind" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then :
9807 if test -n "$ac_tool_prefix"; then
9808 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9809set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811$as_echo_n "checking for $ac_word... " >&6; }
9812if ${ac_cv_path_OCAMLYACC+:} false; then :
9813 $as_echo_n "(cached) " >&6
9814else
9815 case $OCAMLYACC in
9816 [\\/]* | ?:[\\/]*)
9817 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9818 ;;
9819 *)
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9827 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9830 fi
9831done
9832 done
9833IFS=$as_save_IFS
9834
9835 ;;
9836esac
9837fi
9838OCAMLYACC=$ac_cv_path_OCAMLYACC
9839if test -n "$OCAMLYACC"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9841$as_echo "$OCAMLYACC" >&6; }
9842else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
9845fi
9846
9847
9848fi
9849if test -z "$ac_cv_path_OCAMLYACC"; then
9850 ac_pt_OCAMLYACC=$OCAMLYACC
9851 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9852set dummy ocamlyacc; ac_word=$2
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854$as_echo_n "checking for $ac_word... " >&6; }
9855if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857else
9858 case $ac_pt_OCAMLYACC in
9859 [\\/]* | ?:[\\/]*)
9860 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9861 ;;
9862 *)
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864for as_dir in $PATH
9865do
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9870 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9873 fi
9874done
9875 done
9876IFS=$as_save_IFS
9877
9878 ;;
9879esac
9880fi
9881ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9882if test -n "$ac_pt_OCAMLYACC"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9884$as_echo "$ac_pt_OCAMLYACC" >&6; }
9885else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
9888fi
9889
9890 if test "x$ac_pt_OCAMLYACC" = x; then
9891 OCAMLYACC="no"
9892 else
9893 case $cross_compiling:$ac_tool_warned in
9894yes:)
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9897ac_tool_warned=yes ;;
9898esac
9899 OCAMLYACC=$ac_pt_OCAMLYACC
9900 fi
9901else
9902 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9903fi
9904
9905
9906
9907
9908else
9909 if test -n "$ac_tool_prefix"; then
9910 # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args.
9911set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913$as_echo_n "checking for $ac_word... " >&6; }
9914if ${ac_cv_path_OCAMLFIND+:} false; then :
9915 $as_echo_n "(cached) " >&6
9916else
9917 case $OCAMLFIND in
9918 [\\/]* | ?:[\\/]*)
9919 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
9920 ;;
9921 *)
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $PATH
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9929 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933done
9934 done
9935IFS=$as_save_IFS
9936
9937 ;;
9938esac
9939fi
9940OCAMLFIND=$ac_cv_path_OCAMLFIND
9941if test -n "$OCAMLFIND"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
9943$as_echo "$OCAMLFIND" >&6; }
9944else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
9947fi
9948
9949
9950fi
9951if test -z "$ac_cv_path_OCAMLFIND"; then
9952 ac_pt_OCAMLFIND=$OCAMLFIND
9953 # Extract the first word of "ocamlfind", so it can be a program name with args.
9954set dummy ocamlfind; ac_word=$2
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956$as_echo_n "checking for $ac_word... " >&6; }
9957if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959else
9960 case $ac_pt_OCAMLFIND in
9961 [\\/]* | ?:[\\/]*)
9962 ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path.
9963 ;;
9964 *)
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966for as_dir in $PATH
9967do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9972 ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974 break 2
9975 fi
9976done
9977 done
9978IFS=$as_save_IFS
9979
9980 ;;
9981esac
9982fi
9983ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND
9984if test -n "$ac_pt_OCAMLFIND"; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5
9986$as_echo "$ac_pt_OCAMLFIND" >&6; }
9987else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989$as_echo "no" >&6; }
9990fi
9991
9992 if test "x$ac_pt_OCAMLFIND" = x; then
9993 OCAMLFIND=""
9994 else
9995 case $cross_compiling:$ac_tool_warned in
9996yes:)
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9999ac_tool_warned=yes ;;
10000esac
10001 OCAMLFIND=$ac_pt_OCAMLFIND
10002 fi
10003else
10004 OCAMLFIND="$ac_cv_path_OCAMLFIND"
10005fi
10006
10007
10008fi
10009
10010 SUBSTITUTED_OCAMLFIND=yes
10011
10012
10013fi
10014
10015fi
10016
10017 if test -z "$OCAMLFIND"; then :
10018 OCAMLFIND=no
10019
10020fi
10021
10022
feec80c3 10023
755320b0
C
10024# Check whether --with-ocamlprof was given.
10025if test "${with_ocamlprof+set}" = set; then :
10026 withval=$with_ocamlprof;
feec80c3
C
10027fi
10028
755320b0 10029 with_OCAMLPROF="$with_ocamlprof"
feec80c3 10030
755320b0
C
10031 if test -n "$with_OCAMLPROF" -a "x$with_OCAMLPROF" != xno -a "x$with_OCAMLPROF" != xyes; then :
10032 OCAMLPROF="$with_OCAMLPROF"
feec80c3 10033
feec80c3 10034
755320b0
C
10035else
10036 OCAMLPROF="ocamlprof"
feec80c3
C
10037
10038
feec80c3
C
10039fi
10040
755320b0
C
10041 if test "x$with_OCAMLPROF" = xno; then :
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlprof is disabled explicitly" >&5
10043$as_echo "$as_me: ocamlprof is disabled explicitly" >&6;}
10044 OCAMLPROF=no
feec80c3
C
10045
10046
755320b0
C
10047else
10048 if test "x$OCAMLPROF" = xpkg-config -a "xOCAMLPROF" = xPKG_CONFIG; then :
feec80c3
C
10049
10050
755320b0
C
10051if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10052 if test -n "$ac_tool_prefix"; then
10053 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10054set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056$as_echo_n "checking for $ac_word... " >&6; }
10057if ${ac_cv_path_PKG_CONFIG+:} false; then :
10058 $as_echo_n "(cached) " >&6
feec80c3 10059else
755320b0
C
10060 case $PKG_CONFIG in
10061 [\\/]* | ?:[\\/]*)
10062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10063 ;;
10064 *)
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066for as_dir in $PATH
10067do
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10072 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10075 fi
10076done
10077 done
10078IFS=$as_save_IFS
feec80c3 10079
755320b0
C
10080 ;;
10081esac
feec80c3 10082fi
755320b0
C
10083PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10084if test -n "$PKG_CONFIG"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10086$as_echo "$PKG_CONFIG" >&6; }
10087else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089$as_echo "no" >&6; }
feec80c3
C
10090fi
10091
10092
feec80c3 10093fi
755320b0
C
10094if test -z "$ac_cv_path_PKG_CONFIG"; then
10095 ac_pt_PKG_CONFIG=$PKG_CONFIG
10096 # Extract the first word of "pkg-config", so it can be a program name with args.
10097set dummy pkg-config; ac_word=$2
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099$as_echo_n "checking for $ac_word... " >&6; }
10100if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10101 $as_echo_n "(cached) " >&6
feec80c3 10102else
755320b0
C
10103 case $ac_pt_PKG_CONFIG in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10106 ;;
10107 *)
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109for as_dir in $PATH
10110do
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10115 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10118 fi
10119done
10120 done
10121IFS=$as_save_IFS
feec80c3 10122
755320b0
C
10123 ;;
10124esac
feec80c3 10125fi
755320b0
C
10126ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10127if test -n "$ac_pt_PKG_CONFIG"; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10129$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10130else
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132$as_echo "no" >&6; }
feec80c3
C
10133fi
10134
755320b0
C
10135 if test "x$ac_pt_PKG_CONFIG" = x; then
10136 PKG_CONFIG=""
10137 else
10138 case $cross_compiling:$ac_tool_warned in
10139yes:)
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10142ac_tool_warned=yes ;;
10143esac
10144 PKG_CONFIG=$ac_pt_PKG_CONFIG
10145 fi
10146else
10147 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
feec80c3
C
10148fi
10149
755320b0
C
10150fi
10151if test -n "$PKG_CONFIG"; then
10152 _pkg_min_version=0.9.0
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10154$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10155 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10157$as_echo "yes" >&6; }
10158 else
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160$as_echo "no" >&6; }
10161 PKG_CONFIG=""
10162 fi
feec80c3 10163
755320b0 10164fi
feec80c3 10165
755320b0
C
10166elif test "x$OCAMLPROF" = xocamllex -a "xOCAMLPROF" = xOCAMLLEX; then :
10167 # checking for ocamllex
10168 if test -n "$ac_tool_prefix"; then
10169 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
10170set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172$as_echo_n "checking for $ac_word... " >&6; }
10173if ${ac_cv_path_OCAMLLEX+:} false; then :
10174 $as_echo_n "(cached) " >&6
feec80c3 10175else
755320b0
C
10176 case $OCAMLLEX in
10177 [\\/]* | ?:[\\/]*)
10178 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
10179 ;;
10180 *)
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10188 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10191 fi
10192done
10193 done
10194IFS=$as_save_IFS
feec80c3 10195
755320b0
C
10196 ;;
10197esac
feec80c3 10198fi
755320b0
C
10199OCAMLLEX=$ac_cv_path_OCAMLLEX
10200if test -n "$OCAMLLEX"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
10202$as_echo "$OCAMLLEX" >&6; }
10203else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205$as_echo "no" >&6; }
feec80c3
C
10206fi
10207
10208
feec80c3 10209fi
755320b0
C
10210if test -z "$ac_cv_path_OCAMLLEX"; then
10211 ac_pt_OCAMLLEX=$OCAMLLEX
10212 # Extract the first word of "ocamllex", so it can be a program name with args.
10213set dummy ocamllex; ac_word=$2
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215$as_echo_n "checking for $ac_word... " >&6; }
10216if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
10217 $as_echo_n "(cached) " >&6
feec80c3 10218else
755320b0
C
10219 case $ac_pt_OCAMLLEX in
10220 [\\/]* | ?:[\\/]*)
10221 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
10222 ;;
10223 *)
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225for as_dir in $PATH
10226do
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10234 fi
10235done
10236 done
10237IFS=$as_save_IFS
feec80c3 10238
755320b0
C
10239 ;;
10240esac
feec80c3 10241fi
755320b0
C
10242ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
10243if test -n "$ac_pt_OCAMLLEX"; then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
10245$as_echo "$ac_pt_OCAMLLEX" >&6; }
10246else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248$as_echo "no" >&6; }
feec80c3
C
10249fi
10250
755320b0
C
10251 if test "x$ac_pt_OCAMLLEX" = x; then
10252 OCAMLLEX="no"
10253 else
10254 case $cross_compiling:$ac_tool_warned in
10255yes:)
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10258ac_tool_warned=yes ;;
10259esac
10260 OCAMLLEX=$ac_pt_OCAMLLEX
10261 fi
10262else
10263 OCAMLLEX="$ac_cv_path_OCAMLLEX"
10264fi
10265
10266 if test "$OCAMLLEX" != "no"; then
10267 if test -n "$ac_tool_prefix"; then
10268 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
10269set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271$as_echo_n "checking for $ac_word... " >&6; }
10272if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274else
10275 case $OCAMLLEXDOTOPT in
10276 [\\/]* | ?:[\\/]*)
10277 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
10278 ;;
10279 *)
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281for as_dir in $PATH
10282do
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 break 2
10290 fi
10291done
10292 done
10293IFS=$as_save_IFS
10294
10295 ;;
10296esac
10297fi
10298OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
10299if test -n "$OCAMLLEXDOTOPT"; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
10301$as_echo "$OCAMLLEXDOTOPT" >&6; }
10302else
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304$as_echo "no" >&6; }
10305fi
10306
10307
10308fi
10309if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
10310 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
10311 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
10312set dummy ocamllex.opt; ac_word=$2
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314$as_echo_n "checking for $ac_word... " >&6; }
10315if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317else
10318 case $ac_pt_OCAMLLEXDOTOPT in
10319 [\\/]* | ?:[\\/]*)
10320 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
10321 ;;
10322 *)
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334done
10335 done
10336IFS=$as_save_IFS
10337
10338 ;;
10339esac
10340fi
10341ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
10342if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
10344$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
10345else
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347$as_echo "no" >&6; }
10348fi
10349
10350 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
10351 OCAMLLEXDOTOPT="no"
10352 else
10353 case $cross_compiling:$ac_tool_warned in
10354yes:)
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10357ac_tool_warned=yes ;;
10358esac
10359 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
10360 fi
10361else
10362 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
10363fi
10364
10365 if test "$OCAMLLEXDOTOPT" != "no"; then
10366 OCAMLLEX=$OCAMLLEXDOTOPT
10367 fi
10368 fi
10369
10370
10371
10372elif test "x$OCAMLPROF" = xocamlyacc -a "xOCAMLPROF" = xOCAMLYACC; then :
10373 if test -n "$ac_tool_prefix"; then
10374 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
10375set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10377$as_echo_n "checking for $ac_word... " >&6; }
10378if ${ac_cv_path_OCAMLYACC+:} false; then :
10379 $as_echo_n "(cached) " >&6
10380else
10381 case $OCAMLYACC in
10382 [\\/]* | ?:[\\/]*)
10383 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
10384 ;;
10385 *)
10386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387for as_dir in $PATH
10388do
10389 IFS=$as_save_IFS
10390 test -z "$as_dir" && as_dir=.
10391 for ac_exec_ext in '' $ac_executable_extensions; do
10392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10393 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
10394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10395 break 2
10396 fi
10397done
10398 done
10399IFS=$as_save_IFS
10400
10401 ;;
10402esac
10403fi
10404OCAMLYACC=$ac_cv_path_OCAMLYACC
10405if test -n "$OCAMLYACC"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
10407$as_echo "$OCAMLYACC" >&6; }
10408else
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410$as_echo "no" >&6; }
10411fi
10412
10413
10414fi
10415if test -z "$ac_cv_path_OCAMLYACC"; then
10416 ac_pt_OCAMLYACC=$OCAMLYACC
10417 # Extract the first word of "ocamlyacc", so it can be a program name with args.
10418set dummy ocamlyacc; ac_word=$2
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420$as_echo_n "checking for $ac_word... " >&6; }
10421if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423else
10424 case $ac_pt_OCAMLYACC in
10425 [\\/]* | ?:[\\/]*)
10426 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
10427 ;;
10428 *)
10429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10436 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440done
10441 done
10442IFS=$as_save_IFS
10443
10444 ;;
10445esac
10446fi
10447ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
10448if test -n "$ac_pt_OCAMLYACC"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
10450$as_echo "$ac_pt_OCAMLYACC" >&6; }
10451else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453$as_echo "no" >&6; }
10454fi
10455
10456 if test "x$ac_pt_OCAMLYACC" = x; then
10457 OCAMLYACC="no"
10458 else
10459 case $cross_compiling:$ac_tool_warned in
10460yes:)
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10463ac_tool_warned=yes ;;
10464esac
10465 OCAMLYACC=$ac_pt_OCAMLYACC
10466 fi
10467else
10468 OCAMLYACC="$ac_cv_path_OCAMLYACC"
10469fi
10470
10471
10472
10473
10474else
10475 if test -n "$ac_tool_prefix"; then
10476 # Extract the first word of "${ac_tool_prefix}[$]OCAMLPROF", so it can be a program name with args.
10477set dummy ${ac_tool_prefix}$OCAMLPROF; ac_word=$2
10478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479$as_echo_n "checking for $ac_word... " >&6; }
10480if ${ac_cv_path_OCAMLPROF+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482else
10483 case $OCAMLPROF in
10484 [\\/]* | ?:[\\/]*)
10485 ac_cv_path_OCAMLPROF="$OCAMLPROF" # Let the user override the test with a path.
10486 ;;
10487 *)
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489for as_dir in $PATH
10490do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10495 ac_cv_path_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499done
10500 done
10501IFS=$as_save_IFS
10502
10503 ;;
10504esac
10505fi
10506OCAMLPROF=$ac_cv_path_OCAMLPROF
10507if test -n "$OCAMLPROF"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLPROF" >&5
10509$as_echo "$OCAMLPROF" >&6; }
10510else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512$as_echo "no" >&6; }
10513fi
10514
10515
10516fi
10517if test -z "$ac_cv_path_OCAMLPROF"; then
10518 ac_pt_OCAMLPROF=$OCAMLPROF
10519 # Extract the first word of "[$]OCAMLPROF", so it can be a program name with args.
10520set dummy $OCAMLPROF; ac_word=$2
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522$as_echo_n "checking for $ac_word... " >&6; }
10523if ${ac_cv_path_ac_pt_OCAMLPROF+:} false; then :
10524 $as_echo_n "(cached) " >&6
10525else
10526 case $ac_pt_OCAMLPROF in
10527 [\\/]* | ?:[\\/]*)
10528 ac_cv_path_ac_pt_OCAMLPROF="$ac_pt_OCAMLPROF" # Let the user override the test with a path.
10529 ;;
10530 *)
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_path_ac_pt_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
10543 done
10544IFS=$as_save_IFS
10545
10546 ;;
10547esac
10548fi
10549ac_pt_OCAMLPROF=$ac_cv_path_ac_pt_OCAMLPROF
10550if test -n "$ac_pt_OCAMLPROF"; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLPROF" >&5
10552$as_echo "$ac_pt_OCAMLPROF" >&6; }
10553else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555$as_echo "no" >&6; }
10556fi
10557
10558 if test "x$ac_pt_OCAMLPROF" = x; then
10559 OCAMLPROF=""
10560 else
10561 case $cross_compiling:$ac_tool_warned in
10562yes:)
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10565ac_tool_warned=yes ;;
10566esac
10567 OCAMLPROF=$ac_pt_OCAMLPROF
10568 fi
10569else
10570 OCAMLPROF="$ac_cv_path_OCAMLPROF"
10571fi
10572
10573
10574fi
10575
10576
10577fi
10578
10579 if test -z "$OCAMLPROF" -o "x$OCAMLPROF" = xno; then :
10580 if test "x$with_OCAMLPROF" = xyes; then :
10581 as_fn_error $? "--with=ocamlprof is given explicitly but not found" "$LINENO" 5
10582
10583fi
10584
10585 if test -n ""; then :
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlprof not found. Trying substitute ." >&5
10587$as_echo "$as_me: ocamlprof not found. Trying substitute ." >&6;}
10588 OCAMLPROF=""
10589
10590 if test "xocamlprof" = xpkg-config -a "xOCAMLPROF" = xPKG_CONFIG; then :
10591
10592
10593if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10594 if test -n "$ac_tool_prefix"; then
10595 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10596set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598$as_echo_n "checking for $ac_word... " >&6; }
10599if ${ac_cv_path_PKG_CONFIG+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601else
10602 case $PKG_CONFIG in
10603 [\\/]* | ?:[\\/]*)
10604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10605 ;;
10606 *)
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608for as_dir in $PATH
10609do
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 break 2
10617 fi
10618done
10619 done
10620IFS=$as_save_IFS
10621
10622 ;;
10623esac
10624fi
10625PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10626if test -n "$PKG_CONFIG"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10628$as_echo "$PKG_CONFIG" >&6; }
10629else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631$as_echo "no" >&6; }
10632fi
10633
10634
10635fi
10636if test -z "$ac_cv_path_PKG_CONFIG"; then
10637 ac_pt_PKG_CONFIG=$PKG_CONFIG
10638 # Extract the first word of "pkg-config", so it can be a program name with args.
10639set dummy pkg-config; ac_word=$2
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641$as_echo_n "checking for $ac_word... " >&6; }
10642if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644else
10645 case $ac_pt_PKG_CONFIG in
10646 [\\/]* | ?:[\\/]*)
10647 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10648 ;;
10649 *)
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651for as_dir in $PATH
10652do
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10660 fi
10661done
10662 done
10663IFS=$as_save_IFS
10664
10665 ;;
10666esac
10667fi
10668ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10669if test -n "$ac_pt_PKG_CONFIG"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10671$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10672else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
10675fi
10676
10677 if test "x$ac_pt_PKG_CONFIG" = x; then
10678 PKG_CONFIG=""
10679 else
10680 case $cross_compiling:$ac_tool_warned in
10681yes:)
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10684ac_tool_warned=yes ;;
10685esac
10686 PKG_CONFIG=$ac_pt_PKG_CONFIG
10687 fi
10688else
10689 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10690fi
10691
10692fi
10693if test -n "$PKG_CONFIG"; then
10694 _pkg_min_version=0.9.0
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10696$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10697 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10699$as_echo "yes" >&6; }
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702$as_echo "no" >&6; }
10703 PKG_CONFIG=""
10704 fi
10705
10706fi
10707
10708elif test "xocamlprof" = xocamllex -a "xOCAMLPROF" = xOCAMLLEX; then :
10709 # checking for ocamllex
10710 if test -n "$ac_tool_prefix"; then
10711 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
10712set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714$as_echo_n "checking for $ac_word... " >&6; }
10715if ${ac_cv_path_OCAMLLEX+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717else
10718 case $OCAMLLEX in
10719 [\\/]* | ?:[\\/]*)
10720 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
10721 ;;
10722 *)
10723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10724for as_dir in $PATH
10725do
10726 IFS=$as_save_IFS
10727 test -z "$as_dir" && as_dir=.
10728 for ac_exec_ext in '' $ac_executable_extensions; do
10729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10730 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10732 break 2
10733 fi
10734done
10735 done
10736IFS=$as_save_IFS
10737
10738 ;;
10739esac
10740fi
10741OCAMLLEX=$ac_cv_path_OCAMLLEX
10742if test -n "$OCAMLLEX"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
10744$as_echo "$OCAMLLEX" >&6; }
10745else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747$as_echo "no" >&6; }
10748fi
10749
10750
10751fi
10752if test -z "$ac_cv_path_OCAMLLEX"; then
10753 ac_pt_OCAMLLEX=$OCAMLLEX
10754 # Extract the first word of "ocamllex", so it can be a program name with args.
10755set dummy ocamllex; ac_word=$2
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757$as_echo_n "checking for $ac_word... " >&6; }
10758if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
10759 $as_echo_n "(cached) " >&6
10760else
10761 case $ac_pt_OCAMLLEX in
10762 [\\/]* | ?:[\\/]*)
10763 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
10764 ;;
10765 *)
10766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767for as_dir in $PATH
10768do
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10773 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 break 2
10776 fi
10777done
10778 done
10779IFS=$as_save_IFS
10780
10781 ;;
10782esac
10783fi
10784ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
10785if test -n "$ac_pt_OCAMLLEX"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
10787$as_echo "$ac_pt_OCAMLLEX" >&6; }
10788else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
10791fi
10792
10793 if test "x$ac_pt_OCAMLLEX" = x; then
10794 OCAMLLEX="no"
10795 else
10796 case $cross_compiling:$ac_tool_warned in
10797yes:)
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10800ac_tool_warned=yes ;;
10801esac
10802 OCAMLLEX=$ac_pt_OCAMLLEX
10803 fi
10804else
10805 OCAMLLEX="$ac_cv_path_OCAMLLEX"
10806fi
10807
10808 if test "$OCAMLLEX" != "no"; then
10809 if test -n "$ac_tool_prefix"; then
10810 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
10811set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10813$as_echo_n "checking for $ac_word... " >&6; }
10814if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
10815 $as_echo_n "(cached) " >&6
10816else
10817 case $OCAMLLEXDOTOPT in
10818 [\\/]* | ?:[\\/]*)
10819 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
10820 ;;
10821 *)
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823for as_dir in $PATH
10824do
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831 break 2
10832 fi
10833done
10834 done
10835IFS=$as_save_IFS
10836
10837 ;;
10838esac
10839fi
10840OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
10841if test -n "$OCAMLLEXDOTOPT"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
10843$as_echo "$OCAMLLEXDOTOPT" >&6; }
10844else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846$as_echo "no" >&6; }
10847fi
10848
10849
10850fi
10851if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
10852 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
10853 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
10854set dummy ocamllex.opt; ac_word=$2
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856$as_echo_n "checking for $ac_word... " >&6; }
10857if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859else
10860 case $ac_pt_OCAMLLEXDOTOPT in
10861 [\\/]* | ?:[\\/]*)
10862 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
10863 ;;
10864 *)
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10872 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10875 fi
10876done
10877 done
10878IFS=$as_save_IFS
10879
10880 ;;
10881esac
10882fi
10883ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
10884if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
10886$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
10887else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889$as_echo "no" >&6; }
10890fi
10891
10892 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
10893 OCAMLLEXDOTOPT="no"
10894 else
10895 case $cross_compiling:$ac_tool_warned in
10896yes:)
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10899ac_tool_warned=yes ;;
10900esac
10901 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
10902 fi
10903else
10904 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
10905fi
10906
10907 if test "$OCAMLLEXDOTOPT" != "no"; then
10908 OCAMLLEX=$OCAMLLEXDOTOPT
10909 fi
10910 fi
10911
10912
10913
10914elif test "xocamlprof" = xocamlyacc -a "xOCAMLPROF" = xOCAMLYACC; then :
10915 if test -n "$ac_tool_prefix"; then
10916 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
10917set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919$as_echo_n "checking for $ac_word... " >&6; }
10920if ${ac_cv_path_OCAMLYACC+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922else
10923 case $OCAMLYACC in
10924 [\\/]* | ?:[\\/]*)
10925 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
10926 ;;
10927 *)
10928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929for as_dir in $PATH
10930do
10931 IFS=$as_save_IFS
10932 test -z "$as_dir" && as_dir=.
10933 for ac_exec_ext in '' $ac_executable_extensions; do
10934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10935 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
10936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10937 break 2
10938 fi
10939done
10940 done
10941IFS=$as_save_IFS
10942
10943 ;;
10944esac
10945fi
10946OCAMLYACC=$ac_cv_path_OCAMLYACC
10947if test -n "$OCAMLYACC"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
10949$as_echo "$OCAMLYACC" >&6; }
10950else
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952$as_echo "no" >&6; }
10953fi
10954
10955
10956fi
10957if test -z "$ac_cv_path_OCAMLYACC"; then
10958 ac_pt_OCAMLYACC=$OCAMLYACC
10959 # Extract the first word of "ocamlyacc", so it can be a program name with args.
10960set dummy ocamlyacc; ac_word=$2
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962$as_echo_n "checking for $ac_word... " >&6; }
10963if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965else
10966 case $ac_pt_OCAMLYACC in
10967 [\\/]* | ?:[\\/]*)
10968 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
10969 ;;
10970 *)
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972for as_dir in $PATH
10973do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10981 fi
10982done
10983 done
10984IFS=$as_save_IFS
10985
10986 ;;
10987esac
10988fi
10989ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
10990if test -n "$ac_pt_OCAMLYACC"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
10992$as_echo "$ac_pt_OCAMLYACC" >&6; }
10993else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
10996fi
10997
10998 if test "x$ac_pt_OCAMLYACC" = x; then
10999 OCAMLYACC="no"
11000 else
11001 case $cross_compiling:$ac_tool_warned in
11002yes:)
11003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11005ac_tool_warned=yes ;;
11006esac
11007 OCAMLYACC=$ac_pt_OCAMLYACC
11008 fi
11009else
11010 OCAMLYACC="$ac_cv_path_OCAMLYACC"
11011fi
11012
11013
11014
11015
11016else
11017 if test -n "$ac_tool_prefix"; then
11018 # Extract the first word of "${ac_tool_prefix}ocamlprof", so it can be a program name with args.
11019set dummy ${ac_tool_prefix}ocamlprof; ac_word=$2
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021$as_echo_n "checking for $ac_word... " >&6; }
11022if ${ac_cv_path_OCAMLPROF+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024else
11025 case $OCAMLPROF in
11026 [\\/]* | ?:[\\/]*)
11027 ac_cv_path_OCAMLPROF="$OCAMLPROF" # Let the user override the test with a path.
11028 ;;
11029 *)
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $PATH
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11037 ac_cv_path_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 break 2
11040 fi
11041done
11042 done
11043IFS=$as_save_IFS
11044
11045 ;;
11046esac
11047fi
11048OCAMLPROF=$ac_cv_path_OCAMLPROF
11049if test -n "$OCAMLPROF"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLPROF" >&5
11051$as_echo "$OCAMLPROF" >&6; }
11052else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054$as_echo "no" >&6; }
11055fi
11056
11057
11058fi
11059if test -z "$ac_cv_path_OCAMLPROF"; then
11060 ac_pt_OCAMLPROF=$OCAMLPROF
11061 # Extract the first word of "ocamlprof", so it can be a program name with args.
11062set dummy ocamlprof; ac_word=$2
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
11065if ${ac_cv_path_ac_pt_OCAMLPROF+:} false; then :
11066 $as_echo_n "(cached) " >&6
11067else
11068 case $ac_pt_OCAMLPROF in
11069 [\\/]* | ?:[\\/]*)
11070 ac_cv_path_ac_pt_OCAMLPROF="$ac_pt_OCAMLPROF" # Let the user override the test with a path.
11071 ;;
11072 *)
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074for as_dir in $PATH
11075do
11076 IFS=$as_save_IFS
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080 ac_cv_path_ac_pt_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082 break 2
11083 fi
11084done
11085 done
11086IFS=$as_save_IFS
feec80c3 11087
755320b0
C
11088 ;;
11089esac
11090fi
11091ac_pt_OCAMLPROF=$ac_cv_path_ac_pt_OCAMLPROF
11092if test -n "$ac_pt_OCAMLPROF"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLPROF" >&5
11094$as_echo "$ac_pt_OCAMLPROF" >&6; }
11095else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097$as_echo "no" >&6; }
feec80c3
C
11098fi
11099
755320b0
C
11100 if test "x$ac_pt_OCAMLPROF" = x; then
11101 OCAMLPROF=""
11102 else
11103 case $cross_compiling:$ac_tool_warned in
11104yes:)
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11107ac_tool_warned=yes ;;
11108esac
11109 OCAMLPROF=$ac_pt_OCAMLPROF
11110 fi
11111else
11112 OCAMLPROF="$ac_cv_path_OCAMLPROF"
11113fi
feec80c3 11114
feec80c3 11115
755320b0 11116fi
feec80c3 11117
755320b0
C
11118 SUBSTITUTED_OCAMLPROF=yes
11119
11120
11121fi
11122
11123fi
11124
11125 if test -z "$OCAMLPROF"; then :
11126 OCAMLPROF=no
11127
11128fi
11129
11130
11131if test "x$OCAMLLEX" = xno; then :
11132 as_fn_error $? "the OCaml Lexer needs to be installed (the ocamllex command). It should be part of your OCaml distribution." "$LINENO" 5
11133
11134fi
11135
11136if test "x$OCAMLYACC" = xno; then :
11137 as_fn_error $? "The OCaml parser generated needs to be installed (the ocamlyacc command). It should be part of your OCaml distribution." "$LINENO" 5
11138
11139fi
11140
11141if test "x$OCAMLFIND" = xno; then :
11142 as_fn_error $? "A suitable OCaml findlib (the ocamlfind command) could not be found." "$LINENO" 5
11143
11144fi
11145
11146
11147
11148# Check whether --with-runtime-ocamlfind was given.
11149if test "${with_runtime_ocamlfind+set}" = set; then :
11150 withval=$with_runtime_ocamlfind;
11151fi
11152
11153
11154 if test -z "$RUNTIME_OCAMLFIND_CMD"; then :
11155 if test "x$with_runtime_ocamlfind" = xno; then :
11156 RUNTIME_OCAMLFIND_CMD=$OCAMLFIND
11157
11158
11159elif test -n "$with_runtime_ocamlfind" -a "x$with_runtime_ocamlfind" != xyes; then :
11160 RUNTIME_OCAMLFIND_CMD="$with_runtime_ocamlfind"
feec80c3
C
11161
11162
11163else
755320b0 11164 RUNTIME_OCAMLFIND_CMD="ocamlfind"
feec80c3
C
11165
11166
11167fi
11168
11169fi
11170
11171
11172
755320b0
C
11173# Check whether --with-runtime-ocamlc was given.
11174if test "${with_runtime_ocamlc+set}" = set; then :
11175 withval=$with_runtime_ocamlc;
feec80c3
C
11176fi
11177
11178
755320b0
C
11179 if test -z "$RUNTIME_OCAMLC_CMD"; then :
11180 if test "x$with_runtime_ocamlc" = xno; then :
11181 RUNTIME_OCAMLC_CMD=$OCAMLC
feec80c3
C
11182
11183
755320b0
C
11184elif test -n "$with_runtime_ocamlc" -a "x$with_runtime_ocamlc" != xyes; then :
11185 RUNTIME_OCAMLC_CMD="$with_runtime_ocamlc"
feec80c3
C
11186
11187
11188else
755320b0 11189 RUNTIME_OCAMLC_CMD="ocamlc"
feec80c3
C
11190
11191
11192fi
11193
11194fi
11195
11196
feec80c3 11197
755320b0
C
11198# Check whether --with-runtime-ocamlopt was given.
11199if test "${with_runtime_ocamlopt+set}" = set; then :
11200 withval=$with_runtime_ocamlopt;
11201fi
11202
11203
11204 if test -z "$RUNTIME_OCAMLOPT_CMD"; then :
11205 if test "x$with_runtime_ocamlopt" = xno; then :
11206 RUNTIME_OCAMLOPT_CMD=$OCAMLOPT
11207
11208
11209elif test -n "$with_runtime_ocamlopt" -a "x$with_runtime_ocamlopt" != xyes; then :
11210 RUNTIME_OCAMLOPT_CMD="$with_runtime_ocamlopt"
11211
11212
11213else
11214 RUNTIME_OCAMLOPT_CMD="ocamlopt"
feec80c3 11215
feec80c3 11216
feec80c3 11217fi
feec80c3 11218
755320b0
C
11219fi
11220
11221
11222
11223# Check whether --with-runtime-ocamldep was given.
11224if test "${with_runtime_ocamldep+set}" = set; then :
11225 withval=$with_runtime_ocamldep;
11226fi
11227
11228
11229 if test -z "$RUNTIME_OCAMLDEP_CMD"; then :
11230 if test "x$with_runtime_ocamldep" = xno; then :
11231 RUNTIME_OCAMLDEP_CMD=$OCAMLDEP
11232
11233
11234elif test -n "$with_runtime_ocamldep" -a "x$with_runtime_ocamldep" != xyes; then :
11235 RUNTIME_OCAMLDEP_CMD="$with_runtime_ocamldep"
11236
11237
11238else
11239 RUNTIME_OCAMLDEP_CMD="ocamldep"
11240
11241
11242fi
11243
11244fi
11245
11246
11247
11248# Check whether --with-runtime-camlp4 was given.
11249if test "${with_runtime_camlp4+set}" = set; then :
11250 withval=$with_runtime_camlp4;
11251fi
11252
11253
11254 if test -z "$RUNTIME_CAMLP4_CMD"; then :
11255 if test "x$with_runtime_camlp4" = xno; then :
11256 RUNTIME_CAMLP4_CMD=$CAMLP4
11257
11258
11259elif test -n "$with_runtime_camlp4" -a "x$with_runtime_camlp4" != xyes; then :
11260 RUNTIME_CAMLP4_CMD="$with_runtime_camlp4"
11261
11262
11263else
11264 RUNTIME_CAMLP4_CMD="camlp4"
11265
11266
11267fi
11268
11269fi
11270
11271
11272
11273# Check whether --with-runtime-camlp4o was given.
11274if test "${with_runtime_camlp4o+set}" = set; then :
11275 withval=$with_runtime_camlp4o;
11276fi
11277
11278
11279 if test -z "$RUNTIME_CAMLP4O_CMD"; then :
11280 if test "x$with_runtime_camlp4o" = xno; then :
11281 RUNTIME_CAMLP4O_CMD=$CAMLP4O
11282
11283
11284elif test -n "$with_runtime_camlp4o" -a "x$with_runtime_camlp4o" != xyes; then :
11285 RUNTIME_CAMLP4O_CMD="$with_runtime_camlp4o"
feec80c3
C
11286
11287
755320b0
C
11288else
11289 RUNTIME_CAMLP4O_CMD="camlp4o"
feec80c3
C
11290
11291
755320b0 11292fi
feec80c3 11293
755320b0 11294fi
feec80c3
C
11295
11296
feec80c3 11297
feec80c3 11298
feec80c3 11299
755320b0
C
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic ocaml modules" >&5
11301$as_echo "$as_me: verifying basic ocaml modules" >&6;}
11302
feec80c3 11303
755320b0 11304 COCCI_OCAML_EXTERNAL="$COCCI_SRCDIR/bundles"
feec80c3 11305
755320b0
C
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&5
11307$as_echo "$as_me: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&6;}
feec80c3
C
11308
11309
11310 FEATURE_menhirLib=0
11311
11312 LOCALLIB_menhirLib=0
11313
11314 FLAGS_menhirLib=
11315
11316 MODULES_menhirLib=
11317
11318 MODULESOPT_menhirLib=
11319
11320 PATH_menhirLib=
11321
11322
feec80c3
C
11323 FEATURE_dynlink=0
11324
11325 LOCALLIB_dynlink=0
11326
11327 FLAGS_dynlink=
11328
11329 MODULES_dynlink=
11330
11331 MODULESOPT_dynlink=
11332
11333 PATH_dynlink=
11334
11335
11336 FEATURE_pcre=0
11337
11338 LOCALLIB_pcre=0
11339
11340 FLAGS_pcre=
11341
11342 MODULES_pcre=
11343
11344 MODULESOPT_pcre=
11345
11346 PATH_pcre=
11347
11348
11349 FEATURE_pycaml=0
11350
11351 LOCALLIB_pycaml=0
11352
11353 FLAGS_pycaml=
11354
11355 MODULES_pycaml=
11356
11357 MODULESOPT_pycaml=
11358
11359 PATH_pycaml=
11360
11361
11362 FEATURE_camlp4=0
11363
11364 LOCALLIB_camlp4=0
11365
11366 FLAGS_camlp4=
11367
11368 MODULES_camlp4=
11369
11370 MODULESOPT_camlp4=
11371
11372 PATH_camlp4=
11373
11374
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: the following OCaml packages should be provided by your ocaml installation" >&5
11377$as_echo "$as_me: the following OCaml packages should be provided by your ocaml installation" >&6;}
11378
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package unix" >&5
11380$as_echo_n "checking for OCaml findlib package unix... " >&6; }
11381
11382 unset found
11383 unset pkg
11384 found=no
11385 for pkg in unix ; do
11386 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11388$as_echo "found" >&6; }
11389 OCAML_PKG_unix=$pkg
11390 found=yes
11391 break
11392 fi
11393 done
11394 if test "$found" = "no" ; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11396$as_echo "not found" >&6; }
11397 OCAML_PKG_unix=no
11398 fi
11399
11400
11401
11402 if test "x$OCAML_PKG_unix" != xno; then :
11403 PATH_unix=`$OCAMLFIND query unix 2>/dev/null`
11404
11405
11406fi
11407
11408 if test "x$OCAML_PKG_unix" = xno; then :
11409 as_fn_error $? "package unix is required. It should be part of your ocaml installation." "$LINENO" 5
11410
11411fi
11412
11413
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package bigarray" >&5
11415$as_echo_n "checking for OCaml findlib package bigarray... " >&6; }
11416
11417 unset found
11418 unset pkg
11419 found=no
11420 for pkg in bigarray ; do
11421 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11423$as_echo "found" >&6; }
11424 OCAML_PKG_bigarray=$pkg
11425 found=yes
11426 break
11427 fi
11428 done
11429 if test "$found" = "no" ; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11431$as_echo "not found" >&6; }
11432 OCAML_PKG_bigarray=no
11433 fi
11434
11435
11436
11437 if test "x$OCAML_PKG_bigarray" != xno; then :
11438 PATH_bigarray=`$OCAMLFIND query bigarray 2>/dev/null`
11439
11440
11441fi
11442
11443 if test "x$OCAML_PKG_bigarray" = xno; then :
11444 as_fn_error $? "package bigarray is required. It should be part of your ocaml installation." "$LINENO" 5
11445
11446fi
11447
11448
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package num" >&5
11450$as_echo_n "checking for OCaml findlib package num... " >&6; }
11451
11452 unset found
11453 unset pkg
11454 found=no
11455 for pkg in num ; do
11456 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11458$as_echo "found" >&6; }
11459 OCAML_PKG_num=$pkg
11460 found=yes
11461 break
11462 fi
11463 done
11464 if test "$found" = "no" ; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11466$as_echo "not found" >&6; }
11467 OCAML_PKG_num=no
11468 fi
11469
11470
11471
11472 if test "x$OCAML_PKG_num" != xno; then :
11473 PATH_num=`$OCAMLFIND query num 2>/dev/null`
11474
11475
11476fi
11477
11478 if test "x$OCAML_PKG_num" = xno; then :
11479 as_fn_error $? "package num is required. It should be part of your ocaml installation." "$LINENO" 5
11480
11481fi
11482
11483
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package str" >&5
11485$as_echo_n "checking for OCaml findlib package str... " >&6; }
11486
11487 unset found
11488 unset pkg
11489 found=no
11490 for pkg in str ; do
11491 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11493$as_echo "found" >&6; }
11494 OCAML_PKG_str=$pkg
11495 found=yes
11496 break
11497 fi
11498 done
11499 if test "$found" = "no" ; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11501$as_echo "not found" >&6; }
11502 OCAML_PKG_str=no
11503 fi
11504
11505
11506
11507 if test "x$OCAML_PKG_str" != xno; then :
11508 PATH_str=`$OCAMLFIND query str 2>/dev/null`
11509
11510
11511fi
11512
11513 if test "x$OCAML_PKG_str" = xno; then :
11514 as_fn_error $? "package str is required. It should be part of your ocaml installation." "$LINENO" 5
11515
11516fi
11517
11518
feec80c3
C
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package dynlink" >&5
11520$as_echo "$as_me: configuring package dynlink" >&6;}
11521 # Check whether --enable-dynlink was given.
11522if test "${enable_dynlink+set}" = set; then :
11523 enableval=$enable_dynlink;
11524fi
11525
11526
11527 if test "x$enable_dynlink" != xno; then :
11528
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package dynlink" >&5
11530$as_echo_n "checking for OCaml findlib package dynlink... " >&6; }
11531
11532 unset found
11533 unset pkg
11534 found=no
11535 for pkg in dynlink ; do
11536 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11538$as_echo "found" >&6; }
11539 OCAML_PKG_dynlink=$pkg
11540 found=yes
11541 break
11542 fi
11543 done
11544 if test "$found" = "no" ; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11546$as_echo "not found" >&6; }
11547 OCAML_PKG_dynlink=no
11548 fi
11549
11550
11551
11552 if test "x$OCAML_PKG_dynlink" != xno; then :
11553 PATH_dynlink=`$OCAMLFIND query dynlink 2>/dev/null`
11554
11555
11556fi
11557
11558 GLOBAL_dynlink=$OCAML_PKG_dynlink
11559
11560
11561 if test "x$GLOBAL_dynlink" != xno; then :
11562 enable_dynlink=yes
11563
11564
11565else
11566 if test "x$enable_dynlink" = xyes; then :
11567 as_fn_error $? "OCaml package dynlink is not available but requested explicitly" "$LINENO" 5
11568
11569fi
d6ce1786
C
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package dynlink is not available" >&5
11571$as_echo "$as_me: OCaml package dynlink is not available" >&6;}
feec80c3
C
11572 enable_dynlink=no
11573
11574
11575fi
11576
11577fi
11578
11579 if test "x$enable_dynlink" = xno; then :
11580 { pkgdir=; unset pkgdir;}
11581 pkgdir="$COCCI_OCAML_EXTERNAL/dynlink/"
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of dynlink" >&5
11583$as_echo_n "checking for a bundled substitute of dynlink... " >&6; }
11584 if test -d "$pkgdir"; then :
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11586$as_echo "yes" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for dynlink in $pkgdir" >&5
11588$as_echo "$as_me: using bundled substitute for dynlink in $pkgdir" >&6;}
11589 enable_dynlink=local
11590
11591 PATH_dynlink="$pkgdir"
11592
11593
11594else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
11596$as_echo "not available" >&6; }
11597fi
11598
11599fi
11600
11601 if test "x$enable_dynlink" != xno; then :
11602 FEATURE_dynlink=1
11603
11604 FLAGS_dynlink='$(FLAGS_dynlink)'
11605
d6ce1786
C
11606 OPTFLAGS_dynlink='$(OPTFLAGS_dynlink)'
11607
feec80c3
C
11608
11609 if test "x$enable_dynlink" = xlocal; then :
11610 LOCALLIB_dynlink=1
11611
11612 MODULES_dynlink='$(LOCAL_dynlink)'
11613
11614 MODULESOPT_dynlink='$(LOCALOPT_dynlink)'
11615
11616
11617 if test -f "$PATH_dynlink/Makefile"; then :
11618 MAKE_dynlink=$PATH_dynlink
11619
11620
11621else
11622 MAKE_dynlink=
11623
11624
11625fi
11626
11627else
11628 MODULES_dynlink='$(GLOBAL_dynlink)'
11629
11630 MODULESOPT_dynlink='$(GLOBALOPT_dynlink)'
11631
11632
11633fi
11634
11635fi
11636
11637 if test "x$enable_dynlink" = xno; then :
11638 as_fn_error $? "OCaml package dynlink is required. Please make sure it is available." "$LINENO" 5
11639
11640fi
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package camlp4" >&5
11643$as_echo "$as_me: configuring package camlp4" >&6;}
11644 # Check whether --enable-camlp4 was given.
11645if test "${enable_camlp4+set}" = set; then :
11646 enableval=$enable_camlp4;
11647fi
11648
11649
11650 if test "x$enable_camlp4" != xno; then :
11651
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package camlp4" >&5
11653$as_echo_n "checking for OCaml findlib package camlp4... " >&6; }
11654
11655 unset found
11656 unset pkg
11657 found=no
11658 for pkg in camlp4 ; do
11659 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11661$as_echo "found" >&6; }
11662 OCAML_PKG_camlp4=$pkg
11663 found=yes
11664 break
11665 fi
11666 done
11667 if test "$found" = "no" ; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11669$as_echo "not found" >&6; }
11670 OCAML_PKG_camlp4=no
11671 fi
11672
11673
11674
11675 if test "x$OCAML_PKG_camlp4" != xno; then :
11676 PATH_camlp4=`$OCAMLFIND query camlp4 2>/dev/null`
11677
11678
11679fi
11680
11681 GLOBAL_camlp4=$OCAML_PKG_camlp4
11682
11683
11684 if test "x$GLOBAL_camlp4" != xno; then :
11685 enable_camlp4=yes
11686
11687
11688else
11689 if test "x$enable_camlp4" = xyes; then :
11690 as_fn_error $? "OCaml package camlp4 is not available but requested explicitly" "$LINENO" 5
11691
11692fi
d6ce1786
C
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package camlp4 is not available" >&5
11694$as_echo "$as_me: OCaml package camlp4 is not available" >&6;}
feec80c3
C
11695 enable_camlp4=no
11696
11697
11698fi
11699
11700fi
11701
11702 if test "x$enable_camlp4" = xno; then :
11703 { pkgdir=; unset pkgdir;}
11704 pkgdir="$COCCI_OCAML_EXTERNAL/camlp4/"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of camlp4" >&5
11706$as_echo_n "checking for a bundled substitute of camlp4... " >&6; }
11707 if test -d "$pkgdir"; then :
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709$as_echo "yes" >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for camlp4 in $pkgdir" >&5
11711$as_echo "$as_me: using bundled substitute for camlp4 in $pkgdir" >&6;}
11712 enable_camlp4=local
11713
11714 PATH_camlp4="$pkgdir"
11715
11716
11717else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
11719$as_echo "not available" >&6; }
11720fi
11721
11722fi
11723
11724 if test "x$enable_camlp4" != xno; then :
11725 FEATURE_camlp4=1
11726
755320b0 11727 FLAGS_camlp4='$(FLAGS_camlp4)'
feec80c3 11728
755320b0 11729 OPTFLAGS_camlp4='$(OPTFLAGS_camlp4)'
d6ce1786 11730
feec80c3 11731
755320b0
C
11732 if test "x$enable_camlp4" = xlocal; then :
11733 LOCALLIB_camlp4=1
feec80c3 11734
755320b0 11735 MODULES_camlp4='$(LOCAL_camlp4)'
feec80c3 11736
755320b0 11737 MODULESOPT_camlp4='$(LOCALOPT_camlp4)'
feec80c3
C
11738
11739
755320b0
C
11740 if test -f "$PATH_camlp4/Makefile"; then :
11741 MAKE_camlp4=$PATH_camlp4
feec80c3
C
11742
11743
11744else
755320b0 11745 MAKE_camlp4=
feec80c3
C
11746
11747
11748fi
11749
11750else
755320b0 11751 MODULES_camlp4='$(GLOBAL_camlp4)'
feec80c3 11752
755320b0 11753 MODULESOPT_camlp4='$(GLOBALOPT_camlp4)'
feec80c3
C
11754
11755
11756fi
11757
11758fi
11759
755320b0
C
11760 if test "x$enable_camlp4" = xno; then :
11761 as_fn_error $? "OCaml package camlp4 is required. Please make sure it is available." "$LINENO" 5
feec80c3
C
11762
11763fi
11764
755320b0
C
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package menhirLib" >&5
11766$as_echo "$as_me: configuring package menhirLib" >&6;}
11767 # Check whether --enable-menhirLib was given.
11768if test "${enable_menhirLib+set}" = set; then :
11769 enableval=$enable_menhirLib;
feec80c3
C
11770fi
11771
11772
755320b0 11773 if test "x$enable_menhirLib" != xno; then :
feec80c3 11774
755320b0
C
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package menhirLib" >&5
11776$as_echo_n "checking for OCaml findlib package menhirLib... " >&6; }
feec80c3
C
11777
11778 unset found
11779 unset pkg
11780 found=no
755320b0 11781 for pkg in menhirLib ; do
feec80c3
C
11782 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11784$as_echo "found" >&6; }
755320b0 11785 OCAML_PKG_menhirLib=$pkg
feec80c3
C
11786 found=yes
11787 break
11788 fi
11789 done
11790 if test "$found" = "no" ; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11792$as_echo "not found" >&6; }
755320b0 11793 OCAML_PKG_menhirLib=no
feec80c3
C
11794 fi
11795
11796
11797
755320b0
C
11798 if test "x$OCAML_PKG_menhirLib" != xno; then :
11799 PATH_menhirLib=`$OCAMLFIND query menhirLib 2>/dev/null`
feec80c3
C
11800
11801
11802fi
11803
755320b0 11804 GLOBAL_menhirLib=$OCAML_PKG_menhirLib
feec80c3
C
11805
11806
755320b0
C
11807 if test "x$GLOBAL_menhirLib" != xno; then :
11808 enable_menhirLib=yes
feec80c3
C
11809
11810
11811else
755320b0
C
11812 if test "x$enable_menhirLib" = xyes; then :
11813 as_fn_error $? "OCaml package menhirLib is not available but requested explicitly" "$LINENO" 5
feec80c3
C
11814
11815fi
755320b0
C
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package menhirLib is not available" >&5
11817$as_echo "$as_me: OCaml package menhirLib is not available" >&6;}
11818 enable_menhirLib=no
feec80c3
C
11819
11820
11821fi
11822
11823fi
11824
755320b0 11825 if test "x$enable_menhirLib" = xno; then :
feec80c3 11826 { pkgdir=; unset pkgdir;}
755320b0
C
11827 pkgdir="$COCCI_OCAML_EXTERNAL/menhirLib/"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of menhirLib" >&5
11829$as_echo_n "checking for a bundled substitute of menhirLib... " >&6; }
feec80c3
C
11830 if test -d "$pkgdir"; then :
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832$as_echo "yes" >&6; }
755320b0
C
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for menhirLib in $pkgdir" >&5
11834$as_echo "$as_me: using bundled substitute for menhirLib in $pkgdir" >&6;}
11835 enable_menhirLib=local
feec80c3 11836
755320b0 11837 PATH_menhirLib="$pkgdir"
feec80c3
C
11838
11839
11840else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
11842$as_echo "not available" >&6; }
11843fi
11844
11845fi
11846
755320b0
C
11847 if test "x$enable_menhirLib" != xno; then :
11848 FEATURE_menhirLib=1
feec80c3 11849
755320b0 11850 FLAGS_menhirLib='$(FLAGS_menhirLib)'
feec80c3 11851
755320b0 11852 OPTFLAGS_menhirLib='$(OPTFLAGS_menhirLib)'
d6ce1786 11853
feec80c3 11854
755320b0
C
11855 if test "x$enable_menhirLib" = xlocal; then :
11856 LOCALLIB_menhirLib=1
feec80c3 11857
755320b0 11858 MODULES_menhirLib='$(LOCAL_menhirLib)'
feec80c3 11859
755320b0 11860 MODULESOPT_menhirLib='$(LOCALOPT_menhirLib)'
feec80c3
C
11861
11862
755320b0
C
11863 if test -f "$PATH_menhirLib/Makefile"; then :
11864 MAKE_menhirLib=$PATH_menhirLib
feec80c3
C
11865
11866
11867else
755320b0 11868 MAKE_menhirLib=
feec80c3
C
11869
11870
11871fi
11872
11873else
755320b0 11874 MODULES_menhirLib='$(GLOBAL_menhirLib)'
feec80c3 11875
755320b0 11876 MODULESOPT_menhirLib='$(GLOBALOPT_menhirLib)'
feec80c3
C
11877
11878
11879fi
11880
11881fi
11882
755320b0
C
11883 if test "x$enable_menhirLib" = xno; then :
11884 as_fn_error $? "OCaml package menhirLib is required. Please make sure it is available." "$LINENO" 5
feec80c3
C
11885
11886fi
11887
11888
11889
feec80c3
C
11890
11891
11892
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying optional features" >&5
11894$as_echo "$as_me: verifying optional features" >&6;}
11895
d6ce1786
C
11896if test "x$OCAML_PKG_dynlink" != xno -a -f "$PATH_dynlink/dynlink.cmxa"; then :
11897 OPTIMIZED_dynlink=yes
11898
11899
11900else
11901 OPTIMIZED_dynlink=no
11902
11903
11904fi
11905
feec80c3
C
11906
11907
11908
11909# Check whether --with-menhir was given.
11910if test "${with_menhir+set}" = set; then :
11911 withval=$with_menhir;
11912fi
11913
11914 with_MENHIR="$with_menhir"
11915
feec80c3
C
11916 if test -n "$with_MENHIR" -a "x$with_MENHIR" != xno -a "x$with_MENHIR" != xyes; then :
11917 MENHIR="$with_MENHIR"
11918
11919
d6ce1786
C
11920else
11921 MENHIR="menhir"
11922
11923
feec80c3
C
11924fi
11925
d6ce1786
C
11926 if test "x$with_MENHIR" = xno; then :
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: menhir is disabled explicitly" >&5
11928$as_echo "$as_me: menhir is disabled explicitly" >&6;}
11929 MENHIR=no
11930
11931
11932else
11933 if test "x$MENHIR" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then :
feec80c3
C
11934
11935
11936if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11937 if test -n "$ac_tool_prefix"; then
11938 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11939set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941$as_echo_n "checking for $ac_word... " >&6; }
11942if ${ac_cv_path_PKG_CONFIG+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944else
11945 case $PKG_CONFIG in
11946 [\\/]* | ?:[\\/]*)
11947 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11948 ;;
11949 *)
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 11956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
11957 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 break 2
11960 fi
11961done
11962 done
11963IFS=$as_save_IFS
11964
11965 ;;
11966esac
11967fi
11968PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11969if test -n "$PKG_CONFIG"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11971$as_echo "$PKG_CONFIG" >&6; }
11972else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
11975fi
11976
11977
11978fi
11979if test -z "$ac_cv_path_PKG_CONFIG"; then
11980 ac_pt_PKG_CONFIG=$PKG_CONFIG
11981 # Extract the first word of "pkg-config", so it can be a program name with args.
11982set dummy pkg-config; ac_word=$2
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
11985if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987else
11988 case $ac_pt_PKG_CONFIG in
11989 [\\/]* | ?:[\\/]*)
11990 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11991 ;;
11992 *)
11993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11994for as_dir in $PATH
11995do
11996 IFS=$as_save_IFS
11997 test -z "$as_dir" && as_dir=.
11998 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 11999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12000 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 break 2
12003 fi
12004done
12005 done
12006IFS=$as_save_IFS
12007
12008 ;;
12009esac
12010fi
12011ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12012if test -n "$ac_pt_PKG_CONFIG"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12014$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12015else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
12018fi
12019
12020 if test "x$ac_pt_PKG_CONFIG" = x; then
12021 PKG_CONFIG=""
12022 else
12023 case $cross_compiling:$ac_tool_warned in
12024yes:)
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12027ac_tool_warned=yes ;;
12028esac
12029 PKG_CONFIG=$ac_pt_PKG_CONFIG
12030 fi
12031else
12032 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12033fi
12034
12035fi
12036if test -n "$PKG_CONFIG"; then
12037 _pkg_min_version=0.9.0
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12039$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12040 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12042$as_echo "yes" >&6; }
12043 else
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045$as_echo "no" >&6; }
12046 PKG_CONFIG=""
12047 fi
12048
12049fi
12050
d6ce1786 12051elif test "x$MENHIR" = xocamllex -a "xMENHIR" = xOCAMLLEX; then :
feec80c3
C
12052 # checking for ocamllex
12053 if test -n "$ac_tool_prefix"; then
12054 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
12055set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12057$as_echo_n "checking for $ac_word... " >&6; }
12058if ${ac_cv_path_OCAMLLEX+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060else
12061 case $OCAMLLEX in
12062 [\\/]* | ?:[\\/]*)
12063 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
12064 ;;
12065 *)
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067for as_dir in $PATH
12068do
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12073 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 break 2
12076 fi
12077done
12078 done
12079IFS=$as_save_IFS
12080
12081 ;;
12082esac
12083fi
12084OCAMLLEX=$ac_cv_path_OCAMLLEX
12085if test -n "$OCAMLLEX"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
12087$as_echo "$OCAMLLEX" >&6; }
12088else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090$as_echo "no" >&6; }
12091fi
12092
12093
12094fi
12095if test -z "$ac_cv_path_OCAMLLEX"; then
12096 ac_pt_OCAMLLEX=$OCAMLLEX
12097 # Extract the first word of "ocamllex", so it can be a program name with args.
12098set dummy ocamllex; ac_word=$2
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12100$as_echo_n "checking for $ac_word... " >&6; }
12101if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
12102 $as_echo_n "(cached) " >&6
12103else
12104 case $ac_pt_OCAMLLEX in
12105 [\\/]* | ?:[\\/]*)
12106 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
12107 ;;
12108 *)
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12116 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12119 fi
12120done
12121 done
12122IFS=$as_save_IFS
12123
12124 ;;
12125esac
12126fi
12127ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
12128if test -n "$ac_pt_OCAMLLEX"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
12130$as_echo "$ac_pt_OCAMLLEX" >&6; }
12131else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
12134fi
12135
12136 if test "x$ac_pt_OCAMLLEX" = x; then
12137 OCAMLLEX="no"
12138 else
12139 case $cross_compiling:$ac_tool_warned in
12140yes:)
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12143ac_tool_warned=yes ;;
12144esac
12145 OCAMLLEX=$ac_pt_OCAMLLEX
12146 fi
12147else
12148 OCAMLLEX="$ac_cv_path_OCAMLLEX"
12149fi
12150
12151 if test "$OCAMLLEX" != "no"; then
12152 if test -n "$ac_tool_prefix"; then
12153 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
12154set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156$as_echo_n "checking for $ac_word... " >&6; }
12157if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159else
12160 case $OCAMLLEXDOTOPT in
12161 [\\/]* | ?:[\\/]*)
12162 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
12163 ;;
12164 *)
12165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166for as_dir in $PATH
12167do
12168 IFS=$as_save_IFS
12169 test -z "$as_dir" && as_dir=.
12170 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12172 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12174 break 2
12175 fi
12176done
12177 done
12178IFS=$as_save_IFS
12179
12180 ;;
12181esac
12182fi
12183OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
12184if test -n "$OCAMLLEXDOTOPT"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
12186$as_echo "$OCAMLLEXDOTOPT" >&6; }
12187else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189$as_echo "no" >&6; }
12190fi
12191
12192
12193fi
12194if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
12195 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
12196 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
12197set dummy ocamllex.opt; ac_word=$2
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
12200if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202else
12203 case $ac_pt_OCAMLLEXDOTOPT in
12204 [\\/]* | ?:[\\/]*)
12205 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
12206 ;;
12207 *)
12208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209for as_dir in $PATH
12210do
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12215 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
12218 fi
12219done
12220 done
12221IFS=$as_save_IFS
12222
12223 ;;
12224esac
12225fi
12226ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
12227if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
12229$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
12230else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232$as_echo "no" >&6; }
12233fi
12234
12235 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
12236 OCAMLLEXDOTOPT="no"
12237 else
12238 case $cross_compiling:$ac_tool_warned in
12239yes:)
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12242ac_tool_warned=yes ;;
12243esac
12244 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
12245 fi
12246else
12247 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
12248fi
12249
12250 if test "$OCAMLLEXDOTOPT" != "no"; then
12251 OCAMLLEX=$OCAMLLEXDOTOPT
12252 fi
12253 fi
12254
12255
12256
d6ce1786 12257elif test "x$MENHIR" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then :
feec80c3
C
12258 if test -n "$ac_tool_prefix"; then
12259 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
12260set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
12263if ${ac_cv_path_OCAMLYACC+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265else
12266 case $OCAMLYACC in
12267 [\\/]* | ?:[\\/]*)
12268 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
12269 ;;
12270 *)
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272for as_dir in $PATH
12273do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12278 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12281 fi
12282done
12283 done
12284IFS=$as_save_IFS
12285
12286 ;;
12287esac
12288fi
12289OCAMLYACC=$ac_cv_path_OCAMLYACC
12290if test -n "$OCAMLYACC"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
12292$as_echo "$OCAMLYACC" >&6; }
12293else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
12296fi
12297
12298
12299fi
12300if test -z "$ac_cv_path_OCAMLYACC"; then
12301 ac_pt_OCAMLYACC=$OCAMLYACC
12302 # Extract the first word of "ocamlyacc", so it can be a program name with args.
12303set dummy ocamlyacc; ac_word=$2
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305$as_echo_n "checking for $ac_word... " >&6; }
12306if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308else
12309 case $ac_pt_OCAMLYACC in
12310 [\\/]* | ?:[\\/]*)
12311 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
12312 ;;
12313 *)
12314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317 IFS=$as_save_IFS
12318 test -z "$as_dir" && as_dir=.
12319 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12321 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323 break 2
12324 fi
12325done
12326 done
12327IFS=$as_save_IFS
12328
12329 ;;
12330esac
12331fi
12332ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
12333if test -n "$ac_pt_OCAMLYACC"; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
12335$as_echo "$ac_pt_OCAMLYACC" >&6; }
12336else
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338$as_echo "no" >&6; }
12339fi
12340
12341 if test "x$ac_pt_OCAMLYACC" = x; then
12342 OCAMLYACC="no"
12343 else
12344 case $cross_compiling:$ac_tool_warned in
12345yes:)
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12348ac_tool_warned=yes ;;
12349esac
12350 OCAMLYACC=$ac_pt_OCAMLYACC
12351 fi
12352else
12353 OCAMLYACC="$ac_cv_path_OCAMLYACC"
12354fi
12355
12356
12357
12358
12359else
12360 if test -n "$ac_tool_prefix"; then
d6ce1786
C
12361 # Extract the first word of "${ac_tool_prefix}[$]MENHIR", so it can be a program name with args.
12362set dummy ${ac_tool_prefix}$MENHIR; ac_word=$2
feec80c3
C
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364$as_echo_n "checking for $ac_word... " >&6; }
12365if ${ac_cv_path_MENHIR+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367else
12368 case $MENHIR in
12369 [\\/]* | ?:[\\/]*)
12370 ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path.
12371 ;;
12372 *)
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12380 ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12383 fi
12384done
12385 done
12386IFS=$as_save_IFS
12387
12388 ;;
12389esac
12390fi
12391MENHIR=$ac_cv_path_MENHIR
12392if test -n "$MENHIR"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5
12394$as_echo "$MENHIR" >&6; }
12395else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
12398fi
12399
12400
12401fi
12402if test -z "$ac_cv_path_MENHIR"; then
12403 ac_pt_MENHIR=$MENHIR
d6ce1786
C
12404 # Extract the first word of "[$]MENHIR", so it can be a program name with args.
12405set dummy $MENHIR; ac_word=$2
feec80c3
C
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407$as_echo_n "checking for $ac_word... " >&6; }
12408if ${ac_cv_path_ac_pt_MENHIR+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410else
12411 case $ac_pt_MENHIR in
12412 [\\/]* | ?:[\\/]*)
12413 ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path.
12414 ;;
12415 *)
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417for as_dir in $PATH
12418do
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12423 ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425 break 2
12426 fi
12427done
12428 done
12429IFS=$as_save_IFS
12430
12431 ;;
12432esac
12433fi
12434ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR
12435if test -n "$ac_pt_MENHIR"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5
12437$as_echo "$ac_pt_MENHIR" >&6; }
12438else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441fi
12442
12443 if test "x$ac_pt_MENHIR" = x; then
12444 MENHIR=""
12445 else
12446 case $cross_compiling:$ac_tool_warned in
12447yes:)
12448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12450ac_tool_warned=yes ;;
12451esac
12452 MENHIR=$ac_pt_MENHIR
12453 fi
12454else
12455 MENHIR="$ac_cv_path_MENHIR"
12456fi
12457
12458
12459fi
12460
12461
12462fi
12463
12464 if test -z "$MENHIR" -o "x$MENHIR" = xno; then :
12465 if test "x$with_MENHIR" = xyes; then :
12466 as_fn_error $? "--with=menhir is given explicitly but not found" "$LINENO" 5
12467
12468fi
12469
12470 if test -n "$COCCI_SRCDIR/setup/fake-menhir.sh menhir"; then :
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&5
12472$as_echo "$as_me: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&6;}
12473 MENHIR="$COCCI_SRCDIR/setup/fake-menhir.sh menhir"
12474
12475 if test "xmenhir" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then :
12476
12477
12478if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12479 if test -n "$ac_tool_prefix"; then
12480 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12481set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483$as_echo_n "checking for $ac_word... " >&6; }
12484if ${ac_cv_path_PKG_CONFIG+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486else
12487 case $PKG_CONFIG in
12488 [\\/]* | ?:[\\/]*)
12489 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12490 ;;
12491 *)
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12499 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12502 fi
12503done
12504 done
12505IFS=$as_save_IFS
12506
12507 ;;
12508esac
12509fi
12510PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12511if test -n "$PKG_CONFIG"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12513$as_echo "$PKG_CONFIG" >&6; }
12514else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516$as_echo "no" >&6; }
12517fi
12518
12519
12520fi
12521if test -z "$ac_cv_path_PKG_CONFIG"; then
12522 ac_pt_PKG_CONFIG=$PKG_CONFIG
12523 # Extract the first word of "pkg-config", so it can be a program name with args.
12524set dummy pkg-config; ac_word=$2
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526$as_echo_n "checking for $ac_word... " >&6; }
12527if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529else
12530 case $ac_pt_PKG_CONFIG in
12531 [\\/]* | ?:[\\/]*)
12532 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12533 ;;
12534 *)
12535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12536for as_dir in $PATH
12537do
12538 IFS=$as_save_IFS
12539 test -z "$as_dir" && as_dir=.
12540 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12542 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544 break 2
12545 fi
12546done
12547 done
12548IFS=$as_save_IFS
12549
12550 ;;
12551esac
12552fi
12553ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12554if test -n "$ac_pt_PKG_CONFIG"; then
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12556$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12557else
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559$as_echo "no" >&6; }
12560fi
12561
12562 if test "x$ac_pt_PKG_CONFIG" = x; then
12563 PKG_CONFIG=""
12564 else
12565 case $cross_compiling:$ac_tool_warned in
12566yes:)
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12569ac_tool_warned=yes ;;
12570esac
12571 PKG_CONFIG=$ac_pt_PKG_CONFIG
12572 fi
12573else
12574 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12575fi
12576
12577fi
12578if test -n "$PKG_CONFIG"; then
12579 _pkg_min_version=0.9.0
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12581$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12582 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584$as_echo "yes" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587$as_echo "no" >&6; }
12588 PKG_CONFIG=""
12589 fi
12590
12591fi
12592
12593elif test "xmenhir" = xocamllex -a "xMENHIR" = xOCAMLLEX; then :
12594 # checking for ocamllex
12595 if test -n "$ac_tool_prefix"; then
12596 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
12597set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599$as_echo_n "checking for $ac_word... " >&6; }
12600if ${ac_cv_path_OCAMLLEX+:} false; then :
12601 $as_echo_n "(cached) " >&6
12602else
12603 case $OCAMLLEX in
12604 [\\/]* | ?:[\\/]*)
12605 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
12606 ;;
12607 *)
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609for as_dir in $PATH
12610do
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
12613 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12615 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617 break 2
12618 fi
12619done
12620 done
12621IFS=$as_save_IFS
12622
12623 ;;
12624esac
12625fi
12626OCAMLLEX=$ac_cv_path_OCAMLLEX
12627if test -n "$OCAMLLEX"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
12629$as_echo "$OCAMLLEX" >&6; }
12630else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
12633fi
12634
12635
12636fi
12637if test -z "$ac_cv_path_OCAMLLEX"; then
12638 ac_pt_OCAMLLEX=$OCAMLLEX
12639 # Extract the first word of "ocamllex", so it can be a program name with args.
12640set dummy ocamllex; ac_word=$2
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642$as_echo_n "checking for $ac_word... " >&6; }
12643if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
12644 $as_echo_n "(cached) " >&6
12645else
12646 case $ac_pt_OCAMLLEX in
12647 [\\/]* | ?:[\\/]*)
12648 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
12649 ;;
12650 *)
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652for as_dir in $PATH
12653do
12654 IFS=$as_save_IFS
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12658 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 break 2
12661 fi
12662done
12663 done
12664IFS=$as_save_IFS
12665
12666 ;;
12667esac
12668fi
12669ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
12670if test -n "$ac_pt_OCAMLLEX"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
12672$as_echo "$ac_pt_OCAMLLEX" >&6; }
12673else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676fi
12677
12678 if test "x$ac_pt_OCAMLLEX" = x; then
12679 OCAMLLEX="no"
12680 else
12681 case $cross_compiling:$ac_tool_warned in
12682yes:)
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12685ac_tool_warned=yes ;;
12686esac
12687 OCAMLLEX=$ac_pt_OCAMLLEX
12688 fi
12689else
12690 OCAMLLEX="$ac_cv_path_OCAMLLEX"
12691fi
12692
12693 if test "$OCAMLLEX" != "no"; then
12694 if test -n "$ac_tool_prefix"; then
12695 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
12696set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
12699if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701else
12702 case $OCAMLLEXDOTOPT in
12703 [\\/]* | ?:[\\/]*)
12704 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
12705 ;;
12706 *)
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708for as_dir in $PATH
12709do
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12714 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12717 fi
12718done
12719 done
12720IFS=$as_save_IFS
12721
12722 ;;
12723esac
12724fi
12725OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
12726if test -n "$OCAMLLEXDOTOPT"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
12728$as_echo "$OCAMLLEXDOTOPT" >&6; }
12729else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731$as_echo "no" >&6; }
12732fi
12733
12734
12735fi
12736if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
12737 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
12738 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
12739set dummy ocamllex.opt; ac_word=$2
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741$as_echo_n "checking for $ac_word... " >&6; }
12742if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744else
12745 case $ac_pt_OCAMLLEXDOTOPT in
12746 [\\/]* | ?:[\\/]*)
12747 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
12748 ;;
12749 *)
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751for as_dir in $PATH
12752do
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12757 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12760 fi
12761done
12762 done
12763IFS=$as_save_IFS
12764
12765 ;;
12766esac
12767fi
12768ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
12769if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
12771$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
12772else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774$as_echo "no" >&6; }
12775fi
12776
12777 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
12778 OCAMLLEXDOTOPT="no"
12779 else
12780 case $cross_compiling:$ac_tool_warned in
12781yes:)
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12784ac_tool_warned=yes ;;
12785esac
12786 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
12787 fi
12788else
12789 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
12790fi
12791
12792 if test "$OCAMLLEXDOTOPT" != "no"; then
12793 OCAMLLEX=$OCAMLLEXDOTOPT
12794 fi
12795 fi
12796
12797
12798
12799elif test "xmenhir" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then :
12800 if test -n "$ac_tool_prefix"; then
12801 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
12802set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804$as_echo_n "checking for $ac_word... " >&6; }
12805if ${ac_cv_path_OCAMLYACC+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807else
12808 case $OCAMLYACC in
12809 [\\/]* | ?:[\\/]*)
12810 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
12811 ;;
12812 *)
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814for as_dir in $PATH
12815do
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12820 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12823 fi
12824done
12825 done
12826IFS=$as_save_IFS
12827
12828 ;;
12829esac
12830fi
12831OCAMLYACC=$ac_cv_path_OCAMLYACC
12832if test -n "$OCAMLYACC"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
12834$as_echo "$OCAMLYACC" >&6; }
12835else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837$as_echo "no" >&6; }
12838fi
12839
12840
12841fi
12842if test -z "$ac_cv_path_OCAMLYACC"; then
12843 ac_pt_OCAMLYACC=$OCAMLYACC
12844 # Extract the first word of "ocamlyacc", so it can be a program name with args.
12845set dummy ocamlyacc; ac_word=$2
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847$as_echo_n "checking for $ac_word... " >&6; }
12848if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850else
12851 case $ac_pt_OCAMLYACC in
12852 [\\/]* | ?:[\\/]*)
12853 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
12854 ;;
12855 *)
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12863 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12866 fi
12867done
12868 done
12869IFS=$as_save_IFS
12870
12871 ;;
12872esac
12873fi
12874ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
12875if test -n "$ac_pt_OCAMLYACC"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
12877$as_echo "$ac_pt_OCAMLYACC" >&6; }
12878else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880$as_echo "no" >&6; }
12881fi
12882
12883 if test "x$ac_pt_OCAMLYACC" = x; then
12884 OCAMLYACC="no"
12885 else
12886 case $cross_compiling:$ac_tool_warned in
12887yes:)
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12890ac_tool_warned=yes ;;
12891esac
12892 OCAMLYACC=$ac_pt_OCAMLYACC
12893 fi
12894else
12895 OCAMLYACC="$ac_cv_path_OCAMLYACC"
12896fi
12897
12898
12899
12900
12901else
12902 if test -n "$ac_tool_prefix"; then
12903 # Extract the first word of "${ac_tool_prefix}menhir", so it can be a program name with args.
12904set dummy ${ac_tool_prefix}menhir; ac_word=$2
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906$as_echo_n "checking for $ac_word... " >&6; }
12907if ${ac_cv_path_MENHIR+:} false; then :
12908 $as_echo_n "(cached) " >&6
12909else
12910 case $MENHIR in
12911 [\\/]* | ?:[\\/]*)
12912 ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path.
12913 ;;
12914 *)
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916for as_dir in $PATH
12917do
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12922 ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12925 fi
12926done
12927 done
12928IFS=$as_save_IFS
12929
12930 ;;
12931esac
12932fi
12933MENHIR=$ac_cv_path_MENHIR
12934if test -n "$MENHIR"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5
12936$as_echo "$MENHIR" >&6; }
12937else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939$as_echo "no" >&6; }
12940fi
12941
12942
12943fi
12944if test -z "$ac_cv_path_MENHIR"; then
12945 ac_pt_MENHIR=$MENHIR
12946 # Extract the first word of "menhir", so it can be a program name with args.
12947set dummy menhir; ac_word=$2
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949$as_echo_n "checking for $ac_word... " >&6; }
12950if ${ac_cv_path_ac_pt_MENHIR+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952else
12953 case $ac_pt_MENHIR in
12954 [\\/]* | ?:[\\/]*)
12955 ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path.
12956 ;;
12957 *)
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959for as_dir in $PATH
12960do
12961 IFS=$as_save_IFS
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12965 ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext"
12966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12967 break 2
12968 fi
12969done
12970 done
12971IFS=$as_save_IFS
12972
12973 ;;
12974esac
12975fi
12976ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR
12977if test -n "$ac_pt_MENHIR"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5
12979$as_echo "$ac_pt_MENHIR" >&6; }
12980else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
12983fi
12984
12985 if test "x$ac_pt_MENHIR" = x; then
12986 MENHIR=""
12987 else
12988 case $cross_compiling:$ac_tool_warned in
12989yes:)
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12992ac_tool_warned=yes ;;
12993esac
12994 MENHIR=$ac_pt_MENHIR
12995 fi
12996else
12997 MENHIR="$ac_cv_path_MENHIR"
12998fi
12999
13000
13001fi
13002
13003 SUBSTITUTED_MENHIR=yes
13004
13005
13006fi
13007
13008fi
13009
13010 if test -z "$MENHIR"; then :
13011 MENHIR=no
13012
13013fi
13014
13015if test "x$SUBSTITUTED_MENHIR" = xyes; then :
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: pregenerated parsers will be required as substitute for Menhir" >&5
13017$as_echo "$as_me: pregenerated parsers will be required as substitute for Menhir" >&6;}
13018
13019fi
13020
13021
13022# Check whether --enable-ocaml was given.
13023if test "${enable_ocaml+set}" = set; then :
13024 enableval=$enable_ocaml;
13025fi
13026
13027if test "x$OCAML_PKG_dynlink" = xno; then :
13028 if test -z "$enable_ocaml"; then :
13029 enable_ocaml=no
13030
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because the 'dynlink' package is not installed" >&5
13032$as_echo "$as_me: ocaml scripting is disabled because the 'dynlink' package is not installed" >&6;}
13033
13034elif test "x$enable_ocaml" != xno; then :
13035 as_fn_error $? "the OCaml package dynlink is required for ocaml scripting" "$LINENO" 5
13036
13037fi
13038
13039fi
13040
13041if test "x$OCAMLATLEAST311" = xno; then :
d6ce1786
C
13042 if test -z "$enable_ocaml"; then :
13043 enable_ocaml=no
13044
13045 { $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
13046$as_echo "$as_me: ocaml scripting has been disabled by default because your OCaml version may not support dynamic linking properly" >&6;}
feec80c3 13047
d6ce1786
C
13048elif test "x$enable_ocaml" = xyes; then :
13049 { $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
13050$as_echo "$as_me: warning: your ocaml version may be too old for dynamic linking, thus ocaml scripting may not work" >&6;}
13051
13052fi
13053
13054fi
13055
13056if test "x$OPTIMIZED_dynlink" = xno; then :
13057 if test -z "$enable_ocaml"; then :
13058 enable_ocaml=no
13059
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&5
13061$as_echo "$as_me: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&6;}
13062
13063elif test "x$enable_ocaml" = xyes; then :
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&5
13065$as_echo "$as_me: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&6;}
13066
13067fi
feec80c3
C
13068
13069fi
13070
13071if test -n "$SUBSTITUTED_OCAMLFIND"; then :
13072 if test -z "$enable_ocaml"; then :
13073 enable_ocaml=no
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it depends on ocamlfind" >&5
13076$as_echo "$as_me: ocaml scripting is disabled because it depends on ocamlfind" >&6;}
13077
13078elif test "x$enable_ocaml" != xno; then :
d6ce1786
C
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&5
13080$as_echo "$as_me: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&6;}
feec80c3
C
13081
13082fi
13083
13084fi
13085
13086if test "x$CAMLP4" = xno; then :
13087 if test -z "$enable_ocaml"; then :
13088 enable_ocaml=no
13089
d6ce1786
C
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it requires camlp4 which is not available" >&5
13091$as_echo "$as_me: ocaml scripting is disabled because it requires camlp4 which is not available" >&6;}
feec80c3
C
13092
13093elif test "x$enable_ocaml" != xno; then :
d6ce1786
C
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: camlp4 is not found but may be required when ocaml scripts are used" >&5
13095$as_echo "$as_me: warning: camlp4 is not found but may be required when ocaml scripts are used" >&6;}
feec80c3
C
13096
13097fi
13098
13099fi
13100
13101if test "x$enable_ocaml" = xno; then :
13102 FEATURE_dynlink=0
13103
13104 LOCALLIB_dynlink=0
13105
13106 FLAGS_dynlink=
13107
13108 MODULES_dynlink=
13109
13110 MODULESOPT_dynlink=
13111
13112 PATH_dynlink=
13113
13114 OCAMLCOCCI_MODULE=No_prepare_ocamlcocci
13115
13116 OCAMLCOCCI_FILE=no_prepare_ocamlcocci.ml
13117
13118
13119else
13120 enable_ocaml=yes
13121
13122 OCAMLCOCCI_MODULE=Yes_prepare_ocamlcocci
13123
13124 OCAMLCOCCI_FILE=yes_prepare_ocamlcocci.ml
13125
13126
13127fi
13128
13129
13130
13131# Check whether --enable-python was given.
13132if test "${enable_python+set}" = set; then :
13133 enableval=$enable_python;
13134fi
13135
13136if test "x$enable_python" != xno; then :
d6ce1786 13137 if test -n "$enable_python" -a -z "$enable_pycaml"; then :
feec80c3
C
13138 { $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
13139$as_echo "$as_me: skipped the selection of a global pycaml module because --enable-python is given explicitly but --enable-pycaml is not." >&6;}
13140 enable_pycaml=no
13141
13142
13143fi
13144
13145 if test -z "$PYVER"; then :
13146
13147
d6ce1786 13148
feec80c3
C
13149# Check whether --with-python was given.
13150if test "${with_python+set}" = set; then :
13151 withval=$with_python;
13152fi
13153
13154 with_PYTHON="$with_python"
13155
feec80c3
C
13156 if test -n "$with_PYTHON" -a "x$with_PYTHON" != xno -a "x$with_PYTHON" != xyes; then :
13157 PYTHON="$with_PYTHON"
13158
13159
d6ce1786
C
13160else
13161 PYTHON="python"
13162
13163
feec80c3
C
13164fi
13165
d6ce1786
C
13166 if test "x$with_PYTHON" = xno; then :
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: python is disabled explicitly" >&5
13168$as_echo "$as_me: python is disabled explicitly" >&6;}
13169 PYTHON=no
13170
13171
13172else
13173 if test "x$PYTHON" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then :
feec80c3
C
13174
13175
13176if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13177 if test -n "$ac_tool_prefix"; then
13178 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13179set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181$as_echo_n "checking for $ac_word... " >&6; }
13182if ${ac_cv_path_PKG_CONFIG+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184else
13185 case $PKG_CONFIG in
13186 [\\/]* | ?:[\\/]*)
13187 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13188 ;;
13189 *)
13190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191for as_dir in $PATH
13192do
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13197 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13200 fi
13201done
13202 done
13203IFS=$as_save_IFS
13204
13205 ;;
13206esac
13207fi
13208PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13209if test -n "$PKG_CONFIG"; then
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13211$as_echo "$PKG_CONFIG" >&6; }
13212else
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214$as_echo "no" >&6; }
13215fi
13216
13217
13218fi
13219if test -z "$ac_cv_path_PKG_CONFIG"; then
13220 ac_pt_PKG_CONFIG=$PKG_CONFIG
13221 # Extract the first word of "pkg-config", so it can be a program name with args.
13222set dummy pkg-config; ac_word=$2
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224$as_echo_n "checking for $ac_word... " >&6; }
13225if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13226 $as_echo_n "(cached) " >&6
13227else
13228 case $ac_pt_PKG_CONFIG in
13229 [\\/]* | ?:[\\/]*)
13230 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13231 ;;
13232 *)
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234for as_dir in $PATH
13235do
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13240 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13243 fi
13244done
13245 done
13246IFS=$as_save_IFS
13247
13248 ;;
13249esac
13250fi
13251ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13252if test -n "$ac_pt_PKG_CONFIG"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13254$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13255else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257$as_echo "no" >&6; }
13258fi
13259
13260 if test "x$ac_pt_PKG_CONFIG" = x; then
13261 PKG_CONFIG=""
13262 else
13263 case $cross_compiling:$ac_tool_warned in
13264yes:)
13265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13267ac_tool_warned=yes ;;
13268esac
13269 PKG_CONFIG=$ac_pt_PKG_CONFIG
13270 fi
13271else
13272 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13273fi
13274
13275fi
13276if test -n "$PKG_CONFIG"; then
13277 _pkg_min_version=0.9.0
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13279$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13280 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282$as_echo "yes" >&6; }
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285$as_echo "no" >&6; }
13286 PKG_CONFIG=""
13287 fi
13288
13289fi
13290
d6ce1786 13291elif test "x$PYTHON" = xocamllex -a "xPYTHON" = xOCAMLLEX; then :
feec80c3
C
13292 # checking for ocamllex
13293 if test -n "$ac_tool_prefix"; then
13294 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
13295set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297$as_echo_n "checking for $ac_word... " >&6; }
13298if ${ac_cv_path_OCAMLLEX+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300else
13301 case $OCAMLLEX in
13302 [\\/]* | ?:[\\/]*)
13303 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
13304 ;;
13305 *)
13306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307for as_dir in $PATH
13308do
13309 IFS=$as_save_IFS
13310 test -z "$as_dir" && as_dir=.
13311 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13313 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13315 break 2
13316 fi
13317done
13318 done
13319IFS=$as_save_IFS
13320
13321 ;;
13322esac
13323fi
13324OCAMLLEX=$ac_cv_path_OCAMLLEX
13325if test -n "$OCAMLLEX"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
13327$as_echo "$OCAMLLEX" >&6; }
13328else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330$as_echo "no" >&6; }
13331fi
13332
13333
13334fi
13335if test -z "$ac_cv_path_OCAMLLEX"; then
13336 ac_pt_OCAMLLEX=$OCAMLLEX
13337 # Extract the first word of "ocamllex", so it can be a program name with args.
13338set dummy ocamllex; ac_word=$2
13339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340$as_echo_n "checking for $ac_word... " >&6; }
13341if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343else
13344 case $ac_pt_OCAMLLEX in
13345 [\\/]* | ?:[\\/]*)
13346 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
13347 ;;
13348 *)
13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13356 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13359 fi
13360done
13361 done
13362IFS=$as_save_IFS
13363
13364 ;;
13365esac
13366fi
13367ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
13368if test -n "$ac_pt_OCAMLLEX"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
13370$as_echo "$ac_pt_OCAMLLEX" >&6; }
13371else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373$as_echo "no" >&6; }
13374fi
13375
13376 if test "x$ac_pt_OCAMLLEX" = x; then
13377 OCAMLLEX="no"
13378 else
13379 case $cross_compiling:$ac_tool_warned in
13380yes:)
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13383ac_tool_warned=yes ;;
13384esac
13385 OCAMLLEX=$ac_pt_OCAMLLEX
13386 fi
13387else
13388 OCAMLLEX="$ac_cv_path_OCAMLLEX"
13389fi
13390
13391 if test "$OCAMLLEX" != "no"; then
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
13394set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396$as_echo_n "checking for $ac_word... " >&6; }
13397if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
13398 $as_echo_n "(cached) " >&6
13399else
13400 case $OCAMLLEXDOTOPT in
13401 [\\/]* | ?:[\\/]*)
13402 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
13403 ;;
13404 *)
13405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13412 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13415 fi
13416done
13417 done
13418IFS=$as_save_IFS
13419
13420 ;;
13421esac
13422fi
13423OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
13424if test -n "$OCAMLLEXDOTOPT"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
13426$as_echo "$OCAMLLEXDOTOPT" >&6; }
13427else
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429$as_echo "no" >&6; }
13430fi
13431
13432
13433fi
13434if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
13435 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
13436 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
13437set dummy ocamllex.opt; ac_word=$2
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439$as_echo_n "checking for $ac_word... " >&6; }
13440if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442else
13443 case $ac_pt_OCAMLLEXDOTOPT in
13444 [\\/]* | ?:[\\/]*)
13445 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
13446 ;;
13447 *)
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449for as_dir in $PATH
13450do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13455 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459done
13460 done
13461IFS=$as_save_IFS
13462
13463 ;;
13464esac
13465fi
13466ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
13467if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
13469$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
13470else
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472$as_echo "no" >&6; }
13473fi
13474
13475 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
13476 OCAMLLEXDOTOPT="no"
13477 else
13478 case $cross_compiling:$ac_tool_warned in
13479yes:)
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13482ac_tool_warned=yes ;;
13483esac
13484 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
13485 fi
13486else
13487 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
13488fi
13489
13490 if test "$OCAMLLEXDOTOPT" != "no"; then
13491 OCAMLLEX=$OCAMLLEXDOTOPT
13492 fi
13493 fi
13494
13495
13496
d6ce1786 13497elif test "x$PYTHON" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then :
feec80c3
C
13498 if test -n "$ac_tool_prefix"; then
13499 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
13500set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502$as_echo_n "checking for $ac_word... " >&6; }
13503if ${ac_cv_path_OCAMLYACC+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505else
13506 case $OCAMLYACC in
13507 [\\/]* | ?:[\\/]*)
13508 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
13509 ;;
13510 *)
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512for as_dir in $PATH
13513do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13518 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 break 2
13521 fi
13522done
13523 done
13524IFS=$as_save_IFS
13525
13526 ;;
13527esac
13528fi
13529OCAMLYACC=$ac_cv_path_OCAMLYACC
13530if test -n "$OCAMLYACC"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
13532$as_echo "$OCAMLYACC" >&6; }
13533else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535$as_echo "no" >&6; }
13536fi
13537
13538
13539fi
13540if test -z "$ac_cv_path_OCAMLYACC"; then
13541 ac_pt_OCAMLYACC=$OCAMLYACC
13542 # Extract the first word of "ocamlyacc", so it can be a program name with args.
13543set dummy ocamlyacc; ac_word=$2
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545$as_echo_n "checking for $ac_word... " >&6; }
13546if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548else
13549 case $ac_pt_OCAMLYACC in
13550 [\\/]* | ?:[\\/]*)
13551 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
13552 ;;
13553 *)
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555for as_dir in $PATH
13556do
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13561 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13564 fi
13565done
13566 done
13567IFS=$as_save_IFS
13568
13569 ;;
13570esac
13571fi
13572ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
13573if test -n "$ac_pt_OCAMLYACC"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
13575$as_echo "$ac_pt_OCAMLYACC" >&6; }
13576else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578$as_echo "no" >&6; }
13579fi
13580
13581 if test "x$ac_pt_OCAMLYACC" = x; then
13582 OCAMLYACC="no"
13583 else
13584 case $cross_compiling:$ac_tool_warned in
13585yes:)
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13588ac_tool_warned=yes ;;
13589esac
13590 OCAMLYACC=$ac_pt_OCAMLYACC
13591 fi
13592else
13593 OCAMLYACC="$ac_cv_path_OCAMLYACC"
13594fi
13595
13596
13597
13598
13599else
13600 if test -n "$ac_tool_prefix"; then
d6ce1786
C
13601 # Extract the first word of "${ac_tool_prefix}[$]PYTHON", so it can be a program name with args.
13602set dummy ${ac_tool_prefix}$PYTHON; ac_word=$2
feec80c3
C
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604$as_echo_n "checking for $ac_word... " >&6; }
13605if ${ac_cv_path_PYTHON+:} false; then :
13606 $as_echo_n "(cached) " >&6
13607else
13608 case $PYTHON in
13609 [\\/]* | ?:[\\/]*)
13610 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13611 ;;
13612 *)
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614for as_dir in $PATH
13615do
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13620 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13623 fi
13624done
13625 done
13626IFS=$as_save_IFS
13627
13628 ;;
13629esac
13630fi
13631PYTHON=$ac_cv_path_PYTHON
13632if test -n "$PYTHON"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13634$as_echo "$PYTHON" >&6; }
13635else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637$as_echo "no" >&6; }
13638fi
13639
13640
13641fi
13642if test -z "$ac_cv_path_PYTHON"; then
13643 ac_pt_PYTHON=$PYTHON
d6ce1786
C
13644 # Extract the first word of "[$]PYTHON", so it can be a program name with args.
13645set dummy $PYTHON; ac_word=$2
feec80c3
C
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647$as_echo_n "checking for $ac_word... " >&6; }
13648if ${ac_cv_path_ac_pt_PYTHON+:} false; then :
13649 $as_echo_n "(cached) " >&6
13650else
13651 case $ac_pt_PYTHON in
13652 [\\/]* | ?:[\\/]*)
13653 ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path.
13654 ;;
13655 *)
13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657for as_dir in $PATH
13658do
13659 IFS=$as_save_IFS
13660 test -z "$as_dir" && as_dir=.
13661 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13663 ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 break 2
13666 fi
13667done
13668 done
13669IFS=$as_save_IFS
13670
13671 ;;
13672esac
13673fi
13674ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON
13675if test -n "$ac_pt_PYTHON"; then
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5
13677$as_echo "$ac_pt_PYTHON" >&6; }
13678else
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13680$as_echo "no" >&6; }
13681fi
13682
13683 if test "x$ac_pt_PYTHON" = x; then
13684 PYTHON=""
13685 else
13686 case $cross_compiling:$ac_tool_warned in
13687yes:)
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13690ac_tool_warned=yes ;;
13691esac
13692 PYTHON=$ac_pt_PYTHON
13693 fi
13694else
13695 PYTHON="$ac_cv_path_PYTHON"
13696fi
13697
13698
13699fi
13700
13701
13702fi
13703
13704 if test -z "$PYTHON" -o "x$PYTHON" = xno; then :
13705 if test "x$with_PYTHON" = xyes; then :
13706 as_fn_error $? "--with=python is given explicitly but not found" "$LINENO" 5
13707
13708fi
13709
13710 if test -n ""; then :
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: python not found. Trying substitute ." >&5
13712$as_echo "$as_me: python not found. Trying substitute ." >&6;}
13713 PYTHON=""
13714
13715 if test "xpython" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then :
13716
13717
13718if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13719 if test -n "$ac_tool_prefix"; then
13720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13721set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723$as_echo_n "checking for $ac_word... " >&6; }
13724if ${ac_cv_path_PKG_CONFIG+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726else
13727 case $PKG_CONFIG in
13728 [\\/]* | ?:[\\/]*)
13729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13730 ;;
13731 *)
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733for as_dir in $PATH
13734do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13742 fi
13743done
13744 done
13745IFS=$as_save_IFS
13746
13747 ;;
13748esac
13749fi
13750PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13751if test -n "$PKG_CONFIG"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13753$as_echo "$PKG_CONFIG" >&6; }
13754else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756$as_echo "no" >&6; }
13757fi
13758
13759
13760fi
13761if test -z "$ac_cv_path_PKG_CONFIG"; then
13762 ac_pt_PKG_CONFIG=$PKG_CONFIG
13763 # Extract the first word of "pkg-config", so it can be a program name with args.
13764set dummy pkg-config; ac_word=$2
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13766$as_echo_n "checking for $ac_word... " >&6; }
13767if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769else
13770 case $ac_pt_PKG_CONFIG in
13771 [\\/]* | ?:[\\/]*)
13772 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13773 ;;
13774 *)
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776for as_dir in $PATH
13777do
13778 IFS=$as_save_IFS
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13782 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13784 break 2
13785 fi
13786done
13787 done
13788IFS=$as_save_IFS
13789
13790 ;;
13791esac
13792fi
13793ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13794if test -n "$ac_pt_PKG_CONFIG"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13796$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13797else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799$as_echo "no" >&6; }
13800fi
13801
13802 if test "x$ac_pt_PKG_CONFIG" = x; then
13803 PKG_CONFIG=""
13804 else
13805 case $cross_compiling:$ac_tool_warned in
13806yes:)
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13809ac_tool_warned=yes ;;
13810esac
13811 PKG_CONFIG=$ac_pt_PKG_CONFIG
13812 fi
13813else
13814 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13815fi
13816
13817fi
13818if test -n "$PKG_CONFIG"; then
13819 _pkg_min_version=0.9.0
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13821$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13822 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13824$as_echo "yes" >&6; }
13825 else
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827$as_echo "no" >&6; }
13828 PKG_CONFIG=""
13829 fi
13830
13831fi
13832
13833elif test "xpython" = xocamllex -a "xPYTHON" = xOCAMLLEX; then :
13834 # checking for ocamllex
13835 if test -n "$ac_tool_prefix"; then
13836 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
13837set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13839$as_echo_n "checking for $ac_word... " >&6; }
13840if ${ac_cv_path_OCAMLLEX+:} false; then :
13841 $as_echo_n "(cached) " >&6
13842else
13843 case $OCAMLLEX in
13844 [\\/]* | ?:[\\/]*)
13845 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
13846 ;;
13847 *)
13848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849for as_dir in $PATH
13850do
13851 IFS=$as_save_IFS
13852 test -z "$as_dir" && as_dir=.
13853 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13855 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13857 break 2
13858 fi
13859done
13860 done
13861IFS=$as_save_IFS
13862
13863 ;;
13864esac
13865fi
13866OCAMLLEX=$ac_cv_path_OCAMLLEX
13867if test -n "$OCAMLLEX"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
13869$as_echo "$OCAMLLEX" >&6; }
13870else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872$as_echo "no" >&6; }
13873fi
13874
13875
13876fi
13877if test -z "$ac_cv_path_OCAMLLEX"; then
13878 ac_pt_OCAMLLEX=$OCAMLLEX
13879 # Extract the first word of "ocamllex", so it can be a program name with args.
13880set dummy ocamllex; ac_word=$2
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
13883if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885else
13886 case $ac_pt_OCAMLLEX in
13887 [\\/]* | ?:[\\/]*)
13888 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
13889 ;;
13890 *)
13891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892for as_dir in $PATH
13893do
13894 IFS=$as_save_IFS
13895 test -z "$as_dir" && as_dir=.
13896 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13898 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13900 break 2
13901 fi
13902done
13903 done
13904IFS=$as_save_IFS
13905
13906 ;;
13907esac
13908fi
13909ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
13910if test -n "$ac_pt_OCAMLLEX"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
13912$as_echo "$ac_pt_OCAMLLEX" >&6; }
13913else
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915$as_echo "no" >&6; }
13916fi
13917
13918 if test "x$ac_pt_OCAMLLEX" = x; then
13919 OCAMLLEX="no"
13920 else
13921 case $cross_compiling:$ac_tool_warned in
13922yes:)
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13925ac_tool_warned=yes ;;
13926esac
13927 OCAMLLEX=$ac_pt_OCAMLLEX
13928 fi
13929else
13930 OCAMLLEX="$ac_cv_path_OCAMLLEX"
13931fi
13932
13933 if test "$OCAMLLEX" != "no"; then
13934 if test -n "$ac_tool_prefix"; then
13935 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
13936set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938$as_echo_n "checking for $ac_word... " >&6; }
13939if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941else
13942 case $OCAMLLEXDOTOPT in
13943 [\\/]* | ?:[\\/]*)
13944 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
13945 ;;
13946 *)
13947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948for as_dir in $PATH
13949do
13950 IFS=$as_save_IFS
13951 test -z "$as_dir" && as_dir=.
13952 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13954 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13956 break 2
13957 fi
13958done
13959 done
13960IFS=$as_save_IFS
13961
13962 ;;
13963esac
13964fi
13965OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
13966if test -n "$OCAMLLEXDOTOPT"; then
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
13968$as_echo "$OCAMLLEXDOTOPT" >&6; }
13969else
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971$as_echo "no" >&6; }
13972fi
13973
13974
13975fi
13976if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
13977 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
13978 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
13979set dummy ocamllex.opt; ac_word=$2
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13981$as_echo_n "checking for $ac_word... " >&6; }
13982if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
13983 $as_echo_n "(cached) " >&6
13984else
13985 case $ac_pt_OCAMLLEXDOTOPT in
13986 [\\/]* | ?:[\\/]*)
13987 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
13988 ;;
13989 *)
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991for as_dir in $PATH
13992do
13993 IFS=$as_save_IFS
13994 test -z "$as_dir" && as_dir=.
13995 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13997 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 break 2
14000 fi
14001done
14002 done
14003IFS=$as_save_IFS
14004
14005 ;;
14006esac
14007fi
14008ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
14009if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
14011$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
14012else
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014$as_echo "no" >&6; }
14015fi
14016
14017 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
14018 OCAMLLEXDOTOPT="no"
14019 else
14020 case $cross_compiling:$ac_tool_warned in
14021yes:)
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14024ac_tool_warned=yes ;;
14025esac
14026 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
14027 fi
14028else
14029 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
14030fi
14031
14032 if test "$OCAMLLEXDOTOPT" != "no"; then
14033 OCAMLLEX=$OCAMLLEXDOTOPT
14034 fi
14035 fi
14036
14037
14038
14039elif test "xpython" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then :
14040 if test -n "$ac_tool_prefix"; then
14041 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
14042set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044$as_echo_n "checking for $ac_word... " >&6; }
14045if ${ac_cv_path_OCAMLYACC+:} false; then :
14046 $as_echo_n "(cached) " >&6
14047else
14048 case $OCAMLYACC in
14049 [\\/]* | ?:[\\/]*)
14050 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
14051 ;;
14052 *)
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054for as_dir in $PATH
14055do
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14060 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14063 fi
14064done
14065 done
14066IFS=$as_save_IFS
14067
14068 ;;
14069esac
14070fi
14071OCAMLYACC=$ac_cv_path_OCAMLYACC
14072if test -n "$OCAMLYACC"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
14074$as_echo "$OCAMLYACC" >&6; }
14075else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077$as_echo "no" >&6; }
14078fi
14079
14080
14081fi
14082if test -z "$ac_cv_path_OCAMLYACC"; then
14083 ac_pt_OCAMLYACC=$OCAMLYACC
14084 # Extract the first word of "ocamlyacc", so it can be a program name with args.
14085set dummy ocamlyacc; ac_word=$2
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087$as_echo_n "checking for $ac_word... " >&6; }
14088if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
14089 $as_echo_n "(cached) " >&6
14090else
14091 case $ac_pt_OCAMLYACC in
14092 [\\/]* | ?:[\\/]*)
14093 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
14094 ;;
14095 *)
14096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097for as_dir in $PATH
14098do
14099 IFS=$as_save_IFS
14100 test -z "$as_dir" && as_dir=.
14101 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14103 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14105 break 2
14106 fi
14107done
14108 done
14109IFS=$as_save_IFS
14110
14111 ;;
14112esac
14113fi
14114ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
14115if test -n "$ac_pt_OCAMLYACC"; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
14117$as_echo "$ac_pt_OCAMLYACC" >&6; }
14118else
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120$as_echo "no" >&6; }
14121fi
14122
14123 if test "x$ac_pt_OCAMLYACC" = x; then
14124 OCAMLYACC="no"
14125 else
14126 case $cross_compiling:$ac_tool_warned in
14127yes:)
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14130ac_tool_warned=yes ;;
14131esac
14132 OCAMLYACC=$ac_pt_OCAMLYACC
14133 fi
14134else
14135 OCAMLYACC="$ac_cv_path_OCAMLYACC"
14136fi
14137
14138
14139
14140
14141else
14142 if test -n "$ac_tool_prefix"; then
14143 # Extract the first word of "${ac_tool_prefix}python", so it can be a program name with args.
14144set dummy ${ac_tool_prefix}python; ac_word=$2
14145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14146$as_echo_n "checking for $ac_word... " >&6; }
14147if ${ac_cv_path_PYTHON+:} false; then :
14148 $as_echo_n "(cached) " >&6
14149else
14150 case $PYTHON in
14151 [\\/]* | ?:[\\/]*)
14152 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14153 ;;
14154 *)
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156for as_dir in $PATH
14157do
14158 IFS=$as_save_IFS
14159 test -z "$as_dir" && as_dir=.
14160 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14162 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14164 break 2
14165 fi
14166done
14167 done
14168IFS=$as_save_IFS
14169
14170 ;;
14171esac
14172fi
14173PYTHON=$ac_cv_path_PYTHON
14174if test -n "$PYTHON"; then
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14176$as_echo "$PYTHON" >&6; }
14177else
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179$as_echo "no" >&6; }
14180fi
14181
14182
14183fi
14184if test -z "$ac_cv_path_PYTHON"; then
14185 ac_pt_PYTHON=$PYTHON
14186 # Extract the first word of "python", so it can be a program name with args.
14187set dummy python; ac_word=$2
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14189$as_echo_n "checking for $ac_word... " >&6; }
14190if ${ac_cv_path_ac_pt_PYTHON+:} false; then :
14191 $as_echo_n "(cached) " >&6
14192else
14193 case $ac_pt_PYTHON in
14194 [\\/]* | ?:[\\/]*)
14195 ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path.
14196 ;;
14197 *)
14198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199for as_dir in $PATH
14200do
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
14203 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14205 ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14207 break 2
14208 fi
14209done
14210 done
14211IFS=$as_save_IFS
14212
14213 ;;
14214esac
14215fi
14216ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON
14217if test -n "$ac_pt_PYTHON"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5
14219$as_echo "$ac_pt_PYTHON" >&6; }
14220else
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222$as_echo "no" >&6; }
14223fi
14224
14225 if test "x$ac_pt_PYTHON" = x; then
14226 PYTHON=""
14227 else
14228 case $cross_compiling:$ac_tool_warned in
14229yes:)
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14232ac_tool_warned=yes ;;
14233esac
14234 PYTHON=$ac_pt_PYTHON
14235 fi
14236else
14237 PYTHON="$ac_cv_path_PYTHON"
14238fi
14239
14240
14241fi
14242
14243 SUBSTITUTED_PYTHON=yes
14244
14245
14246fi
14247
14248fi
14249
14250 if test -z "$PYTHON"; then :
14251 PYTHON=no
14252
14253fi
14254
14255
d6ce1786
C
14256 if test "x$PYTHON" = xno -a -z "$with_python"; then :
14257 for ac_prog in python python3 python3.2 python3.1 python2 python2.7 python2.6 python2.5
14258do
14259 # Extract the first word of "$ac_prog", so it can be a program name with args.
14260set dummy $ac_prog; ac_word=$2
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14262$as_echo_n "checking for $ac_word... " >&6; }
14263if ${ac_cv_path_PYTHON+:} false; then :
14264 $as_echo_n "(cached) " >&6
14265else
14266 case $PYTHON in
14267 [\\/]* | ?:[\\/]*)
14268 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14269 ;;
14270 *)
14271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272for as_dir in $PATH
14273do
14274 IFS=$as_save_IFS
14275 test -z "$as_dir" && as_dir=.
14276 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6ce1786
C
14278 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14280 break 2
14281 fi
14282done
14283 done
14284IFS=$as_save_IFS
14285
14286 ;;
14287esac
14288fi
14289PYTHON=$ac_cv_path_PYTHON
14290if test -n "$PYTHON"; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14292$as_echo "$PYTHON" >&6; }
14293else
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14295$as_echo "no" >&6; }
14296fi
14297
14298
14299 test -n "$PYTHON" && break
14300done
14301
14302 if test -z "$PYTHON"; then :
14303 PYTHON=no
14304
14305fi
14306
14307fi
14308
feec80c3 14309 if test "x$PYTHON" = xno -a -n "$with_python" -a "x$with_python" != xyes; then :
d6ce1786
C
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: $with_python is not a found as tool, therefore interpreted as version" >&5
14311$as_echo "$as_me: $with_python is not a found as tool, therefore interpreted as version" >&6;}
14312 PYVER="$with_python"
feec80c3
C
14313
14314
14315fi
14316
14317 if test "x$PYTHON" != xno; then :
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python version" >&5
14319$as_echo_n "checking python version... " >&6; }
14320 PYVER=`$PYTHON -c "import sys; print(sys.version[:3])"`
14321 if test -n "$PYVER"; then :
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVER found" >&5
14323$as_echo "$PYVER found" >&6; }
14324else
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14326$as_echo "failed" >&6; }
14327fi
14328
14329
14330fi
14331
14332else
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: python version assumed to be $PYVER" >&5
14334$as_echo "$as_me: python version assumed to be $PYVER" >&6;}
14335
14336fi
14337
d6ce1786
C
14338 PYVER_MAJOR=${PYVER%%.*}
14339
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: python major version: $PYVER_MAJOR" >&5
14341$as_echo "$as_me: python major version: $PYVER_MAJOR" >&6;}
14342
feec80c3
C
14343
14344 if test -z "$PYVER"; then :
14345 if test "x$enable_python" = xyes; then :
14346 as_fn_error $? "python scripting is enabled explicitly but the version of python could not be determined" "$LINENO" 5
14347
14348fi
14349
14350else
d6ce1786
C
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for the corresponding python library" >&5
14352$as_echo "$as_me: looking for the corresponding python library" >&6;}
feec80c3
C
14353
14354pkg_failed=no
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
14356$as_echo_n "checking for PYTHON... " >&6; }
14357
14358if test -n "$PYTHON_CFLAGS"; then
14359 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
14360 elif test -n "$PKG_CONFIG"; then
14361 if test -n "$PKG_CONFIG" && \
14362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5
14363 ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5
14364 ac_status=$?
14365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14366 test $ac_status = 0; }; then
14367 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-$PYVER" 2>/dev/null`
14368else
14369 pkg_failed=yes
14370fi
14371 else
14372 pkg_failed=untried
14373fi
14374if test -n "$PYTHON_LIBS"; then
14375 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
14376 elif test -n "$PKG_CONFIG"; then
14377 if test -n "$PKG_CONFIG" && \
14378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5
14379 ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5
14380 ac_status=$?
14381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14382 test $ac_status = 0; }; then
14383 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-$PYVER" 2>/dev/null`
14384else
14385 pkg_failed=yes
14386fi
14387 else
14388 pkg_failed=untried
14389fi
14390
14391
14392
14393if test $pkg_failed = yes; then
14394
14395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14396 _pkg_short_errors_supported=yes
14397else
14398 _pkg_short_errors_supported=no
14399fi
14400 if test $_pkg_short_errors_supported = yes; then
14401 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "python-$PYVER" 2>&1`
14402 else
14403 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors "python-$PYVER" 2>&1`
14404 fi
14405 # Put the nasty error message in config.log where it belongs
14406 echo "$PYTHON_PKG_ERRORS" >&5
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409$as_echo "no" >&6; }
14410 HAVE_PYTHON=no
14411
14412elif test $pkg_failed = untried; then
14413 HAVE_PYTHON=no
14414
14415else
14416 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
14417 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14419$as_echo "yes" >&6; }
14420 HAVE_PYTHON=yes
14421
14422fi
14423
14424 if test "x$HAVE_PYTHON" != xyes -a "x$enable_python" != xyes; then :
d6ce1786
C
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: trying the default python library as fallback" >&5
14426$as_echo "$as_me: trying the default python library as fallback" >&6;}
feec80c3
C
14427
14428pkg_failed=no
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
14430$as_echo_n "checking for PYTHON... " >&6; }
14431
14432if test -n "$PYTHON_CFLAGS"; then
14433 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
14434 elif test -n "$PKG_CONFIG"; then
14435 if test -n "$PKG_CONFIG" && \
14436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
14437 ($PKG_CONFIG --exists --print-errors "python") 2>&5
14438 ac_status=$?
14439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14440 test $ac_status = 0; }; then
14441 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null`
14442else
14443 pkg_failed=yes
14444fi
14445 else
14446 pkg_failed=untried
14447fi
14448if test -n "$PYTHON_LIBS"; then
14449 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
14450 elif test -n "$PKG_CONFIG"; then
14451 if test -n "$PKG_CONFIG" && \
14452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
14453 ($PKG_CONFIG --exists --print-errors "python") 2>&5
14454 ac_status=$?
14455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14456 test $ac_status = 0; }; then
14457 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null`
14458else
14459 pkg_failed=yes
14460fi
14461 else
14462 pkg_failed=untried
14463fi
14464
14465
14466
14467if test $pkg_failed = yes; then
14468
14469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14470 _pkg_short_errors_supported=yes
14471else
14472 _pkg_short_errors_supported=no
14473fi
14474 if test $_pkg_short_errors_supported = yes; then
14475 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "python" 2>&1`
14476 else
14477 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors "python" 2>&1`
14478 fi
14479 # Put the nasty error message in config.log where it belongs
14480 echo "$PYTHON_PKG_ERRORS" >&5
14481
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483$as_echo "no" >&6; }
14484 HAVE_PYTHON=no
14485
14486elif test $pkg_failed = untried; then
14487 HAVE_PYTHON=no
14488
14489else
14490 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
14491 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14493$as_echo "yes" >&6; }
14494 HAVE_PYTHON=yes
14495
14496fi
14497
14498fi
14499
14500fi
14501
14502fi
14503
14504if test -z "$enable_python"; then :
14505 if test "x$HAVE_PYTHON" = xyes; then :
14506 enable_python=yes
14507
14508
14509else
14510 enable_python=no
14511
14512
14513fi
14514
14515fi
14516
14517if test "x$enable_python" != xno; then :
14518 if test "x$HAVE_PYTHON" = xyes; then :
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: support for python scripts is enabled" >&5
14520$as_echo "$as_me: support for python scripts is enabled" >&6;}
14521
14522else
14523 as_fn_error $? "the python scripts feature is enabled but the pkg-config python library is not found" "$LINENO" 5
14524
14525fi
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pycaml" >&5
14528$as_echo "$as_me: configuring package pycaml" >&6;}
14529 # Check whether --enable-pycaml was given.
14530if test "${enable_pycaml+set}" = set; then :
14531 enableval=$enable_pycaml;
14532fi
14533
14534
14535 if test "x$enable_pycaml" != xno; then :
14536
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pycaml" >&5
14538$as_echo_n "checking for OCaml findlib package pycaml... " >&6; }
14539
14540 unset found
14541 unset pkg
14542 found=no
14543 for pkg in pycaml ; do
14544 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14546$as_echo "found" >&6; }
14547 OCAML_PKG_pycaml=$pkg
14548 found=yes
14549 break
14550 fi
14551 done
14552 if test "$found" = "no" ; then
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14554$as_echo "not found" >&6; }
14555 OCAML_PKG_pycaml=no
14556 fi
14557
14558
14559
14560 if test "x$OCAML_PKG_pycaml" != xno; then :
14561 PATH_pycaml=`$OCAMLFIND query pycaml 2>/dev/null`
14562
14563
14564fi
14565
14566 GLOBAL_pycaml=$OCAML_PKG_pycaml
14567
14568
14569 if test "x$GLOBAL_pycaml" != xno; then :
14570 enable_pycaml=yes
14571
14572
14573else
14574 if test "x$enable_pycaml" = xyes; then :
14575 as_fn_error $? "OCaml package pycaml is not available but requested explicitly" "$LINENO" 5
14576
14577fi
d6ce1786
C
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pycaml is not available" >&5
14579$as_echo "$as_me: OCaml package pycaml is not available" >&6;}
feec80c3
C
14580 enable_pycaml=no
14581
14582
14583fi
14584
14585fi
14586
14587 if test "x$enable_pycaml" = xno; then :
14588 { pkgdir=; unset pkgdir;}
14589 pkgdir="$COCCI_OCAML_EXTERNAL/pycaml/"
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pycaml" >&5
14591$as_echo_n "checking for a bundled substitute of pycaml... " >&6; }
14592 if test -d "$pkgdir"; then :
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14594$as_echo "yes" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pycaml in $pkgdir" >&5
14596$as_echo "$as_me: using bundled substitute for pycaml in $pkgdir" >&6;}
14597 enable_pycaml=local
14598
14599 PATH_pycaml="$pkgdir"
14600
14601
14602else
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
14604$as_echo "not available" >&6; }
14605fi
14606
14607fi
14608
14609 if test "x$enable_pycaml" != xno; then :
14610 FEATURE_pycaml=1
14611
14612 FLAGS_pycaml='$(FLAGS_pycaml)'
14613
d6ce1786
C
14614 OPTFLAGS_pycaml='$(OPTFLAGS_pycaml)'
14615
feec80c3
C
14616
14617 if test "x$enable_pycaml" = xlocal; then :
14618 LOCALLIB_pycaml=1
14619
14620 MODULES_pycaml='$(LOCAL_pycaml)'
14621
14622 MODULESOPT_pycaml='$(LOCALOPT_pycaml)'
14623
14624
14625 if test -f "$PATH_pycaml/Makefile"; then :
14626 MAKE_pycaml=$PATH_pycaml
14627
14628
14629else
14630 MAKE_pycaml=
14631
14632
14633fi
14634
14635else
14636 MODULES_pycaml='$(GLOBAL_pycaml)'
14637
14638 MODULESOPT_pycaml='$(GLOBALOPT_pycaml)'
14639
14640
14641fi
14642
14643fi
14644
14645 if test "x$enable_pycaml" = xno; then :
14646 as_fn_error $? "OCaml package pycaml is required. Please make sure it is available." "$LINENO" 5
14647
14648fi
14649
14650 PYCOCCI_MODULE=Yes_pycocci
14651
14652 PYCOCCI_FILE=yes_pycocci.ml
14653
14654
14655else
14656 FEATURE_pycaml=0
14657
14658 LOCALLIB_pycaml=0
14659
14660 FLAGS_pycaml=
14661
14662 MODULES_pycaml=
14663
14664 MODULESOPT_pycaml=
14665
14666 PATH_pycaml=
14667
14668
14669 PYCOCCI_MODULE=No_pycocci
14670
14671 PYCOCCI_FILE=no_pycocci.ml
14672
14673
14674fi
14675
14676
14677# Check whether --enable-pcre-syntax was given.
14678if test "${enable_pcre_syntax+set}" = set; then :
14679 enableval=$enable_pcre_syntax;
14680fi
14681
14682if test "x$enable_pcre_syntax" != "xno"; then :
14683
14684pkg_failed=no
14685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
14686$as_echo_n "checking for PCRE... " >&6; }
14687
14688if test -n "$PCRE_CFLAGS"; then
14689 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
14690 elif test -n "$PKG_CONFIG"; then
14691 if test -n "$PKG_CONFIG" && \
14692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
14693 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
14694 ac_status=$?
14695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14696 test $ac_status = 0; }; then
14697 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
14698else
14699 pkg_failed=yes
14700fi
14701 else
14702 pkg_failed=untried
14703fi
14704if test -n "$PCRE_LIBS"; then
14705 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
14706 elif test -n "$PKG_CONFIG"; then
14707 if test -n "$PKG_CONFIG" && \
14708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
14709 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
14710 ac_status=$?
14711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712 test $ac_status = 0; }; then
14713 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
14714else
14715 pkg_failed=yes
14716fi
14717 else
14718 pkg_failed=untried
14719fi
14720
14721
14722
14723if test $pkg_failed = yes; then
14724
14725if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14726 _pkg_short_errors_supported=yes
14727else
14728 _pkg_short_errors_supported=no
14729fi
14730 if test $_pkg_short_errors_supported = yes; then
14731 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre" 2>&1`
14732 else
14733 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre" 2>&1`
14734 fi
14735 # Put the nasty error message in config.log where it belongs
14736 echo "$PCRE_PKG_ERRORS" >&5
14737
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739$as_echo "no" >&6; }
14740 HAVE_PCRE=no
14741
14742elif test $pkg_failed = untried; then
14743 HAVE_PCRE=no
14744
14745else
14746 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
14747 PCRE_LIBS=$pkg_cv_PCRE_LIBS
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14749$as_echo "yes" >&6; }
14750 HAVE_PCRE=yes
14751
14752fi
14753 if test -z "$enable_pcre_syntax" -a "x$HAVE_PCRE" != xyes; then :
14754 enable_pcre_syntax=no
14755
14756
14757else
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pcre" >&5
14759$as_echo "$as_me: configuring package pcre" >&6;}
14760 # Check whether --enable-pcre was given.
14761if test "${enable_pcre+set}" = set; then :
14762 enableval=$enable_pcre;
14763fi
14764
14765
14766 if test "x$enable_pcre" != xno; then :
14767
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pcre" >&5
14769$as_echo_n "checking for OCaml findlib package pcre... " >&6; }
14770
14771 unset found
14772 unset pkg
14773 found=no
14774 for pkg in pcre ; do
14775 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14777$as_echo "found" >&6; }
14778 OCAML_PKG_pcre=$pkg
14779 found=yes
14780 break
14781 fi
14782 done
14783 if test "$found" = "no" ; then
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14785$as_echo "not found" >&6; }
14786 OCAML_PKG_pcre=no
14787 fi
14788
14789
14790
14791 if test "x$OCAML_PKG_pcre" != xno; then :
14792 PATH_pcre=`$OCAMLFIND query pcre 2>/dev/null`
14793
14794
14795fi
14796
14797 GLOBAL_pcre=$OCAML_PKG_pcre
14798
14799
14800 if test "x$GLOBAL_pcre" != xno; then :
14801 enable_pcre=yes
14802
14803
14804else
14805 if test "x$enable_pcre" = xyes; then :
14806 as_fn_error $? "OCaml package pcre is not available but requested explicitly" "$LINENO" 5
14807
14808fi
d6ce1786
C
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pcre is not available" >&5
14810$as_echo "$as_me: OCaml package pcre is not available" >&6;}
feec80c3
C
14811 enable_pcre=no
14812
14813
14814fi
14815
14816fi
14817
14818 if test "x$enable_pcre" = xno; then :
14819 { pkgdir=; unset pkgdir;}
14820 pkgdir="$COCCI_OCAML_EXTERNAL/pcre/"
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pcre" >&5
14822$as_echo_n "checking for a bundled substitute of pcre... " >&6; }
14823 if test -d "$pkgdir"; then :
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14825$as_echo "yes" >&6; }
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pcre in $pkgdir" >&5
14827$as_echo "$as_me: using bundled substitute for pcre in $pkgdir" >&6;}
14828 enable_pcre=local
14829
14830 PATH_pcre="$pkgdir"
14831
14832
14833else
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
14835$as_echo "not available" >&6; }
14836fi
14837
14838fi
14839
14840 if test "x$enable_pcre" != xno; then :
14841 FEATURE_pcre=1
14842
14843 FLAGS_pcre='$(FLAGS_pcre)'
14844
d6ce1786
C
14845 OPTFLAGS_pcre='$(OPTFLAGS_pcre)'
14846
feec80c3
C
14847
14848 if test "x$enable_pcre" = xlocal; then :
14849 LOCALLIB_pcre=1
14850
14851 MODULES_pcre='$(LOCAL_pcre)'
14852
14853 MODULESOPT_pcre='$(LOCALOPT_pcre)'
14854
14855
14856 if test -f "$PATH_pcre/Makefile"; then :
14857 MAKE_pcre=$PATH_pcre
14858
14859
14860else
14861 MAKE_pcre=
14862
14863
14864fi
14865
14866else
14867 MODULES_pcre='$(GLOBAL_pcre)'
14868
14869 MODULESOPT_pcre='$(GLOBALOPT_pcre)'
14870
14871
14872fi
14873
14874fi
14875 enable_pcre_syntax=$enable_pcre
14876
14877fi
14878
14879fi
14880
14881if test "x$enable_pcre_syntax" != xno; then :
14882 if test "x$HAVE_PCRE" = xyes; then :
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: support for pcre syntax is enabled" >&5
14884$as_echo "$as_me: support for pcre syntax is enabled" >&6;}
14885
14886else
14887 as_fn_error $? "the pcre feature is enabled but the pkg-config libpcre library is not found" "$LINENO" 5
14888
14889fi
14890
14891 REGEXP_MODULE=Regexp_pcre
14892
14893 REGEXP_FILE=regexp_pcre.ml
14894
14895
14896else
14897 FEATURE_pcre=0
14898
14899 LOCALLIB_pcre=0
14900
14901 FLAGS_pcre=
14902
14903 MODULES_pcre=
14904
14905 MODULESOPT_pcre=
14906
14907 PATH_pcre=
14908
14909
14910 REGEXP_MODULE=Regexp_str
14911
14912 REGEXP_FILE=regexp_str.ml
14913
14914
14915fi
14916
14917
feec80c3
C
14918
14919
14920if test "$prefix" = "NONE"; then :
14921 prefix=$ac_default_prefix
14922fi
14923
14924
14925
14926SHAREDIR="${prefix}/share/coccinelle"
14927
14928
14929if test "x$enable_python" != xno; then :
14930 FEATURE_PYTHON=1
14931
14932
14933else
14934 FEATURE_PYTHON=0
14935
14936
14937fi
14938
14939if test "x$enable_ocaml" != xno; then :
14940 FEATURE_OCAML=1
14941
14942
14943else
14944 FEATURE_OCAML=0
14945
14946
14947fi
14948
d6ce1786 14949if test "x$OCAMLATLEAST311" = xyes -a "x$enable_ocaml" = xyes -a "x$OCAMLOPT" != xno; then :
feec80c3
C
14950 DYNLINK_IS_NATIVE=Dynlink.is_native
14951
14952
14953else
14954 DYNLINK_IS_NATIVE=false
14955
14956
14957fi
14958
14959
14960
14961# Check whether --with-pdflatex was given.
14962if test "${with_pdflatex+set}" = set; then :
14963 withval=$with_pdflatex;
14964fi
14965
14966 with_PDFLATEX="$with_pdflatex"
14967
feec80c3
C
14968 if test -n "$with_PDFLATEX" -a "x$with_PDFLATEX" != xno -a "x$with_PDFLATEX" != xyes; then :
14969 PDFLATEX="$with_PDFLATEX"
14970
14971
d6ce1786
C
14972else
14973 PDFLATEX="pdflatex"
14974
14975
feec80c3
C
14976fi
14977
d6ce1786
C
14978 if test "x$with_PDFLATEX" = xno; then :
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex is disabled explicitly" >&5
14980$as_echo "$as_me: pdflatex is disabled explicitly" >&6;}
14981 PDFLATEX=no
14982
14983
14984else
14985 if test "x$PDFLATEX" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then :
feec80c3
C
14986
14987
14988if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14989 if test -n "$ac_tool_prefix"; then
14990 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14991set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14993$as_echo_n "checking for $ac_word... " >&6; }
14994if ${ac_cv_path_PKG_CONFIG+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996else
14997 case $PKG_CONFIG in
14998 [\\/]* | ?:[\\/]*)
14999 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15000 ;;
15001 *)
15002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15003for as_dir in $PATH
15004do
15005 IFS=$as_save_IFS
15006 test -z "$as_dir" && as_dir=.
15007 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15009 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15011 break 2
15012 fi
15013done
15014 done
15015IFS=$as_save_IFS
15016
15017 ;;
15018esac
15019fi
15020PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15021if test -n "$PKG_CONFIG"; then
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15023$as_echo "$PKG_CONFIG" >&6; }
15024else
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15026$as_echo "no" >&6; }
15027fi
15028
15029
15030fi
15031if test -z "$ac_cv_path_PKG_CONFIG"; then
15032 ac_pt_PKG_CONFIG=$PKG_CONFIG
15033 # Extract the first word of "pkg-config", so it can be a program name with args.
15034set dummy pkg-config; ac_word=$2
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15036$as_echo_n "checking for $ac_word... " >&6; }
15037if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15038 $as_echo_n "(cached) " >&6
15039else
15040 case $ac_pt_PKG_CONFIG in
15041 [\\/]* | ?:[\\/]*)
15042 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15043 ;;
15044 *)
15045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15046for as_dir in $PATH
15047do
15048 IFS=$as_save_IFS
15049 test -z "$as_dir" && as_dir=.
15050 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15052 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15054 break 2
15055 fi
15056done
15057 done
15058IFS=$as_save_IFS
15059
15060 ;;
15061esac
15062fi
15063ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15064if test -n "$ac_pt_PKG_CONFIG"; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15066$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15067else
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069$as_echo "no" >&6; }
15070fi
15071
15072 if test "x$ac_pt_PKG_CONFIG" = x; then
15073 PKG_CONFIG=""
15074 else
15075 case $cross_compiling:$ac_tool_warned in
15076yes:)
15077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15079ac_tool_warned=yes ;;
15080esac
15081 PKG_CONFIG=$ac_pt_PKG_CONFIG
15082 fi
15083else
15084 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15085fi
15086
15087fi
15088if test -n "$PKG_CONFIG"; then
15089 _pkg_min_version=0.9.0
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15091$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15092 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15094$as_echo "yes" >&6; }
15095 else
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097$as_echo "no" >&6; }
15098 PKG_CONFIG=""
15099 fi
15100
15101fi
15102
d6ce1786 15103elif test "x$PDFLATEX" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then :
feec80c3
C
15104 # checking for ocamllex
15105 if test -n "$ac_tool_prefix"; then
15106 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
15107set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15109$as_echo_n "checking for $ac_word... " >&6; }
15110if ${ac_cv_path_OCAMLLEX+:} false; then :
15111 $as_echo_n "(cached) " >&6
15112else
15113 case $OCAMLLEX in
15114 [\\/]* | ?:[\\/]*)
15115 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
15116 ;;
15117 *)
15118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15119for as_dir in $PATH
15120do
15121 IFS=$as_save_IFS
15122 test -z "$as_dir" && as_dir=.
15123 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15125 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15127 break 2
15128 fi
15129done
15130 done
15131IFS=$as_save_IFS
15132
15133 ;;
15134esac
15135fi
15136OCAMLLEX=$ac_cv_path_OCAMLLEX
15137if test -n "$OCAMLLEX"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
15139$as_echo "$OCAMLLEX" >&6; }
15140else
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142$as_echo "no" >&6; }
15143fi
15144
15145
15146fi
15147if test -z "$ac_cv_path_OCAMLLEX"; then
15148 ac_pt_OCAMLLEX=$OCAMLLEX
15149 # Extract the first word of "ocamllex", so it can be a program name with args.
15150set dummy ocamllex; ac_word=$2
15151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15152$as_echo_n "checking for $ac_word... " >&6; }
15153if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155else
15156 case $ac_pt_OCAMLLEX in
15157 [\\/]* | ?:[\\/]*)
15158 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
15159 ;;
15160 *)
15161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15162for as_dir in $PATH
15163do
15164 IFS=$as_save_IFS
15165 test -z "$as_dir" && as_dir=.
15166 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15168 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15170 break 2
15171 fi
15172done
15173 done
15174IFS=$as_save_IFS
15175
15176 ;;
15177esac
15178fi
15179ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
15180if test -n "$ac_pt_OCAMLLEX"; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
15182$as_echo "$ac_pt_OCAMLLEX" >&6; }
15183else
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15185$as_echo "no" >&6; }
15186fi
15187
15188 if test "x$ac_pt_OCAMLLEX" = x; then
15189 OCAMLLEX="no"
15190 else
15191 case $cross_compiling:$ac_tool_warned in
15192yes:)
15193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15195ac_tool_warned=yes ;;
15196esac
15197 OCAMLLEX=$ac_pt_OCAMLLEX
15198 fi
15199else
15200 OCAMLLEX="$ac_cv_path_OCAMLLEX"
15201fi
15202
15203 if test "$OCAMLLEX" != "no"; then
15204 if test -n "$ac_tool_prefix"; then
15205 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
15206set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15208$as_echo_n "checking for $ac_word... " >&6; }
15209if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211else
15212 case $OCAMLLEXDOTOPT in
15213 [\\/]* | ?:[\\/]*)
15214 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
15215 ;;
15216 *)
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218for as_dir in $PATH
15219do
15220 IFS=$as_save_IFS
15221 test -z "$as_dir" && as_dir=.
15222 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15224 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15226 break 2
15227 fi
15228done
15229 done
15230IFS=$as_save_IFS
15231
15232 ;;
15233esac
15234fi
15235OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
15236if test -n "$OCAMLLEXDOTOPT"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
15238$as_echo "$OCAMLLEXDOTOPT" >&6; }
15239else
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241$as_echo "no" >&6; }
15242fi
15243
15244
15245fi
15246if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
15247 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
15248 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
15249set dummy ocamllex.opt; ac_word=$2
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15251$as_echo_n "checking for $ac_word... " >&6; }
15252if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
15253 $as_echo_n "(cached) " >&6
15254else
15255 case $ac_pt_OCAMLLEXDOTOPT in
15256 [\\/]* | ?:[\\/]*)
15257 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
15258 ;;
15259 *)
15260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261for as_dir in $PATH
15262do
15263 IFS=$as_save_IFS
15264 test -z "$as_dir" && as_dir=.
15265 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15267 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15269 break 2
15270 fi
15271done
15272 done
15273IFS=$as_save_IFS
15274
15275 ;;
15276esac
15277fi
15278ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
15279if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
15281$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
15282else
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284$as_echo "no" >&6; }
15285fi
15286
15287 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
15288 OCAMLLEXDOTOPT="no"
15289 else
15290 case $cross_compiling:$ac_tool_warned in
15291yes:)
15292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15294ac_tool_warned=yes ;;
15295esac
15296 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
15297 fi
15298else
15299 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
15300fi
15301
15302 if test "$OCAMLLEXDOTOPT" != "no"; then
15303 OCAMLLEX=$OCAMLLEXDOTOPT
15304 fi
15305 fi
15306
15307
15308
d6ce1786 15309elif test "x$PDFLATEX" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then :
feec80c3
C
15310 if test -n "$ac_tool_prefix"; then
15311 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
15312set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15314$as_echo_n "checking for $ac_word... " >&6; }
15315if ${ac_cv_path_OCAMLYACC+:} false; then :
15316 $as_echo_n "(cached) " >&6
15317else
15318 case $OCAMLYACC in
15319 [\\/]* | ?:[\\/]*)
15320 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
15321 ;;
15322 *)
15323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15324for as_dir in $PATH
15325do
15326 IFS=$as_save_IFS
15327 test -z "$as_dir" && as_dir=.
15328 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15330 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
15331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15332 break 2
15333 fi
15334done
15335 done
15336IFS=$as_save_IFS
15337
15338 ;;
15339esac
15340fi
15341OCAMLYACC=$ac_cv_path_OCAMLYACC
15342if test -n "$OCAMLYACC"; then
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
15344$as_echo "$OCAMLYACC" >&6; }
15345else
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347$as_echo "no" >&6; }
15348fi
15349
15350
15351fi
15352if test -z "$ac_cv_path_OCAMLYACC"; then
15353 ac_pt_OCAMLYACC=$OCAMLYACC
15354 # Extract the first word of "ocamlyacc", so it can be a program name with args.
15355set dummy ocamlyacc; ac_word=$2
15356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15357$as_echo_n "checking for $ac_word... " >&6; }
15358if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360else
15361 case $ac_pt_OCAMLYACC in
15362 [\\/]* | ?:[\\/]*)
15363 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
15364 ;;
15365 *)
15366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15367for as_dir in $PATH
15368do
15369 IFS=$as_save_IFS
15370 test -z "$as_dir" && as_dir=.
15371 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15373 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
15374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15375 break 2
15376 fi
15377done
15378 done
15379IFS=$as_save_IFS
15380
15381 ;;
15382esac
15383fi
15384ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
15385if test -n "$ac_pt_OCAMLYACC"; then
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
15387$as_echo "$ac_pt_OCAMLYACC" >&6; }
15388else
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15390$as_echo "no" >&6; }
15391fi
15392
15393 if test "x$ac_pt_OCAMLYACC" = x; then
15394 OCAMLYACC="no"
15395 else
15396 case $cross_compiling:$ac_tool_warned in
15397yes:)
15398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15400ac_tool_warned=yes ;;
15401esac
15402 OCAMLYACC=$ac_pt_OCAMLYACC
15403 fi
15404else
15405 OCAMLYACC="$ac_cv_path_OCAMLYACC"
15406fi
15407
15408
15409
15410
15411else
15412 if test -n "$ac_tool_prefix"; then
d6ce1786
C
15413 # Extract the first word of "${ac_tool_prefix}[$]PDFLATEX", so it can be a program name with args.
15414set dummy ${ac_tool_prefix}$PDFLATEX; ac_word=$2
feec80c3
C
15415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15416$as_echo_n "checking for $ac_word... " >&6; }
15417if ${ac_cv_path_PDFLATEX+:} false; then :
15418 $as_echo_n "(cached) " >&6
15419else
15420 case $PDFLATEX in
15421 [\\/]* | ?:[\\/]*)
15422 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
15423 ;;
15424 *)
15425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426for as_dir in $PATH
15427do
15428 IFS=$as_save_IFS
15429 test -z "$as_dir" && as_dir=.
15430 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15432 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
15433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15434 break 2
15435 fi
15436done
15437 done
15438IFS=$as_save_IFS
15439
15440 ;;
15441esac
15442fi
15443PDFLATEX=$ac_cv_path_PDFLATEX
15444if test -n "$PDFLATEX"; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
15446$as_echo "$PDFLATEX" >&6; }
15447else
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449$as_echo "no" >&6; }
15450fi
15451
15452
15453fi
15454if test -z "$ac_cv_path_PDFLATEX"; then
15455 ac_pt_PDFLATEX=$PDFLATEX
d6ce1786
C
15456 # Extract the first word of "[$]PDFLATEX", so it can be a program name with args.
15457set dummy $PDFLATEX; ac_word=$2
feec80c3
C
15458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15459$as_echo_n "checking for $ac_word... " >&6; }
15460if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then :
15461 $as_echo_n "(cached) " >&6
15462else
15463 case $ac_pt_PDFLATEX in
15464 [\\/]* | ?:[\\/]*)
15465 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
15466 ;;
15467 *)
15468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15469for as_dir in $PATH
15470do
15471 IFS=$as_save_IFS
15472 test -z "$as_dir" && as_dir=.
15473 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15475 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
15476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15477 break 2
15478 fi
15479done
15480 done
15481IFS=$as_save_IFS
15482
15483 ;;
15484esac
15485fi
15486ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
15487if test -n "$ac_pt_PDFLATEX"; then
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
15489$as_echo "$ac_pt_PDFLATEX" >&6; }
15490else
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15492$as_echo "no" >&6; }
15493fi
15494
15495 if test "x$ac_pt_PDFLATEX" = x; then
15496 PDFLATEX=""
15497 else
15498 case $cross_compiling:$ac_tool_warned in
15499yes:)
15500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15502ac_tool_warned=yes ;;
15503esac
15504 PDFLATEX=$ac_pt_PDFLATEX
15505 fi
15506else
15507 PDFLATEX="$ac_cv_path_PDFLATEX"
15508fi
15509
15510
15511fi
15512
15513
15514fi
15515
15516 if test -z "$PDFLATEX" -o "x$PDFLATEX" = xno; then :
15517 if test "x$with_PDFLATEX" = xyes; then :
15518 as_fn_error $? "--with=pdflatex is given explicitly but not found" "$LINENO" 5
15519
15520fi
15521
15522 if test -n "$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"; then :
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&5
15524$as_echo "$as_me: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&6;}
15525 PDFLATEX="$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"
15526
15527 if test "xpdflatex" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then :
15528
15529
15530if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15531 if test -n "$ac_tool_prefix"; then
15532 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15533set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15535$as_echo_n "checking for $ac_word... " >&6; }
15536if ${ac_cv_path_PKG_CONFIG+:} false; then :
15537 $as_echo_n "(cached) " >&6
15538else
15539 case $PKG_CONFIG in
15540 [\\/]* | ?:[\\/]*)
15541 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15542 ;;
15543 *)
15544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545for as_dir in $PATH
15546do
15547 IFS=$as_save_IFS
15548 test -z "$as_dir" && as_dir=.
15549 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15551 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15553 break 2
15554 fi
15555done
15556 done
15557IFS=$as_save_IFS
15558
15559 ;;
15560esac
15561fi
15562PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15563if test -n "$PKG_CONFIG"; then
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15565$as_echo "$PKG_CONFIG" >&6; }
15566else
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15568$as_echo "no" >&6; }
15569fi
15570
15571
15572fi
15573if test -z "$ac_cv_path_PKG_CONFIG"; then
15574 ac_pt_PKG_CONFIG=$PKG_CONFIG
15575 # Extract the first word of "pkg-config", so it can be a program name with args.
15576set dummy pkg-config; ac_word=$2
15577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15578$as_echo_n "checking for $ac_word... " >&6; }
15579if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15580 $as_echo_n "(cached) " >&6
15581else
15582 case $ac_pt_PKG_CONFIG in
15583 [\\/]* | ?:[\\/]*)
15584 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15585 ;;
15586 *)
15587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15588for as_dir in $PATH
15589do
15590 IFS=$as_save_IFS
15591 test -z "$as_dir" && as_dir=.
15592 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15594 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15596 break 2
15597 fi
15598done
15599 done
15600IFS=$as_save_IFS
15601
15602 ;;
15603esac
15604fi
15605ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15606if test -n "$ac_pt_PKG_CONFIG"; then
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15608$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15609else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15611$as_echo "no" >&6; }
15612fi
15613
15614 if test "x$ac_pt_PKG_CONFIG" = x; then
15615 PKG_CONFIG=""
15616 else
15617 case $cross_compiling:$ac_tool_warned in
15618yes:)
15619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15621ac_tool_warned=yes ;;
15622esac
15623 PKG_CONFIG=$ac_pt_PKG_CONFIG
15624 fi
15625else
15626 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15627fi
15628
15629fi
15630if test -n "$PKG_CONFIG"; then
15631 _pkg_min_version=0.9.0
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15633$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15634 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15636$as_echo "yes" >&6; }
15637 else
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15639$as_echo "no" >&6; }
15640 PKG_CONFIG=""
15641 fi
15642
15643fi
15644
15645elif test "xpdflatex" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then :
15646 # checking for ocamllex
15647 if test -n "$ac_tool_prefix"; then
15648 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
15649set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
15650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15651$as_echo_n "checking for $ac_word... " >&6; }
15652if ${ac_cv_path_OCAMLLEX+:} false; then :
15653 $as_echo_n "(cached) " >&6
15654else
15655 case $OCAMLLEX in
15656 [\\/]* | ?:[\\/]*)
15657 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
15658 ;;
15659 *)
15660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15661for as_dir in $PATH
15662do
15663 IFS=$as_save_IFS
15664 test -z "$as_dir" && as_dir=.
15665 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15667 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15669 break 2
15670 fi
15671done
15672 done
15673IFS=$as_save_IFS
15674
15675 ;;
15676esac
15677fi
15678OCAMLLEX=$ac_cv_path_OCAMLLEX
15679if test -n "$OCAMLLEX"; then
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
15681$as_echo "$OCAMLLEX" >&6; }
15682else
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15684$as_echo "no" >&6; }
15685fi
15686
15687
15688fi
15689if test -z "$ac_cv_path_OCAMLLEX"; then
15690 ac_pt_OCAMLLEX=$OCAMLLEX
15691 # Extract the first word of "ocamllex", so it can be a program name with args.
15692set dummy ocamllex; ac_word=$2
15693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15694$as_echo_n "checking for $ac_word... " >&6; }
15695if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697else
15698 case $ac_pt_OCAMLLEX in
15699 [\\/]* | ?:[\\/]*)
15700 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
15701 ;;
15702 *)
15703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15704for as_dir in $PATH
15705do
15706 IFS=$as_save_IFS
15707 test -z "$as_dir" && as_dir=.
15708 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15710 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15712 break 2
15713 fi
15714done
15715 done
15716IFS=$as_save_IFS
15717
15718 ;;
15719esac
15720fi
15721ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
15722if test -n "$ac_pt_OCAMLLEX"; then
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
15724$as_echo "$ac_pt_OCAMLLEX" >&6; }
15725else
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727$as_echo "no" >&6; }
15728fi
15729
15730 if test "x$ac_pt_OCAMLLEX" = x; then
15731 OCAMLLEX="no"
15732 else
15733 case $cross_compiling:$ac_tool_warned in
15734yes:)
15735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15737ac_tool_warned=yes ;;
15738esac
15739 OCAMLLEX=$ac_pt_OCAMLLEX
15740 fi
15741else
15742 OCAMLLEX="$ac_cv_path_OCAMLLEX"
15743fi
15744
15745 if test "$OCAMLLEX" != "no"; then
15746 if test -n "$ac_tool_prefix"; then
15747 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
15748set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
15749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15750$as_echo_n "checking for $ac_word... " >&6; }
15751if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
15752 $as_echo_n "(cached) " >&6
15753else
15754 case $OCAMLLEXDOTOPT in
15755 [\\/]* | ?:[\\/]*)
15756 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
15757 ;;
15758 *)
15759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15760for as_dir in $PATH
15761do
15762 IFS=$as_save_IFS
15763 test -z "$as_dir" && as_dir=.
15764 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15766 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15768 break 2
15769 fi
15770done
15771 done
15772IFS=$as_save_IFS
15773
15774 ;;
15775esac
15776fi
15777OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
15778if test -n "$OCAMLLEXDOTOPT"; then
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
15780$as_echo "$OCAMLLEXDOTOPT" >&6; }
15781else
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15783$as_echo "no" >&6; }
15784fi
15785
15786
15787fi
15788if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
15789 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
15790 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
15791set dummy ocamllex.opt; ac_word=$2
15792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15793$as_echo_n "checking for $ac_word... " >&6; }
15794if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
15795 $as_echo_n "(cached) " >&6
15796else
15797 case $ac_pt_OCAMLLEXDOTOPT in
15798 [\\/]* | ?:[\\/]*)
15799 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
15800 ;;
15801 *)
15802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15803for as_dir in $PATH
15804do
15805 IFS=$as_save_IFS
15806 test -z "$as_dir" && as_dir=.
15807 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15809 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15811 break 2
15812 fi
15813done
15814 done
15815IFS=$as_save_IFS
15816
15817 ;;
15818esac
15819fi
15820ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
15821if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
15823$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
15824else
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826$as_echo "no" >&6; }
15827fi
15828
15829 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
15830 OCAMLLEXDOTOPT="no"
15831 else
15832 case $cross_compiling:$ac_tool_warned in
15833yes:)
15834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15836ac_tool_warned=yes ;;
15837esac
15838 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
15839 fi
15840else
15841 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
15842fi
15843
15844 if test "$OCAMLLEXDOTOPT" != "no"; then
15845 OCAMLLEX=$OCAMLLEXDOTOPT
15846 fi
15847 fi
15848
15849
15850
15851elif test "xpdflatex" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then :
15852 if test -n "$ac_tool_prefix"; then
15853 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
15854set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15856$as_echo_n "checking for $ac_word... " >&6; }
15857if ${ac_cv_path_OCAMLYACC+:} false; then :
15858 $as_echo_n "(cached) " >&6
15859else
15860 case $OCAMLYACC in
15861 [\\/]* | ?:[\\/]*)
15862 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
15863 ;;
15864 *)
15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866for as_dir in $PATH
15867do
15868 IFS=$as_save_IFS
15869 test -z "$as_dir" && as_dir=.
15870 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15872 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
15873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15874 break 2
15875 fi
15876done
15877 done
15878IFS=$as_save_IFS
15879
15880 ;;
15881esac
15882fi
15883OCAMLYACC=$ac_cv_path_OCAMLYACC
15884if test -n "$OCAMLYACC"; then
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
15886$as_echo "$OCAMLYACC" >&6; }
15887else
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889$as_echo "no" >&6; }
15890fi
15891
15892
15893fi
15894if test -z "$ac_cv_path_OCAMLYACC"; then
15895 ac_pt_OCAMLYACC=$OCAMLYACC
15896 # Extract the first word of "ocamlyacc", so it can be a program name with args.
15897set dummy ocamlyacc; ac_word=$2
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15899$as_echo_n "checking for $ac_word... " >&6; }
15900if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
15901 $as_echo_n "(cached) " >&6
15902else
15903 case $ac_pt_OCAMLYACC in
15904 [\\/]* | ?:[\\/]*)
15905 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
15906 ;;
15907 *)
15908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15909for as_dir in $PATH
15910do
15911 IFS=$as_save_IFS
15912 test -z "$as_dir" && as_dir=.
15913 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15915 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
15916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15917 break 2
15918 fi
15919done
15920 done
15921IFS=$as_save_IFS
15922
15923 ;;
15924esac
15925fi
15926ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
15927if test -n "$ac_pt_OCAMLYACC"; then
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
15929$as_echo "$ac_pt_OCAMLYACC" >&6; }
15930else
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15932$as_echo "no" >&6; }
15933fi
15934
15935 if test "x$ac_pt_OCAMLYACC" = x; then
15936 OCAMLYACC="no"
15937 else
15938 case $cross_compiling:$ac_tool_warned in
15939yes:)
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15942ac_tool_warned=yes ;;
15943esac
15944 OCAMLYACC=$ac_pt_OCAMLYACC
15945 fi
15946else
15947 OCAMLYACC="$ac_cv_path_OCAMLYACC"
15948fi
15949
15950
15951
15952
15953else
15954 if test -n "$ac_tool_prefix"; then
15955 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
15956set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
15957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15958$as_echo_n "checking for $ac_word... " >&6; }
15959if ${ac_cv_path_PDFLATEX+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961else
15962 case $PDFLATEX in
15963 [\\/]* | ?:[\\/]*)
15964 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
15965 ;;
15966 *)
15967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15968for as_dir in $PATH
15969do
15970 IFS=$as_save_IFS
15971 test -z "$as_dir" && as_dir=.
15972 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15974 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
15975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15976 break 2
15977 fi
15978done
15979 done
15980IFS=$as_save_IFS
15981
15982 ;;
15983esac
15984fi
15985PDFLATEX=$ac_cv_path_PDFLATEX
15986if test -n "$PDFLATEX"; then
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
15988$as_echo "$PDFLATEX" >&6; }
15989else
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15991$as_echo "no" >&6; }
15992fi
15993
15994
15995fi
15996if test -z "$ac_cv_path_PDFLATEX"; then
15997 ac_pt_PDFLATEX=$PDFLATEX
15998 # Extract the first word of "pdflatex", so it can be a program name with args.
15999set dummy pdflatex; ac_word=$2
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16001$as_echo_n "checking for $ac_word... " >&6; }
16002if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004else
16005 case $ac_pt_PDFLATEX in
16006 [\\/]* | ?:[\\/]*)
16007 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
16008 ;;
16009 *)
16010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011for as_dir in $PATH
16012do
16013 IFS=$as_save_IFS
16014 test -z "$as_dir" && as_dir=.
16015 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16017 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16019 break 2
16020 fi
16021done
16022 done
16023IFS=$as_save_IFS
16024
16025 ;;
16026esac
16027fi
16028ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
16029if test -n "$ac_pt_PDFLATEX"; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
16031$as_echo "$ac_pt_PDFLATEX" >&6; }
16032else
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034$as_echo "no" >&6; }
16035fi
16036
16037 if test "x$ac_pt_PDFLATEX" = x; then
16038 PDFLATEX=""
16039 else
16040 case $cross_compiling:$ac_tool_warned in
16041yes:)
16042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16044ac_tool_warned=yes ;;
16045esac
16046 PDFLATEX=$ac_pt_PDFLATEX
16047 fi
16048else
16049 PDFLATEX="$ac_cv_path_PDFLATEX"
16050fi
16051
16052
16053fi
16054
16055 SUBSTITUTED_PDFLATEX=yes
16056
16057
16058fi
16059
16060fi
16061
16062 if test -z "$PDFLATEX"; then :
16063 PDFLATEX=no
16064
16065fi
16066
16067
16068
feec80c3
C
16069# Check whether --enable-release was given.
16070if test "${enable_release+set}" = set; then :
16071 enableval=$enable_release;
16072fi
16073
feec80c3
C
16074if test -z "$enable_release"; then :
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&5
16076$as_echo "$as_me: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&6;}
16077 enable_release=no
16078
16079
16080fi
16081
755320b0 16082
feec80c3
C
16083if test "x$enable_release" = xyes; then :
16084 MAKETARGET_ALL=all-release
16085
16086
16087elif test "x$enable_release" = xno; then :
16088 MAKETARGET_ALL=all-dev
16089
16090
755320b0
C
16091elif test "x$enable_release" = xprofile; then :
16092 if test -z "$OCAMLPROF" -o "x$OCAMLPROF" = xno; then :
16093 as_fn_error $? "ocamlprof is required for profiling, but is absent." "$LINENO" 5
16094
16095fi
16096
16097 MAKETARGET_ALL=all-dev
16098
16099 OCAMLC="$COCCI_SRCDIR/setup/wrapper-ocamlcp.sh \"$OCAMLCORIG\" \"$OCAMLPROF\""
16100
16101 MODULES_profiling=profiling.cmo
16102
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: configured coccinelle for profiling" >&5
16104$as_echo "$as_me: configured coccinelle for profiling" >&6;}
16105
feec80c3
C
16106else
16107 MAKETARGET_ALL="$enable_release"
16108
16109
16110fi
16111
d6ce1786
C
16112# Check whether --enable-opt was given.
16113if test "${enable_opt+set}" = set; then :
16114 enableval=$enable_opt;
16115fi
16116
16117if test "x$OCAMLOPT" = xno -a "x$enable_opt" != xno; then :
16118 if test -n "$enable_release" -a "x$enable_release" != xyes -a "x$enable_release" != xno; then :
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&5
16120$as_echo "$as_me: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&6;}
16121
16122elif test "x$enable_opt" = xyes; then :
16123 as_fn_error $? "the optimized version of coccinelle is requested explicitly, but ocamlopt is absent" "$LINENO" 5
16124
feec80c3 16125else
d6ce1786
C
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build because ocamlopt is not present" >&5
16127$as_echo "$as_me: the optimized version of coccinelle will not be build because ocamlopt is not present" >&6;}
16128 enable_opt=no
16129
16130
16131fi
16132
16133fi
16134
16135if test "x$OCAMLVERSION" = x3.11.2 -a -z "$enable_opt"; then :
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&5
16137$as_echo "$as_me: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&6;}
16138 enable_opt=no
16139
16140
feec80c3
C
16141fi
16142
d6ce1786
C
16143if test "x$OPTIMIZED_dynlink" = xno -a "x$enable_ocaml" = xyes; then :
16144 if test -z "$enable_opt"; then :
16145 { $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
16146$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;}
16147 enable_opt=no
16148
16149
16150elif test "x$enable_opt" = xyes; then :
16151 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
16152
16153fi
feec80c3 16154
d6ce1786 16155fi
feec80c3 16156
d6ce1786
C
16157# set the default enable-opt setting
16158if test -z "$enable_opt"; then :
16159 if test "x$enable_release" = xyes -o "x$enable_release" = xno; then :
16160 enable_opt="$enable_release"
feec80c3 16161
feec80c3 16162
d6ce1786 16163fi
feec80c3 16164
d6ce1786 16165fi
feec80c3 16166
d6ce1786
C
16167if test "x$enable_opt" = xyes; then :
16168 SPATCHNAME=spatch.opt
feec80c3 16169
d6ce1786 16170 MAKETARGET_SPATCH=opt-only
feec80c3 16171
feec80c3 16172
d6ce1786
C
16173else
16174 SPATCHNAME=spatch
feec80c3 16175
d6ce1786
C
16176 MAKETARGET_SPATCH=byte-only
16177
16178
16179fi
16180
16181
16182
16183ac_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"
feec80c3
C
16184
16185
16186cat >confcache <<\_ACEOF
16187# This file is a shell script that caches the results of configure
16188# tests run on this system so they can be shared between configure
16189# scripts and configure runs, see configure's option --config-cache.
16190# It is not useful on other systems. If it contains results you don't
16191# want to keep, you may remove or edit it.
16192#
16193# config.status only pays attention to the cache file if you give it
16194# the --recheck option to rerun configure.
16195#
16196# `ac_cv_env_foo' variables (set or unset) will be overridden when
16197# loading this file, other *unset* `ac_cv_foo' will be assigned the
16198# following values.
16199
16200_ACEOF
16201
16202# The following way of writing the cache mishandles newlines in values,
16203# but we know of no workaround that is simple, portable, and efficient.
16204# So, we kill variables containing newlines.
16205# Ultrix sh set writes to stderr and can't be redirected directly,
16206# and sets the high bit in the cache file unless we assign to the vars.
16207(
16208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16209 eval ac_val=\$$ac_var
16210 case $ac_val in #(
16211 *${as_nl}*)
16212 case $ac_var in #(
16213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16214$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16215 esac
16216 case $ac_var in #(
16217 _ | IFS | as_nl) ;; #(
16218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16219 *) { eval $ac_var=; unset $ac_var;} ;;
16220 esac ;;
16221 esac
16222 done
16223
16224 (set) 2>&1 |
16225 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16226 *${as_nl}ac_space=\ *)
16227 # `set' does not quote correctly, so add quotes: double-quote
16228 # substitution turns \\\\ into \\, and sed turns \\ into \.
16229 sed -n \
16230 "s/'/'\\\\''/g;
16231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16232 ;; #(
16233 *)
16234 # `set' quotes correctly as required by POSIX, so do not add quotes.
16235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16236 ;;
16237 esac |
16238 sort
16239) |
16240 sed '
16241 /^ac_cv_env_/b end
16242 t clear
16243 :clear
16244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16245 t end
16246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16247 :end' >>confcache
16248if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16249 if test -w "$cache_file"; then
16250 if test "x$cache_file" != "x/dev/null"; then
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16252$as_echo "$as_me: updating cache $cache_file" >&6;}
16253 if test ! -f "$cache_file" || test -h "$cache_file"; then
16254 cat confcache >"$cache_file"
16255 else
16256 case $cache_file in #(
16257 */* | ?:*)
16258 mv -f confcache "$cache_file"$$ &&
16259 mv -f "$cache_file"$$ "$cache_file" ;; #(
16260 *)
16261 mv -f confcache "$cache_file" ;;
16262 esac
16263 fi
16264 fi
16265 else
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16267$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16268 fi
16269fi
16270rm -f confcache
16271
16272test "x$prefix" = xNONE && prefix=$ac_default_prefix
16273# Let make expand exec_prefix.
16274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16275
16276# Transform confdefs.h into DEFS.
16277# Protect against shell expansion while executing Makefile rules.
16278# Protect against Makefile macro expansion.
16279#
16280# If the first sed substitution is executed (which looks for macros that
16281# take arguments), then branch to the quote section. Otherwise,
16282# look for a macro that doesn't take arguments.
16283ac_script='
16284:mline
16285/\\$/{
16286 N
16287 s,\\\n,,
16288 b mline
16289}
16290t clear
16291:clear
16292s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16293t quote
16294s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16295t quote
16296b any
16297:quote
16298s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16299s/\[/\\&/g
16300s/\]/\\&/g
16301s/\$/$$/g
16302H
16303:any
16304${
16305 g
16306 s/^\n//
16307 s/\n/ /g
16308 p
16309}
16310'
16311DEFS=`sed -n "$ac_script" confdefs.h`
16312
16313
16314ac_libobjs=
16315ac_ltlibobjs=
16316U=
16317for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16318 # 1. Remove the extension, and $U if already installed.
16319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16320 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16322 # will be set to the directory where LIBOBJS objects are built.
16323 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16324 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16325done
16326LIBOBJS=$ac_libobjs
16327
16328LTLIBOBJS=$ac_ltlibobjs
16329
16330
16331
16332: "${CONFIG_STATUS=./config.status}"
16333ac_write_fail=0
16334ac_clean_files_save=$ac_clean_files
16335ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16336{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16337$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16338as_write_fail=0
16339cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16340#! $SHELL
16341# Generated by $as_me.
16342# Run this file to recreate the current configuration.
16343# Compiler output produced by configure, useful for debugging
16344# configure, is in config.log if it exists.
16345
16346debug=false
16347ac_cs_recheck=false
16348ac_cs_silent=false
16349
16350SHELL=\${CONFIG_SHELL-$SHELL}
16351export SHELL
16352_ASEOF
16353cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16354## -------------------- ##
16355## M4sh Initialization. ##
16356## -------------------- ##
16357
16358# Be more Bourne compatible
16359DUALCASE=1; export DUALCASE # for MKS sh
16360if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16361 emulate sh
16362 NULLCMD=:
16363 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16364 # is contrary to our usage. Disable this feature.
16365 alias -g '${1+"$@"}'='"$@"'
16366 setopt NO_GLOB_SUBST
16367else
16368 case `(set -o) 2>/dev/null` in #(
16369 *posix*) :
16370 set -o posix ;; #(
16371 *) :
16372 ;;
16373esac
16374fi
16375
16376
16377as_nl='
16378'
16379export as_nl
16380# Printing a long string crashes Solaris 7 /usr/bin/printf.
16381as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16382as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16383as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16384# Prefer a ksh shell builtin over an external printf program on Solaris,
16385# but without wasting forks for bash or zsh.
16386if test -z "$BASH_VERSION$ZSH_VERSION" \
16387 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16388 as_echo='print -r --'
16389 as_echo_n='print -rn --'
16390elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16391 as_echo='printf %s\n'
16392 as_echo_n='printf %s'
16393else
16394 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16395 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16396 as_echo_n='/usr/ucb/echo -n'
16397 else
16398 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16399 as_echo_n_body='eval
16400 arg=$1;
16401 case $arg in #(
16402 *"$as_nl"*)
16403 expr "X$arg" : "X\\(.*\\)$as_nl";
16404 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16405 esac;
16406 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16407 '
16408 export as_echo_n_body
16409 as_echo_n='sh -c $as_echo_n_body as_echo'
16410 fi
16411 export as_echo_body
16412 as_echo='sh -c $as_echo_body as_echo'
16413fi
16414
16415# The user is always right.
16416if test "${PATH_SEPARATOR+set}" != set; then
16417 PATH_SEPARATOR=:
16418 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16419 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16420 PATH_SEPARATOR=';'
16421 }
16422fi
16423
16424
16425# IFS
16426# We need space, tab and new line, in precisely that order. Quoting is
16427# there to prevent editors from complaining about space-tab.
16428# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16429# splitting by setting IFS to empty value.)
16430IFS=" "" $as_nl"
16431
16432# Find who we are. Look in the path if we contain no directory separator.
16433as_myself=
16434case $0 in #((
16435 *[\\/]* ) as_myself=$0 ;;
16436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16437for as_dir in $PATH
16438do
16439 IFS=$as_save_IFS
16440 test -z "$as_dir" && as_dir=.
16441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16442 done
16443IFS=$as_save_IFS
16444
16445 ;;
16446esac
16447# We did not find ourselves, most probably we were run as `sh COMMAND'
16448# in which case we are not to be found in the path.
16449if test "x$as_myself" = x; then
16450 as_myself=$0
16451fi
16452if test ! -f "$as_myself"; then
16453 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16454 exit 1
16455fi
16456
16457# Unset variables that we do not need and which cause bugs (e.g. in
16458# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16459# suppresses any "Segmentation fault" message there. '((' could
16460# trigger a bug in pdksh 5.2.14.
16461for as_var in BASH_ENV ENV MAIL MAILPATH
16462do eval test x\${$as_var+set} = xset \
16463 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16464done
16465PS1='$ '
16466PS2='> '
16467PS4='+ '
16468
16469# NLS nuisances.
16470LC_ALL=C
16471export LC_ALL
16472LANGUAGE=C
16473export LANGUAGE
16474
16475# CDPATH.
16476(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16477
16478
16479# as_fn_error STATUS ERROR [LINENO LOG_FD]
16480# ----------------------------------------
16481# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16482# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16483# script with STATUS, using 1 if that was 0.
16484as_fn_error ()
16485{
16486 as_status=$1; test $as_status -eq 0 && as_status=1
16487 if test "$4"; then
16488 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16489 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16490 fi
16491 $as_echo "$as_me: error: $2" >&2
16492 as_fn_exit $as_status
16493} # as_fn_error
16494
16495
16496# as_fn_set_status STATUS
16497# -----------------------
16498# Set $? to STATUS, without forking.
16499as_fn_set_status ()
16500{
16501 return $1
16502} # as_fn_set_status
16503
16504# as_fn_exit STATUS
16505# -----------------
16506# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16507as_fn_exit ()
16508{
16509 set +e
16510 as_fn_set_status $1
16511 exit $1
16512} # as_fn_exit
16513
16514# as_fn_unset VAR
16515# ---------------
16516# Portably unset VAR.
16517as_fn_unset ()
16518{
16519 { eval $1=; unset $1;}
16520}
16521as_unset=as_fn_unset
16522# as_fn_append VAR VALUE
16523# ----------------------
16524# Append the text in VALUE to the end of the definition contained in VAR. Take
16525# advantage of any shell optimizations that allow amortized linear growth over
16526# repeated appends, instead of the typical quadratic growth present in naive
16527# implementations.
16528if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16529 eval 'as_fn_append ()
16530 {
16531 eval $1+=\$2
16532 }'
16533else
16534 as_fn_append ()
16535 {
16536 eval $1=\$$1\$2
16537 }
16538fi # as_fn_append
16539
16540# as_fn_arith ARG...
16541# ------------------
16542# Perform arithmetic evaluation on the ARGs, and store the result in the
16543# global $as_val. Take advantage of shells that can avoid forks. The arguments
16544# must be portable across $(()) and expr.
16545if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16546 eval 'as_fn_arith ()
16547 {
16548 as_val=$(( $* ))
16549 }'
16550else
16551 as_fn_arith ()
16552 {
16553 as_val=`expr "$@" || test $? -eq 1`
16554 }
16555fi # as_fn_arith
16556
16557
16558if expr a : '\(a\)' >/dev/null 2>&1 &&
16559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16560 as_expr=expr
16561else
16562 as_expr=false
16563fi
16564
16565if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16566 as_basename=basename
16567else
16568 as_basename=false
16569fi
16570
16571if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16572 as_dirname=dirname
16573else
16574 as_dirname=false
16575fi
16576
16577as_me=`$as_basename -- "$0" ||
16578$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16579 X"$0" : 'X\(//\)$' \| \
16580 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16581$as_echo X/"$0" |
16582 sed '/^.*\/\([^/][^/]*\)\/*$/{
16583 s//\1/
16584 q
16585 }
16586 /^X\/\(\/\/\)$/{
16587 s//\1/
16588 q
16589 }
16590 /^X\/\(\/\).*/{
16591 s//\1/
16592 q
16593 }
16594 s/.*/./; q'`
16595
16596# Avoid depending upon Character Ranges.
16597as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16598as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16599as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16600as_cr_digits='0123456789'
16601as_cr_alnum=$as_cr_Letters$as_cr_digits
16602
16603ECHO_C= ECHO_N= ECHO_T=
16604case `echo -n x` in #(((((
16605-n*)
16606 case `echo 'xy\c'` in
16607 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16608 xy) ECHO_C='\c';;
16609 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16610 ECHO_T=' ';;
16611 esac;;
16612*)
16613 ECHO_N='-n';;
16614esac
16615
16616rm -f conf$$ conf$$.exe conf$$.file
16617if test -d conf$$.dir; then
16618 rm -f conf$$.dir/conf$$.file
16619else
16620 rm -f conf$$.dir
16621 mkdir conf$$.dir 2>/dev/null
16622fi
16623if (echo >conf$$.file) 2>/dev/null; then
16624 if ln -s conf$$.file conf$$ 2>/dev/null; then
16625 as_ln_s='ln -s'
16626 # ... but there are two gotchas:
16627 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16628 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
755320b0 16629 # In both cases, we have to default to `cp -pR'.
feec80c3 16630 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
755320b0 16631 as_ln_s='cp -pR'
feec80c3
C
16632 elif ln conf$$.file conf$$ 2>/dev/null; then
16633 as_ln_s=ln
16634 else
755320b0 16635 as_ln_s='cp -pR'
feec80c3
C
16636 fi
16637else
755320b0 16638 as_ln_s='cp -pR'
feec80c3
C
16639fi
16640rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16641rmdir conf$$.dir 2>/dev/null
16642
16643
16644# as_fn_mkdir_p
16645# -------------
16646# Create "$as_dir" as a directory, including parents if necessary.
16647as_fn_mkdir_p ()
16648{
16649
16650 case $as_dir in #(
16651 -*) as_dir=./$as_dir;;
16652 esac
16653 test -d "$as_dir" || eval $as_mkdir_p || {
16654 as_dirs=
16655 while :; do
16656 case $as_dir in #(
16657 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16658 *) as_qdir=$as_dir;;
16659 esac
16660 as_dirs="'$as_qdir' $as_dirs"
16661 as_dir=`$as_dirname -- "$as_dir" ||
16662$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16663 X"$as_dir" : 'X\(//\)[^/]' \| \
16664 X"$as_dir" : 'X\(//\)$' \| \
16665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16666$as_echo X"$as_dir" |
16667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16668 s//\1/
16669 q
16670 }
16671 /^X\(\/\/\)[^/].*/{
16672 s//\1/
16673 q
16674 }
16675 /^X\(\/\/\)$/{
16676 s//\1/
16677 q
16678 }
16679 /^X\(\/\).*/{
16680 s//\1/
16681 q
16682 }
16683 s/.*/./; q'`
16684 test -d "$as_dir" && break
16685 done
16686 test -z "$as_dirs" || eval "mkdir $as_dirs"
16687 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16688
16689
16690} # as_fn_mkdir_p
16691if mkdir -p . 2>/dev/null; then
16692 as_mkdir_p='mkdir -p "$as_dir"'
16693else
16694 test -d ./-p && rmdir ./-p
16695 as_mkdir_p=false
16696fi
16697
755320b0
C
16698
16699# as_fn_executable_p FILE
16700# -----------------------
16701# Test if FILE is an executable regular file.
16702as_fn_executable_p ()
16703{
16704 test -f "$1" && test -x "$1"
16705} # as_fn_executable_p
16706as_test_x='test -x'
16707as_executable_p=as_fn_executable_p
feec80c3
C
16708
16709# Sed expression to map a string onto a valid CPP name.
16710as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16711
16712# Sed expression to map a string onto a valid variable name.
16713as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16714
16715
16716exec 6>&1
16717## ----------------------------------- ##
16718## Main body of $CONFIG_STATUS script. ##
16719## ----------------------------------- ##
16720_ASEOF
16721test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16722
16723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724# Save the log message, to keep $0 and so on meaningful, and to
16725# report actual input values of CONFIG_FILES etc. instead of their
16726# values after options handling.
16727ac_log="
755320b0
C
16728This file was extended by coccinelle $as_me 1.0.0-rc14, which was
16729generated by GNU Autoconf 2.69. Invocation command line was
feec80c3
C
16730
16731 CONFIG_FILES = $CONFIG_FILES
16732 CONFIG_HEADERS = $CONFIG_HEADERS
16733 CONFIG_LINKS = $CONFIG_LINKS
16734 CONFIG_COMMANDS = $CONFIG_COMMANDS
16735 $ $0 $@
16736
16737on `(hostname || uname -n) 2>/dev/null | sed 1q`
16738"
16739
16740_ACEOF
16741
16742case $ac_config_files in *"
16743"*) set x $ac_config_files; shift; ac_config_files=$*;;
16744esac
16745
16746
16747
16748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749# Files that config.status was made for.
16750config_files="$ac_config_files"
16751
16752_ACEOF
16753
16754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16755ac_cs_usage="\
16756\`$as_me' instantiates files and other configuration actions
16757from templates according to the current configuration. Unless the files
16758and actions are specified as TAGs, all are instantiated by default.
16759
16760Usage: $0 [OPTION]... [TAG]...
16761
16762 -h, --help print this help, then exit
16763 -V, --version print version number and configuration settings, then exit
16764 --config print configuration, then exit
16765 -q, --quiet, --silent
16766 do not print progress messages
16767 -d, --debug don't remove temporary files
16768 --recheck update $as_me by reconfiguring in the same conditions
16769 --file=FILE[:TEMPLATE]
16770 instantiate the configuration file FILE
16771
16772Configuration files:
16773$config_files
16774
16775Report bugs to <cocci@diku.dk>.
16776coccinelle home page: <http://coccinelle.lip6.fr/>."
16777
16778_ACEOF
16779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16781ac_cs_version="\\
755320b0
C
16782coccinelle config.status 1.0.0-rc14
16783configured by $0, generated by GNU Autoconf 2.69,
feec80c3
C
16784 with options \\"\$ac_cs_config\\"
16785
755320b0 16786Copyright (C) 2012 Free Software Foundation, Inc.
feec80c3
C
16787This config.status script is free software; the Free Software Foundation
16788gives unlimited permission to copy, distribute and modify it."
16789
16790ac_pwd='$ac_pwd'
16791srcdir='$srcdir'
16792INSTALL='$INSTALL'
16793MKDIR_P='$MKDIR_P'
16794test -n "\$AWK" || AWK=awk
16795_ACEOF
16796
16797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16798# The default lists apply if the user does not specify any file.
16799ac_need_defaults=:
16800while test $# != 0
16801do
16802 case $1 in
16803 --*=?*)
16804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16805 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16806 ac_shift=:
16807 ;;
16808 --*=)
16809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16810 ac_optarg=
16811 ac_shift=:
16812 ;;
16813 *)
16814 ac_option=$1
16815 ac_optarg=$2
16816 ac_shift=shift
16817 ;;
16818 esac
16819
16820 case $ac_option in
16821 # Handling of the options.
16822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16823 ac_cs_recheck=: ;;
16824 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16825 $as_echo "$ac_cs_version"; exit ;;
16826 --config | --confi | --conf | --con | --co | --c )
16827 $as_echo "$ac_cs_config"; exit ;;
16828 --debug | --debu | --deb | --de | --d | -d )
16829 debug=: ;;
16830 --file | --fil | --fi | --f )
16831 $ac_shift
16832 case $ac_optarg in
16833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16834 '') as_fn_error $? "missing file argument" ;;
16835 esac
16836 as_fn_append CONFIG_FILES " '$ac_optarg'"
16837 ac_need_defaults=false;;
16838 --he | --h | --help | --hel | -h )
16839 $as_echo "$ac_cs_usage"; exit ;;
16840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16841 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16842 ac_cs_silent=: ;;
16843
16844 # This is an error.
16845 -*) as_fn_error $? "unrecognized option: \`$1'
16846Try \`$0 --help' for more information." ;;
16847
16848 *) as_fn_append ac_config_targets " $1"
16849 ac_need_defaults=false ;;
16850
16851 esac
16852 shift
16853done
16854
16855ac_configure_extra_args=
16856
16857if $ac_cs_silent; then
16858 exec 6>/dev/null
16859 ac_configure_extra_args="$ac_configure_extra_args --silent"
16860fi
16861
16862_ACEOF
16863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16864if \$ac_cs_recheck; then
755320b0 16865 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
feec80c3
C
16866 shift
16867 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16868 CONFIG_SHELL='$SHELL'
16869 export CONFIG_SHELL
16870 exec "\$@"
16871fi
16872
16873_ACEOF
16874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16875exec 5>>config.log
16876{
16877 echo
16878 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16879## Running $as_me. ##
16880_ASBOX
16881 $as_echo "$ac_log"
16882} >&5
16883
16884_ACEOF
16885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16886_ACEOF
16887
16888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889
16890# Handling of arguments.
16891for ac_config_target in $ac_config_targets
16892do
16893 case $ac_config_target in
16894 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
16895 "version.ml") CONFIG_FILES="$CONFIG_FILES version.ml" ;;
16896 "commons/commands.ml") CONFIG_FILES="$CONFIG_FILES commons/commands.ml" ;;
16897 "globals/config.ml") CONFIG_FILES="$CONFIG_FILES globals/config.ml" ;;
16898 "globals/regexp.ml") CONFIG_FILES="$CONFIG_FILES globals/regexp.ml" ;;
16899 "python/pycocci.ml") CONFIG_FILES="$CONFIG_FILES python/pycocci.ml" ;;
16900 "ocaml/prepare_ocamlcocci.ml") CONFIG_FILES="$CONFIG_FILES ocaml/prepare_ocamlcocci.ml" ;;
16901 "scripts/spatch.sh") CONFIG_FILES="$CONFIG_FILES scripts/spatch.sh" ;;
16902 "docs/spatch.1") CONFIG_FILES="$CONFIG_FILES docs/spatch.1" ;;
16903
16904 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16905 esac
16906done
16907
16908
16909# If the user did not use the arguments to specify the items to instantiate,
16910# then the envvar interface is used. Set only those that are not.
16911# We use the long form for the default assignment because of an extremely
16912# bizarre bug on SunOS 4.1.3.
16913if $ac_need_defaults; then
16914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16915fi
16916
16917# Have a temporary directory for convenience. Make it in the build tree
16918# simply because there is no reason against having it here, and in addition,
16919# creating and moving files from /tmp can sometimes cause problems.
16920# Hook for its removal unless debugging.
16921# Note that there is a small window in which the directory will not be cleaned:
16922# after its creation but before its name has been assigned to `$tmp'.
16923$debug ||
16924{
16925 tmp= ac_tmp=
16926 trap 'exit_status=$?
16927 : "${ac_tmp:=$tmp}"
16928 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16929' 0
16930 trap 'as_fn_exit 1' 1 2 13 15
16931}
16932# Create a (secure) tmp directory for tmp files.
16933
16934{
16935 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16936 test -d "$tmp"
16937} ||
16938{
16939 tmp=./conf$$-$RANDOM
16940 (umask 077 && mkdir "$tmp")
16941} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16942ac_tmp=$tmp
16943
16944# Set up the scripts for CONFIG_FILES section.
16945# No need to generate them if there are no CONFIG_FILES.
16946# This happens for instance with `./config.status config.h'.
16947if test -n "$CONFIG_FILES"; then
16948
16949
16950ac_cr=`echo X | tr X '\015'`
16951# On cygwin, bash can eat \r inside `` if the user requested igncr.
16952# But we know of no other shell where ac_cr would be empty at this
16953# point, so we can use a bashism as a fallback.
16954if test "x$ac_cr" = x; then
16955 eval ac_cr=\$\'\\r\'
16956fi
16957ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16958if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16959 ac_cs_awk_cr='\\r'
16960else
16961 ac_cs_awk_cr=$ac_cr
16962fi
16963
16964echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16965_ACEOF
16966
16967
16968{
16969 echo "cat >conf$$subs.awk <<_ACEOF" &&
16970 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16971 echo "_ACEOF"
16972} >conf$$subs.sh ||
16973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16974ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16975ac_delim='%!_!# '
16976for ac_last_try in false false false false false :; do
16977 . ./conf$$subs.sh ||
16978 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16979
16980 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16981 if test $ac_delim_n = $ac_delim_num; then
16982 break
16983 elif $ac_last_try; then
16984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16985 else
16986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16987 fi
16988done
16989rm -f conf$$subs.sh
16990
16991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16992cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16993_ACEOF
16994sed -n '
16995h
16996s/^/S["/; s/!.*/"]=/
16997p
16998g
16999s/^[^!]*!//
17000:repl
17001t repl
17002s/'"$ac_delim"'$//
17003t delim
17004:nl
17005h
17006s/\(.\{148\}\)..*/\1/
17007t more1
17008s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17009p
17010n
17011b repl
17012:more1
17013s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17014p
17015g
17016s/.\{148\}//
17017t nl
17018:delim
17019h
17020s/\(.\{148\}\)..*/\1/
17021t more2
17022s/["\\]/\\&/g; s/^/"/; s/$/"/
17023p
17024b
17025:more2
17026s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17027p
17028g
17029s/.\{148\}//
17030t delim
17031' <conf$$subs.awk | sed '
17032/^[^""]/{
17033 N
17034 s/\n//
17035}
17036' >>$CONFIG_STATUS || ac_write_fail=1
17037rm -f conf$$subs.awk
17038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17039_ACAWK
17040cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17041 for (key in S) S_is_set[key] = 1
17042 FS = "\a"
17043
17044}
17045{
17046 line = $ 0
17047 nfields = split(line, field, "@")
17048 substed = 0
17049 len = length(field[1])
17050 for (i = 2; i < nfields; i++) {
17051 key = field[i]
17052 keylen = length(key)
17053 if (S_is_set[key]) {
17054 value = S[key]
17055 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17056 len += length(value) + length(field[++i])
17057 substed = 1
17058 } else
17059 len += 1 + keylen
17060 }
17061
17062 print line
17063}
17064
17065_ACAWK
17066_ACEOF
17067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17069 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17070else
17071 cat
17072fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17073 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17074_ACEOF
17075
17076# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17077# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17078# trailing colons and then remove the whole line if VPATH becomes empty
17079# (actually we leave an empty line to preserve line numbers).
17080if test "x$srcdir" = x.; then
17081 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17082h
17083s///
17084s/^/:/
17085s/[ ]*$/:/
17086s/:\$(srcdir):/:/g
17087s/:\${srcdir}:/:/g
17088s/:@srcdir@:/:/g
17089s/^:*//
17090s/:*$//
17091x
17092s/\(=[ ]*\).*/\1/
17093G
17094s/\n//
17095s/^[^=]*=[ ]*$//
17096}'
17097fi
17098
17099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100fi # test -n "$CONFIG_FILES"
17101
17102
17103eval set X " :F $CONFIG_FILES "
17104shift
17105for ac_tag
17106do
17107 case $ac_tag in
17108 :[FHLC]) ac_mode=$ac_tag; continue;;
17109 esac
17110 case $ac_mode$ac_tag in
17111 :[FHL]*:*);;
17112 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17113 :[FH]-) ac_tag=-:-;;
17114 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17115 esac
17116 ac_save_IFS=$IFS
17117 IFS=:
17118 set x $ac_tag
17119 IFS=$ac_save_IFS
17120 shift
17121 ac_file=$1
17122 shift
17123
17124 case $ac_mode in
17125 :L) ac_source=$1;;
17126 :[FH])
17127 ac_file_inputs=
17128 for ac_f
17129 do
17130 case $ac_f in
17131 -) ac_f="$ac_tmp/stdin";;
17132 *) # Look for the file first in the build tree, then in the source tree
17133 # (if the path is not absolute). The absolute path cannot be DOS-style,
17134 # because $ac_f cannot contain `:'.
17135 test -f "$ac_f" ||
17136 case $ac_f in
17137 [\\/$]*) false;;
17138 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17139 esac ||
17140 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17141 esac
17142 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17143 as_fn_append ac_file_inputs " '$ac_f'"
17144 done
17145
17146 # Let's still pretend it is `configure' which instantiates (i.e., don't
17147 # use $as_me), people would be surprised to read:
17148 # /* config.h. Generated by config.status. */
17149 configure_input='Generated from '`
17150 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17151 `' by configure.'
17152 if test x"$ac_file" != x-; then
17153 configure_input="$ac_file. $configure_input"
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17155$as_echo "$as_me: creating $ac_file" >&6;}
17156 fi
17157 # Neutralize special characters interpreted by sed in replacement strings.
17158 case $configure_input in #(
17159 *\&* | *\|* | *\\* )
17160 ac_sed_conf_input=`$as_echo "$configure_input" |
17161 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17162 *) ac_sed_conf_input=$configure_input;;
17163 esac
17164
17165 case $ac_tag in
17166 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17168 esac
17169 ;;
17170 esac
17171
17172 ac_dir=`$as_dirname -- "$ac_file" ||
17173$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17174 X"$ac_file" : 'X\(//\)[^/]' \| \
17175 X"$ac_file" : 'X\(//\)$' \| \
17176 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17177$as_echo X"$ac_file" |
17178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17179 s//\1/
17180 q
17181 }
17182 /^X\(\/\/\)[^/].*/{
17183 s//\1/
17184 q
17185 }
17186 /^X\(\/\/\)$/{
17187 s//\1/
17188 q
17189 }
17190 /^X\(\/\).*/{
17191 s//\1/
17192 q
17193 }
17194 s/.*/./; q'`
17195 as_dir="$ac_dir"; as_fn_mkdir_p
17196 ac_builddir=.
17197
17198case "$ac_dir" in
17199.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17200*)
17201 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17202 # A ".." for each directory in $ac_dir_suffix.
17203 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17204 case $ac_top_builddir_sub in
17205 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17206 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17207 esac ;;
17208esac
17209ac_abs_top_builddir=$ac_pwd
17210ac_abs_builddir=$ac_pwd$ac_dir_suffix
17211# for backward compatibility:
17212ac_top_builddir=$ac_top_build_prefix
17213
17214case $srcdir in
17215 .) # We are building in place.
17216 ac_srcdir=.
17217 ac_top_srcdir=$ac_top_builddir_sub
17218 ac_abs_top_srcdir=$ac_pwd ;;
17219 [\\/]* | ?:[\\/]* ) # Absolute name.
17220 ac_srcdir=$srcdir$ac_dir_suffix;
17221 ac_top_srcdir=$srcdir
17222 ac_abs_top_srcdir=$srcdir ;;
17223 *) # Relative name.
17224 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17225 ac_top_srcdir=$ac_top_build_prefix$srcdir
17226 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17227esac
17228ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17229
17230
17231 case $ac_mode in
17232 :F)
17233 #
17234 # CONFIG_FILE
17235 #
17236
17237 case $INSTALL in
17238 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17239 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17240 esac
17241 ac_MKDIR_P=$MKDIR_P
17242 case $MKDIR_P in
17243 [\\/$]* | ?:[\\/]* ) ;;
17244 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17245 esac
17246_ACEOF
17247
17248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17249# If the template does not know about datarootdir, expand it.
17250# FIXME: This hack should be removed a few years after 2.60.
17251ac_datarootdir_hack=; ac_datarootdir_seen=
17252ac_sed_dataroot='
17253/datarootdir/ {
17254 p
17255 q
17256}
17257/@datadir@/p
17258/@docdir@/p
17259/@infodir@/p
17260/@localedir@/p
17261/@mandir@/p'
17262case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17263*datarootdir*) ac_datarootdir_seen=yes;;
17264*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17266$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17267_ACEOF
17268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17269 ac_datarootdir_hack='
17270 s&@datadir@&$datadir&g
17271 s&@docdir@&$docdir&g
17272 s&@infodir@&$infodir&g
17273 s&@localedir@&$localedir&g
17274 s&@mandir@&$mandir&g
17275 s&\\\${datarootdir}&$datarootdir&g' ;;
17276esac
17277_ACEOF
17278
17279# Neutralize VPATH when `$srcdir' = `.'.
17280# Shell code in configure.ac might set extrasub.
17281# FIXME: do we really want to maintain this feature?
17282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17283ac_sed_extra="$ac_vpsub
17284$extrasub
17285_ACEOF
17286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17287:t
17288/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17289s|@configure_input@|$ac_sed_conf_input|;t t
17290s&@top_builddir@&$ac_top_builddir_sub&;t t
17291s&@top_build_prefix@&$ac_top_build_prefix&;t t
17292s&@srcdir@&$ac_srcdir&;t t
17293s&@abs_srcdir@&$ac_abs_srcdir&;t t
17294s&@top_srcdir@&$ac_top_srcdir&;t t
17295s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17296s&@builddir@&$ac_builddir&;t t
17297s&@abs_builddir@&$ac_abs_builddir&;t t
17298s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17299s&@INSTALL@&$ac_INSTALL&;t t
17300s&@MKDIR_P@&$ac_MKDIR_P&;t t
17301$ac_datarootdir_hack
17302"
17303eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17304 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17305
17306test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17307 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17308 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17309 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17311which seems to be undefined. Please make sure it is defined" >&5
17312$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17313which seems to be undefined. Please make sure it is defined" >&2;}
17314
17315 rm -f "$ac_tmp/stdin"
17316 case $ac_file in
17317 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17318 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17319 esac \
17320 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17321 ;;
17322
17323
17324
17325 esac
17326
17327done # for ac_tag
17328
17329
17330as_fn_exit 0
17331_ACEOF
17332ac_clean_files=$ac_clean_files_save
17333
17334test $ac_write_fail = 0 ||
17335 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17336
17337
17338# configure is writing to config.log, and then calls config.status.
17339# config.status does its own redirection, appending to config.log.
17340# Unfortunately, on DOS this fails, as config.log is still kept open
17341# by configure, so config.status won't be able to write to it; its
17342# output is simply discarded. So we exec the FD to /dev/null,
17343# effectively closing config.log, so it can be properly (re)opened and
17344# appended to by config.status. When coming back to configure, we
17345# need to make the FD available again.
17346if test "$no_create" != yes; then
17347 ac_cs_success=:
17348 ac_config_status_args=
17349 test "$silent" = yes &&
17350 ac_config_status_args="$ac_config_status_args --quiet"
17351 exec 5>/dev/null
17352 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17353 exec 5>>config.log
17354 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17355 # would make configure fail if this is the last instruction.
17356 $ac_cs_success || as_fn_exit 1
17357fi
17358if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17360$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17361fi
17362
17363
17364{ $as_echo "$as_me:${as_lineno-$LINENO}: configuration completed" >&5
17365$as_echo "$as_me: configuration completed" >&6;}
17366
17367cat << EOF
17368------------------------------------------------------------------------------
17369Summary
17370
d6ce1786
C
17371configure flags: $CONFIGURE_FLAGS
17372findlib: $OCAMLFIND (an actual version is strongly recommended)
17373menhir: $MENHIR (should be an optional tool)
755320b0 17374menhirLib module: $enable_menhirLib (for local package use --disable-menhirLib)
feec80c3 17375
d6ce1786
C
17376ocaml scripting: $enable_ocaml (overridable with --enable-ocaml)
17377python scripting: $enable_python (overridable with --enable-python)
17378pycaml module: $enable_pycaml (for local package use --disable-pycaml)
feec80c3 17379
d6ce1786
C
17380pcre regexes: $enable_pcre_syntax (overridable with --enable-pcre-syntax)
17381pcre module: $enable_pcre (for local package use --disable-pcre)
17382pcre library: $HAVE_PCRE (requires the dev version of libpcre)
feec80c3 17383
d6ce1786
C
17384release config: $enable_release (strongly recommended to be 'yes', overridable with --enable-release)
17385optimized spatch: $enable_opt (overridable with --disable-opt)
feec80c3 17386
feec80c3
C
17387------------------------------------------------------------------------------
17388Coccinelle can now be compiled and installed.
17389
17390
17391If you compile coccinelle again after source code changes or
17392configuration changes, you may need to run first:
17393 \$ make clean
17394
17395To compile coccinelle, run:
17396 \$ make all
17397
17398To install coccinelle, run:
17399 \$ make install
17400
d6ce1786
C
17401Then, to test coccinelle, run for example:
17402 \$ spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c
17403
17404Or when coccinelle is not installed yet:
17405 \$ COCCINELLE_HOME=$(pwd) ./scripts/spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c
feec80c3
C
17406EOF
17407
17408if test "x$enable_python" != "xno"; then
17409cat << EOF
17410------------------------------------------------------------------------------
17411You may need to set some environment variables so that the python
17412libraries are found. The frontend 'spatch' sets the following variables:
17413
17414 \$ export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$prefix/lib
17415 \$ export PYTHONPATH=\$PYTHONPATH:$prefix/share/coccinelle/python
17416
17417EOF
17418fi
ca417fcf 17419
feec80c3
C
17420cat << EOF
17421------------------------------------------------------------------------------
17422EOF