permit multiline comments and strings in macros
[bpt/coccinelle.git] / configure
CommitLineData
feec80c3
C
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
abad11c5 3# Generated by GNU Autoconf 2.69 for coccinelle 1.0.0-rc15.
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'
abad11c5
C
642PACKAGE_VERSION='1.0.0-rc15'
643PACKAGE_STRING='coccinelle 1.0.0-rc15'
feec80c3
C
644PACKAGE_BUGREPORT='cocci@diku.dk'
645PACKAGE_URL='http://coccinelle.lip6.fr/'
34e49164 646
feec80c3 647ac_unique_file="cocci.ml"
abad11c5
C
648ac_subst_vars='am__EXEEXT_FALSE
649am__EXEEXT_TRUE
650LTLIBOBJS
feec80c3 651LIBOBJS
abad11c5 652FEATURE_OCAMLBUILD
d6ce1786
C
653MAKETARGET_SPATCH
654SPATCHNAME
655enable_opt
feec80c3 656MAKETARGET_ALL
755320b0 657MODULES_profiling
feec80c3
C
658enable_release
659SUBSTITUTED_PDFLATEX
660with_PDFLATEX
661PDFLATEX
662DYNLINK_IS_NATIVE
663FEATURE_OCAML
664FEATURE_PYTHON
665SHAREDIR
666REGEXP_FILE
667REGEXP_MODULE
668MAKE_pcre
d6ce1786 669OPTFLAGS_pcre
feec80c3
C
670enable_pcre
671GLOBAL_pcre
672OCAML_PKG_pcre
673enable_pcre_syntax
674HAVE_PCRE
675PCRE_LIBS
676PCRE_CFLAGS
677PYCOCCI_FILE
678PYCOCCI_MODULE
679MAKE_pycaml
d6ce1786 680OPTFLAGS_pycaml
feec80c3
C
681GLOBAL_pycaml
682OCAML_PKG_pycaml
683enable_python
684HAVE_PYTHON
685PYTHON_LIBS
686PYTHON_CFLAGS
d6ce1786 687PYVER_MAJOR
feec80c3
C
688SUBSTITUTED_PYTHON
689with_PYTHON
690enable_pycaml
691PYTHON
692OCAMLCOCCI_FILE
693OCAMLCOCCI_MODULE
694enable_ocaml
695SUBSTITUTED_MENHIR
696with_MENHIR
697MENHIR
d6ce1786 698OPTIMIZED_dynlink
feec80c3 699MAKE_menhirLib
d6ce1786 700OPTFLAGS_menhirLib
feec80c3
C
701enable_menhirLib
702GLOBAL_menhirLib
703OCAML_PKG_menhirLib
feec80c3 704MAKE_camlp4
d6ce1786 705OPTFLAGS_camlp4
feec80c3
C
706enable_camlp4
707GLOBAL_camlp4
708OCAML_PKG_camlp4
709MAKE_dynlink
d6ce1786 710OPTFLAGS_dynlink
feec80c3
C
711enable_dynlink
712GLOBAL_dynlink
713OCAML_PKG_dynlink
feec80c3
C
714PATH_str
715OCAML_PKG_str
716PATH_num
717OCAML_PKG_num
718PATH_bigarray
719OCAML_PKG_bigarray
720PATH_unix
721OCAML_PKG_unix
722PATH_camlp4
723MODULESOPT_camlp4
724MODULES_camlp4
725FLAGS_camlp4
726LOCALLIB_camlp4
727FEATURE_camlp4
728PATH_pycaml
729MODULESOPT_pycaml
730MODULES_pycaml
731FLAGS_pycaml
732LOCALLIB_pycaml
733FEATURE_pycaml
734PATH_pcre
735MODULESOPT_pcre
736MODULES_pcre
737FLAGS_pcre
738LOCALLIB_pcre
739FEATURE_pcre
740PATH_dynlink
741MODULESOPT_dynlink
742MODULES_dynlink
743FLAGS_dynlink
744LOCALLIB_dynlink
745FEATURE_dynlink
feec80c3
C
746PATH_menhirLib
747MODULESOPT_menhirLib
748MODULES_menhirLib
749FLAGS_menhirLib
750LOCALLIB_menhirLib
751FEATURE_menhirLib
feec80c3
C
752COCCI_OCAML_EXTERNAL
753RUNTIME_CAMLP4O_CMD
754RUNTIME_CAMLP4_CMD
755RUNTIME_OCAMLDEP_CMD
756RUNTIME_OCAMLOPT_CMD
757RUNTIME_OCAMLC_CMD
758RUNTIME_OCAMLFIND_CMD
755320b0
C
759SUBSTITUTED_OCAMLPROF
760with_OCAMLPROF
761OCAMLPROF
feec80c3
C
762SUBSTITUTED_OCAMLFIND
763with_OCAMLFIND
764OCAMLFIND
765SUBSTITUTED_OCAMLYACC
766with_OCAMLYACC
767SUBSTITUTED_OCAMLLEX
768with_OCAMLLEX
769CAMLP4RF
770CAMLP4R
771CAMLP4PROF
772CAMLP4ORF
773CAMLP4OOF
774CAMLP4OF
775CAMLP4O
776CAMLP4BOOT
777CAMLP4
755320b0 778OCAMLCORIG
feec80c3
C
779OCAMLATLEAST311
780OCAMLATLEAST310
781OCAMLBUILD
782OCAMLDOC
783OCAMLMKLIB
784OCAMLMKTOP
785OCAMLDEP
786OCAML
787OCAMLOPTDOTOPT
788OCAMLCDOTOPT
789OCAMLBEST
790OCAMLOPT
791OCAMLLIB
792OCAMLVERSION
793OCAMLC
abad11c5 794PKG_CONFIG_ORIG
feec80c3
C
795SUBSTITUTED_PKG_CONFIG
796OCAMLYACC
797OCAMLLEXDOTOPT
798OCAMLLEX
abad11c5
C
799PKG_CONFIG_LIBDIR
800PKG_CONFIG_PATH
feec80c3
C
801with_PKG_CONFIG
802PKG_CONFIG
d6ce1786 803PATCHELF
abad11c5 804INSTALL
feec80c3
C
805PATCH
806TAR
807CPP
abad11c5
C
808am__fastdepCC_FALSE
809am__fastdepCC_TRUE
810CCDEPMODE
811am__nodep
812AMDEPBACKSLASH
813AMDEP_FALSE
814AMDEP_TRUE
815am__quote
816am__include
817DEPDIR
feec80c3
C
818OBJEXT
819EXEEXT
820ac_ct_CC
821CPPFLAGS
822LDFLAGS
823CFLAGS
824CC
abad11c5
C
825DATE
826GIT
827CONFVERSION
828am__untar
829am__tar
830AMTAR
831am__leading_dot
832SET_MAKE
833AWK
834mkdir_p
feec80c3 835MKDIR_P
abad11c5
C
836INSTALL_STRIP_PROGRAM
837STRIP
838install_sh
839MAKEINFO
840AUTOHEADER
841AUTOMAKE
842AUTOCONF
843ACLOCAL
844VERSION
845PACKAGE
846CYGPATH_W
847am__isrc
feec80c3
C
848INSTALL_DATA
849INSTALL_SCRIPT
850INSTALL_PROGRAM
feec80c3
C
851COCCI_SRCDIR
852COCCI_VERSION
d6ce1786 853CONFIGURE_FLAGS
feec80c3
C
854target_alias
855host_alias
856build_alias
857LIBS
858ECHO_T
859ECHO_N
860ECHO_C
861DEFS
862mandir
863localedir
864libdir
865psdir
866pdfdir
867dvidir
868htmldir
869infodir
870docdir
871oldincludedir
872includedir
873localstatedir
874sharedstatedir
875sysconfdir
876datadir
877datarootdir
878libexecdir
879sbindir
880bindir
881program_transform_name
882prefix
883exec_prefix
884PACKAGE_URL
885PACKAGE_BUGREPORT
886PACKAGE_STRING
887PACKAGE_VERSION
888PACKAGE_TARNAME
889PACKAGE_NAME
890PATH_SEPARATOR
891SHELL
892PYVER'
893ac_subst_files=''
894ac_user_opts='
895enable_option_checking
abad11c5 896enable_dependency_tracking
feec80c3
C
897with_pkg_config
898with_ocamllex
899with_ocamlyacc
900with_ocamlfind
755320b0 901with_ocamlprof
feec80c3
C
902with_runtime_ocamlfind
903with_runtime_ocamlc
904with_runtime_ocamlopt
905with_runtime_ocamldep
906with_runtime_camlp4
907with_runtime_camlp4o
908enable_dynlink
909enable_camlp4
feec80c3 910enable_menhirLib
feec80c3
C
911with_menhir
912enable_ocaml
913enable_python
914with_python
915enable_pycaml
916enable_pcre_syntax
917enable_pcre
918with_pdflatex
919enable_release
d6ce1786 920enable_opt
abad11c5 921enable_ocamlbuild
feec80c3
C
922'
923 ac_precious_vars='PYVER
924build_alias
925host_alias
926target_alias
927CC
928CFLAGS
929LDFLAGS
930LIBS
931CPPFLAGS
932CPP
933PKG_CONFIG
abad11c5
C
934PKG_CONFIG_PATH
935PKG_CONFIG_LIBDIR
feec80c3
C
936OCAMLLEX
937OCAMLYACC
938OCAMLFIND
755320b0 939OCAMLPROF
feec80c3
C
940RUNTIME_OCAMLFIND_CMD
941RUNTIME_OCAMLC_CMD
942RUNTIME_OCAMLOPT_CMD
943RUNTIME_OCAMLDEP_CMD
944RUNTIME_CAMLP4_CMD
945RUNTIME_CAMLP4O_CMD
946COCCI_OCAML_EXTERNAL
947MENHIR
948PYTHON
949PYTHON_CFLAGS
950PYTHON_LIBS
951PCRE_CFLAGS
952PCRE_LIBS
953PDFLATEX'
34e49164 954
34e49164 955
feec80c3
C
956# Initialize some variables set by options.
957ac_init_help=
958ac_init_version=false
959ac_unrecognized_opts=
960ac_unrecognized_sep=
961# The variables have the same names as the options, with
962# dashes changed to underlines.
963cache_file=/dev/null
964exec_prefix=NONE
965no_create=
966no_recursion=
967prefix=NONE
968program_prefix=NONE
969program_suffix=NONE
970program_transform_name=s,x,x,
971silent=
972site=
973srcdir=
974verbose=
975x_includes=NONE
976x_libraries=NONE
34e49164 977
feec80c3
C
978# Installation directory options.
979# These are left unexpanded so users can "make install exec_prefix=/foo"
980# and all the variables that are supposed to be based on exec_prefix
981# by default will actually change.
982# Use braces instead of parens because sh, perl, etc. also accept them.
983# (The list follows the same order as the GNU Coding Standards.)
984bindir='${exec_prefix}/bin'
985sbindir='${exec_prefix}/sbin'
986libexecdir='${exec_prefix}/libexec'
987datarootdir='${prefix}/share'
988datadir='${datarootdir}'
989sysconfdir='${prefix}/etc'
990sharedstatedir='${prefix}/com'
991localstatedir='${prefix}/var'
992includedir='${prefix}/include'
993oldincludedir='/usr/include'
994docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
995infodir='${datarootdir}/info'
996htmldir='${docdir}'
997dvidir='${docdir}'
998pdfdir='${docdir}'
999psdir='${docdir}'
1000libdir='${exec_prefix}/lib'
1001localedir='${datarootdir}/locale'
1002mandir='${datarootdir}/man'
34e49164 1003
feec80c3
C
1004ac_prev=
1005ac_dashdash=
1006for ac_option
1007do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1013 fi
34e49164 1014
feec80c3
C
1015 case $ac_option in
1016 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *=) ac_optarg= ;;
1018 *) ac_optarg=yes ;;
1019 esac
708f4980 1020
feec80c3 1021 # Accept the important Cygnus configure options, so we can diagnose typos.
708f4980 1022
feec80c3
C
1023 case $ac_dashdash$ac_option in
1024 --)
1025 ac_dashdash=yes ;;
34e49164 1026
feec80c3
C
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
34e49164 1031
feec80c3
C
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
34e49164 1036
feec80c3
C
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
34e49164 1043
feec80c3
C
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
ca417fcf 1046
feec80c3
C
1047 -datadir | --datadir | --datadi | --datad)
1048 ac_prev=datadir ;;
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
34e49164 1051
feec80c3
C
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
34e49164 1058
feec80c3
C
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068"enable_$ac_useropt"
1069"*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
ca417fcf 1074
feec80c3
C
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
34e49164 1079
feec80c3
C
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
8ba84ae2 1084
feec80c3
C
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094"enable_$ac_useropt"
1095"*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=\$ac_optarg ;;
34e49164 1100
feec80c3
C
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
34e49164 1109
feec80c3
C
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
34e49164 1113
feec80c3
C
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
34e49164 1120
feec80c3
C
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
174d1640 1125
feec80c3
C
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
b23ff9c7 1131
feec80c3
C
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
0708f913 1138
feec80c3
C
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
993936c0 1143
feec80c3
C
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
90aeb998 1148
feec80c3
C
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1155
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1160
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1167
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1172
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1176
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1180
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1184
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1193
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1198
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1205
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1212
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1229
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1234
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1239
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298"with_$ac_useropt"
1299"*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1304
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314"with_$ac_useropt"
1315"*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1320
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1324
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1331
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1338
1339 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340Try \`$0 --help' for more information"
1341 ;;
1342
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1352
1353 *)
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359 ;;
1360
1361 esac
1362done
1363
1364if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error $? "missing argument to $ac_option"
1367fi
1368
1369if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1375fi
1376
1377# Check all directory arguments for consistency.
1378for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1382do
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396done
1397
1398# There might be people who depend on the old broken behavior: `$host'
1399# used to hold the argument of --host etc.
1400# FIXME: To remove some day.
1401build=$build_alias
1402host=$host_alias
1403target=$target_alias
1404
1405# FIXME: To remove some day.
1406if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
feec80c3
C
1409 elif test "x$build_alias" != "x$host_alias"; then
1410 cross_compiling=yes
1411 fi
1412fi
1413
1414ac_tool_prefix=
1415test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417test "$silent" = yes && exec 6>/dev/null
1418
1419
1420ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421ac_ls_di=`ls -di .` &&
1422ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error $? "working directory cannot be determined"
1424test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error $? "pwd does not report name of working directory"
1426
1427
1428# Find the source files, if location was not specified.
1429if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437$as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\/\)[^/].*/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\/\)$/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\).*/{
1451 s//\1/
1452 q
1453 }
1454 s/.*/./; q'`
1455 srcdir=$ac_confdir
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 srcdir=..
1458 fi
1459else
1460 ac_srcdir_defaulted=no
1461fi
1462if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465fi
1466ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469 pwd)`
1470# When building in place, set srcdir=.
1471if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1473fi
1474# Remove unnecessary trailing slashes from srcdir.
1475# Double slashes in file names in object file debugging info
1476# mess up M-x gdb in Emacs.
1477case $srcdir in
1478*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479esac
1480for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485done
34e49164 1486
97111a47 1487#
feec80c3 1488# Report the --help message.
97111a47 1489#
feec80c3
C
1490if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1493 cat <<_ACEOF
abad11c5 1494\`configure' configures coccinelle 1.0.0-rc15 to adapt to many kinds of systems.
97111a47 1495
feec80c3 1496Usage: $0 [OPTION]... [VAR=VALUE]...
97111a47 1497
feec80c3
C
1498To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499VAR=VALUE. See below for descriptions of some of the useful variables.
97111a47 1500
feec80c3
C
1501Defaults for the options are specified in brackets.
1502
1503Configuration:
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking ...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513
1514Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 [PREFIX]
1519
1520By default, \`make install' will install all the files in
1521\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523for instance \`--prefix=\$HOME'.
1524
1525For better control, use the options below.
1526
1527Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --libdir=DIR object code libraries [EPREFIX/lib]
1535 --includedir=DIR C header files [PREFIX/include]
1536 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1539 --infodir=DIR info documentation [DATAROOTDIR/info]
1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1541 --mandir=DIR man documentation [DATAROOTDIR/man]
1542 --docdir=DIR documentation root [DATAROOTDIR/doc/coccinelle]
1543 --htmldir=DIR html documentation [DOCDIR]
1544 --dvidir=DIR dvi documentation [DOCDIR]
1545 --pdfdir=DIR pdf documentation [DOCDIR]
1546 --psdir=DIR ps documentation [DOCDIR]
1547_ACEOF
1548
1549 cat <<\_ACEOF
abad11c5
C
1550
1551Program names:
1552 --program-prefix=PREFIX prepend PREFIX to installed program names
1553 --program-suffix=SUFFIX append SUFFIX to installed program names
1554 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
feec80c3
C
1555_ACEOF
1556fi
1557
1558if test -n "$ac_init_help"; then
1559 case $ac_init_help in
abad11c5 1560 short | recursive ) echo "Configuration of coccinelle 1.0.0-rc15:";;
feec80c3
C
1561 esac
1562 cat <<\_ACEOF
1563
1564Optional Features:
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
abad11c5
C
1568 --enable-dependency-tracking
1569 do not reject slow dependency extractors
1570 --disable-dependency-tracking
1571 speeds up one-time build
feec80c3
C
1572 --enable-dynlink enable global package dynlink (yes,no) (default:
1573 auto)
1574 --enable-camlp4 enable global package camlp4 (yes,no) (default:
1575 auto)
feec80c3
C
1576 --enable-menhirLib enable global package menhirLib (yes,no) (default:
1577 auto)
feec80c3
C
1578 --enable-ocaml enable ocaml scripting (default: auto)
1579 --enable-python enable python scripting (yes/no) (default: auto)
1580 --enable-pycaml enable global package pycaml (yes,no) (default:
1581 auto)
1582 --enable-pcre-syntax enable pcre regular expression syntax (default:
1583 auto)
1584 --enable-pcre enable global package pcre (yes,no) (default: auto)
755320b0
C
1585 --enable-release build with a release configuration (yes,no,profile
1586 default: no)
d6ce1786 1587 --enable-opt build an optimized spatch (yes,no, default: auto)
abad11c5 1588 --enable-ocamlbuild enable ocamlbuild support (default: no)
feec80c3
C
1589
1590Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-pkg-config whether/which pkg-config to use (default: auto)
1594 --with-ocamllex whether/which ocamllex to use (default: auto)
1595 --with-ocamlyacc whether/which ocamlyacc to use (default: auto)
1596 --with-ocamlfind whether/which ocamlfind to use (default: auto)
755320b0 1597 --with-ocamlprof whether/which ocamlprof to use (default: auto)
feec80c3
C
1598 --with-runtime-ocamlfind
1599 override the runtime cmd for ocamlfind
1600 --with-runtime-ocamlc override the runtime cmd for ocamlc
1601 --with-runtime-ocamlopt override the runtime cmd for ocamlopt
1602 --with-runtime-ocamldep override the runtime cmd for ocamldep
1603 --with-runtime-camlp4 override the runtime cmd for camlp4
1604 --with-runtime-camlp4o override the runtime cmd for camlp4o
1605 --with-menhir whether/which menhir to use (default: auto)
1606 --with-python whether/which python to use (default: auto)
1607 --with-pdflatex whether/which pdflatex to use (default: auto)
1608
1609Some influential environment variables:
1610 PYVER python version
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1618 CPP C preprocessor
1619 PKG_CONFIG path to pkg-config
abad11c5
C
1620 PKG_CONFIG_PATH
1621 directories to add to pkg-config's search path
1622 PKG_CONFIG_LIBDIR
1623 path overriding pkg-config's built-in search path
feec80c3
C
1624 OCAMLLEX path to ocamllex
1625 OCAMLYACC path to ocamlyacc
1626 OCAMLFIND path to ocamlfind
755320b0 1627 OCAMLPROF path to ocamlprof
feec80c3
C
1628 RUNTIME_OCAMLFIND_CMD
1629 path to ocamlfind
1630 RUNTIME_OCAMLC_CMD
1631 path to ocamlc
1632 RUNTIME_OCAMLOPT_CMD
1633 path to ocamlopt
1634 RUNTIME_OCAMLDEP_CMD
1635 path to ocamldep
1636 RUNTIME_CAMLP4_CMD
1637 path to camlp4
1638 RUNTIME_CAMLP4O_CMD
1639 path to camlp4o
1640 COCCI_OCAML_EXTERNAL
1641 path to extra ocaml packages (default: $COCCI_SRCDIR/bundles)
1642 MENHIR path to menhir
1643 PYTHON path to python when the version is determined automatically
1644 PYTHON_CFLAGS
1645 C compiler flags for PYTHON, overriding pkg-config
1646 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
1647 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1648 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1649 PDFLATEX path to pdflatex
1650
1651Use these variables to override the choices made by `configure' or to help
1652it to find libraries and programs with nonstandard names/locations.
1653
1654Report bugs to <cocci@diku.dk>.
1655coccinelle home page: <http://coccinelle.lip6.fr/>.
1656_ACEOF
1657ac_status=$?
1658fi
1659
1660if test "$ac_init_help" = "recursive"; then
1661 # If there are subdirs, report their specific --help.
1662 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663 test -d "$ac_dir" ||
1664 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1665 continue
1666 ac_builddir=.
1667
1668case "$ac_dir" in
1669.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670*)
1671 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1672 # A ".." for each directory in $ac_dir_suffix.
1673 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1674 case $ac_top_builddir_sub in
1675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677 esac ;;
1678esac
1679ac_abs_top_builddir=$ac_pwd
1680ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681# for backward compatibility:
1682ac_top_builddir=$ac_top_build_prefix
1683
1684case $srcdir in
1685 .) # We are building in place.
1686 ac_srcdir=.
1687 ac_top_srcdir=$ac_top_builddir_sub
1688 ac_abs_top_srcdir=$ac_pwd ;;
1689 [\\/]* | ?:[\\/]* ) # Absolute name.
1690 ac_srcdir=$srcdir$ac_dir_suffix;
1691 ac_top_srcdir=$srcdir
1692 ac_abs_top_srcdir=$srcdir ;;
1693 *) # Relative name.
1694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695 ac_top_srcdir=$ac_top_build_prefix$srcdir
1696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697esac
1698ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699
1700 cd "$ac_dir" || { ac_status=$?; continue; }
1701 # Check for guested configure.
1702 if test -f "$ac_srcdir/configure.gnu"; then
1703 echo &&
1704 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705 elif test -f "$ac_srcdir/configure"; then
1706 echo &&
1707 $SHELL "$ac_srcdir/configure" --help=recursive
1708 else
1709 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710 fi || ac_status=$?
1711 cd "$ac_pwd" || { ac_status=$?; break; }
1712 done
1713fi
1714
1715test -n "$ac_init_help" && exit $ac_status
1716if $ac_init_version; then
1717 cat <<\_ACEOF
abad11c5 1718coccinelle configure 1.0.0-rc15
755320b0 1719generated by GNU Autoconf 2.69
feec80c3 1720
755320b0 1721Copyright (C) 2012 Free Software Foundation, Inc.
feec80c3
C
1722This configure script is free software; the Free Software Foundation
1723gives unlimited permission to copy, distribute and modify it.
1724_ACEOF
1725 exit
1726fi
1727
1728## ------------------------ ##
1729## Autoconf initialization. ##
1730## ------------------------ ##
1731
1732# ac_fn_c_try_compile LINENO
1733# --------------------------
1734# Try to compile conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_compile ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext
1739 if { { ac_try="$ac_compile"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_compile") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest.$ac_objext; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_compile
1769
1770# ac_fn_c_try_cpp LINENO
1771# ----------------------
1772# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_c_try_cpp ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { { ac_try="$ac_cpp conftest.$ac_ext"
1777case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } > conftest.i && {
1792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 }; then :
1795 ac_retval=0
1796else
1797 $as_echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801fi
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805} # ac_fn_c_try_cpp
1806cat >config.log <<_ACEOF
1807This file contains any messages produced by compilers while
1808running configure, to aid debugging if configure makes a mistake.
1809
abad11c5 1810It was created by coccinelle $as_me 1.0.0-rc15, which was
755320b0 1811generated by GNU Autoconf 2.69. Invocation command line was
feec80c3
C
1812
1813 $ $0 $@
1814
1815_ACEOF
1816exec 5>>config.log
1817{
1818cat <<_ASUNAME
1819## --------- ##
1820## Platform. ##
1821## --------- ##
1822
1823hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1824uname -m = `(uname -m) 2>/dev/null || echo unknown`
1825uname -r = `(uname -r) 2>/dev/null || echo unknown`
1826uname -s = `(uname -s) 2>/dev/null || echo unknown`
1827uname -v = `(uname -v) 2>/dev/null || echo unknown`
1828
1829/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1830/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1831
1832/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1833/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1834/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1835/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1836/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1837/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1838/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839
1840_ASUNAME
1841
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 $as_echo "PATH: $as_dir"
1848 done
1849IFS=$as_save_IFS
1850
1851} >&5
1852
1853cat >&5 <<_ACEOF
1854
1855
1856## ----------- ##
1857## Core tests. ##
1858## ----------- ##
1859
1860_ACEOF
1861
1862
1863# Keep a trace of the command line.
1864# Strip out --no-create and --no-recursion so they do not pile up.
1865# Strip out --silent because we don't want to record it for future runs.
1866# Also quote any args containing shell meta-characters.
1867# Make two passes to allow for proper duplicate-argument suppression.
1868ac_configure_args=
1869ac_configure_args0=
1870ac_configure_args1=
1871ac_must_keep_next=false
1872for ac_pass in 1 2
1873do
1874 for ac_arg
1875 do
1876 case $ac_arg in
1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1879 | -silent | --silent | --silen | --sile | --sil)
1880 continue ;;
1881 *\'*)
1882 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 case $ac_pass in
1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 2)
1887 as_fn_append ac_configure_args1 " '$ac_arg'"
1888 if test $ac_must_keep_next = true; then
1889 ac_must_keep_next=false # Got value, back to normal.
1890 else
1891 case $ac_arg in
1892 *=* | --config-cache | -C | -disable-* | --disable-* \
1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1895 | -with-* | --with-* | -without-* | --without-* | --x)
1896 case "$ac_configure_args0 " in
1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 esac
1899 ;;
1900 -* ) ac_must_keep_next=true ;;
1901 esac
1902 fi
1903 as_fn_append ac_configure_args " '$ac_arg'"
1904 ;;
1905 esac
1906 done
1907done
1908{ ac_configure_args0=; unset ac_configure_args0;}
1909{ ac_configure_args1=; unset ac_configure_args1;}
1910
1911# When interrupted or exit'd, cleanup temporary files, and complete
1912# config.log. We remove comments because anyway the quotes in there
1913# would cause problems or look ugly.
1914# WARNING: Use '\'' to represent an apostrophe within the trap.
1915# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1916trap 'exit_status=$?
1917 # Save into config.log some information that might help in debugging.
1918 {
1919 echo
1920
1921 $as_echo "## ---------------- ##
1922## Cache variables. ##
1923## ---------------- ##"
1924 echo
1925 # The following way of writing the cache mishandles newlines in values,
1926(
1927 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in #(
1930 *${as_nl}*)
1931 case $ac_var in #(
1932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1933$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934 esac
1935 case $ac_var in #(
1936 _ | IFS | as_nl) ;; #(
1937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1938 *) { eval $ac_var=; unset $ac_var;} ;;
1939 esac ;;
1940 esac
1941 done
1942 (set) 2>&1 |
1943 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1944 *${as_nl}ac_space=\ *)
1945 sed -n \
1946 "s/'\''/'\''\\\\'\'''\''/g;
1947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948 ;; #(
1949 *)
1950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 ;;
1952 esac |
1953 sort
1954)
1955 echo
1956
1957 $as_echo "## ----------------- ##
1958## Output variables. ##
1959## ----------------- ##"
1960 echo
1961 for ac_var in $ac_subst_vars
1962 do
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1970
1971 if test -n "$ac_subst_files"; then
1972 $as_echo "## ------------------- ##
1973## File substitutions. ##
1974## ------------------- ##"
1975 echo
1976 for ac_var in $ac_subst_files
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985 fi
1986
1987 if test -s confdefs.h; then
1988 $as_echo "## ----------- ##
1989## confdefs.h. ##
1990## ----------- ##"
1991 echo
1992 cat confdefs.h
1993 echo
1994 fi
1995 test "$ac_signal" != 0 &&
1996 $as_echo "$as_me: caught signal $ac_signal"
1997 $as_echo "$as_me: exit $exit_status"
1998 } >&5
1999 rm -f core *.core core.conftest.* &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 exit $exit_status
2002' 0
2003for ac_signal in 1 2 13 15; do
2004 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005done
2006ac_signal=0
2007
2008# confdefs.h avoids OS command line length limits that DEFS can exceed.
2009rm -f -r conftest* confdefs.h
2010
2011$as_echo "/* confdefs.h */" > confdefs.h
2012
2013# Predefined preprocessor variables.
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_NAME "$PACKAGE_NAME"
2017_ACEOF
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2021_ACEOF
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_VERSION "$PACKAGE_VERSION"
2025_ACEOF
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_STRING "$PACKAGE_STRING"
2029_ACEOF
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2033_ACEOF
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_URL "$PACKAGE_URL"
2037_ACEOF
2038
2039
2040# Let the site file select an alternate cache file if it wants to.
2041# Prefer an explicitly selected file to automatically selected ones.
2042ac_site_file1=NONE
2043ac_site_file2=NONE
2044if test -n "$CONFIG_SITE"; then
2045 # We do not want a PATH search for config.site.
2046 case $CONFIG_SITE in #((
2047 -*) ac_site_file1=./$CONFIG_SITE;;
2048 */*) ac_site_file1=$CONFIG_SITE;;
2049 *) ac_site_file1=./$CONFIG_SITE;;
2050 esac
2051elif test "x$prefix" != xNONE; then
2052 ac_site_file1=$prefix/share/config.site
2053 ac_site_file2=$prefix/etc/config.site
2054else
2055 ac_site_file1=$ac_default_prefix/share/config.site
2056 ac_site_file2=$ac_default_prefix/etc/config.site
2057fi
2058for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059do
2060 test "x$ac_site_file" = xNONE && continue
2061 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2063$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file" \
2066 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068as_fn_error $? "failed to load site script $ac_site_file
2069See \`config.log' for more details" "$LINENO" 5; }
2070 fi
2071done
2072
2073if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special files
2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078$as_echo "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2083 fi
2084else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086$as_echo "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2088fi
2089
2090# Check that the precious variables saved in the cache have kept the same
2091# value.
2092ac_cache_corrupted=false
2093for ac_var in $ac_precious_vars; do
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
2098 case $ac_old_set,$ac_new_set in
2099 set,)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,set)
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 esac
2138 fi
2139done
2140if $ac_cache_corrupted; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146fi
2147## -------------------- ##
2148## Main body of script. ##
2149## -------------------- ##
2150
2151ac_ext=c
2152ac_cpp='$CPP $CPPFLAGS'
2153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
feec80c3 2158
d6ce1786
C
2159ac_aux_dir=
2160for ac_dir in setup "$srcdir"/setup; do
2161 if test -f "$ac_dir/install-sh"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/install-sh -c"
2164 break
2165 elif test -f "$ac_dir/install.sh"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/install.sh -c"
2168 break
2169 elif test -f "$ac_dir/shtool"; then
2170 ac_aux_dir=$ac_dir
2171 ac_install_sh="$ac_aux_dir/shtool install -c"
2172 break
2173 fi
2174done
2175if test -z "$ac_aux_dir"; then
2176 as_fn_error $? "cannot find install-sh, install.sh, or shtool in setup \"$srcdir\"/setup" "$LINENO" 5
2177fi
2178
2179# These three variables are undocumented and unsupported,
2180# and are intended to be withdrawn in a future Autoconf release.
2181# They can cause serious problems if a builder's source tree is in a directory
2182# whose full name contains unusual characters.
2183ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2184ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2185ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2186
2187
d6ce1786
C
2188CONFIGURE_FLAGS="$*"
2189
2190COCCI_VERSION="$PACKAGE_VERSION"
2191
2192COCCI_SRCDIR="$(pwd)"
feec80c3
C
2193
2194{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&5
2195$as_echo "$as_me: configuring coccinelle $COCCI_VERSION in $COCCI_SRCDIR" >&6;}
abad11c5
C
2196am__api_version='1.12'
2197
2198# Find a good install program. We prefer a C program (faster),
2199# so one script is as good as another. But avoid the broken or
2200# incompatible versions:
2201# SysV /etc/install, /usr/sbin/install
2202# SunOS /usr/etc/install
2203# IRIX /sbin/install
2204# AIX /bin/install
2205# AmigaOS /C/install, which installs bootblocks on floppy discs
2206# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2207# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2208# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2209# OS/2's system install, which has a completely different semantic
2210# ./install, which can be erroneously created by make from ./install.sh.
2211# Reject install programs that cannot install multiple files.
2212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2213$as_echo_n "checking for a BSD-compatible install... " >&6; }
2214if test -z "$INSTALL"; then
2215if ${ac_cv_path_install+:} false; then :
2216 $as_echo_n "(cached) " >&6
2217else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 # Account for people who put trailing slashes in PATH elements.
2224case $as_dir/ in #((
2225 ./ | .// | /[cC]/* | \
2226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2228 /usr/ucb/* ) ;;
2229 *)
2230 # OSF1 and SCO ODT 3.0 have their own names for install.
2231 # Don't use installbsd from OSF since it installs stuff as root
2232 # by default.
2233 for ac_prog in ginstall scoinst install; do
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2236 if test $ac_prog = install &&
2237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2238 # AIX install. It has an incompatible calling convention.
2239 :
2240 elif test $ac_prog = install &&
2241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242 # program-specific install script used by HP pwplus--don't use.
2243 :
2244 else
2245 rm -rf conftest.one conftest.two conftest.dir
2246 echo one > conftest.one
2247 echo two > conftest.two
2248 mkdir conftest.dir
2249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2250 test -s conftest.one && test -s conftest.two &&
2251 test -s conftest.dir/conftest.one &&
2252 test -s conftest.dir/conftest.two
2253 then
2254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2255 break 3
2256 fi
2257 fi
2258 fi
2259 done
2260 done
2261 ;;
2262esac
2263
2264 done
2265IFS=$as_save_IFS
2266
2267rm -rf conftest.one conftest.two conftest.dir
2268
2269fi
2270 if test "${ac_cv_path_install+set}" = set; then
2271 INSTALL=$ac_cv_path_install
2272 else
2273 # As a last resort, use the slow shell script. Don't cache a
2274 # value for INSTALL within a source directory, because that will
2275 # break other packages using the cache if that directory is
2276 # removed, or if the value is a relative name.
2277 INSTALL=$ac_install_sh
2278 fi
2279fi
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2281$as_echo "$INSTALL" >&6; }
2282
2283# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2284# It thinks the first close brace ends the variable substitution.
2285test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2286
2287test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2288
2289test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2290
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2292$as_echo_n "checking whether build environment is sane... " >&6; }
2293# Reject unsafe characters in $srcdir or the absolute working directory
2294# name. Accept space and tab only in the latter.
2295am_lf='
2296'
2297case `pwd` in
2298 *[\\\"\#\$\&\'\`$am_lf]*)
2299 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2300esac
2301case $srcdir in
2302 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2303 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2304esac
2305
2306# Do 'set' in a subshell so we don't clobber the current shell's
2307# arguments. Must try -L first in case configure is actually a
2308# symlink; some systems play weird games with the mod time of symlinks
2309# (eg FreeBSD returns the mod time of the symlink's containing
2310# directory).
2311if (
2312 am_has_slept=no
2313 for am_try in 1 2; do
2314 echo "timestamp, slept: $am_has_slept" > conftest.file
2315 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2316 if test "$*" = "X"; then
2317 # -L didn't work.
2318 set X `ls -t "$srcdir/configure" conftest.file`
2319 fi
2320 if test "$*" != "X $srcdir/configure conftest.file" \
2321 && test "$*" != "X conftest.file $srcdir/configure"; then
2322
2323 # If neither matched, then we have a broken ls. This can happen
2324 # if, for instance, CONFIG_SHELL is bash and it inherits a
2325 # broken ls alias from the environment. This has actually
2326 # happened. Such a system could not be considered "sane".
2327 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2328 alias in your environment" "$LINENO" 5
2329 fi
2330 if test "$2" = conftest.file || test $am_try -eq 2; then
2331 break
2332 fi
2333 # Just in case.
2334 sleep 1
2335 am_has_slept=yes
2336 done
2337 test "$2" = conftest.file
2338 )
2339then
2340 # Ok.
2341 :
2342else
2343 as_fn_error $? "newly created file is older than distributed files!
2344Check your system clock" "$LINENO" 5
2345fi
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2347$as_echo "yes" >&6; }
2348# If we didn't sleep, we still need to ensure time stamps of config.status and
2349# generated files are strictly newer.
2350am_sleep_pid=
2351if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2352 ( sleep 1 ) &
2353 am_sleep_pid=$!
2354fi
2355
2356rm -f conftest.file
2357
2358test "$program_prefix" != NONE &&
2359 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2360# Use a double $ so make ignores it.
2361test "$program_suffix" != NONE &&
2362 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2363# Double any \ or $.
2364# By default was `s,x,x', remove it if useless.
2365ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2366program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2367
2368# expand $ac_aux_dir to an absolute path
2369am_aux_dir=`cd $ac_aux_dir && pwd`
2370
2371if test x"${MISSING+set}" != xset; then
2372 case $am_aux_dir in
2373 *\ * | *\ *)
2374 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2375 *)
2376 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2377 esac
2378fi
2379# Use eval to expand $SHELL
2380if eval "$MISSING --run true"; then
2381 am_missing_run="$MISSING --run "
2382else
2383 am_missing_run=
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2385$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2386fi
2387
2388if test x"${install_sh}" != xset; then
2389 case $am_aux_dir in
2390 *\ * | *\ *)
2391 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2392 *)
2393 install_sh="\${SHELL} $am_aux_dir/install-sh"
2394 esac
2395fi
2396
2397# Installed binaries are usually stripped using 'strip' when the user
2398# run "make install-strip". However 'strip' might not be the right
2399# tool to use in cross-compilation environments, therefore Automake
2400# will honor the 'STRIP' environment variable to overrule this program.
2401if test "$cross_compiling" != no; then
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2404set dummy ${ac_tool_prefix}strip; ac_word=$2
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2406$as_echo_n "checking for $ac_word... " >&6; }
2407if ${ac_cv_prog_STRIP+:} false; then :
2408 $as_echo_n "(cached) " >&6
2409else
2410 if test -n "$STRIP"; then
2411 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424done
2425 done
2426IFS=$as_save_IFS
2427
2428fi
2429fi
2430STRIP=$ac_cv_prog_STRIP
2431if test -n "$STRIP"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2433$as_echo "$STRIP" >&6; }
2434else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436$as_echo "no" >&6; }
2437fi
2438
2439
2440fi
2441if test -z "$ac_cv_prog_STRIP"; then
2442 ac_ct_STRIP=$STRIP
2443 # Extract the first word of "strip", so it can be a program name with args.
2444set dummy strip; ac_word=$2
2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446$as_echo_n "checking for $ac_word... " >&6; }
2447if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449else
2450 if test -n "$ac_ct_STRIP"; then
2451 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460 ac_cv_prog_ac_ct_STRIP="strip"
2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464done
2465 done
2466IFS=$as_save_IFS
2467
2468fi
2469fi
2470ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2471if test -n "$ac_ct_STRIP"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2473$as_echo "$ac_ct_STRIP" >&6; }
2474else
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476$as_echo "no" >&6; }
2477fi
2478
2479 if test "x$ac_ct_STRIP" = x; then
2480 STRIP=":"
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483yes:)
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2486ac_tool_warned=yes ;;
2487esac
2488 STRIP=$ac_ct_STRIP
2489 fi
2490else
2491 STRIP="$ac_cv_prog_STRIP"
2492fi
2493
2494fi
2495INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2496
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2498$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2499if test -z "$MKDIR_P"; then
2500 if ${ac_cv_path_mkdir+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 for ac_prog in mkdir gmkdir; do
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2511 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2512 'mkdir (GNU coreutils) '* | \
2513 'mkdir (coreutils) '* | \
2514 'mkdir (fileutils) '4.1*)
2515 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2516 break 3;;
2517 esac
2518 done
2519 done
2520 done
2521IFS=$as_save_IFS
2522
2523fi
2524
2525 test -d ./--version && rmdir ./--version
2526 if test "${ac_cv_path_mkdir+set}" = set; then
2527 MKDIR_P="$ac_cv_path_mkdir -p"
2528 else
2529 # As a last resort, use the slow shell script. Don't cache a
2530 # value for MKDIR_P within a source directory, because that will
2531 # break other packages using the cache if that directory is
2532 # removed, or if the value is a relative name.
2533 MKDIR_P="$ac_install_sh -d"
2534 fi
2535fi
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2537$as_echo "$MKDIR_P" >&6; }
2538
2539for ac_prog in gawk mawk nawk awk
2540do
2541 # Extract the first word of "$ac_prog", so it can be a program name with args.
2542set dummy $ac_prog; ac_word=$2
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2544$as_echo_n "checking for $ac_word... " >&6; }
2545if ${ac_cv_prog_AWK+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547else
2548 if test -n "$AWK"; then
2549 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2558 ac_cv_prog_AWK="$ac_prog"
2559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 break 2
2561 fi
2562done
2563 done
2564IFS=$as_save_IFS
2565
2566fi
2567fi
2568AWK=$ac_cv_prog_AWK
2569if test -n "$AWK"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2571$as_echo "$AWK" >&6; }
2572else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2574$as_echo "no" >&6; }
2575fi
2576
2577
2578 test -n "$AWK" && break
2579done
2580
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2582$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2583set x ${MAKE-make}
2584ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2585if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587else
2588 cat >conftest.make <<\_ACEOF
2589SHELL = /bin/sh
2590all:
2591 @echo '@@@%%%=$(MAKE)=@@@%%%'
2592_ACEOF
2593# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2594case `${MAKE-make} -f conftest.make 2>/dev/null` in
2595 *@@@%%%=?*=@@@%%%*)
2596 eval ac_cv_prog_make_${ac_make}_set=yes;;
2597 *)
2598 eval ac_cv_prog_make_${ac_make}_set=no;;
2599esac
2600rm -f conftest.make
2601fi
2602if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604$as_echo "yes" >&6; }
2605 SET_MAKE=
2606else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608$as_echo "no" >&6; }
2609 SET_MAKE="MAKE=${MAKE-make}"
2610fi
2611
2612rm -rf .tst 2>/dev/null
2613mkdir .tst 2>/dev/null
2614if test -d .tst; then
2615 am__leading_dot=.
2616else
2617 am__leading_dot=_
2618fi
2619rmdir .tst 2>/dev/null
2620
2621if test "`cd $srcdir && pwd`" != "`pwd`"; then
2622 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2623 # is not polluted with repeated "-I."
2624 am__isrc=' -I$(srcdir)'
2625 # test to see if srcdir already configured
2626 if test -f $srcdir/config.status; then
2627 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2628 fi
2629fi
2630
2631# test whether we have cygpath
2632if test -z "$CYGPATH_W"; then
2633 if (cygpath --version) >/dev/null 2>/dev/null; then
2634 CYGPATH_W='cygpath -w'
2635 else
2636 CYGPATH_W=echo
2637 fi
2638fi
2639
2640
2641# Define the identity of the package.
2642 PACKAGE='coccinelle'
2643 VERSION='1.0.0-rc15'
2644
2645
2646cat >>confdefs.h <<_ACEOF
2647#define PACKAGE "$PACKAGE"
2648_ACEOF
2649
2650
2651cat >>confdefs.h <<_ACEOF
2652#define VERSION "$VERSION"
2653_ACEOF
2654
2655# Some tools Automake needs.
2656
2657ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2658
2659
2660AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2661
2662
2663AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2664
2665
2666AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2667
2668
2669MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2670
2671# For better backward compatibility. To be removed once Automake 1.9.x
2672# dies out for good. For more background, see:
2673# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2674# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2675mkdir_p='$(MKDIR_P)'
2676
2677# We need awk for the "check" target. The system "awk" is bad on
2678# some platforms.
2679# Always define AMTAR for backward compatibility. Yes, it's still used
2680# in the wild :-( We should find a proper way to deprecate it ...
2681AMTAR='$${TAR-tar}'
2682
2683am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2684
2685
2686
2687
2688
feec80c3
C
2689
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: determining version suffix" >&5
2692$as_echo "$as_me: determining version suffix" >&6;}
2693
2694 if test -z "$CONFVERSION" -a -d "./.git"; then :
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: building a version from a git repository" >&5
2696$as_echo "$as_me: building a version from a git repository" >&6;}
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}git", so it can be a program name with args.
2699set dummy ${ac_tool_prefix}git; ac_word=$2
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701$as_echo_n "checking for $ac_word... " >&6; }
2702if ${ac_cv_path_GIT+:} false; then :
2703 $as_echo_n "(cached) " >&6
2704else
2705 case $GIT in
2706 [\\/]* | ?:[\\/]*)
2707 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
2708 ;;
2709 *)
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2717 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721done
2722 done
2723IFS=$as_save_IFS
2724
2725 ;;
2726esac
2727fi
2728GIT=$ac_cv_path_GIT
2729if test -n "$GIT"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
2731$as_echo "$GIT" >&6; }
2732else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734$as_echo "no" >&6; }
2735fi
2736
2737
2738fi
2739if test -z "$ac_cv_path_GIT"; then
2740 ac_pt_GIT=$GIT
2741 # Extract the first word of "git", so it can be a program name with args.
2742set dummy git; ac_word=$2
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if ${ac_cv_path_ac_pt_GIT+:} false; then :
2746 $as_echo_n "(cached) " >&6
2747else
2748 case $ac_pt_GIT in
2749 [\\/]* | ?:[\\/]*)
2750 ac_cv_path_ac_pt_GIT="$ac_pt_GIT" # Let the user override the test with a path.
2751 ;;
2752 *)
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754for as_dir in $PATH
2755do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2760 ac_cv_path_ac_pt_GIT="$as_dir/$ac_word$ac_exec_ext"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764done
2765 done
2766IFS=$as_save_IFS
2767
2768 ;;
2769esac
2770fi
2771ac_pt_GIT=$ac_cv_path_ac_pt_GIT
2772if test -n "$ac_pt_GIT"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GIT" >&5
2774$as_echo "$ac_pt_GIT" >&6; }
2775else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777$as_echo "no" >&6; }
2778fi
2779
2780 if test "x$ac_pt_GIT" = x; then
2781 GIT=""
2782 else
2783 case $cross_compiling:$ac_tool_warned in
2784yes:)
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2787ac_tool_warned=yes ;;
2788esac
2789 GIT=$ac_pt_GIT
2790 fi
2791else
2792 GIT="$ac_cv_path_GIT"
2793fi
2794
2795 if test -n "$GIT"; then :
2796 CONFVERSION=`$GIT log -1 --date-order --date=rfc --pretty="format:%cd"`
2797
2798fi
2799
2800fi
2801
2802 if test -z "$CONFVERSION"; then :
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}date", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}date; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_path_DATE+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810else
2811 case $DATE in
2812 [\\/]* | ?:[\\/]*)
2813 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
2814 ;;
2815 *)
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2823 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827done
2828 done
2829IFS=$as_save_IFS
2830
2831 ;;
2832esac
2833fi
2834DATE=$ac_cv_path_DATE
2835if test -n "$DATE"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
2837$as_echo "$DATE" >&6; }
2838else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843
2844fi
2845if test -z "$ac_cv_path_DATE"; then
2846 ac_pt_DATE=$DATE
2847 # Extract the first word of "date", so it can be a program name with args.
2848set dummy date; ac_word=$2
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850$as_echo_n "checking for $ac_word... " >&6; }
2851if ${ac_cv_path_ac_pt_DATE+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853else
2854 case $ac_pt_DATE in
2855 [\\/]* | ?:[\\/]*)
2856 ac_cv_path_ac_pt_DATE="$ac_pt_DATE" # Let the user override the test with a path.
2857 ;;
2858 *)
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
2866 ac_cv_path_ac_pt_DATE="$as_dir/$ac_word$ac_exec_ext"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870done
2871 done
2872IFS=$as_save_IFS
2873
2874 ;;
2875esac
2876fi
2877ac_pt_DATE=$ac_cv_path_ac_pt_DATE
2878if test -n "$ac_pt_DATE"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DATE" >&5
2880$as_echo "$ac_pt_DATE" >&6; }
2881else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884fi
2885
2886 if test "x$ac_pt_DATE" = x; then
2887 DATE=""
2888 else
2889 case $cross_compiling:$ac_tool_warned in
2890yes:)
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893ac_tool_warned=yes ;;
2894esac
2895 DATE=$ac_pt_DATE
2896 fi
2897else
2898 DATE="$ac_cv_path_DATE"
2899fi
2900
2901 if test -n "$DATE"; then :
2902 CONFVERSION=`$DATE "+%a, %d %b %Y %H:%M:%S %z"`
2903
2904fi
2905
2906fi
2907
2908 if test -z "$CONFVERSION"; then :
2909 CONFVERSION=unknown
2910
2911fi
2912
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: version suffix set to $CONFVERSION" >&5
2914$as_echo "$as_me: version suffix set to $CONFVERSION" >&6;}
2915
2916
abad11c5
C
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses pkg-config m4 macros" >&5
2918$as_echo "$as_me: this configure program uses pkg-config m4 macros" >&6;}
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&5
2920$as_echo "$as_me: this configure program uses ocaml m4 macros (see setup/ocaml.m4)" >&6;}
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: this configure program uses custom m4 macros (see setup/cocci.m4)" >&5
2922$as_echo "$as_me: this configure program uses custom m4 macros (see setup/cocci.m4)" >&6;}
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&5
2924$as_echo "$as_me: some fake substitutions for required but unavailable programs may be used (see setup/fake*)" >&6;}
2925
2926
2927
2928
2929
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic tools" >&5
2931$as_echo "$as_me: verifying basic tools" >&6;}
2932
2933
2934
2935DEPDIR="${am__leading_dot}deps"
2936
2937ac_config_commands="$ac_config_commands depfiles"
2938
2939
2940am_make=${MAKE-make}
2941cat > confinc << 'END'
2942am__doit:
2943 @echo this is the am__doit target
2944.PHONY: am__doit
2945END
2946# If we don't find an include directive, just comment out the code.
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2948$as_echo_n "checking for style of include used by $am_make... " >&6; }
2949am__include="#"
2950am__quote=
2951_am_result=none
2952# First try GNU make style include.
2953echo "include confinc" > confmf
2954# Ignore all kinds of additional output from 'make'.
2955case `$am_make -s -f confmf 2> /dev/null` in #(
2956*the\ am__doit\ target*)
2957 am__include=include
2958 am__quote=
2959 _am_result=GNU
2960 ;;
2961esac
2962# Now try BSD make style include.
2963if test "$am__include" = "#"; then
2964 echo '.include "confinc"' > confmf
2965 case `$am_make -s -f confmf 2> /dev/null` in #(
2966 *the\ am__doit\ target*)
2967 am__include=.include
2968 am__quote="\""
2969 _am_result=BSD
2970 ;;
2971 esac
feec80c3
C
2972fi
2973
abad11c5
C
2974
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2976$as_echo "$_am_result" >&6; }
2977rm -f confinc confmf
2978
2979# Check whether --enable-dependency-tracking was given.
2980if test "${enable_dependency_tracking+set}" = set; then :
2981 enableval=$enable_dependency_tracking;
2982fi
2983
2984if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2986 AMDEPBACKSLASH='\'
2987 am__nodep='_no'
2988fi
2989 if test "x$enable_dependency_tracking" != xno; then
2990 AMDEP_TRUE=
2991 AMDEP_FALSE='#'
2992else
2993 AMDEP_TRUE='#'
2994 AMDEP_FALSE=
feec80c3 2995fi
abad11c5 2996
feec80c3
C
2997
2998ac_ext=c
2999ac_cpp='$CPP $CPPFLAGS'
3000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3005set dummy ${ac_tool_prefix}gcc; ac_word=$2
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007$as_echo_n "checking for $ac_word... " >&6; }
3008if ${ac_cv_prog_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025done
3026 done
3027IFS=$as_save_IFS
3028
3029fi
3030fi
3031CC=$ac_cv_prog_CC
3032if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034$as_echo "$CC" >&6; }
3035else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037$as_echo "no" >&6; }
3038fi
3039
3040
3041fi
3042if test -z "$ac_cv_prog_CC"; then
3043 ac_ct_CC=$CC
3044 # Extract the first word of "gcc", so it can be a program name with args.
3045set dummy gcc; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if ${ac_cv_prog_ac_ct_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3061 ac_cv_prog_ac_ct_CC="gcc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066 done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
3071ac_ct_CC=$ac_cv_prog_ac_ct_CC
3072if test -n "$ac_ct_CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3074$as_echo "$ac_ct_CC" >&6; }
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080 if test "x$ac_ct_CC" = x; then
3081 CC=""
3082 else
3083 case $cross_compiling:$ac_tool_warned in
3084yes:)
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087ac_tool_warned=yes ;;
3088esac
3089 CC=$ac_ct_CC
3090 fi
3091else
3092 CC="$ac_cv_prog_CC"
3093fi
3094
3095if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3098set dummy ${ac_tool_prefix}cc; ac_word=$2
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100$as_echo_n "checking for $ac_word... " >&6; }
3101if ${ac_cv_prog_CC+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3114 ac_cv_prog_CC="${ac_tool_prefix}cc"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118done
3119 done
3120IFS=$as_save_IFS
3121
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131fi
3132
3133
3134 fi
3135fi
3136if test -z "$CC"; then
3137 # Extract the first word of "cc", so it can be a program name with args.
3138set dummy cc; ac_word=$2
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146else
3147 ac_prog_rejected=no
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156 ac_prog_rejected=yes
3157 continue
3158 fi
3159 ac_cv_prog_CC="cc"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163done
3164 done
3165IFS=$as_save_IFS
3166
3167if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy $ac_cv_prog_CC
3170 shift
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3175 shift
3176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3177 fi
3178fi
3179fi
3180fi
3181CC=$ac_cv_prog_CC
3182if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184$as_echo "$CC" >&6; }
3185else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191fi
3192if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog in cl.exe
3195 do
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if ${ac_cv_prog_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218 done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223CC=$ac_cv_prog_CC
3224if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226$as_echo "$CC" >&6; }
3227else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230fi
3231
3232
3233 test -n "$CC" && break
3234 done
3235fi
3236if test -z "$CC"; then
3237 ac_ct_CC=$CC
3238 for ac_prog in cl.exe
3239do
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241set dummy $ac_prog; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if ${ac_cv_prog_ac_ct_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246else
3247 if test -n "$ac_ct_CC"; then
3248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
3257 ac_cv_prog_ac_ct_CC="$ac_prog"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261done
3262 done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268if test -n "$ac_ct_CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3270$as_echo "$ac_ct_CC" >&6; }
3271else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276
3277 test -n "$ac_ct_CC" && break
3278done
3279
3280 if test "x$ac_ct_CC" = x; then
3281 CC=""
3282 else
3283 case $cross_compiling:$ac_tool_warned in
3284yes:)
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287ac_tool_warned=yes ;;
3288esac
3289 CC=$ac_ct_CC
3290 fi
3291fi
3292
3293fi
3294
3295
3296test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298as_fn_error $? "no acceptable C compiler found in \$PATH
3299See \`config.log' for more details" "$LINENO" 5; }
3300
3301# Provide some information about the compiler.
3302$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3303set X $ac_compile
3304ac_compiler=$2
3305for ac_option in --version -v -V -qversion; do
3306 { { ac_try="$ac_compiler $ac_option >&5"
3307case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310esac
3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312$as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3314 ac_status=$?
3315 if test -s conftest.err; then
3316 sed '10a\
3317... rest of stderr output deleted ...
3318 10q' conftest.err >conftest.er1
3319 cat conftest.er1 >&5
3320 fi
3321 rm -f conftest.er1 conftest.err
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }
3324done
3325
3326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h. */
3328
3329int
3330main ()
3331{
3332
3333 ;
3334 return 0;
97111a47 3335}
feec80c3
C
3336_ACEOF
3337ac_clean_files_save=$ac_clean_files
3338ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3339# Try to create an executable without -o first, disregard a.out.
3340# It will help us diagnose broken compilers, and finding out an intuition
3341# of exeext.
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343$as_echo_n "checking whether the C compiler works... " >&6; }
3344ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
97111a47 3345
feec80c3
C
3346# The possible output files:
3347ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3348
3349ac_rmfiles=
3350for ac_file in $ac_files
3351do
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3355 esac
3356done
3357rm -f $ac_rmfiles
3358
3359if { { ac_try="$ac_link_default"
3360case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365$as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_link_default") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372# in a Makefile. We should not override ac_cv_exeext if it was cached,
3373# so that the user can short-circuit this test for compilers unknown to
3374# Autoconf.
3375for ac_file in $ac_files ''
3376do
3377 test -f "$ac_file" || continue
3378 case $ac_file in
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3380 ;;
3381 [ab].out )
3382 # We found the default executable, but exeext='' is most
3383 # certainly right.
3384 break;;
3385 *.* )
3386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3387 then :; else
3388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3389 fi
3390 # We set ac_cv_exeext here because the later test for it is not
3391 # safe: cross compilers may not add the suffix if given an `-o'
3392 # argument, so we may need to know it at that point already.
3393 # Even if this section looks crufty: it has the advantage of
3394 # actually working.
3395 break;;
3396 * )
3397 break;;
3398 esac
3399done
3400test "$ac_cv_exeext" = no && ac_cv_exeext=
3401
3402else
3403 ac_file=''
3404fi
3405if test -z "$ac_file"; then :
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407$as_echo "no" >&6; }
3408$as_echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413as_fn_error 77 "C compiler cannot create executables
3414See \`config.log' for more details" "$LINENO" 5; }
3415else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417$as_echo "yes" >&6; }
3418fi
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3420$as_echo_n "checking for C compiler default output file name... " >&6; }
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3422$as_echo "$ac_file" >&6; }
3423ac_exeext=$ac_cv_exeext
3424
3425rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3426ac_clean_files=$ac_clean_files_save
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3428$as_echo_n "checking for suffix of executables... " >&6; }
3429if { { ac_try="$ac_link"
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3441# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3442# work properly (i.e., refer to `conftest.exe'), while it won't with
3443# `rm'.
3444for ac_file in conftest.exe conftest conftest.*; do
3445 test -f "$ac_file" || continue
3446 case $ac_file in
3447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 break;;
3450 * ) break;;
3451 esac
3452done
3453else
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3457See \`config.log' for more details" "$LINENO" 5; }
3458fi
3459rm -f conftest conftest$ac_cv_exeext
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3461$as_echo "$ac_cv_exeext" >&6; }
3462
3463rm -f conftest.$ac_ext
3464EXEEXT=$ac_cv_exeext
3465ac_exeext=$EXEEXT
3466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h. */
3468#include <stdio.h>
3469int
3470main ()
3471{
3472FILE *f = fopen ("conftest.out", "w");
3473 return ferror (f) || fclose (f) != 0;
3474
3475 ;
3476 return 0;
17ba0788 3477}
feec80c3
C
3478_ACEOF
3479ac_clean_files="$ac_clean_files conftest.out"
3480# Check that the compiler produces executables we can run. If not, either
3481# the compiler is broken, or we cross compile.
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3483$as_echo_n "checking whether we are cross compiling... " >&6; }
3484if test "$cross_compiling" != yes; then
3485 { { ac_try="$ac_link"
3486case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489esac
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_link") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496 if { ac_try='./conftest$ac_cv_exeext'
3497 { { case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_try") 2>&5
3504 ac_status=$?
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; }; then
3507 cross_compiling=no
3508 else
3509 if test "$cross_compiling" = maybe; then
3510 cross_compiling=yes
3511 else
3512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error $? "cannot run C compiled programs.
3515If you meant to cross compile, use \`--host'.
3516See \`config.log' for more details" "$LINENO" 5; }
3517 fi
3518 fi
3519fi
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3521$as_echo "$cross_compiling" >&6; }
3522
3523rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3524ac_clean_files=$ac_clean_files_save
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3526$as_echo_n "checking for suffix of object files... " >&6; }
3527if ${ac_cv_objext+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529else
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h. */
174d1640 3532
feec80c3
C
3533int
3534main ()
3535{
3536
3537 ;
3538 return 0;
ca417fcf 3539}
feec80c3
C
3540_ACEOF
3541rm -f conftest.o conftest.obj
3542if { { ac_try="$ac_compile"
3543case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546esac
3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548$as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compile") 2>&5
3550 ac_status=$?
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; then :
3553 for ac_file in conftest.o conftest.obj conftest.*; do
3554 test -f "$ac_file" || continue;
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3557 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3558 break;;
3559 esac
3560done
3561else
3562 $as_echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567as_fn_error $? "cannot compute suffix of object files: cannot compile
3568See \`config.log' for more details" "$LINENO" 5; }
3569fi
3570rm -f conftest.$ac_cv_objext conftest.$ac_ext
3571fi
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3573$as_echo "$ac_cv_objext" >&6; }
3574OBJEXT=$ac_cv_objext
3575ac_objext=$OBJEXT
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3577$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3578if ${ac_cv_c_compiler_gnu+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580else
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h. */
3583
3584int
3585main ()
3586{
3587#ifndef __GNUC__
3588 choke me
3589#endif
3590
3591 ;
3592 return 0;
ca417fcf 3593}
feec80c3
C
3594_ACEOF
3595if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_compiler_gnu=yes
3597else
3598 ac_compiler_gnu=no
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601ac_cv_c_compiler_gnu=$ac_compiler_gnu
3602
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3605$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3606if test $ac_compiler_gnu = yes; then
3607 GCC=yes
3608else
3609 GCC=
3610fi
3611ac_test_CFLAGS=${CFLAGS+set}
3612ac_save_CFLAGS=$CFLAGS
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3614$as_echo_n "checking whether $CC accepts -g... " >&6; }
3615if ${ac_cv_prog_cc_g+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617else
3618 ac_save_c_werror_flag=$ac_c_werror_flag
3619 ac_c_werror_flag=yes
3620 ac_cv_prog_cc_g=no
3621 CFLAGS="-g"
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623/* end confdefs.h. */
3624
3625int
3626main ()
3627{
3628
3629 ;
3630 return 0;
3631}
3632_ACEOF
3633if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_g=yes
3635else
3636 CFLAGS=""
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h. */
3639
3640int
3641main ()
3642{
3643
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648if ac_fn_c_try_compile "$LINENO"; then :
3649
3650else
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3652 CFLAGS="-g"
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h. */
3655
3656int
3657main ()
3658{
3659
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664if ac_fn_c_try_compile "$LINENO"; then :
3665 ac_cv_prog_cc_g=yes
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668fi
3669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670fi
3671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3675$as_echo "$ac_cv_prog_cc_g" >&6; }
3676if test "$ac_test_CFLAGS" = set; then
3677 CFLAGS=$ac_save_CFLAGS
3678elif test $ac_cv_prog_cc_g = yes; then
3679 if test "$GCC" = yes; then
3680 CFLAGS="-g -O2"
3681 else
3682 CFLAGS="-g"
3683 fi
3684else
3685 if test "$GCC" = yes; then
3686 CFLAGS="-O2"
3687 else
3688 CFLAGS=
3689 fi
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3692$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3693if ${ac_cv_prog_cc_c89+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695else
3696 ac_cv_prog_cc_c89=no
3697ac_save_CC=$CC
3698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h. */
3700#include <stdarg.h>
3701#include <stdio.h>
755320b0 3702struct stat;
feec80c3
C
3703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3704struct buf { int x; };
3705FILE * (*rcsopen) (struct buf *, struct stat *, int);
3706static char *e (p, i)
3707 char **p;
3708 int i;
3709{
3710 return p[i];
3711}
3712static char *f (char * (*g) (char **, int), char **p, ...)
3713{
3714 char *s;
3715 va_list v;
3716 va_start (v,p);
3717 s = g (p, va_arg (v,int));
3718 va_end (v);
3719 return s;
3720}
3721
3722/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3723 function prototypes and stuff, but not '\xHH' hex character constants.
3724 These don't provoke an error unfortunately, instead are silently treated
3725 as 'x'. The following induces an error, until -std is added to get
3726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3727 array size at least. It's necessary to write '\x00'==0 to get something
3728 that's true only with -std. */
3729int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3730
3731/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3732 inside strings and character constants. */
3733#define FOO(x) 'x'
3734int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3735
3736int test (int i, double x);
3737struct s1 {int (*f) (int a);};
3738struct s2 {int (*f) (double a);};
3739int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3740int argc;
3741char **argv;
3742int
3743main ()
3744{
3745return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3746 ;
3747 return 0;
3748}
3749_ACEOF
3750for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752do
3753 CC="$ac_save_CC $ac_arg"
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_c89=$ac_arg
3756fi
3757rm -f core conftest.err conftest.$ac_objext
3758 test "x$ac_cv_prog_cc_c89" != "xno" && break
3759done
3760rm -f conftest.$ac_ext
3761CC=$ac_save_CC
3762
3763fi
3764# AC_CACHE_VAL
3765case "x$ac_cv_prog_cc_c89" in
3766 x)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3768$as_echo "none needed" >&6; } ;;
3769 xno)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771$as_echo "unsupported" >&6; } ;;
3772 *)
3773 CC="$CC $ac_cv_prog_cc_c89"
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3775$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3776esac
3777if test "x$ac_cv_prog_cc_c89" != xno; then :
3778
3779fi
3780
3781ac_ext=c
3782ac_cpp='$CPP $CPPFLAGS'
3783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
abad11c5
C
3787depcc="$CC" am_compiler_list=
3788
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3790$as_echo_n "checking dependency style of $depcc... " >&6; }
3791if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793else
3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795 # We make a subdir and do the tests there. Otherwise we can end up
3796 # making bogus files that we don't know about and never remove. For
3797 # instance it was reported that on HP-UX the gcc test will end up
3798 # making a dummy file named 'D' -- because '-MD' means "put the output
3799 # in D".
3800 rm -rf conftest.dir
3801 mkdir conftest.dir
3802 # Copy depcomp to subdir because otherwise we won't find it if we're
3803 # using a relative directory.
3804 cp "$am_depcomp" conftest.dir
3805 cd conftest.dir
3806 # We will build objects and dependencies in a subdirectory because
3807 # it helps to detect inapplicable dependency modes. For instance
3808 # both Tru64's cc and ICC support -MD to output dependencies as a
3809 # side effect of compilation, but ICC will put the dependencies in
3810 # the current directory while Tru64 will put them in the object
3811 # directory.
3812 mkdir sub
3813
3814 am_cv_CC_dependencies_compiler_type=none
3815 if test "$am_compiler_list" = ""; then
3816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817 fi
3818 am__universal=false
3819 case " $depcc " in #(
3820 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3821 esac
3822
3823 for depmode in $am_compiler_list; do
3824 # Setup a source with many dependencies, because some compilers
3825 # like to wrap large dependency lists on column 80 (with \), and
3826 # we should not choose a depcomp mode which is confused by this.
3827 #
3828 # We need to recreate these files for each test, as the compiler may
3829 # overwrite some of them when testing with obscure command lines.
3830 # This happens at least with the AIX C compiler.
3831 : > sub/conftest.c
3832 for i in 1 2 3 4 5 6; do
3833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3835 # Solaris 10 /bin/sh.
3836 echo '/* dummy */' > sub/conftst$i.h
3837 done
3838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3839
3840 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3841 # mode. It turns out that the SunPro C++ compiler does not properly
3842 # handle '-M -o', and we need to detect this. Also, some Intel
3843 # versions had trouble with output in subdirs.
3844 am__obj=sub/conftest.${OBJEXT-o}
3845 am__minus_obj="-o $am__obj"
3846 case $depmode in
3847 gcc)
3848 # This depmode causes a compiler race in universal mode.
3849 test "$am__universal" = false || continue
3850 ;;
3851 nosideeffect)
3852 # After this tag, mechanisms are not by side-effect, so they'll
3853 # only be used when explicitly requested.
3854 if test "x$enable_dependency_tracking" = xyes; then
3855 continue
3856 else
3857 break
3858 fi
3859 ;;
3860 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3861 # This compiler won't grok '-c -o', but also, the minuso test has
3862 # not run yet. These depmodes are late enough in the game, and
3863 # so weak that their functioning should not be impacted.
3864 am__obj=conftest.${OBJEXT-o}
3865 am__minus_obj=
3866 ;;
3867 none) break ;;
3868 esac
3869 if depmode=$depmode \
3870 source=sub/conftest.c object=$am__obj \
3871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3873 >/dev/null 2>conftest.err &&
3874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3878 # icc doesn't choke on unknown options, it will just issue warnings
3879 # or remarks (even with -Werror). So we grep stderr for any message
3880 # that says an option was ignored or not supported.
3881 # When given -MP, icc 7.0 and 7.1 complain thusly:
3882 # icc: Command line warning: ignoring option '-M'; no argument required
3883 # The diagnosis changed in icc 8.0:
3884 # icc: Command line remark: option '-MP' not supported
3885 if (grep 'ignoring option' conftest.err ||
3886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3887 am_cv_CC_dependencies_compiler_type=$depmode
3888 break
3889 fi
3890 fi
3891 done
3892
3893 cd ..
3894 rm -rf conftest.dir
3895else
3896 am_cv_CC_dependencies_compiler_type=none
3897fi
3898
3899fi
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3901$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3902CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903
3904 if
3905 test "x$enable_dependency_tracking" != xno \
3906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3907 am__fastdepCC_TRUE=
3908 am__fastdepCC_FALSE='#'
3909else
3910 am__fastdepCC_TRUE='#'
3911 am__fastdepCC_FALSE=
3912fi
3913
3914
feec80c3
C
3915ac_ext=c
3916ac_cpp='$CPP $CPPFLAGS'
3917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3921$as_echo_n "checking how to run the C preprocessor... " >&6; }
3922# On Suns, sometimes $CPP names a directory.
3923if test -n "$CPP" && test -d "$CPP"; then
3924 CPP=
3925fi
3926if test -z "$CPP"; then
3927 if ${ac_cv_prog_CPP+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929else
3930 # Double quotes because CPP needs to be expanded
3931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3932 do
3933 ac_preproc_ok=false
3934for ac_c_preproc_warn_flag in '' yes
3935do
3936 # Use a header file that comes with gcc, so configuring glibc
3937 # with a fresh cross-compiler works.
3938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939 # <limits.h> exists even on freestanding compilers.
3940 # On the NeXT, cc -E runs the code through the compiler's parser,
3941 # not just through cpp. "Syntax error" is here to catch this case.
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943/* end confdefs.h. */
3944#ifdef __STDC__
3945# include <limits.h>
3946#else
3947# include <assert.h>
3948#endif
3949 Syntax error
3950_ACEOF
3951if ac_fn_c_try_cpp "$LINENO"; then :
3952
3953else
3954 # Broken: fails on valid input.
3955continue
3956fi
3957rm -f conftest.err conftest.i conftest.$ac_ext
3958
3959 # OK, works on sane cases. Now check whether nonexistent headers
3960 # can be detected and how.
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962/* end confdefs.h. */
3963#include <ac_nonexistent.h>
3964_ACEOF
3965if ac_fn_c_try_cpp "$LINENO"; then :
3966 # Broken: success on invalid input.
3967continue
3968else
3969 # Passes both tests.
3970ac_preproc_ok=:
3971break
3972fi
3973rm -f conftest.err conftest.i conftest.$ac_ext
3974
3975done
3976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977rm -f conftest.i conftest.err conftest.$ac_ext
3978if $ac_preproc_ok; then :
3979 break
3980fi
3981
3982 done
3983 ac_cv_prog_CPP=$CPP
3984
3985fi
3986 CPP=$ac_cv_prog_CPP
3987else
3988 ac_cv_prog_CPP=$CPP
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3991$as_echo "$CPP" >&6; }
3992ac_preproc_ok=false
3993for ac_c_preproc_warn_flag in '' yes
3994do
3995 # Use a header file that comes with gcc, so configuring glibc
3996 # with a fresh cross-compiler works.
3997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 # <limits.h> exists even on freestanding compilers.
3999 # On the NeXT, cc -E runs the code through the compiler's parser,
4000 # not just through cpp. "Syntax error" is here to catch this case.
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h. */
4003#ifdef __STDC__
4004# include <limits.h>
4005#else
4006# include <assert.h>
4007#endif
4008 Syntax error
4009_ACEOF
4010if ac_fn_c_try_cpp "$LINENO"; then :
4011
4012else
4013 # Broken: fails on valid input.
4014continue
4015fi
4016rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018 # OK, works on sane cases. Now check whether nonexistent headers
4019 # can be detected and how.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021/* end confdefs.h. */
4022#include <ac_nonexistent.h>
4023_ACEOF
4024if ac_fn_c_try_cpp "$LINENO"; then :
4025 # Broken: success on invalid input.
4026continue
4027else
4028 # Passes both tests.
4029ac_preproc_ok=:
4030break
4031fi
4032rm -f conftest.err conftest.i conftest.$ac_ext
4033
4034done
4035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036rm -f conftest.i conftest.err conftest.$ac_ext
4037if $ac_preproc_ok; then :
4038
4039else
4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4043See \`config.log' for more details" "$LINENO" 5; }
4044fi
4045
4046ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052# Extract the first word of "tar", so it can be a program name with args.
4053set dummy tar; ac_word=$2
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055$as_echo_n "checking for $ac_word... " >&6; }
4056if ${ac_cv_path_TAR+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058else
4059 case $TAR in
4060 [\\/]* | ?:[\\/]*)
4061 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4062 ;;
4063 *)
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4071 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075done
4076 done
4077IFS=$as_save_IFS
4078
4079 ;;
4080esac
4081fi
4082TAR=$ac_cv_path_TAR
4083if test -n "$TAR"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4085$as_echo "$TAR" >&6; }
4086else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
4089fi
4090
4091
4092# Extract the first word of "patch", so it can be a program name with args.
4093set dummy patch; ac_word=$2
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095$as_echo_n "checking for $ac_word... " >&6; }
4096if ${ac_cv_path_PATCH+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098else
4099 case $PATCH in
4100 [\\/]* | ?:[\\/]*)
4101 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
4102 ;;
4103 *)
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4111 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115done
4116 done
4117IFS=$as_save_IFS
4118
4119 ;;
4120esac
4121fi
4122PATCH=$ac_cv_path_PATCH
4123if test -n "$PATCH"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
4125$as_echo "$PATCH" >&6; }
4126else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128$as_echo "no" >&6; }
4129fi
4130
4131
abad11c5
C
4132
4133if test "$INSTALL" = "setup/install-sh -c" -o "$INSTALL" = "./setup-install-sh -c"; then :
4134 INSTALL="$COCCI_SRCDIR/$INSTALL"
4135
4136
4137fi
4138
4139if test "$MKDIR_P" = "setup/install-sh -c -d" -o "$INSTALL" = "./setup-install-sh -c -d"; then :
4140 MKDIR_P="$COCCI_SRCDIR/$MKDIR_P"
4141
4142
4143fi
4144
d6ce1786
C
4145# Extract the first word of "patchelf", so it can be a program name with args.
4146set dummy patchelf; ac_word=$2
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148$as_echo_n "checking for $ac_word... " >&6; }
4149if ${ac_cv_path_PATCHELF+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151else
4152 case $PATCHELF in
4153 [\\/]* | ?:[\\/]*)
4154 ac_cv_path_PATCHELF="$PATCHELF" # Let the user override the test with a path.
4155 ;;
4156 *)
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6ce1786
C
4164 ac_cv_path_PATCHELF="$as_dir/$ac_word$ac_exec_ext"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 break 2
4167 fi
4168done
4169 done
4170IFS=$as_save_IFS
4171
4172 ;;
4173esac
4174fi
4175PATCHELF=$ac_cv_path_PATCHELF
4176if test -n "$PATCHELF"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCHELF" >&5
4178$as_echo "$PATCHELF" >&6; }
4179else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181$as_echo "no" >&6; }
4182fi
4183
4184
feec80c3
C
4185
4186
4187
4188# Check whether --with-pkg-config was given.
4189if test "${with_pkg_config+set}" = set; then :
4190 withval=$with_pkg_config;
4191fi
4192
4193 with_PKG_CONFIG="$with_pkg_config"
4194
feec80c3
C
4195 if test -n "$with_PKG_CONFIG" -a "x$with_PKG_CONFIG" != xno -a "x$with_PKG_CONFIG" != xyes; then :
4196 PKG_CONFIG="$with_PKG_CONFIG"
4197
4198
d6ce1786
C
4199else
4200 PKG_CONFIG="pkg-config"
4201
4202
feec80c3
C
4203fi
4204
d6ce1786
C
4205 if test "x$with_PKG_CONFIG" = xno; then :
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config is disabled explicitly" >&5
4207$as_echo "$as_me: pkg-config is disabled explicitly" >&6;}
4208 PKG_CONFIG=no
4209
4210
4211else
4212 if test "x$PKG_CONFIG" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then :
feec80c3
C
4213
4214
abad11c5
C
4215
4216
4217
4218
4219
feec80c3
C
4220if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4223set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225$as_echo_n "checking for $ac_word... " >&6; }
4226if ${ac_cv_path_PKG_CONFIG+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228else
4229 case $PKG_CONFIG in
4230 [\\/]* | ?:[\\/]*)
4231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4232 ;;
4233 *)
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245done
4246 done
4247IFS=$as_save_IFS
4248
4249 ;;
4250esac
4251fi
4252PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4253if test -n "$PKG_CONFIG"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4255$as_echo "$PKG_CONFIG" >&6; }
4256else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
4259fi
4260
4261
4262fi
4263if test -z "$ac_cv_path_PKG_CONFIG"; then
4264 ac_pt_PKG_CONFIG=$PKG_CONFIG
4265 # Extract the first word of "pkg-config", so it can be a program name with args.
4266set dummy pkg-config; ac_word=$2
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268$as_echo_n "checking for $ac_word... " >&6; }
4269if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271else
4272 case $ac_pt_PKG_CONFIG in
4273 [\\/]* | ?:[\\/]*)
4274 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4275 ;;
4276 *)
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4284 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288done
4289 done
4290IFS=$as_save_IFS
4291
4292 ;;
4293esac
4294fi
4295ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4296if test -n "$ac_pt_PKG_CONFIG"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4298$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4299else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
4302fi
4303
4304 if test "x$ac_pt_PKG_CONFIG" = x; then
4305 PKG_CONFIG=""
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308yes:)
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311ac_tool_warned=yes ;;
4312esac
4313 PKG_CONFIG=$ac_pt_PKG_CONFIG
4314 fi
4315else
4316 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4317fi
4318
4319fi
4320if test -n "$PKG_CONFIG"; then
4321 _pkg_min_version=0.9.0
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4323$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4324 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326$as_echo "yes" >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329$as_echo "no" >&6; }
4330 PKG_CONFIG=""
4331 fi
feec80c3
C
4332fi
4333
d6ce1786 4334elif test "x$PKG_CONFIG" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then :
feec80c3
C
4335 # checking for ocamllex
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
4338set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340$as_echo_n "checking for $ac_word... " >&6; }
4341if ${ac_cv_path_OCAMLLEX+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343else
4344 case $OCAMLLEX in
4345 [\\/]* | ?:[\\/]*)
4346 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
4347 ;;
4348 *)
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4356 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360done
4361 done
4362IFS=$as_save_IFS
4363
4364 ;;
4365esac
4366fi
4367OCAMLLEX=$ac_cv_path_OCAMLLEX
4368if test -n "$OCAMLLEX"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
4370$as_echo "$OCAMLLEX" >&6; }
4371else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376
4377fi
4378if test -z "$ac_cv_path_OCAMLLEX"; then
4379 ac_pt_OCAMLLEX=$OCAMLLEX
4380 # Extract the first word of "ocamllex", so it can be a program name with args.
4381set dummy ocamllex; ac_word=$2
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383$as_echo_n "checking for $ac_word... " >&6; }
4384if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386else
4387 case $ac_pt_OCAMLLEX in
4388 [\\/]* | ?:[\\/]*)
4389 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
4390 ;;
4391 *)
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4399 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 break 2
4402 fi
4403done
4404 done
4405IFS=$as_save_IFS
4406
4407 ;;
4408esac
4409fi
4410ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
4411if test -n "$ac_pt_OCAMLLEX"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
4413$as_echo "$ac_pt_OCAMLLEX" >&6; }
4414else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416$as_echo "no" >&6; }
4417fi
4418
4419 if test "x$ac_pt_OCAMLLEX" = x; then
4420 OCAMLLEX="no"
4421 else
4422 case $cross_compiling:$ac_tool_warned in
4423yes:)
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4426ac_tool_warned=yes ;;
4427esac
4428 OCAMLLEX=$ac_pt_OCAMLLEX
4429 fi
4430else
4431 OCAMLLEX="$ac_cv_path_OCAMLLEX"
4432fi
4433
4434 if test "$OCAMLLEX" != "no"; then
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
4437set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439$as_echo_n "checking for $ac_word... " >&6; }
4440if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442else
4443 case $OCAMLLEXDOTOPT in
4444 [\\/]* | ?:[\\/]*)
4445 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
4446 ;;
4447 *)
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4455 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460 done
4461IFS=$as_save_IFS
4462
4463 ;;
4464esac
4465fi
4466OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
4467if test -n "$OCAMLLEXDOTOPT"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
4469$as_echo "$OCAMLLEXDOTOPT" >&6; }
4470else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472$as_echo "no" >&6; }
4473fi
4474
4475
4476fi
4477if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
4478 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
4479 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
4480set dummy ocamllex.opt; ac_word=$2
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482$as_echo_n "checking for $ac_word... " >&6; }
4483if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485else
4486 case $ac_pt_OCAMLLEXDOTOPT in
4487 [\\/]* | ?:[\\/]*)
4488 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
4489 ;;
4490 *)
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4498 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4501 fi
4502done
4503 done
4504IFS=$as_save_IFS
4505
4506 ;;
4507esac
4508fi
4509ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
4510if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
4512$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
4513else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515$as_echo "no" >&6; }
4516fi
4517
4518 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
4519 OCAMLLEXDOTOPT="no"
4520 else
4521 case $cross_compiling:$ac_tool_warned in
4522yes:)
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525ac_tool_warned=yes ;;
4526esac
4527 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
4528 fi
4529else
4530 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
4531fi
4532
4533 if test "$OCAMLLEXDOTOPT" != "no"; then
4534 OCAMLLEX=$OCAMLLEXDOTOPT
4535 fi
4536 fi
4537
4538
4539
d6ce1786 4540elif test "x$PKG_CONFIG" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then :
feec80c3
C
4541 if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
4543set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545$as_echo_n "checking for $ac_word... " >&6; }
4546if ${ac_cv_path_OCAMLYACC+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548else
4549 case $OCAMLYACC in
4550 [\\/]* | ?:[\\/]*)
4551 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
4552 ;;
4553 *)
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4561 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565done
4566 done
4567IFS=$as_save_IFS
4568
4569 ;;
4570esac
4571fi
4572OCAMLYACC=$ac_cv_path_OCAMLYACC
4573if test -n "$OCAMLYACC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
4575$as_echo "$OCAMLYACC" >&6; }
4576else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582fi
4583if test -z "$ac_cv_path_OCAMLYACC"; then
4584 ac_pt_OCAMLYACC=$OCAMLYACC
4585 # Extract the first word of "ocamlyacc", so it can be a program name with args.
4586set dummy ocamlyacc; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591else
4592 case $ac_pt_OCAMLYACC in
4593 [\\/]* | ?:[\\/]*)
4594 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
4595 ;;
4596 *)
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4604 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608done
4609 done
4610IFS=$as_save_IFS
4611
4612 ;;
4613esac
4614fi
4615ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
4616if test -n "$ac_pt_OCAMLYACC"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
4618$as_echo "$ac_pt_OCAMLYACC" >&6; }
4619else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624 if test "x$ac_pt_OCAMLYACC" = x; then
4625 OCAMLYACC="no"
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628yes:)
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631ac_tool_warned=yes ;;
4632esac
4633 OCAMLYACC=$ac_pt_OCAMLYACC
4634 fi
4635else
4636 OCAMLYACC="$ac_cv_path_OCAMLYACC"
4637fi
4638
4639
4640
4641
4642else
4643 if test -n "$ac_tool_prefix"; then
d6ce1786
C
4644 # Extract the first word of "${ac_tool_prefix}[$]PKG_CONFIG", so it can be a program name with args.
4645set dummy ${ac_tool_prefix}$PKG_CONFIG; ac_word=$2
feec80c3
C
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647$as_echo_n "checking for $ac_word... " >&6; }
4648if ${ac_cv_path_PKG_CONFIG+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650else
4651 case $PKG_CONFIG in
4652 [\\/]* | ?:[\\/]*)
4653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4654 ;;
4655 *)
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668 done
4669IFS=$as_save_IFS
4670
4671 ;;
4672esac
4673fi
4674PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4675if test -n "$PKG_CONFIG"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4677$as_echo "$PKG_CONFIG" >&6; }
4678else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684fi
4685if test -z "$ac_cv_path_PKG_CONFIG"; then
4686 ac_pt_PKG_CONFIG=$PKG_CONFIG
d6ce1786
C
4687 # Extract the first word of "[$]PKG_CONFIG", so it can be a program name with args.
4688set dummy $PKG_CONFIG; ac_word=$2
feec80c3
C
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693else
4694 case $ac_pt_PKG_CONFIG in
4695 [\\/]* | ?:[\\/]*)
4696 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4697 ;;
4698 *)
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4706 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710done
4711 done
4712IFS=$as_save_IFS
4713
4714 ;;
4715esac
4716fi
4717ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4718if test -n "$ac_pt_PKG_CONFIG"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4720$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4721else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
4725
4726 if test "x$ac_pt_PKG_CONFIG" = x; then
4727 PKG_CONFIG=""
4728 else
4729 case $cross_compiling:$ac_tool_warned in
4730yes:)
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733ac_tool_warned=yes ;;
4734esac
4735 PKG_CONFIG=$ac_pt_PKG_CONFIG
4736 fi
4737else
4738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4739fi
4740
4741
4742fi
4743
4744
4745fi
4746
4747 if test -z "$PKG_CONFIG" -o "x$PKG_CONFIG" = xno; then :
4748 if test "x$with_PKG_CONFIG" = xyes; then :
4749 as_fn_error $? "--with=pkg-config is given explicitly but not found" "$LINENO" 5
4750
4751fi
4752
abad11c5
C
4753 if test -n ""; then :
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config not found. Trying substitute ." >&5
4755$as_echo "$as_me: pkg-config not found. Trying substitute ." >&6;}
4756 PKG_CONFIG=""
feec80c3
C
4757
4758 if test "xpkg-config" = xpkg-config -a "xPKG_CONFIG" = xPKG_CONFIG; then :
4759
4760
abad11c5
C
4761
4762
4763
4764
4765
feec80c3
C
4766if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4769set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771$as_echo_n "checking for $ac_word... " >&6; }
4772if ${ac_cv_path_PKG_CONFIG+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774else
4775 case $PKG_CONFIG in
4776 [\\/]* | ?:[\\/]*)
4777 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4778 ;;
4779 *)
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4787 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792 done
4793IFS=$as_save_IFS
4794
4795 ;;
4796esac
4797fi
4798PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4799if test -n "$PKG_CONFIG"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4801$as_echo "$PKG_CONFIG" >&6; }
4802else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804$as_echo "no" >&6; }
4805fi
4806
4807
4808fi
4809if test -z "$ac_cv_path_PKG_CONFIG"; then
4810 ac_pt_PKG_CONFIG=$PKG_CONFIG
4811 # Extract the first word of "pkg-config", so it can be a program name with args.
4812set dummy pkg-config; ac_word=$2
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814$as_echo_n "checking for $ac_word... " >&6; }
4815if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817else
4818 case $ac_pt_PKG_CONFIG in
4819 [\\/]* | ?:[\\/]*)
4820 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4821 ;;
4822 *)
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4830 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834done
4835 done
4836IFS=$as_save_IFS
4837
4838 ;;
4839esac
4840fi
4841ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4842if test -n "$ac_pt_PKG_CONFIG"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4844$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4845else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847$as_echo "no" >&6; }
4848fi
4849
4850 if test "x$ac_pt_PKG_CONFIG" = x; then
4851 PKG_CONFIG=""
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854yes:)
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857ac_tool_warned=yes ;;
4858esac
4859 PKG_CONFIG=$ac_pt_PKG_CONFIG
4860 fi
4861else
4862 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4863fi
4864
4865fi
4866if test -n "$PKG_CONFIG"; then
4867 _pkg_min_version=0.9.0
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4869$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4870 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4872$as_echo "yes" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875$as_echo "no" >&6; }
4876 PKG_CONFIG=""
4877 fi
feec80c3
C
4878fi
4879
4880elif test "xpkg-config" = xocamllex -a "xPKG_CONFIG" = xOCAMLLEX; then :
4881 # checking for ocamllex
4882 if test -n "$ac_tool_prefix"; then
4883 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
4884set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886$as_echo_n "checking for $ac_word... " >&6; }
4887if ${ac_cv_path_OCAMLLEX+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889else
4890 case $OCAMLLEX in
4891 [\\/]* | ?:[\\/]*)
4892 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
4893 ;;
4894 *)
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4902 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906done
4907 done
4908IFS=$as_save_IFS
4909
4910 ;;
4911esac
4912fi
4913OCAMLLEX=$ac_cv_path_OCAMLLEX
4914if test -n "$OCAMLLEX"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
4916$as_echo "$OCAMLLEX" >&6; }
4917else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919$as_echo "no" >&6; }
4920fi
4921
4922
4923fi
4924if test -z "$ac_cv_path_OCAMLLEX"; then
4925 ac_pt_OCAMLLEX=$OCAMLLEX
4926 # Extract the first word of "ocamllex", so it can be a program name with args.
4927set dummy ocamllex; ac_word=$2
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929$as_echo_n "checking for $ac_word... " >&6; }
4930if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932else
4933 case $ac_pt_OCAMLLEX in
4934 [\\/]* | ?:[\\/]*)
4935 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
4936 ;;
4937 *)
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
4945 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949done
4950 done
4951IFS=$as_save_IFS
4952
4953 ;;
4954esac
4955fi
4956ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
4957if test -n "$ac_pt_OCAMLLEX"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
4959$as_echo "$ac_pt_OCAMLLEX" >&6; }
4960else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962$as_echo "no" >&6; }
4963fi
4964
4965 if test "x$ac_pt_OCAMLLEX" = x; then
4966 OCAMLLEX="no"
4967 else
4968 case $cross_compiling:$ac_tool_warned in
4969yes:)
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972ac_tool_warned=yes ;;
4973esac
4974 OCAMLLEX=$ac_pt_OCAMLLEX
4975 fi
4976else
4977 OCAMLLEX="$ac_cv_path_OCAMLLEX"
4978fi
4979
4980 if test "$OCAMLLEX" != "no"; then
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
4983set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985$as_echo_n "checking for $ac_word... " >&6; }
4986if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988else
4989 case $OCAMLLEXDOTOPT in
4990 [\\/]* | ?:[\\/]*)
4991 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
4992 ;;
4993 *)
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5001 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5004 fi
5005done
5006 done
5007IFS=$as_save_IFS
5008
5009 ;;
5010esac
5011fi
5012OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
5013if test -n "$OCAMLLEXDOTOPT"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
5015$as_echo "$OCAMLLEXDOTOPT" >&6; }
5016else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018$as_echo "no" >&6; }
5019fi
5020
5021
5022fi
5023if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
5024 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
5025 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
5026set dummy ocamllex.opt; ac_word=$2
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028$as_echo_n "checking for $ac_word... " >&6; }
5029if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031else
5032 case $ac_pt_OCAMLLEXDOTOPT in
5033 [\\/]* | ?:[\\/]*)
5034 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
5035 ;;
5036 *)
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5044 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048done
5049 done
5050IFS=$as_save_IFS
5051
5052 ;;
5053esac
5054fi
5055ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
5056if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
5058$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
5059else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
5062fi
5063
5064 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
5065 OCAMLLEXDOTOPT="no"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068yes:)
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071ac_tool_warned=yes ;;
5072esac
5073 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
5074 fi
5075else
5076 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
5077fi
5078
5079 if test "$OCAMLLEXDOTOPT" != "no"; then
5080 OCAMLLEX=$OCAMLLEXDOTOPT
5081 fi
5082 fi
5083
5084
5085
5086elif test "xpkg-config" = xocamlyacc -a "xPKG_CONFIG" = xOCAMLYACC; then :
5087 if test -n "$ac_tool_prefix"; then
5088 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
5089set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091$as_echo_n "checking for $ac_word... " >&6; }
5092if ${ac_cv_path_OCAMLYACC+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094else
5095 case $OCAMLYACC in
5096 [\\/]* | ?:[\\/]*)
5097 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
5098 ;;
5099 *)
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5107 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5110 fi
5111done
5112 done
5113IFS=$as_save_IFS
5114
5115 ;;
5116esac
5117fi
5118OCAMLYACC=$ac_cv_path_OCAMLYACC
5119if test -n "$OCAMLYACC"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
5121$as_echo "$OCAMLYACC" >&6; }
5122else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124$as_echo "no" >&6; }
5125fi
5126
5127
5128fi
5129if test -z "$ac_cv_path_OCAMLYACC"; then
5130 ac_pt_OCAMLYACC=$OCAMLYACC
5131 # Extract the first word of "ocamlyacc", so it can be a program name with args.
5132set dummy ocamlyacc; ac_word=$2
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134$as_echo_n "checking for $ac_word... " >&6; }
5135if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137else
5138 case $ac_pt_OCAMLYACC in
5139 [\\/]* | ?:[\\/]*)
5140 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
5141 ;;
5142 *)
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5150 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154done
5155 done
5156IFS=$as_save_IFS
5157
5158 ;;
5159esac
5160fi
5161ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
5162if test -n "$ac_pt_OCAMLYACC"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
5164$as_echo "$ac_pt_OCAMLYACC" >&6; }
5165else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
5168fi
5169
5170 if test "x$ac_pt_OCAMLYACC" = x; then
5171 OCAMLYACC="no"
5172 else
5173 case $cross_compiling:$ac_tool_warned in
5174yes:)
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5177ac_tool_warned=yes ;;
5178esac
5179 OCAMLYACC=$ac_pt_OCAMLYACC
5180 fi
5181else
5182 OCAMLYACC="$ac_cv_path_OCAMLYACC"
5183fi
5184
5185
5186
5187
5188else
5189 if test -n "$ac_tool_prefix"; then
5190 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5191set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193$as_echo_n "checking for $ac_word... " >&6; }
5194if ${ac_cv_path_PKG_CONFIG+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196else
5197 case $PKG_CONFIG in
5198 [\\/]* | ?:[\\/]*)
5199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5200 ;;
5201 *)
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214 done
5215IFS=$as_save_IFS
5216
5217 ;;
5218esac
5219fi
5220PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5221if test -n "$PKG_CONFIG"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5223$as_echo "$PKG_CONFIG" >&6; }
5224else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229
5230fi
5231if test -z "$ac_cv_path_PKG_CONFIG"; then
5232 ac_pt_PKG_CONFIG=$PKG_CONFIG
5233 # Extract the first word of "pkg-config", so it can be a program name with args.
5234set dummy pkg-config; ac_word=$2
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236$as_echo_n "checking for $ac_word... " >&6; }
5237if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239else
5240 case $ac_pt_PKG_CONFIG in
5241 [\\/]* | ?:[\\/]*)
5242 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5243 ;;
5244 *)
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5252 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257 done
5258IFS=$as_save_IFS
5259
5260 ;;
5261esac
5262fi
5263ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5264if test -n "$ac_pt_PKG_CONFIG"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5266$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5267else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269$as_echo "no" >&6; }
5270fi
5271
5272 if test "x$ac_pt_PKG_CONFIG" = x; then
5273 PKG_CONFIG=""
5274 else
5275 case $cross_compiling:$ac_tool_warned in
5276yes:)
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279ac_tool_warned=yes ;;
5280esac
5281 PKG_CONFIG=$ac_pt_PKG_CONFIG
5282 fi
5283else
5284 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5285fi
5286
5287
5288fi
5289
5290 SUBSTITUTED_PKG_CONFIG=yes
5291
5292
5293fi
5294
5295fi
5296
5297 if test -z "$PKG_CONFIG"; then :
5298 PKG_CONFIG=no
5299
5300fi
5301
5302if test "x$PKG_CONFIG" = xno; then :
abad11c5
C
5303 PKG_CONFIG_ORIG=pkg-config
5304
5305
5306else
5307 PKG_CONFIG_ORIG=$PKG_CONFIG
5308
feec80c3
C
5309
5310fi
5311
abad11c5
C
5312PKG_CONFIG="$COCCI_SRCDIR/setup/fake-subst.sh $PKG_CONFIG_ORIG"
5313
5314
5315
feec80c3
C
5316 # checking for ocamlc
5317 if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args.
5319set dummy ${ac_tool_prefix}ocamlc; ac_word=$2
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if ${ac_cv_path_OCAMLC+:} false; then :
5323 $as_echo_n "(cached) " >&6
5324else
5325 case $OCAMLC in
5326 [\\/]* | ?:[\\/]*)
5327 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
5328 ;;
5329 *)
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5337 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341done
5342 done
5343IFS=$as_save_IFS
5344
5345 ;;
5346esac
5347fi
5348OCAMLC=$ac_cv_path_OCAMLC
5349if test -n "$OCAMLC"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
5351$as_echo "$OCAMLC" >&6; }
5352else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356
5357
5358fi
5359if test -z "$ac_cv_path_OCAMLC"; then
5360 ac_pt_OCAMLC=$OCAMLC
5361 # Extract the first word of "ocamlc", so it can be a program name with args.
5362set dummy ocamlc; ac_word=$2
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if ${ac_cv_path_ac_pt_OCAMLC+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367else
5368 case $ac_pt_OCAMLC in
5369 [\\/]* | ?:[\\/]*)
5370 ac_cv_path_ac_pt_OCAMLC="$ac_pt_OCAMLC" # Let the user override the test with a path.
5371 ;;
5372 *)
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374for as_dir in $PATH
5375do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5380 ac_cv_path_ac_pt_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384done
5385 done
5386IFS=$as_save_IFS
5387
5388 ;;
5389esac
5390fi
5391ac_pt_OCAMLC=$ac_cv_path_ac_pt_OCAMLC
5392if test -n "$ac_pt_OCAMLC"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLC" >&5
5394$as_echo "$ac_pt_OCAMLC" >&6; }
5395else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399
5400 if test "x$ac_pt_OCAMLC" = x; then
5401 OCAMLC="no"
5402 else
5403 case $cross_compiling:$ac_tool_warned in
5404yes:)
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5407ac_tool_warned=yes ;;
5408esac
5409 OCAMLC=$ac_pt_OCAMLC
5410 fi
5411else
5412 OCAMLC="$ac_cv_path_OCAMLC"
5413fi
5414
5415
5416 if test "$OCAMLC" != "no"; then
5417 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'`
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5
5419$as_echo "OCaml version is $OCAMLVERSION" >&6; }
5420 # If OCAMLLIB is set, use it
5421 if test "$OCAMLLIB" = ""; then
5422 OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4`
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5
5425$as_echo "OCAMLLIB previously set; preserving it." >&6; }
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5
5428$as_echo "OCaml library path is $OCAMLLIB" >&6; }
5429
5430
5431
5432
5433 # checking for ocamlopt
5434 if test -n "$ac_tool_prefix"; then
5435 # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args.
5436set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2
5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438$as_echo_n "checking for $ac_word... " >&6; }
5439if ${ac_cv_path_OCAMLOPT+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441else
5442 case $OCAMLOPT in
5443 [\\/]* | ?:[\\/]*)
5444 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
5445 ;;
5446 *)
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448for as_dir in $PATH
5449do
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5454 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458done
5459 done
5460IFS=$as_save_IFS
5461
5462 ;;
5463esac
5464fi
5465OCAMLOPT=$ac_cv_path_OCAMLOPT
5466if test -n "$OCAMLOPT"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
5468$as_echo "$OCAMLOPT" >&6; }
5469else
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471$as_echo "no" >&6; }
5472fi
5473
5474
5475fi
5476if test -z "$ac_cv_path_OCAMLOPT"; then
5477 ac_pt_OCAMLOPT=$OCAMLOPT
5478 # Extract the first word of "ocamlopt", so it can be a program name with args.
5479set dummy ocamlopt; ac_word=$2
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481$as_echo_n "checking for $ac_word... " >&6; }
5482if ${ac_cv_path_ac_pt_OCAMLOPT+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484else
5485 case $ac_pt_OCAMLOPT in
5486 [\\/]* | ?:[\\/]*)
5487 ac_cv_path_ac_pt_OCAMLOPT="$ac_pt_OCAMLOPT" # Let the user override the test with a path.
5488 ;;
5489 *)
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5497 ac_cv_path_ac_pt_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501done
5502 done
5503IFS=$as_save_IFS
5504
5505 ;;
5506esac
5507fi
5508ac_pt_OCAMLOPT=$ac_cv_path_ac_pt_OCAMLOPT
5509if test -n "$ac_pt_OCAMLOPT"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPT" >&5
5511$as_echo "$ac_pt_OCAMLOPT" >&6; }
5512else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
5516
5517 if test "x$ac_pt_OCAMLOPT" = x; then
5518 OCAMLOPT="no"
5519 else
5520 case $cross_compiling:$ac_tool_warned in
5521yes:)
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524ac_tool_warned=yes ;;
5525esac
5526 OCAMLOPT=$ac_pt_OCAMLOPT
5527 fi
5528else
5529 OCAMLOPT="$ac_cv_path_OCAMLOPT"
5530fi
5531
5532 OCAMLBEST=byte
5533 if test "$OCAMLOPT" = "no"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
5535$as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
5536 else
5537 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5538 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5
5540$as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; }
5541 OCAMLOPT=no
5542 else
5543 OCAMLBEST=opt
5544 fi
5545 fi
5546
5547
5548
5549 # checking for ocamlc.opt
5550 if test -n "$ac_tool_prefix"; then
5551 # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args.
5552set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554$as_echo_n "checking for $ac_word... " >&6; }
5555if ${ac_cv_path_OCAMLCDOTOPT+:} false; then :
5556 $as_echo_n "(cached) " >&6
5557else
5558 case $OCAMLCDOTOPT in
5559 [\\/]* | ?:[\\/]*)
5560 ac_cv_path_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test with a path.
5561 ;;
5562 *)
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5570 ac_cv_path_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574done
5575 done
5576IFS=$as_save_IFS
5577
5578 ;;
5579esac
5580fi
5581OCAMLCDOTOPT=$ac_cv_path_OCAMLCDOTOPT
5582if test -n "$OCAMLCDOTOPT"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5
5584$as_echo "$OCAMLCDOTOPT" >&6; }
5585else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590
5591fi
5592if test -z "$ac_cv_path_OCAMLCDOTOPT"; then
5593 ac_pt_OCAMLCDOTOPT=$OCAMLCDOTOPT
5594 # Extract the first word of "ocamlc.opt", so it can be a program name with args.
5595set dummy ocamlc.opt; ac_word=$2
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
5598if ${ac_cv_path_ac_pt_OCAMLCDOTOPT+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600else
5601 case $ac_pt_OCAMLCDOTOPT in
5602 [\\/]* | ?:[\\/]*)
5603 ac_cv_path_ac_pt_OCAMLCDOTOPT="$ac_pt_OCAMLCDOTOPT" # Let the user override the test with a path.
5604 ;;
5605 *)
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607for as_dir in $PATH
5608do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5613 ac_cv_path_ac_pt_OCAMLCDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617done
5618 done
5619IFS=$as_save_IFS
5620
5621 ;;
5622esac
5623fi
5624ac_pt_OCAMLCDOTOPT=$ac_cv_path_ac_pt_OCAMLCDOTOPT
5625if test -n "$ac_pt_OCAMLCDOTOPT"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLCDOTOPT" >&5
5627$as_echo "$ac_pt_OCAMLCDOTOPT" >&6; }
5628else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630$as_echo "no" >&6; }
5631fi
5632
5633 if test "x$ac_pt_OCAMLCDOTOPT" = x; then
5634 OCAMLCDOTOPT="no"
5635 else
5636 case $cross_compiling:$ac_tool_warned in
5637yes:)
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640ac_tool_warned=yes ;;
5641esac
5642 OCAMLCDOTOPT=$ac_pt_OCAMLCDOTOPT
5643 fi
5644else
5645 OCAMLCDOTOPT="$ac_cv_path_OCAMLCDOTOPT"
5646fi
5647
5648 if test "$OCAMLCDOTOPT" != "no"; then
5649 TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5650 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5
5652$as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; }
5653 else
5654 OCAMLC=$OCAMLCDOTOPT
5655 fi
5656 fi
5657
5658 # checking for ocamlopt.opt
5659 if test "$OCAMLOPT" != "no" ; then
5660 if test -n "$ac_tool_prefix"; then
5661 # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args.
5662set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
5665if ${ac_cv_path_OCAMLOPTDOTOPT+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667else
5668 case $OCAMLOPTDOTOPT in
5669 [\\/]* | ?:[\\/]*)
5670 ac_cv_path_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test with a path.
5671 ;;
5672 *)
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5680 ac_cv_path_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684done
5685 done
5686IFS=$as_save_IFS
5687
5688 ;;
5689esac
5690fi
5691OCAMLOPTDOTOPT=$ac_cv_path_OCAMLOPTDOTOPT
5692if test -n "$OCAMLOPTDOTOPT"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5
5694$as_echo "$OCAMLOPTDOTOPT" >&6; }
5695else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
5698fi
5699
5700
5701fi
5702if test -z "$ac_cv_path_OCAMLOPTDOTOPT"; then
5703 ac_pt_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT
5704 # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
5705set dummy ocamlopt.opt; ac_word=$2
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707$as_echo_n "checking for $ac_word... " >&6; }
5708if ${ac_cv_path_ac_pt_OCAMLOPTDOTOPT+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710else
5711 case $ac_pt_OCAMLOPTDOTOPT in
5712 [\\/]* | ?:[\\/]*)
5713 ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$ac_pt_OCAMLOPTDOTOPT" # Let the user override the test with a path.
5714 ;;
5715 *)
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5723 ac_cv_path_ac_pt_OCAMLOPTDOTOPT="$as_dir/$ac_word$ac_exec_ext"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727done
5728 done
5729IFS=$as_save_IFS
5730
5731 ;;
5732esac
5733fi
5734ac_pt_OCAMLOPTDOTOPT=$ac_cv_path_ac_pt_OCAMLOPTDOTOPT
5735if test -n "$ac_pt_OCAMLOPTDOTOPT"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLOPTDOTOPT" >&5
5737$as_echo "$ac_pt_OCAMLOPTDOTOPT" >&6; }
5738else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }
5741fi
5742
5743 if test "x$ac_pt_OCAMLOPTDOTOPT" = x; then
5744 OCAMLOPTDOTOPT="no"
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747yes:)
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750ac_tool_warned=yes ;;
5751esac
5752 OCAMLOPTDOTOPT=$ac_pt_OCAMLOPTDOTOPT
5753 fi
5754else
5755 OCAMLOPTDOTOPT="$ac_cv_path_OCAMLOPTDOTOPT"
5756fi
5757
5758 if test "$OCAMLOPTDOTOPT" != "no"; then
5759 TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' `
5760 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5
5762$as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; }
5763 else
5764 OCAMLOPT=$OCAMLOPTDOTOPT
5765 fi
5766 fi
5767 fi
5768
5769
5770 fi
5771
5772
5773
5774 # checking for ocaml toplevel
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}ocaml", so it can be a program name with args.
5777set dummy ${ac_tool_prefix}ocaml; ac_word=$2
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779$as_echo_n "checking for $ac_word... " >&6; }
5780if ${ac_cv_path_OCAML+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782else
5783 case $OCAML in
5784 [\\/]* | ?:[\\/]*)
5785 ac_cv_path_OCAML="$OCAML" # Let the user override the test with a path.
5786 ;;
5787 *)
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5795 ac_cv_path_OCAML="$as_dir/$ac_word$ac_exec_ext"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800 done
5801IFS=$as_save_IFS
5802
5803 ;;
5804esac
5805fi
5806OCAML=$ac_cv_path_OCAML
5807if test -n "$OCAML"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5
5809$as_echo "$OCAML" >&6; }
5810else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
5813fi
5814
5815
5816fi
5817if test -z "$ac_cv_path_OCAML"; then
5818 ac_pt_OCAML=$OCAML
5819 # Extract the first word of "ocaml", so it can be a program name with args.
5820set dummy ocaml; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if ${ac_cv_path_ac_pt_OCAML+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825else
5826 case $ac_pt_OCAML in
5827 [\\/]* | ?:[\\/]*)
5828 ac_cv_path_ac_pt_OCAML="$ac_pt_OCAML" # Let the user override the test with a path.
5829 ;;
5830 *)
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5838 ac_cv_path_ac_pt_OCAML="$as_dir/$ac_word$ac_exec_ext"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842done
5843 done
5844IFS=$as_save_IFS
5845
5846 ;;
5847esac
5848fi
5849ac_pt_OCAML=$ac_cv_path_ac_pt_OCAML
5850if test -n "$ac_pt_OCAML"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAML" >&5
5852$as_echo "$ac_pt_OCAML" >&6; }
5853else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858 if test "x$ac_pt_OCAML" = x; then
5859 OCAML="no"
5860 else
5861 case $cross_compiling:$ac_tool_warned in
5862yes:)
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865ac_tool_warned=yes ;;
5866esac
5867 OCAML=$ac_pt_OCAML
5868 fi
5869else
5870 OCAML="$ac_cv_path_OCAML"
5871fi
5872
5873
5874 # checking for ocamldep
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args.
5877set dummy ${ac_tool_prefix}ocamldep; ac_word=$2
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879$as_echo_n "checking for $ac_word... " >&6; }
5880if ${ac_cv_path_OCAMLDEP+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882else
5883 case $OCAMLDEP in
5884 [\\/]* | ?:[\\/]*)
5885 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
5886 ;;
5887 *)
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5895 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899done
5900 done
5901IFS=$as_save_IFS
5902
5903 ;;
5904esac
5905fi
5906OCAMLDEP=$ac_cv_path_OCAMLDEP
5907if test -n "$OCAMLDEP"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
5909$as_echo "$OCAMLDEP" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916fi
5917if test -z "$ac_cv_path_OCAMLDEP"; then
5918 ac_pt_OCAMLDEP=$OCAMLDEP
5919 # Extract the first word of "ocamldep", so it can be a program name with args.
5920set dummy ocamldep; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if ${ac_cv_path_ac_pt_OCAMLDEP+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925else
5926 case $ac_pt_OCAMLDEP in
5927 [\\/]* | ?:[\\/]*)
5928 ac_cv_path_ac_pt_OCAMLDEP="$ac_pt_OCAMLDEP" # Let the user override the test with a path.
5929 ;;
5930 *)
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932for as_dir in $PATH
5933do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5938 ac_cv_path_ac_pt_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942done
5943 done
5944IFS=$as_save_IFS
5945
5946 ;;
5947esac
5948fi
5949ac_pt_OCAMLDEP=$ac_cv_path_ac_pt_OCAMLDEP
5950if test -n "$ac_pt_OCAMLDEP"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDEP" >&5
5952$as_echo "$ac_pt_OCAMLDEP" >&6; }
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955$as_echo "no" >&6; }
5956fi
5957
5958 if test "x$ac_pt_OCAMLDEP" = x; then
5959 OCAMLDEP="no"
5960 else
5961 case $cross_compiling:$ac_tool_warned in
5962yes:)
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5965ac_tool_warned=yes ;;
5966esac
5967 OCAMLDEP=$ac_pt_OCAMLDEP
5968 fi
5969else
5970 OCAMLDEP="$ac_cv_path_OCAMLDEP"
5971fi
5972
5973
5974 # checking for ocamlmktop
5975 if test -n "$ac_tool_prefix"; then
5976 # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args.
5977set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979$as_echo_n "checking for $ac_word... " >&6; }
5980if ${ac_cv_path_OCAMLMKTOP+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982else
5983 case $OCAMLMKTOP in
5984 [\\/]* | ?:[\\/]*)
5985 ac_cv_path_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test with a path.
5986 ;;
5987 *)
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 5994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
5995 ac_cv_path_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999done
6000 done
6001IFS=$as_save_IFS
6002
6003 ;;
6004esac
6005fi
6006OCAMLMKTOP=$ac_cv_path_OCAMLMKTOP
6007if test -n "$OCAMLMKTOP"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
6009$as_echo "$OCAMLMKTOP" >&6; }
6010else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012$as_echo "no" >&6; }
6013fi
6014
6015
6016fi
6017if test -z "$ac_cv_path_OCAMLMKTOP"; then
6018 ac_pt_OCAMLMKTOP=$OCAMLMKTOP
6019 # Extract the first word of "ocamlmktop", so it can be a program name with args.
6020set dummy ocamlmktop; ac_word=$2
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022$as_echo_n "checking for $ac_word... " >&6; }
6023if ${ac_cv_path_ac_pt_OCAMLMKTOP+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025else
6026 case $ac_pt_OCAMLMKTOP in
6027 [\\/]* | ?:[\\/]*)
6028 ac_cv_path_ac_pt_OCAMLMKTOP="$ac_pt_OCAMLMKTOP" # Let the user override the test with a path.
6029 ;;
6030 *)
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH
6033do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6038 ac_cv_path_ac_pt_OCAMLMKTOP="$as_dir/$ac_word$ac_exec_ext"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042done
6043 done
6044IFS=$as_save_IFS
6045
6046 ;;
6047esac
6048fi
6049ac_pt_OCAMLMKTOP=$ac_cv_path_ac_pt_OCAMLMKTOP
6050if test -n "$ac_pt_OCAMLMKTOP"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKTOP" >&5
6052$as_echo "$ac_pt_OCAMLMKTOP" >&6; }
6053else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055$as_echo "no" >&6; }
6056fi
6057
6058 if test "x$ac_pt_OCAMLMKTOP" = x; then
6059 OCAMLMKTOP="no"
6060 else
6061 case $cross_compiling:$ac_tool_warned in
6062yes:)
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065ac_tool_warned=yes ;;
6066esac
6067 OCAMLMKTOP=$ac_pt_OCAMLMKTOP
6068 fi
6069else
6070 OCAMLMKTOP="$ac_cv_path_OCAMLMKTOP"
6071fi
6072
6073
6074 # checking for ocamlmklib
6075 if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args.
6077set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079$as_echo_n "checking for $ac_word... " >&6; }
6080if ${ac_cv_path_OCAMLMKLIB+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082else
6083 case $OCAMLMKLIB in
6084 [\\/]* | ?:[\\/]*)
6085 ac_cv_path_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test with a path.
6086 ;;
6087 *)
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6095 ac_cv_path_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099done
6100 done
6101IFS=$as_save_IFS
6102
6103 ;;
6104esac
6105fi
6106OCAMLMKLIB=$ac_cv_path_OCAMLMKLIB
6107if test -n "$OCAMLMKLIB"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5
6109$as_echo "$OCAMLMKLIB" >&6; }
6110else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113fi
6114
6115
6116fi
6117if test -z "$ac_cv_path_OCAMLMKLIB"; then
6118 ac_pt_OCAMLMKLIB=$OCAMLMKLIB
6119 # Extract the first word of "ocamlmklib", so it can be a program name with args.
6120set dummy ocamlmklib; ac_word=$2
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122$as_echo_n "checking for $ac_word... " >&6; }
6123if ${ac_cv_path_ac_pt_OCAMLMKLIB+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125else
6126 case $ac_pt_OCAMLMKLIB in
6127 [\\/]* | ?:[\\/]*)
6128 ac_cv_path_ac_pt_OCAMLMKLIB="$ac_pt_OCAMLMKLIB" # Let the user override the test with a path.
6129 ;;
6130 *)
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132for as_dir in $PATH
6133do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6138 ac_cv_path_ac_pt_OCAMLMKLIB="$as_dir/$ac_word$ac_exec_ext"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142done
6143 done
6144IFS=$as_save_IFS
6145
6146 ;;
6147esac
6148fi
6149ac_pt_OCAMLMKLIB=$ac_cv_path_ac_pt_OCAMLMKLIB
6150if test -n "$ac_pt_OCAMLMKLIB"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLMKLIB" >&5
6152$as_echo "$ac_pt_OCAMLMKLIB" >&6; }
6153else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155$as_echo "no" >&6; }
6156fi
6157
6158 if test "x$ac_pt_OCAMLMKLIB" = x; then
6159 OCAMLMKLIB="no"
6160 else
6161 case $cross_compiling:$ac_tool_warned in
6162yes:)
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165ac_tool_warned=yes ;;
6166esac
6167 OCAMLMKLIB=$ac_pt_OCAMLMKLIB
6168 fi
6169else
6170 OCAMLMKLIB="$ac_cv_path_OCAMLMKLIB"
6171fi
6172
6173
6174 # checking for ocamldoc
6175 if test -n "$ac_tool_prefix"; then
6176 # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args.
6177set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179$as_echo_n "checking for $ac_word... " >&6; }
6180if ${ac_cv_path_OCAMLDOC+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182else
6183 case $OCAMLDOC in
6184 [\\/]* | ?:[\\/]*)
6185 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
6186 ;;
6187 *)
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6195 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 break 2
6198 fi
6199done
6200 done
6201IFS=$as_save_IFS
6202
6203 ;;
6204esac
6205fi
6206OCAMLDOC=$ac_cv_path_OCAMLDOC
6207if test -n "$OCAMLDOC"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
6209$as_echo "$OCAMLDOC" >&6; }
6210else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216fi
6217if test -z "$ac_cv_path_OCAMLDOC"; then
6218 ac_pt_OCAMLDOC=$OCAMLDOC
6219 # Extract the first word of "ocamldoc", so it can be a program name with args.
6220set dummy ocamldoc; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
6223if ${ac_cv_path_ac_pt_OCAMLDOC+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225else
6226 case $ac_pt_OCAMLDOC in
6227 [\\/]* | ?:[\\/]*)
6228 ac_cv_path_ac_pt_OCAMLDOC="$ac_pt_OCAMLDOC" # Let the user override the test with a path.
6229 ;;
6230 *)
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6238 ac_cv_path_ac_pt_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242done
6243 done
6244IFS=$as_save_IFS
6245
6246 ;;
6247esac
6248fi
6249ac_pt_OCAMLDOC=$ac_cv_path_ac_pt_OCAMLDOC
6250if test -n "$ac_pt_OCAMLDOC"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLDOC" >&5
6252$as_echo "$ac_pt_OCAMLDOC" >&6; }
6253else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256fi
6257
6258 if test "x$ac_pt_OCAMLDOC" = x; then
6259 OCAMLDOC="no"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262yes:)
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265ac_tool_warned=yes ;;
6266esac
6267 OCAMLDOC=$ac_pt_OCAMLDOC
6268 fi
6269else
6270 OCAMLDOC="$ac_cv_path_OCAMLDOC"
6271fi
6272
6273
6274 # checking for ocamlbuild
6275 if test -n "$ac_tool_prefix"; then
6276 # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args.
6277set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279$as_echo_n "checking for $ac_word... " >&6; }
6280if ${ac_cv_path_OCAMLBUILD+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282else
6283 case $OCAMLBUILD in
6284 [\\/]* | ?:[\\/]*)
6285 ac_cv_path_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test with a path.
6286 ;;
6287 *)
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6295 ac_cv_path_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299done
6300 done
6301IFS=$as_save_IFS
6302
6303 ;;
6304esac
6305fi
6306OCAMLBUILD=$ac_cv_path_OCAMLBUILD
6307if test -n "$OCAMLBUILD"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
6309$as_echo "$OCAMLBUILD" >&6; }
6310else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
6313fi
6314
6315
6316fi
6317if test -z "$ac_cv_path_OCAMLBUILD"; then
6318 ac_pt_OCAMLBUILD=$OCAMLBUILD
6319 # Extract the first word of "ocamlbuild", so it can be a program name with args.
6320set dummy ocamlbuild; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if ${ac_cv_path_ac_pt_OCAMLBUILD+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325else
6326 case $ac_pt_OCAMLBUILD in
6327 [\\/]* | ?:[\\/]*)
6328 ac_cv_path_ac_pt_OCAMLBUILD="$ac_pt_OCAMLBUILD" # Let the user override the test with a path.
6329 ;;
6330 *)
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6338 ac_cv_path_ac_pt_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342done
6343 done
6344IFS=$as_save_IFS
6345
6346 ;;
6347esac
6348fi
6349ac_pt_OCAMLBUILD=$ac_cv_path_ac_pt_OCAMLBUILD
6350if test -n "$ac_pt_OCAMLBUILD"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLBUILD" >&5
6352$as_echo "$ac_pt_OCAMLBUILD" >&6; }
6353else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358 if test "x$ac_pt_OCAMLBUILD" = x; then
6359 OCAMLBUILD="no"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362yes:)
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365ac_tool_warned=yes ;;
6366esac
6367 OCAMLBUILD=$ac_pt_OCAMLBUILD
6368 fi
6369else
6370 OCAMLBUILD="$ac_cv_path_OCAMLBUILD"
6371fi
6372
6373
6374 { versioncheck=; unset versioncheck;}
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.10" >&5
6376$as_echo_n "checking that the OCaml version is at least 3.10... " >&6; }
6377 as_arg_v1=$OCAMLVERSION
6378as_arg_v2=3.10
6379awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
6380case $? in #(
6381 1) :
6382 versioncheck=no ;; #(
6383 0) :
6384 versioncheck=yes ;; #(
6385 2) :
6386 versioncheck=yes ;; #(
6387 *) :
6388 ;;
6389esac
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5
6391$as_echo "$versioncheck" >&6; }
6392 OCAMLATLEAST310=$versioncheck
6393
6394
6395 { versioncheck=; unset versioncheck;}
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that the OCaml version is at least 3.11" >&5
6397$as_echo_n "checking that the OCaml version is at least 3.11... " >&6; }
6398 as_arg_v1=$OCAMLVERSION
6399as_arg_v2=3.11
6400awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
6401case $? in #(
6402 1) :
6403 versioncheck=no ;; #(
6404 0) :
6405 versioncheck=yes ;; #(
6406 2) :
6407 versioncheck=yes ;; #(
6408 *) :
6409 ;;
6410esac
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $versioncheck" >&5
6412$as_echo "$versioncheck" >&6; }
6413 OCAMLATLEAST311=$versioncheck
6414
6415
755320b0
C
6416OCAMLCORIG="$OCAMLC"
6417
feec80c3
C
6418
6419if test "x$OCAMLC" = xno -o "x$OCAMLDEP" = xno -o "x$OCAMLDOC" = xno -o "x$OCAMLMKLIB" = xno; then :
6420 as_fn_error $? "You must install the OCaml compiler" "$LINENO" 5
6421
6422fi
6423if test "x$OCAMLATLEAST310" = xno; then :
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: a more recent OCaml installation may be required" >&5
6425$as_echo "$as_me: a more recent OCaml installation may be required" >&6;}
6426fi
6427
6428
6429 # checking for camlp4
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}camlp4", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}camlp4; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_path_CAMLP4+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437else
6438 case $CAMLP4 in
6439 [\\/]* | ?:[\\/]*)
6440 ac_cv_path_CAMLP4="$CAMLP4" # Let the user override the test with a path.
6441 ;;
6442 *)
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6450 ac_cv_path_CAMLP4="$as_dir/$ac_word$ac_exec_ext"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455 done
6456IFS=$as_save_IFS
6457
6458 ;;
6459esac
6460fi
6461CAMLP4=$ac_cv_path_CAMLP4
6462if test -n "$CAMLP4"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4" >&5
6464$as_echo "$CAMLP4" >&6; }
6465else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467$as_echo "no" >&6; }
6468fi
6469
6470
6471fi
6472if test -z "$ac_cv_path_CAMLP4"; then
6473 ac_pt_CAMLP4=$CAMLP4
6474 # Extract the first word of "camlp4", so it can be a program name with args.
6475set dummy camlp4; ac_word=$2
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477$as_echo_n "checking for $ac_word... " >&6; }
6478if ${ac_cv_path_ac_pt_CAMLP4+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480else
6481 case $ac_pt_CAMLP4 in
6482 [\\/]* | ?:[\\/]*)
6483 ac_cv_path_ac_pt_CAMLP4="$ac_pt_CAMLP4" # Let the user override the test with a path.
6484 ;;
6485 *)
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6493 ac_cv_path_ac_pt_CAMLP4="$as_dir/$ac_word$ac_exec_ext"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497done
6498 done
6499IFS=$as_save_IFS
6500
6501 ;;
6502esac
6503fi
6504ac_pt_CAMLP4=$ac_cv_path_ac_pt_CAMLP4
6505if test -n "$ac_pt_CAMLP4"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4" >&5
6507$as_echo "$ac_pt_CAMLP4" >&6; }
6508else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511fi
6512
6513 if test "x$ac_pt_CAMLP4" = x; then
6514 CAMLP4="no"
6515 else
6516 case $cross_compiling:$ac_tool_warned in
6517yes:)
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520ac_tool_warned=yes ;;
6521esac
6522 CAMLP4=$ac_pt_CAMLP4
6523 fi
6524else
6525 CAMLP4="$ac_cv_path_CAMLP4"
6526fi
6527
6528 if test "$CAMLP4" != "no"; then
6529 TMPVERSION=`$CAMLP4 -v 2>&1| sed -n -e 's|.*version *\(.*\)$|\1|p'`
6530 if test "$TMPVERSION" != "$OCAMLVERSION" ; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc" >&5
6532$as_echo "versions differs from ocamlc" >&6; }
6533 CAMLP4=no
6534 fi
6535 fi
6536
6537
6538 # checking for companion tools
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}camlp4boot", so it can be a program name with args.
6541set dummy ${ac_tool_prefix}camlp4boot; ac_word=$2
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543$as_echo_n "checking for $ac_word... " >&6; }
6544if ${ac_cv_path_CAMLP4BOOT+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546else
6547 case $CAMLP4BOOT in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_CAMLP4BOOT="$CAMLP4BOOT" # Let the user override the test with a path.
6550 ;;
6551 *)
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6559 ac_cv_path_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564 done
6565IFS=$as_save_IFS
6566
6567 ;;
6568esac
6569fi
6570CAMLP4BOOT=$ac_cv_path_CAMLP4BOOT
6571if test -n "$CAMLP4BOOT"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4BOOT" >&5
6573$as_echo "$CAMLP4BOOT" >&6; }
6574else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579
6580fi
6581if test -z "$ac_cv_path_CAMLP4BOOT"; then
6582 ac_pt_CAMLP4BOOT=$CAMLP4BOOT
6583 # Extract the first word of "camlp4boot", so it can be a program name with args.
6584set dummy camlp4boot; ac_word=$2
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586$as_echo_n "checking for $ac_word... " >&6; }
6587if ${ac_cv_path_ac_pt_CAMLP4BOOT+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589else
6590 case $ac_pt_CAMLP4BOOT in
6591 [\\/]* | ?:[\\/]*)
6592 ac_cv_path_ac_pt_CAMLP4BOOT="$ac_pt_CAMLP4BOOT" # Let the user override the test with a path.
6593 ;;
6594 *)
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6602 ac_cv_path_ac_pt_CAMLP4BOOT="$as_dir/$ac_word$ac_exec_ext"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606done
6607 done
6608IFS=$as_save_IFS
6609
6610 ;;
6611esac
6612fi
6613ac_pt_CAMLP4BOOT=$ac_cv_path_ac_pt_CAMLP4BOOT
6614if test -n "$ac_pt_CAMLP4BOOT"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4BOOT" >&5
6616$as_echo "$ac_pt_CAMLP4BOOT" >&6; }
6617else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622 if test "x$ac_pt_CAMLP4BOOT" = x; then
6623 CAMLP4BOOT="no"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626yes:)
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629ac_tool_warned=yes ;;
6630esac
6631 CAMLP4BOOT=$ac_pt_CAMLP4BOOT
6632 fi
6633else
6634 CAMLP4BOOT="$ac_cv_path_CAMLP4BOOT"
6635fi
6636
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}camlp4o", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}camlp4o; ac_word=$2
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if ${ac_cv_path_CAMLP4O+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644else
6645 case $CAMLP4O in
6646 [\\/]* | ?:[\\/]*)
6647 ac_cv_path_CAMLP4O="$CAMLP4O" # Let the user override the test with a path.
6648 ;;
6649 *)
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6657 ac_cv_path_CAMLP4O="$as_dir/$ac_word$ac_exec_ext"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661done
6662 done
6663IFS=$as_save_IFS
6664
6665 ;;
6666esac
6667fi
6668CAMLP4O=$ac_cv_path_CAMLP4O
6669if test -n "$CAMLP4O"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4O" >&5
6671$as_echo "$CAMLP4O" >&6; }
6672else
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677
6678fi
6679if test -z "$ac_cv_path_CAMLP4O"; then
6680 ac_pt_CAMLP4O=$CAMLP4O
6681 # Extract the first word of "camlp4o", so it can be a program name with args.
6682set dummy camlp4o; ac_word=$2
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if ${ac_cv_path_ac_pt_CAMLP4O+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687else
6688 case $ac_pt_CAMLP4O in
6689 [\\/]* | ?:[\\/]*)
6690 ac_cv_path_ac_pt_CAMLP4O="$ac_pt_CAMLP4O" # Let the user override the test with a path.
6691 ;;
6692 *)
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6700 ac_cv_path_ac_pt_CAMLP4O="$as_dir/$ac_word$ac_exec_ext"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704done
6705 done
6706IFS=$as_save_IFS
6707
6708 ;;
6709esac
6710fi
6711ac_pt_CAMLP4O=$ac_cv_path_ac_pt_CAMLP4O
6712if test -n "$ac_pt_CAMLP4O"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4O" >&5
6714$as_echo "$ac_pt_CAMLP4O" >&6; }
6715else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717$as_echo "no" >&6; }
6718fi
6719
6720 if test "x$ac_pt_CAMLP4O" = x; then
6721 CAMLP4O="no"
6722 else
6723 case $cross_compiling:$ac_tool_warned in
6724yes:)
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727ac_tool_warned=yes ;;
6728esac
6729 CAMLP4O=$ac_pt_CAMLP4O
6730 fi
6731else
6732 CAMLP4O="$ac_cv_path_CAMLP4O"
6733fi
6734
6735 if test -n "$ac_tool_prefix"; then
6736 # Extract the first word of "${ac_tool_prefix}camlp4of", so it can be a program name with args.
6737set dummy ${ac_tool_prefix}camlp4of; ac_word=$2
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739$as_echo_n "checking for $ac_word... " >&6; }
6740if ${ac_cv_path_CAMLP4OF+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742else
6743 case $CAMLP4OF in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_CAMLP4OF="$CAMLP4OF" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6755 ac_cv_path_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760 done
6761IFS=$as_save_IFS
6762
6763 ;;
6764esac
6765fi
6766CAMLP4OF=$ac_cv_path_CAMLP4OF
6767if test -n "$CAMLP4OF"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OF" >&5
6769$as_echo "$CAMLP4OF" >&6; }
6770else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772$as_echo "no" >&6; }
6773fi
6774
6775
6776fi
6777if test -z "$ac_cv_path_CAMLP4OF"; then
6778 ac_pt_CAMLP4OF=$CAMLP4OF
6779 # Extract the first word of "camlp4of", so it can be a program name with args.
6780set dummy camlp4of; ac_word=$2
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782$as_echo_n "checking for $ac_word... " >&6; }
6783if ${ac_cv_path_ac_pt_CAMLP4OF+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785else
6786 case $ac_pt_CAMLP4OF in
6787 [\\/]* | ?:[\\/]*)
6788 ac_cv_path_ac_pt_CAMLP4OF="$ac_pt_CAMLP4OF" # Let the user override the test with a path.
6789 ;;
6790 *)
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6798 ac_cv_path_ac_pt_CAMLP4OF="$as_dir/$ac_word$ac_exec_ext"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802done
6803 done
6804IFS=$as_save_IFS
6805
6806 ;;
6807esac
6808fi
6809ac_pt_CAMLP4OF=$ac_cv_path_ac_pt_CAMLP4OF
6810if test -n "$ac_pt_CAMLP4OF"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OF" >&5
6812$as_echo "$ac_pt_CAMLP4OF" >&6; }
6813else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815$as_echo "no" >&6; }
6816fi
6817
6818 if test "x$ac_pt_CAMLP4OF" = x; then
6819 CAMLP4OF="no"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822yes:)
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825ac_tool_warned=yes ;;
6826esac
6827 CAMLP4OF=$ac_pt_CAMLP4OF
6828 fi
6829else
6830 CAMLP4OF="$ac_cv_path_CAMLP4OF"
6831fi
6832
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}camlp4oof", so it can be a program name with args.
6835set dummy ${ac_tool_prefix}camlp4oof; ac_word=$2
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837$as_echo_n "checking for $ac_word... " >&6; }
6838if ${ac_cv_path_CAMLP4OOF+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840else
6841 case $CAMLP4OOF in
6842 [\\/]* | ?:[\\/]*)
6843 ac_cv_path_CAMLP4OOF="$CAMLP4OOF" # Let the user override the test with a path.
6844 ;;
6845 *)
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6853 ac_cv_path_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857done
6858 done
6859IFS=$as_save_IFS
6860
6861 ;;
6862esac
6863fi
6864CAMLP4OOF=$ac_cv_path_CAMLP4OOF
6865if test -n "$CAMLP4OOF"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4OOF" >&5
6867$as_echo "$CAMLP4OOF" >&6; }
6868else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
6871fi
6872
6873
6874fi
6875if test -z "$ac_cv_path_CAMLP4OOF"; then
6876 ac_pt_CAMLP4OOF=$CAMLP4OOF
6877 # Extract the first word of "camlp4oof", so it can be a program name with args.
6878set dummy camlp4oof; ac_word=$2
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
6881if ${ac_cv_path_ac_pt_CAMLP4OOF+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883else
6884 case $ac_pt_CAMLP4OOF in
6885 [\\/]* | ?:[\\/]*)
6886 ac_cv_path_ac_pt_CAMLP4OOF="$ac_pt_CAMLP4OOF" # Let the user override the test with a path.
6887 ;;
6888 *)
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6896 ac_cv_path_ac_pt_CAMLP4OOF="$as_dir/$ac_word$ac_exec_ext"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901 done
6902IFS=$as_save_IFS
6903
6904 ;;
6905esac
6906fi
6907ac_pt_CAMLP4OOF=$ac_cv_path_ac_pt_CAMLP4OOF
6908if test -n "$ac_pt_CAMLP4OOF"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4OOF" >&5
6910$as_echo "$ac_pt_CAMLP4OOF" >&6; }
6911else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916 if test "x$ac_pt_CAMLP4OOF" = x; then
6917 CAMLP4OOF="no"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923ac_tool_warned=yes ;;
6924esac
6925 CAMLP4OOF=$ac_pt_CAMLP4OOF
6926 fi
6927else
6928 CAMLP4OOF="$ac_cv_path_CAMLP4OOF"
6929fi
6930
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}camlp4orf", so it can be a program name with args.
6933set dummy ${ac_tool_prefix}camlp4orf; ac_word=$2
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if ${ac_cv_path_CAMLP4ORF+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938else
6939 case $CAMLP4ORF in
6940 [\\/]* | ?:[\\/]*)
6941 ac_cv_path_CAMLP4ORF="$CAMLP4ORF" # Let the user override the test with a path.
6942 ;;
6943 *)
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6951 ac_cv_path_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955done
6956 done
6957IFS=$as_save_IFS
6958
6959 ;;
6960esac
6961fi
6962CAMLP4ORF=$ac_cv_path_CAMLP4ORF
6963if test -n "$CAMLP4ORF"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4ORF" >&5
6965$as_echo "$CAMLP4ORF" >&6; }
6966else
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
6969fi
6970
6971
6972fi
6973if test -z "$ac_cv_path_CAMLP4ORF"; then
6974 ac_pt_CAMLP4ORF=$CAMLP4ORF
6975 # Extract the first word of "camlp4orf", so it can be a program name with args.
6976set dummy camlp4orf; ac_word=$2
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978$as_echo_n "checking for $ac_word... " >&6; }
6979if ${ac_cv_path_ac_pt_CAMLP4ORF+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981else
6982 case $ac_pt_CAMLP4ORF in
6983 [\\/]* | ?:[\\/]*)
6984 ac_cv_path_ac_pt_CAMLP4ORF="$ac_pt_CAMLP4ORF" # Let the user override the test with a path.
6985 ;;
6986 *)
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
6994 ac_cv_path_ac_pt_CAMLP4ORF="$as_dir/$ac_word$ac_exec_ext"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998done
6999 done
7000IFS=$as_save_IFS
7001
7002 ;;
7003esac
7004fi
7005ac_pt_CAMLP4ORF=$ac_cv_path_ac_pt_CAMLP4ORF
7006if test -n "$ac_pt_CAMLP4ORF"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4ORF" >&5
7008$as_echo "$ac_pt_CAMLP4ORF" >&6; }
7009else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011$as_echo "no" >&6; }
7012fi
7013
7014 if test "x$ac_pt_CAMLP4ORF" = x; then
7015 CAMLP4ORF="no"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018yes:)
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021ac_tool_warned=yes ;;
7022esac
7023 CAMLP4ORF=$ac_pt_CAMLP4ORF
7024 fi
7025else
7026 CAMLP4ORF="$ac_cv_path_CAMLP4ORF"
7027fi
7028
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}camlp4prof", so it can be a program name with args.
7031set dummy ${ac_tool_prefix}camlp4prof; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if ${ac_cv_path_CAMLP4PROF+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036else
7037 case $CAMLP4PROF in
7038 [\\/]* | ?:[\\/]*)
7039 ac_cv_path_CAMLP4PROF="$CAMLP4PROF" # Let the user override the test with a path.
7040 ;;
7041 *)
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7049 ac_cv_path_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054 done
7055IFS=$as_save_IFS
7056
7057 ;;
7058esac
7059fi
7060CAMLP4PROF=$ac_cv_path_CAMLP4PROF
7061if test -n "$CAMLP4PROF"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4PROF" >&5
7063$as_echo "$CAMLP4PROF" >&6; }
7064else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
7067fi
7068
7069
7070fi
7071if test -z "$ac_cv_path_CAMLP4PROF"; then
7072 ac_pt_CAMLP4PROF=$CAMLP4PROF
7073 # Extract the first word of "camlp4prof", so it can be a program name with args.
7074set dummy camlp4prof; ac_word=$2
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
7077if ${ac_cv_path_ac_pt_CAMLP4PROF+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079else
7080 case $ac_pt_CAMLP4PROF in
7081 [\\/]* | ?:[\\/]*)
7082 ac_cv_path_ac_pt_CAMLP4PROF="$ac_pt_CAMLP4PROF" # Let the user override the test with a path.
7083 ;;
7084 *)
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7092 ac_cv_path_ac_pt_CAMLP4PROF="$as_dir/$ac_word$ac_exec_ext"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096done
7097 done
7098IFS=$as_save_IFS
7099
7100 ;;
7101esac
7102fi
7103ac_pt_CAMLP4PROF=$ac_cv_path_ac_pt_CAMLP4PROF
7104if test -n "$ac_pt_CAMLP4PROF"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4PROF" >&5
7106$as_echo "$ac_pt_CAMLP4PROF" >&6; }
7107else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109$as_echo "no" >&6; }
7110fi
7111
7112 if test "x$ac_pt_CAMLP4PROF" = x; then
7113 CAMLP4PROF="no"
7114 else
7115 case $cross_compiling:$ac_tool_warned in
7116yes:)
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119ac_tool_warned=yes ;;
7120esac
7121 CAMLP4PROF=$ac_pt_CAMLP4PROF
7122 fi
7123else
7124 CAMLP4PROF="$ac_cv_path_CAMLP4PROF"
7125fi
7126
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}camlp4r", so it can be a program name with args.
7129set dummy ${ac_tool_prefix}camlp4r; ac_word=$2
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131$as_echo_n "checking for $ac_word... " >&6; }
7132if ${ac_cv_path_CAMLP4R+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134else
7135 case $CAMLP4R in
7136 [\\/]* | ?:[\\/]*)
7137 ac_cv_path_CAMLP4R="$CAMLP4R" # Let the user override the test with a path.
7138 ;;
7139 *)
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7147 ac_cv_path_CAMLP4R="$as_dir/$ac_word$ac_exec_ext"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151done
7152 done
7153IFS=$as_save_IFS
7154
7155 ;;
7156esac
7157fi
7158CAMLP4R=$ac_cv_path_CAMLP4R
7159if test -n "$CAMLP4R"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4R" >&5
7161$as_echo "$CAMLP4R" >&6; }
7162else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164$as_echo "no" >&6; }
7165fi
7166
7167
7168fi
7169if test -z "$ac_cv_path_CAMLP4R"; then
7170 ac_pt_CAMLP4R=$CAMLP4R
7171 # Extract the first word of "camlp4r", so it can be a program name with args.
7172set dummy camlp4r; ac_word=$2
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174$as_echo_n "checking for $ac_word... " >&6; }
7175if ${ac_cv_path_ac_pt_CAMLP4R+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177else
7178 case $ac_pt_CAMLP4R in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_ac_pt_CAMLP4R="$ac_pt_CAMLP4R" # Let the user override the test with a path.
7181 ;;
7182 *)
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7190 ac_cv_path_ac_pt_CAMLP4R="$as_dir/$ac_word$ac_exec_ext"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194done
7195 done
7196IFS=$as_save_IFS
7197
7198 ;;
7199esac
7200fi
7201ac_pt_CAMLP4R=$ac_cv_path_ac_pt_CAMLP4R
7202if test -n "$ac_pt_CAMLP4R"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4R" >&5
7204$as_echo "$ac_pt_CAMLP4R" >&6; }
7205else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207$as_echo "no" >&6; }
7208fi
7209
7210 if test "x$ac_pt_CAMLP4R" = x; then
7211 CAMLP4R="no"
7212 else
7213 case $cross_compiling:$ac_tool_warned in
7214yes:)
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217ac_tool_warned=yes ;;
7218esac
7219 CAMLP4R=$ac_pt_CAMLP4R
7220 fi
7221else
7222 CAMLP4R="$ac_cv_path_CAMLP4R"
7223fi
7224
7225 if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}camlp4rf", so it can be a program name with args.
7227set dummy ${ac_tool_prefix}camlp4rf; ac_word=$2
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if ${ac_cv_path_CAMLP4RF+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232else
7233 case $CAMLP4RF in
7234 [\\/]* | ?:[\\/]*)
7235 ac_cv_path_CAMLP4RF="$CAMLP4RF" # Let the user override the test with a path.
7236 ;;
7237 *)
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7245 ac_cv_path_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249done
7250 done
7251IFS=$as_save_IFS
7252
7253 ;;
7254esac
7255fi
7256CAMLP4RF=$ac_cv_path_CAMLP4RF
7257if test -n "$CAMLP4RF"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAMLP4RF" >&5
7259$as_echo "$CAMLP4RF" >&6; }
7260else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265
7266fi
7267if test -z "$ac_cv_path_CAMLP4RF"; then
7268 ac_pt_CAMLP4RF=$CAMLP4RF
7269 # Extract the first word of "camlp4rf", so it can be a program name with args.
7270set dummy camlp4rf; ac_word=$2
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272$as_echo_n "checking for $ac_word... " >&6; }
7273if ${ac_cv_path_ac_pt_CAMLP4RF+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275else
7276 case $ac_pt_CAMLP4RF in
7277 [\\/]* | ?:[\\/]*)
7278 ac_cv_path_ac_pt_CAMLP4RF="$ac_pt_CAMLP4RF" # Let the user override the test with a path.
7279 ;;
7280 *)
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7288 ac_cv_path_ac_pt_CAMLP4RF="$as_dir/$ac_word$ac_exec_ext"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292done
7293 done
7294IFS=$as_save_IFS
7295
7296 ;;
7297esac
7298fi
7299ac_pt_CAMLP4RF=$ac_cv_path_ac_pt_CAMLP4RF
7300if test -n "$ac_pt_CAMLP4RF"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CAMLP4RF" >&5
7302$as_echo "$ac_pt_CAMLP4RF" >&6; }
7303else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305$as_echo "no" >&6; }
7306fi
7307
7308 if test "x$ac_pt_CAMLP4RF" = x; then
7309 CAMLP4RF="no"
7310 else
7311 case $cross_compiling:$ac_tool_warned in
7312yes:)
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315ac_tool_warned=yes ;;
7316esac
7317 CAMLP4RF=$ac_pt_CAMLP4RF
7318 fi
7319else
7320 CAMLP4RF="$ac_cv_path_CAMLP4RF"
7321fi
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334# Check whether --with-ocamllex was given.
7335if test "${with_ocamllex+set}" = set; then :
7336 withval=$with_ocamllex;
7337fi
7338
7339 with_OCAMLLEX="$with_ocamllex"
7340
feec80c3
C
7341 if test -n "$with_OCAMLLEX" -a "x$with_OCAMLLEX" != xno -a "x$with_OCAMLLEX" != xyes; then :
7342 OCAMLLEX="$with_OCAMLLEX"
7343
7344
d6ce1786
C
7345else
7346 OCAMLLEX="ocamllex"
7347
7348
feec80c3
C
7349fi
7350
d6ce1786
C
7351 if test "x$with_OCAMLLEX" = xno; then :
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex is disabled explicitly" >&5
7353$as_echo "$as_me: ocamllex is disabled explicitly" >&6;}
7354 OCAMLLEX=no
7355
7356
7357else
7358 if test "x$OCAMLLEX" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then :
feec80c3
C
7359
7360
abad11c5
C
7361
7362
7363
7364
7365
feec80c3
C
7366if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7369set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
7372if ${ac_cv_path_PKG_CONFIG+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374else
7375 case $PKG_CONFIG in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7378 ;;
7379 *)
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391done
7392 done
7393IFS=$as_save_IFS
7394
7395 ;;
7396esac
7397fi
7398PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7399if test -n "$PKG_CONFIG"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7401$as_echo "$PKG_CONFIG" >&6; }
7402else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404$as_echo "no" >&6; }
7405fi
7406
7407
7408fi
7409if test -z "$ac_cv_path_PKG_CONFIG"; then
7410 ac_pt_PKG_CONFIG=$PKG_CONFIG
7411 # Extract the first word of "pkg-config", so it can be a program name with args.
7412set dummy pkg-config; ac_word=$2
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414$as_echo_n "checking for $ac_word... " >&6; }
7415if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417else
7418 case $ac_pt_PKG_CONFIG in
7419 [\\/]* | ?:[\\/]*)
7420 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7421 ;;
7422 *)
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7430 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434done
7435 done
7436IFS=$as_save_IFS
7437
7438 ;;
7439esac
7440fi
7441ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7442if test -n "$ac_pt_PKG_CONFIG"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7444$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7445else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447$as_echo "no" >&6; }
7448fi
7449
7450 if test "x$ac_pt_PKG_CONFIG" = x; then
7451 PKG_CONFIG=""
7452 else
7453 case $cross_compiling:$ac_tool_warned in
7454yes:)
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457ac_tool_warned=yes ;;
7458esac
7459 PKG_CONFIG=$ac_pt_PKG_CONFIG
7460 fi
7461else
7462 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7463fi
7464
7465fi
7466if test -n "$PKG_CONFIG"; then
7467 _pkg_min_version=0.9.0
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7469$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7470 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7472$as_echo "yes" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475$as_echo "no" >&6; }
7476 PKG_CONFIG=""
7477 fi
feec80c3
C
7478fi
7479
d6ce1786 7480elif test "x$OCAMLLEX" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then :
feec80c3
C
7481 # checking for ocamllex
7482 if test -n "$ac_tool_prefix"; then
7483 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
7484set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486$as_echo_n "checking for $ac_word... " >&6; }
7487if ${ac_cv_path_OCAMLLEX+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489else
7490 case $OCAMLLEX in
7491 [\\/]* | ?:[\\/]*)
7492 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7502 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506done
7507 done
7508IFS=$as_save_IFS
7509
7510 ;;
7511esac
7512fi
7513OCAMLLEX=$ac_cv_path_OCAMLLEX
7514if test -n "$OCAMLLEX"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7516$as_echo "$OCAMLLEX" >&6; }
7517else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519$as_echo "no" >&6; }
7520fi
7521
7522
7523fi
7524if test -z "$ac_cv_path_OCAMLLEX"; then
7525 ac_pt_OCAMLLEX=$OCAMLLEX
7526 # Extract the first word of "ocamllex", so it can be a program name with args.
7527set dummy ocamllex; ac_word=$2
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
7530if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532else
7533 case $ac_pt_OCAMLLEX in
7534 [\\/]* | ?:[\\/]*)
7535 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7536 ;;
7537 *)
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7545 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549done
7550 done
7551IFS=$as_save_IFS
7552
7553 ;;
7554esac
7555fi
7556ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7557if test -n "$ac_pt_OCAMLLEX"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7559$as_echo "$ac_pt_OCAMLLEX" >&6; }
7560else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562$as_echo "no" >&6; }
7563fi
7564
7565 if test "x$ac_pt_OCAMLLEX" = x; then
7566 OCAMLLEX="no"
7567 else
7568 case $cross_compiling:$ac_tool_warned in
7569yes:)
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7572ac_tool_warned=yes ;;
7573esac
7574 OCAMLLEX=$ac_pt_OCAMLLEX
7575 fi
7576else
7577 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7578fi
7579
7580 if test "$OCAMLLEX" != "no"; then
7581 if test -n "$ac_tool_prefix"; then
7582 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
7583set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585$as_echo_n "checking for $ac_word... " >&6; }
7586if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588else
7589 case $OCAMLLEXDOTOPT in
7590 [\\/]* | ?:[\\/]*)
7591 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
7592 ;;
7593 *)
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7601 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 break 2
7604 fi
7605done
7606 done
7607IFS=$as_save_IFS
7608
7609 ;;
7610esac
7611fi
7612OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
7613if test -n "$OCAMLLEXDOTOPT"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
7615$as_echo "$OCAMLLEXDOTOPT" >&6; }
7616else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
7620
7621
7622fi
7623if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
7624 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
7625 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
7626set dummy ocamllex.opt; ac_word=$2
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
7629if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631else
7632 case $ac_pt_OCAMLLEXDOTOPT in
7633 [\\/]* | ?:[\\/]*)
7634 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
7635 ;;
7636 *)
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7644 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648done
7649 done
7650IFS=$as_save_IFS
7651
7652 ;;
7653esac
7654fi
7655ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
7656if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
7658$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
7659else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662fi
7663
7664 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
7665 OCAMLLEXDOTOPT="no"
7666 else
7667 case $cross_compiling:$ac_tool_warned in
7668yes:)
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671ac_tool_warned=yes ;;
7672esac
7673 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
7674 fi
7675else
7676 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
7677fi
7678
7679 if test "$OCAMLLEXDOTOPT" != "no"; then
7680 OCAMLLEX=$OCAMLLEXDOTOPT
7681 fi
7682 fi
7683
7684
7685
d6ce1786 7686elif test "x$OCAMLLEX" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then :
feec80c3
C
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
7689set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691$as_echo_n "checking for $ac_word... " >&6; }
7692if ${ac_cv_path_OCAMLYACC+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694else
7695 case $OCAMLYACC in
7696 [\\/]* | ?:[\\/]*)
7697 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
7698 ;;
7699 *)
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7707 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711done
7712 done
7713IFS=$as_save_IFS
7714
7715 ;;
7716esac
7717fi
7718OCAMLYACC=$ac_cv_path_OCAMLYACC
7719if test -n "$OCAMLYACC"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
7721$as_echo "$OCAMLYACC" >&6; }
7722else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724$as_echo "no" >&6; }
7725fi
7726
7727
7728fi
7729if test -z "$ac_cv_path_OCAMLYACC"; then
7730 ac_pt_OCAMLYACC=$OCAMLYACC
7731 # Extract the first word of "ocamlyacc", so it can be a program name with args.
7732set dummy ocamlyacc; ac_word=$2
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734$as_echo_n "checking for $ac_word... " >&6; }
7735if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737else
7738 case $ac_pt_OCAMLYACC in
7739 [\\/]* | ?:[\\/]*)
7740 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
7741 ;;
7742 *)
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7750 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754done
7755 done
7756IFS=$as_save_IFS
7757
7758 ;;
7759esac
7760fi
7761ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
7762if test -n "$ac_pt_OCAMLYACC"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
7764$as_echo "$ac_pt_OCAMLYACC" >&6; }
7765else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767$as_echo "no" >&6; }
7768fi
7769
7770 if test "x$ac_pt_OCAMLYACC" = x; then
7771 OCAMLYACC="no"
7772 else
7773 case $cross_compiling:$ac_tool_warned in
7774yes:)
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777ac_tool_warned=yes ;;
7778esac
7779 OCAMLYACC=$ac_pt_OCAMLYACC
7780 fi
7781else
7782 OCAMLYACC="$ac_cv_path_OCAMLYACC"
7783fi
7784
7785
7786
7787
7788else
7789 if test -n "$ac_tool_prefix"; then
d6ce1786
C
7790 # Extract the first word of "${ac_tool_prefix}[$]OCAMLLEX", so it can be a program name with args.
7791set dummy ${ac_tool_prefix}$OCAMLLEX; ac_word=$2
feec80c3
C
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793$as_echo_n "checking for $ac_word... " >&6; }
7794if ${ac_cv_path_OCAMLLEX+:} false; then :
7795 $as_echo_n "(cached) " >&6
7796else
7797 case $OCAMLLEX in
7798 [\\/]* | ?:[\\/]*)
7799 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
7800 ;;
7801 *)
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7809 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814 done
7815IFS=$as_save_IFS
7816
7817 ;;
7818esac
7819fi
7820OCAMLLEX=$ac_cv_path_OCAMLLEX
7821if test -n "$OCAMLLEX"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
7823$as_echo "$OCAMLLEX" >&6; }
7824else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827fi
7828
7829
7830fi
7831if test -z "$ac_cv_path_OCAMLLEX"; then
7832 ac_pt_OCAMLLEX=$OCAMLLEX
d6ce1786
C
7833 # Extract the first word of "[$]OCAMLLEX", so it can be a program name with args.
7834set dummy $OCAMLLEX; ac_word=$2
feec80c3
C
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
7837if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
7838 $as_echo_n "(cached) " >&6
7839else
7840 case $ac_pt_OCAMLLEX in
7841 [\\/]* | ?:[\\/]*)
7842 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
7843 ;;
7844 *)
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7852 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857 done
7858IFS=$as_save_IFS
7859
7860 ;;
7861esac
7862fi
7863ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
7864if test -n "$ac_pt_OCAMLLEX"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
7866$as_echo "$ac_pt_OCAMLLEX" >&6; }
7867else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
7870fi
7871
7872 if test "x$ac_pt_OCAMLLEX" = x; then
7873 OCAMLLEX=""
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876yes:)
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879ac_tool_warned=yes ;;
7880esac
7881 OCAMLLEX=$ac_pt_OCAMLLEX
7882 fi
7883else
7884 OCAMLLEX="$ac_cv_path_OCAMLLEX"
7885fi
7886
7887
7888fi
7889
7890
7891fi
7892
7893 if test -z "$OCAMLLEX" -o "x$OCAMLLEX" = xno; then :
7894 if test "x$with_OCAMLLEX" = xyes; then :
7895 as_fn_error $? "--with=ocamllex is given explicitly but not found" "$LINENO" 5
7896
7897fi
7898
7899 if test -n ""; then :
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamllex not found. Trying substitute ." >&5
7901$as_echo "$as_me: ocamllex not found. Trying substitute ." >&6;}
7902 OCAMLLEX=""
7903
7904 if test "xocamllex" = xpkg-config -a "xOCAMLLEX" = xPKG_CONFIG; then :
7905
7906
abad11c5
C
7907
7908
7909
7910
7911
feec80c3
C
7912if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7913 if test -n "$ac_tool_prefix"; then
7914 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7915set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917$as_echo_n "checking for $ac_word... " >&6; }
7918if ${ac_cv_path_PKG_CONFIG+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920else
7921 case $PKG_CONFIG in
7922 [\\/]* | ?:[\\/]*)
7923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7924 ;;
7925 *)
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927for as_dir in $PATH
7928do
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7933 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7936 fi
7937done
7938 done
7939IFS=$as_save_IFS
7940
7941 ;;
7942esac
7943fi
7944PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7945if test -n "$PKG_CONFIG"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7947$as_echo "$PKG_CONFIG" >&6; }
7948else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950$as_echo "no" >&6; }
7951fi
7952
7953
7954fi
7955if test -z "$ac_cv_path_PKG_CONFIG"; then
7956 ac_pt_PKG_CONFIG=$PKG_CONFIG
7957 # Extract the first word of "pkg-config", so it can be a program name with args.
7958set dummy pkg-config; ac_word=$2
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960$as_echo_n "checking for $ac_word... " >&6; }
7961if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963else
7964 case $ac_pt_PKG_CONFIG in
7965 [\\/]* | ?:[\\/]*)
7966 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7967 ;;
7968 *)
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970for as_dir in $PATH
7971do
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 7975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
7976 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7979 fi
7980done
7981 done
7982IFS=$as_save_IFS
7983
7984 ;;
7985esac
7986fi
7987ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7988if test -n "$ac_pt_PKG_CONFIG"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7990$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7991else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993$as_echo "no" >&6; }
7994fi
7995
7996 if test "x$ac_pt_PKG_CONFIG" = x; then
7997 PKG_CONFIG=""
7998 else
7999 case $cross_compiling:$ac_tool_warned in
8000yes:)
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003ac_tool_warned=yes ;;
8004esac
8005 PKG_CONFIG=$ac_pt_PKG_CONFIG
8006 fi
8007else
8008 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8009fi
8010
8011fi
8012if test -n "$PKG_CONFIG"; then
8013 _pkg_min_version=0.9.0
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8015$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8016 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8018$as_echo "yes" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
8022 PKG_CONFIG=""
8023 fi
feec80c3
C
8024fi
8025
8026elif test "xocamllex" = xocamllex -a "xOCAMLLEX" = xOCAMLLEX; then :
8027 # checking for ocamllex
8028 if test -n "$ac_tool_prefix"; then
8029 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
8030set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032$as_echo_n "checking for $ac_word... " >&6; }
8033if ${ac_cv_path_OCAMLLEX+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035else
8036 case $OCAMLLEX in
8037 [\\/]* | ?:[\\/]*)
8038 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
8039 ;;
8040 *)
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8048 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052done
8053 done
8054IFS=$as_save_IFS
8055
8056 ;;
8057esac
8058fi
8059OCAMLLEX=$ac_cv_path_OCAMLLEX
8060if test -n "$OCAMLLEX"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
8062$as_echo "$OCAMLLEX" >&6; }
8063else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
8066fi
8067
8068
8069fi
8070if test -z "$ac_cv_path_OCAMLLEX"; then
8071 ac_pt_OCAMLLEX=$OCAMLLEX
8072 # Extract the first word of "ocamllex", so it can be a program name with args.
8073set dummy ocamllex; ac_word=$2
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
8076if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078else
8079 case $ac_pt_OCAMLLEX in
8080 [\\/]* | ?:[\\/]*)
8081 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8082 ;;
8083 *)
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8091 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095done
8096 done
8097IFS=$as_save_IFS
8098
8099 ;;
8100esac
8101fi
8102ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8103if test -n "$ac_pt_OCAMLLEX"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8105$as_echo "$ac_pt_OCAMLLEX" >&6; }
8106else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108$as_echo "no" >&6; }
8109fi
8110
8111 if test "x$ac_pt_OCAMLLEX" = x; then
8112 OCAMLLEX="no"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115yes:)
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118ac_tool_warned=yes ;;
8119esac
8120 OCAMLLEX=$ac_pt_OCAMLLEX
8121 fi
8122else
8123 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8124fi
8125
8126 if test "$OCAMLLEX" != "no"; then
8127 if test -n "$ac_tool_prefix"; then
8128 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
8129set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for $ac_word... " >&6; }
8132if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134else
8135 case $OCAMLLEXDOTOPT in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
8138 ;;
8139 *)
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8147 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152 done
8153IFS=$as_save_IFS
8154
8155 ;;
8156esac
8157fi
8158OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
8159if test -n "$OCAMLLEXDOTOPT"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
8161$as_echo "$OCAMLLEXDOTOPT" >&6; }
8162else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164$as_echo "no" >&6; }
8165fi
8166
8167
8168fi
8169if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
8170 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
8171 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
8172set dummy ocamllex.opt; ac_word=$2
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177else
8178 case $ac_pt_OCAMLLEXDOTOPT in
8179 [\\/]* | ?:[\\/]*)
8180 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
8181 ;;
8182 *)
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8190 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194done
8195 done
8196IFS=$as_save_IFS
8197
8198 ;;
8199esac
8200fi
8201ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
8202if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
8204$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
8205else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
8208fi
8209
8210 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
8211 OCAMLLEXDOTOPT="no"
8212 else
8213 case $cross_compiling:$ac_tool_warned in
8214yes:)
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8217ac_tool_warned=yes ;;
8218esac
8219 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
8220 fi
8221else
8222 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
8223fi
8224
8225 if test "$OCAMLLEXDOTOPT" != "no"; then
8226 OCAMLLEX=$OCAMLLEXDOTOPT
8227 fi
8228 fi
8229
8230
8231
8232elif test "xocamllex" = xocamlyacc -a "xOCAMLLEX" = xOCAMLYACC; then :
8233 if test -n "$ac_tool_prefix"; then
8234 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8235set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237$as_echo_n "checking for $ac_word... " >&6; }
8238if ${ac_cv_path_OCAMLYACC+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240else
8241 case $OCAMLYACC in
8242 [\\/]* | ?:[\\/]*)
8243 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8244 ;;
8245 *)
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247for as_dir in $PATH
8248do
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8253 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8256 fi
8257done
8258 done
8259IFS=$as_save_IFS
8260
8261 ;;
8262esac
8263fi
8264OCAMLYACC=$ac_cv_path_OCAMLYACC
8265if test -n "$OCAMLYACC"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8267$as_echo "$OCAMLYACC" >&6; }
8268else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "no" >&6; }
8271fi
8272
8273
8274fi
8275if test -z "$ac_cv_path_OCAMLYACC"; then
8276 ac_pt_OCAMLYACC=$OCAMLYACC
8277 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8278set dummy ocamlyacc; ac_word=$2
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280$as_echo_n "checking for $ac_word... " >&6; }
8281if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283else
8284 case $ac_pt_OCAMLYACC in
8285 [\\/]* | ?:[\\/]*)
8286 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8287 ;;
8288 *)
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8296 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300done
8301 done
8302IFS=$as_save_IFS
8303
8304 ;;
8305esac
8306fi
8307ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8308if test -n "$ac_pt_OCAMLYACC"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8310$as_echo "$ac_pt_OCAMLYACC" >&6; }
8311else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
8314fi
8315
8316 if test "x$ac_pt_OCAMLYACC" = x; then
8317 OCAMLYACC="no"
8318 else
8319 case $cross_compiling:$ac_tool_warned in
8320yes:)
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8323ac_tool_warned=yes ;;
8324esac
8325 OCAMLYACC=$ac_pt_OCAMLYACC
8326 fi
8327else
8328 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8329fi
8330
8331
8332
8333
8334else
8335 if test -n "$ac_tool_prefix"; then
8336 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
8337set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339$as_echo_n "checking for $ac_word... " >&6; }
8340if ${ac_cv_path_OCAMLLEX+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342else
8343 case $OCAMLLEX in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
8346 ;;
8347 *)
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8355 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359done
8360 done
8361IFS=$as_save_IFS
8362
8363 ;;
8364esac
8365fi
8366OCAMLLEX=$ac_cv_path_OCAMLLEX
8367if test -n "$OCAMLLEX"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
8369$as_echo "$OCAMLLEX" >&6; }
8370else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372$as_echo "no" >&6; }
8373fi
8374
8375
8376fi
8377if test -z "$ac_cv_path_OCAMLLEX"; then
8378 ac_pt_OCAMLLEX=$OCAMLLEX
8379 # Extract the first word of "ocamllex", so it can be a program name with args.
8380set dummy ocamllex; ac_word=$2
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382$as_echo_n "checking for $ac_word... " >&6; }
8383if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385else
8386 case $ac_pt_OCAMLLEX in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8389 ;;
8390 *)
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402done
8403 done
8404IFS=$as_save_IFS
8405
8406 ;;
8407esac
8408fi
8409ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8410if test -n "$ac_pt_OCAMLLEX"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8412$as_echo "$ac_pt_OCAMLLEX" >&6; }
8413else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416fi
8417
8418 if test "x$ac_pt_OCAMLLEX" = x; then
8419 OCAMLLEX=""
8420 else
8421 case $cross_compiling:$ac_tool_warned in
8422yes:)
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425ac_tool_warned=yes ;;
8426esac
8427 OCAMLLEX=$ac_pt_OCAMLLEX
8428 fi
8429else
8430 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8431fi
8432
8433
8434fi
8435
8436 SUBSTITUTED_OCAMLLEX=yes
8437
8438
8439fi
8440
8441fi
8442
8443 if test -z "$OCAMLLEX"; then :
8444 OCAMLLEX=no
8445
8446fi
8447
8448
8449
8450# Check whether --with-ocamlyacc was given.
8451if test "${with_ocamlyacc+set}" = set; then :
8452 withval=$with_ocamlyacc;
8453fi
8454
8455 with_OCAMLYACC="$with_ocamlyacc"
8456
feec80c3
C
8457 if test -n "$with_OCAMLYACC" -a "x$with_OCAMLYACC" != xno -a "x$with_OCAMLYACC" != xyes; then :
8458 OCAMLYACC="$with_OCAMLYACC"
8459
8460
d6ce1786
C
8461else
8462 OCAMLYACC="ocamlyacc"
8463
8464
feec80c3
C
8465fi
8466
d6ce1786
C
8467 if test "x$with_OCAMLYACC" = xno; then :
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc is disabled explicitly" >&5
8469$as_echo "$as_me: ocamlyacc is disabled explicitly" >&6;}
8470 OCAMLYACC=no
8471
8472
8473else
8474 if test "x$OCAMLYACC" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then :
feec80c3
C
8475
8476
abad11c5
C
8477
8478
8479
8480
8481
feec80c3
C
8482if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8483 if test -n "$ac_tool_prefix"; then
8484 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8485set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487$as_echo_n "checking for $ac_word... " >&6; }
8488if ${ac_cv_path_PKG_CONFIG+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490else
8491 case $PKG_CONFIG in
8492 [\\/]* | ?:[\\/]*)
8493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8494 ;;
8495 *)
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497for as_dir in $PATH
8498do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507done
8508 done
8509IFS=$as_save_IFS
8510
8511 ;;
8512esac
8513fi
8514PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8515if test -n "$PKG_CONFIG"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8517$as_echo "$PKG_CONFIG" >&6; }
8518else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520$as_echo "no" >&6; }
8521fi
8522
8523
8524fi
8525if test -z "$ac_cv_path_PKG_CONFIG"; then
8526 ac_pt_PKG_CONFIG=$PKG_CONFIG
8527 # Extract the first word of "pkg-config", so it can be a program name with args.
8528set dummy pkg-config; ac_word=$2
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530$as_echo_n "checking for $ac_word... " >&6; }
8531if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533else
8534 case $ac_pt_PKG_CONFIG in
8535 [\\/]* | ?:[\\/]*)
8536 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8537 ;;
8538 *)
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8546 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550done
8551 done
8552IFS=$as_save_IFS
8553
8554 ;;
8555esac
8556fi
8557ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8558if test -n "$ac_pt_PKG_CONFIG"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8560$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8561else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563$as_echo "no" >&6; }
8564fi
8565
8566 if test "x$ac_pt_PKG_CONFIG" = x; then
8567 PKG_CONFIG=""
8568 else
8569 case $cross_compiling:$ac_tool_warned in
8570yes:)
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573ac_tool_warned=yes ;;
8574esac
8575 PKG_CONFIG=$ac_pt_PKG_CONFIG
8576 fi
8577else
8578 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8579fi
8580
8581fi
8582if test -n "$PKG_CONFIG"; then
8583 _pkg_min_version=0.9.0
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8585$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8586 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8588$as_echo "yes" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
8592 PKG_CONFIG=""
8593 fi
feec80c3
C
8594fi
8595
d6ce1786 8596elif test "x$OCAMLYACC" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then :
feec80c3
C
8597 # checking for ocamllex
8598 if test -n "$ac_tool_prefix"; then
8599 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
8600set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602$as_echo_n "checking for $ac_word... " >&6; }
8603if ${ac_cv_path_OCAMLLEX+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605else
8606 case $OCAMLLEX in
8607 [\\/]* | ?:[\\/]*)
8608 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
8609 ;;
8610 *)
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8618 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622done
8623 done
8624IFS=$as_save_IFS
8625
8626 ;;
8627esac
8628fi
8629OCAMLLEX=$ac_cv_path_OCAMLLEX
8630if test -n "$OCAMLLEX"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
8632$as_echo "$OCAMLLEX" >&6; }
8633else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635$as_echo "no" >&6; }
8636fi
8637
8638
8639fi
8640if test -z "$ac_cv_path_OCAMLLEX"; then
8641 ac_pt_OCAMLLEX=$OCAMLLEX
8642 # Extract the first word of "ocamllex", so it can be a program name with args.
8643set dummy ocamllex; ac_word=$2
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
8646if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648else
8649 case $ac_pt_OCAMLLEX in
8650 [\\/]* | ?:[\\/]*)
8651 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
8652 ;;
8653 *)
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655for as_dir in $PATH
8656do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8661 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665done
8666 done
8667IFS=$as_save_IFS
8668
8669 ;;
8670esac
8671fi
8672ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
8673if test -n "$ac_pt_OCAMLLEX"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
8675$as_echo "$ac_pt_OCAMLLEX" >&6; }
8676else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678$as_echo "no" >&6; }
8679fi
8680
8681 if test "x$ac_pt_OCAMLLEX" = x; then
8682 OCAMLLEX="no"
8683 else
8684 case $cross_compiling:$ac_tool_warned in
8685yes:)
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688ac_tool_warned=yes ;;
8689esac
8690 OCAMLLEX=$ac_pt_OCAMLLEX
8691 fi
8692else
8693 OCAMLLEX="$ac_cv_path_OCAMLLEX"
8694fi
8695
8696 if test "$OCAMLLEX" != "no"; then
8697 if test -n "$ac_tool_prefix"; then
8698 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
8699set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701$as_echo_n "checking for $ac_word... " >&6; }
8702if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704else
8705 case $OCAMLLEXDOTOPT in
8706 [\\/]* | ?:[\\/]*)
8707 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
8708 ;;
8709 *)
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711for as_dir in $PATH
8712do
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8717 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8720 fi
8721done
8722 done
8723IFS=$as_save_IFS
8724
8725 ;;
8726esac
8727fi
8728OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
8729if test -n "$OCAMLLEXDOTOPT"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
8731$as_echo "$OCAMLLEXDOTOPT" >&6; }
8732else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734$as_echo "no" >&6; }
8735fi
8736
8737
8738fi
8739if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
8740 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
8741 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
8742set dummy ocamllex.opt; ac_word=$2
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744$as_echo_n "checking for $ac_word... " >&6; }
8745if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747else
8748 case $ac_pt_OCAMLLEXDOTOPT in
8749 [\\/]* | ?:[\\/]*)
8750 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
8751 ;;
8752 *)
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754for as_dir in $PATH
8755do
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8760 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8763 fi
8764done
8765 done
8766IFS=$as_save_IFS
8767
8768 ;;
8769esac
8770fi
8771ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
8772if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
8774$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
8775else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
8778fi
8779
8780 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
8781 OCAMLLEXDOTOPT="no"
8782 else
8783 case $cross_compiling:$ac_tool_warned in
8784yes:)
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8787ac_tool_warned=yes ;;
8788esac
8789 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
8790 fi
8791else
8792 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
8793fi
8794
8795 if test "$OCAMLLEXDOTOPT" != "no"; then
8796 OCAMLLEX=$OCAMLLEXDOTOPT
8797 fi
8798 fi
8799
8800
8801
d6ce1786 8802elif test "x$OCAMLYACC" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then :
feec80c3
C
8803 if test -n "$ac_tool_prefix"; then
8804 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
8805set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
8808if ${ac_cv_path_OCAMLYACC+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810else
8811 case $OCAMLYACC in
8812 [\\/]* | ?:[\\/]*)
8813 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8814 ;;
8815 *)
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8823 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8826 fi
8827done
8828 done
8829IFS=$as_save_IFS
8830
8831 ;;
8832esac
8833fi
8834OCAMLYACC=$ac_cv_path_OCAMLYACC
8835if test -n "$OCAMLYACC"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8837$as_echo "$OCAMLYACC" >&6; }
8838else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841fi
8842
8843
8844fi
8845if test -z "$ac_cv_path_OCAMLYACC"; then
8846 ac_pt_OCAMLYACC=$OCAMLYACC
8847 # Extract the first word of "ocamlyacc", so it can be a program name with args.
8848set dummy ocamlyacc; ac_word=$2
8849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850$as_echo_n "checking for $ac_word... " >&6; }
8851if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853else
8854 case $ac_pt_OCAMLYACC in
8855 [\\/]* | ?:[\\/]*)
8856 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8857 ;;
8858 *)
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8866 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870done
8871 done
8872IFS=$as_save_IFS
8873
8874 ;;
8875esac
8876fi
8877ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8878if test -n "$ac_pt_OCAMLYACC"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8880$as_echo "$ac_pt_OCAMLYACC" >&6; }
8881else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883$as_echo "no" >&6; }
8884fi
8885
8886 if test "x$ac_pt_OCAMLYACC" = x; then
8887 OCAMLYACC="no"
8888 else
8889 case $cross_compiling:$ac_tool_warned in
8890yes:)
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8893ac_tool_warned=yes ;;
8894esac
8895 OCAMLYACC=$ac_pt_OCAMLYACC
8896 fi
8897else
8898 OCAMLYACC="$ac_cv_path_OCAMLYACC"
8899fi
8900
8901
8902
8903
8904else
8905 if test -n "$ac_tool_prefix"; then
d6ce1786
C
8906 # Extract the first word of "${ac_tool_prefix}[$]OCAMLYACC", so it can be a program name with args.
8907set dummy ${ac_tool_prefix}$OCAMLYACC; ac_word=$2
feec80c3
C
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909$as_echo_n "checking for $ac_word... " >&6; }
8910if ${ac_cv_path_OCAMLYACC+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912else
8913 case $OCAMLYACC in
8914 [\\/]* | ?:[\\/]*)
8915 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
8916 ;;
8917 *)
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919for as_dir in $PATH
8920do
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8925 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 break 2
8928 fi
8929done
8930 done
8931IFS=$as_save_IFS
8932
8933 ;;
8934esac
8935fi
8936OCAMLYACC=$ac_cv_path_OCAMLYACC
8937if test -n "$OCAMLYACC"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
8939$as_echo "$OCAMLYACC" >&6; }
8940else
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
8943fi
8944
8945
8946fi
8947if test -z "$ac_cv_path_OCAMLYACC"; then
8948 ac_pt_OCAMLYACC=$OCAMLYACC
d6ce1786
C
8949 # Extract the first word of "[$]OCAMLYACC", so it can be a program name with args.
8950set dummy $OCAMLYACC; ac_word=$2
feec80c3
C
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952$as_echo_n "checking for $ac_word... " >&6; }
8953if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955else
8956 case $ac_pt_OCAMLYACC in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
8959 ;;
8960 *)
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962for as_dir in $PATH
8963do
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 8967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
8968 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8971 fi
8972done
8973 done
8974IFS=$as_save_IFS
8975
8976 ;;
8977esac
8978fi
8979ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
8980if test -n "$ac_pt_OCAMLYACC"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
8982$as_echo "$ac_pt_OCAMLYACC" >&6; }
8983else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985$as_echo "no" >&6; }
8986fi
8987
8988 if test "x$ac_pt_OCAMLYACC" = x; then
8989 OCAMLYACC=""
8990 else
8991 case $cross_compiling:$ac_tool_warned in
8992yes:)
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8995ac_tool_warned=yes ;;
8996esac
8997 OCAMLYACC=$ac_pt_OCAMLYACC
8998 fi
8999else
9000 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9001fi
9002
9003
9004fi
9005
9006
9007fi
9008
9009 if test -z "$OCAMLYACC" -o "x$OCAMLYACC" = xno; then :
9010 if test "x$with_OCAMLYACC" = xyes; then :
9011 as_fn_error $? "--with=ocamlyacc is given explicitly but not found" "$LINENO" 5
9012
9013fi
9014
9015 if test -n ""; then :
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlyacc not found. Trying substitute ." >&5
9017$as_echo "$as_me: ocamlyacc not found. Trying substitute ." >&6;}
9018 OCAMLYACC=""
9019
9020 if test "xocamlyacc" = xpkg-config -a "xOCAMLYACC" = xPKG_CONFIG; then :
9021
9022
abad11c5
C
9023
9024
9025
9026
9027
feec80c3
C
9028if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9029 if test -n "$ac_tool_prefix"; then
9030 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9031set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033$as_echo_n "checking for $ac_word... " >&6; }
9034if ${ac_cv_path_PKG_CONFIG+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036else
9037 case $PKG_CONFIG in
9038 [\\/]* | ?:[\\/]*)
9039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9040 ;;
9041 *)
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043for as_dir in $PATH
9044do
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051 break 2
9052 fi
9053done
9054 done
9055IFS=$as_save_IFS
9056
9057 ;;
9058esac
9059fi
9060PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9061if test -n "$PKG_CONFIG"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9063$as_echo "$PKG_CONFIG" >&6; }
9064else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066$as_echo "no" >&6; }
9067fi
9068
9069
9070fi
9071if test -z "$ac_cv_path_PKG_CONFIG"; then
9072 ac_pt_PKG_CONFIG=$PKG_CONFIG
9073 # Extract the first word of "pkg-config", so it can be a program name with args.
9074set dummy pkg-config; ac_word=$2
9075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076$as_echo_n "checking for $ac_word... " >&6; }
9077if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079else
9080 case $ac_pt_PKG_CONFIG in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9083 ;;
9084 *)
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9092 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096done
9097 done
9098IFS=$as_save_IFS
9099
9100 ;;
9101esac
9102fi
9103ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9104if test -n "$ac_pt_PKG_CONFIG"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9106$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9107else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109$as_echo "no" >&6; }
9110fi
9111
9112 if test "x$ac_pt_PKG_CONFIG" = x; then
9113 PKG_CONFIG=""
9114 else
9115 case $cross_compiling:$ac_tool_warned in
9116yes:)
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9119ac_tool_warned=yes ;;
9120esac
9121 PKG_CONFIG=$ac_pt_PKG_CONFIG
9122 fi
9123else
9124 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9125fi
9126
9127fi
9128if test -n "$PKG_CONFIG"; then
9129 _pkg_min_version=0.9.0
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9131$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9132 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9134$as_echo "yes" >&6; }
9135 else
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137$as_echo "no" >&6; }
9138 PKG_CONFIG=""
9139 fi
feec80c3
C
9140fi
9141
9142elif test "xocamlyacc" = xocamllex -a "xOCAMLYACC" = xOCAMLLEX; then :
9143 # checking for ocamllex
9144 if test -n "$ac_tool_prefix"; then
9145 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
9146set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148$as_echo_n "checking for $ac_word... " >&6; }
9149if ${ac_cv_path_OCAMLLEX+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151else
9152 case $OCAMLLEX in
9153 [\\/]* | ?:[\\/]*)
9154 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
9155 ;;
9156 *)
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158for as_dir in $PATH
9159do
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9164 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 break 2
9167 fi
9168done
9169 done
9170IFS=$as_save_IFS
9171
9172 ;;
9173esac
9174fi
9175OCAMLLEX=$ac_cv_path_OCAMLLEX
9176if test -n "$OCAMLLEX"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
9178$as_echo "$OCAMLLEX" >&6; }
9179else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181$as_echo "no" >&6; }
9182fi
9183
9184
9185fi
9186if test -z "$ac_cv_path_OCAMLLEX"; then
9187 ac_pt_OCAMLLEX=$OCAMLLEX
9188 # Extract the first word of "ocamllex", so it can be a program name with args.
9189set dummy ocamllex; ac_word=$2
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191$as_echo_n "checking for $ac_word... " >&6; }
9192if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194else
9195 case $ac_pt_OCAMLLEX in
9196 [\\/]* | ?:[\\/]*)
9197 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
9198 ;;
9199 *)
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201for as_dir in $PATH
9202do
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9207 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9210 fi
9211done
9212 done
9213IFS=$as_save_IFS
9214
9215 ;;
9216esac
9217fi
9218ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
9219if test -n "$ac_pt_OCAMLLEX"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
9221$as_echo "$ac_pt_OCAMLLEX" >&6; }
9222else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224$as_echo "no" >&6; }
9225fi
9226
9227 if test "x$ac_pt_OCAMLLEX" = x; then
9228 OCAMLLEX="no"
9229 else
9230 case $cross_compiling:$ac_tool_warned in
9231yes:)
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9234ac_tool_warned=yes ;;
9235esac
9236 OCAMLLEX=$ac_pt_OCAMLLEX
9237 fi
9238else
9239 OCAMLLEX="$ac_cv_path_OCAMLLEX"
9240fi
9241
9242 if test "$OCAMLLEX" != "no"; then
9243 if test -n "$ac_tool_prefix"; then
9244 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
9245set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247$as_echo_n "checking for $ac_word... " >&6; }
9248if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250else
9251 case $OCAMLLEXDOTOPT in
9252 [\\/]* | ?:[\\/]*)
9253 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
9254 ;;
9255 *)
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9263 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9266 fi
9267done
9268 done
9269IFS=$as_save_IFS
9270
9271 ;;
9272esac
9273fi
9274OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
9275if test -n "$OCAMLLEXDOTOPT"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
9277$as_echo "$OCAMLLEXDOTOPT" >&6; }
9278else
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
9281fi
9282
9283
9284fi
9285if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
9286 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
9287 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
9288set dummy ocamllex.opt; ac_word=$2
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290$as_echo_n "checking for $ac_word... " >&6; }
9291if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293else
9294 case $ac_pt_OCAMLLEXDOTOPT in
9295 [\\/]* | ?:[\\/]*)
9296 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
9297 ;;
9298 *)
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300for as_dir in $PATH
9301do
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9306 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9309 fi
9310done
9311 done
9312IFS=$as_save_IFS
9313
9314 ;;
9315esac
9316fi
9317ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
9318if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
9320$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
9321else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323$as_echo "no" >&6; }
9324fi
9325
9326 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
9327 OCAMLLEXDOTOPT="no"
9328 else
9329 case $cross_compiling:$ac_tool_warned in
9330yes:)
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9333ac_tool_warned=yes ;;
9334esac
9335 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
9336 fi
9337else
9338 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
9339fi
9340
9341 if test "$OCAMLLEXDOTOPT" != "no"; then
9342 OCAMLLEX=$OCAMLLEXDOTOPT
9343 fi
9344 fi
9345
9346
9347
9348elif test "xocamlyacc" = xocamlyacc -a "xOCAMLYACC" = xOCAMLYACC; then :
9349 if test -n "$ac_tool_prefix"; then
9350 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9351set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353$as_echo_n "checking for $ac_word... " >&6; }
9354if ${ac_cv_path_OCAMLYACC+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356else
9357 case $OCAMLYACC in
9358 [\\/]* | ?:[\\/]*)
9359 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9360 ;;
9361 *)
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363for as_dir in $PATH
9364do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9369 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9372 fi
9373done
9374 done
9375IFS=$as_save_IFS
9376
9377 ;;
9378esac
9379fi
9380OCAMLYACC=$ac_cv_path_OCAMLYACC
9381if test -n "$OCAMLYACC"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9383$as_echo "$OCAMLYACC" >&6; }
9384else
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386$as_echo "no" >&6; }
9387fi
9388
9389
9390fi
9391if test -z "$ac_cv_path_OCAMLYACC"; then
9392 ac_pt_OCAMLYACC=$OCAMLYACC
9393 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9394set dummy ocamlyacc; ac_word=$2
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396$as_echo_n "checking for $ac_word... " >&6; }
9397if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399else
9400 case $ac_pt_OCAMLYACC in
9401 [\\/]* | ?:[\\/]*)
9402 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9403 ;;
9404 *)
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406for as_dir in $PATH
9407do
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9412 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9414 break 2
9415 fi
9416done
9417 done
9418IFS=$as_save_IFS
9419
9420 ;;
9421esac
9422fi
9423ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9424if test -n "$ac_pt_OCAMLYACC"; then
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9426$as_echo "$ac_pt_OCAMLYACC" >&6; }
9427else
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9429$as_echo "no" >&6; }
9430fi
9431
9432 if test "x$ac_pt_OCAMLYACC" = x; then
9433 OCAMLYACC="no"
9434 else
9435 case $cross_compiling:$ac_tool_warned in
9436yes:)
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9439ac_tool_warned=yes ;;
9440esac
9441 OCAMLYACC=$ac_pt_OCAMLYACC
9442 fi
9443else
9444 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9445fi
9446
9447
9448
9449
9450else
9451 if test -n "$ac_tool_prefix"; then
9452 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9453set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455$as_echo_n "checking for $ac_word... " >&6; }
9456if ${ac_cv_path_OCAMLYACC+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458else
9459 case $OCAMLYACC in
9460 [\\/]* | ?:[\\/]*)
9461 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9462 ;;
9463 *)
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465for as_dir in $PATH
9466do
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9471 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 break 2
9474 fi
9475done
9476 done
9477IFS=$as_save_IFS
9478
9479 ;;
9480esac
9481fi
9482OCAMLYACC=$ac_cv_path_OCAMLYACC
9483if test -n "$OCAMLYACC"; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9485$as_echo "$OCAMLYACC" >&6; }
9486else
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488$as_echo "no" >&6; }
9489fi
9490
9491
9492fi
9493if test -z "$ac_cv_path_OCAMLYACC"; then
9494 ac_pt_OCAMLYACC=$OCAMLYACC
9495 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9496set dummy ocamlyacc; ac_word=$2
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498$as_echo_n "checking for $ac_word... " >&6; }
9499if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501else
9502 case $ac_pt_OCAMLYACC in
9503 [\\/]* | ?:[\\/]*)
9504 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9505 ;;
9506 *)
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508for as_dir in $PATH
9509do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9514 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9517 fi
9518done
9519 done
9520IFS=$as_save_IFS
9521
9522 ;;
9523esac
9524fi
9525ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9526if test -n "$ac_pt_OCAMLYACC"; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9528$as_echo "$ac_pt_OCAMLYACC" >&6; }
9529else
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531$as_echo "no" >&6; }
9532fi
9533
9534 if test "x$ac_pt_OCAMLYACC" = x; then
9535 OCAMLYACC=""
9536 else
9537 case $cross_compiling:$ac_tool_warned in
9538yes:)
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9541ac_tool_warned=yes ;;
9542esac
9543 OCAMLYACC=$ac_pt_OCAMLYACC
9544 fi
9545else
9546 OCAMLYACC="$ac_cv_path_OCAMLYACC"
9547fi
9548
9549
9550fi
9551
9552 SUBSTITUTED_OCAMLYACC=yes
9553
9554
9555fi
9556
9557fi
9558
9559 if test -z "$OCAMLYACC"; then :
9560 OCAMLYACC=no
9561
9562fi
9563
9564
9565
9566# Check whether --with-ocamlfind was given.
9567if test "${with_ocamlfind+set}" = set; then :
9568 withval=$with_ocamlfind;
9569fi
9570
9571 with_OCAMLFIND="$with_ocamlfind"
9572
feec80c3
C
9573 if test -n "$with_OCAMLFIND" -a "x$with_OCAMLFIND" != xno -a "x$with_OCAMLFIND" != xyes; then :
9574 OCAMLFIND="$with_OCAMLFIND"
9575
9576
d6ce1786
C
9577else
9578 OCAMLFIND="ocamlfind"
9579
9580
feec80c3
C
9581fi
9582
d6ce1786
C
9583 if test "x$with_OCAMLFIND" = xno; then :
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind is disabled explicitly" >&5
9585$as_echo "$as_me: ocamlfind is disabled explicitly" >&6;}
9586 OCAMLFIND=no
9587
9588
9589else
9590 if test "x$OCAMLFIND" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then :
feec80c3
C
9591
9592
abad11c5
C
9593
9594
9595
9596
9597
feec80c3
C
9598if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9599 if test -n "$ac_tool_prefix"; then
9600 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9601set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603$as_echo_n "checking for $ac_word... " >&6; }
9604if ${ac_cv_path_PKG_CONFIG+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606else
9607 case $PKG_CONFIG in
9608 [\\/]* | ?:[\\/]*)
9609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9610 ;;
9611 *)
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9619 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623done
9624 done
9625IFS=$as_save_IFS
9626
9627 ;;
9628esac
9629fi
9630PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9631if test -n "$PKG_CONFIG"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9633$as_echo "$PKG_CONFIG" >&6; }
9634else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636$as_echo "no" >&6; }
9637fi
9638
9639
9640fi
9641if test -z "$ac_cv_path_PKG_CONFIG"; then
9642 ac_pt_PKG_CONFIG=$PKG_CONFIG
9643 # Extract the first word of "pkg-config", so it can be a program name with args.
9644set dummy pkg-config; ac_word=$2
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9646$as_echo_n "checking for $ac_word... " >&6; }
9647if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649else
9650 case $ac_pt_PKG_CONFIG in
9651 [\\/]* | ?:[\\/]*)
9652 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9653 ;;
9654 *)
9655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9656for as_dir in $PATH
9657do
9658 IFS=$as_save_IFS
9659 test -z "$as_dir" && as_dir=.
9660 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9662 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 break 2
9665 fi
9666done
9667 done
9668IFS=$as_save_IFS
9669
9670 ;;
9671esac
9672fi
9673ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9674if test -n "$ac_pt_PKG_CONFIG"; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9676$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9677else
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679$as_echo "no" >&6; }
9680fi
9681
9682 if test "x$ac_pt_PKG_CONFIG" = x; then
9683 PKG_CONFIG=""
9684 else
9685 case $cross_compiling:$ac_tool_warned in
9686yes:)
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9689ac_tool_warned=yes ;;
9690esac
9691 PKG_CONFIG=$ac_pt_PKG_CONFIG
9692 fi
9693else
9694 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9695fi
9696
9697fi
9698if test -n "$PKG_CONFIG"; then
9699 _pkg_min_version=0.9.0
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9701$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9702 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9704$as_echo "yes" >&6; }
9705 else
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707$as_echo "no" >&6; }
9708 PKG_CONFIG=""
9709 fi
feec80c3
C
9710fi
9711
d6ce1786 9712elif test "x$OCAMLFIND" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then :
feec80c3
C
9713 # checking for ocamllex
9714 if test -n "$ac_tool_prefix"; then
9715 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
9716set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718$as_echo_n "checking for $ac_word... " >&6; }
9719if ${ac_cv_path_OCAMLLEX+:} false; then :
9720 $as_echo_n "(cached) " >&6
9721else
9722 case $OCAMLLEX in
9723 [\\/]* | ?:[\\/]*)
9724 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
9725 ;;
9726 *)
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728for as_dir in $PATH
9729do
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9734 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 break 2
9737 fi
9738done
9739 done
9740IFS=$as_save_IFS
9741
9742 ;;
9743esac
9744fi
9745OCAMLLEX=$ac_cv_path_OCAMLLEX
9746if test -n "$OCAMLLEX"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
9748$as_echo "$OCAMLLEX" >&6; }
9749else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751$as_echo "no" >&6; }
9752fi
9753
9754
9755fi
9756if test -z "$ac_cv_path_OCAMLLEX"; then
9757 ac_pt_OCAMLLEX=$OCAMLLEX
9758 # Extract the first word of "ocamllex", so it can be a program name with args.
9759set dummy ocamllex; ac_word=$2
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9761$as_echo_n "checking for $ac_word... " >&6; }
9762if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764else
9765 case $ac_pt_OCAMLLEX in
9766 [\\/]* | ?:[\\/]*)
9767 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
9768 ;;
9769 *)
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771for as_dir in $PATH
9772do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9777 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781done
9782 done
9783IFS=$as_save_IFS
9784
9785 ;;
9786esac
9787fi
9788ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
9789if test -n "$ac_pt_OCAMLLEX"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
9791$as_echo "$ac_pt_OCAMLLEX" >&6; }
9792else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
9795fi
9796
9797 if test "x$ac_pt_OCAMLLEX" = x; then
9798 OCAMLLEX="no"
9799 else
9800 case $cross_compiling:$ac_tool_warned in
9801yes:)
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9804ac_tool_warned=yes ;;
9805esac
9806 OCAMLLEX=$ac_pt_OCAMLLEX
9807 fi
9808else
9809 OCAMLLEX="$ac_cv_path_OCAMLLEX"
9810fi
9811
9812 if test "$OCAMLLEX" != "no"; then
9813 if test -n "$ac_tool_prefix"; then
9814 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
9815set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817$as_echo_n "checking for $ac_word... " >&6; }
9818if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820else
9821 case $OCAMLLEXDOTOPT in
9822 [\\/]* | ?:[\\/]*)
9823 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
9824 ;;
9825 *)
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827for as_dir in $PATH
9828do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9833 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9836 fi
9837done
9838 done
9839IFS=$as_save_IFS
9840
9841 ;;
9842esac
9843fi
9844OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
9845if test -n "$OCAMLLEXDOTOPT"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
9847$as_echo "$OCAMLLEXDOTOPT" >&6; }
9848else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850$as_echo "no" >&6; }
9851fi
9852
9853
9854fi
9855if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
9856 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
9857 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
9858set dummy ocamllex.opt; ac_word=$2
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9860$as_echo_n "checking for $ac_word... " >&6; }
9861if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863else
9864 case $ac_pt_OCAMLLEXDOTOPT in
9865 [\\/]* | ?:[\\/]*)
9866 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
9867 ;;
9868 *)
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870for as_dir in $PATH
9871do
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9876 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9879 fi
9880done
9881 done
9882IFS=$as_save_IFS
9883
9884 ;;
9885esac
9886fi
9887ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
9888if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
9890$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
9891else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893$as_echo "no" >&6; }
9894fi
9895
9896 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
9897 OCAMLLEXDOTOPT="no"
9898 else
9899 case $cross_compiling:$ac_tool_warned in
9900yes:)
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9903ac_tool_warned=yes ;;
9904esac
9905 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
9906 fi
9907else
9908 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
9909fi
9910
9911 if test "$OCAMLLEXDOTOPT" != "no"; then
9912 OCAMLLEX=$OCAMLLEXDOTOPT
9913 fi
9914 fi
9915
9916
9917
d6ce1786 9918elif test "x$OCAMLFIND" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then :
feec80c3
C
9919 if test -n "$ac_tool_prefix"; then
9920 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
9921set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923$as_echo_n "checking for $ac_word... " >&6; }
9924if ${ac_cv_path_OCAMLYACC+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926else
9927 case $OCAMLYACC in
9928 [\\/]* | ?:[\\/]*)
9929 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
9930 ;;
9931 *)
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933for as_dir in $PATH
9934do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9939 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9942 fi
9943done
9944 done
9945IFS=$as_save_IFS
9946
9947 ;;
9948esac
9949fi
9950OCAMLYACC=$ac_cv_path_OCAMLYACC
9951if test -n "$OCAMLYACC"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
9953$as_echo "$OCAMLYACC" >&6; }
9954else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956$as_echo "no" >&6; }
9957fi
9958
9959
9960fi
9961if test -z "$ac_cv_path_OCAMLYACC"; then
9962 ac_pt_OCAMLYACC=$OCAMLYACC
9963 # Extract the first word of "ocamlyacc", so it can be a program name with args.
9964set dummy ocamlyacc; ac_word=$2
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966$as_echo_n "checking for $ac_word... " >&6; }
9967if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969else
9970 case $ac_pt_OCAMLYACC in
9971 [\\/]* | ?:[\\/]*)
9972 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
9973 ;;
9974 *)
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976for as_dir in $PATH
9977do
9978 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 9981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
9982 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984 break 2
9985 fi
9986done
9987 done
9988IFS=$as_save_IFS
9989
9990 ;;
9991esac
9992fi
9993ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
9994if test -n "$ac_pt_OCAMLYACC"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
9996$as_echo "$ac_pt_OCAMLYACC" >&6; }
9997else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999$as_echo "no" >&6; }
10000fi
10001
10002 if test "x$ac_pt_OCAMLYACC" = x; then
10003 OCAMLYACC="no"
10004 else
10005 case $cross_compiling:$ac_tool_warned in
10006yes:)
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10009ac_tool_warned=yes ;;
10010esac
10011 OCAMLYACC=$ac_pt_OCAMLYACC
10012 fi
10013else
10014 OCAMLYACC="$ac_cv_path_OCAMLYACC"
10015fi
10016
10017
10018
10019
10020else
10021 if test -n "$ac_tool_prefix"; then
d6ce1786
C
10022 # Extract the first word of "${ac_tool_prefix}[$]OCAMLFIND", so it can be a program name with args.
10023set dummy ${ac_tool_prefix}$OCAMLFIND; ac_word=$2
feec80c3
C
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025$as_echo_n "checking for $ac_word... " >&6; }
10026if ${ac_cv_path_OCAMLFIND+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028else
10029 case $OCAMLFIND in
10030 [\\/]* | ?:[\\/]*)
10031 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
10032 ;;
10033 *)
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10041 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10043 break 2
10044 fi
10045done
10046 done
10047IFS=$as_save_IFS
10048
10049 ;;
10050esac
10051fi
10052OCAMLFIND=$ac_cv_path_OCAMLFIND
10053if test -n "$OCAMLFIND"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
10055$as_echo "$OCAMLFIND" >&6; }
10056else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058$as_echo "no" >&6; }
10059fi
10060
10061
10062fi
10063if test -z "$ac_cv_path_OCAMLFIND"; then
10064 ac_pt_OCAMLFIND=$OCAMLFIND
d6ce1786
C
10065 # Extract the first word of "[$]OCAMLFIND", so it can be a program name with args.
10066set dummy $OCAMLFIND; ac_word=$2
feec80c3
C
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068$as_echo_n "checking for $ac_word... " >&6; }
10069if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071else
10072 case $ac_pt_OCAMLFIND in
10073 [\\/]* | ?:[\\/]*)
10074 ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path.
10075 ;;
10076 *)
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $PATH
10079do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10084 ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088done
10089 done
10090IFS=$as_save_IFS
10091
10092 ;;
10093esac
10094fi
10095ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND
10096if test -n "$ac_pt_OCAMLFIND"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5
10098$as_echo "$ac_pt_OCAMLFIND" >&6; }
10099else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101$as_echo "no" >&6; }
10102fi
10103
10104 if test "x$ac_pt_OCAMLFIND" = x; then
10105 OCAMLFIND=""
10106 else
10107 case $cross_compiling:$ac_tool_warned in
10108yes:)
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10111ac_tool_warned=yes ;;
10112esac
10113 OCAMLFIND=$ac_pt_OCAMLFIND
10114 fi
10115else
10116 OCAMLFIND="$ac_cv_path_OCAMLFIND"
10117fi
10118
10119
10120fi
10121
10122
10123fi
10124
10125 if test -z "$OCAMLFIND" -o "x$OCAMLFIND" = xno; then :
10126 if test "x$with_OCAMLFIND" = xyes; then :
10127 as_fn_error $? "--with=ocamlfind is given explicitly but not found" "$LINENO" 5
10128
10129fi
10130
10131 if test -n "$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"; then :
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&5
10133$as_echo "$as_me: ocamlfind not found. Trying substitute $COCCI_SRCDIR/setup/fake-subst.sh ocamlfind." >&6;}
10134 OCAMLFIND="$COCCI_SRCDIR/setup/fake-subst.sh ocamlfind"
10135
10136 if test "xocamlfind" = xpkg-config -a "xOCAMLFIND" = xPKG_CONFIG; then :
10137
10138
abad11c5
C
10139
10140
10141
10142
10143
feec80c3
C
10144if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10145 if test -n "$ac_tool_prefix"; then
10146 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10147set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149$as_echo_n "checking for $ac_word... " >&6; }
10150if ${ac_cv_path_PKG_CONFIG+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152else
10153 case $PKG_CONFIG in
10154 [\\/]* | ?:[\\/]*)
10155 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10156 ;;
10157 *)
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159for as_dir in $PATH
10160do
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10165 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167 break 2
10168 fi
10169done
10170 done
10171IFS=$as_save_IFS
10172
10173 ;;
10174esac
10175fi
10176PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10177if test -n "$PKG_CONFIG"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10179$as_echo "$PKG_CONFIG" >&6; }
10180else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182$as_echo "no" >&6; }
10183fi
10184
10185
10186fi
10187if test -z "$ac_cv_path_PKG_CONFIG"; then
10188 ac_pt_PKG_CONFIG=$PKG_CONFIG
10189 # Extract the first word of "pkg-config", so it can be a program name with args.
10190set dummy pkg-config; ac_word=$2
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192$as_echo_n "checking for $ac_word... " >&6; }
10193if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195else
10196 case $ac_pt_PKG_CONFIG in
10197 [\\/]* | ?:[\\/]*)
10198 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10199 ;;
10200 *)
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202for as_dir in $PATH
10203do
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10208 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 break 2
10211 fi
10212done
10213 done
10214IFS=$as_save_IFS
10215
10216 ;;
10217esac
10218fi
10219ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10220if test -n "$ac_pt_PKG_CONFIG"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10222$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10223else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225$as_echo "no" >&6; }
10226fi
10227
10228 if test "x$ac_pt_PKG_CONFIG" = x; then
10229 PKG_CONFIG=""
10230 else
10231 case $cross_compiling:$ac_tool_warned in
10232yes:)
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10235ac_tool_warned=yes ;;
10236esac
10237 PKG_CONFIG=$ac_pt_PKG_CONFIG
10238 fi
10239else
10240 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10241fi
10242
10243fi
10244if test -n "$PKG_CONFIG"; then
10245 _pkg_min_version=0.9.0
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10247$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10248 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10250$as_echo "yes" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254 PKG_CONFIG=""
10255 fi
feec80c3
C
10256fi
10257
10258elif test "xocamlfind" = xocamllex -a "xOCAMLFIND" = xOCAMLLEX; then :
10259 # checking for ocamllex
10260 if test -n "$ac_tool_prefix"; then
10261 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
10262set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10264$as_echo_n "checking for $ac_word... " >&6; }
10265if ${ac_cv_path_OCAMLLEX+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267else
10268 case $OCAMLLEX in
10269 [\\/]* | ?:[\\/]*)
10270 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
10271 ;;
10272 *)
10273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274for as_dir in $PATH
10275do
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
10278 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10280 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 break 2
10283 fi
10284done
10285 done
10286IFS=$as_save_IFS
10287
10288 ;;
10289esac
10290fi
10291OCAMLLEX=$ac_cv_path_OCAMLLEX
10292if test -n "$OCAMLLEX"; then
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
10294$as_echo "$OCAMLLEX" >&6; }
10295else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297$as_echo "no" >&6; }
10298fi
10299
10300
10301fi
10302if test -z "$ac_cv_path_OCAMLLEX"; then
10303 ac_pt_OCAMLLEX=$OCAMLLEX
10304 # Extract the first word of "ocamllex", so it can be a program name with args.
10305set dummy ocamllex; ac_word=$2
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307$as_echo_n "checking for $ac_word... " >&6; }
10308if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310else
10311 case $ac_pt_OCAMLLEX in
10312 [\\/]* | ?:[\\/]*)
10313 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
10314 ;;
10315 *)
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317for as_dir in $PATH
10318do
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10323 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10326 fi
10327done
10328 done
10329IFS=$as_save_IFS
10330
10331 ;;
10332esac
10333fi
10334ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
10335if test -n "$ac_pt_OCAMLLEX"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
10337$as_echo "$ac_pt_OCAMLLEX" >&6; }
10338else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340$as_echo "no" >&6; }
10341fi
10342
10343 if test "x$ac_pt_OCAMLLEX" = x; then
10344 OCAMLLEX="no"
10345 else
10346 case $cross_compiling:$ac_tool_warned in
10347yes:)
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10350ac_tool_warned=yes ;;
10351esac
10352 OCAMLLEX=$ac_pt_OCAMLLEX
10353 fi
10354else
10355 OCAMLLEX="$ac_cv_path_OCAMLLEX"
10356fi
10357
10358 if test "$OCAMLLEX" != "no"; then
10359 if test -n "$ac_tool_prefix"; then
10360 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
10361set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363$as_echo_n "checking for $ac_word... " >&6; }
10364if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
10365 $as_echo_n "(cached) " >&6
10366else
10367 case $OCAMLLEXDOTOPT in
10368 [\\/]* | ?:[\\/]*)
10369 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
10370 ;;
10371 *)
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10379 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 break 2
10382 fi
10383done
10384 done
10385IFS=$as_save_IFS
10386
10387 ;;
10388esac
10389fi
10390OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
10391if test -n "$OCAMLLEXDOTOPT"; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
10393$as_echo "$OCAMLLEXDOTOPT" >&6; }
10394else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396$as_echo "no" >&6; }
10397fi
10398
10399
10400fi
10401if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
10402 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
10403 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
10404set dummy ocamllex.opt; ac_word=$2
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406$as_echo_n "checking for $ac_word... " >&6; }
10407if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409else
10410 case $ac_pt_OCAMLLEXDOTOPT in
10411 [\\/]* | ?:[\\/]*)
10412 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
10413 ;;
10414 *)
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416for as_dir in $PATH
10417do
10418 IFS=$as_save_IFS
10419 test -z "$as_dir" && as_dir=.
10420 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10422 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424 break 2
10425 fi
10426done
10427 done
10428IFS=$as_save_IFS
10429
10430 ;;
10431esac
10432fi
10433ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
10434if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
10436$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
10437else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439$as_echo "no" >&6; }
10440fi
10441
10442 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
10443 OCAMLLEXDOTOPT="no"
10444 else
10445 case $cross_compiling:$ac_tool_warned in
10446yes:)
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10449ac_tool_warned=yes ;;
10450esac
10451 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
10452 fi
10453else
10454 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
10455fi
10456
10457 if test "$OCAMLLEXDOTOPT" != "no"; then
10458 OCAMLLEX=$OCAMLLEXDOTOPT
10459 fi
10460 fi
10461
10462
10463
10464elif test "xocamlfind" = xocamlyacc -a "xOCAMLFIND" = xOCAMLYACC; then :
10465 if test -n "$ac_tool_prefix"; then
10466 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
10467set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469$as_echo_n "checking for $ac_word... " >&6; }
10470if ${ac_cv_path_OCAMLYACC+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472else
10473 case $OCAMLYACC in
10474 [\\/]* | ?:[\\/]*)
10475 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
10476 ;;
10477 *)
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479for as_dir in $PATH
10480do
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10485 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10488 fi
10489done
10490 done
10491IFS=$as_save_IFS
10492
10493 ;;
10494esac
10495fi
10496OCAMLYACC=$ac_cv_path_OCAMLYACC
10497if test -n "$OCAMLYACC"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
10499$as_echo "$OCAMLYACC" >&6; }
10500else
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502$as_echo "no" >&6; }
10503fi
10504
10505
10506fi
10507if test -z "$ac_cv_path_OCAMLYACC"; then
10508 ac_pt_OCAMLYACC=$OCAMLYACC
10509 # Extract the first word of "ocamlyacc", so it can be a program name with args.
10510set dummy ocamlyacc; ac_word=$2
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512$as_echo_n "checking for $ac_word... " >&6; }
10513if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
10514 $as_echo_n "(cached) " >&6
10515else
10516 case $ac_pt_OCAMLYACC in
10517 [\\/]* | ?:[\\/]*)
10518 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
10519 ;;
10520 *)
10521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522for as_dir in $PATH
10523do
10524 IFS=$as_save_IFS
10525 test -z "$as_dir" && as_dir=.
10526 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10528 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
10529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10530 break 2
10531 fi
10532done
10533 done
10534IFS=$as_save_IFS
10535
10536 ;;
10537esac
10538fi
10539ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
10540if test -n "$ac_pt_OCAMLYACC"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
10542$as_echo "$ac_pt_OCAMLYACC" >&6; }
10543else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
10546fi
10547
10548 if test "x$ac_pt_OCAMLYACC" = x; then
10549 OCAMLYACC="no"
10550 else
10551 case $cross_compiling:$ac_tool_warned in
10552yes:)
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10555ac_tool_warned=yes ;;
10556esac
10557 OCAMLYACC=$ac_pt_OCAMLYACC
10558 fi
10559else
10560 OCAMLYACC="$ac_cv_path_OCAMLYACC"
10561fi
10562
10563
10564
10565
10566else
10567 if test -n "$ac_tool_prefix"; then
10568 # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args.
10569set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571$as_echo_n "checking for $ac_word... " >&6; }
10572if ${ac_cv_path_OCAMLFIND+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574else
10575 case $OCAMLFIND in
10576 [\\/]* | ?:[\\/]*)
10577 ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
10578 ;;
10579 *)
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581for as_dir in $PATH
10582do
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10587 ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10590 fi
10591done
10592 done
10593IFS=$as_save_IFS
10594
10595 ;;
10596esac
10597fi
10598OCAMLFIND=$ac_cv_path_OCAMLFIND
10599if test -n "$OCAMLFIND"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
10601$as_echo "$OCAMLFIND" >&6; }
10602else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604$as_echo "no" >&6; }
10605fi
10606
10607
10608fi
10609if test -z "$ac_cv_path_OCAMLFIND"; then
10610 ac_pt_OCAMLFIND=$OCAMLFIND
10611 # Extract the first word of "ocamlfind", so it can be a program name with args.
10612set dummy ocamlfind; ac_word=$2
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614$as_echo_n "checking for $ac_word... " >&6; }
10615if ${ac_cv_path_ac_pt_OCAMLFIND+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617else
10618 case $ac_pt_OCAMLFIND in
10619 [\\/]* | ?:[\\/]*)
10620 ac_cv_path_ac_pt_OCAMLFIND="$ac_pt_OCAMLFIND" # Let the user override the test with a path.
10621 ;;
10622 *)
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624for as_dir in $PATH
10625do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
10630 ac_cv_path_ac_pt_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634done
10635 done
10636IFS=$as_save_IFS
10637
10638 ;;
10639esac
10640fi
10641ac_pt_OCAMLFIND=$ac_cv_path_ac_pt_OCAMLFIND
10642if test -n "$ac_pt_OCAMLFIND"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLFIND" >&5
10644$as_echo "$ac_pt_OCAMLFIND" >&6; }
10645else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
10648fi
10649
10650 if test "x$ac_pt_OCAMLFIND" = x; then
10651 OCAMLFIND=""
10652 else
10653 case $cross_compiling:$ac_tool_warned in
10654yes:)
10655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10657ac_tool_warned=yes ;;
10658esac
10659 OCAMLFIND=$ac_pt_OCAMLFIND
10660 fi
10661else
10662 OCAMLFIND="$ac_cv_path_OCAMLFIND"
10663fi
10664
10665
10666fi
10667
10668 SUBSTITUTED_OCAMLFIND=yes
10669
10670
10671fi
10672
10673fi
10674
10675 if test -z "$OCAMLFIND"; then :
10676 OCAMLFIND=no
10677
10678fi
10679
10680
feec80c3 10681
755320b0
C
10682# Check whether --with-ocamlprof was given.
10683if test "${with_ocamlprof+set}" = set; then :
10684 withval=$with_ocamlprof;
feec80c3
C
10685fi
10686
755320b0 10687 with_OCAMLPROF="$with_ocamlprof"
feec80c3 10688
755320b0
C
10689 if test -n "$with_OCAMLPROF" -a "x$with_OCAMLPROF" != xno -a "x$with_OCAMLPROF" != xyes; then :
10690 OCAMLPROF="$with_OCAMLPROF"
feec80c3 10691
feec80c3 10692
755320b0
C
10693else
10694 OCAMLPROF="ocamlprof"
feec80c3
C
10695
10696
feec80c3
C
10697fi
10698
755320b0
C
10699 if test "x$with_OCAMLPROF" = xno; then :
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlprof is disabled explicitly" >&5
10701$as_echo "$as_me: ocamlprof is disabled explicitly" >&6;}
10702 OCAMLPROF=no
feec80c3
C
10703
10704
755320b0
C
10705else
10706 if test "x$OCAMLPROF" = xpkg-config -a "xOCAMLPROF" = xPKG_CONFIG; then :
feec80c3
C
10707
10708
abad11c5
C
10709
10710
10711
10712
10713
755320b0
C
10714if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10715 if test -n "$ac_tool_prefix"; then
10716 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10717set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719$as_echo_n "checking for $ac_word... " >&6; }
10720if ${ac_cv_path_PKG_CONFIG+:} false; then :
10721 $as_echo_n "(cached) " >&6
feec80c3 10722else
755320b0
C
10723 case $PKG_CONFIG in
10724 [\\/]* | ?:[\\/]*)
10725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10726 ;;
10727 *)
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729for as_dir in $PATH
10730do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10738 fi
10739done
10740 done
10741IFS=$as_save_IFS
feec80c3 10742
755320b0
C
10743 ;;
10744esac
feec80c3 10745fi
755320b0
C
10746PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10747if test -n "$PKG_CONFIG"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10749$as_echo "$PKG_CONFIG" >&6; }
10750else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
feec80c3
C
10753fi
10754
10755
feec80c3 10756fi
755320b0
C
10757if test -z "$ac_cv_path_PKG_CONFIG"; then
10758 ac_pt_PKG_CONFIG=$PKG_CONFIG
10759 # Extract the first word of "pkg-config", so it can be a program name with args.
10760set dummy pkg-config; ac_word=$2
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762$as_echo_n "checking for $ac_word... " >&6; }
10763if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10764 $as_echo_n "(cached) " >&6
feec80c3 10765else
755320b0
C
10766 case $ac_pt_PKG_CONFIG in
10767 [\\/]* | ?:[\\/]*)
10768 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10769 ;;
10770 *)
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772for as_dir in $PATH
10773do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10781 fi
10782done
10783 done
10784IFS=$as_save_IFS
feec80c3 10785
755320b0
C
10786 ;;
10787esac
feec80c3 10788fi
755320b0
C
10789ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10790if test -n "$ac_pt_PKG_CONFIG"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10792$as_echo "$ac_pt_PKG_CONFIG" >&6; }
10793else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795$as_echo "no" >&6; }
feec80c3
C
10796fi
10797
755320b0
C
10798 if test "x$ac_pt_PKG_CONFIG" = x; then
10799 PKG_CONFIG=""
10800 else
10801 case $cross_compiling:$ac_tool_warned in
10802yes:)
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10805ac_tool_warned=yes ;;
10806esac
10807 PKG_CONFIG=$ac_pt_PKG_CONFIG
10808 fi
10809else
10810 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
feec80c3
C
10811fi
10812
755320b0
C
10813fi
10814if test -n "$PKG_CONFIG"; then
10815 _pkg_min_version=0.9.0
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10817$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10818 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820$as_echo "yes" >&6; }
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823$as_echo "no" >&6; }
10824 PKG_CONFIG=""
10825 fi
755320b0 10826fi
feec80c3 10827
755320b0
C
10828elif test "x$OCAMLPROF" = xocamllex -a "xOCAMLPROF" = xOCAMLLEX; then :
10829 # checking for ocamllex
10830 if test -n "$ac_tool_prefix"; then
10831 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
10832set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834$as_echo_n "checking for $ac_word... " >&6; }
10835if ${ac_cv_path_OCAMLLEX+:} false; then :
10836 $as_echo_n "(cached) " >&6
feec80c3 10837else
755320b0
C
10838 case $OCAMLLEX in
10839 [\\/]* | ?:[\\/]*)
10840 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
10841 ;;
10842 *)
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844for as_dir in $PATH
10845do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10853 fi
10854done
10855 done
10856IFS=$as_save_IFS
feec80c3 10857
755320b0
C
10858 ;;
10859esac
feec80c3 10860fi
755320b0
C
10861OCAMLLEX=$ac_cv_path_OCAMLLEX
10862if test -n "$OCAMLLEX"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
10864$as_echo "$OCAMLLEX" >&6; }
10865else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867$as_echo "no" >&6; }
feec80c3
C
10868fi
10869
10870
feec80c3 10871fi
755320b0
C
10872if test -z "$ac_cv_path_OCAMLLEX"; then
10873 ac_pt_OCAMLLEX=$OCAMLLEX
10874 # Extract the first word of "ocamllex", so it can be a program name with args.
10875set dummy ocamllex; ac_word=$2
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877$as_echo_n "checking for $ac_word... " >&6; }
10878if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
10879 $as_echo_n "(cached) " >&6
feec80c3 10880else
755320b0
C
10881 case $ac_pt_OCAMLLEX in
10882 [\\/]* | ?:[\\/]*)
10883 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
10884 ;;
10885 *)
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897done
10898 done
10899IFS=$as_save_IFS
feec80c3 10900
755320b0
C
10901 ;;
10902esac
feec80c3 10903fi
755320b0
C
10904ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
10905if test -n "$ac_pt_OCAMLLEX"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
10907$as_echo "$ac_pt_OCAMLLEX" >&6; }
10908else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910$as_echo "no" >&6; }
feec80c3
C
10911fi
10912
755320b0
C
10913 if test "x$ac_pt_OCAMLLEX" = x; then
10914 OCAMLLEX="no"
10915 else
10916 case $cross_compiling:$ac_tool_warned in
10917yes:)
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10920ac_tool_warned=yes ;;
10921esac
10922 OCAMLLEX=$ac_pt_OCAMLLEX
10923 fi
10924else
10925 OCAMLLEX="$ac_cv_path_OCAMLLEX"
10926fi
10927
10928 if test "$OCAMLLEX" != "no"; then
10929 if test -n "$ac_tool_prefix"; then
10930 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
10931set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
10932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933$as_echo_n "checking for $ac_word... " >&6; }
10934if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
10935 $as_echo_n "(cached) " >&6
10936else
10937 case $OCAMLLEXDOTOPT in
10938 [\\/]* | ?:[\\/]*)
10939 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
10940 ;;
10941 *)
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943for as_dir in $PATH
10944do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953done
10954 done
10955IFS=$as_save_IFS
10956
10957 ;;
10958esac
10959fi
10960OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
10961if test -n "$OCAMLLEXDOTOPT"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
10963$as_echo "$OCAMLLEXDOTOPT" >&6; }
10964else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
10967fi
10968
10969
10970fi
10971if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
10972 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
10973 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
10974set dummy ocamllex.opt; ac_word=$2
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976$as_echo_n "checking for $ac_word... " >&6; }
10977if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
10978 $as_echo_n "(cached) " >&6
10979else
10980 case $ac_pt_OCAMLLEXDOTOPT in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
10983 ;;
10984 *)
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986for as_dir in $PATH
10987do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10992 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10995 fi
10996done
10997 done
10998IFS=$as_save_IFS
10999
11000 ;;
11001esac
11002fi
11003ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
11004if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
11006$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
11007else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009$as_echo "no" >&6; }
11010fi
11011
11012 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
11013 OCAMLLEXDOTOPT="no"
11014 else
11015 case $cross_compiling:$ac_tool_warned in
11016yes:)
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11019ac_tool_warned=yes ;;
11020esac
11021 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
11022 fi
11023else
11024 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
11025fi
11026
11027 if test "$OCAMLLEXDOTOPT" != "no"; then
11028 OCAMLLEX=$OCAMLLEXDOTOPT
11029 fi
11030 fi
11031
11032
11033
11034elif test "x$OCAMLPROF" = xocamlyacc -a "xOCAMLPROF" = xOCAMLYACC; then :
11035 if test -n "$ac_tool_prefix"; then
11036 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
11037set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039$as_echo_n "checking for $ac_word... " >&6; }
11040if ${ac_cv_path_OCAMLYACC+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042else
11043 case $OCAMLYACC in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
11046 ;;
11047 *)
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049for as_dir in $PATH
11050do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11055 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059done
11060 done
11061IFS=$as_save_IFS
11062
11063 ;;
11064esac
11065fi
11066OCAMLYACC=$ac_cv_path_OCAMLYACC
11067if test -n "$OCAMLYACC"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
11069$as_echo "$OCAMLYACC" >&6; }
11070else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072$as_echo "no" >&6; }
11073fi
11074
11075
11076fi
11077if test -z "$ac_cv_path_OCAMLYACC"; then
11078 ac_pt_OCAMLYACC=$OCAMLYACC
11079 # Extract the first word of "ocamlyacc", so it can be a program name with args.
11080set dummy ocamlyacc; ac_word=$2
11081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082$as_echo_n "checking for $ac_word... " >&6; }
11083if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
11084 $as_echo_n "(cached) " >&6
11085else
11086 case $ac_pt_OCAMLYACC in
11087 [\\/]* | ?:[\\/]*)
11088 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
11089 ;;
11090 *)
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092for as_dir in $PATH
11093do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11100 break 2
11101 fi
11102done
11103 done
11104IFS=$as_save_IFS
11105
11106 ;;
11107esac
11108fi
11109ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
11110if test -n "$ac_pt_OCAMLYACC"; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
11112$as_echo "$ac_pt_OCAMLYACC" >&6; }
11113else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115$as_echo "no" >&6; }
11116fi
11117
11118 if test "x$ac_pt_OCAMLYACC" = x; then
11119 OCAMLYACC="no"
11120 else
11121 case $cross_compiling:$ac_tool_warned in
11122yes:)
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11125ac_tool_warned=yes ;;
11126esac
11127 OCAMLYACC=$ac_pt_OCAMLYACC
11128 fi
11129else
11130 OCAMLYACC="$ac_cv_path_OCAMLYACC"
11131fi
11132
11133
11134
11135
11136else
11137 if test -n "$ac_tool_prefix"; then
11138 # Extract the first word of "${ac_tool_prefix}[$]OCAMLPROF", so it can be a program name with args.
11139set dummy ${ac_tool_prefix}$OCAMLPROF; ac_word=$2
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141$as_echo_n "checking for $ac_word... " >&6; }
11142if ${ac_cv_path_OCAMLPROF+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144else
11145 case $OCAMLPROF in
11146 [\\/]* | ?:[\\/]*)
11147 ac_cv_path_OCAMLPROF="$OCAMLPROF" # Let the user override the test with a path.
11148 ;;
11149 *)
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151for as_dir in $PATH
11152do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11157 ac_cv_path_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 break 2
11160 fi
11161done
11162 done
11163IFS=$as_save_IFS
11164
11165 ;;
11166esac
11167fi
11168OCAMLPROF=$ac_cv_path_OCAMLPROF
11169if test -n "$OCAMLPROF"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLPROF" >&5
11171$as_echo "$OCAMLPROF" >&6; }
11172else
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174$as_echo "no" >&6; }
11175fi
11176
11177
11178fi
11179if test -z "$ac_cv_path_OCAMLPROF"; then
11180 ac_pt_OCAMLPROF=$OCAMLPROF
11181 # Extract the first word of "[$]OCAMLPROF", so it can be a program name with args.
11182set dummy $OCAMLPROF; ac_word=$2
11183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184$as_echo_n "checking for $ac_word... " >&6; }
11185if ${ac_cv_path_ac_pt_OCAMLPROF+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187else
11188 case $ac_pt_OCAMLPROF in
11189 [\\/]* | ?:[\\/]*)
11190 ac_cv_path_ac_pt_OCAMLPROF="$ac_pt_OCAMLPROF" # Let the user override the test with a path.
11191 ;;
11192 *)
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194for as_dir in $PATH
11195do
11196 IFS=$as_save_IFS
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_path_ac_pt_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11202 break 2
11203 fi
11204done
11205 done
11206IFS=$as_save_IFS
11207
11208 ;;
11209esac
11210fi
11211ac_pt_OCAMLPROF=$ac_cv_path_ac_pt_OCAMLPROF
11212if test -n "$ac_pt_OCAMLPROF"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLPROF" >&5
11214$as_echo "$ac_pt_OCAMLPROF" >&6; }
11215else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217$as_echo "no" >&6; }
11218fi
11219
11220 if test "x$ac_pt_OCAMLPROF" = x; then
11221 OCAMLPROF=""
11222 else
11223 case $cross_compiling:$ac_tool_warned in
11224yes:)
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11227ac_tool_warned=yes ;;
11228esac
11229 OCAMLPROF=$ac_pt_OCAMLPROF
11230 fi
11231else
11232 OCAMLPROF="$ac_cv_path_OCAMLPROF"
11233fi
11234
11235
11236fi
11237
11238
11239fi
11240
11241 if test -z "$OCAMLPROF" -o "x$OCAMLPROF" = xno; then :
11242 if test "x$with_OCAMLPROF" = xyes; then :
11243 as_fn_error $? "--with=ocamlprof is given explicitly but not found" "$LINENO" 5
11244
11245fi
11246
11247 if test -n ""; then :
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: ocamlprof not found. Trying substitute ." >&5
11249$as_echo "$as_me: ocamlprof not found. Trying substitute ." >&6;}
11250 OCAMLPROF=""
11251
11252 if test "xocamlprof" = xpkg-config -a "xOCAMLPROF" = xPKG_CONFIG; then :
11253
11254
abad11c5
C
11255
11256
11257
11258
11259
755320b0
C
11260if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11261 if test -n "$ac_tool_prefix"; then
11262 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11263set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265$as_echo_n "checking for $ac_word... " >&6; }
11266if ${ac_cv_path_PKG_CONFIG+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268else
11269 case $PKG_CONFIG in
11270 [\\/]* | ?:[\\/]*)
11271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11272 ;;
11273 *)
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285done
11286 done
11287IFS=$as_save_IFS
11288
11289 ;;
11290esac
11291fi
11292PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11293if test -n "$PKG_CONFIG"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11295$as_echo "$PKG_CONFIG" >&6; }
11296else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298$as_echo "no" >&6; }
11299fi
11300
11301
11302fi
11303if test -z "$ac_cv_path_PKG_CONFIG"; then
11304 ac_pt_PKG_CONFIG=$PKG_CONFIG
11305 # Extract the first word of "pkg-config", so it can be a program name with args.
11306set dummy pkg-config; ac_word=$2
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308$as_echo_n "checking for $ac_word... " >&6; }
11309if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311else
11312 case $ac_pt_PKG_CONFIG in
11313 [\\/]* | ?:[\\/]*)
11314 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11315 ;;
11316 *)
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318for as_dir in $PATH
11319do
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11327 fi
11328done
11329 done
11330IFS=$as_save_IFS
11331
11332 ;;
11333esac
11334fi
11335ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11336if test -n "$ac_pt_PKG_CONFIG"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11338$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11339else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341$as_echo "no" >&6; }
11342fi
11343
11344 if test "x$ac_pt_PKG_CONFIG" = x; then
11345 PKG_CONFIG=""
11346 else
11347 case $cross_compiling:$ac_tool_warned in
11348yes:)
11349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11351ac_tool_warned=yes ;;
11352esac
11353 PKG_CONFIG=$ac_pt_PKG_CONFIG
11354 fi
11355else
11356 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11357fi
11358
11359fi
11360if test -n "$PKG_CONFIG"; then
11361 _pkg_min_version=0.9.0
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11363$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11364 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11366$as_echo "yes" >&6; }
11367 else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
11370 PKG_CONFIG=""
11371 fi
755320b0
C
11372fi
11373
11374elif test "xocamlprof" = xocamllex -a "xOCAMLPROF" = xOCAMLLEX; then :
11375 # checking for ocamllex
11376 if test -n "$ac_tool_prefix"; then
11377 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
11378set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380$as_echo_n "checking for $ac_word... " >&6; }
11381if ${ac_cv_path_OCAMLLEX+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383else
11384 case $OCAMLLEX in
11385 [\\/]* | ?:[\\/]*)
11386 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
11387 ;;
11388 *)
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390for as_dir in $PATH
11391do
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11396 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11399 fi
11400done
11401 done
11402IFS=$as_save_IFS
11403
11404 ;;
11405esac
11406fi
11407OCAMLLEX=$ac_cv_path_OCAMLLEX
11408if test -n "$OCAMLLEX"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
11410$as_echo "$OCAMLLEX" >&6; }
11411else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
11414fi
11415
11416
11417fi
11418if test -z "$ac_cv_path_OCAMLLEX"; then
11419 ac_pt_OCAMLLEX=$OCAMLLEX
11420 # Extract the first word of "ocamllex", so it can be a program name with args.
11421set dummy ocamllex; ac_word=$2
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
11424if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426else
11427 case $ac_pt_OCAMLLEX in
11428 [\\/]* | ?:[\\/]*)
11429 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
11430 ;;
11431 *)
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH
11434do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11439 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 break 2
11442 fi
11443done
11444 done
11445IFS=$as_save_IFS
11446
11447 ;;
11448esac
11449fi
11450ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
11451if test -n "$ac_pt_OCAMLLEX"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
11453$as_echo "$ac_pt_OCAMLLEX" >&6; }
11454else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
11457fi
11458
11459 if test "x$ac_pt_OCAMLLEX" = x; then
11460 OCAMLLEX="no"
11461 else
11462 case $cross_compiling:$ac_tool_warned in
11463yes:)
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11466ac_tool_warned=yes ;;
11467esac
11468 OCAMLLEX=$ac_pt_OCAMLLEX
11469 fi
11470else
11471 OCAMLLEX="$ac_cv_path_OCAMLLEX"
11472fi
11473
11474 if test "$OCAMLLEX" != "no"; then
11475 if test -n "$ac_tool_prefix"; then
11476 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
11477set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479$as_echo_n "checking for $ac_word... " >&6; }
11480if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482else
11483 case $OCAMLLEXDOTOPT in
11484 [\\/]* | ?:[\\/]*)
11485 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
11486 ;;
11487 *)
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489for as_dir in $PATH
11490do
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11495 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11498 fi
11499done
11500 done
11501IFS=$as_save_IFS
11502
11503 ;;
11504esac
11505fi
11506OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
11507if test -n "$OCAMLLEXDOTOPT"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
11509$as_echo "$OCAMLLEXDOTOPT" >&6; }
11510else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512$as_echo "no" >&6; }
11513fi
11514
11515
11516fi
11517if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
11518 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
11519 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
11520set dummy ocamllex.opt; ac_word=$2
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522$as_echo_n "checking for $ac_word... " >&6; }
11523if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525else
11526 case $ac_pt_OCAMLLEXDOTOPT in
11527 [\\/]* | ?:[\\/]*)
11528 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
11529 ;;
11530 *)
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532for as_dir in $PATH
11533do
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11538 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11541 fi
11542done
11543 done
11544IFS=$as_save_IFS
11545
11546 ;;
11547esac
11548fi
11549ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
11550if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
11552$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
11553else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555$as_echo "no" >&6; }
11556fi
11557
11558 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
11559 OCAMLLEXDOTOPT="no"
11560 else
11561 case $cross_compiling:$ac_tool_warned in
11562yes:)
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11565ac_tool_warned=yes ;;
11566esac
11567 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
11568 fi
11569else
11570 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
11571fi
11572
11573 if test "$OCAMLLEXDOTOPT" != "no"; then
11574 OCAMLLEX=$OCAMLLEXDOTOPT
11575 fi
11576 fi
11577
11578
11579
11580elif test "xocamlprof" = xocamlyacc -a "xOCAMLPROF" = xOCAMLYACC; then :
11581 if test -n "$ac_tool_prefix"; then
11582 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
11583set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585$as_echo_n "checking for $ac_word... " >&6; }
11586if ${ac_cv_path_OCAMLYACC+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588else
11589 case $OCAMLYACC in
11590 [\\/]* | ?:[\\/]*)
11591 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
11592 ;;
11593 *)
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595for as_dir in $PATH
11596do
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11604 fi
11605done
11606 done
11607IFS=$as_save_IFS
11608
11609 ;;
11610esac
11611fi
11612OCAMLYACC=$ac_cv_path_OCAMLYACC
11613if test -n "$OCAMLYACC"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
11615$as_echo "$OCAMLYACC" >&6; }
11616else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618$as_echo "no" >&6; }
11619fi
11620
11621
11622fi
11623if test -z "$ac_cv_path_OCAMLYACC"; then
11624 ac_pt_OCAMLYACC=$OCAMLYACC
11625 # Extract the first word of "ocamlyacc", so it can be a program name with args.
11626set dummy ocamlyacc; ac_word=$2
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
11630 $as_echo_n "(cached) " >&6
11631else
11632 case $ac_pt_OCAMLYACC in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
11635 ;;
11636 *)
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $PATH
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11644 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646 break 2
11647 fi
11648done
11649 done
11650IFS=$as_save_IFS
11651
11652 ;;
11653esac
11654fi
11655ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
11656if test -n "$ac_pt_OCAMLYACC"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
11658$as_echo "$ac_pt_OCAMLYACC" >&6; }
11659else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
11662fi
11663
11664 if test "x$ac_pt_OCAMLYACC" = x; then
11665 OCAMLYACC="no"
11666 else
11667 case $cross_compiling:$ac_tool_warned in
11668yes:)
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11671ac_tool_warned=yes ;;
11672esac
11673 OCAMLYACC=$ac_pt_OCAMLYACC
11674 fi
11675else
11676 OCAMLYACC="$ac_cv_path_OCAMLYACC"
11677fi
11678
11679
11680
11681
11682else
11683 if test -n "$ac_tool_prefix"; then
11684 # Extract the first word of "${ac_tool_prefix}ocamlprof", so it can be a program name with args.
11685set dummy ${ac_tool_prefix}ocamlprof; ac_word=$2
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687$as_echo_n "checking for $ac_word... " >&6; }
11688if ${ac_cv_path_OCAMLPROF+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690else
11691 case $OCAMLPROF in
11692 [\\/]* | ?:[\\/]*)
11693 ac_cv_path_OCAMLPROF="$OCAMLPROF" # Let the user override the test with a path.
11694 ;;
11695 *)
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11703 ac_cv_path_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707done
11708 done
11709IFS=$as_save_IFS
11710
11711 ;;
11712esac
11713fi
11714OCAMLPROF=$ac_cv_path_OCAMLPROF
11715if test -n "$OCAMLPROF"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLPROF" >&5
11717$as_echo "$OCAMLPROF" >&6; }
11718else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720$as_echo "no" >&6; }
11721fi
11722
11723
11724fi
11725if test -z "$ac_cv_path_OCAMLPROF"; then
11726 ac_pt_OCAMLPROF=$OCAMLPROF
11727 # Extract the first word of "ocamlprof", so it can be a program name with args.
11728set dummy ocamlprof; ac_word=$2
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730$as_echo_n "checking for $ac_word... " >&6; }
11731if ${ac_cv_path_ac_pt_OCAMLPROF+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733else
11734 case $ac_pt_OCAMLPROF in
11735 [\\/]* | ?:[\\/]*)
11736 ac_cv_path_ac_pt_OCAMLPROF="$ac_pt_OCAMLPROF" # Let the user override the test with a path.
11737 ;;
11738 *)
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740for as_dir in $PATH
11741do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746 ac_cv_path_ac_pt_OCAMLPROF="$as_dir/$ac_word$ac_exec_ext"
11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 break 2
11749 fi
11750done
11751 done
11752IFS=$as_save_IFS
feec80c3 11753
755320b0
C
11754 ;;
11755esac
11756fi
11757ac_pt_OCAMLPROF=$ac_cv_path_ac_pt_OCAMLPROF
11758if test -n "$ac_pt_OCAMLPROF"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLPROF" >&5
11760$as_echo "$ac_pt_OCAMLPROF" >&6; }
11761else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
feec80c3
C
11764fi
11765
755320b0
C
11766 if test "x$ac_pt_OCAMLPROF" = x; then
11767 OCAMLPROF=""
11768 else
11769 case $cross_compiling:$ac_tool_warned in
11770yes:)
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773ac_tool_warned=yes ;;
11774esac
11775 OCAMLPROF=$ac_pt_OCAMLPROF
11776 fi
11777else
11778 OCAMLPROF="$ac_cv_path_OCAMLPROF"
11779fi
feec80c3 11780
feec80c3 11781
755320b0 11782fi
feec80c3 11783
755320b0
C
11784 SUBSTITUTED_OCAMLPROF=yes
11785
11786
11787fi
11788
11789fi
11790
11791 if test -z "$OCAMLPROF"; then :
11792 OCAMLPROF=no
11793
11794fi
11795
11796
11797if test "x$OCAMLLEX" = xno; then :
11798 as_fn_error $? "the OCaml Lexer needs to be installed (the ocamllex command). It should be part of your OCaml distribution." "$LINENO" 5
11799
11800fi
11801
11802if test "x$OCAMLYACC" = xno; then :
11803 as_fn_error $? "The OCaml parser generated needs to be installed (the ocamlyacc command). It should be part of your OCaml distribution." "$LINENO" 5
11804
11805fi
11806
11807if test "x$OCAMLFIND" = xno; then :
11808 as_fn_error $? "A suitable OCaml findlib (the ocamlfind command) could not be found." "$LINENO" 5
11809
11810fi
11811
11812
11813
11814# Check whether --with-runtime-ocamlfind was given.
11815if test "${with_runtime_ocamlfind+set}" = set; then :
11816 withval=$with_runtime_ocamlfind;
11817fi
11818
11819
11820 if test -z "$RUNTIME_OCAMLFIND_CMD"; then :
11821 if test "x$with_runtime_ocamlfind" = xno; then :
11822 RUNTIME_OCAMLFIND_CMD=$OCAMLFIND
11823
11824
11825elif test -n "$with_runtime_ocamlfind" -a "x$with_runtime_ocamlfind" != xyes; then :
11826 RUNTIME_OCAMLFIND_CMD="$with_runtime_ocamlfind"
feec80c3
C
11827
11828
11829else
755320b0 11830 RUNTIME_OCAMLFIND_CMD="ocamlfind"
feec80c3
C
11831
11832
11833fi
11834
11835fi
11836
11837
11838
755320b0
C
11839# Check whether --with-runtime-ocamlc was given.
11840if test "${with_runtime_ocamlc+set}" = set; then :
11841 withval=$with_runtime_ocamlc;
feec80c3
C
11842fi
11843
11844
755320b0
C
11845 if test -z "$RUNTIME_OCAMLC_CMD"; then :
11846 if test "x$with_runtime_ocamlc" = xno; then :
11847 RUNTIME_OCAMLC_CMD=$OCAMLC
feec80c3
C
11848
11849
755320b0
C
11850elif test -n "$with_runtime_ocamlc" -a "x$with_runtime_ocamlc" != xyes; then :
11851 RUNTIME_OCAMLC_CMD="$with_runtime_ocamlc"
feec80c3
C
11852
11853
11854else
755320b0 11855 RUNTIME_OCAMLC_CMD="ocamlc"
feec80c3
C
11856
11857
11858fi
11859
11860fi
11861
11862
feec80c3 11863
755320b0
C
11864# Check whether --with-runtime-ocamlopt was given.
11865if test "${with_runtime_ocamlopt+set}" = set; then :
11866 withval=$with_runtime_ocamlopt;
11867fi
11868
11869
11870 if test -z "$RUNTIME_OCAMLOPT_CMD"; then :
11871 if test "x$with_runtime_ocamlopt" = xno; then :
11872 RUNTIME_OCAMLOPT_CMD=$OCAMLOPT
11873
11874
11875elif test -n "$with_runtime_ocamlopt" -a "x$with_runtime_ocamlopt" != xyes; then :
11876 RUNTIME_OCAMLOPT_CMD="$with_runtime_ocamlopt"
11877
11878
11879else
11880 RUNTIME_OCAMLOPT_CMD="ocamlopt"
feec80c3 11881
feec80c3 11882
feec80c3 11883fi
feec80c3 11884
755320b0
C
11885fi
11886
11887
11888
11889# Check whether --with-runtime-ocamldep was given.
11890if test "${with_runtime_ocamldep+set}" = set; then :
11891 withval=$with_runtime_ocamldep;
11892fi
11893
11894
11895 if test -z "$RUNTIME_OCAMLDEP_CMD"; then :
11896 if test "x$with_runtime_ocamldep" = xno; then :
11897 RUNTIME_OCAMLDEP_CMD=$OCAMLDEP
11898
11899
11900elif test -n "$with_runtime_ocamldep" -a "x$with_runtime_ocamldep" != xyes; then :
11901 RUNTIME_OCAMLDEP_CMD="$with_runtime_ocamldep"
11902
11903
11904else
11905 RUNTIME_OCAMLDEP_CMD="ocamldep"
11906
11907
11908fi
11909
11910fi
11911
11912
11913
11914# Check whether --with-runtime-camlp4 was given.
11915if test "${with_runtime_camlp4+set}" = set; then :
11916 withval=$with_runtime_camlp4;
11917fi
11918
11919
11920 if test -z "$RUNTIME_CAMLP4_CMD"; then :
11921 if test "x$with_runtime_camlp4" = xno; then :
11922 RUNTIME_CAMLP4_CMD=$CAMLP4
11923
11924
11925elif test -n "$with_runtime_camlp4" -a "x$with_runtime_camlp4" != xyes; then :
11926 RUNTIME_CAMLP4_CMD="$with_runtime_camlp4"
11927
11928
11929else
11930 RUNTIME_CAMLP4_CMD="camlp4"
11931
11932
11933fi
11934
11935fi
11936
11937
11938
11939# Check whether --with-runtime-camlp4o was given.
11940if test "${with_runtime_camlp4o+set}" = set; then :
11941 withval=$with_runtime_camlp4o;
11942fi
11943
11944
11945 if test -z "$RUNTIME_CAMLP4O_CMD"; then :
11946 if test "x$with_runtime_camlp4o" = xno; then :
11947 RUNTIME_CAMLP4O_CMD=$CAMLP4O
11948
11949
11950elif test -n "$with_runtime_camlp4o" -a "x$with_runtime_camlp4o" != xyes; then :
11951 RUNTIME_CAMLP4O_CMD="$with_runtime_camlp4o"
feec80c3
C
11952
11953
755320b0
C
11954else
11955 RUNTIME_CAMLP4O_CMD="camlp4o"
feec80c3
C
11956
11957
755320b0 11958fi
feec80c3 11959
755320b0 11960fi
feec80c3
C
11961
11962
feec80c3 11963
feec80c3 11964
feec80c3 11965
755320b0
C
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying basic ocaml modules" >&5
11967$as_echo "$as_me: verifying basic ocaml modules" >&6;}
11968
feec80c3 11969
755320b0 11970 COCCI_OCAML_EXTERNAL="$COCCI_SRCDIR/bundles"
feec80c3 11971
755320b0
C
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&5
11973$as_echo "$as_me: coccinelle may use external ocaml libraries in $COCCI_OCAML_EXTERNAL" >&6;}
feec80c3
C
11974
11975
11976 FEATURE_menhirLib=0
11977
11978 LOCALLIB_menhirLib=0
11979
11980 FLAGS_menhirLib=
11981
11982 MODULES_menhirLib=
11983
11984 MODULESOPT_menhirLib=
11985
11986 PATH_menhirLib=
11987
11988
feec80c3
C
11989 FEATURE_dynlink=0
11990
11991 LOCALLIB_dynlink=0
11992
11993 FLAGS_dynlink=
11994
11995 MODULES_dynlink=
11996
11997 MODULESOPT_dynlink=
11998
11999 PATH_dynlink=
12000
12001
12002 FEATURE_pcre=0
12003
12004 LOCALLIB_pcre=0
12005
12006 FLAGS_pcre=
12007
12008 MODULES_pcre=
12009
12010 MODULESOPT_pcre=
12011
12012 PATH_pcre=
12013
12014
12015 FEATURE_pycaml=0
12016
12017 LOCALLIB_pycaml=0
12018
12019 FLAGS_pycaml=
12020
12021 MODULES_pycaml=
12022
12023 MODULESOPT_pycaml=
12024
12025 PATH_pycaml=
12026
12027
12028 FEATURE_camlp4=0
12029
12030 LOCALLIB_camlp4=0
12031
12032 FLAGS_camlp4=
12033
12034 MODULES_camlp4=
12035
12036 MODULESOPT_camlp4=
12037
12038 PATH_camlp4=
12039
12040
12041
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: the following OCaml packages should be provided by your ocaml installation" >&5
12043$as_echo "$as_me: the following OCaml packages should be provided by your ocaml installation" >&6;}
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package unix" >&5
12046$as_echo_n "checking for OCaml findlib package unix... " >&6; }
12047
12048 unset found
12049 unset pkg
12050 found=no
12051 for pkg in unix ; do
12052 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12054$as_echo "found" >&6; }
12055 OCAML_PKG_unix=$pkg
12056 found=yes
12057 break
12058 fi
12059 done
12060 if test "$found" = "no" ; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12062$as_echo "not found" >&6; }
12063 OCAML_PKG_unix=no
12064 fi
12065
12066
12067
12068 if test "x$OCAML_PKG_unix" != xno; then :
12069 PATH_unix=`$OCAMLFIND query unix 2>/dev/null`
12070
12071
12072fi
12073
12074 if test "x$OCAML_PKG_unix" = xno; then :
12075 as_fn_error $? "package unix is required. It should be part of your ocaml installation." "$LINENO" 5
12076
12077fi
12078
12079
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package bigarray" >&5
12081$as_echo_n "checking for OCaml findlib package bigarray... " >&6; }
12082
12083 unset found
12084 unset pkg
12085 found=no
12086 for pkg in bigarray ; do
12087 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12089$as_echo "found" >&6; }
12090 OCAML_PKG_bigarray=$pkg
12091 found=yes
12092 break
12093 fi
12094 done
12095 if test "$found" = "no" ; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12097$as_echo "not found" >&6; }
12098 OCAML_PKG_bigarray=no
12099 fi
12100
12101
12102
12103 if test "x$OCAML_PKG_bigarray" != xno; then :
12104 PATH_bigarray=`$OCAMLFIND query bigarray 2>/dev/null`
12105
12106
12107fi
12108
12109 if test "x$OCAML_PKG_bigarray" = xno; then :
12110 as_fn_error $? "package bigarray is required. It should be part of your ocaml installation." "$LINENO" 5
12111
12112fi
12113
12114
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package num" >&5
12116$as_echo_n "checking for OCaml findlib package num... " >&6; }
12117
12118 unset found
12119 unset pkg
12120 found=no
12121 for pkg in num ; do
12122 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12124$as_echo "found" >&6; }
12125 OCAML_PKG_num=$pkg
12126 found=yes
12127 break
12128 fi
12129 done
12130 if test "$found" = "no" ; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12132$as_echo "not found" >&6; }
12133 OCAML_PKG_num=no
12134 fi
12135
12136
12137
12138 if test "x$OCAML_PKG_num" != xno; then :
12139 PATH_num=`$OCAMLFIND query num 2>/dev/null`
12140
12141
12142fi
12143
12144 if test "x$OCAML_PKG_num" = xno; then :
12145 as_fn_error $? "package num is required. It should be part of your ocaml installation." "$LINENO" 5
12146
12147fi
12148
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package str" >&5
12151$as_echo_n "checking for OCaml findlib package str... " >&6; }
12152
12153 unset found
12154 unset pkg
12155 found=no
12156 for pkg in str ; do
12157 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12159$as_echo "found" >&6; }
12160 OCAML_PKG_str=$pkg
12161 found=yes
12162 break
12163 fi
12164 done
12165 if test "$found" = "no" ; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12167$as_echo "not found" >&6; }
12168 OCAML_PKG_str=no
12169 fi
12170
12171
12172
12173 if test "x$OCAML_PKG_str" != xno; then :
12174 PATH_str=`$OCAMLFIND query str 2>/dev/null`
12175
12176
12177fi
12178
12179 if test "x$OCAML_PKG_str" = xno; then :
12180 as_fn_error $? "package str is required. It should be part of your ocaml installation." "$LINENO" 5
12181
12182fi
12183
12184
feec80c3
C
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package dynlink" >&5
12186$as_echo "$as_me: configuring package dynlink" >&6;}
12187 # Check whether --enable-dynlink was given.
12188if test "${enable_dynlink+set}" = set; then :
12189 enableval=$enable_dynlink;
12190fi
12191
12192
12193 if test "x$enable_dynlink" != xno; then :
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package dynlink" >&5
12196$as_echo_n "checking for OCaml findlib package dynlink... " >&6; }
12197
12198 unset found
12199 unset pkg
12200 found=no
12201 for pkg in dynlink ; do
12202 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12204$as_echo "found" >&6; }
12205 OCAML_PKG_dynlink=$pkg
12206 found=yes
12207 break
12208 fi
12209 done
12210 if test "$found" = "no" ; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12212$as_echo "not found" >&6; }
12213 OCAML_PKG_dynlink=no
12214 fi
12215
12216
12217
12218 if test "x$OCAML_PKG_dynlink" != xno; then :
12219 PATH_dynlink=`$OCAMLFIND query dynlink 2>/dev/null`
12220
12221
12222fi
12223
12224 GLOBAL_dynlink=$OCAML_PKG_dynlink
12225
12226
12227 if test "x$GLOBAL_dynlink" != xno; then :
12228 enable_dynlink=yes
12229
12230
12231else
12232 if test "x$enable_dynlink" = xyes; then :
12233 as_fn_error $? "OCaml package dynlink is not available but requested explicitly" "$LINENO" 5
12234
12235fi
d6ce1786
C
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package dynlink is not available" >&5
12237$as_echo "$as_me: OCaml package dynlink is not available" >&6;}
feec80c3
C
12238 enable_dynlink=no
12239
12240
12241fi
12242
12243fi
12244
12245 if test "x$enable_dynlink" = xno; then :
12246 { pkgdir=; unset pkgdir;}
12247 pkgdir="$COCCI_OCAML_EXTERNAL/dynlink/"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of dynlink" >&5
12249$as_echo_n "checking for a bundled substitute of dynlink... " >&6; }
12250 if test -d "$pkgdir"; then :
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12252$as_echo "yes" >&6; }
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for dynlink in $pkgdir" >&5
12254$as_echo "$as_me: using bundled substitute for dynlink in $pkgdir" >&6;}
12255 enable_dynlink=local
12256
12257 PATH_dynlink="$pkgdir"
12258
12259
12260else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
12262$as_echo "not available" >&6; }
12263fi
12264
12265fi
12266
12267 if test "x$enable_dynlink" != xno; then :
12268 FEATURE_dynlink=1
12269
12270 FLAGS_dynlink='$(FLAGS_dynlink)'
12271
d6ce1786
C
12272 OPTFLAGS_dynlink='$(OPTFLAGS_dynlink)'
12273
feec80c3
C
12274
12275 if test "x$enable_dynlink" = xlocal; then :
12276 LOCALLIB_dynlink=1
12277
12278 MODULES_dynlink='$(LOCAL_dynlink)'
12279
12280 MODULESOPT_dynlink='$(LOCALOPT_dynlink)'
12281
12282
12283 if test -f "$PATH_dynlink/Makefile"; then :
12284 MAKE_dynlink=$PATH_dynlink
12285
12286
12287else
12288 MAKE_dynlink=
12289
12290
12291fi
12292
12293else
12294 MODULES_dynlink='$(GLOBAL_dynlink)'
12295
12296 MODULESOPT_dynlink='$(GLOBALOPT_dynlink)'
12297
12298
12299fi
12300
12301fi
12302
12303 if test "x$enable_dynlink" = xno; then :
12304 as_fn_error $? "OCaml package dynlink is required. Please make sure it is available." "$LINENO" 5
12305
12306fi
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package camlp4" >&5
12309$as_echo "$as_me: configuring package camlp4" >&6;}
12310 # Check whether --enable-camlp4 was given.
12311if test "${enable_camlp4+set}" = set; then :
12312 enableval=$enable_camlp4;
12313fi
12314
12315
12316 if test "x$enable_camlp4" != xno; then :
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package camlp4" >&5
12319$as_echo_n "checking for OCaml findlib package camlp4... " >&6; }
12320
12321 unset found
12322 unset pkg
12323 found=no
12324 for pkg in camlp4 ; do
12325 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12327$as_echo "found" >&6; }
12328 OCAML_PKG_camlp4=$pkg
12329 found=yes
12330 break
12331 fi
12332 done
12333 if test "$found" = "no" ; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12335$as_echo "not found" >&6; }
12336 OCAML_PKG_camlp4=no
12337 fi
12338
12339
12340
12341 if test "x$OCAML_PKG_camlp4" != xno; then :
12342 PATH_camlp4=`$OCAMLFIND query camlp4 2>/dev/null`
12343
12344
12345fi
12346
12347 GLOBAL_camlp4=$OCAML_PKG_camlp4
12348
12349
12350 if test "x$GLOBAL_camlp4" != xno; then :
12351 enable_camlp4=yes
12352
12353
12354else
12355 if test "x$enable_camlp4" = xyes; then :
12356 as_fn_error $? "OCaml package camlp4 is not available but requested explicitly" "$LINENO" 5
12357
12358fi
d6ce1786
C
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package camlp4 is not available" >&5
12360$as_echo "$as_me: OCaml package camlp4 is not available" >&6;}
feec80c3
C
12361 enable_camlp4=no
12362
12363
12364fi
12365
12366fi
12367
12368 if test "x$enable_camlp4" = xno; then :
12369 { pkgdir=; unset pkgdir;}
12370 pkgdir="$COCCI_OCAML_EXTERNAL/camlp4/"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of camlp4" >&5
12372$as_echo_n "checking for a bundled substitute of camlp4... " >&6; }
12373 if test -d "$pkgdir"; then :
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12375$as_echo "yes" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for camlp4 in $pkgdir" >&5
12377$as_echo "$as_me: using bundled substitute for camlp4 in $pkgdir" >&6;}
12378 enable_camlp4=local
12379
12380 PATH_camlp4="$pkgdir"
12381
12382
12383else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
12385$as_echo "not available" >&6; }
12386fi
12387
12388fi
12389
12390 if test "x$enable_camlp4" != xno; then :
12391 FEATURE_camlp4=1
12392
755320b0 12393 FLAGS_camlp4='$(FLAGS_camlp4)'
feec80c3 12394
755320b0 12395 OPTFLAGS_camlp4='$(OPTFLAGS_camlp4)'
d6ce1786 12396
feec80c3 12397
755320b0
C
12398 if test "x$enable_camlp4" = xlocal; then :
12399 LOCALLIB_camlp4=1
feec80c3 12400
755320b0 12401 MODULES_camlp4='$(LOCAL_camlp4)'
feec80c3 12402
755320b0 12403 MODULESOPT_camlp4='$(LOCALOPT_camlp4)'
feec80c3
C
12404
12405
755320b0
C
12406 if test -f "$PATH_camlp4/Makefile"; then :
12407 MAKE_camlp4=$PATH_camlp4
feec80c3
C
12408
12409
12410else
755320b0 12411 MAKE_camlp4=
feec80c3
C
12412
12413
12414fi
12415
12416else
755320b0 12417 MODULES_camlp4='$(GLOBAL_camlp4)'
feec80c3 12418
755320b0 12419 MODULESOPT_camlp4='$(GLOBALOPT_camlp4)'
feec80c3
C
12420
12421
12422fi
12423
12424fi
12425
755320b0
C
12426 if test "x$enable_camlp4" = xno; then :
12427 as_fn_error $? "OCaml package camlp4 is required. Please make sure it is available." "$LINENO" 5
feec80c3
C
12428
12429fi
12430
755320b0
C
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package menhirLib" >&5
12432$as_echo "$as_me: configuring package menhirLib" >&6;}
12433 # Check whether --enable-menhirLib was given.
12434if test "${enable_menhirLib+set}" = set; then :
12435 enableval=$enable_menhirLib;
feec80c3
C
12436fi
12437
12438
755320b0 12439 if test "x$enable_menhirLib" != xno; then :
feec80c3 12440
755320b0
C
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package menhirLib" >&5
12442$as_echo_n "checking for OCaml findlib package menhirLib... " >&6; }
feec80c3
C
12443
12444 unset found
12445 unset pkg
12446 found=no
755320b0 12447 for pkg in menhirLib ; do
feec80c3
C
12448 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12450$as_echo "found" >&6; }
755320b0 12451 OCAML_PKG_menhirLib=$pkg
feec80c3
C
12452 found=yes
12453 break
12454 fi
12455 done
12456 if test "$found" = "no" ; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12458$as_echo "not found" >&6; }
755320b0 12459 OCAML_PKG_menhirLib=no
feec80c3
C
12460 fi
12461
12462
12463
755320b0
C
12464 if test "x$OCAML_PKG_menhirLib" != xno; then :
12465 PATH_menhirLib=`$OCAMLFIND query menhirLib 2>/dev/null`
feec80c3
C
12466
12467
12468fi
12469
755320b0 12470 GLOBAL_menhirLib=$OCAML_PKG_menhirLib
feec80c3
C
12471
12472
755320b0
C
12473 if test "x$GLOBAL_menhirLib" != xno; then :
12474 enable_menhirLib=yes
feec80c3
C
12475
12476
12477else
755320b0
C
12478 if test "x$enable_menhirLib" = xyes; then :
12479 as_fn_error $? "OCaml package menhirLib is not available but requested explicitly" "$LINENO" 5
feec80c3
C
12480
12481fi
755320b0
C
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package menhirLib is not available" >&5
12483$as_echo "$as_me: OCaml package menhirLib is not available" >&6;}
12484 enable_menhirLib=no
feec80c3
C
12485
12486
12487fi
12488
12489fi
12490
755320b0 12491 if test "x$enable_menhirLib" = xno; then :
feec80c3 12492 { pkgdir=; unset pkgdir;}
755320b0
C
12493 pkgdir="$COCCI_OCAML_EXTERNAL/menhirLib/"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of menhirLib" >&5
12495$as_echo_n "checking for a bundled substitute of menhirLib... " >&6; }
feec80c3
C
12496 if test -d "$pkgdir"; then :
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12498$as_echo "yes" >&6; }
755320b0
C
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for menhirLib in $pkgdir" >&5
12500$as_echo "$as_me: using bundled substitute for menhirLib in $pkgdir" >&6;}
12501 enable_menhirLib=local
feec80c3 12502
755320b0 12503 PATH_menhirLib="$pkgdir"
feec80c3
C
12504
12505
12506else
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
12508$as_echo "not available" >&6; }
12509fi
12510
12511fi
12512
755320b0
C
12513 if test "x$enable_menhirLib" != xno; then :
12514 FEATURE_menhirLib=1
feec80c3 12515
755320b0 12516 FLAGS_menhirLib='$(FLAGS_menhirLib)'
feec80c3 12517
755320b0 12518 OPTFLAGS_menhirLib='$(OPTFLAGS_menhirLib)'
d6ce1786 12519
feec80c3 12520
755320b0
C
12521 if test "x$enable_menhirLib" = xlocal; then :
12522 LOCALLIB_menhirLib=1
feec80c3 12523
755320b0 12524 MODULES_menhirLib='$(LOCAL_menhirLib)'
feec80c3 12525
755320b0 12526 MODULESOPT_menhirLib='$(LOCALOPT_menhirLib)'
feec80c3
C
12527
12528
755320b0
C
12529 if test -f "$PATH_menhirLib/Makefile"; then :
12530 MAKE_menhirLib=$PATH_menhirLib
feec80c3
C
12531
12532
12533else
755320b0 12534 MAKE_menhirLib=
feec80c3
C
12535
12536
12537fi
12538
12539else
755320b0 12540 MODULES_menhirLib='$(GLOBAL_menhirLib)'
feec80c3 12541
755320b0 12542 MODULESOPT_menhirLib='$(GLOBALOPT_menhirLib)'
feec80c3
C
12543
12544
12545fi
12546
12547fi
12548
755320b0
C
12549 if test "x$enable_menhirLib" = xno; then :
12550 as_fn_error $? "OCaml package menhirLib is required. Please make sure it is available." "$LINENO" 5
feec80c3
C
12551
12552fi
12553
12554
12555
feec80c3
C
12556
12557
12558
12559{ $as_echo "$as_me:${as_lineno-$LINENO}: verifying optional features" >&5
12560$as_echo "$as_me: verifying optional features" >&6;}
12561
d6ce1786
C
12562if test "x$OCAML_PKG_dynlink" != xno -a -f "$PATH_dynlink/dynlink.cmxa"; then :
12563 OPTIMIZED_dynlink=yes
12564
12565
12566else
12567 OPTIMIZED_dynlink=no
12568
12569
12570fi
12571
feec80c3
C
12572
12573
12574
12575# Check whether --with-menhir was given.
12576if test "${with_menhir+set}" = set; then :
12577 withval=$with_menhir;
12578fi
12579
12580 with_MENHIR="$with_menhir"
12581
feec80c3
C
12582 if test -n "$with_MENHIR" -a "x$with_MENHIR" != xno -a "x$with_MENHIR" != xyes; then :
12583 MENHIR="$with_MENHIR"
12584
12585
d6ce1786
C
12586else
12587 MENHIR="menhir"
12588
12589
feec80c3
C
12590fi
12591
d6ce1786
C
12592 if test "x$with_MENHIR" = xno; then :
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: menhir is disabled explicitly" >&5
12594$as_echo "$as_me: menhir is disabled explicitly" >&6;}
12595 MENHIR=no
12596
12597
12598else
12599 if test "x$MENHIR" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then :
feec80c3
C
12600
12601
abad11c5
C
12602
12603
12604
12605
12606
feec80c3
C
12607if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12608 if test -n "$ac_tool_prefix"; then
12609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12610set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612$as_echo_n "checking for $ac_word... " >&6; }
12613if ${ac_cv_path_PKG_CONFIG+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615else
12616 case $PKG_CONFIG in
12617 [\\/]* | ?:[\\/]*)
12618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12619 ;;
12620 *)
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622for as_dir in $PATH
12623do
12624 IFS=$as_save_IFS
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 break 2
12631 fi
12632done
12633 done
12634IFS=$as_save_IFS
12635
12636 ;;
12637esac
12638fi
12639PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12640if test -n "$PKG_CONFIG"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12642$as_echo "$PKG_CONFIG" >&6; }
12643else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645$as_echo "no" >&6; }
12646fi
12647
12648
12649fi
12650if test -z "$ac_cv_path_PKG_CONFIG"; then
12651 ac_pt_PKG_CONFIG=$PKG_CONFIG
12652 # Extract the first word of "pkg-config", so it can be a program name with args.
12653set dummy pkg-config; ac_word=$2
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655$as_echo_n "checking for $ac_word... " >&6; }
12656if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658else
12659 case $ac_pt_PKG_CONFIG in
12660 [\\/]* | ?:[\\/]*)
12661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12662 ;;
12663 *)
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665for as_dir in $PATH
12666do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12671 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12674 fi
12675done
12676 done
12677IFS=$as_save_IFS
12678
12679 ;;
12680esac
12681fi
12682ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12683if test -n "$ac_pt_PKG_CONFIG"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12685$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12686else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688$as_echo "no" >&6; }
12689fi
12690
12691 if test "x$ac_pt_PKG_CONFIG" = x; then
12692 PKG_CONFIG=""
12693 else
12694 case $cross_compiling:$ac_tool_warned in
12695yes:)
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12698ac_tool_warned=yes ;;
12699esac
12700 PKG_CONFIG=$ac_pt_PKG_CONFIG
12701 fi
12702else
12703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12704fi
12705
12706fi
12707if test -n "$PKG_CONFIG"; then
12708 _pkg_min_version=0.9.0
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12710$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12713$as_echo "yes" >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716$as_echo "no" >&6; }
12717 PKG_CONFIG=""
12718 fi
feec80c3
C
12719fi
12720
d6ce1786 12721elif test "x$MENHIR" = xocamllex -a "xMENHIR" = xOCAMLLEX; then :
feec80c3
C
12722 # checking for ocamllex
12723 if test -n "$ac_tool_prefix"; then
12724 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
12725set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
12728if ${ac_cv_path_OCAMLLEX+:} false; then :
12729 $as_echo_n "(cached) " >&6
12730else
12731 case $OCAMLLEX in
12732 [\\/]* | ?:[\\/]*)
12733 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
12734 ;;
12735 *)
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH
12738do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12743 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747done
12748 done
12749IFS=$as_save_IFS
12750
12751 ;;
12752esac
12753fi
12754OCAMLLEX=$ac_cv_path_OCAMLLEX
12755if test -n "$OCAMLLEX"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
12757$as_echo "$OCAMLLEX" >&6; }
12758else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761fi
12762
12763
12764fi
12765if test -z "$ac_cv_path_OCAMLLEX"; then
12766 ac_pt_OCAMLLEX=$OCAMLLEX
12767 # Extract the first word of "ocamllex", so it can be a program name with args.
12768set dummy ocamllex; ac_word=$2
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770$as_echo_n "checking for $ac_word... " >&6; }
12771if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773else
12774 case $ac_pt_OCAMLLEX in
12775 [\\/]* | ?:[\\/]*)
12776 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
12777 ;;
12778 *)
12779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12780for as_dir in $PATH
12781do
12782 IFS=$as_save_IFS
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12786 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 break 2
12789 fi
12790done
12791 done
12792IFS=$as_save_IFS
12793
12794 ;;
12795esac
12796fi
12797ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
12798if test -n "$ac_pt_OCAMLLEX"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
12800$as_echo "$ac_pt_OCAMLLEX" >&6; }
12801else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
12804fi
12805
12806 if test "x$ac_pt_OCAMLLEX" = x; then
12807 OCAMLLEX="no"
12808 else
12809 case $cross_compiling:$ac_tool_warned in
12810yes:)
12811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12813ac_tool_warned=yes ;;
12814esac
12815 OCAMLLEX=$ac_pt_OCAMLLEX
12816 fi
12817else
12818 OCAMLLEX="$ac_cv_path_OCAMLLEX"
12819fi
12820
12821 if test "$OCAMLLEX" != "no"; then
12822 if test -n "$ac_tool_prefix"; then
12823 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
12824set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826$as_echo_n "checking for $ac_word... " >&6; }
12827if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
12828 $as_echo_n "(cached) " >&6
12829else
12830 case $OCAMLLEXDOTOPT in
12831 [\\/]* | ?:[\\/]*)
12832 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
12833 ;;
12834 *)
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836for as_dir in $PATH
12837do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12842 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846done
12847 done
12848IFS=$as_save_IFS
12849
12850 ;;
12851esac
12852fi
12853OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
12854if test -n "$OCAMLLEXDOTOPT"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
12856$as_echo "$OCAMLLEXDOTOPT" >&6; }
12857else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859$as_echo "no" >&6; }
12860fi
12861
12862
12863fi
12864if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
12865 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
12866 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
12867set dummy ocamllex.opt; ac_word=$2
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869$as_echo_n "checking for $ac_word... " >&6; }
12870if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872else
12873 case $ac_pt_OCAMLLEXDOTOPT in
12874 [\\/]* | ?:[\\/]*)
12875 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
12876 ;;
12877 *)
12878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879for as_dir in $PATH
12880do
12881 IFS=$as_save_IFS
12882 test -z "$as_dir" && as_dir=.
12883 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12885 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
12886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 break 2
12888 fi
12889done
12890 done
12891IFS=$as_save_IFS
12892
12893 ;;
12894esac
12895fi
12896ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
12897if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
12899$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
12900else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902$as_echo "no" >&6; }
12903fi
12904
12905 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
12906 OCAMLLEXDOTOPT="no"
12907 else
12908 case $cross_compiling:$ac_tool_warned in
12909yes:)
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12912ac_tool_warned=yes ;;
12913esac
12914 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
12915 fi
12916else
12917 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
12918fi
12919
12920 if test "$OCAMLLEXDOTOPT" != "no"; then
12921 OCAMLLEX=$OCAMLLEXDOTOPT
12922 fi
12923 fi
12924
12925
12926
d6ce1786 12927elif test "x$MENHIR" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then :
feec80c3
C
12928 if test -n "$ac_tool_prefix"; then
12929 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
12930set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932$as_echo_n "checking for $ac_word... " >&6; }
12933if ${ac_cv_path_OCAMLYACC+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935else
12936 case $OCAMLYACC in
12937 [\\/]* | ?:[\\/]*)
12938 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
12939 ;;
12940 *)
12941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942for as_dir in $PATH
12943do
12944 IFS=$as_save_IFS
12945 test -z "$as_dir" && as_dir=.
12946 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12948 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 break 2
12951 fi
12952done
12953 done
12954IFS=$as_save_IFS
12955
12956 ;;
12957esac
12958fi
12959OCAMLYACC=$ac_cv_path_OCAMLYACC
12960if test -n "$OCAMLYACC"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
12962$as_echo "$OCAMLYACC" >&6; }
12963else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965$as_echo "no" >&6; }
12966fi
12967
12968
12969fi
12970if test -z "$ac_cv_path_OCAMLYACC"; then
12971 ac_pt_OCAMLYACC=$OCAMLYACC
12972 # Extract the first word of "ocamlyacc", so it can be a program name with args.
12973set dummy ocamlyacc; ac_word=$2
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975$as_echo_n "checking for $ac_word... " >&6; }
12976if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
12977 $as_echo_n "(cached) " >&6
12978else
12979 case $ac_pt_OCAMLYACC in
12980 [\\/]* | ?:[\\/]*)
12981 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
12982 ;;
12983 *)
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985for as_dir in $PATH
12986do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 12990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
12991 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12994 fi
12995done
12996 done
12997IFS=$as_save_IFS
12998
12999 ;;
13000esac
13001fi
13002ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
13003if test -n "$ac_pt_OCAMLYACC"; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
13005$as_echo "$ac_pt_OCAMLYACC" >&6; }
13006else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008$as_echo "no" >&6; }
13009fi
13010
13011 if test "x$ac_pt_OCAMLYACC" = x; then
13012 OCAMLYACC="no"
13013 else
13014 case $cross_compiling:$ac_tool_warned in
13015yes:)
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13018ac_tool_warned=yes ;;
13019esac
13020 OCAMLYACC=$ac_pt_OCAMLYACC
13021 fi
13022else
13023 OCAMLYACC="$ac_cv_path_OCAMLYACC"
13024fi
13025
13026
13027
13028
13029else
13030 if test -n "$ac_tool_prefix"; then
d6ce1786
C
13031 # Extract the first word of "${ac_tool_prefix}[$]MENHIR", so it can be a program name with args.
13032set dummy ${ac_tool_prefix}$MENHIR; ac_word=$2
feec80c3
C
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034$as_echo_n "checking for $ac_word... " >&6; }
13035if ${ac_cv_path_MENHIR+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037else
13038 case $MENHIR in
13039 [\\/]* | ?:[\\/]*)
13040 ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path.
13041 ;;
13042 *)
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044for as_dir in $PATH
13045do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13050 ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054done
13055 done
13056IFS=$as_save_IFS
13057
13058 ;;
13059esac
13060fi
13061MENHIR=$ac_cv_path_MENHIR
13062if test -n "$MENHIR"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5
13064$as_echo "$MENHIR" >&6; }
13065else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
13068fi
13069
13070
13071fi
13072if test -z "$ac_cv_path_MENHIR"; then
13073 ac_pt_MENHIR=$MENHIR
d6ce1786
C
13074 # Extract the first word of "[$]MENHIR", so it can be a program name with args.
13075set dummy $MENHIR; ac_word=$2
feec80c3
C
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077$as_echo_n "checking for $ac_word... " >&6; }
13078if ${ac_cv_path_ac_pt_MENHIR+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080else
13081 case $ac_pt_MENHIR in
13082 [\\/]* | ?:[\\/]*)
13083 ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path.
13084 ;;
13085 *)
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087for as_dir in $PATH
13088do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13093 ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097done
13098 done
13099IFS=$as_save_IFS
13100
13101 ;;
13102esac
13103fi
13104ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR
13105if test -n "$ac_pt_MENHIR"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5
13107$as_echo "$ac_pt_MENHIR" >&6; }
13108else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110$as_echo "no" >&6; }
13111fi
13112
13113 if test "x$ac_pt_MENHIR" = x; then
13114 MENHIR=""
13115 else
13116 case $cross_compiling:$ac_tool_warned in
13117yes:)
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13120ac_tool_warned=yes ;;
13121esac
13122 MENHIR=$ac_pt_MENHIR
13123 fi
13124else
13125 MENHIR="$ac_cv_path_MENHIR"
13126fi
13127
13128
13129fi
13130
13131
13132fi
13133
13134 if test -z "$MENHIR" -o "x$MENHIR" = xno; then :
13135 if test "x$with_MENHIR" = xyes; then :
13136 as_fn_error $? "--with=menhir is given explicitly but not found" "$LINENO" 5
13137
13138fi
13139
13140 if test -n "$COCCI_SRCDIR/setup/fake-menhir.sh menhir"; then :
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&5
13142$as_echo "$as_me: menhir not found. Trying substitute $COCCI_SRCDIR/setup/fake-menhir.sh menhir." >&6;}
13143 MENHIR="$COCCI_SRCDIR/setup/fake-menhir.sh menhir"
13144
13145 if test "xmenhir" = xpkg-config -a "xMENHIR" = xPKG_CONFIG; then :
13146
13147
abad11c5
C
13148
13149
13150
13151
13152
feec80c3
C
13153if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13154 if test -n "$ac_tool_prefix"; then
13155 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13156set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
13159if ${ac_cv_path_PKG_CONFIG+:} false; then :
13160 $as_echo_n "(cached) " >&6
13161else
13162 case $PKG_CONFIG in
13163 [\\/]* | ?:[\\/]*)
13164 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13165 ;;
13166 *)
13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13168for as_dir in $PATH
13169do
13170 IFS=$as_save_IFS
13171 test -z "$as_dir" && as_dir=.
13172 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13174 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13176 break 2
13177 fi
13178done
13179 done
13180IFS=$as_save_IFS
13181
13182 ;;
13183esac
13184fi
13185PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13186if test -n "$PKG_CONFIG"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13188$as_echo "$PKG_CONFIG" >&6; }
13189else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
13192fi
13193
13194
13195fi
13196if test -z "$ac_cv_path_PKG_CONFIG"; then
13197 ac_pt_PKG_CONFIG=$PKG_CONFIG
13198 # Extract the first word of "pkg-config", so it can be a program name with args.
13199set dummy pkg-config; ac_word=$2
13200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201$as_echo_n "checking for $ac_word... " >&6; }
13202if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204else
13205 case $ac_pt_PKG_CONFIG in
13206 [\\/]* | ?:[\\/]*)
13207 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13208 ;;
13209 *)
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13217 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221done
13222 done
13223IFS=$as_save_IFS
13224
13225 ;;
13226esac
13227fi
13228ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13229if test -n "$ac_pt_PKG_CONFIG"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13231$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13232else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234$as_echo "no" >&6; }
13235fi
13236
13237 if test "x$ac_pt_PKG_CONFIG" = x; then
13238 PKG_CONFIG=""
13239 else
13240 case $cross_compiling:$ac_tool_warned in
13241yes:)
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13244ac_tool_warned=yes ;;
13245esac
13246 PKG_CONFIG=$ac_pt_PKG_CONFIG
13247 fi
13248else
13249 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13250fi
13251
13252fi
13253if test -n "$PKG_CONFIG"; then
13254 _pkg_min_version=0.9.0
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13256$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13257 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259$as_echo "yes" >&6; }
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262$as_echo "no" >&6; }
13263 PKG_CONFIG=""
13264 fi
feec80c3
C
13265fi
13266
13267elif test "xmenhir" = xocamllex -a "xMENHIR" = xOCAMLLEX; then :
13268 # checking for ocamllex
13269 if test -n "$ac_tool_prefix"; then
13270 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
13271set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273$as_echo_n "checking for $ac_word... " >&6; }
13274if ${ac_cv_path_OCAMLLEX+:} false; then :
13275 $as_echo_n "(cached) " >&6
13276else
13277 case $OCAMLLEX in
13278 [\\/]* | ?:[\\/]*)
13279 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
13280 ;;
13281 *)
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $PATH
13284do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13289 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293done
13294 done
13295IFS=$as_save_IFS
13296
13297 ;;
13298esac
13299fi
13300OCAMLLEX=$ac_cv_path_OCAMLLEX
13301if test -n "$OCAMLLEX"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
13303$as_echo "$OCAMLLEX" >&6; }
13304else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306$as_echo "no" >&6; }
13307fi
13308
13309
13310fi
13311if test -z "$ac_cv_path_OCAMLLEX"; then
13312 ac_pt_OCAMLLEX=$OCAMLLEX
13313 # Extract the first word of "ocamllex", so it can be a program name with args.
13314set dummy ocamllex; ac_word=$2
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316$as_echo_n "checking for $ac_word... " >&6; }
13317if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319else
13320 case $ac_pt_OCAMLLEX in
13321 [\\/]* | ?:[\\/]*)
13322 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
13323 ;;
13324 *)
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326for as_dir in $PATH
13327do
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13332 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13335 fi
13336done
13337 done
13338IFS=$as_save_IFS
13339
13340 ;;
13341esac
13342fi
13343ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
13344if test -n "$ac_pt_OCAMLLEX"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
13346$as_echo "$ac_pt_OCAMLLEX" >&6; }
13347else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349$as_echo "no" >&6; }
13350fi
13351
13352 if test "x$ac_pt_OCAMLLEX" = x; then
13353 OCAMLLEX="no"
13354 else
13355 case $cross_compiling:$ac_tool_warned in
13356yes:)
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13359ac_tool_warned=yes ;;
13360esac
13361 OCAMLLEX=$ac_pt_OCAMLLEX
13362 fi
13363else
13364 OCAMLLEX="$ac_cv_path_OCAMLLEX"
13365fi
13366
13367 if test "$OCAMLLEX" != "no"; then
13368 if test -n "$ac_tool_prefix"; then
13369 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
13370set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372$as_echo_n "checking for $ac_word... " >&6; }
13373if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
13374 $as_echo_n "(cached) " >&6
13375else
13376 case $OCAMLLEXDOTOPT in
13377 [\\/]* | ?:[\\/]*)
13378 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
13379 ;;
13380 *)
13381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382for as_dir in $PATH
13383do
13384 IFS=$as_save_IFS
13385 test -z "$as_dir" && as_dir=.
13386 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13388 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13390 break 2
13391 fi
13392done
13393 done
13394IFS=$as_save_IFS
13395
13396 ;;
13397esac
13398fi
13399OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
13400if test -n "$OCAMLLEXDOTOPT"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
13402$as_echo "$OCAMLLEXDOTOPT" >&6; }
13403else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405$as_echo "no" >&6; }
13406fi
13407
13408
13409fi
13410if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
13411 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
13412 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
13413set dummy ocamllex.opt; ac_word=$2
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415$as_echo_n "checking for $ac_word... " >&6; }
13416if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418else
13419 case $ac_pt_OCAMLLEXDOTOPT in
13420 [\\/]* | ?:[\\/]*)
13421 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
13422 ;;
13423 *)
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425for as_dir in $PATH
13426do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13431 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13434 fi
13435done
13436 done
13437IFS=$as_save_IFS
13438
13439 ;;
13440esac
13441fi
13442ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
13443if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
13445$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
13446else
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448$as_echo "no" >&6; }
13449fi
13450
13451 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
13452 OCAMLLEXDOTOPT="no"
13453 else
13454 case $cross_compiling:$ac_tool_warned in
13455yes:)
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13458ac_tool_warned=yes ;;
13459esac
13460 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
13461 fi
13462else
13463 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
13464fi
13465
13466 if test "$OCAMLLEXDOTOPT" != "no"; then
13467 OCAMLLEX=$OCAMLLEXDOTOPT
13468 fi
13469 fi
13470
13471
13472
13473elif test "xmenhir" = xocamlyacc -a "xMENHIR" = xOCAMLYACC; then :
13474 if test -n "$ac_tool_prefix"; then
13475 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
13476set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478$as_echo_n "checking for $ac_word... " >&6; }
13479if ${ac_cv_path_OCAMLYACC+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481else
13482 case $OCAMLYACC in
13483 [\\/]* | ?:[\\/]*)
13484 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
13485 ;;
13486 *)
13487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488for as_dir in $PATH
13489do
13490 IFS=$as_save_IFS
13491 test -z "$as_dir" && as_dir=.
13492 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13494 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 break 2
13497 fi
13498done
13499 done
13500IFS=$as_save_IFS
13501
13502 ;;
13503esac
13504fi
13505OCAMLYACC=$ac_cv_path_OCAMLYACC
13506if test -n "$OCAMLYACC"; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
13508$as_echo "$OCAMLYACC" >&6; }
13509else
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511$as_echo "no" >&6; }
13512fi
13513
13514
13515fi
13516if test -z "$ac_cv_path_OCAMLYACC"; then
13517 ac_pt_OCAMLYACC=$OCAMLYACC
13518 # Extract the first word of "ocamlyacc", so it can be a program name with args.
13519set dummy ocamlyacc; ac_word=$2
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521$as_echo_n "checking for $ac_word... " >&6; }
13522if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
13523 $as_echo_n "(cached) " >&6
13524else
13525 case $ac_pt_OCAMLYACC in
13526 [\\/]* | ?:[\\/]*)
13527 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
13528 ;;
13529 *)
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531for as_dir in $PATH
13532do
13533 IFS=$as_save_IFS
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13537 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 break 2
13540 fi
13541done
13542 done
13543IFS=$as_save_IFS
13544
13545 ;;
13546esac
13547fi
13548ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
13549if test -n "$ac_pt_OCAMLYACC"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
13551$as_echo "$ac_pt_OCAMLYACC" >&6; }
13552else
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554$as_echo "no" >&6; }
13555fi
13556
13557 if test "x$ac_pt_OCAMLYACC" = x; then
13558 OCAMLYACC="no"
13559 else
13560 case $cross_compiling:$ac_tool_warned in
13561yes:)
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13564ac_tool_warned=yes ;;
13565esac
13566 OCAMLYACC=$ac_pt_OCAMLYACC
13567 fi
13568else
13569 OCAMLYACC="$ac_cv_path_OCAMLYACC"
13570fi
13571
13572
13573
13574
13575else
13576 if test -n "$ac_tool_prefix"; then
13577 # Extract the first word of "${ac_tool_prefix}menhir", so it can be a program name with args.
13578set dummy ${ac_tool_prefix}menhir; ac_word=$2
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580$as_echo_n "checking for $ac_word... " >&6; }
13581if ${ac_cv_path_MENHIR+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583else
13584 case $MENHIR in
13585 [\\/]* | ?:[\\/]*)
13586 ac_cv_path_MENHIR="$MENHIR" # Let the user override the test with a path.
13587 ;;
13588 *)
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590for as_dir in $PATH
13591do
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13596 ac_cv_path_MENHIR="$as_dir/$ac_word$ac_exec_ext"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 break 2
13599 fi
13600done
13601 done
13602IFS=$as_save_IFS
13603
13604 ;;
13605esac
13606fi
13607MENHIR=$ac_cv_path_MENHIR
13608if test -n "$MENHIR"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENHIR" >&5
13610$as_echo "$MENHIR" >&6; }
13611else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613$as_echo "no" >&6; }
13614fi
13615
13616
13617fi
13618if test -z "$ac_cv_path_MENHIR"; then
13619 ac_pt_MENHIR=$MENHIR
13620 # Extract the first word of "menhir", so it can be a program name with args.
13621set dummy menhir; ac_word=$2
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623$as_echo_n "checking for $ac_word... " >&6; }
13624if ${ac_cv_path_ac_pt_MENHIR+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626else
13627 case $ac_pt_MENHIR in
13628 [\\/]* | ?:[\\/]*)
13629 ac_cv_path_ac_pt_MENHIR="$ac_pt_MENHIR" # Let the user override the test with a path.
13630 ;;
13631 *)
13632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633for as_dir in $PATH
13634do
13635 IFS=$as_save_IFS
13636 test -z "$as_dir" && as_dir=.
13637 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13639 ac_cv_path_ac_pt_MENHIR="$as_dir/$ac_word$ac_exec_ext"
13640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 break 2
13642 fi
13643done
13644 done
13645IFS=$as_save_IFS
13646
13647 ;;
13648esac
13649fi
13650ac_pt_MENHIR=$ac_cv_path_ac_pt_MENHIR
13651if test -n "$ac_pt_MENHIR"; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MENHIR" >&5
13653$as_echo "$ac_pt_MENHIR" >&6; }
13654else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656$as_echo "no" >&6; }
13657fi
13658
13659 if test "x$ac_pt_MENHIR" = x; then
13660 MENHIR=""
13661 else
13662 case $cross_compiling:$ac_tool_warned in
13663yes:)
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13666ac_tool_warned=yes ;;
13667esac
13668 MENHIR=$ac_pt_MENHIR
13669 fi
13670else
13671 MENHIR="$ac_cv_path_MENHIR"
13672fi
13673
13674
13675fi
13676
13677 SUBSTITUTED_MENHIR=yes
13678
13679
13680fi
13681
13682fi
13683
13684 if test -z "$MENHIR"; then :
13685 MENHIR=no
13686
13687fi
13688
13689if test "x$SUBSTITUTED_MENHIR" = xyes; then :
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: pregenerated parsers will be required as substitute for Menhir" >&5
13691$as_echo "$as_me: pregenerated parsers will be required as substitute for Menhir" >&6;}
13692
13693fi
13694
13695
13696# Check whether --enable-ocaml was given.
13697if test "${enable_ocaml+set}" = set; then :
13698 enableval=$enable_ocaml;
13699fi
13700
13701if test "x$OCAML_PKG_dynlink" = xno; then :
13702 if test -z "$enable_ocaml"; then :
13703 enable_ocaml=no
13704
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because the 'dynlink' package is not installed" >&5
13706$as_echo "$as_me: ocaml scripting is disabled because the 'dynlink' package is not installed" >&6;}
13707
13708elif test "x$enable_ocaml" != xno; then :
13709 as_fn_error $? "the OCaml package dynlink is required for ocaml scripting" "$LINENO" 5
13710
13711fi
13712
13713fi
13714
13715if test "x$OCAMLATLEAST311" = xno; then :
d6ce1786
C
13716 if test -z "$enable_ocaml"; then :
13717 enable_ocaml=no
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting has been disabled by default because your OCaml version may not support dynamic linking properly" >&5
13720$as_echo "$as_me: ocaml scripting has been disabled by default because your OCaml version may not support dynamic linking properly" >&6;}
feec80c3 13721
d6ce1786
C
13722elif test "x$enable_ocaml" = xyes; then :
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: your ocaml version may be too old for dynamic linking, thus ocaml scripting may not work" >&5
13724$as_echo "$as_me: warning: your ocaml version may be too old for dynamic linking, thus ocaml scripting may not work" >&6;}
13725
13726fi
13727
13728fi
13729
13730if test "x$OPTIMIZED_dynlink" = xno; then :
13731 if test -z "$enable_ocaml"; then :
13732 enable_ocaml=no
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&5
13735$as_echo "$as_me: ocaml scripting has been disabled by default because the optimized version of dynlink is not available" >&6;}
13736
13737elif test "x$enable_ocaml" = xyes; then :
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&5
13739$as_echo "$as_me: warning: the optimized version of dynlink is not available, thus ocaml scripting may not work" >&6;}
13740
13741fi
feec80c3
C
13742
13743fi
13744
13745if test -n "$SUBSTITUTED_OCAMLFIND"; then :
13746 if test -z "$enable_ocaml"; then :
13747 enable_ocaml=no
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it depends on ocamlfind" >&5
13750$as_echo "$as_me: ocaml scripting is disabled because it depends on ocamlfind" >&6;}
13751
13752elif test "x$enable_ocaml" != xno; then :
d6ce1786
C
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&5
13754$as_echo "$as_me: warning: ocamlfind is not found but may be required when ocaml scripts are used" >&6;}
feec80c3
C
13755
13756fi
13757
13758fi
13759
13760if test "x$CAMLP4" = xno; then :
13761 if test -z "$enable_ocaml"; then :
13762 enable_ocaml=no
13763
d6ce1786
C
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: ocaml scripting is disabled because it requires camlp4 which is not available" >&5
13765$as_echo "$as_me: ocaml scripting is disabled because it requires camlp4 which is not available" >&6;}
feec80c3
C
13766
13767elif test "x$enable_ocaml" != xno; then :
d6ce1786
C
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: camlp4 is not found but may be required when ocaml scripts are used" >&5
13769$as_echo "$as_me: warning: camlp4 is not found but may be required when ocaml scripts are used" >&6;}
feec80c3
C
13770
13771fi
13772
13773fi
13774
13775if test "x$enable_ocaml" = xno; then :
13776 FEATURE_dynlink=0
13777
13778 LOCALLIB_dynlink=0
13779
13780 FLAGS_dynlink=
13781
13782 MODULES_dynlink=
13783
13784 MODULESOPT_dynlink=
13785
13786 PATH_dynlink=
13787
13788 OCAMLCOCCI_MODULE=No_prepare_ocamlcocci
13789
13790 OCAMLCOCCI_FILE=no_prepare_ocamlcocci.ml
13791
13792
13793else
13794 enable_ocaml=yes
13795
13796 OCAMLCOCCI_MODULE=Yes_prepare_ocamlcocci
13797
13798 OCAMLCOCCI_FILE=yes_prepare_ocamlcocci.ml
13799
13800
13801fi
13802
13803
13804
13805# Check whether --enable-python was given.
13806if test "${enable_python+set}" = set; then :
13807 enableval=$enable_python;
13808fi
13809
13810if test "x$enable_python" != xno; then :
d6ce1786 13811 if test -n "$enable_python" -a -z "$enable_pycaml"; then :
feec80c3
C
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: skipped the selection of a global pycaml module because --enable-python is given explicitly but --enable-pycaml is not." >&5
13813$as_echo "$as_me: skipped the selection of a global pycaml module because --enable-python is given explicitly but --enable-pycaml is not." >&6;}
13814 enable_pycaml=no
13815
13816
13817fi
13818
13819 if test -z "$PYVER"; then :
13820
13821
d6ce1786 13822
feec80c3
C
13823# Check whether --with-python was given.
13824if test "${with_python+set}" = set; then :
13825 withval=$with_python;
13826fi
13827
13828 with_PYTHON="$with_python"
13829
feec80c3
C
13830 if test -n "$with_PYTHON" -a "x$with_PYTHON" != xno -a "x$with_PYTHON" != xyes; then :
13831 PYTHON="$with_PYTHON"
13832
13833
d6ce1786
C
13834else
13835 PYTHON="python"
13836
13837
feec80c3
C
13838fi
13839
d6ce1786
C
13840 if test "x$with_PYTHON" = xno; then :
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: python is disabled explicitly" >&5
13842$as_echo "$as_me: python is disabled explicitly" >&6;}
13843 PYTHON=no
13844
13845
13846else
13847 if test "x$PYTHON" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then :
feec80c3
C
13848
13849
abad11c5
C
13850
13851
13852
13853
13854
feec80c3
C
13855if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13856 if test -n "$ac_tool_prefix"; then
13857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13858set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13860$as_echo_n "checking for $ac_word... " >&6; }
13861if ${ac_cv_path_PKG_CONFIG+:} false; then :
13862 $as_echo_n "(cached) " >&6
13863else
13864 case $PKG_CONFIG in
13865 [\\/]* | ?:[\\/]*)
13866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13867 ;;
13868 *)
13869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870for as_dir in $PATH
13871do
13872 IFS=$as_save_IFS
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13878 break 2
13879 fi
13880done
13881 done
13882IFS=$as_save_IFS
13883
13884 ;;
13885esac
13886fi
13887PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13888if test -n "$PKG_CONFIG"; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13890$as_echo "$PKG_CONFIG" >&6; }
13891else
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893$as_echo "no" >&6; }
13894fi
13895
13896
13897fi
13898if test -z "$ac_cv_path_PKG_CONFIG"; then
13899 ac_pt_PKG_CONFIG=$PKG_CONFIG
13900 # Extract the first word of "pkg-config", so it can be a program name with args.
13901set dummy pkg-config; ac_word=$2
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903$as_echo_n "checking for $ac_word... " >&6; }
13904if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906else
13907 case $ac_pt_PKG_CONFIG in
13908 [\\/]* | ?:[\\/]*)
13909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13910 ;;
13911 *)
13912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913for as_dir in $PATH
13914do
13915 IFS=$as_save_IFS
13916 test -z "$as_dir" && as_dir=.
13917 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13919 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13921 break 2
13922 fi
13923done
13924 done
13925IFS=$as_save_IFS
13926
13927 ;;
13928esac
13929fi
13930ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13931if test -n "$ac_pt_PKG_CONFIG"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13933$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13934else
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936$as_echo "no" >&6; }
13937fi
13938
13939 if test "x$ac_pt_PKG_CONFIG" = x; then
13940 PKG_CONFIG=""
13941 else
13942 case $cross_compiling:$ac_tool_warned in
13943yes:)
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13946ac_tool_warned=yes ;;
13947esac
13948 PKG_CONFIG=$ac_pt_PKG_CONFIG
13949 fi
13950else
13951 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13952fi
13953
13954fi
13955if test -n "$PKG_CONFIG"; then
13956 _pkg_min_version=0.9.0
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13958$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13959 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13961$as_echo "yes" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964$as_echo "no" >&6; }
13965 PKG_CONFIG=""
13966 fi
feec80c3
C
13967fi
13968
d6ce1786 13969elif test "x$PYTHON" = xocamllex -a "xPYTHON" = xOCAMLLEX; then :
feec80c3
C
13970 # checking for ocamllex
13971 if test -n "$ac_tool_prefix"; then
13972 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
13973set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
13974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13975$as_echo_n "checking for $ac_word... " >&6; }
13976if ${ac_cv_path_OCAMLLEX+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978else
13979 case $OCAMLLEX in
13980 [\\/]* | ?:[\\/]*)
13981 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
13982 ;;
13983 *)
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985for as_dir in $PATH
13986do
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
13991 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 break 2
13994 fi
13995done
13996 done
13997IFS=$as_save_IFS
13998
13999 ;;
14000esac
14001fi
14002OCAMLLEX=$ac_cv_path_OCAMLLEX
14003if test -n "$OCAMLLEX"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
14005$as_echo "$OCAMLLEX" >&6; }
14006else
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008$as_echo "no" >&6; }
14009fi
14010
14011
14012fi
14013if test -z "$ac_cv_path_OCAMLLEX"; then
14014 ac_pt_OCAMLLEX=$OCAMLLEX
14015 # Extract the first word of "ocamllex", so it can be a program name with args.
14016set dummy ocamllex; ac_word=$2
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14018$as_echo_n "checking for $ac_word... " >&6; }
14019if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
14020 $as_echo_n "(cached) " >&6
14021else
14022 case $ac_pt_OCAMLLEX in
14023 [\\/]* | ?:[\\/]*)
14024 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
14025 ;;
14026 *)
14027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14028for as_dir in $PATH
14029do
14030 IFS=$as_save_IFS
14031 test -z "$as_dir" && as_dir=.
14032 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14034 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
14035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14036 break 2
14037 fi
14038done
14039 done
14040IFS=$as_save_IFS
14041
14042 ;;
14043esac
14044fi
14045ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
14046if test -n "$ac_pt_OCAMLLEX"; then
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
14048$as_echo "$ac_pt_OCAMLLEX" >&6; }
14049else
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051$as_echo "no" >&6; }
14052fi
14053
14054 if test "x$ac_pt_OCAMLLEX" = x; then
14055 OCAMLLEX="no"
14056 else
14057 case $cross_compiling:$ac_tool_warned in
14058yes:)
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14061ac_tool_warned=yes ;;
14062esac
14063 OCAMLLEX=$ac_pt_OCAMLLEX
14064 fi
14065else
14066 OCAMLLEX="$ac_cv_path_OCAMLLEX"
14067fi
14068
14069 if test "$OCAMLLEX" != "no"; then
14070 if test -n "$ac_tool_prefix"; then
14071 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
14072set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14074$as_echo_n "checking for $ac_word... " >&6; }
14075if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077else
14078 case $OCAMLLEXDOTOPT in
14079 [\\/]* | ?:[\\/]*)
14080 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
14081 ;;
14082 *)
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084for as_dir in $PATH
14085do
14086 IFS=$as_save_IFS
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14090 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092 break 2
14093 fi
14094done
14095 done
14096IFS=$as_save_IFS
14097
14098 ;;
14099esac
14100fi
14101OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
14102if test -n "$OCAMLLEXDOTOPT"; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
14104$as_echo "$OCAMLLEXDOTOPT" >&6; }
14105else
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107$as_echo "no" >&6; }
14108fi
14109
14110
14111fi
14112if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
14113 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
14114 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
14115set dummy ocamllex.opt; ac_word=$2
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14117$as_echo_n "checking for $ac_word... " >&6; }
14118if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120else
14121 case $ac_pt_OCAMLLEXDOTOPT in
14122 [\\/]* | ?:[\\/]*)
14123 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
14124 ;;
14125 *)
14126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127for as_dir in $PATH
14128do
14129 IFS=$as_save_IFS
14130 test -z "$as_dir" && as_dir=.
14131 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14133 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14135 break 2
14136 fi
14137done
14138 done
14139IFS=$as_save_IFS
14140
14141 ;;
14142esac
14143fi
14144ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
14145if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
14147$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
14148else
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150$as_echo "no" >&6; }
14151fi
14152
14153 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
14154 OCAMLLEXDOTOPT="no"
14155 else
14156 case $cross_compiling:$ac_tool_warned in
14157yes:)
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14160ac_tool_warned=yes ;;
14161esac
14162 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
14163 fi
14164else
14165 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
14166fi
14167
14168 if test "$OCAMLLEXDOTOPT" != "no"; then
14169 OCAMLLEX=$OCAMLLEXDOTOPT
14170 fi
14171 fi
14172
14173
14174
d6ce1786 14175elif test "x$PYTHON" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then :
feec80c3
C
14176 if test -n "$ac_tool_prefix"; then
14177 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
14178set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
14179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14180$as_echo_n "checking for $ac_word... " >&6; }
14181if ${ac_cv_path_OCAMLYACC+:} false; then :
14182 $as_echo_n "(cached) " >&6
14183else
14184 case $OCAMLYACC in
14185 [\\/]* | ?:[\\/]*)
14186 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
14187 ;;
14188 *)
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190for as_dir in $PATH
14191do
14192 IFS=$as_save_IFS
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14196 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14198 break 2
14199 fi
14200done
14201 done
14202IFS=$as_save_IFS
14203
14204 ;;
14205esac
14206fi
14207OCAMLYACC=$ac_cv_path_OCAMLYACC
14208if test -n "$OCAMLYACC"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
14210$as_echo "$OCAMLYACC" >&6; }
14211else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213$as_echo "no" >&6; }
14214fi
14215
14216
14217fi
14218if test -z "$ac_cv_path_OCAMLYACC"; then
14219 ac_pt_OCAMLYACC=$OCAMLYACC
14220 # Extract the first word of "ocamlyacc", so it can be a program name with args.
14221set dummy ocamlyacc; ac_word=$2
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223$as_echo_n "checking for $ac_word... " >&6; }
14224if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
14225 $as_echo_n "(cached) " >&6
14226else
14227 case $ac_pt_OCAMLYACC in
14228 [\\/]* | ?:[\\/]*)
14229 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
14230 ;;
14231 *)
14232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233for as_dir in $PATH
14234do
14235 IFS=$as_save_IFS
14236 test -z "$as_dir" && as_dir=.
14237 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14239 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 break 2
14242 fi
14243done
14244 done
14245IFS=$as_save_IFS
14246
14247 ;;
14248esac
14249fi
14250ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
14251if test -n "$ac_pt_OCAMLYACC"; then
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
14253$as_echo "$ac_pt_OCAMLYACC" >&6; }
14254else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256$as_echo "no" >&6; }
14257fi
14258
14259 if test "x$ac_pt_OCAMLYACC" = x; then
14260 OCAMLYACC="no"
14261 else
14262 case $cross_compiling:$ac_tool_warned in
14263yes:)
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14266ac_tool_warned=yes ;;
14267esac
14268 OCAMLYACC=$ac_pt_OCAMLYACC
14269 fi
14270else
14271 OCAMLYACC="$ac_cv_path_OCAMLYACC"
14272fi
14273
14274
14275
14276
14277else
14278 if test -n "$ac_tool_prefix"; then
d6ce1786
C
14279 # Extract the first word of "${ac_tool_prefix}[$]PYTHON", so it can be a program name with args.
14280set dummy ${ac_tool_prefix}$PYTHON; ac_word=$2
feec80c3
C
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282$as_echo_n "checking for $ac_word... " >&6; }
14283if ${ac_cv_path_PYTHON+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285else
14286 case $PYTHON in
14287 [\\/]* | ?:[\\/]*)
14288 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14289 ;;
14290 *)
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292for as_dir in $PATH
14293do
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14298 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14301 fi
14302done
14303 done
14304IFS=$as_save_IFS
14305
14306 ;;
14307esac
14308fi
14309PYTHON=$ac_cv_path_PYTHON
14310if test -n "$PYTHON"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14312$as_echo "$PYTHON" >&6; }
14313else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315$as_echo "no" >&6; }
14316fi
14317
14318
14319fi
14320if test -z "$ac_cv_path_PYTHON"; then
14321 ac_pt_PYTHON=$PYTHON
d6ce1786
C
14322 # Extract the first word of "[$]PYTHON", so it can be a program name with args.
14323set dummy $PYTHON; ac_word=$2
feec80c3
C
14324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14325$as_echo_n "checking for $ac_word... " >&6; }
14326if ${ac_cv_path_ac_pt_PYTHON+:} false; then :
14327 $as_echo_n "(cached) " >&6
14328else
14329 case $ac_pt_PYTHON in
14330 [\\/]* | ?:[\\/]*)
14331 ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path.
14332 ;;
14333 *)
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335for as_dir in $PATH
14336do
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14341 ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345done
14346 done
14347IFS=$as_save_IFS
14348
14349 ;;
14350esac
14351fi
14352ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON
14353if test -n "$ac_pt_PYTHON"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5
14355$as_echo "$ac_pt_PYTHON" >&6; }
14356else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358$as_echo "no" >&6; }
14359fi
14360
14361 if test "x$ac_pt_PYTHON" = x; then
14362 PYTHON=""
14363 else
14364 case $cross_compiling:$ac_tool_warned in
14365yes:)
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14368ac_tool_warned=yes ;;
14369esac
14370 PYTHON=$ac_pt_PYTHON
14371 fi
14372else
14373 PYTHON="$ac_cv_path_PYTHON"
14374fi
14375
14376
14377fi
14378
14379
14380fi
14381
14382 if test -z "$PYTHON" -o "x$PYTHON" = xno; then :
14383 if test "x$with_PYTHON" = xyes; then :
14384 as_fn_error $? "--with=python is given explicitly but not found" "$LINENO" 5
14385
14386fi
14387
14388 if test -n ""; then :
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: python not found. Trying substitute ." >&5
14390$as_echo "$as_me: python not found. Trying substitute ." >&6;}
14391 PYTHON=""
14392
14393 if test "xpython" = xpkg-config -a "xPYTHON" = xPKG_CONFIG; then :
14394
14395
abad11c5
C
14396
14397
14398
14399
14400
feec80c3
C
14401if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14402 if test -n "$ac_tool_prefix"; then
14403 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14404set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14406$as_echo_n "checking for $ac_word... " >&6; }
14407if ${ac_cv_path_PKG_CONFIG+:} false; then :
14408 $as_echo_n "(cached) " >&6
14409else
14410 case $PKG_CONFIG in
14411 [\\/]* | ?:[\\/]*)
14412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14413 ;;
14414 *)
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416for as_dir in $PATH
14417do
14418 IFS=$as_save_IFS
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14424 break 2
14425 fi
14426done
14427 done
14428IFS=$as_save_IFS
14429
14430 ;;
14431esac
14432fi
14433PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14434if test -n "$PKG_CONFIG"; then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14436$as_echo "$PKG_CONFIG" >&6; }
14437else
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439$as_echo "no" >&6; }
14440fi
14441
14442
14443fi
14444if test -z "$ac_cv_path_PKG_CONFIG"; then
14445 ac_pt_PKG_CONFIG=$PKG_CONFIG
14446 # Extract the first word of "pkg-config", so it can be a program name with args.
14447set dummy pkg-config; ac_word=$2
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14449$as_echo_n "checking for $ac_word... " >&6; }
14450if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14451 $as_echo_n "(cached) " >&6
14452else
14453 case $ac_pt_PKG_CONFIG in
14454 [\\/]* | ?:[\\/]*)
14455 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14456 ;;
14457 *)
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459for as_dir in $PATH
14460do
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14465 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 break 2
14468 fi
14469done
14470 done
14471IFS=$as_save_IFS
14472
14473 ;;
14474esac
14475fi
14476ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14477if test -n "$ac_pt_PKG_CONFIG"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14479$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14480else
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482$as_echo "no" >&6; }
14483fi
14484
14485 if test "x$ac_pt_PKG_CONFIG" = x; then
14486 PKG_CONFIG=""
14487 else
14488 case $cross_compiling:$ac_tool_warned in
14489yes:)
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14492ac_tool_warned=yes ;;
14493esac
14494 PKG_CONFIG=$ac_pt_PKG_CONFIG
14495 fi
14496else
14497 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14498fi
14499
14500fi
14501if test -n "$PKG_CONFIG"; then
14502 _pkg_min_version=0.9.0
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14504$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14505 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14507$as_echo "yes" >&6; }
14508 else
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510$as_echo "no" >&6; }
14511 PKG_CONFIG=""
14512 fi
feec80c3
C
14513fi
14514
14515elif test "xpython" = xocamllex -a "xPYTHON" = xOCAMLLEX; then :
14516 # checking for ocamllex
14517 if test -n "$ac_tool_prefix"; then
14518 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
14519set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14521$as_echo_n "checking for $ac_word... " >&6; }
14522if ${ac_cv_path_OCAMLLEX+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524else
14525 case $OCAMLLEX in
14526 [\\/]* | ?:[\\/]*)
14527 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
14528 ;;
14529 *)
14530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531for as_dir in $PATH
14532do
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14537 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
14538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14539 break 2
14540 fi
14541done
14542 done
14543IFS=$as_save_IFS
14544
14545 ;;
14546esac
14547fi
14548OCAMLLEX=$ac_cv_path_OCAMLLEX
14549if test -n "$OCAMLLEX"; then
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
14551$as_echo "$OCAMLLEX" >&6; }
14552else
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554$as_echo "no" >&6; }
14555fi
14556
14557
14558fi
14559if test -z "$ac_cv_path_OCAMLLEX"; then
14560 ac_pt_OCAMLLEX=$OCAMLLEX
14561 # Extract the first word of "ocamllex", so it can be a program name with args.
14562set dummy ocamllex; ac_word=$2
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564$as_echo_n "checking for $ac_word... " >&6; }
14565if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
14566 $as_echo_n "(cached) " >&6
14567else
14568 case $ac_pt_OCAMLLEX in
14569 [\\/]* | ?:[\\/]*)
14570 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
14571 ;;
14572 *)
14573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574for as_dir in $PATH
14575do
14576 IFS=$as_save_IFS
14577 test -z "$as_dir" && as_dir=.
14578 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14580 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
14581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14582 break 2
14583 fi
14584done
14585 done
14586IFS=$as_save_IFS
14587
14588 ;;
14589esac
14590fi
14591ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
14592if test -n "$ac_pt_OCAMLLEX"; then
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
14594$as_echo "$ac_pt_OCAMLLEX" >&6; }
14595else
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597$as_echo "no" >&6; }
14598fi
14599
14600 if test "x$ac_pt_OCAMLLEX" = x; then
14601 OCAMLLEX="no"
14602 else
14603 case $cross_compiling:$ac_tool_warned in
14604yes:)
14605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14607ac_tool_warned=yes ;;
14608esac
14609 OCAMLLEX=$ac_pt_OCAMLLEX
14610 fi
14611else
14612 OCAMLLEX="$ac_cv_path_OCAMLLEX"
14613fi
14614
14615 if test "$OCAMLLEX" != "no"; then
14616 if test -n "$ac_tool_prefix"; then
14617 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
14618set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14620$as_echo_n "checking for $ac_word... " >&6; }
14621if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
14622 $as_echo_n "(cached) " >&6
14623else
14624 case $OCAMLLEXDOTOPT in
14625 [\\/]* | ?:[\\/]*)
14626 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
14627 ;;
14628 *)
14629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14630for as_dir in $PATH
14631do
14632 IFS=$as_save_IFS
14633 test -z "$as_dir" && as_dir=.
14634 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14636 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14638 break 2
14639 fi
14640done
14641 done
14642IFS=$as_save_IFS
14643
14644 ;;
14645esac
14646fi
14647OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
14648if test -n "$OCAMLLEXDOTOPT"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
14650$as_echo "$OCAMLLEXDOTOPT" >&6; }
14651else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653$as_echo "no" >&6; }
14654fi
14655
14656
14657fi
14658if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
14659 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
14660 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
14661set dummy ocamllex.opt; ac_word=$2
14662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663$as_echo_n "checking for $ac_word... " >&6; }
14664if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666else
14667 case $ac_pt_OCAMLLEXDOTOPT in
14668 [\\/]* | ?:[\\/]*)
14669 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
14670 ;;
14671 *)
14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673for as_dir in $PATH
14674do
14675 IFS=$as_save_IFS
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14679 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
14680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14681 break 2
14682 fi
14683done
14684 done
14685IFS=$as_save_IFS
14686
14687 ;;
14688esac
14689fi
14690ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
14691if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
14693$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
14694else
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14696$as_echo "no" >&6; }
14697fi
14698
14699 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
14700 OCAMLLEXDOTOPT="no"
14701 else
14702 case $cross_compiling:$ac_tool_warned in
14703yes:)
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14706ac_tool_warned=yes ;;
14707esac
14708 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
14709 fi
14710else
14711 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
14712fi
14713
14714 if test "$OCAMLLEXDOTOPT" != "no"; then
14715 OCAMLLEX=$OCAMLLEXDOTOPT
14716 fi
14717 fi
14718
14719
14720
14721elif test "xpython" = xocamlyacc -a "xPYTHON" = xOCAMLYACC; then :
14722 if test -n "$ac_tool_prefix"; then
14723 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
14724set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14726$as_echo_n "checking for $ac_word... " >&6; }
14727if ${ac_cv_path_OCAMLYACC+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729else
14730 case $OCAMLYACC in
14731 [\\/]* | ?:[\\/]*)
14732 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
14733 ;;
14734 *)
14735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14736for as_dir in $PATH
14737do
14738 IFS=$as_save_IFS
14739 test -z "$as_dir" && as_dir=.
14740 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14742 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14744 break 2
14745 fi
14746done
14747 done
14748IFS=$as_save_IFS
14749
14750 ;;
14751esac
14752fi
14753OCAMLYACC=$ac_cv_path_OCAMLYACC
14754if test -n "$OCAMLYACC"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
14756$as_echo "$OCAMLYACC" >&6; }
14757else
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759$as_echo "no" >&6; }
14760fi
14761
14762
14763fi
14764if test -z "$ac_cv_path_OCAMLYACC"; then
14765 ac_pt_OCAMLYACC=$OCAMLYACC
14766 # Extract the first word of "ocamlyacc", so it can be a program name with args.
14767set dummy ocamlyacc; ac_word=$2
14768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769$as_echo_n "checking for $ac_word... " >&6; }
14770if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772else
14773 case $ac_pt_OCAMLYACC in
14774 [\\/]* | ?:[\\/]*)
14775 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
14776 ;;
14777 *)
14778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14779for as_dir in $PATH
14780do
14781 IFS=$as_save_IFS
14782 test -z "$as_dir" && as_dir=.
14783 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14785 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
14786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14787 break 2
14788 fi
14789done
14790 done
14791IFS=$as_save_IFS
14792
14793 ;;
14794esac
14795fi
14796ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
14797if test -n "$ac_pt_OCAMLYACC"; then
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
14799$as_echo "$ac_pt_OCAMLYACC" >&6; }
14800else
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802$as_echo "no" >&6; }
14803fi
14804
14805 if test "x$ac_pt_OCAMLYACC" = x; then
14806 OCAMLYACC="no"
14807 else
14808 case $cross_compiling:$ac_tool_warned in
14809yes:)
14810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14812ac_tool_warned=yes ;;
14813esac
14814 OCAMLYACC=$ac_pt_OCAMLYACC
14815 fi
14816else
14817 OCAMLYACC="$ac_cv_path_OCAMLYACC"
14818fi
14819
14820
14821
14822
14823else
14824 if test -n "$ac_tool_prefix"; then
14825 # Extract the first word of "${ac_tool_prefix}python", so it can be a program name with args.
14826set dummy ${ac_tool_prefix}python; ac_word=$2
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14828$as_echo_n "checking for $ac_word... " >&6; }
14829if ${ac_cv_path_PYTHON+:} false; then :
14830 $as_echo_n "(cached) " >&6
14831else
14832 case $PYTHON in
14833 [\\/]* | ?:[\\/]*)
14834 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14835 ;;
14836 *)
14837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14838for as_dir in $PATH
14839do
14840 IFS=$as_save_IFS
14841 test -z "$as_dir" && as_dir=.
14842 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14844 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14846 break 2
14847 fi
14848done
14849 done
14850IFS=$as_save_IFS
14851
14852 ;;
14853esac
14854fi
14855PYTHON=$ac_cv_path_PYTHON
14856if test -n "$PYTHON"; then
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14858$as_echo "$PYTHON" >&6; }
14859else
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14861$as_echo "no" >&6; }
14862fi
14863
14864
14865fi
14866if test -z "$ac_cv_path_PYTHON"; then
14867 ac_pt_PYTHON=$PYTHON
14868 # Extract the first word of "python", so it can be a program name with args.
14869set dummy python; ac_word=$2
14870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14871$as_echo_n "checking for $ac_word... " >&6; }
14872if ${ac_cv_path_ac_pt_PYTHON+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874else
14875 case $ac_pt_PYTHON in
14876 [\\/]* | ?:[\\/]*)
14877 ac_cv_path_ac_pt_PYTHON="$ac_pt_PYTHON" # Let the user override the test with a path.
14878 ;;
14879 *)
14880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881for as_dir in $PATH
14882do
14883 IFS=$as_save_IFS
14884 test -z "$as_dir" && as_dir=.
14885 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
14887 ac_cv_path_ac_pt_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14889 break 2
14890 fi
14891done
14892 done
14893IFS=$as_save_IFS
14894
14895 ;;
14896esac
14897fi
14898ac_pt_PYTHON=$ac_cv_path_ac_pt_PYTHON
14899if test -n "$ac_pt_PYTHON"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON" >&5
14901$as_echo "$ac_pt_PYTHON" >&6; }
14902else
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904$as_echo "no" >&6; }
14905fi
14906
14907 if test "x$ac_pt_PYTHON" = x; then
14908 PYTHON=""
14909 else
14910 case $cross_compiling:$ac_tool_warned in
14911yes:)
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14914ac_tool_warned=yes ;;
14915esac
14916 PYTHON=$ac_pt_PYTHON
14917 fi
14918else
14919 PYTHON="$ac_cv_path_PYTHON"
14920fi
14921
14922
14923fi
14924
14925 SUBSTITUTED_PYTHON=yes
14926
14927
14928fi
14929
14930fi
14931
14932 if test -z "$PYTHON"; then :
14933 PYTHON=no
14934
14935fi
14936
14937
d6ce1786
C
14938 if test "x$PYTHON" = xno -a -z "$with_python"; then :
14939 for ac_prog in python python3 python3.2 python3.1 python2 python2.7 python2.6 python2.5
14940do
14941 # Extract the first word of "$ac_prog", so it can be a program name with args.
14942set dummy $ac_prog; ac_word=$2
14943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14944$as_echo_n "checking for $ac_word... " >&6; }
14945if ${ac_cv_path_PYTHON+:} false; then :
14946 $as_echo_n "(cached) " >&6
14947else
14948 case $PYTHON in
14949 [\\/]* | ?:[\\/]*)
14950 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14951 ;;
14952 *)
14953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954for as_dir in $PATH
14955do
14956 IFS=$as_save_IFS
14957 test -z "$as_dir" && as_dir=.
14958 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 14959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6ce1786
C
14960 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14962 break 2
14963 fi
14964done
14965 done
14966IFS=$as_save_IFS
14967
14968 ;;
14969esac
14970fi
14971PYTHON=$ac_cv_path_PYTHON
14972if test -n "$PYTHON"; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14974$as_echo "$PYTHON" >&6; }
14975else
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14977$as_echo "no" >&6; }
14978fi
14979
14980
14981 test -n "$PYTHON" && break
14982done
14983
14984 if test -z "$PYTHON"; then :
14985 PYTHON=no
14986
14987fi
14988
14989fi
14990
feec80c3 14991 if test "x$PYTHON" = xno -a -n "$with_python" -a "x$with_python" != xyes; then :
d6ce1786
C
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: $with_python is not a found as tool, therefore interpreted as version" >&5
14993$as_echo "$as_me: $with_python is not a found as tool, therefore interpreted as version" >&6;}
14994 PYVER="$with_python"
feec80c3
C
14995
14996
14997fi
14998
14999 if test "x$PYTHON" != xno; then :
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python version" >&5
15001$as_echo_n "checking python version... " >&6; }
15002 PYVER=`$PYTHON -c "import sys; print(sys.version[:3])"`
15003 if test -n "$PYVER"; then :
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYVER found" >&5
15005$as_echo "$PYVER found" >&6; }
15006else
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15008$as_echo "failed" >&6; }
15009fi
15010
15011
15012fi
15013
15014else
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: python version assumed to be $PYVER" >&5
15016$as_echo "$as_me: python version assumed to be $PYVER" >&6;}
15017
15018fi
15019
d6ce1786
C
15020 PYVER_MAJOR=${PYVER%%.*}
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: python major version: $PYVER_MAJOR" >&5
15023$as_echo "$as_me: python major version: $PYVER_MAJOR" >&6;}
15024
feec80c3
C
15025
15026 if test -z "$PYVER"; then :
15027 if test "x$enable_python" = xyes; then :
15028 as_fn_error $? "python scripting is enabled explicitly but the version of python could not be determined" "$LINENO" 5
15029
15030fi
15031
15032else
d6ce1786
C
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for the corresponding python library" >&5
15034$as_echo "$as_me: looking for the corresponding python library" >&6;}
feec80c3
C
15035
15036pkg_failed=no
15037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
15038$as_echo_n "checking for PYTHON... " >&6; }
15039
15040if test -n "$PYTHON_CFLAGS"; then
15041 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
15042 elif test -n "$PKG_CONFIG"; then
15043 if test -n "$PKG_CONFIG" && \
15044 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5
15045 ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5
15046 ac_status=$?
15047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15048 test $ac_status = 0; }; then
15049 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-$PYVER" 2>/dev/null`
abad11c5 15050 test "x$?" != "x0" && pkg_failed=yes
feec80c3
C
15051else
15052 pkg_failed=yes
15053fi
15054 else
15055 pkg_failed=untried
15056fi
15057if test -n "$PYTHON_LIBS"; then
15058 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
15059 elif test -n "$PKG_CONFIG"; then
15060 if test -n "$PKG_CONFIG" && \
15061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\$PYVER\""; } >&5
15062 ($PKG_CONFIG --exists --print-errors "python-$PYVER") 2>&5
15063 ac_status=$?
15064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15065 test $ac_status = 0; }; then
15066 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-$PYVER" 2>/dev/null`
abad11c5 15067 test "x$?" != "x0" && pkg_failed=yes
feec80c3
C
15068else
15069 pkg_failed=yes
15070fi
15071 else
15072 pkg_failed=untried
15073fi
15074
15075
15076
15077if test $pkg_failed = yes; then
abad11c5
C
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079$as_echo "no" >&6; }
feec80c3
C
15080
15081if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15082 _pkg_short_errors_supported=yes
15083else
15084 _pkg_short_errors_supported=no
15085fi
15086 if test $_pkg_short_errors_supported = yes; then
abad11c5 15087 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-$PYVER" 2>&1`
feec80c3 15088 else
abad11c5 15089 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-$PYVER" 2>&1`
feec80c3
C
15090 fi
15091 # Put the nasty error message in config.log where it belongs
15092 echo "$PYTHON_PKG_ERRORS" >&5
15093
abad11c5 15094 HAVE_PYTHON=no
feec80c3
C
15095
15096elif test $pkg_failed = untried; then
abad11c5
C
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15098$as_echo "no" >&6; }
feec80c3
C
15099 HAVE_PYTHON=no
15100
15101else
15102 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
15103 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15105$as_echo "yes" >&6; }
15106 HAVE_PYTHON=yes
15107
15108fi
15109
15110 if test "x$HAVE_PYTHON" != xyes -a "x$enable_python" != xyes; then :
d6ce1786
C
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: trying the default python library as fallback" >&5
15112$as_echo "$as_me: trying the default python library as fallback" >&6;}
feec80c3
C
15113
15114pkg_failed=no
15115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
15116$as_echo_n "checking for PYTHON... " >&6; }
15117
15118if test -n "$PYTHON_CFLAGS"; then
15119 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
15120 elif test -n "$PKG_CONFIG"; then
15121 if test -n "$PKG_CONFIG" && \
15122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
15123 ($PKG_CONFIG --exists --print-errors "python") 2>&5
15124 ac_status=$?
15125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15126 test $ac_status = 0; }; then
15127 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null`
abad11c5 15128 test "x$?" != "x0" && pkg_failed=yes
feec80c3
C
15129else
15130 pkg_failed=yes
15131fi
15132 else
15133 pkg_failed=untried
15134fi
15135if test -n "$PYTHON_LIBS"; then
15136 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
15137 elif test -n "$PKG_CONFIG"; then
15138 if test -n "$PKG_CONFIG" && \
15139 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
15140 ($PKG_CONFIG --exists --print-errors "python") 2>&5
15141 ac_status=$?
15142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15143 test $ac_status = 0; }; then
15144 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null`
abad11c5 15145 test "x$?" != "x0" && pkg_failed=yes
feec80c3
C
15146else
15147 pkg_failed=yes
15148fi
15149 else
15150 pkg_failed=untried
15151fi
15152
15153
15154
15155if test $pkg_failed = yes; then
abad11c5
C
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157$as_echo "no" >&6; }
feec80c3
C
15158
15159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15160 _pkg_short_errors_supported=yes
15161else
15162 _pkg_short_errors_supported=no
15163fi
15164 if test $_pkg_short_errors_supported = yes; then
abad11c5 15165 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python" 2>&1`
feec80c3 15166 else
abad11c5 15167 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python" 2>&1`
feec80c3
C
15168 fi
15169 # Put the nasty error message in config.log where it belongs
15170 echo "$PYTHON_PKG_ERRORS" >&5
15171
abad11c5 15172 HAVE_PYTHON=no
feec80c3
C
15173
15174elif test $pkg_failed = untried; then
abad11c5
C
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15176$as_echo "no" >&6; }
feec80c3
C
15177 HAVE_PYTHON=no
15178
15179else
15180 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
15181 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183$as_echo "yes" >&6; }
15184 HAVE_PYTHON=yes
15185
15186fi
15187
15188fi
15189
15190fi
15191
15192fi
15193
15194if test -z "$enable_python"; then :
15195 if test "x$HAVE_PYTHON" = xyes; then :
15196 enable_python=yes
15197
15198
15199else
15200 enable_python=no
15201
15202
15203fi
15204
15205fi
15206
15207if test "x$enable_python" != xno; then :
15208 if test "x$HAVE_PYTHON" = xyes; then :
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: support for python scripts is enabled" >&5
15210$as_echo "$as_me: support for python scripts is enabled" >&6;}
15211
15212else
15213 as_fn_error $? "the python scripts feature is enabled but the pkg-config python library is not found" "$LINENO" 5
15214
15215fi
15216
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pycaml" >&5
15218$as_echo "$as_me: configuring package pycaml" >&6;}
15219 # Check whether --enable-pycaml was given.
15220if test "${enable_pycaml+set}" = set; then :
15221 enableval=$enable_pycaml;
15222fi
15223
15224
15225 if test "x$enable_pycaml" != xno; then :
15226
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pycaml" >&5
15228$as_echo_n "checking for OCaml findlib package pycaml... " >&6; }
15229
15230 unset found
15231 unset pkg
15232 found=no
15233 for pkg in pycaml ; do
15234 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15236$as_echo "found" >&6; }
15237 OCAML_PKG_pycaml=$pkg
15238 found=yes
15239 break
15240 fi
15241 done
15242 if test "$found" = "no" ; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15244$as_echo "not found" >&6; }
15245 OCAML_PKG_pycaml=no
15246 fi
15247
15248
15249
15250 if test "x$OCAML_PKG_pycaml" != xno; then :
15251 PATH_pycaml=`$OCAMLFIND query pycaml 2>/dev/null`
15252
15253
15254fi
15255
15256 GLOBAL_pycaml=$OCAML_PKG_pycaml
15257
15258
15259 if test "x$GLOBAL_pycaml" != xno; then :
15260 enable_pycaml=yes
15261
15262
15263else
15264 if test "x$enable_pycaml" = xyes; then :
15265 as_fn_error $? "OCaml package pycaml is not available but requested explicitly" "$LINENO" 5
15266
15267fi
d6ce1786
C
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pycaml is not available" >&5
15269$as_echo "$as_me: OCaml package pycaml is not available" >&6;}
feec80c3
C
15270 enable_pycaml=no
15271
15272
15273fi
15274
15275fi
15276
15277 if test "x$enable_pycaml" = xno; then :
15278 { pkgdir=; unset pkgdir;}
15279 pkgdir="$COCCI_OCAML_EXTERNAL/pycaml/"
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pycaml" >&5
15281$as_echo_n "checking for a bundled substitute of pycaml... " >&6; }
15282 if test -d "$pkgdir"; then :
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15284$as_echo "yes" >&6; }
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pycaml in $pkgdir" >&5
15286$as_echo "$as_me: using bundled substitute for pycaml in $pkgdir" >&6;}
15287 enable_pycaml=local
15288
15289 PATH_pycaml="$pkgdir"
15290
15291
15292else
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
15294$as_echo "not available" >&6; }
15295fi
15296
15297fi
15298
15299 if test "x$enable_pycaml" != xno; then :
15300 FEATURE_pycaml=1
15301
15302 FLAGS_pycaml='$(FLAGS_pycaml)'
15303
d6ce1786
C
15304 OPTFLAGS_pycaml='$(OPTFLAGS_pycaml)'
15305
feec80c3
C
15306
15307 if test "x$enable_pycaml" = xlocal; then :
15308 LOCALLIB_pycaml=1
15309
15310 MODULES_pycaml='$(LOCAL_pycaml)'
15311
15312 MODULESOPT_pycaml='$(LOCALOPT_pycaml)'
15313
15314
15315 if test -f "$PATH_pycaml/Makefile"; then :
15316 MAKE_pycaml=$PATH_pycaml
15317
15318
15319else
15320 MAKE_pycaml=
15321
15322
15323fi
15324
15325else
15326 MODULES_pycaml='$(GLOBAL_pycaml)'
15327
15328 MODULESOPT_pycaml='$(GLOBALOPT_pycaml)'
15329
15330
15331fi
15332
15333fi
15334
15335 if test "x$enable_pycaml" = xno; then :
15336 as_fn_error $? "OCaml package pycaml is required. Please make sure it is available." "$LINENO" 5
15337
15338fi
15339
15340 PYCOCCI_MODULE=Yes_pycocci
15341
15342 PYCOCCI_FILE=yes_pycocci.ml
15343
15344
15345else
15346 FEATURE_pycaml=0
15347
15348 LOCALLIB_pycaml=0
15349
15350 FLAGS_pycaml=
15351
15352 MODULES_pycaml=
15353
15354 MODULESOPT_pycaml=
15355
15356 PATH_pycaml=
15357
15358
15359 PYCOCCI_MODULE=No_pycocci
15360
15361 PYCOCCI_FILE=no_pycocci.ml
15362
15363
15364fi
15365
15366
15367# Check whether --enable-pcre-syntax was given.
15368if test "${enable_pcre_syntax+set}" = set; then :
15369 enableval=$enable_pcre_syntax;
15370fi
15371
15372if test "x$enable_pcre_syntax" != "xno"; then :
15373
15374pkg_failed=no
15375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
15376$as_echo_n "checking for PCRE... " >&6; }
15377
15378if test -n "$PCRE_CFLAGS"; then
15379 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
15380 elif test -n "$PKG_CONFIG"; then
15381 if test -n "$PKG_CONFIG" && \
15382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
15383 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
15384 ac_status=$?
15385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15386 test $ac_status = 0; }; then
15387 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
abad11c5 15388 test "x$?" != "x0" && pkg_failed=yes
feec80c3
C
15389else
15390 pkg_failed=yes
15391fi
15392 else
15393 pkg_failed=untried
15394fi
15395if test -n "$PCRE_LIBS"; then
15396 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
15397 elif test -n "$PKG_CONFIG"; then
15398 if test -n "$PKG_CONFIG" && \
15399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5
15400 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
15401 ac_status=$?
15402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15403 test $ac_status = 0; }; then
15404 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
abad11c5 15405 test "x$?" != "x0" && pkg_failed=yes
feec80c3
C
15406else
15407 pkg_failed=yes
15408fi
15409 else
15410 pkg_failed=untried
15411fi
15412
15413
15414
15415if test $pkg_failed = yes; then
abad11c5
C
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417$as_echo "no" >&6; }
feec80c3
C
15418
15419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15420 _pkg_short_errors_supported=yes
15421else
15422 _pkg_short_errors_supported=no
15423fi
15424 if test $_pkg_short_errors_supported = yes; then
abad11c5 15425 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre" 2>&1`
feec80c3 15426 else
abad11c5 15427 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre" 2>&1`
feec80c3
C
15428 fi
15429 # Put the nasty error message in config.log where it belongs
15430 echo "$PCRE_PKG_ERRORS" >&5
15431
abad11c5 15432 HAVE_PCRE=no
feec80c3
C
15433
15434elif test $pkg_failed = untried; then
abad11c5
C
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15436$as_echo "no" >&6; }
feec80c3
C
15437 HAVE_PCRE=no
15438
15439else
15440 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
15441 PCRE_LIBS=$pkg_cv_PCRE_LIBS
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15443$as_echo "yes" >&6; }
15444 HAVE_PCRE=yes
15445
15446fi
15447 if test -z "$enable_pcre_syntax" -a "x$HAVE_PCRE" != xyes; then :
15448 enable_pcre_syntax=no
15449
15450
15451else
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring package pcre" >&5
15453$as_echo "$as_me: configuring package pcre" >&6;}
15454 # Check whether --enable-pcre was given.
15455if test "${enable_pcre+set}" = set; then :
15456 enableval=$enable_pcre;
15457fi
15458
15459
15460 if test "x$enable_pcre" != xno; then :
15461
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCaml findlib package pcre" >&5
15463$as_echo_n "checking for OCaml findlib package pcre... " >&6; }
15464
15465 unset found
15466 unset pkg
15467 found=no
15468 for pkg in pcre ; do
15469 if $OCAMLFIND query $pkg >/dev/null 2>/dev/null; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15471$as_echo "found" >&6; }
15472 OCAML_PKG_pcre=$pkg
15473 found=yes
15474 break
15475 fi
15476 done
15477 if test "$found" = "no" ; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15479$as_echo "not found" >&6; }
15480 OCAML_PKG_pcre=no
15481 fi
15482
15483
15484
15485 if test "x$OCAML_PKG_pcre" != xno; then :
15486 PATH_pcre=`$OCAMLFIND query pcre 2>/dev/null`
15487
15488
15489fi
15490
15491 GLOBAL_pcre=$OCAML_PKG_pcre
15492
15493
15494 if test "x$GLOBAL_pcre" != xno; then :
15495 enable_pcre=yes
15496
15497
15498else
15499 if test "x$enable_pcre" = xyes; then :
15500 as_fn_error $? "OCaml package pcre is not available but requested explicitly" "$LINENO" 5
15501
15502fi
d6ce1786
C
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: OCaml package pcre is not available" >&5
15504$as_echo "$as_me: OCaml package pcre is not available" >&6;}
feec80c3
C
15505 enable_pcre=no
15506
15507
15508fi
15509
15510fi
15511
15512 if test "x$enable_pcre" = xno; then :
15513 { pkgdir=; unset pkgdir;}
15514 pkgdir="$COCCI_OCAML_EXTERNAL/pcre/"
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a bundled substitute of pcre" >&5
15516$as_echo_n "checking for a bundled substitute of pcre... " >&6; }
15517 if test -d "$pkgdir"; then :
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15519$as_echo "yes" >&6; }
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: using bundled substitute for pcre in $pkgdir" >&5
15521$as_echo "$as_me: using bundled substitute for pcre in $pkgdir" >&6;}
15522 enable_pcre=local
15523
15524 PATH_pcre="$pkgdir"
15525
15526
15527else
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
15529$as_echo "not available" >&6; }
15530fi
15531
15532fi
15533
15534 if test "x$enable_pcre" != xno; then :
15535 FEATURE_pcre=1
15536
15537 FLAGS_pcre='$(FLAGS_pcre)'
15538
d6ce1786
C
15539 OPTFLAGS_pcre='$(OPTFLAGS_pcre)'
15540
feec80c3
C
15541
15542 if test "x$enable_pcre" = xlocal; then :
15543 LOCALLIB_pcre=1
15544
15545 MODULES_pcre='$(LOCAL_pcre)'
15546
15547 MODULESOPT_pcre='$(LOCALOPT_pcre)'
15548
15549
15550 if test -f "$PATH_pcre/Makefile"; then :
15551 MAKE_pcre=$PATH_pcre
15552
15553
15554else
15555 MAKE_pcre=
15556
15557
15558fi
15559
15560else
15561 MODULES_pcre='$(GLOBAL_pcre)'
15562
15563 MODULESOPT_pcre='$(GLOBALOPT_pcre)'
15564
15565
15566fi
15567
15568fi
15569 enable_pcre_syntax=$enable_pcre
15570
15571fi
15572
15573fi
15574
15575if test "x$enable_pcre_syntax" != xno; then :
15576 if test "x$HAVE_PCRE" = xyes; then :
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: support for pcre syntax is enabled" >&5
15578$as_echo "$as_me: support for pcre syntax is enabled" >&6;}
15579
15580else
15581 as_fn_error $? "the pcre feature is enabled but the pkg-config libpcre library is not found" "$LINENO" 5
15582
15583fi
15584
15585 REGEXP_MODULE=Regexp_pcre
15586
15587 REGEXP_FILE=regexp_pcre.ml
15588
15589
15590else
15591 FEATURE_pcre=0
15592
15593 LOCALLIB_pcre=0
15594
15595 FLAGS_pcre=
15596
15597 MODULES_pcre=
15598
15599 MODULESOPT_pcre=
15600
15601 PATH_pcre=
15602
15603
15604 REGEXP_MODULE=Regexp_str
15605
15606 REGEXP_FILE=regexp_str.ml
15607
15608
15609fi
15610
15611
feec80c3
C
15612
15613
15614if test "$prefix" = "NONE"; then :
15615 prefix=$ac_default_prefix
15616fi
15617
15618
15619
15620SHAREDIR="${prefix}/share/coccinelle"
15621
15622
15623if test "x$enable_python" != xno; then :
15624 FEATURE_PYTHON=1
15625
15626
15627else
15628 FEATURE_PYTHON=0
15629
15630
15631fi
15632
15633if test "x$enable_ocaml" != xno; then :
15634 FEATURE_OCAML=1
15635
15636
15637else
15638 FEATURE_OCAML=0
15639
15640
15641fi
15642
d6ce1786 15643if test "x$OCAMLATLEAST311" = xyes -a "x$enable_ocaml" = xyes -a "x$OCAMLOPT" != xno; then :
feec80c3
C
15644 DYNLINK_IS_NATIVE=Dynlink.is_native
15645
15646
15647else
15648 DYNLINK_IS_NATIVE=false
15649
15650
15651fi
15652
15653
15654
15655# Check whether --with-pdflatex was given.
15656if test "${with_pdflatex+set}" = set; then :
15657 withval=$with_pdflatex;
15658fi
15659
15660 with_PDFLATEX="$with_pdflatex"
15661
feec80c3
C
15662 if test -n "$with_PDFLATEX" -a "x$with_PDFLATEX" != xno -a "x$with_PDFLATEX" != xyes; then :
15663 PDFLATEX="$with_PDFLATEX"
15664
15665
d6ce1786
C
15666else
15667 PDFLATEX="pdflatex"
15668
15669
feec80c3
C
15670fi
15671
d6ce1786
C
15672 if test "x$with_PDFLATEX" = xno; then :
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex is disabled explicitly" >&5
15674$as_echo "$as_me: pdflatex is disabled explicitly" >&6;}
15675 PDFLATEX=no
15676
15677
15678else
15679 if test "x$PDFLATEX" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then :
feec80c3
C
15680
15681
abad11c5
C
15682
15683
15684
15685
15686
feec80c3
C
15687if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15688 if test -n "$ac_tool_prefix"; then
15689 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15690set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15692$as_echo_n "checking for $ac_word... " >&6; }
15693if ${ac_cv_path_PKG_CONFIG+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695else
15696 case $PKG_CONFIG in
15697 [\\/]* | ?:[\\/]*)
15698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15699 ;;
15700 *)
15701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702for as_dir in $PATH
15703do
15704 IFS=$as_save_IFS
15705 test -z "$as_dir" && as_dir=.
15706 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15708 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15710 break 2
15711 fi
15712done
15713 done
15714IFS=$as_save_IFS
15715
15716 ;;
15717esac
15718fi
15719PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15720if test -n "$PKG_CONFIG"; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15722$as_echo "$PKG_CONFIG" >&6; }
15723else
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725$as_echo "no" >&6; }
15726fi
15727
15728
15729fi
15730if test -z "$ac_cv_path_PKG_CONFIG"; then
15731 ac_pt_PKG_CONFIG=$PKG_CONFIG
15732 # Extract the first word of "pkg-config", so it can be a program name with args.
15733set dummy pkg-config; ac_word=$2
15734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15735$as_echo_n "checking for $ac_word... " >&6; }
15736if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15737 $as_echo_n "(cached) " >&6
15738else
15739 case $ac_pt_PKG_CONFIG in
15740 [\\/]* | ?:[\\/]*)
15741 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15742 ;;
15743 *)
15744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15745for as_dir in $PATH
15746do
15747 IFS=$as_save_IFS
15748 test -z "$as_dir" && as_dir=.
15749 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15751 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15753 break 2
15754 fi
15755done
15756 done
15757IFS=$as_save_IFS
15758
15759 ;;
15760esac
15761fi
15762ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15763if test -n "$ac_pt_PKG_CONFIG"; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15765$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15766else
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768$as_echo "no" >&6; }
15769fi
15770
15771 if test "x$ac_pt_PKG_CONFIG" = x; then
15772 PKG_CONFIG=""
15773 else
15774 case $cross_compiling:$ac_tool_warned in
15775yes:)
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15778ac_tool_warned=yes ;;
15779esac
15780 PKG_CONFIG=$ac_pt_PKG_CONFIG
15781 fi
15782else
15783 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15784fi
15785
15786fi
15787if test -n "$PKG_CONFIG"; then
15788 _pkg_min_version=0.9.0
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15790$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15791 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15793$as_echo "yes" >&6; }
15794 else
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15796$as_echo "no" >&6; }
15797 PKG_CONFIG=""
15798 fi
feec80c3
C
15799fi
15800
d6ce1786 15801elif test "x$PDFLATEX" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then :
feec80c3
C
15802 # checking for ocamllex
15803 if test -n "$ac_tool_prefix"; then
15804 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
15805set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
15806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15807$as_echo_n "checking for $ac_word... " >&6; }
15808if ${ac_cv_path_OCAMLLEX+:} false; then :
15809 $as_echo_n "(cached) " >&6
15810else
15811 case $OCAMLLEX in
15812 [\\/]* | ?:[\\/]*)
15813 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
15814 ;;
15815 *)
15816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817for as_dir in $PATH
15818do
15819 IFS=$as_save_IFS
15820 test -z "$as_dir" && as_dir=.
15821 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15823 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15825 break 2
15826 fi
15827done
15828 done
15829IFS=$as_save_IFS
15830
15831 ;;
15832esac
15833fi
15834OCAMLLEX=$ac_cv_path_OCAMLLEX
15835if test -n "$OCAMLLEX"; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
15837$as_echo "$OCAMLLEX" >&6; }
15838else
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15840$as_echo "no" >&6; }
15841fi
15842
15843
15844fi
15845if test -z "$ac_cv_path_OCAMLLEX"; then
15846 ac_pt_OCAMLLEX=$OCAMLLEX
15847 # Extract the first word of "ocamllex", so it can be a program name with args.
15848set dummy ocamllex; ac_word=$2
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15850$as_echo_n "checking for $ac_word... " >&6; }
15851if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
15852 $as_echo_n "(cached) " >&6
15853else
15854 case $ac_pt_OCAMLLEX in
15855 [\\/]* | ?:[\\/]*)
15856 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
15857 ;;
15858 *)
15859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860for as_dir in $PATH
15861do
15862 IFS=$as_save_IFS
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15866 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
15867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15868 break 2
15869 fi
15870done
15871 done
15872IFS=$as_save_IFS
15873
15874 ;;
15875esac
15876fi
15877ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
15878if test -n "$ac_pt_OCAMLLEX"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
15880$as_echo "$ac_pt_OCAMLLEX" >&6; }
15881else
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883$as_echo "no" >&6; }
15884fi
15885
15886 if test "x$ac_pt_OCAMLLEX" = x; then
15887 OCAMLLEX="no"
15888 else
15889 case $cross_compiling:$ac_tool_warned in
15890yes:)
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15893ac_tool_warned=yes ;;
15894esac
15895 OCAMLLEX=$ac_pt_OCAMLLEX
15896 fi
15897else
15898 OCAMLLEX="$ac_cv_path_OCAMLLEX"
15899fi
15900
15901 if test "$OCAMLLEX" != "no"; then
15902 if test -n "$ac_tool_prefix"; then
15903 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
15904set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
15905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15906$as_echo_n "checking for $ac_word... " >&6; }
15907if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909else
15910 case $OCAMLLEXDOTOPT in
15911 [\\/]* | ?:[\\/]*)
15912 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
15913 ;;
15914 *)
15915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916for as_dir in $PATH
15917do
15918 IFS=$as_save_IFS
15919 test -z "$as_dir" && as_dir=.
15920 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15922 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15924 break 2
15925 fi
15926done
15927 done
15928IFS=$as_save_IFS
15929
15930 ;;
15931esac
15932fi
15933OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
15934if test -n "$OCAMLLEXDOTOPT"; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
15936$as_echo "$OCAMLLEXDOTOPT" >&6; }
15937else
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939$as_echo "no" >&6; }
15940fi
15941
15942
15943fi
15944if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
15945 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
15946 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
15947set dummy ocamllex.opt; ac_word=$2
15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15949$as_echo_n "checking for $ac_word... " >&6; }
15950if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
15951 $as_echo_n "(cached) " >&6
15952else
15953 case $ac_pt_OCAMLLEXDOTOPT in
15954 [\\/]* | ?:[\\/]*)
15955 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
15956 ;;
15957 *)
15958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15959for as_dir in $PATH
15960do
15961 IFS=$as_save_IFS
15962 test -z "$as_dir" && as_dir=.
15963 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 15964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
15965 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
15966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15967 break 2
15968 fi
15969done
15970 done
15971IFS=$as_save_IFS
15972
15973 ;;
15974esac
15975fi
15976ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
15977if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
15979$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
15980else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982$as_echo "no" >&6; }
15983fi
15984
15985 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
15986 OCAMLLEXDOTOPT="no"
15987 else
15988 case $cross_compiling:$ac_tool_warned in
15989yes:)
15990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15992ac_tool_warned=yes ;;
15993esac
15994 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
15995 fi
15996else
15997 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
15998fi
15999
16000 if test "$OCAMLLEXDOTOPT" != "no"; then
16001 OCAMLLEX=$OCAMLLEXDOTOPT
16002 fi
16003 fi
16004
16005
16006
d6ce1786 16007elif test "x$PDFLATEX" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then :
feec80c3
C
16008 if test -n "$ac_tool_prefix"; then
16009 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
16010set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
16011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16012$as_echo_n "checking for $ac_word... " >&6; }
16013if ${ac_cv_path_OCAMLYACC+:} false; then :
16014 $as_echo_n "(cached) " >&6
16015else
16016 case $OCAMLYACC in
16017 [\\/]* | ?:[\\/]*)
16018 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
16019 ;;
16020 *)
16021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16022for as_dir in $PATH
16023do
16024 IFS=$as_save_IFS
16025 test -z "$as_dir" && as_dir=.
16026 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16028 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
16029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16030 break 2
16031 fi
16032done
16033 done
16034IFS=$as_save_IFS
16035
16036 ;;
16037esac
16038fi
16039OCAMLYACC=$ac_cv_path_OCAMLYACC
16040if test -n "$OCAMLYACC"; then
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
16042$as_echo "$OCAMLYACC" >&6; }
16043else
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045$as_echo "no" >&6; }
16046fi
16047
16048
16049fi
16050if test -z "$ac_cv_path_OCAMLYACC"; then
16051 ac_pt_OCAMLYACC=$OCAMLYACC
16052 # Extract the first word of "ocamlyacc", so it can be a program name with args.
16053set dummy ocamlyacc; ac_word=$2
16054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16055$as_echo_n "checking for $ac_word... " >&6; }
16056if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
16057 $as_echo_n "(cached) " >&6
16058else
16059 case $ac_pt_OCAMLYACC in
16060 [\\/]* | ?:[\\/]*)
16061 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
16062 ;;
16063 *)
16064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16065for as_dir in $PATH
16066do
16067 IFS=$as_save_IFS
16068 test -z "$as_dir" && as_dir=.
16069 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16071 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
16072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16073 break 2
16074 fi
16075done
16076 done
16077IFS=$as_save_IFS
16078
16079 ;;
16080esac
16081fi
16082ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
16083if test -n "$ac_pt_OCAMLYACC"; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
16085$as_echo "$ac_pt_OCAMLYACC" >&6; }
16086else
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088$as_echo "no" >&6; }
16089fi
16090
16091 if test "x$ac_pt_OCAMLYACC" = x; then
16092 OCAMLYACC="no"
16093 else
16094 case $cross_compiling:$ac_tool_warned in
16095yes:)
16096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16098ac_tool_warned=yes ;;
16099esac
16100 OCAMLYACC=$ac_pt_OCAMLYACC
16101 fi
16102else
16103 OCAMLYACC="$ac_cv_path_OCAMLYACC"
16104fi
16105
16106
16107
16108
16109else
16110 if test -n "$ac_tool_prefix"; then
d6ce1786
C
16111 # Extract the first word of "${ac_tool_prefix}[$]PDFLATEX", so it can be a program name with args.
16112set dummy ${ac_tool_prefix}$PDFLATEX; ac_word=$2
feec80c3
C
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114$as_echo_n "checking for $ac_word... " >&6; }
16115if ${ac_cv_path_PDFLATEX+:} false; then :
16116 $as_echo_n "(cached) " >&6
16117else
16118 case $PDFLATEX in
16119 [\\/]* | ?:[\\/]*)
16120 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
16121 ;;
16122 *)
16123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16124for as_dir in $PATH
16125do
16126 IFS=$as_save_IFS
16127 test -z "$as_dir" && as_dir=.
16128 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16130 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16132 break 2
16133 fi
16134done
16135 done
16136IFS=$as_save_IFS
16137
16138 ;;
16139esac
16140fi
16141PDFLATEX=$ac_cv_path_PDFLATEX
16142if test -n "$PDFLATEX"; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
16144$as_echo "$PDFLATEX" >&6; }
16145else
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147$as_echo "no" >&6; }
16148fi
16149
16150
16151fi
16152if test -z "$ac_cv_path_PDFLATEX"; then
16153 ac_pt_PDFLATEX=$PDFLATEX
d6ce1786
C
16154 # Extract the first word of "[$]PDFLATEX", so it can be a program name with args.
16155set dummy $PDFLATEX; ac_word=$2
feec80c3
C
16156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16157$as_echo_n "checking for $ac_word... " >&6; }
16158if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then :
16159 $as_echo_n "(cached) " >&6
16160else
16161 case $ac_pt_PDFLATEX in
16162 [\\/]* | ?:[\\/]*)
16163 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
16164 ;;
16165 *)
16166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16167for as_dir in $PATH
16168do
16169 IFS=$as_save_IFS
16170 test -z "$as_dir" && as_dir=.
16171 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16173 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16175 break 2
16176 fi
16177done
16178 done
16179IFS=$as_save_IFS
16180
16181 ;;
16182esac
16183fi
16184ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
16185if test -n "$ac_pt_PDFLATEX"; then
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
16187$as_echo "$ac_pt_PDFLATEX" >&6; }
16188else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190$as_echo "no" >&6; }
16191fi
16192
16193 if test "x$ac_pt_PDFLATEX" = x; then
16194 PDFLATEX=""
16195 else
16196 case $cross_compiling:$ac_tool_warned in
16197yes:)
16198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16200ac_tool_warned=yes ;;
16201esac
16202 PDFLATEX=$ac_pt_PDFLATEX
16203 fi
16204else
16205 PDFLATEX="$ac_cv_path_PDFLATEX"
16206fi
16207
16208
16209fi
16210
16211
16212fi
16213
16214 if test -z "$PDFLATEX" -o "x$PDFLATEX" = xno; then :
16215 if test "x$with_PDFLATEX" = xyes; then :
16216 as_fn_error $? "--with=pdflatex is given explicitly but not found" "$LINENO" 5
16217
16218fi
16219
16220 if test -n "$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"; then :
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&5
16222$as_echo "$as_me: pdflatex not found. Trying substitute $COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex." >&6;}
16223 PDFLATEX="$COCCI_SRCDIR/setup/fake-pdflatex.sh pdflatex"
16224
16225 if test "xpdflatex" = xpkg-config -a "xPDFLATEX" = xPKG_CONFIG; then :
16226
16227
abad11c5
C
16228
16229
16230
16231
16232
feec80c3
C
16233if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16234 if test -n "$ac_tool_prefix"; then
16235 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16236set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16238$as_echo_n "checking for $ac_word... " >&6; }
16239if ${ac_cv_path_PKG_CONFIG+:} false; then :
16240 $as_echo_n "(cached) " >&6
16241else
16242 case $PKG_CONFIG in
16243 [\\/]* | ?:[\\/]*)
16244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16245 ;;
16246 *)
16247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16248for as_dir in $PATH
16249do
16250 IFS=$as_save_IFS
16251 test -z "$as_dir" && as_dir=.
16252 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16254 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16256 break 2
16257 fi
16258done
16259 done
16260IFS=$as_save_IFS
16261
16262 ;;
16263esac
16264fi
16265PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16266if test -n "$PKG_CONFIG"; then
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16268$as_echo "$PKG_CONFIG" >&6; }
16269else
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271$as_echo "no" >&6; }
16272fi
16273
16274
16275fi
16276if test -z "$ac_cv_path_PKG_CONFIG"; then
16277 ac_pt_PKG_CONFIG=$PKG_CONFIG
16278 # Extract the first word of "pkg-config", so it can be a program name with args.
16279set dummy pkg-config; ac_word=$2
16280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16281$as_echo_n "checking for $ac_word... " >&6; }
16282if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16283 $as_echo_n "(cached) " >&6
16284else
16285 case $ac_pt_PKG_CONFIG in
16286 [\\/]* | ?:[\\/]*)
16287 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16288 ;;
16289 *)
16290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16291for as_dir in $PATH
16292do
16293 IFS=$as_save_IFS
16294 test -z "$as_dir" && as_dir=.
16295 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16297 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16299 break 2
16300 fi
16301done
16302 done
16303IFS=$as_save_IFS
16304
16305 ;;
16306esac
16307fi
16308ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16309if test -n "$ac_pt_PKG_CONFIG"; then
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16311$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16312else
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16314$as_echo "no" >&6; }
16315fi
16316
16317 if test "x$ac_pt_PKG_CONFIG" = x; then
16318 PKG_CONFIG=""
16319 else
16320 case $cross_compiling:$ac_tool_warned in
16321yes:)
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16324ac_tool_warned=yes ;;
16325esac
16326 PKG_CONFIG=$ac_pt_PKG_CONFIG
16327 fi
16328else
16329 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16330fi
16331
16332fi
16333if test -n "$PKG_CONFIG"; then
16334 _pkg_min_version=0.9.0
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16336$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16337 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16339$as_echo "yes" >&6; }
16340 else
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342$as_echo "no" >&6; }
16343 PKG_CONFIG=""
16344 fi
feec80c3
C
16345fi
16346
16347elif test "xpdflatex" = xocamllex -a "xPDFLATEX" = xOCAMLLEX; then :
16348 # checking for ocamllex
16349 if test -n "$ac_tool_prefix"; then
16350 # Extract the first word of "${ac_tool_prefix}ocamllex", so it can be a program name with args.
16351set dummy ${ac_tool_prefix}ocamllex; ac_word=$2
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16353$as_echo_n "checking for $ac_word... " >&6; }
16354if ${ac_cv_path_OCAMLLEX+:} false; then :
16355 $as_echo_n "(cached) " >&6
16356else
16357 case $OCAMLLEX in
16358 [\\/]* | ?:[\\/]*)
16359 ac_cv_path_OCAMLLEX="$OCAMLLEX" # Let the user override the test with a path.
16360 ;;
16361 *)
16362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16363for as_dir in $PATH
16364do
16365 IFS=$as_save_IFS
16366 test -z "$as_dir" && as_dir=.
16367 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16369 ac_cv_path_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
16370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16371 break 2
16372 fi
16373done
16374 done
16375IFS=$as_save_IFS
16376
16377 ;;
16378esac
16379fi
16380OCAMLLEX=$ac_cv_path_OCAMLLEX
16381if test -n "$OCAMLLEX"; then
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
16383$as_echo "$OCAMLLEX" >&6; }
16384else
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386$as_echo "no" >&6; }
16387fi
16388
16389
16390fi
16391if test -z "$ac_cv_path_OCAMLLEX"; then
16392 ac_pt_OCAMLLEX=$OCAMLLEX
16393 # Extract the first word of "ocamllex", so it can be a program name with args.
16394set dummy ocamllex; ac_word=$2
16395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16396$as_echo_n "checking for $ac_word... " >&6; }
16397if ${ac_cv_path_ac_pt_OCAMLLEX+:} false; then :
16398 $as_echo_n "(cached) " >&6
16399else
16400 case $ac_pt_OCAMLLEX in
16401 [\\/]* | ?:[\\/]*)
16402 ac_cv_path_ac_pt_OCAMLLEX="$ac_pt_OCAMLLEX" # Let the user override the test with a path.
16403 ;;
16404 *)
16405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16406for as_dir in $PATH
16407do
16408 IFS=$as_save_IFS
16409 test -z "$as_dir" && as_dir=.
16410 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16412 ac_cv_path_ac_pt_OCAMLLEX="$as_dir/$ac_word$ac_exec_ext"
16413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16414 break 2
16415 fi
16416done
16417 done
16418IFS=$as_save_IFS
16419
16420 ;;
16421esac
16422fi
16423ac_pt_OCAMLLEX=$ac_cv_path_ac_pt_OCAMLLEX
16424if test -n "$ac_pt_OCAMLLEX"; then
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEX" >&5
16426$as_echo "$ac_pt_OCAMLLEX" >&6; }
16427else
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16429$as_echo "no" >&6; }
16430fi
16431
16432 if test "x$ac_pt_OCAMLLEX" = x; then
16433 OCAMLLEX="no"
16434 else
16435 case $cross_compiling:$ac_tool_warned in
16436yes:)
16437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16439ac_tool_warned=yes ;;
16440esac
16441 OCAMLLEX=$ac_pt_OCAMLLEX
16442 fi
16443else
16444 OCAMLLEX="$ac_cv_path_OCAMLLEX"
16445fi
16446
16447 if test "$OCAMLLEX" != "no"; then
16448 if test -n "$ac_tool_prefix"; then
16449 # Extract the first word of "${ac_tool_prefix}ocamllex.opt", so it can be a program name with args.
16450set dummy ${ac_tool_prefix}ocamllex.opt; ac_word=$2
16451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16452$as_echo_n "checking for $ac_word... " >&6; }
16453if ${ac_cv_path_OCAMLLEXDOTOPT+:} false; then :
16454 $as_echo_n "(cached) " >&6
16455else
16456 case $OCAMLLEXDOTOPT in
16457 [\\/]* | ?:[\\/]*)
16458 ac_cv_path_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test with a path.
16459 ;;
16460 *)
16461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16462for as_dir in $PATH
16463do
16464 IFS=$as_save_IFS
16465 test -z "$as_dir" && as_dir=.
16466 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16468 ac_cv_path_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
16469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16470 break 2
16471 fi
16472done
16473 done
16474IFS=$as_save_IFS
16475
16476 ;;
16477esac
16478fi
16479OCAMLLEXDOTOPT=$ac_cv_path_OCAMLLEXDOTOPT
16480if test -n "$OCAMLLEXDOTOPT"; then
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
16482$as_echo "$OCAMLLEXDOTOPT" >&6; }
16483else
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16485$as_echo "no" >&6; }
16486fi
16487
16488
16489fi
16490if test -z "$ac_cv_path_OCAMLLEXDOTOPT"; then
16491 ac_pt_OCAMLLEXDOTOPT=$OCAMLLEXDOTOPT
16492 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
16493set dummy ocamllex.opt; ac_word=$2
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16495$as_echo_n "checking for $ac_word... " >&6; }
16496if ${ac_cv_path_ac_pt_OCAMLLEXDOTOPT+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498else
16499 case $ac_pt_OCAMLLEXDOTOPT in
16500 [\\/]* | ?:[\\/]*)
16501 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$ac_pt_OCAMLLEXDOTOPT" # Let the user override the test with a path.
16502 ;;
16503 *)
16504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16505for as_dir in $PATH
16506do
16507 IFS=$as_save_IFS
16508 test -z "$as_dir" && as_dir=.
16509 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16511 ac_cv_path_ac_pt_OCAMLLEXDOTOPT="$as_dir/$ac_word$ac_exec_ext"
16512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16513 break 2
16514 fi
16515done
16516 done
16517IFS=$as_save_IFS
16518
16519 ;;
16520esac
16521fi
16522ac_pt_OCAMLLEXDOTOPT=$ac_cv_path_ac_pt_OCAMLLEXDOTOPT
16523if test -n "$ac_pt_OCAMLLEXDOTOPT"; then
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLLEXDOTOPT" >&5
16525$as_echo "$ac_pt_OCAMLLEXDOTOPT" >&6; }
16526else
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16528$as_echo "no" >&6; }
16529fi
16530
16531 if test "x$ac_pt_OCAMLLEXDOTOPT" = x; then
16532 OCAMLLEXDOTOPT="no"
16533 else
16534 case $cross_compiling:$ac_tool_warned in
16535yes:)
16536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16538ac_tool_warned=yes ;;
16539esac
16540 OCAMLLEXDOTOPT=$ac_pt_OCAMLLEXDOTOPT
16541 fi
16542else
16543 OCAMLLEXDOTOPT="$ac_cv_path_OCAMLLEXDOTOPT"
16544fi
16545
16546 if test "$OCAMLLEXDOTOPT" != "no"; then
16547 OCAMLLEX=$OCAMLLEXDOTOPT
16548 fi
16549 fi
16550
16551
16552
16553elif test "xpdflatex" = xocamlyacc -a "xPDFLATEX" = xOCAMLYACC; then :
16554 if test -n "$ac_tool_prefix"; then
16555 # Extract the first word of "${ac_tool_prefix}ocamlyacc", so it can be a program name with args.
16556set dummy ${ac_tool_prefix}ocamlyacc; ac_word=$2
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16558$as_echo_n "checking for $ac_word... " >&6; }
16559if ${ac_cv_path_OCAMLYACC+:} false; then :
16560 $as_echo_n "(cached) " >&6
16561else
16562 case $OCAMLYACC in
16563 [\\/]* | ?:[\\/]*)
16564 ac_cv_path_OCAMLYACC="$OCAMLYACC" # Let the user override the test with a path.
16565 ;;
16566 *)
16567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16568for as_dir in $PATH
16569do
16570 IFS=$as_save_IFS
16571 test -z "$as_dir" && as_dir=.
16572 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16574 ac_cv_path_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
16575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16576 break 2
16577 fi
16578done
16579 done
16580IFS=$as_save_IFS
16581
16582 ;;
16583esac
16584fi
16585OCAMLYACC=$ac_cv_path_OCAMLYACC
16586if test -n "$OCAMLYACC"; then
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
16588$as_echo "$OCAMLYACC" >&6; }
16589else
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16591$as_echo "no" >&6; }
16592fi
16593
16594
16595fi
16596if test -z "$ac_cv_path_OCAMLYACC"; then
16597 ac_pt_OCAMLYACC=$OCAMLYACC
16598 # Extract the first word of "ocamlyacc", so it can be a program name with args.
16599set dummy ocamlyacc; ac_word=$2
16600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16601$as_echo_n "checking for $ac_word... " >&6; }
16602if ${ac_cv_path_ac_pt_OCAMLYACC+:} false; then :
16603 $as_echo_n "(cached) " >&6
16604else
16605 case $ac_pt_OCAMLYACC in
16606 [\\/]* | ?:[\\/]*)
16607 ac_cv_path_ac_pt_OCAMLYACC="$ac_pt_OCAMLYACC" # Let the user override the test with a path.
16608 ;;
16609 *)
16610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16611for as_dir in $PATH
16612do
16613 IFS=$as_save_IFS
16614 test -z "$as_dir" && as_dir=.
16615 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16617 ac_cv_path_ac_pt_OCAMLYACC="$as_dir/$ac_word$ac_exec_ext"
16618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16619 break 2
16620 fi
16621done
16622 done
16623IFS=$as_save_IFS
16624
16625 ;;
16626esac
16627fi
16628ac_pt_OCAMLYACC=$ac_cv_path_ac_pt_OCAMLYACC
16629if test -n "$ac_pt_OCAMLYACC"; then
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_OCAMLYACC" >&5
16631$as_echo "$ac_pt_OCAMLYACC" >&6; }
16632else
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16634$as_echo "no" >&6; }
16635fi
16636
16637 if test "x$ac_pt_OCAMLYACC" = x; then
16638 OCAMLYACC="no"
16639 else
16640 case $cross_compiling:$ac_tool_warned in
16641yes:)
16642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16644ac_tool_warned=yes ;;
16645esac
16646 OCAMLYACC=$ac_pt_OCAMLYACC
16647 fi
16648else
16649 OCAMLYACC="$ac_cv_path_OCAMLYACC"
16650fi
16651
16652
16653
16654
16655else
16656 if test -n "$ac_tool_prefix"; then
16657 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
16658set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
16659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16660$as_echo_n "checking for $ac_word... " >&6; }
16661if ${ac_cv_path_PDFLATEX+:} false; then :
16662 $as_echo_n "(cached) " >&6
16663else
16664 case $PDFLATEX in
16665 [\\/]* | ?:[\\/]*)
16666 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
16667 ;;
16668 *)
16669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16670for as_dir in $PATH
16671do
16672 IFS=$as_save_IFS
16673 test -z "$as_dir" && as_dir=.
16674 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16676 ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16678 break 2
16679 fi
16680done
16681 done
16682IFS=$as_save_IFS
16683
16684 ;;
16685esac
16686fi
16687PDFLATEX=$ac_cv_path_PDFLATEX
16688if test -n "$PDFLATEX"; then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
16690$as_echo "$PDFLATEX" >&6; }
16691else
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16693$as_echo "no" >&6; }
16694fi
16695
16696
16697fi
16698if test -z "$ac_cv_path_PDFLATEX"; then
16699 ac_pt_PDFLATEX=$PDFLATEX
16700 # Extract the first word of "pdflatex", so it can be a program name with args.
16701set dummy pdflatex; ac_word=$2
16702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16703$as_echo_n "checking for $ac_word... " >&6; }
16704if ${ac_cv_path_ac_pt_PDFLATEX+:} false; then :
16705 $as_echo_n "(cached) " >&6
16706else
16707 case $ac_pt_PDFLATEX in
16708 [\\/]* | ?:[\\/]*)
16709 ac_cv_path_ac_pt_PDFLATEX="$ac_pt_PDFLATEX" # Let the user override the test with a path.
16710 ;;
16711 *)
16712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16713for as_dir in $PATH
16714do
16715 IFS=$as_save_IFS
16716 test -z "$as_dir" && as_dir=.
16717 for ac_exec_ext in '' $ac_executable_extensions; do
755320b0 16718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
feec80c3
C
16719 ac_cv_path_ac_pt_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
16720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16721 break 2
16722 fi
16723done
16724 done
16725IFS=$as_save_IFS
16726
16727 ;;
16728esac
16729fi
16730ac_pt_PDFLATEX=$ac_cv_path_ac_pt_PDFLATEX
16731if test -n "$ac_pt_PDFLATEX"; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PDFLATEX" >&5
16733$as_echo "$ac_pt_PDFLATEX" >&6; }
16734else
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16736$as_echo "no" >&6; }
16737fi
16738
16739 if test "x$ac_pt_PDFLATEX" = x; then
16740 PDFLATEX=""
16741 else
16742 case $cross_compiling:$ac_tool_warned in
16743yes:)
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16746ac_tool_warned=yes ;;
16747esac
16748 PDFLATEX=$ac_pt_PDFLATEX
16749 fi
16750else
16751 PDFLATEX="$ac_cv_path_PDFLATEX"
16752fi
16753
16754
16755fi
16756
16757 SUBSTITUTED_PDFLATEX=yes
16758
16759
16760fi
16761
16762fi
16763
16764 if test -z "$PDFLATEX"; then :
16765 PDFLATEX=no
16766
16767fi
16768
16769
16770
feec80c3
C
16771# Check whether --enable-release was given.
16772if test "${enable_release+set}" = set; then :
16773 enableval=$enable_release;
16774fi
16775
feec80c3
C
16776if test -z "$enable_release"; then :
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&5
16778$as_echo "$as_me: choosing the development Makefile configuration because the release configuration is not explicitly requested." >&6;}
16779 enable_release=no
16780
16781
16782fi
16783
755320b0 16784
feec80c3
C
16785if test "x$enable_release" = xyes; then :
16786 MAKETARGET_ALL=all-release
16787
16788
16789elif test "x$enable_release" = xno; then :
16790 MAKETARGET_ALL=all-dev
16791
16792
755320b0
C
16793elif test "x$enable_release" = xprofile; then :
16794 if test -z "$OCAMLPROF" -o "x$OCAMLPROF" = xno; then :
16795 as_fn_error $? "ocamlprof is required for profiling, but is absent." "$LINENO" 5
16796
16797fi
16798
16799 MAKETARGET_ALL=all-dev
16800
abad11c5 16801 OCAMLC="$COCCI_SRCDIR/setup/wrapper-ocamlcp.sh $OCAMLCORIG $OCAMLPROF"
755320b0
C
16802
16803 MODULES_profiling=profiling.cmo
16804
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: configured coccinelle for profiling" >&5
16806$as_echo "$as_me: configured coccinelle for profiling" >&6;}
16807
feec80c3
C
16808else
16809 MAKETARGET_ALL="$enable_release"
16810
16811
16812fi
16813
d6ce1786
C
16814# Check whether --enable-opt was given.
16815if test "${enable_opt+set}" = set; then :
16816 enableval=$enable_opt;
16817fi
16818
16819if test "x$OCAMLOPT" = xno -a "x$enable_opt" != xno; then :
16820 if test -n "$enable_release" -a "x$enable_release" != xyes -a "x$enable_release" != xno; then :
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&5
16822$as_echo "$as_me: warning: ensure that make target $enable_release does not depend on the unavailable ocamlopt" >&6;}
16823
16824elif test "x$enable_opt" = xyes; then :
16825 as_fn_error $? "the optimized version of coccinelle is requested explicitly, but ocamlopt is absent" "$LINENO" 5
16826
feec80c3 16827else
d6ce1786
C
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build because ocamlopt is not present" >&5
16829$as_echo "$as_me: the optimized version of coccinelle will not be build because ocamlopt is not present" >&6;}
16830 enable_opt=no
16831
16832
16833fi
16834
16835fi
16836
16837if test "x$OCAMLVERSION" = x3.11.2 -a -z "$enable_opt"; then :
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&5
16839$as_echo "$as_me: the optimized version of coccinelle will not be build by default due to OCaml version $OCAMLVERSION" >&6;}
16840 enable_opt=no
16841
16842
feec80c3
C
16843fi
16844
d6ce1786
C
16845if test "x$OPTIMIZED_dynlink" = xno -a "x$enable_ocaml" = xyes; then :
16846 if test -z "$enable_opt"; then :
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: the optimized version of coccinelle will not be build by default because ocaml scripting is enabled but the required optimized dynlink package is not present" >&5
16848$as_echo "$as_me: the optimized version of coccinelle will not be build by default because ocaml scripting is enabled but the required optimized dynlink package is not present" >&6;}
16849 enable_opt=no
16850
16851
16852elif test "x$enable_opt" = xyes; then :
16853 as_fn_error $? "the optimized version of coccinelle in combination with ocaml scripting requires the optimized version of the dynlik package, which is not present" "$LINENO" 5
16854
16855fi
feec80c3 16856
d6ce1786 16857fi
feec80c3 16858
d6ce1786
C
16859if test -z "$enable_opt"; then :
16860 if test "x$enable_release" = xyes -o "x$enable_release" = xno; then :
16861 enable_opt="$enable_release"
feec80c3 16862
feec80c3 16863
d6ce1786 16864fi
feec80c3 16865
d6ce1786 16866fi
feec80c3 16867
d6ce1786
C
16868if test "x$enable_opt" = xyes; then :
16869 SPATCHNAME=spatch.opt
feec80c3 16870
d6ce1786 16871 MAKETARGET_SPATCH=opt-only
feec80c3 16872
feec80c3 16873
d6ce1786
C
16874else
16875 SPATCHNAME=spatch
feec80c3 16876
d6ce1786
C
16877 MAKETARGET_SPATCH=byte-only
16878
16879
16880fi
16881
16882
abad11c5
C
16883# Check whether --enable-ocamlbuild was given.
16884if test "${enable_ocamlbuild+set}" = set; then :
16885 enableval=$enable_ocamlbuild;
16886fi
16887
16888if test "x$enable_ocamlbuild" = xyes; then :
16889 if test -z "$OCAMLBUILD" -o "x$OCAMLBUILD" = xno; then :
16890 as_fn_error $? "Ocamlbuild is required but is not installed." "$LINENO" 5
16891
16892fi
16893
16894 FEATURE_OCAMLBUILD=yes
16895
16896
16897else
16898 FEATURE_OCAMLBUILD=
16899
16900
16901fi
16902
16903
d6ce1786 16904
abad11c5 16905ac_config_files="$ac_config_files Makefile.config version.ml commons/commands.ml globals/config.ml globals/regexp.ml python/pycocci.ml ocaml/prepare_ocamlcocci.ml scripts/spatch.sh docs/spatch.1 myocamlbuild.ml setup/Makefile"
feec80c3
C
16906
16907
16908cat >confcache <<\_ACEOF
16909# This file is a shell script that caches the results of configure
16910# tests run on this system so they can be shared between configure
16911# scripts and configure runs, see configure's option --config-cache.
16912# It is not useful on other systems. If it contains results you don't
16913# want to keep, you may remove or edit it.
16914#
16915# config.status only pays attention to the cache file if you give it
16916# the --recheck option to rerun configure.
16917#
16918# `ac_cv_env_foo' variables (set or unset) will be overridden when
16919# loading this file, other *unset* `ac_cv_foo' will be assigned the
16920# following values.
16921
16922_ACEOF
16923
16924# The following way of writing the cache mishandles newlines in values,
16925# but we know of no workaround that is simple, portable, and efficient.
16926# So, we kill variables containing newlines.
16927# Ultrix sh set writes to stderr and can't be redirected directly,
16928# and sets the high bit in the cache file unless we assign to the vars.
16929(
16930 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16931 eval ac_val=\$$ac_var
16932 case $ac_val in #(
16933 *${as_nl}*)
16934 case $ac_var in #(
16935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16937 esac
16938 case $ac_var in #(
16939 _ | IFS | as_nl) ;; #(
16940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16941 *) { eval $ac_var=; unset $ac_var;} ;;
16942 esac ;;
16943 esac
16944 done
16945
16946 (set) 2>&1 |
16947 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16948 *${as_nl}ac_space=\ *)
16949 # `set' does not quote correctly, so add quotes: double-quote
16950 # substitution turns \\\\ into \\, and sed turns \\ into \.
16951 sed -n \
16952 "s/'/'\\\\''/g;
16953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16954 ;; #(
16955 *)
16956 # `set' quotes correctly as required by POSIX, so do not add quotes.
16957 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16958 ;;
16959 esac |
16960 sort
16961) |
16962 sed '
16963 /^ac_cv_env_/b end
16964 t clear
16965 :clear
16966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16967 t end
16968 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16969 :end' >>confcache
16970if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16971 if test -w "$cache_file"; then
16972 if test "x$cache_file" != "x/dev/null"; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16974$as_echo "$as_me: updating cache $cache_file" >&6;}
16975 if test ! -f "$cache_file" || test -h "$cache_file"; then
16976 cat confcache >"$cache_file"
16977 else
16978 case $cache_file in #(
16979 */* | ?:*)
16980 mv -f confcache "$cache_file"$$ &&
16981 mv -f "$cache_file"$$ "$cache_file" ;; #(
16982 *)
16983 mv -f confcache "$cache_file" ;;
16984 esac
16985 fi
16986 fi
16987 else
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16989$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16990 fi
16991fi
16992rm -f confcache
16993
16994test "x$prefix" = xNONE && prefix=$ac_default_prefix
16995# Let make expand exec_prefix.
16996test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16997
16998# Transform confdefs.h into DEFS.
16999# Protect against shell expansion while executing Makefile rules.
17000# Protect against Makefile macro expansion.
17001#
17002# If the first sed substitution is executed (which looks for macros that
17003# take arguments), then branch to the quote section. Otherwise,
17004# look for a macro that doesn't take arguments.
17005ac_script='
17006:mline
17007/\\$/{
17008 N
17009 s,\\\n,,
17010 b mline
17011}
17012t clear
17013:clear
17014s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17015t quote
17016s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17017t quote
17018b any
17019:quote
17020s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17021s/\[/\\&/g
17022s/\]/\\&/g
17023s/\$/$$/g
17024H
17025:any
17026${
17027 g
17028 s/^\n//
17029 s/\n/ /g
17030 p
17031}
17032'
17033DEFS=`sed -n "$ac_script" confdefs.h`
17034
17035
17036ac_libobjs=
17037ac_ltlibobjs=
17038U=
17039for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17040 # 1. Remove the extension, and $U if already installed.
17041 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17042 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17044 # will be set to the directory where LIBOBJS objects are built.
17045 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17046 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17047done
17048LIBOBJS=$ac_libobjs
17049
17050LTLIBOBJS=$ac_ltlibobjs
17051
17052
abad11c5
C
17053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17054$as_echo_n "checking that generated files are newer than configure... " >&6; }
17055 if test -n "$am_sleep_pid"; then
17056 # Hide warnings about reused PIDs.
17057 wait $am_sleep_pid 2>/dev/null
17058 fi
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17060$as_echo "done" >&6; }
17061 if test -n "$EXEEXT"; then
17062 am__EXEEXT_TRUE=
17063 am__EXEEXT_FALSE='#'
17064else
17065 am__EXEEXT_TRUE='#'
17066 am__EXEEXT_FALSE=
17067fi
17068
17069if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17070 as_fn_error $? "conditional \"AMDEP\" was never defined.
17071Usually this means the macro was only invoked conditionally." "$LINENO" 5
17072fi
17073if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17074 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17075Usually this means the macro was only invoked conditionally." "$LINENO" 5
17076fi
feec80c3
C
17077
17078: "${CONFIG_STATUS=./config.status}"
17079ac_write_fail=0
17080ac_clean_files_save=$ac_clean_files
17081ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17082{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17083$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17084as_write_fail=0
17085cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17086#! $SHELL
17087# Generated by $as_me.
17088# Run this file to recreate the current configuration.
17089# Compiler output produced by configure, useful for debugging
17090# configure, is in config.log if it exists.
17091
17092debug=false
17093ac_cs_recheck=false
17094ac_cs_silent=false
17095
17096SHELL=\${CONFIG_SHELL-$SHELL}
17097export SHELL
17098_ASEOF
17099cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17100## -------------------- ##
17101## M4sh Initialization. ##
17102## -------------------- ##
17103
17104# Be more Bourne compatible
17105DUALCASE=1; export DUALCASE # for MKS sh
17106if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17107 emulate sh
17108 NULLCMD=:
17109 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17110 # is contrary to our usage. Disable this feature.
17111 alias -g '${1+"$@"}'='"$@"'
17112 setopt NO_GLOB_SUBST
17113else
17114 case `(set -o) 2>/dev/null` in #(
17115 *posix*) :
17116 set -o posix ;; #(
17117 *) :
17118 ;;
17119esac
17120fi
17121
17122
17123as_nl='
17124'
17125export as_nl
17126# Printing a long string crashes Solaris 7 /usr/bin/printf.
17127as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17128as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17129as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17130# Prefer a ksh shell builtin over an external printf program on Solaris,
17131# but without wasting forks for bash or zsh.
17132if test -z "$BASH_VERSION$ZSH_VERSION" \
17133 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17134 as_echo='print -r --'
17135 as_echo_n='print -rn --'
17136elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17137 as_echo='printf %s\n'
17138 as_echo_n='printf %s'
17139else
17140 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17141 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17142 as_echo_n='/usr/ucb/echo -n'
17143 else
17144 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17145 as_echo_n_body='eval
17146 arg=$1;
17147 case $arg in #(
17148 *"$as_nl"*)
17149 expr "X$arg" : "X\\(.*\\)$as_nl";
17150 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17151 esac;
17152 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17153 '
17154 export as_echo_n_body
17155 as_echo_n='sh -c $as_echo_n_body as_echo'
17156 fi
17157 export as_echo_body
17158 as_echo='sh -c $as_echo_body as_echo'
17159fi
17160
17161# The user is always right.
17162if test "${PATH_SEPARATOR+set}" != set; then
17163 PATH_SEPARATOR=:
17164 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17165 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17166 PATH_SEPARATOR=';'
17167 }
17168fi
17169
17170
17171# IFS
17172# We need space, tab and new line, in precisely that order. Quoting is
17173# there to prevent editors from complaining about space-tab.
17174# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17175# splitting by setting IFS to empty value.)
17176IFS=" "" $as_nl"
17177
17178# Find who we are. Look in the path if we contain no directory separator.
17179as_myself=
17180case $0 in #((
17181 *[\\/]* ) as_myself=$0 ;;
17182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17183for as_dir in $PATH
17184do
17185 IFS=$as_save_IFS
17186 test -z "$as_dir" && as_dir=.
17187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17188 done
17189IFS=$as_save_IFS
17190
17191 ;;
17192esac
17193# We did not find ourselves, most probably we were run as `sh COMMAND'
17194# in which case we are not to be found in the path.
17195if test "x$as_myself" = x; then
17196 as_myself=$0
17197fi
17198if test ! -f "$as_myself"; then
17199 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17200 exit 1
17201fi
17202
17203# Unset variables that we do not need and which cause bugs (e.g. in
17204# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17205# suppresses any "Segmentation fault" message there. '((' could
17206# trigger a bug in pdksh 5.2.14.
17207for as_var in BASH_ENV ENV MAIL MAILPATH
17208do eval test x\${$as_var+set} = xset \
17209 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17210done
17211PS1='$ '
17212PS2='> '
17213PS4='+ '
17214
17215# NLS nuisances.
17216LC_ALL=C
17217export LC_ALL
17218LANGUAGE=C
17219export LANGUAGE
17220
17221# CDPATH.
17222(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17223
17224
17225# as_fn_error STATUS ERROR [LINENO LOG_FD]
17226# ----------------------------------------
17227# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17228# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17229# script with STATUS, using 1 if that was 0.
17230as_fn_error ()
17231{
17232 as_status=$1; test $as_status -eq 0 && as_status=1
17233 if test "$4"; then
17234 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17235 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17236 fi
17237 $as_echo "$as_me: error: $2" >&2
17238 as_fn_exit $as_status
17239} # as_fn_error
17240
17241
17242# as_fn_set_status STATUS
17243# -----------------------
17244# Set $? to STATUS, without forking.
17245as_fn_set_status ()
17246{
17247 return $1
17248} # as_fn_set_status
17249
17250# as_fn_exit STATUS
17251# -----------------
17252# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17253as_fn_exit ()
17254{
17255 set +e
17256 as_fn_set_status $1
17257 exit $1
17258} # as_fn_exit
17259
17260# as_fn_unset VAR
17261# ---------------
17262# Portably unset VAR.
17263as_fn_unset ()
17264{
17265 { eval $1=; unset $1;}
17266}
17267as_unset=as_fn_unset
17268# as_fn_append VAR VALUE
17269# ----------------------
17270# Append the text in VALUE to the end of the definition contained in VAR. Take
17271# advantage of any shell optimizations that allow amortized linear growth over
17272# repeated appends, instead of the typical quadratic growth present in naive
17273# implementations.
17274if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17275 eval 'as_fn_append ()
17276 {
17277 eval $1+=\$2
17278 }'
17279else
17280 as_fn_append ()
17281 {
17282 eval $1=\$$1\$2
17283 }
17284fi # as_fn_append
17285
17286# as_fn_arith ARG...
17287# ------------------
17288# Perform arithmetic evaluation on the ARGs, and store the result in the
17289# global $as_val. Take advantage of shells that can avoid forks. The arguments
17290# must be portable across $(()) and expr.
17291if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17292 eval 'as_fn_arith ()
17293 {
17294 as_val=$(( $* ))
17295 }'
17296else
17297 as_fn_arith ()
17298 {
17299 as_val=`expr "$@" || test $? -eq 1`
17300 }
17301fi # as_fn_arith
17302
17303
17304if expr a : '\(a\)' >/dev/null 2>&1 &&
17305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17306 as_expr=expr
17307else
17308 as_expr=false
17309fi
17310
17311if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17312 as_basename=basename
17313else
17314 as_basename=false
17315fi
17316
17317if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17318 as_dirname=dirname
17319else
17320 as_dirname=false
17321fi
17322
17323as_me=`$as_basename -- "$0" ||
17324$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17325 X"$0" : 'X\(//\)$' \| \
17326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17327$as_echo X/"$0" |
17328 sed '/^.*\/\([^/][^/]*\)\/*$/{
17329 s//\1/
17330 q
17331 }
17332 /^X\/\(\/\/\)$/{
17333 s//\1/
17334 q
17335 }
17336 /^X\/\(\/\).*/{
17337 s//\1/
17338 q
17339 }
17340 s/.*/./; q'`
17341
17342# Avoid depending upon Character Ranges.
17343as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17344as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17345as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17346as_cr_digits='0123456789'
17347as_cr_alnum=$as_cr_Letters$as_cr_digits
17348
17349ECHO_C= ECHO_N= ECHO_T=
17350case `echo -n x` in #(((((
17351-n*)
17352 case `echo 'xy\c'` in
17353 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17354 xy) ECHO_C='\c';;
17355 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17356 ECHO_T=' ';;
17357 esac;;
17358*)
17359 ECHO_N='-n';;
17360esac
17361
17362rm -f conf$$ conf$$.exe conf$$.file
17363if test -d conf$$.dir; then
17364 rm -f conf$$.dir/conf$$.file
17365else
17366 rm -f conf$$.dir
17367 mkdir conf$$.dir 2>/dev/null
17368fi
17369if (echo >conf$$.file) 2>/dev/null; then
17370 if ln -s conf$$.file conf$$ 2>/dev/null; then
17371 as_ln_s='ln -s'
17372 # ... but there are two gotchas:
17373 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17374 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
755320b0 17375 # In both cases, we have to default to `cp -pR'.
feec80c3 17376 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
755320b0 17377 as_ln_s='cp -pR'
feec80c3
C
17378 elif ln conf$$.file conf$$ 2>/dev/null; then
17379 as_ln_s=ln
17380 else
755320b0 17381 as_ln_s='cp -pR'
feec80c3
C
17382 fi
17383else
755320b0 17384 as_ln_s='cp -pR'
feec80c3
C
17385fi
17386rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17387rmdir conf$$.dir 2>/dev/null
17388
17389
17390# as_fn_mkdir_p
17391# -------------
17392# Create "$as_dir" as a directory, including parents if necessary.
17393as_fn_mkdir_p ()
17394{
17395
17396 case $as_dir in #(
17397 -*) as_dir=./$as_dir;;
17398 esac
17399 test -d "$as_dir" || eval $as_mkdir_p || {
17400 as_dirs=
17401 while :; do
17402 case $as_dir in #(
17403 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17404 *) as_qdir=$as_dir;;
17405 esac
17406 as_dirs="'$as_qdir' $as_dirs"
17407 as_dir=`$as_dirname -- "$as_dir" ||
17408$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17409 X"$as_dir" : 'X\(//\)[^/]' \| \
17410 X"$as_dir" : 'X\(//\)$' \| \
17411 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17412$as_echo X"$as_dir" |
17413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17414 s//\1/
17415 q
17416 }
17417 /^X\(\/\/\)[^/].*/{
17418 s//\1/
17419 q
17420 }
17421 /^X\(\/\/\)$/{
17422 s//\1/
17423 q
17424 }
17425 /^X\(\/\).*/{
17426 s//\1/
17427 q
17428 }
17429 s/.*/./; q'`
17430 test -d "$as_dir" && break
17431 done
17432 test -z "$as_dirs" || eval "mkdir $as_dirs"
17433 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17434
17435
17436} # as_fn_mkdir_p
17437if mkdir -p . 2>/dev/null; then
17438 as_mkdir_p='mkdir -p "$as_dir"'
17439else
17440 test -d ./-p && rmdir ./-p
17441 as_mkdir_p=false
17442fi
17443
755320b0
C
17444
17445# as_fn_executable_p FILE
17446# -----------------------
17447# Test if FILE is an executable regular file.
17448as_fn_executable_p ()
17449{
17450 test -f "$1" && test -x "$1"
17451} # as_fn_executable_p
17452as_test_x='test -x'
17453as_executable_p=as_fn_executable_p
feec80c3
C
17454
17455# Sed expression to map a string onto a valid CPP name.
17456as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17457
17458# Sed expression to map a string onto a valid variable name.
17459as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17460
17461
17462exec 6>&1
17463## ----------------------------------- ##
17464## Main body of $CONFIG_STATUS script. ##
17465## ----------------------------------- ##
17466_ASEOF
17467test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17468
17469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17470# Save the log message, to keep $0 and so on meaningful, and to
17471# report actual input values of CONFIG_FILES etc. instead of their
17472# values after options handling.
17473ac_log="
abad11c5 17474This file was extended by coccinelle $as_me 1.0.0-rc15, which was
755320b0 17475generated by GNU Autoconf 2.69. Invocation command line was
feec80c3
C
17476
17477 CONFIG_FILES = $CONFIG_FILES
17478 CONFIG_HEADERS = $CONFIG_HEADERS
17479 CONFIG_LINKS = $CONFIG_LINKS
17480 CONFIG_COMMANDS = $CONFIG_COMMANDS
17481 $ $0 $@
17482
17483on `(hostname || uname -n) 2>/dev/null | sed 1q`
17484"
17485
17486_ACEOF
17487
17488case $ac_config_files in *"
17489"*) set x $ac_config_files; shift; ac_config_files=$*;;
17490esac
17491
17492
17493
17494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17495# Files that config.status was made for.
17496config_files="$ac_config_files"
abad11c5 17497config_commands="$ac_config_commands"
feec80c3
C
17498
17499_ACEOF
17500
17501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17502ac_cs_usage="\
17503\`$as_me' instantiates files and other configuration actions
17504from templates according to the current configuration. Unless the files
17505and actions are specified as TAGs, all are instantiated by default.
17506
17507Usage: $0 [OPTION]... [TAG]...
17508
17509 -h, --help print this help, then exit
17510 -V, --version print version number and configuration settings, then exit
17511 --config print configuration, then exit
17512 -q, --quiet, --silent
17513 do not print progress messages
17514 -d, --debug don't remove temporary files
17515 --recheck update $as_me by reconfiguring in the same conditions
17516 --file=FILE[:TEMPLATE]
17517 instantiate the configuration file FILE
17518
17519Configuration files:
17520$config_files
17521
abad11c5
C
17522Configuration commands:
17523$config_commands
17524
feec80c3
C
17525Report bugs to <cocci@diku.dk>.
17526coccinelle home page: <http://coccinelle.lip6.fr/>."
17527
17528_ACEOF
17529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17530ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17531ac_cs_version="\\
abad11c5 17532coccinelle config.status 1.0.0-rc15
755320b0 17533configured by $0, generated by GNU Autoconf 2.69,
feec80c3
C
17534 with options \\"\$ac_cs_config\\"
17535
755320b0 17536Copyright (C) 2012 Free Software Foundation, Inc.
feec80c3
C
17537This config.status script is free software; the Free Software Foundation
17538gives unlimited permission to copy, distribute and modify it."
17539
17540ac_pwd='$ac_pwd'
17541srcdir='$srcdir'
17542INSTALL='$INSTALL'
17543MKDIR_P='$MKDIR_P'
abad11c5 17544AWK='$AWK'
feec80c3
C
17545test -n "\$AWK" || AWK=awk
17546_ACEOF
17547
17548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17549# The default lists apply if the user does not specify any file.
17550ac_need_defaults=:
17551while test $# != 0
17552do
17553 case $1 in
17554 --*=?*)
17555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17557 ac_shift=:
17558 ;;
17559 --*=)
17560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17561 ac_optarg=
17562 ac_shift=:
17563 ;;
17564 *)
17565 ac_option=$1
17566 ac_optarg=$2
17567 ac_shift=shift
17568 ;;
17569 esac
17570
17571 case $ac_option in
17572 # Handling of the options.
17573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17574 ac_cs_recheck=: ;;
17575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17576 $as_echo "$ac_cs_version"; exit ;;
17577 --config | --confi | --conf | --con | --co | --c )
17578 $as_echo "$ac_cs_config"; exit ;;
17579 --debug | --debu | --deb | --de | --d | -d )
17580 debug=: ;;
17581 --file | --fil | --fi | --f )
17582 $ac_shift
17583 case $ac_optarg in
17584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17585 '') as_fn_error $? "missing file argument" ;;
17586 esac
17587 as_fn_append CONFIG_FILES " '$ac_optarg'"
17588 ac_need_defaults=false;;
17589 --he | --h | --help | --hel | -h )
17590 $as_echo "$ac_cs_usage"; exit ;;
17591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17593 ac_cs_silent=: ;;
17594
17595 # This is an error.
17596 -*) as_fn_error $? "unrecognized option: \`$1'
17597Try \`$0 --help' for more information." ;;
17598
17599 *) as_fn_append ac_config_targets " $1"
17600 ac_need_defaults=false ;;
17601
17602 esac
17603 shift
17604done
17605
17606ac_configure_extra_args=
17607
17608if $ac_cs_silent; then
17609 exec 6>/dev/null
17610 ac_configure_extra_args="$ac_configure_extra_args --silent"
17611fi
17612
17613_ACEOF
17614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17615if \$ac_cs_recheck; then
755320b0 17616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
feec80c3
C
17617 shift
17618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17619 CONFIG_SHELL='$SHELL'
17620 export CONFIG_SHELL
17621 exec "\$@"
17622fi
17623
17624_ACEOF
17625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17626exec 5>>config.log
17627{
17628 echo
17629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17630## Running $as_me. ##
17631_ASBOX
17632 $as_echo "$ac_log"
17633} >&5
17634
17635_ACEOF
17636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
abad11c5
C
17637#
17638# INIT-COMMANDS
17639#
17640AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17641
feec80c3
C
17642_ACEOF
17643
17644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17645
17646# Handling of arguments.
17647for ac_config_target in $ac_config_targets
17648do
17649 case $ac_config_target in
abad11c5 17650 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
feec80c3
C
17651 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
17652 "version.ml") CONFIG_FILES="$CONFIG_FILES version.ml" ;;
17653 "commons/commands.ml") CONFIG_FILES="$CONFIG_FILES commons/commands.ml" ;;
17654 "globals/config.ml") CONFIG_FILES="$CONFIG_FILES globals/config.ml" ;;
17655 "globals/regexp.ml") CONFIG_FILES="$CONFIG_FILES globals/regexp.ml" ;;
17656 "python/pycocci.ml") CONFIG_FILES="$CONFIG_FILES python/pycocci.ml" ;;
17657 "ocaml/prepare_ocamlcocci.ml") CONFIG_FILES="$CONFIG_FILES ocaml/prepare_ocamlcocci.ml" ;;
17658 "scripts/spatch.sh") CONFIG_FILES="$CONFIG_FILES scripts/spatch.sh" ;;
17659 "docs/spatch.1") CONFIG_FILES="$CONFIG_FILES docs/spatch.1" ;;
abad11c5
C
17660 "myocamlbuild.ml") CONFIG_FILES="$CONFIG_FILES myocamlbuild.ml" ;;
17661 "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
feec80c3
C
17662
17663 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17664 esac
17665done
17666
17667
17668# If the user did not use the arguments to specify the items to instantiate,
17669# then the envvar interface is used. Set only those that are not.
17670# We use the long form for the default assignment because of an extremely
17671# bizarre bug on SunOS 4.1.3.
17672if $ac_need_defaults; then
17673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
abad11c5 17674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
feec80c3
C
17675fi
17676
17677# Have a temporary directory for convenience. Make it in the build tree
17678# simply because there is no reason against having it here, and in addition,
17679# creating and moving files from /tmp can sometimes cause problems.
17680# Hook for its removal unless debugging.
17681# Note that there is a small window in which the directory will not be cleaned:
17682# after its creation but before its name has been assigned to `$tmp'.
17683$debug ||
17684{
17685 tmp= ac_tmp=
17686 trap 'exit_status=$?
17687 : "${ac_tmp:=$tmp}"
17688 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17689' 0
17690 trap 'as_fn_exit 1' 1 2 13 15
17691}
17692# Create a (secure) tmp directory for tmp files.
17693
17694{
17695 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17696 test -d "$tmp"
17697} ||
17698{
17699 tmp=./conf$$-$RANDOM
17700 (umask 077 && mkdir "$tmp")
17701} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17702ac_tmp=$tmp
17703
17704# Set up the scripts for CONFIG_FILES section.
17705# No need to generate them if there are no CONFIG_FILES.
17706# This happens for instance with `./config.status config.h'.
17707if test -n "$CONFIG_FILES"; then
17708
17709
17710ac_cr=`echo X | tr X '\015'`
17711# On cygwin, bash can eat \r inside `` if the user requested igncr.
17712# But we know of no other shell where ac_cr would be empty at this
17713# point, so we can use a bashism as a fallback.
17714if test "x$ac_cr" = x; then
17715 eval ac_cr=\$\'\\r\'
17716fi
17717ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17718if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17719 ac_cs_awk_cr='\\r'
17720else
17721 ac_cs_awk_cr=$ac_cr
17722fi
17723
17724echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17725_ACEOF
17726
17727
17728{
17729 echo "cat >conf$$subs.awk <<_ACEOF" &&
17730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17731 echo "_ACEOF"
17732} >conf$$subs.sh ||
17733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17734ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17735ac_delim='%!_!# '
17736for ac_last_try in false false false false false :; do
17737 . ./conf$$subs.sh ||
17738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17739
17740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17741 if test $ac_delim_n = $ac_delim_num; then
17742 break
17743 elif $ac_last_try; then
17744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17745 else
17746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17747 fi
17748done
17749rm -f conf$$subs.sh
17750
17751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17752cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17753_ACEOF
17754sed -n '
17755h
17756s/^/S["/; s/!.*/"]=/
17757p
17758g
17759s/^[^!]*!//
17760:repl
17761t repl
17762s/'"$ac_delim"'$//
17763t delim
17764:nl
17765h
17766s/\(.\{148\}\)..*/\1/
17767t more1
17768s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17769p
17770n
17771b repl
17772:more1
17773s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17774p
17775g
17776s/.\{148\}//
17777t nl
17778:delim
17779h
17780s/\(.\{148\}\)..*/\1/
17781t more2
17782s/["\\]/\\&/g; s/^/"/; s/$/"/
17783p
17784b
17785:more2
17786s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17787p
17788g
17789s/.\{148\}//
17790t delim
17791' <conf$$subs.awk | sed '
17792/^[^""]/{
17793 N
17794 s/\n//
17795}
17796' >>$CONFIG_STATUS || ac_write_fail=1
17797rm -f conf$$subs.awk
17798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17799_ACAWK
17800cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17801 for (key in S) S_is_set[key] = 1
17802 FS = "\a"
17803
17804}
17805{
17806 line = $ 0
17807 nfields = split(line, field, "@")
17808 substed = 0
17809 len = length(field[1])
17810 for (i = 2; i < nfields; i++) {
17811 key = field[i]
17812 keylen = length(key)
17813 if (S_is_set[key]) {
17814 value = S[key]
17815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17816 len += length(value) + length(field[++i])
17817 substed = 1
17818 } else
17819 len += 1 + keylen
17820 }
17821
17822 print line
17823}
17824
17825_ACAWK
17826_ACEOF
17827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17829 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17830else
17831 cat
17832fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17833 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17834_ACEOF
17835
17836# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17837# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17838# trailing colons and then remove the whole line if VPATH becomes empty
17839# (actually we leave an empty line to preserve line numbers).
17840if test "x$srcdir" = x.; then
17841 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17842h
17843s///
17844s/^/:/
17845s/[ ]*$/:/
17846s/:\$(srcdir):/:/g
17847s/:\${srcdir}:/:/g
17848s/:@srcdir@:/:/g
17849s/^:*//
17850s/:*$//
17851x
17852s/\(=[ ]*\).*/\1/
17853G
17854s/\n//
17855s/^[^=]*=[ ]*$//
17856}'
17857fi
17858
17859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17860fi # test -n "$CONFIG_FILES"
17861
17862
abad11c5 17863eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
feec80c3
C
17864shift
17865for ac_tag
17866do
17867 case $ac_tag in
17868 :[FHLC]) ac_mode=$ac_tag; continue;;
17869 esac
17870 case $ac_mode$ac_tag in
17871 :[FHL]*:*);;
17872 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17873 :[FH]-) ac_tag=-:-;;
17874 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17875 esac
17876 ac_save_IFS=$IFS
17877 IFS=:
17878 set x $ac_tag
17879 IFS=$ac_save_IFS
17880 shift
17881 ac_file=$1
17882 shift
17883
17884 case $ac_mode in
17885 :L) ac_source=$1;;
17886 :[FH])
17887 ac_file_inputs=
17888 for ac_f
17889 do
17890 case $ac_f in
17891 -) ac_f="$ac_tmp/stdin";;
17892 *) # Look for the file first in the build tree, then in the source tree
17893 # (if the path is not absolute). The absolute path cannot be DOS-style,
17894 # because $ac_f cannot contain `:'.
17895 test -f "$ac_f" ||
17896 case $ac_f in
17897 [\\/$]*) false;;
17898 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17899 esac ||
17900 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17901 esac
17902 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17903 as_fn_append ac_file_inputs " '$ac_f'"
17904 done
17905
17906 # Let's still pretend it is `configure' which instantiates (i.e., don't
17907 # use $as_me), people would be surprised to read:
17908 # /* config.h. Generated by config.status. */
17909 configure_input='Generated from '`
17910 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17911 `' by configure.'
17912 if test x"$ac_file" != x-; then
17913 configure_input="$ac_file. $configure_input"
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17915$as_echo "$as_me: creating $ac_file" >&6;}
17916 fi
17917 # Neutralize special characters interpreted by sed in replacement strings.
17918 case $configure_input in #(
17919 *\&* | *\|* | *\\* )
17920 ac_sed_conf_input=`$as_echo "$configure_input" |
17921 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17922 *) ac_sed_conf_input=$configure_input;;
17923 esac
17924
17925 case $ac_tag in
17926 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17928 esac
17929 ;;
17930 esac
17931
17932 ac_dir=`$as_dirname -- "$ac_file" ||
17933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17934 X"$ac_file" : 'X\(//\)[^/]' \| \
17935 X"$ac_file" : 'X\(//\)$' \| \
17936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17937$as_echo X"$ac_file" |
17938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17939 s//\1/
17940 q
17941 }
17942 /^X\(\/\/\)[^/].*/{
17943 s//\1/
17944 q
17945 }
17946 /^X\(\/\/\)$/{
17947 s//\1/
17948 q
17949 }
17950 /^X\(\/\).*/{
17951 s//\1/
17952 q
17953 }
17954 s/.*/./; q'`
17955 as_dir="$ac_dir"; as_fn_mkdir_p
17956 ac_builddir=.
17957
17958case "$ac_dir" in
17959.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17960*)
17961 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17962 # A ".." for each directory in $ac_dir_suffix.
17963 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17964 case $ac_top_builddir_sub in
17965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17967 esac ;;
17968esac
17969ac_abs_top_builddir=$ac_pwd
17970ac_abs_builddir=$ac_pwd$ac_dir_suffix
17971# for backward compatibility:
17972ac_top_builddir=$ac_top_build_prefix
17973
17974case $srcdir in
17975 .) # We are building in place.
17976 ac_srcdir=.
17977 ac_top_srcdir=$ac_top_builddir_sub
17978 ac_abs_top_srcdir=$ac_pwd ;;
17979 [\\/]* | ?:[\\/]* ) # Absolute name.
17980 ac_srcdir=$srcdir$ac_dir_suffix;
17981 ac_top_srcdir=$srcdir
17982 ac_abs_top_srcdir=$srcdir ;;
17983 *) # Relative name.
17984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17985 ac_top_srcdir=$ac_top_build_prefix$srcdir
17986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17987esac
17988ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17989
17990
17991 case $ac_mode in
17992 :F)
17993 #
17994 # CONFIG_FILE
17995 #
17996
17997 case $INSTALL in
17998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18000 esac
18001 ac_MKDIR_P=$MKDIR_P
18002 case $MKDIR_P in
18003 [\\/$]* | ?:[\\/]* ) ;;
18004 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18005 esac
18006_ACEOF
18007
18008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18009# If the template does not know about datarootdir, expand it.
18010# FIXME: This hack should be removed a few years after 2.60.
18011ac_datarootdir_hack=; ac_datarootdir_seen=
18012ac_sed_dataroot='
18013/datarootdir/ {
18014 p
18015 q
18016}
18017/@datadir@/p
18018/@docdir@/p
18019/@infodir@/p
18020/@localedir@/p
18021/@mandir@/p'
18022case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18023*datarootdir*) ac_datarootdir_seen=yes;;
18024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18026$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18027_ACEOF
18028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18029 ac_datarootdir_hack='
18030 s&@datadir@&$datadir&g
18031 s&@docdir@&$docdir&g
18032 s&@infodir@&$infodir&g
18033 s&@localedir@&$localedir&g
18034 s&@mandir@&$mandir&g
18035 s&\\\${datarootdir}&$datarootdir&g' ;;
18036esac
18037_ACEOF
18038
18039# Neutralize VPATH when `$srcdir' = `.'.
18040# Shell code in configure.ac might set extrasub.
18041# FIXME: do we really want to maintain this feature?
18042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18043ac_sed_extra="$ac_vpsub
18044$extrasub
18045_ACEOF
18046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18047:t
18048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18049s|@configure_input@|$ac_sed_conf_input|;t t
18050s&@top_builddir@&$ac_top_builddir_sub&;t t
18051s&@top_build_prefix@&$ac_top_build_prefix&;t t
18052s&@srcdir@&$ac_srcdir&;t t
18053s&@abs_srcdir@&$ac_abs_srcdir&;t t
18054s&@top_srcdir@&$ac_top_srcdir&;t t
18055s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18056s&@builddir@&$ac_builddir&;t t
18057s&@abs_builddir@&$ac_abs_builddir&;t t
18058s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18059s&@INSTALL@&$ac_INSTALL&;t t
18060s&@MKDIR_P@&$ac_MKDIR_P&;t t
18061$ac_datarootdir_hack
18062"
18063eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18064 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18065
18066test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18067 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18069 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18071which seems to be undefined. Please make sure it is defined" >&5
18072$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18073which seems to be undefined. Please make sure it is defined" >&2;}
18074
18075 rm -f "$ac_tmp/stdin"
18076 case $ac_file in
18077 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18078 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18079 esac \
18080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18081 ;;
18082
18083
abad11c5
C
18084 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18085$as_echo "$as_me: executing $ac_file commands" >&6;}
18086 ;;
18087 esac
18088
feec80c3 18089
abad11c5
C
18090 case $ac_file$ac_mode in
18091 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18092 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18093 # are listed without --file. Let's play safe and only enable the eval
18094 # if we detect the quoting.
18095 case $CONFIG_FILES in
18096 *\'*) eval set x "$CONFIG_FILES" ;;
18097 *) set x $CONFIG_FILES ;;
feec80c3 18098 esac
abad11c5
C
18099 shift
18100 for mf
18101 do
18102 # Strip MF so we end up with the name of the file.
18103 mf=`echo "$mf" | sed -e 's/:.*$//'`
18104 # Check whether this is an Automake generated Makefile or not.
18105 # We used to match only the files named 'Makefile.in', but
18106 # some people rename them; so instead we look at the file content.
18107 # Grep'ing the first line is not enough: some people post-process
18108 # each Makefile.in and add a new line on top of each file to say so.
18109 # Grep'ing the whole file is not good either: AIX grep has a line
18110 # limit of 2048, but all sed's we know have understand at least 4000.
18111 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18112 dirpart=`$as_dirname -- "$mf" ||
18113$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18114 X"$mf" : 'X\(//\)[^/]' \| \
18115 X"$mf" : 'X\(//\)$' \| \
18116 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18117$as_echo X"$mf" |
18118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18119 s//\1/
18120 q
18121 }
18122 /^X\(\/\/\)[^/].*/{
18123 s//\1/
18124 q
18125 }
18126 /^X\(\/\/\)$/{
18127 s//\1/
18128 q
18129 }
18130 /^X\(\/\).*/{
18131 s//\1/
18132 q
18133 }
18134 s/.*/./; q'`
18135 else
18136 continue
18137 fi
18138 # Extract the definition of DEPDIR, am__include, and am__quote
18139 # from the Makefile without running 'make'.
18140 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18141 test -z "$DEPDIR" && continue
18142 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18143 test -z "am__include" && continue
18144 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18145 # Find all dependency output files, they are included files with
18146 # $(DEPDIR) in their names. We invoke sed twice because it is the
18147 # simplest approach to changing $(DEPDIR) to its actual value in the
18148 # expansion.
18149 for file in `sed -n "
18150 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18151 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18152 # Make sure the directory exists.
18153 test -f "$dirpart/$file" && continue
18154 fdir=`$as_dirname -- "$file" ||
18155$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18156 X"$file" : 'X\(//\)[^/]' \| \
18157 X"$file" : 'X\(//\)$' \| \
18158 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18159$as_echo X"$file" |
18160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18161 s//\1/
18162 q
18163 }
18164 /^X\(\/\/\)[^/].*/{
18165 s//\1/
18166 q
18167 }
18168 /^X\(\/\/\)$/{
18169 s//\1/
18170 q
18171 }
18172 /^X\(\/\).*/{
18173 s//\1/
18174 q
18175 }
18176 s/.*/./; q'`
18177 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18178 # echo "creating $dirpart/$file"
18179 echo '# dummy' > "$dirpart/$file"
18180 done
18181 done
18182}
18183 ;;
feec80c3 18184
abad11c5 18185 esac
feec80c3
C
18186done # for ac_tag
18187
18188
18189as_fn_exit 0
18190_ACEOF
18191ac_clean_files=$ac_clean_files_save
18192
18193test $ac_write_fail = 0 ||
18194 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18195
18196
18197# configure is writing to config.log, and then calls config.status.
18198# config.status does its own redirection, appending to config.log.
18199# Unfortunately, on DOS this fails, as config.log is still kept open
18200# by configure, so config.status won't be able to write to it; its
18201# output is simply discarded. So we exec the FD to /dev/null,
18202# effectively closing config.log, so it can be properly (re)opened and
18203# appended to by config.status. When coming back to configure, we
18204# need to make the FD available again.
18205if test "$no_create" != yes; then
18206 ac_cs_success=:
18207 ac_config_status_args=
18208 test "$silent" = yes &&
18209 ac_config_status_args="$ac_config_status_args --quiet"
18210 exec 5>/dev/null
18211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18212 exec 5>>config.log
18213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18214 # would make configure fail if this is the last instruction.
18215 $ac_cs_success || as_fn_exit 1
18216fi
18217if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18219$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18220fi
18221
18222
18223{ $as_echo "$as_me:${as_lineno-$LINENO}: configuration completed" >&5
18224$as_echo "$as_me: configuration completed" >&6;}
18225
18226cat << EOF
18227------------------------------------------------------------------------------
18228Summary
18229
d6ce1786
C
18230configure flags: $CONFIGURE_FLAGS
18231findlib: $OCAMLFIND (an actual version is strongly recommended)
18232menhir: $MENHIR (should be an optional tool)
755320b0 18233menhirLib module: $enable_menhirLib (for local package use --disable-menhirLib)
feec80c3 18234
d6ce1786
C
18235ocaml scripting: $enable_ocaml (overridable with --enable-ocaml)
18236python scripting: $enable_python (overridable with --enable-python)
18237pycaml module: $enable_pycaml (for local package use --disable-pycaml)
feec80c3 18238
d6ce1786
C
18239pcre regexes: $enable_pcre_syntax (overridable with --enable-pcre-syntax)
18240pcre module: $enable_pcre (for local package use --disable-pcre)
18241pcre library: $HAVE_PCRE (requires the dev version of libpcre)
feec80c3 18242
d6ce1786
C
18243release config: $enable_release (strongly recommended to be 'yes', overridable with --enable-release)
18244optimized spatch: $enable_opt (overridable with --disable-opt)
feec80c3 18245
feec80c3
C
18246------------------------------------------------------------------------------
18247Coccinelle can now be compiled and installed.
18248
18249
18250If you compile coccinelle again after source code changes or
18251configuration changes, you may need to run first:
18252 \$ make clean
18253
18254To compile coccinelle, run:
18255 \$ make all
18256
18257To install coccinelle, run:
18258 \$ make install
18259
d6ce1786
C
18260Then, to test coccinelle, run for example:
18261 \$ spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c
18262
18263Or when coccinelle is not installed yet:
18264 \$ COCCINELLE_HOME=$(pwd) ./scripts/spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c
feec80c3
C
18265EOF
18266
18267if test "x$enable_python" != "xno"; then
18268cat << EOF
18269------------------------------------------------------------------------------
18270You may need to set some environment variables so that the python
18271libraries are found. The frontend 'spatch' sets the following variables:
18272
18273 \$ export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$prefix/lib
18274 \$ export PYTHONPATH=\$PYTHONPATH:$prefix/share/coccinelle/python
18275
18276EOF
18277fi
ca417fcf 18278
feec80c3
C
18279cat << EOF
18280------------------------------------------------------------------------------
18281EOF