~ubuntu-branches/debian/sid/frama-c/sid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Mehdi Dogguy
  • Date: 2009-06-03 08:19:25 UTC
  • Revision ID: james.westby@ubuntu.com-20090603081925-kihvxvt0wy3zc4ar
Tags: upstream-20081201.dfsg
ImportĀ upstreamĀ versionĀ 20081201.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.61.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
# The user is always right.
 
41
if test "${PATH_SEPARATOR+set}" != set; then
 
42
  echo "#! /bin/sh" >conf$$.sh
 
43
  echo  "exit 0"   >>conf$$.sh
 
44
  chmod +x conf$$.sh
 
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
46
    PATH_SEPARATOR=';'
 
47
  else
 
48
    PATH_SEPARATOR=:
 
49
  fi
 
50
  rm -f conf$$.sh
 
51
fi
 
52
 
 
53
# Support unset when possible.
 
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
55
  as_unset=unset
 
56
else
 
57
  as_unset=false
 
58
fi
 
59
 
 
60
 
 
61
# IFS
 
62
# We need space, tab and new line, in precisely that order.  Quoting is
 
63
# there to prevent editors from complaining about space-tab.
 
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
65
# splitting by setting IFS to empty value.)
 
66
as_nl='
 
67
'
 
68
IFS=" ""        $as_nl"
 
69
 
 
70
# Find who we are.  Look in the path if we contain no directory separator.
 
71
case $0 in
 
72
  *[\\/]* ) as_myself=$0 ;;
 
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
74
for as_dir in $PATH
 
75
do
 
76
  IFS=$as_save_IFS
 
77
  test -z "$as_dir" && as_dir=.
 
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
79
done
 
80
IFS=$as_save_IFS
 
81
 
 
82
     ;;
 
83
esac
 
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
85
# in which case we are not to be found in the path.
 
86
if test "x$as_myself" = x; then
 
87
  as_myself=$0
 
88
fi
 
89
if test ! -f "$as_myself"; then
 
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
91
  { (exit 1); exit 1; }
 
92
fi
 
93
 
 
94
# Work around bugs in pre-3.0 UWIN ksh.
 
95
for as_var in ENV MAIL MAILPATH
 
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
97
done
 
98
PS1='$ '
 
99
PS2='> '
 
100
PS4='+ '
 
101
 
 
102
# NLS nuisances.
 
103
for as_var in \
 
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
106
  LC_TELEPHONE LC_TIME
 
107
do
 
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
109
    eval $as_var=C; export $as_var
 
110
  else
 
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
112
  fi
 
113
done
 
114
 
 
115
# Required to use basename.
 
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
118
  as_expr=expr
 
119
else
 
120
  as_expr=false
 
121
fi
 
122
 
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
124
  as_basename=basename
 
125
else
 
126
  as_basename=false
 
127
fi
 
128
 
 
129
 
 
130
# Name of the executable.
 
131
as_me=`$as_basename -- "$0" ||
 
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
133
         X"$0" : 'X\(//\)$' \| \
 
134
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
135
echo X/"$0" |
 
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\/\)$/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          /^X\/\(\/\).*/{
 
145
            s//\1/
 
146
            q
 
147
          }
 
148
          s/.*/./; q'`
 
149
 
 
150
# CDPATH.
 
151
$as_unset CDPATH
 
152
 
 
153
 
 
154
if test "x$CONFIG_SHELL" = x; then
 
155
  if (eval ":") 2>/dev/null; then
 
156
  as_have_required=yes
 
157
else
 
158
  as_have_required=no
 
159
fi
 
160
 
 
161
  if test $as_have_required = yes &&     (eval ":
 
162
(as_func_return () {
 
163
  (exit \$1)
 
164
}
 
165
as_func_success () {
 
166
  as_func_return 0
 
167
}
 
168
as_func_failure () {
 
169
  as_func_return 1
 
170
}
 
171
as_func_ret_success () {
 
172
  return 0
 
173
}
 
174
as_func_ret_failure () {
 
175
  return 1
 
176
}
 
177
 
 
178
exitcode=0
 
179
if as_func_success; then
 
180
  :
 
181
else
 
182
  exitcode=1
 
183
  echo as_func_success failed.
 
184
fi
 
185
 
 
186
if as_func_failure; then
 
187
  exitcode=1
 
188
  echo as_func_failure succeeded.
 
189
fi
 
190
 
 
191
if as_func_ret_success; then
 
192
  :
 
193
else
 
194
  exitcode=1
 
195
  echo as_func_ret_success failed.
 
196
fi
 
197
 
 
198
if as_func_ret_failure; then
 
199
  exitcode=1
 
200
  echo as_func_ret_failure succeeded.
 
201
fi
 
202
 
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
204
  :
 
205
else
 
206
  exitcode=1
 
207
  echo positional parameters were not saved.
 
208
fi
 
209
 
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
 
211
 
 
212
(
 
213
  as_lineno_1=\$LINENO
 
214
  as_lineno_2=\$LINENO
 
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
217
") 2> /dev/null; then
 
218
  :
 
219
else
 
220
  as_candidate_shells=
 
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
223
do
 
224
  IFS=$as_save_IFS
 
225
  test -z "$as_dir" && as_dir=.
 
226
  case $as_dir in
 
227
         /*)
 
228
           for as_base in sh bash ksh sh5; do
 
229
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
230
           done;;
 
231
       esac
 
232
done
 
233
IFS=$as_save_IFS
 
234
 
 
235
 
 
236
      for as_shell in $as_candidate_shells $SHELL; do
 
237
         # Try only shells that exist, to save several forks.
 
238
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
239
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
241
  emulate sh
 
242
  NULLCMD=:
 
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
244
  # is contrary to our usage.  Disable this feature.
 
245
  alias -g '${1+"$@"}'='"$@"'
 
246
  setopt NO_GLOB_SUBST
 
247
else
 
248
  case `(set -o) 2>/dev/null` in
 
249
  *posix*) set -o posix ;;
 
250
esac
 
251
 
 
252
fi
 
253
 
 
254
 
 
255
:
 
256
_ASEOF
 
257
}; then
 
258
  CONFIG_SHELL=$as_shell
 
259
               as_have_required=yes
 
260
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
(as_func_return () {
 
278
  (exit $1)
 
279
}
 
280
as_func_success () {
 
281
  as_func_return 0
 
282
}
 
283
as_func_failure () {
 
284
  as_func_return 1
 
285
}
 
286
as_func_ret_success () {
 
287
  return 0
 
288
}
 
289
as_func_ret_failure () {
 
290
  return 1
 
291
}
 
292
 
 
293
exitcode=0
 
294
if as_func_success; then
 
295
  :
 
296
else
 
297
  exitcode=1
 
298
  echo as_func_success failed.
 
299
fi
 
300
 
 
301
if as_func_failure; then
 
302
  exitcode=1
 
303
  echo as_func_failure succeeded.
 
304
fi
 
305
 
 
306
if as_func_ret_success; then
 
307
  :
 
308
else
 
309
  exitcode=1
 
310
  echo as_func_ret_success failed.
 
311
fi
 
312
 
 
313
if as_func_ret_failure; then
 
314
  exitcode=1
 
315
  echo as_func_ret_failure succeeded.
 
316
fi
 
317
 
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
319
  :
 
320
else
 
321
  exitcode=1
 
322
  echo positional parameters were not saved.
 
323
fi
 
324
 
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
 
326
 
 
327
(
 
328
  as_lineno_1=$LINENO
 
329
  as_lineno_2=$LINENO
 
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
332
 
 
333
_ASEOF
 
334
}; then
 
335
  break
 
336
fi
 
337
 
 
338
fi
 
339
 
 
340
      done
 
341
 
 
342
      if test "x$CONFIG_SHELL" != x; then
 
343
  for as_var in BASH_ENV ENV
 
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
345
        done
 
346
        export CONFIG_SHELL
 
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
348
fi
 
349
 
 
350
 
 
351
    if test $as_have_required = no; then
 
352
  echo This script requires a shell more modern than all the
 
353
      echo shells that I found on your system.  Please install a
 
354
      echo modern shell, or manually run the script under such a
 
355
      echo shell if you do have one.
 
356
      { (exit 1); exit 1; }
 
357
fi
 
358
 
 
359
 
 
360
fi
 
361
 
 
362
fi
 
363
 
 
364
 
 
365
 
 
366
(eval "as_func_return () {
 
367
  (exit \$1)
 
368
}
 
369
as_func_success () {
 
370
  as_func_return 0
 
371
}
 
372
as_func_failure () {
 
373
  as_func_return 1
 
374
}
 
375
as_func_ret_success () {
 
376
  return 0
 
377
}
 
378
as_func_ret_failure () {
 
379
  return 1
 
380
}
 
381
 
 
382
exitcode=0
 
383
if as_func_success; then
 
384
  :
 
385
else
 
386
  exitcode=1
 
387
  echo as_func_success failed.
 
388
fi
 
389
 
 
390
if as_func_failure; then
 
391
  exitcode=1
 
392
  echo as_func_failure succeeded.
 
393
fi
 
394
 
 
395
if as_func_ret_success; then
 
396
  :
 
397
else
 
398
  exitcode=1
 
399
  echo as_func_ret_success failed.
 
400
fi
 
401
 
 
402
if as_func_ret_failure; then
 
403
  exitcode=1
 
404
  echo as_func_ret_failure succeeded.
 
405
fi
 
406
 
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
408
  :
 
409
else
 
410
  exitcode=1
 
411
  echo positional parameters were not saved.
 
412
fi
 
413
 
 
414
test \$exitcode = 0") || {
 
415
  echo No shell found that supports shell functions.
 
416
  echo Please tell autoconf@gnu.org about your system,
 
417
  echo including any error possibly output before this
 
418
  echo message
 
419
}
 
420
 
 
421
 
 
422
 
 
423
  as_lineno_1=$LINENO
 
424
  as_lineno_2=$LINENO
 
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
427
 
 
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
430
  # line-number line after each line using $LINENO; the second 'sed'
 
431
  # does the real work.  The second script uses 'N' to pair each
 
432
  # line-number line with the line containing $LINENO, and appends
 
433
  # trailing '-' during substitution so that $LINENO is not a special
 
434
  # case at line end.
 
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
 
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
 
447
      N
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
450
      t loop
 
451
      s/-\n.*//
 
452
    ' >$as_me.lineno &&
 
453
  chmod +x "$as_me.lineno" ||
 
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
455
   { (exit 1); exit 1; }; }
 
456
 
 
457
  # Don't try to exec as it changes $[0], causing all sort of problems
 
458
  # (the dirname of $[0] is not the place where we might find the
 
459
  # original and so on.  Autoconf is especially sensitive to this).
 
460
  . "./$as_me.lineno"
 
461
  # Exit status is that of the last command.
 
462
  exit
 
463
}
 
464
 
 
465
 
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
467
  as_dirname=dirname
 
468
else
 
469
  as_dirname=false
 
470
fi
 
471
 
 
472
ECHO_C= ECHO_N= ECHO_T=
 
473
case `echo -n x` in
 
474
-n*)
 
475
  case `echo 'x\c'` in
 
476
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
477
  *)   ECHO_C='\c';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
 
481
esac
 
482
 
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
485
  as_expr=expr
 
486
else
 
487
  as_expr=false
 
488
fi
 
489
 
 
490
rm -f conf$$ conf$$.exe conf$$.file
 
491
if test -d conf$$.dir; then
 
492
  rm -f conf$$.dir/conf$$.file
 
493
else
 
494
  rm -f conf$$.dir
 
495
  mkdir conf$$.dir
 
496
fi
 
497
echo >conf$$.file
 
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
499
  as_ln_s='ln -s'
 
500
  # ... but there are two gotchas:
 
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
503
  # In both cases, we have to default to `cp -p'.
 
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
505
    as_ln_s='cp -p'
 
506
elif ln conf$$.file conf$$ 2>/dev/null; then
 
507
  as_ln_s=ln
 
508
else
 
509
  as_ln_s='cp -p'
 
510
fi
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
 
513
 
 
514
if mkdir -p . 2>/dev/null; then
 
515
  as_mkdir_p=:
 
516
else
 
517
  test -d ./-p && rmdir ./-p
 
518
  as_mkdir_p=false
 
519
fi
 
520
 
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
 
543
 
 
544
# Sed expression to map a string onto a valid CPP name.
 
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
# Sed expression to map a string onto a valid variable name.
 
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
549
 
 
550
 
 
551
 
 
552
exec 7<&0 </dev/null 6>&1
 
553
 
 
554
# Name of the host.
 
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
556
# so uname gets run too.
 
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
558
 
 
559
#
 
560
# Initializations.
 
561
#
 
562
ac_default_prefix=/usr/local
 
563
ac_clean_files=
 
564
ac_config_libobj_dir=.
 
565
LIBOBJS=
 
566
cross_compiling=no
 
567
subdirs=
 
568
MFLAGS=
 
569
MAKEFLAGS=
 
570
SHELL=${CONFIG_SHELL-/bin/sh}
 
571
 
 
572
# Identity of this package.
 
573
PACKAGE_NAME=
 
574
PACKAGE_TARNAME=
 
575
PACKAGE_VERSION=
 
576
PACKAGE_STRING=
 
577
PACKAGE_BUGREPORT=
 
578
 
 
579
ac_unique_file="src/kernel"
 
580
# Factoring default headers for most tests.
 
581
ac_includes_default="\
 
582
#include <stdio.h>
 
583
#ifdef HAVE_SYS_TYPES_H
 
584
# include <sys/types.h>
 
585
#endif
 
586
#ifdef HAVE_SYS_STAT_H
 
587
# include <sys/stat.h>
 
588
#endif
 
589
#ifdef STDC_HEADERS
 
590
# include <stdlib.h>
 
591
# include <stddef.h>
 
592
#else
 
593
# ifdef HAVE_STDLIB_H
 
594
#  include <stdlib.h>
 
595
# endif
 
596
#endif
 
597
#ifdef HAVE_STRING_H
 
598
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
599
#  include <memory.h>
 
600
# endif
 
601
# include <string.h>
 
602
#endif
 
603
#ifdef HAVE_STRINGS_H
 
604
# include <strings.h>
 
605
#endif
 
606
#ifdef HAVE_INTTYPES_H
 
607
# include <inttypes.h>
 
608
#endif
 
609
#ifdef HAVE_STDINT_H
 
610
# include <stdint.h>
 
611
#endif
 
612
#ifdef HAVE_UNISTD_H
 
613
# include <unistd.h>
 
614
#endif"
 
615
 
 
616
ac_subst_vars='SHELL
 
617
PATH_SEPARATOR
 
618
PACKAGE_NAME
 
619
PACKAGE_TARNAME
 
620
PACKAGE_VERSION
 
621
PACKAGE_STRING
 
622
PACKAGE_BUGREPORT
 
623
exec_prefix
 
624
prefix
 
625
program_transform_name
 
626
bindir
 
627
sbindir
 
628
libexecdir
 
629
datarootdir
 
630
datadir
 
631
sysconfdir
 
632
sharedstatedir
 
633
localstatedir
 
634
includedir
 
635
oldincludedir
 
636
docdir
 
637
infodir
 
638
htmldir
 
639
dvidir
 
640
pdfdir
 
641
psdir
 
642
libdir
 
643
localedir
 
644
mandir
 
645
DEFS
 
646
ECHO_C
 
647
ECHO_N
 
648
ECHO_T
 
649
LIBS
 
650
build_alias
 
651
host_alias
 
652
target_alias
 
653
MAKE
 
654
OCAMLC
 
655
OCAMLOPT
 
656
OCAMLCDOTOPT
 
657
OCAMLOPTDOTOPT
 
658
OCAMLDEP
 
659
OCAMLDEPDOTOPT
 
660
OCAMLLEX
 
661
OCAMLLEXDOTOPT
 
662
OCAMLYACC
 
663
OCAMLDOC
 
664
OCAMLMKTOP
 
665
OTAGS
 
666
DOT
 
667
CC
 
668
CFLAGS
 
669
LDFLAGS
 
670
CPPFLAGS
 
671
ac_ct_CC
 
672
EXEEXT
 
673
OBJEXT
 
674
CPP
 
675
GREP
 
676
EGREP
 
677
HAS_LABLGLADECC
 
678
HAS_CAMLP4O
 
679
HAS_LTLTOBA
 
680
VERBOSEMAKE
 
681
OCAMLGRAPH
 
682
OCAMLGRAPH_LOCAL
 
683
OCAMLBEST
 
684
OCAMLVERSION
 
685
LOWER_THAN_311
 
686
OCAMLLIB
 
687
OCAMLWIN32
 
688
CAMLP4O
 
689
EXE
 
690
HAVE_STDLIB_H
 
691
HAVE_WCHAR_H
 
692
HAVE_PTRDIFF_H
 
693
HAVE_BUILTIN_VA_LIST
 
694
THREAD_IS_KEYWORD
 
695
UNDERSCORE_NAME
 
696
HAS_PERFCOUNT
 
697
CYCLES_PER_USEC
 
698
LOCAL_MACHDEP
 
699
HAS_LABLGTK
 
700
HAS_GTKSOURCEVIEW
 
701
HAS_LEGACY_GTKSOURCEVIEW
 
702
HAS_GNOMECANVAS
 
703
HAS_LABLGTK_CUSTOM_MODEL
 
704
LABLGLADECC
 
705
JCCMO
 
706
JCCMX
 
707
JESSIE_LOCAL
 
708
JESSIE_INCLUDES
 
709
ENABLE_SYNTACTIC_CALLGRAPH
 
710
ENABLE_CONSTANT_PROPAGATION
 
711
ENABLE_CXX
 
712
ENABLE_FROM
 
713
ENABLE_GUI
 
714
ENABLE_IMPACT
 
715
ENABLE_INOUT
 
716
ENABLE_JESSIE
 
717
ENABLE_JOURNAL_LOADER
 
718
WHYDISTRIB
 
719
ENABLE_METRICS
 
720
ENABLE_MIEL
 
721
ENABLE_OCCURRENCE
 
722
ENABLE_PDG
 
723
ENABLE_POSTDOMINATORS
 
724
ENABLE_SCOPE
 
725
ENABLE_SECURITY
 
726
ENABLE_SEMANTIC_CALLGRAPH
 
727
ENABLE_SLICING
 
728
ENABLE_SPARECODE
 
729
ENABLE_USERS
 
730
ENABLE_VALUE
 
731
ENABLE_WP
 
732
ENABLE_LTL_TO_ACSL
 
733
LIBOBJS
 
734
LTLIBOBJS'
 
735
ac_subst_files=''
 
736
      ac_precious_vars='build_alias
 
737
host_alias
 
738
target_alias
 
739
CC
 
740
CFLAGS
 
741
LDFLAGS
 
742
LIBS
 
743
CPPFLAGS
 
744
CPP'
 
745
 
 
746
 
 
747
# Initialize some variables set by options.
 
748
ac_init_help=
 
749
ac_init_version=false
 
750
# The variables have the same names as the options, with
 
751
# dashes changed to underlines.
 
752
cache_file=/dev/null
 
753
exec_prefix=NONE
 
754
no_create=
 
755
no_recursion=
 
756
prefix=NONE
 
757
program_prefix=NONE
 
758
program_suffix=NONE
 
759
program_transform_name=s,x,x,
 
760
silent=
 
761
site=
 
762
srcdir=
 
763
verbose=
 
764
x_includes=NONE
 
765
x_libraries=NONE
 
766
 
 
767
# Installation directory options.
 
768
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
769
# and all the variables that are supposed to be based on exec_prefix
 
770
# by default will actually change.
 
771
# Use braces instead of parens because sh, perl, etc. also accept them.
 
772
# (The list follows the same order as the GNU Coding Standards.)
 
773
bindir='${exec_prefix}/bin'
 
774
sbindir='${exec_prefix}/sbin'
 
775
libexecdir='${exec_prefix}/libexec'
 
776
datarootdir='${prefix}/share'
 
777
datadir='${datarootdir}'
 
778
sysconfdir='${prefix}/etc'
 
779
sharedstatedir='${prefix}/com'
 
780
localstatedir='${prefix}/var'
 
781
includedir='${prefix}/include'
 
782
oldincludedir='/usr/include'
 
783
docdir='${datarootdir}/doc/${PACKAGE}'
 
784
infodir='${datarootdir}/info'
 
785
htmldir='${docdir}'
 
786
dvidir='${docdir}'
 
787
pdfdir='${docdir}'
 
788
psdir='${docdir}'
 
789
libdir='${exec_prefix}/lib'
 
790
localedir='${datarootdir}/locale'
 
791
mandir='${datarootdir}/man'
 
792
 
 
793
ac_prev=
 
794
ac_dashdash=
 
795
for ac_option
 
796
do
 
797
  # If the previous option needs an argument, assign it.
 
798
  if test -n "$ac_prev"; then
 
799
    eval $ac_prev=\$ac_option
 
800
    ac_prev=
 
801
    continue
 
802
  fi
 
803
 
 
804
  case $ac_option in
 
805
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
806
  *)    ac_optarg=yes ;;
 
807
  esac
 
808
 
 
809
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
810
 
 
811
  case $ac_dashdash$ac_option in
 
812
  --)
 
813
    ac_dashdash=yes ;;
 
814
 
 
815
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
816
    ac_prev=bindir ;;
 
817
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
818
    bindir=$ac_optarg ;;
 
819
 
 
820
  -build | --build | --buil | --bui | --bu)
 
821
    ac_prev=build_alias ;;
 
822
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
823
    build_alias=$ac_optarg ;;
 
824
 
 
825
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
826
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
827
    ac_prev=cache_file ;;
 
828
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
829
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
830
    cache_file=$ac_optarg ;;
 
831
 
 
832
  --config-cache | -C)
 
833
    cache_file=config.cache ;;
 
834
 
 
835
  -datadir | --datadir | --datadi | --datad)
 
836
    ac_prev=datadir ;;
 
837
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
838
    datadir=$ac_optarg ;;
 
839
 
 
840
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
841
  | --dataroo | --dataro | --datar)
 
842
    ac_prev=datarootdir ;;
 
843
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
844
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
845
    datarootdir=$ac_optarg ;;
 
846
 
 
847
  -disable-* | --disable-*)
 
848
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
849
    # Reject names that are not valid shell variable names.
 
850
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
851
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
852
   { (exit 1); exit 1; }; }
 
853
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
854
    eval enable_$ac_feature=no ;;
 
855
 
 
856
  -docdir | --docdir | --docdi | --doc | --do)
 
857
    ac_prev=docdir ;;
 
858
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
859
    docdir=$ac_optarg ;;
 
860
 
 
861
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
862
    ac_prev=dvidir ;;
 
863
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
864
    dvidir=$ac_optarg ;;
 
865
 
 
866
  -enable-* | --enable-*)
 
867
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
868
    # Reject names that are not valid shell variable names.
 
869
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
870
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
871
   { (exit 1); exit 1; }; }
 
872
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
873
    eval enable_$ac_feature=\$ac_optarg ;;
 
874
 
 
875
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
876
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
877
  | --exec | --exe | --ex)
 
878
    ac_prev=exec_prefix ;;
 
879
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
880
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
881
  | --exec=* | --exe=* | --ex=*)
 
882
    exec_prefix=$ac_optarg ;;
 
883
 
 
884
  -gas | --gas | --ga | --g)
 
885
    # Obsolete; use --with-gas.
 
886
    with_gas=yes ;;
 
887
 
 
888
  -help | --help | --hel | --he | -h)
 
889
    ac_init_help=long ;;
 
890
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
891
    ac_init_help=recursive ;;
 
892
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
893
    ac_init_help=short ;;
 
894
 
 
895
  -host | --host | --hos | --ho)
 
896
    ac_prev=host_alias ;;
 
897
  -host=* | --host=* | --hos=* | --ho=*)
 
898
    host_alias=$ac_optarg ;;
 
899
 
 
900
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
901
    ac_prev=htmldir ;;
 
902
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
903
  | --ht=*)
 
904
    htmldir=$ac_optarg ;;
 
905
 
 
906
  -includedir | --includedir | --includedi | --included | --include \
 
907
  | --includ | --inclu | --incl | --inc)
 
908
    ac_prev=includedir ;;
 
909
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
910
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
911
    includedir=$ac_optarg ;;
 
912
 
 
913
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
914
    ac_prev=infodir ;;
 
915
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
916
    infodir=$ac_optarg ;;
 
917
 
 
918
  -libdir | --libdir | --libdi | --libd)
 
919
    ac_prev=libdir ;;
 
920
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
921
    libdir=$ac_optarg ;;
 
922
 
 
923
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
924
  | --libexe | --libex | --libe)
 
925
    ac_prev=libexecdir ;;
 
926
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
927
  | --libexe=* | --libex=* | --libe=*)
 
928
    libexecdir=$ac_optarg ;;
 
929
 
 
930
  -localedir | --localedir | --localedi | --localed | --locale)
 
931
    ac_prev=localedir ;;
 
932
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
933
    localedir=$ac_optarg ;;
 
934
 
 
935
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
936
  | --localstate | --localstat | --localsta | --localst | --locals)
 
937
    ac_prev=localstatedir ;;
 
938
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
939
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
940
    localstatedir=$ac_optarg ;;
 
941
 
 
942
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
943
    ac_prev=mandir ;;
 
944
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
945
    mandir=$ac_optarg ;;
 
946
 
 
947
  -nfp | --nfp | --nf)
 
948
    # Obsolete; use --without-fp.
 
949
    with_fp=no ;;
 
950
 
 
951
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
952
  | --no-cr | --no-c | -n)
 
953
    no_create=yes ;;
 
954
 
 
955
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
956
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
957
    no_recursion=yes ;;
 
958
 
 
959
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
960
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
961
  | --oldin | --oldi | --old | --ol | --o)
 
962
    ac_prev=oldincludedir ;;
 
963
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
964
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
965
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
966
    oldincludedir=$ac_optarg ;;
 
967
 
 
968
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
969
    ac_prev=prefix ;;
 
970
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
971
    prefix=$ac_optarg ;;
 
972
 
 
973
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
974
  | --program-pre | --program-pr | --program-p)
 
975
    ac_prev=program_prefix ;;
 
976
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
977
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
978
    program_prefix=$ac_optarg ;;
 
979
 
 
980
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
981
  | --program-suf | --program-su | --program-s)
 
982
    ac_prev=program_suffix ;;
 
983
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
984
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
985
    program_suffix=$ac_optarg ;;
 
986
 
 
987
  -program-transform-name | --program-transform-name \
 
988
  | --program-transform-nam | --program-transform-na \
 
989
  | --program-transform-n | --program-transform- \
 
990
  | --program-transform | --program-transfor \
 
991
  | --program-transfo | --program-transf \
 
992
  | --program-trans | --program-tran \
 
993
  | --progr-tra | --program-tr | --program-t)
 
994
    ac_prev=program_transform_name ;;
 
995
  -program-transform-name=* | --program-transform-name=* \
 
996
  | --program-transform-nam=* | --program-transform-na=* \
 
997
  | --program-transform-n=* | --program-transform-=* \
 
998
  | --program-transform=* | --program-transfor=* \
 
999
  | --program-transfo=* | --program-transf=* \
 
1000
  | --program-trans=* | --program-tran=* \
 
1001
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1002
    program_transform_name=$ac_optarg ;;
 
1003
 
 
1004
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1005
    ac_prev=pdfdir ;;
 
1006
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1007
    pdfdir=$ac_optarg ;;
 
1008
 
 
1009
  -psdir | --psdir | --psdi | --psd | --ps)
 
1010
    ac_prev=psdir ;;
 
1011
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1012
    psdir=$ac_optarg ;;
 
1013
 
 
1014
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1015
  | -silent | --silent | --silen | --sile | --sil)
 
1016
    silent=yes ;;
 
1017
 
 
1018
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1019
    ac_prev=sbindir ;;
 
1020
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1021
  | --sbi=* | --sb=*)
 
1022
    sbindir=$ac_optarg ;;
 
1023
 
 
1024
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1025
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1026
  | --sharedst | --shareds | --shared | --share | --shar \
 
1027
  | --sha | --sh)
 
1028
    ac_prev=sharedstatedir ;;
 
1029
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1030
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1031
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1032
  | --sha=* | --sh=*)
 
1033
    sharedstatedir=$ac_optarg ;;
 
1034
 
 
1035
  -site | --site | --sit)
 
1036
    ac_prev=site ;;
 
1037
  -site=* | --site=* | --sit=*)
 
1038
    site=$ac_optarg ;;
 
1039
 
 
1040
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1041
    ac_prev=srcdir ;;
 
1042
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1043
    srcdir=$ac_optarg ;;
 
1044
 
 
1045
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1046
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1047
    ac_prev=sysconfdir ;;
 
1048
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1049
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1050
    sysconfdir=$ac_optarg ;;
 
1051
 
 
1052
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1053
    ac_prev=target_alias ;;
 
1054
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1055
    target_alias=$ac_optarg ;;
 
1056
 
 
1057
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1058
    verbose=yes ;;
 
1059
 
 
1060
  -version | --version | --versio | --versi | --vers | -V)
 
1061
    ac_init_version=: ;;
 
1062
 
 
1063
  -with-* | --with-*)
 
1064
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1065
    # Reject names that are not valid shell variable names.
 
1066
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1067
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1068
   { (exit 1); exit 1; }; }
 
1069
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1070
    eval with_$ac_package=\$ac_optarg ;;
 
1071
 
 
1072
  -without-* | --without-*)
 
1073
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1074
    # Reject names that are not valid shell variable names.
 
1075
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1076
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1077
   { (exit 1); exit 1; }; }
 
1078
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1079
    eval with_$ac_package=no ;;
 
1080
 
 
1081
  --x)
 
1082
    # Obsolete; use --with-x.
 
1083
    with_x=yes ;;
 
1084
 
 
1085
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1086
  | --x-incl | --x-inc | --x-in | --x-i)
 
1087
    ac_prev=x_includes ;;
 
1088
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1089
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1090
    x_includes=$ac_optarg ;;
 
1091
 
 
1092
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1093
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1094
    ac_prev=x_libraries ;;
 
1095
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1096
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1097
    x_libraries=$ac_optarg ;;
 
1098
 
 
1099
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1100
Try \`$0 --help' for more information." >&2
 
1101
   { (exit 1); exit 1; }; }
 
1102
    ;;
 
1103
 
 
1104
  *=*)
 
1105
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1106
    # Reject names that are not valid shell variable names.
 
1107
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1108
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1109
   { (exit 1); exit 1; }; }
 
1110
    eval $ac_envvar=\$ac_optarg
 
1111
    export $ac_envvar ;;
 
1112
 
 
1113
  *)
 
1114
    # FIXME: should be removed in autoconf 3.0.
 
1115
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1116
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1117
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1118
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1119
    ;;
 
1120
 
 
1121
  esac
 
1122
done
 
1123
 
 
1124
if test -n "$ac_prev"; then
 
1125
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1126
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1127
   { (exit 1); exit 1; }; }
 
1128
fi
 
1129
 
 
1130
# Be sure to have absolute directory names.
 
1131
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1132
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1133
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1134
                libdir localedir mandir
 
1135
do
 
1136
  eval ac_val=\$$ac_var
 
1137
  case $ac_val in
 
1138
    [\\/$]* | ?:[\\/]* )  continue;;
 
1139
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1140
  esac
 
1141
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1142
   { (exit 1); exit 1; }; }
 
1143
done
 
1144
 
 
1145
# There might be people who depend on the old broken behavior: `$host'
 
1146
# used to hold the argument of --host etc.
 
1147
# FIXME: To remove some day.
 
1148
build=$build_alias
 
1149
host=$host_alias
 
1150
target=$target_alias
 
1151
 
 
1152
# FIXME: To remove some day.
 
1153
if test "x$host_alias" != x; then
 
1154
  if test "x$build_alias" = x; then
 
1155
    cross_compiling=maybe
 
1156
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1157
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1158
  elif test "x$build_alias" != "x$host_alias"; then
 
1159
    cross_compiling=yes
 
1160
  fi
 
1161
fi
 
1162
 
 
1163
ac_tool_prefix=
 
1164
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1165
 
 
1166
test "$silent" = yes && exec 6>/dev/null
 
1167
 
 
1168
 
 
1169
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1170
ac_ls_di=`ls -di .` &&
 
1171
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1172
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1173
   { (exit 1); exit 1; }; }
 
1174
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1175
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1176
   { (exit 1); exit 1; }; }
 
1177
 
 
1178
 
 
1179
# Find the source files, if location was not specified.
 
1180
if test -z "$srcdir"; then
 
1181
  ac_srcdir_defaulted=yes
 
1182
  # Try the directory containing this script, then the parent directory.
 
1183
  ac_confdir=`$as_dirname -- "$0" ||
 
1184
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1185
         X"$0" : 'X\(//\)[^/]' \| \
 
1186
         X"$0" : 'X\(//\)$' \| \
 
1187
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1188
echo X"$0" |
 
1189
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1190
            s//\1/
 
1191
            q
 
1192
          }
 
1193
          /^X\(\/\/\)[^/].*/{
 
1194
            s//\1/
 
1195
            q
 
1196
          }
 
1197
          /^X\(\/\/\)$/{
 
1198
            s//\1/
 
1199
            q
 
1200
          }
 
1201
          /^X\(\/\).*/{
 
1202
            s//\1/
 
1203
            q
 
1204
          }
 
1205
          s/.*/./; q'`
 
1206
  srcdir=$ac_confdir
 
1207
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1208
    srcdir=..
 
1209
  fi
 
1210
else
 
1211
  ac_srcdir_defaulted=no
 
1212
fi
 
1213
if test ! -r "$srcdir/$ac_unique_file"; then
 
1214
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1215
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1216
   { (exit 1); exit 1; }; }
 
1217
fi
 
1218
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1219
ac_abs_confdir=`(
 
1220
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1221
   { (exit 1); exit 1; }; }
 
1222
        pwd)`
 
1223
# When building in place, set srcdir=.
 
1224
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1225
  srcdir=.
 
1226
fi
 
1227
# Remove unnecessary trailing slashes from srcdir.
 
1228
# Double slashes in file names in object file debugging info
 
1229
# mess up M-x gdb in Emacs.
 
1230
case $srcdir in
 
1231
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1232
esac
 
1233
for ac_var in $ac_precious_vars; do
 
1234
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1235
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1236
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1237
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1238
done
 
1239
 
 
1240
#
 
1241
# Report the --help message.
 
1242
#
 
1243
if test "$ac_init_help" = "long"; then
 
1244
  # Omit some internal or obsolete options to make the list less imposing.
 
1245
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1246
  cat <<_ACEOF
 
1247
\`configure' configures this package to adapt to many kinds of systems.
 
1248
 
 
1249
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1250
 
 
1251
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1252
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1253
 
 
1254
Defaults for the options are specified in brackets.
 
1255
 
 
1256
Configuration:
 
1257
  -h, --help              display this help and exit
 
1258
      --help=short        display options specific to this package
 
1259
      --help=recursive    display the short help of all the included packages
 
1260
  -V, --version           display version information and exit
 
1261
  -q, --quiet, --silent   do not print \`checking...' messages
 
1262
      --cache-file=FILE   cache test results in FILE [disabled]
 
1263
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1264
  -n, --no-create         do not create output files
 
1265
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1266
 
 
1267
Installation directories:
 
1268
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1269
                          [$ac_default_prefix]
 
1270
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1271
                          [PREFIX]
 
1272
 
 
1273
By default, \`make install' will install all the files in
 
1274
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1275
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1276
for instance \`--prefix=\$HOME'.
 
1277
 
 
1278
For better control, use the options below.
 
1279
 
 
1280
Fine tuning of the installation directories:
 
1281
  --bindir=DIR           user executables [EPREFIX/bin]
 
1282
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1283
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1284
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1285
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1286
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1287
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1288
  --includedir=DIR       C header files [PREFIX/include]
 
1289
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1290
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1291
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1292
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1293
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1294
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1295
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 
1296
  --htmldir=DIR          html documentation [DOCDIR]
 
1297
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1298
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1299
  --psdir=DIR            ps documentation [DOCDIR]
 
1300
_ACEOF
 
1301
 
 
1302
  cat <<\_ACEOF
 
1303
_ACEOF
 
1304
fi
 
1305
 
 
1306
if test -n "$ac_init_help"; then
 
1307
 
 
1308
  cat <<\_ACEOF
 
1309
 
 
1310
Optional Features:
 
1311
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1312
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1313
  --enable-verbosemake    verbose makefile commands
 
1314
  --enable-unsupported-ocaml
 
1315
    attempt to compile even against unsupported ocaml version
 
1316
  --enable-localmachdep    enable local machdep configuration
 
1317
  --enable-syntactic_callgraph
 
1318
                          support for callgraph plugin (default: yes)
 
1319
  --enable-constant_propagation
 
1320
                          support for constant propagation plugin (default: yes)
 
1321
  --enable-cxx            support for cxx plugin (default: no)
 
1322
  --enable-from           support for from analysis (default: yes)
 
1323
  --enable-gui            support for gui (default: yes)
 
1324
  --enable-impact         support for impact plugin (default: yes)
 
1325
  --enable-inout          support for inout analysis (default: yes)
 
1326
  --enable-jessie         support for jessie plugin (default: yes)
 
1327
  --enable-journal_loader
 
1328
                          support journal loading (default: yes)
 
1329
  --enable-metrics        support for metrics analysis (default: yes)
 
1330
  --enable-miel           support for miel plugin (default: no)
 
1331
  --enable-occurrence     support for occurrence analysis (default: yes)
 
1332
  --enable-pdg            support for pdg plugin (default: yes)
 
1333
  --enable-postdominators
 
1334
                          support for postdominators plugin (default: yes)
 
1335
  --enable-scope          support for scope plugin (default: yes)
 
1336
  --enable-security       support for security plugin (default: yes)
 
1337
  --enable-semantic_callgraph
 
1338
                          support for semantic_callgraph (default: yes)
 
1339
  --enable-slicing        support for slicing plugin (default: yes)
 
1340
  --enable-sparecode      support for sparecode plugin (default: yes)
 
1341
  --enable-users          support for users analysis (default: yes)
 
1342
  --enable-value          support for value analysis (default: yes)
 
1343
  --enable-wp             support for wp plugin (default: yes)
 
1344
  --enable-ltl_to_acsl    support for Aorai plugin (ltl to acsl conversion) (default: yes)
 
1345
  --enable-custommodel
 
1346
     use a custom tree model in GUI. Need to have a recent lablgtk version
 
1347
 
 
1348
Optional Packages:
 
1349
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1350
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1351
  --with-whydir=<path>  directory for Why sources (default: why)
 
1352
 
 
1353
Some influential environment variables:
 
1354
  CC          C compiler command
 
1355
  CFLAGS      C compiler flags
 
1356
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1357
              nonstandard directory <lib dir>
 
1358
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1359
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1360
              you have headers in a nonstandard directory <include dir>
 
1361
  CPP         C preprocessor
 
1362
 
 
1363
Use these variables to override the choices made by `configure' or to help
 
1364
it to find libraries and programs with nonstandard names/locations.
 
1365
 
 
1366
_ACEOF
 
1367
ac_status=$?
 
1368
fi
 
1369
 
 
1370
if test "$ac_init_help" = "recursive"; then
 
1371
  # If there are subdirs, report their specific --help.
 
1372
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1373
    test -d "$ac_dir" || continue
 
1374
    ac_builddir=.
 
1375
 
 
1376
case "$ac_dir" in
 
1377
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1378
*)
 
1379
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1380
  # A ".." for each directory in $ac_dir_suffix.
 
1381
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1382
  case $ac_top_builddir_sub in
 
1383
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1384
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1385
  esac ;;
 
1386
esac
 
1387
ac_abs_top_builddir=$ac_pwd
 
1388
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1389
# for backward compatibility:
 
1390
ac_top_builddir=$ac_top_build_prefix
 
1391
 
 
1392
case $srcdir in
 
1393
  .)  # We are building in place.
 
1394
    ac_srcdir=.
 
1395
    ac_top_srcdir=$ac_top_builddir_sub
 
1396
    ac_abs_top_srcdir=$ac_pwd ;;
 
1397
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1398
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1399
    ac_top_srcdir=$srcdir
 
1400
    ac_abs_top_srcdir=$srcdir ;;
 
1401
  *) # Relative name.
 
1402
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1403
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1404
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1405
esac
 
1406
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1407
 
 
1408
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1409
    # Check for guested configure.
 
1410
    if test -f "$ac_srcdir/configure.gnu"; then
 
1411
      echo &&
 
1412
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1413
    elif test -f "$ac_srcdir/configure"; then
 
1414
      echo &&
 
1415
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1416
    else
 
1417
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1418
    fi || ac_status=$?
 
1419
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1420
  done
 
1421
fi
 
1422
 
 
1423
test -n "$ac_init_help" && exit $ac_status
 
1424
if $ac_init_version; then
 
1425
  cat <<\_ACEOF
 
1426
configure
 
1427
generated by GNU Autoconf 2.61
 
1428
 
 
1429
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1430
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1431
This configure script is free software; the Free Software Foundation
 
1432
gives unlimited permission to copy, distribute and modify it.
 
1433
_ACEOF
 
1434
  exit
 
1435
fi
 
1436
cat >config.log <<_ACEOF
 
1437
This file contains any messages produced by compilers while
 
1438
running configure, to aid debugging if configure makes a mistake.
 
1439
 
 
1440
It was created by $as_me, which was
 
1441
generated by GNU Autoconf 2.61.  Invocation command line was
 
1442
 
 
1443
  $ $0 $@
 
1444
 
 
1445
_ACEOF
 
1446
exec 5>>config.log
 
1447
{
 
1448
cat <<_ASUNAME
 
1449
## --------- ##
 
1450
## Platform. ##
 
1451
## --------- ##
 
1452
 
 
1453
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1454
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1455
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1456
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1457
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1458
 
 
1459
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1460
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1461
 
 
1462
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1463
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1464
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1465
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1466
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1467
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1468
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1469
 
 
1470
_ASUNAME
 
1471
 
 
1472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1473
for as_dir in $PATH
 
1474
do
 
1475
  IFS=$as_save_IFS
 
1476
  test -z "$as_dir" && as_dir=.
 
1477
  echo "PATH: $as_dir"
 
1478
done
 
1479
IFS=$as_save_IFS
 
1480
 
 
1481
} >&5
 
1482
 
 
1483
cat >&5 <<_ACEOF
 
1484
 
 
1485
 
 
1486
## ----------- ##
 
1487
## Core tests. ##
 
1488
## ----------- ##
 
1489
 
 
1490
_ACEOF
 
1491
 
 
1492
 
 
1493
# Keep a trace of the command line.
 
1494
# Strip out --no-create and --no-recursion so they do not pile up.
 
1495
# Strip out --silent because we don't want to record it for future runs.
 
1496
# Also quote any args containing shell meta-characters.
 
1497
# Make two passes to allow for proper duplicate-argument suppression.
 
1498
ac_configure_args=
 
1499
ac_configure_args0=
 
1500
ac_configure_args1=
 
1501
ac_must_keep_next=false
 
1502
for ac_pass in 1 2
 
1503
do
 
1504
  for ac_arg
 
1505
  do
 
1506
    case $ac_arg in
 
1507
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1508
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1509
    | -silent | --silent | --silen | --sile | --sil)
 
1510
      continue ;;
 
1511
    *\'*)
 
1512
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1513
    esac
 
1514
    case $ac_pass in
 
1515
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1516
    2)
 
1517
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1518
      if test $ac_must_keep_next = true; then
 
1519
        ac_must_keep_next=false # Got value, back to normal.
 
1520
      else
 
1521
        case $ac_arg in
 
1522
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1523
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1524
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1525
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1526
            case "$ac_configure_args0 " in
 
1527
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1528
            esac
 
1529
            ;;
 
1530
          -* ) ac_must_keep_next=true ;;
 
1531
        esac
 
1532
      fi
 
1533
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1534
      ;;
 
1535
    esac
 
1536
  done
 
1537
done
 
1538
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1539
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1540
 
 
1541
# When interrupted or exit'd, cleanup temporary files, and complete
 
1542
# config.log.  We remove comments because anyway the quotes in there
 
1543
# would cause problems or look ugly.
 
1544
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1545
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1546
trap 'exit_status=$?
 
1547
  # Save into config.log some information that might help in debugging.
 
1548
  {
 
1549
    echo
 
1550
 
 
1551
    cat <<\_ASBOX
 
1552
## ---------------- ##
 
1553
## Cache variables. ##
 
1554
## ---------------- ##
 
1555
_ASBOX
 
1556
    echo
 
1557
    # The following way of writing the cache mishandles newlines in values,
 
1558
(
 
1559
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1560
    eval ac_val=\$$ac_var
 
1561
    case $ac_val in #(
 
1562
    *${as_nl}*)
 
1563
      case $ac_var in #(
 
1564
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1565
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1566
      esac
 
1567
      case $ac_var in #(
 
1568
      _ | IFS | as_nl) ;; #(
 
1569
      *) $as_unset $ac_var ;;
 
1570
      esac ;;
 
1571
    esac
 
1572
  done
 
1573
  (set) 2>&1 |
 
1574
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1575
    *${as_nl}ac_space=\ *)
 
1576
      sed -n \
 
1577
        "s/'\''/'\''\\\\'\'''\''/g;
 
1578
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1579
      ;; #(
 
1580
    *)
 
1581
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1582
      ;;
 
1583
    esac |
 
1584
    sort
 
1585
)
 
1586
    echo
 
1587
 
 
1588
    cat <<\_ASBOX
 
1589
## ----------------- ##
 
1590
## Output variables. ##
 
1591
## ----------------- ##
 
1592
_ASBOX
 
1593
    echo
 
1594
    for ac_var in $ac_subst_vars
 
1595
    do
 
1596
      eval ac_val=\$$ac_var
 
1597
      case $ac_val in
 
1598
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1599
      esac
 
1600
      echo "$ac_var='\''$ac_val'\''"
 
1601
    done | sort
 
1602
    echo
 
1603
 
 
1604
    if test -n "$ac_subst_files"; then
 
1605
      cat <<\_ASBOX
 
1606
## ------------------- ##
 
1607
## File substitutions. ##
 
1608
## ------------------- ##
 
1609
_ASBOX
 
1610
      echo
 
1611
      for ac_var in $ac_subst_files
 
1612
      do
 
1613
        eval ac_val=\$$ac_var
 
1614
        case $ac_val in
 
1615
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1616
        esac
 
1617
        echo "$ac_var='\''$ac_val'\''"
 
1618
      done | sort
 
1619
      echo
 
1620
    fi
 
1621
 
 
1622
    if test -s confdefs.h; then
 
1623
      cat <<\_ASBOX
 
1624
## ----------- ##
 
1625
## confdefs.h. ##
 
1626
## ----------- ##
 
1627
_ASBOX
 
1628
      echo
 
1629
      cat confdefs.h
 
1630
      echo
 
1631
    fi
 
1632
    test "$ac_signal" != 0 &&
 
1633
      echo "$as_me: caught signal $ac_signal"
 
1634
    echo "$as_me: exit $exit_status"
 
1635
  } >&5
 
1636
  rm -f core *.core core.conftest.* &&
 
1637
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1638
    exit $exit_status
 
1639
' 0
 
1640
for ac_signal in 1 2 13 15; do
 
1641
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1642
done
 
1643
ac_signal=0
 
1644
 
 
1645
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1646
rm -f -r conftest* confdefs.h
 
1647
 
 
1648
# Predefined preprocessor variables.
 
1649
 
 
1650
cat >>confdefs.h <<_ACEOF
 
1651
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1652
_ACEOF
 
1653
 
 
1654
 
 
1655
cat >>confdefs.h <<_ACEOF
 
1656
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1657
_ACEOF
 
1658
 
 
1659
 
 
1660
cat >>confdefs.h <<_ACEOF
 
1661
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1662
_ACEOF
 
1663
 
 
1664
 
 
1665
cat >>confdefs.h <<_ACEOF
 
1666
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1667
_ACEOF
 
1668
 
 
1669
 
 
1670
cat >>confdefs.h <<_ACEOF
 
1671
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1672
_ACEOF
 
1673
 
 
1674
 
 
1675
# Let the site file select an alternate cache file if it wants to.
 
1676
# Prefer explicitly selected file to automatically selected ones.
 
1677
if test -n "$CONFIG_SITE"; then
 
1678
  set x "$CONFIG_SITE"
 
1679
elif test "x$prefix" != xNONE; then
 
1680
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1681
else
 
1682
  set x "$ac_default_prefix/share/config.site" \
 
1683
        "$ac_default_prefix/etc/config.site"
 
1684
fi
 
1685
shift
 
1686
for ac_site_file
 
1687
do
 
1688
  if test -r "$ac_site_file"; then
 
1689
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1690
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1691
    sed 's/^/| /' "$ac_site_file" >&5
 
1692
    . "$ac_site_file"
 
1693
  fi
 
1694
done
 
1695
 
 
1696
if test -r "$cache_file"; then
 
1697
  # Some versions of bash will fail to source /dev/null (special
 
1698
  # files actually), so we avoid doing that.
 
1699
  if test -f "$cache_file"; then
 
1700
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1701
echo "$as_me: loading cache $cache_file" >&6;}
 
1702
    case $cache_file in
 
1703
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1704
      *)                      . "./$cache_file";;
 
1705
    esac
 
1706
  fi
 
1707
else
 
1708
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1709
echo "$as_me: creating cache $cache_file" >&6;}
 
1710
  >$cache_file
 
1711
fi
 
1712
 
 
1713
# Check that the precious variables saved in the cache have kept the same
 
1714
# value.
 
1715
ac_cache_corrupted=false
 
1716
for ac_var in $ac_precious_vars; do
 
1717
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1718
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1719
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1720
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1721
  case $ac_old_set,$ac_new_set in
 
1722
    set,)
 
1723
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1724
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1725
      ac_cache_corrupted=: ;;
 
1726
    ,set)
 
1727
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1728
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1729
      ac_cache_corrupted=: ;;
 
1730
    ,);;
 
1731
    *)
 
1732
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1733
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1734
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1735
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1736
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1737
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1738
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1739
        ac_cache_corrupted=:
 
1740
      fi;;
 
1741
  esac
 
1742
  # Pass precious variables to config.status.
 
1743
  if test "$ac_new_set" = set; then
 
1744
    case $ac_new_val in
 
1745
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1746
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1747
    esac
 
1748
    case " $ac_configure_args " in
 
1749
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1750
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1751
    esac
 
1752
  fi
 
1753
done
 
1754
if $ac_cache_corrupted; then
 
1755
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1756
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1757
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1758
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1759
   { (exit 1); exit 1; }; }
 
1760
fi
 
1761
 
 
1762
 
 
1763
 
 
1764
 
 
1765
 
 
1766
 
 
1767
 
 
1768
 
 
1769
 
 
1770
 
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
 
 
1776
 
 
1777
 
 
1778
ac_ext=c
 
1779
ac_cpp='$CPP $CPPFLAGS'
 
1780
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1781
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1782
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1783
 
 
1784
 
 
1785
export CYGWIN=nobinmode
 
1786
 
 
1787
upper() {
 
1788
  echo "$1" | tr "a-z" "A-Z"
 
1789
}
 
1790
 
 
1791
lower() {
 
1792
  echo "$1" | tr "A-Z" "a-z"
 
1793
}
 
1794
 
 
1795
new_section() {
 
1796
  banner=`echo "* $1 *" | sed -e 's/./*/g'`
 
1797
  title=`echo "* $1 *" | tr "a-z" "A-Z"`
 
1798
  { echo "$as_me:$LINENO: $banner" >&5
 
1799
echo "$as_me: $banner" >&6;}
 
1800
  { echo "$as_me:$LINENO: $title" >&5
 
1801
echo "$as_me: $title" >&6;}
 
1802
  { echo "$as_me:$LINENO: $banner" >&5
 
1803
echo "$as_me: $banner" >&6;}
 
1804
}
 
1805
 
 
1806
##########################
 
1807
# Check for Make version #
 
1808
##########################
 
1809
 
 
1810
new_section "configure make"
 
1811
 
 
1812
# Extract the first word of "make", so it can be a program name with args.
 
1813
set dummy make; ac_word=$2
 
1814
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1815
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1816
if test "${ac_cv_prog_MAKE+set}" = set; then
 
1817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1818
else
 
1819
  if test -n "$MAKE"; then
 
1820
  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
 
1821
else
 
1822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1823
for as_dir in $PATH
 
1824
do
 
1825
  IFS=$as_save_IFS
 
1826
  test -z "$as_dir" && as_dir=.
 
1827
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1828
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1829
    ac_cv_prog_MAKE="make"
 
1830
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1831
    break 2
 
1832
  fi
 
1833
done
 
1834
done
 
1835
IFS=$as_save_IFS
 
1836
 
 
1837
fi
 
1838
fi
 
1839
MAKE=$ac_cv_prog_MAKE
 
1840
if test -n "$MAKE"; then
 
1841
  { echo "$as_me:$LINENO: result: $MAKE" >&5
 
1842
echo "${ECHO_T}$MAKE" >&6; }
 
1843
else
 
1844
  { echo "$as_me:$LINENO: result: no" >&5
 
1845
echo "${ECHO_T}no" >&6; }
 
1846
fi
 
1847
 
 
1848
 
 
1849
MAKE_DISTRIB=`$MAKE -v | sed -n -e 's/\(.*\) Make.*$/\1/p' `
 
1850
MAKE_MAJOR=`$MAKE -v | sed -n  -f bin/sed_get_make_major `
 
1851
MAKE_MINOR=`$MAKE -v | sed -n -f bin/sed_get_make_minor `
 
1852
echo $ECHO_N "make version is $MAKE_DISTRIB Make $MAKE_MAJOR.$MAKE_MINOR: $ECHO_C"
 
1853
if test "$MAKE_DISTRIB" != GNU -o "$MAKE_MAJOR" -lt 3 -o "$MAKE_MINOR" -lt 81;
 
1854
then
 
1855
   echo "${ECHO_T}"
 
1856
   { { echo "$as_me:$LINENO: error: unsupported version; GNU Make version 3.81
 
1857
                 or higher is required." >&5
 
1858
echo "$as_me: error: unsupported version; GNU Make version 3.81
 
1859
                 or higher is required." >&2;}
 
1860
   { (exit 1); exit 1; }; };
 
1861
else
 
1862
   echo "${ECHO_T}Good!"
 
1863
fi
 
1864
 
 
1865
# verbosemake feature
 
1866
# Check whether --enable-verbosemake was given.
 
1867
if test "${enable_verbosemake+set}" = set; then
 
1868
  enableval=$enable_verbosemake; VERBOSEMAKE=yes
 
1869
else
 
1870
  VERBOSEMAKE=no
 
1871
fi
 
1872
 
 
1873
if test "$VERBOSEMAKE" = yes ; then
 
1874
        { echo "$as_me:$LINENO: result: Make will be verbose." >&5
 
1875
echo "${ECHO_T}Make will be verbose." >&6; }
 
1876
fi
 
1877
 
 
1878
#############################
 
1879
# Check for Ocaml compilers #
 
1880
#############################
 
1881
 
 
1882
# Specifically allow 3.10.0
 
1883
UNSUPPORTED_OCAML=no
 
1884
# Check whether --enable-unsupported-ocaml was given.
 
1885
if test "${enable_unsupported_ocaml+set}" = set; then
 
1886
  enableval=$enable_unsupported_ocaml; UNSUPPORTED_OCAML=yes
 
1887
else
 
1888
  UNSUPPORTED_OCAML=no
 
1889
fi
 
1890
 
 
1891
 
 
1892
new_section "configure ocaml compilers"
 
1893
 
 
1894
# we first look for ocamlc in the path; if not present, we fail
 
1895
# Extract the first word of "ocamlc", so it can be a program name with args.
 
1896
set dummy ocamlc; ac_word=$2
 
1897
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1898
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1899
if test "${ac_cv_prog_OCAMLC+set}" = set; then
 
1900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1901
else
 
1902
  if test -n "$OCAMLC"; then
 
1903
  ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
 
1904
else
 
1905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1906
for as_dir in $PATH
 
1907
do
 
1908
  IFS=$as_save_IFS
 
1909
  test -z "$as_dir" && as_dir=.
 
1910
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1911
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1912
    ac_cv_prog_OCAMLC="ocamlc"
 
1913
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1914
    break 2
 
1915
  fi
 
1916
done
 
1917
done
 
1918
IFS=$as_save_IFS
 
1919
 
 
1920
  test -z "$ac_cv_prog_OCAMLC" && ac_cv_prog_OCAMLC="no"
 
1921
fi
 
1922
fi
 
1923
OCAMLC=$ac_cv_prog_OCAMLC
 
1924
if test -n "$OCAMLC"; then
 
1925
  { echo "$as_me:$LINENO: result: $OCAMLC" >&5
 
1926
echo "${ECHO_T}$OCAMLC" >&6; }
 
1927
else
 
1928
  { echo "$as_me:$LINENO: result: no" >&5
 
1929
echo "${ECHO_T}no" >&6; }
 
1930
fi
 
1931
 
 
1932
 
 
1933
if test "$OCAMLC" = no ; then
 
1934
        { { echo "$as_me:$LINENO: error: Cannot find ocamlc." >&5
 
1935
echo "$as_me: error: Cannot find ocamlc." >&2;}
 
1936
   { (exit 1); exit 1; }; }
 
1937
fi
 
1938
 
 
1939
# we extract Ocaml version number and library path
 
1940
OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
 
1941
LOWER_THAN_311="yes"
 
1942
echo $ECHO_N "ocaml version is $OCAMLVERSION: $ECHO_C"
 
1943
case $OCAMLVERSION in
 
1944
  3.09.3*) echo "${ECHO_T}Good!";;
 
1945
  3.09*) echo "${ECHO_T}Warning: unsupported version.";
 
1946
         if test "$UNSUPPORTED_OCAML" == "yes"; then
 
1947
           echo "Compile at your own risks";
 
1948
         else
 
1949
           echo "If you want to compile Frama-C with this version, use the \
 
1950
--enable-unsupported-ocaml option of configure";
 
1951
           exit 2;
 
1952
         fi
 
1953
         ;;
 
1954
  3.0*) echo "${ECHO_T}Incompatible version!"; exit 2;;
 
1955
  3.10.0) echo "${ECHO_T}Warning: unsupported version." ;
 
1956
         if test "$UNSUPPORTED_OCAML" == "yes"; then
 
1957
           echo "Compile at your own risks";
 
1958
         else
 
1959
           echo "If you want to compile Frama-C with this version, use the \
 
1960
--enable-unsupported-ocaml option of configure";
 
1961
           exit 2;
 
1962
         fi
 
1963
         ;;
 
1964
  3.10*) echo "${ECHO_T}Good!";;
 
1965
  3.1*) LOWER_THAN_311=no;
 
1966
        echo "${ECHO_T}Good!";;
 
1967
  *) echo "${ECHO_T}Incompatible version!"; exit 2;;
 
1968
esac
 
1969
 
 
1970
# Ocaml library path
 
1971
OCAMLLIB=`$OCAMLC -where | tr -d '\\r'`
 
1972
echo "ocaml library path is $OCAMLLIB"
 
1973
 
 
1974
# then we look for ocamlopt; if not present, we issue a warning
 
1975
# if the version is not the same, we also discard it
 
1976
# we set OCAMLBEST to "opt" or "byte", whether ocamlopt is available or not
 
1977
# Extract the first word of "ocamlopt", so it can be a program name with args.
 
1978
set dummy ocamlopt; ac_word=$2
 
1979
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1980
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1981
if test "${ac_cv_prog_OCAMLOPT+set}" = set; then
 
1982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1983
else
 
1984
  if test -n "$OCAMLOPT"; then
 
1985
  ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
 
1986
else
 
1987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1988
for as_dir in $PATH
 
1989
do
 
1990
  IFS=$as_save_IFS
 
1991
  test -z "$as_dir" && as_dir=.
 
1992
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1993
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1994
    ac_cv_prog_OCAMLOPT="ocamlopt"
 
1995
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1996
    break 2
 
1997
  fi
 
1998
done
 
1999
done
 
2000
IFS=$as_save_IFS
 
2001
 
 
2002
  test -z "$ac_cv_prog_OCAMLOPT" && ac_cv_prog_OCAMLOPT="no"
 
2003
fi
 
2004
fi
 
2005
OCAMLOPT=$ac_cv_prog_OCAMLOPT
 
2006
if test -n "$OCAMLOPT"; then
 
2007
  { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
 
2008
echo "${ECHO_T}$OCAMLOPT" >&6; }
 
2009
else
 
2010
  { echo "$as_me:$LINENO: result: no" >&5
 
2011
echo "${ECHO_T}no" >&6; }
 
2012
fi
 
2013
 
 
2014
 
 
2015
OCAMLBEST=byte
 
2016
if test "$OCAMLOPT" = no ; then
 
2017
        { echo "$as_me:$LINENO: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
 
2018
echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
 
2019
else
 
2020
        { echo "$as_me:$LINENO: checking ocamlopt version" >&5
 
2021
echo $ECHO_N "checking ocamlopt version... $ECHO_C" >&6; }
 
2022
        TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
 
2023
        if test "$TMPVERSION" != "$OCAMLVERSION" ; then
 
2024
            { echo "$as_me:$LINENO: result: differs from ocamlc; ocamlopt discarded." >&5
 
2025
echo "${ECHO_T}differs from ocamlc; ocamlopt discarded." >&6; }
 
2026
            OCAMLOPT=no
 
2027
        else
 
2028
            { echo "$as_me:$LINENO: result: ok" >&5
 
2029
echo "${ECHO_T}ok" >&6; }
 
2030
            OCAMLBEST=opt
 
2031
        fi
 
2032
fi
 
2033
 
 
2034
if test "$OCAMLBEST" = "opt"; then
 
2035
   LIB_SUFFIX=cmxa
 
2036
   OBJ_SUFFIX=cmx;
 
2037
else
 
2038
   LIB_SUFFIX=cma
 
2039
   OBJ_SUFFIX=cmo;
 
2040
fi
 
2041
 
 
2042
# checking for ocamlc.opt
 
2043
# Extract the first word of "ocamlc.opt", so it can be a program name with args.
 
2044
set dummy ocamlc.opt; ac_word=$2
 
2045
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2046
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2047
if test "${ac_cv_prog_OCAMLCDOTOPT+set}" = set; then
 
2048
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2049
else
 
2050
  if test -n "$OCAMLCDOTOPT"; then
 
2051
  ac_cv_prog_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test.
 
2052
else
 
2053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2054
for as_dir in $PATH
 
2055
do
 
2056
  IFS=$as_save_IFS
 
2057
  test -z "$as_dir" && as_dir=.
 
2058
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2059
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2060
    ac_cv_prog_OCAMLCDOTOPT="ocamlc.opt"
 
2061
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2062
    break 2
 
2063
  fi
 
2064
done
 
2065
done
 
2066
IFS=$as_save_IFS
 
2067
 
 
2068
  test -z "$ac_cv_prog_OCAMLCDOTOPT" && ac_cv_prog_OCAMLCDOTOPT="no"
 
2069
fi
 
2070
fi
 
2071
OCAMLCDOTOPT=$ac_cv_prog_OCAMLCDOTOPT
 
2072
if test -n "$OCAMLCDOTOPT"; then
 
2073
  { echo "$as_me:$LINENO: result: $OCAMLCDOTOPT" >&5
 
2074
echo "${ECHO_T}$OCAMLCDOTOPT" >&6; }
 
2075
else
 
2076
  { echo "$as_me:$LINENO: result: no" >&5
 
2077
echo "${ECHO_T}no" >&6; }
 
2078
fi
 
2079
 
 
2080
 
 
2081
if test "$OCAMLCDOTOPT" != no ; then
 
2082
        { echo "$as_me:$LINENO: checking ocamlc.opt version" >&5
 
2083
echo $ECHO_N "checking ocamlc.opt version... $ECHO_C" >&6; }
 
2084
        TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
 
2085
        if test "$TMPVERSION" != "$OCAMLVERSION" ; then
 
2086
            { echo "$as_me:$LINENO: result: differs from ocamlc; ocamlc.opt discarded." >&5
 
2087
echo "${ECHO_T}differs from ocamlc; ocamlc.opt discarded." >&6; }
 
2088
        else
 
2089
            { echo "$as_me:$LINENO: result: ok" >&5
 
2090
echo "${ECHO_T}ok" >&6; }
 
2091
            OCAMLC=$OCAMLCDOTOPT
 
2092
        fi
 
2093
fi
 
2094
 
 
2095
# checking for ocamlopt.opt
 
2096
if test "$OCAMLOPT" != no ; then
 
2097
    # Extract the first word of "ocamlopt.opt", so it can be a program name with args.
 
2098
set dummy ocamlopt.opt; ac_word=$2
 
2099
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2100
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2101
if test "${ac_cv_prog_OCAMLOPTDOTOPT+set}" = set; then
 
2102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2103
else
 
2104
  if test -n "$OCAMLOPTDOTOPT"; then
 
2105
  ac_cv_prog_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test.
 
2106
else
 
2107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2108
for as_dir in $PATH
 
2109
do
 
2110
  IFS=$as_save_IFS
 
2111
  test -z "$as_dir" && as_dir=.
 
2112
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2114
    ac_cv_prog_OCAMLOPTDOTOPT="ocamlopt.opt"
 
2115
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2116
    break 2
 
2117
  fi
 
2118
done
 
2119
done
 
2120
IFS=$as_save_IFS
 
2121
 
 
2122
  test -z "$ac_cv_prog_OCAMLOPTDOTOPT" && ac_cv_prog_OCAMLOPTDOTOPT="no"
 
2123
fi
 
2124
fi
 
2125
OCAMLOPTDOTOPT=$ac_cv_prog_OCAMLOPTDOTOPT
 
2126
if test -n "$OCAMLOPTDOTOPT"; then
 
2127
  { echo "$as_me:$LINENO: result: $OCAMLOPTDOTOPT" >&5
 
2128
echo "${ECHO_T}$OCAMLOPTDOTOPT" >&6; }
 
2129
else
 
2130
  { echo "$as_me:$LINENO: result: no" >&5
 
2131
echo "${ECHO_T}no" >&6; }
 
2132
fi
 
2133
 
 
2134
 
 
2135
    if test "$OCAMLOPTDOTOPT" != no ; then
 
2136
        { echo "$as_me:$LINENO: checking ocamlc.opt version" >&5
 
2137
echo $ECHO_N "checking ocamlc.opt version... $ECHO_C" >&6; }
 
2138
        TMPVER=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
 
2139
        if test "$TMPVER" != "$OCAMLVERSION" ; then
 
2140
            { echo "$as_me:$LINENO: result: differs from ocamlc; ocamlopt.opt discarded." >&5
 
2141
echo "${ECHO_T}differs from ocamlc; ocamlopt.opt discarded." >&6; }
 
2142
        else
 
2143
            { echo "$as_me:$LINENO: result: ok" >&5
 
2144
echo "${ECHO_T}ok" >&6; }
 
2145
            OCAMLOPT=$OCAMLOPTDOTOPT
 
2146
        fi
 
2147
    fi
 
2148
fi
 
2149
 
 
2150
##############################################
 
2151
# Check for other mandatory tools/libraries #
 
2152
##############################################
 
2153
 
 
2154
new_section "configure mandatory tools and libraries"
 
2155
 
 
2156
# ocamldep
 
2157
# Extract the first word of "ocamldep", so it can be a program name with args.
 
2158
set dummy ocamldep; ac_word=$2
 
2159
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2160
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2161
if test "${ac_cv_prog_OCAMLDEP+set}" = set; then
 
2162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2163
else
 
2164
  if test -n "$OCAMLDEP"; then
 
2165
  ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
 
2166
else
 
2167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2168
for as_dir in $PATH
 
2169
do
 
2170
  IFS=$as_save_IFS
 
2171
  test -z "$as_dir" && as_dir=.
 
2172
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2173
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2174
    ac_cv_prog_OCAMLDEP="ocamldep"
 
2175
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2176
    break 2
 
2177
  fi
 
2178
done
 
2179
done
 
2180
IFS=$as_save_IFS
 
2181
 
 
2182
  test -z "$ac_cv_prog_OCAMLDEP" && ac_cv_prog_OCAMLDEP="no"
 
2183
fi
 
2184
fi
 
2185
OCAMLDEP=$ac_cv_prog_OCAMLDEP
 
2186
if test -n "$OCAMLDEP"; then
 
2187
  { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
 
2188
echo "${ECHO_T}$OCAMLDEP" >&6; }
 
2189
else
 
2190
  { echo "$as_me:$LINENO: result: no" >&5
 
2191
echo "${ECHO_T}no" >&6; }
 
2192
fi
 
2193
 
 
2194
 
 
2195
if test "$OCAMLDEP" = no ; then
 
2196
        { { echo "$as_me:$LINENO: error: Cannot find ocamldep." >&5
 
2197
echo "$as_me: error: Cannot find ocamldep." >&2;}
 
2198
   { (exit 1); exit 1; }; }
 
2199
else
 
2200
    # Extract the first word of "ocamldep.opt", so it can be a program name with args.
 
2201
set dummy ocamldep.opt; ac_word=$2
 
2202
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2203
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2204
if test "${ac_cv_prog_OCAMLDEPDOTOPT+set}" = set; then
 
2205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2206
else
 
2207
  if test -n "$OCAMLDEPDOTOPT"; then
 
2208
  ac_cv_prog_OCAMLDEPDOTOPT="$OCAMLDEPDOTOPT" # Let the user override the test.
 
2209
else
 
2210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2211
for as_dir in $PATH
 
2212
do
 
2213
  IFS=$as_save_IFS
 
2214
  test -z "$as_dir" && as_dir=.
 
2215
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2216
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2217
    ac_cv_prog_OCAMLDEPDOTOPT="ocamldep.opt"
 
2218
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2219
    break 2
 
2220
  fi
 
2221
done
 
2222
done
 
2223
IFS=$as_save_IFS
 
2224
 
 
2225
  test -z "$ac_cv_prog_OCAMLDEPDOTOPT" && ac_cv_prog_OCAMLDEPDOTOPT="no"
 
2226
fi
 
2227
fi
 
2228
OCAMLDEPDOTOPT=$ac_cv_prog_OCAMLDEPDOTOPT
 
2229
if test -n "$OCAMLDEPDOTOPT"; then
 
2230
  { echo "$as_me:$LINENO: result: $OCAMLDEPDOTOPT" >&5
 
2231
echo "${ECHO_T}$OCAMLDEPDOTOPT" >&6; }
 
2232
else
 
2233
  { echo "$as_me:$LINENO: result: no" >&5
 
2234
echo "${ECHO_T}no" >&6; }
 
2235
fi
 
2236
 
 
2237
 
 
2238
    if test "$OCAMLDEPDOTOPT" != no ; then
 
2239
        OCAMLDEP=$OCAMLDEPDOTOPT
 
2240
    fi
 
2241
fi
 
2242
 
 
2243
# ocamllex
 
2244
# Extract the first word of "ocamllex", so it can be a program name with args.
 
2245
set dummy ocamllex; ac_word=$2
 
2246
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2248
if test "${ac_cv_prog_OCAMLLEX+set}" = set; then
 
2249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2250
else
 
2251
  if test -n "$OCAMLLEX"; then
 
2252
  ac_cv_prog_OCAMLLEX="$OCAMLLEX" # Let the user override the test.
 
2253
else
 
2254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2255
for as_dir in $PATH
 
2256
do
 
2257
  IFS=$as_save_IFS
 
2258
  test -z "$as_dir" && as_dir=.
 
2259
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2260
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2261
    ac_cv_prog_OCAMLLEX="ocamllex"
 
2262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2263
    break 2
 
2264
  fi
 
2265
done
 
2266
done
 
2267
IFS=$as_save_IFS
 
2268
 
 
2269
  test -z "$ac_cv_prog_OCAMLLEX" && ac_cv_prog_OCAMLLEX="no"
 
2270
fi
 
2271
fi
 
2272
OCAMLLEX=$ac_cv_prog_OCAMLLEX
 
2273
if test -n "$OCAMLLEX"; then
 
2274
  { echo "$as_me:$LINENO: result: $OCAMLLEX" >&5
 
2275
echo "${ECHO_T}$OCAMLLEX" >&6; }
 
2276
else
 
2277
  { echo "$as_me:$LINENO: result: no" >&5
 
2278
echo "${ECHO_T}no" >&6; }
 
2279
fi
 
2280
 
 
2281
 
 
2282
if test "$OCAMLLEX" = no ; then
 
2283
    { { echo "$as_me:$LINENO: error: Cannot find ocamllex." >&5
 
2284
echo "$as_me: error: Cannot find ocamllex." >&2;}
 
2285
   { (exit 1); exit 1; }; }
 
2286
else
 
2287
    # Extract the first word of "ocamllex.opt", so it can be a program name with args.
 
2288
set dummy ocamllex.opt; ac_word=$2
 
2289
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2290
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2291
if test "${ac_cv_prog_OCAMLLEXDOTOPT+set}" = set; then
 
2292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2293
else
 
2294
  if test -n "$OCAMLLEXDOTOPT"; then
 
2295
  ac_cv_prog_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test.
 
2296
else
 
2297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2298
for as_dir in $PATH
 
2299
do
 
2300
  IFS=$as_save_IFS
 
2301
  test -z "$as_dir" && as_dir=.
 
2302
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2303
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2304
    ac_cv_prog_OCAMLLEXDOTOPT="ocamllex.opt"
 
2305
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2306
    break 2
 
2307
  fi
 
2308
done
 
2309
done
 
2310
IFS=$as_save_IFS
 
2311
 
 
2312
  test -z "$ac_cv_prog_OCAMLLEXDOTOPT" && ac_cv_prog_OCAMLLEXDOTOPT="no"
 
2313
fi
 
2314
fi
 
2315
OCAMLLEXDOTOPT=$ac_cv_prog_OCAMLLEXDOTOPT
 
2316
if test -n "$OCAMLLEXDOTOPT"; then
 
2317
  { echo "$as_me:$LINENO: result: $OCAMLLEXDOTOPT" >&5
 
2318
echo "${ECHO_T}$OCAMLLEXDOTOPT" >&6; }
 
2319
else
 
2320
  { echo "$as_me:$LINENO: result: no" >&5
 
2321
echo "${ECHO_T}no" >&6; }
 
2322
fi
 
2323
 
 
2324
 
 
2325
    if test "$OCAMLLEXDOTOPT" != no ; then
 
2326
        OCAMLLEX=$OCAMLLEXDOTOPT
 
2327
    fi
 
2328
fi
 
2329
 
 
2330
# ocamlyacc
 
2331
# Extract the first word of "ocamlyacc", so it can be a program name with args.
 
2332
set dummy ocamlyacc; ac_word=$2
 
2333
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2335
if test "${ac_cv_prog_OCAMLYACC+set}" = set; then
 
2336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2337
else
 
2338
  if test -n "$OCAMLYACC"; then
 
2339
  ac_cv_prog_OCAMLYACC="$OCAMLYACC" # Let the user override the test.
 
2340
else
 
2341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2342
for as_dir in $PATH
 
2343
do
 
2344
  IFS=$as_save_IFS
 
2345
  test -z "$as_dir" && as_dir=.
 
2346
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2347
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2348
    ac_cv_prog_OCAMLYACC="ocamlyacc"
 
2349
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2350
    break 2
 
2351
  fi
 
2352
done
 
2353
done
 
2354
IFS=$as_save_IFS
 
2355
 
 
2356
  test -z "$ac_cv_prog_OCAMLYACC" && ac_cv_prog_OCAMLYACC="no"
 
2357
fi
 
2358
fi
 
2359
OCAMLYACC=$ac_cv_prog_OCAMLYACC
 
2360
if test -n "$OCAMLYACC"; then
 
2361
  { echo "$as_me:$LINENO: result: $OCAMLYACC" >&5
 
2362
echo "${ECHO_T}$OCAMLYACC" >&6; }
 
2363
else
 
2364
  { echo "$as_me:$LINENO: result: no" >&5
 
2365
echo "${ECHO_T}no" >&6; }
 
2366
fi
 
2367
 
 
2368
 
 
2369
if test "$OCAMLYACC" = no ; then
 
2370
        { { echo "$as_me:$LINENO: error: Cannot find ocamlyacc." >&5
 
2371
echo "$as_me: error: Cannot find ocamlyacc." >&2;}
 
2372
   { (exit 1); exit 1; }; }
 
2373
fi
 
2374
 
 
2375
# camlp4oof
 
2376
 
 
2377
# ocamlgraph
 
2378
 
 
2379
OCAMLGRAPH_LOCAL=ocamlgraph
 
2380
OCAMLGRAPH_EXISTS=no
 
2381
 
 
2382
OCAMLGRAPH_TEST=$OCAMLGRAPH_LOCAL
 
2383
OCAMLGRAPH="-I lib"
 
2384
as_ac_File=`echo "ac_cv_file_$OCAMLGRAPH_TEST" | $as_tr_sh`
 
2385
{ echo "$as_me:$LINENO: checking for $OCAMLGRAPH_TEST" >&5
 
2386
echo $ECHO_N "checking for $OCAMLGRAPH_TEST... $ECHO_C" >&6; }
 
2387
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
2388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2389
else
 
2390
  test "$cross_compiling" = yes &&
 
2391
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
2392
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
2393
   { (exit 1); exit 1; }; }
 
2394
if test -r "$OCAMLGRAPH_TEST"; then
 
2395
  eval "$as_ac_File=yes"
 
2396
else
 
2397
  eval "$as_ac_File=no"
 
2398
fi
 
2399
fi
 
2400
ac_res=`eval echo '${'$as_ac_File'}'`
 
2401
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
2402
echo "${ECHO_T}$ac_res" >&6; }
 
2403
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
2404
  OCAMLGRAPH_EXISTS=yes
 
2405
fi
 
2406
 
 
2407
 
 
2408
if test "$OCAMLGRAPH_EXISTS" == "no"; then
 
2409
 { echo "$as_me:$LINENO: checking for ocamlgraph.tar.gz" >&5
 
2410
echo $ECHO_N "checking for ocamlgraph.tar.gz... $ECHO_C" >&6; }
 
2411
if test "${ac_cv_file_ocamlgraph_tar_gz+set}" = set; then
 
2412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2413
else
 
2414
  test "$cross_compiling" = yes &&
 
2415
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
2416
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
2417
   { (exit 1); exit 1; }; }
 
2418
if test -r "ocamlgraph.tar.gz"; then
 
2419
  ac_cv_file_ocamlgraph_tar_gz=yes
 
2420
else
 
2421
  ac_cv_file_ocamlgraph_tar_gz=no
 
2422
fi
 
2423
fi
 
2424
{ echo "$as_me:$LINENO: result: $ac_cv_file_ocamlgraph_tar_gz" >&5
 
2425
echo "${ECHO_T}$ac_cv_file_ocamlgraph_tar_gz" >&6; }
 
2426
if test $ac_cv_file_ocamlgraph_tar_gz = yes; then
 
2427
  OCAMLGRAPH_EXISTS=yes
 
2428
fi
 
2429
 
 
2430
 if test "$OCAMLGRAPH_EXISTS" == "yes"; then
 
2431
         { echo "$as_me:$LINENO: Unarchiving ocamlgraph.tar.gz" >&5
 
2432
echo "$as_me: Unarchiving ocamlgraph.tar.gz" >&6;}
 
2433
         tar zxf ocamlgraph.tar.gz
 
2434
 fi
 
2435
else
 
2436
 { echo "$as_me:$LINENO: checking for ocamlgraph.tar.gz" >&5
 
2437
echo $ECHO_N "checking for ocamlgraph.tar.gz... $ECHO_C" >&6; }
 
2438
if test "${ac_cv_file_ocamlgraph_tar_gz+set}" = set; then
 
2439
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2440
else
 
2441
  test "$cross_compiling" = yes &&
 
2442
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
2443
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
2444
   { (exit 1); exit 1; }; }
 
2445
if test -r "ocamlgraph.tar.gz"; then
 
2446
  ac_cv_file_ocamlgraph_tar_gz=yes
 
2447
else
 
2448
  ac_cv_file_ocamlgraph_tar_gz=no
 
2449
fi
 
2450
fi
 
2451
{ echo "$as_me:$LINENO: result: $ac_cv_file_ocamlgraph_tar_gz" >&5
 
2452
echo "${ECHO_T}$ac_cv_file_ocamlgraph_tar_gz" >&6; }
 
2453
if test $ac_cv_file_ocamlgraph_tar_gz = yes; then
 
2454
  OCAMLGRAPH_TAR=yes
 
2455
fi
 
2456
 
 
2457
 if test "$OCAMLGRAPH_TAR" == "yes"; then
 
2458
   if test ocamlgraph.tar.gz -nt ocamlgraph; then
 
2459
     rm -rf ocamlgraph
 
2460
     { echo "$as_me:$LINENO: Ocamlgraph updated" >&5
 
2461
echo "$as_me: Ocamlgraph updated" >&6;}
 
2462
     tar zxf ocamlgraph.tar.gz
 
2463
   fi
 
2464
 fi
 
2465
fi
 
2466
 
 
2467
#NB: until now, it is not really possible to check a particular
 
2468
#version of ocamlgraph if it is installed system-wide. for godi installs, this
 
2469
#is taken into account by godi itself
 
2470
if test "$OCAMLGRAPH_EXISTS" == "no"; then
 
2471
   OCAMLGRAPH_LOCAL=""
 
2472
   OCAMLGRAPH_TEST=$OCAMLLIB/ocamlgraph
 
2473
   OCAMLGRAPH="-I +ocamlgraph"
 
2474
   as_ac_File=`echo "ac_cv_file_$OCAMLGRAPH_TEST" | $as_tr_sh`
 
2475
{ echo "$as_me:$LINENO: checking for $OCAMLGRAPH_TEST" >&5
 
2476
echo $ECHO_N "checking for $OCAMLGRAPH_TEST... $ECHO_C" >&6; }
 
2477
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
2478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2479
else
 
2480
  test "$cross_compiling" = yes &&
 
2481
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
2482
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
2483
   { (exit 1); exit 1; }; }
 
2484
if test -r "$OCAMLGRAPH_TEST"; then
 
2485
  eval "$as_ac_File=yes"
 
2486
else
 
2487
  eval "$as_ac_File=no"
 
2488
fi
 
2489
fi
 
2490
ac_res=`eval echo '${'$as_ac_File'}'`
 
2491
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
2492
echo "${ECHO_T}$ac_res" >&6; }
 
2493
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
2494
  OCAMLGRAPH_EXISTS=yes
 
2495
fi
 
2496
 
 
2497
 
 
2498
   if test "$OCAMLGRAPH_EXISTS" == "no"; then
 
2499
      OCAMLGRAPH_TEST=$OCAMLLIB
 
2500
      OCAMLGRAPH=
 
2501
      as_ac_File=`echo "ac_cv_file_$OCAMLGRAPH_TEST/graph.$OBJ_SUFFIX" | $as_tr_sh`
 
2502
{ echo "$as_me:$LINENO: checking for $OCAMLGRAPH_TEST/graph.$OBJ_SUFFIX" >&5
 
2503
echo $ECHO_N "checking for $OCAMLGRAPH_TEST/graph.$OBJ_SUFFIX... $ECHO_C" >&6; }
 
2504
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
2505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2506
else
 
2507
  test "$cross_compiling" = yes &&
 
2508
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
2509
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
2510
   { (exit 1); exit 1; }; }
 
2511
if test -r "$OCAMLGRAPH_TEST/graph.$OBJ_SUFFIX"; then
 
2512
  eval "$as_ac_File=yes"
 
2513
else
 
2514
  eval "$as_ac_File=no"
 
2515
fi
 
2516
fi
 
2517
ac_res=`eval echo '${'$as_ac_File'}'`
 
2518
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
2519
echo "${ECHO_T}$ac_res" >&6; }
 
2520
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
2521
  OCAMLGRAPH_EXISTS=yes
 
2522
fi
 
2523
 
 
2524
   fi
 
2525
 
 
2526
   if test "$OCAMLGRAPH_EXISTS" == "no"; then
 
2527
      { { echo "$as_me:$LINENO: error: Cannot find $OCAMLGRAPH_LOCAL in current directory
 
2528
      Please download the latest version from http://ocamlgraph.lri.fr/download
 
2529
      Compile it in \"ocamlgraph\" then rerun ./configure" >&5
 
2530
echo "$as_me: error: Cannot find $OCAMLGRAPH_LOCAL in current directory
 
2531
      Please download the latest version from http://ocamlgraph.lri.fr/download
 
2532
      Compile it in \"ocamlgraph\" then rerun ./configure" >&2;}
 
2533
   { (exit 1); exit 1; }; }
 
2534
   fi
 
2535
else
 
2536
        as_ac_File=`echo "ac_cv_file_$OCAMLGRAPH_TEST/Makefile" | $as_tr_sh`
 
2537
{ echo "$as_me:$LINENO: checking for $OCAMLGRAPH_TEST/Makefile" >&5
 
2538
echo $ECHO_N "checking for $OCAMLGRAPH_TEST/Makefile... $ECHO_C" >&6; }
 
2539
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
2540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2541
else
 
2542
  test "$cross_compiling" = yes &&
 
2543
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
2544
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
2545
   { (exit 1); exit 1; }; }
 
2546
if test -r "$OCAMLGRAPH_TEST/Makefile"; then
 
2547
  eval "$as_ac_File=yes"
 
2548
else
 
2549
  eval "$as_ac_File=no"
 
2550
fi
 
2551
fi
 
2552
ac_res=`eval echo '${'$as_ac_File'}'`
 
2553
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
2554
echo "${ECHO_T}$ac_res" >&6; }
 
2555
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
2556
  :
 
2557
else
 
2558
  { echo "$as_me:$LINENO: Configuring ocamlgraph" >&5
 
2559
echo "$as_me: Configuring ocamlgraph" >&6;}
 
2560
        (cd $OCAMLGRAPH_TEST && ./configure > /dev/null)
 
2561
fi
 
2562
 
 
2563
#        AC_CHECK_FILE($OCAMLGRAPH_TEST/graph.cmo,,
 
2564
#        AC_MSG_NOTICE([ocamlgraph not compiled: compiling it])
 
2565
#        [$MAKE -s -C $OCAMLGRAPH_TEST])
 
2566
fi
 
2567
 
 
2568
#################################################
 
2569
# Check for other non-mandatory tools/libraries #
 
2570
#################################################
 
2571
 
 
2572
new_section "configure non-mandatory tools and libraries"
 
2573
 
 
2574
# Extract the first word of "ocamldoc", so it can be a program name with args.
 
2575
set dummy ocamldoc; ac_word=$2
 
2576
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2577
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2578
if test "${ac_cv_prog_OCAMLDOC+set}" = set; then
 
2579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2580
else
 
2581
  if test -n "$OCAMLDOC"; then
 
2582
  ac_cv_prog_OCAMLDOC="$OCAMLDOC" # Let the user override the test.
 
2583
else
 
2584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2585
for as_dir in $PATH
 
2586
do
 
2587
  IFS=$as_save_IFS
 
2588
  test -z "$as_dir" && as_dir=.
 
2589
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2590
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2591
    ac_cv_prog_OCAMLDOC="ocamldoc"
 
2592
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2593
    break 2
 
2594
  fi
 
2595
done
 
2596
done
 
2597
IFS=$as_save_IFS
 
2598
 
 
2599
  test -z "$ac_cv_prog_OCAMLDOC" && ac_cv_prog_OCAMLDOC="no"
 
2600
fi
 
2601
fi
 
2602
OCAMLDOC=$ac_cv_prog_OCAMLDOC
 
2603
if test -n "$OCAMLDOC"; then
 
2604
  { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
 
2605
echo "${ECHO_T}$OCAMLDOC" >&6; }
 
2606
else
 
2607
  { echo "$as_me:$LINENO: result: no" >&5
 
2608
echo "${ECHO_T}no" >&6; }
 
2609
fi
 
2610
 
 
2611
 
 
2612
if test "$OCAMLDOC" = no ; then
 
2613
        { echo "$as_me:$LINENO: result: ocamldoc discarded not present" >&5
 
2614
echo "${ECHO_T}ocamldoc discarded not present" >&6; }
 
2615
fi
 
2616
 
 
2617
# Extract the first word of "ocamlmktop", so it can be a program name with args.
 
2618
set dummy ocamlmktop; ac_word=$2
 
2619
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2621
if test "${ac_cv_prog_OCAMLMKTOP+set}" = set; then
 
2622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2623
else
 
2624
  if test -n "$OCAMLMKTOP"; then
 
2625
  ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
 
2626
else
 
2627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2628
for as_dir in $PATH
 
2629
do
 
2630
  IFS=$as_save_IFS
 
2631
  test -z "$as_dir" && as_dir=.
 
2632
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2633
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2634
    ac_cv_prog_OCAMLMKTOP="ocamlmktop"
 
2635
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2636
    break 2
 
2637
  fi
 
2638
done
 
2639
done
 
2640
IFS=$as_save_IFS
 
2641
 
 
2642
  test -z "$ac_cv_prog_OCAMLMKTOP" && ac_cv_prog_OCAMLMKTOP="no"
 
2643
fi
 
2644
fi
 
2645
OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP
 
2646
if test -n "$OCAMLMKTOP"; then
 
2647
  { echo "$as_me:$LINENO: result: $OCAMLMKTOP" >&5
 
2648
echo "${ECHO_T}$OCAMLMKTOP" >&6; }
 
2649
else
 
2650
  { echo "$as_me:$LINENO: result: no" >&5
 
2651
echo "${ECHO_T}no" >&6; }
 
2652
fi
 
2653
 
 
2654
 
 
2655
if test "$OCAMLMKTOP" = no ; then
 
2656
        { echo "$as_me:$LINENO: result: Cannot find ocamlmktop: toplevels cannot be built." >&5
 
2657
echo "${ECHO_T}Cannot find ocamlmktop: toplevels cannot be built." >&6; }
 
2658
fi
 
2659
 
 
2660
# Extract the first word of "otags", so it can be a program name with args.
 
2661
set dummy otags; ac_word=$2
 
2662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2664
if test "${ac_cv_prog_OTAGS+set}" = set; then
 
2665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2666
else
 
2667
  if test -n "$OTAGS"; then
 
2668
  ac_cv_prog_OTAGS="$OTAGS" # Let the user override the test.
 
2669
else
 
2670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2671
for as_dir in $PATH
 
2672
do
 
2673
  IFS=$as_save_IFS
 
2674
  test -z "$as_dir" && as_dir=.
 
2675
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2676
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2677
    ac_cv_prog_OTAGS="otags"
 
2678
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2679
    break 2
 
2680
  fi
 
2681
done
 
2682
done
 
2683
IFS=$as_save_IFS
 
2684
 
 
2685
fi
 
2686
fi
 
2687
OTAGS=$ac_cv_prog_OTAGS
 
2688
if test -n "$OTAGS"; then
 
2689
  { echo "$as_me:$LINENO: result: $OTAGS" >&5
 
2690
echo "${ECHO_T}$OTAGS" >&6; }
 
2691
else
 
2692
  { echo "$as_me:$LINENO: result: no" >&5
 
2693
echo "${ECHO_T}no" >&6; }
 
2694
fi
 
2695
 
 
2696
 
 
2697
# Extract the first word of "dot", so it can be a program name with args.
 
2698
set dummy dot; ac_word=$2
 
2699
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2701
if test "${ac_cv_prog_DOT+set}" = set; then
 
2702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2703
else
 
2704
  if test -n "$DOT"; then
 
2705
  ac_cv_prog_DOT="$DOT" # Let the user override the test.
 
2706
else
 
2707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2708
for as_dir in $PATH
 
2709
do
 
2710
  IFS=$as_save_IFS
 
2711
  test -z "$as_dir" && as_dir=.
 
2712
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2713
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2714
    ac_cv_prog_DOT="dot"
 
2715
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2716
    break 2
 
2717
  fi
 
2718
done
 
2719
done
 
2720
IFS=$as_save_IFS
 
2721
 
 
2722
fi
 
2723
fi
 
2724
DOT=$ac_cv_prog_DOT
 
2725
if test -n "$DOT"; then
 
2726
  { echo "$as_me:$LINENO: result: $DOT" >&5
 
2727
echo "${ECHO_T}$DOT" >&6; }
 
2728
else
 
2729
  { echo "$as_me:$LINENO: result: no" >&5
 
2730
echo "${ECHO_T}no" >&6; }
 
2731
fi
 
2732
 
 
2733
 
 
2734
 
 
2735
############
 
2736
# Platform #
 
2737
############
 
2738
 
 
2739
new_section "configure platform"
 
2740
 
 
2741
{ echo "$as_me:$LINENO: checking platform" >&5
 
2742
echo $ECHO_N "checking platform... $ECHO_C" >&6; }
 
2743
if echo "let _ = Sys.os_type;;" | ocaml | grep -q Win32; then
 
2744
    { echo "$as_me:$LINENO: result: Win32" >&5
 
2745
echo "${ECHO_T}Win32" >&6; }
 
2746
    OCAMLWIN32=yes
 
2747
    EXE=.exe
 
2748
else
 
2749
    OCAMLWIN32=no
 
2750
    if echo "let _ = Sys.os_type;;" | ocaml | grep -q Cygwin; then
 
2751
       { echo "$as_me:$LINENO: result: Cygwin" >&5
 
2752
echo "${ECHO_T}Cygwin" >&6; }
 
2753
       EXE=.exe
 
2754
    else
 
2755
       { echo "$as_me:$LINENO: result: Unix" >&5
 
2756
echo "${ECHO_T}Unix" >&6; }
 
2757
       EXE=
 
2758
    fi
 
2759
fi
 
2760
 
 
2761
# Local machdep feature (to generate new platforms)
 
2762
# Check whether --enable-localmachdep was given.
 
2763
if test "${enable_localmachdep+set}" = set; then
 
2764
  enableval=$enable_localmachdep; LOCAL_MACHDEP=yes
 
2765
else
 
2766
  LOCAL_MACHDEP=no
 
2767
fi
 
2768
 
 
2769
 
 
2770
if test "$LOCAL_MACHDEP" = yes ; then
 
2771
ac_config_headers="$ac_config_headers config.h"
 
2772
 
 
2773
ac_ext=c
 
2774
ac_cpp='$CPP $CPPFLAGS'
 
2775
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2776
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2777
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2778
if test -n "$ac_tool_prefix"; then
 
2779
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2780
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2781
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2782
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2783
if test "${ac_cv_prog_CC+set}" = set; then
 
2784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2785
else
 
2786
  if test -n "$CC"; then
 
2787
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2788
else
 
2789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2790
for as_dir in $PATH
 
2791
do
 
2792
  IFS=$as_save_IFS
 
2793
  test -z "$as_dir" && as_dir=.
 
2794
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2795
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2796
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2797
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2798
    break 2
 
2799
  fi
 
2800
done
 
2801
done
 
2802
IFS=$as_save_IFS
 
2803
 
 
2804
fi
 
2805
fi
 
2806
CC=$ac_cv_prog_CC
 
2807
if test -n "$CC"; then
 
2808
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2809
echo "${ECHO_T}$CC" >&6; }
 
2810
else
 
2811
  { echo "$as_me:$LINENO: result: no" >&5
 
2812
echo "${ECHO_T}no" >&6; }
 
2813
fi
 
2814
 
 
2815
 
 
2816
fi
 
2817
if test -z "$ac_cv_prog_CC"; then
 
2818
  ac_ct_CC=$CC
 
2819
  # Extract the first word of "gcc", so it can be a program name with args.
 
2820
set dummy gcc; ac_word=$2
 
2821
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2822
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2823
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2825
else
 
2826
  if test -n "$ac_ct_CC"; then
 
2827
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2828
else
 
2829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2830
for as_dir in $PATH
 
2831
do
 
2832
  IFS=$as_save_IFS
 
2833
  test -z "$as_dir" && as_dir=.
 
2834
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2835
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2836
    ac_cv_prog_ac_ct_CC="gcc"
 
2837
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2838
    break 2
 
2839
  fi
 
2840
done
 
2841
done
 
2842
IFS=$as_save_IFS
 
2843
 
 
2844
fi
 
2845
fi
 
2846
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2847
if test -n "$ac_ct_CC"; then
 
2848
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2849
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2850
else
 
2851
  { echo "$as_me:$LINENO: result: no" >&5
 
2852
echo "${ECHO_T}no" >&6; }
 
2853
fi
 
2854
 
 
2855
  if test "x$ac_ct_CC" = x; then
 
2856
    CC=""
 
2857
  else
 
2858
    case $cross_compiling:$ac_tool_warned in
 
2859
yes:)
 
2860
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2861
whose name does not start with the host triplet.  If you think this
 
2862
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2863
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2864
whose name does not start with the host triplet.  If you think this
 
2865
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2866
ac_tool_warned=yes ;;
 
2867
esac
 
2868
    CC=$ac_ct_CC
 
2869
  fi
 
2870
else
 
2871
  CC="$ac_cv_prog_CC"
 
2872
fi
 
2873
 
 
2874
if test -z "$CC"; then
 
2875
          if test -n "$ac_tool_prefix"; then
 
2876
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2877
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2878
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2880
if test "${ac_cv_prog_CC+set}" = set; then
 
2881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2882
else
 
2883
  if test -n "$CC"; then
 
2884
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2885
else
 
2886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2887
for as_dir in $PATH
 
2888
do
 
2889
  IFS=$as_save_IFS
 
2890
  test -z "$as_dir" && as_dir=.
 
2891
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2892
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2893
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2894
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2895
    break 2
 
2896
  fi
 
2897
done
 
2898
done
 
2899
IFS=$as_save_IFS
 
2900
 
 
2901
fi
 
2902
fi
 
2903
CC=$ac_cv_prog_CC
 
2904
if test -n "$CC"; then
 
2905
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2906
echo "${ECHO_T}$CC" >&6; }
 
2907
else
 
2908
  { echo "$as_me:$LINENO: result: no" >&5
 
2909
echo "${ECHO_T}no" >&6; }
 
2910
fi
 
2911
 
 
2912
 
 
2913
  fi
 
2914
fi
 
2915
if test -z "$CC"; then
 
2916
  # Extract the first word of "cc", so it can be a program name with args.
 
2917
set dummy cc; ac_word=$2
 
2918
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2919
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2920
if test "${ac_cv_prog_CC+set}" = set; then
 
2921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2922
else
 
2923
  if test -n "$CC"; then
 
2924
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2925
else
 
2926
  ac_prog_rejected=no
 
2927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2928
for as_dir in $PATH
 
2929
do
 
2930
  IFS=$as_save_IFS
 
2931
  test -z "$as_dir" && as_dir=.
 
2932
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2933
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2934
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2935
       ac_prog_rejected=yes
 
2936
       continue
 
2937
     fi
 
2938
    ac_cv_prog_CC="cc"
 
2939
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2940
    break 2
 
2941
  fi
 
2942
done
 
2943
done
 
2944
IFS=$as_save_IFS
 
2945
 
 
2946
if test $ac_prog_rejected = yes; then
 
2947
  # We found a bogon in the path, so make sure we never use it.
 
2948
  set dummy $ac_cv_prog_CC
 
2949
  shift
 
2950
  if test $# != 0; then
 
2951
    # We chose a different compiler from the bogus one.
 
2952
    # However, it has the same basename, so the bogon will be chosen
 
2953
    # first if we set CC to just the basename; use the full file name.
 
2954
    shift
 
2955
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2956
  fi
 
2957
fi
 
2958
fi
 
2959
fi
 
2960
CC=$ac_cv_prog_CC
 
2961
if test -n "$CC"; then
 
2962
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2963
echo "${ECHO_T}$CC" >&6; }
 
2964
else
 
2965
  { echo "$as_me:$LINENO: result: no" >&5
 
2966
echo "${ECHO_T}no" >&6; }
 
2967
fi
 
2968
 
 
2969
 
 
2970
fi
 
2971
if test -z "$CC"; then
 
2972
  if test -n "$ac_tool_prefix"; then
 
2973
  for ac_prog in cl.exe
 
2974
  do
 
2975
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2976
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2977
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2978
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2979
if test "${ac_cv_prog_CC+set}" = set; then
 
2980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2981
else
 
2982
  if test -n "$CC"; then
 
2983
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2984
else
 
2985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2986
for as_dir in $PATH
 
2987
do
 
2988
  IFS=$as_save_IFS
 
2989
  test -z "$as_dir" && as_dir=.
 
2990
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2991
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2992
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2993
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2994
    break 2
 
2995
  fi
 
2996
done
 
2997
done
 
2998
IFS=$as_save_IFS
 
2999
 
 
3000
fi
 
3001
fi
 
3002
CC=$ac_cv_prog_CC
 
3003
if test -n "$CC"; then
 
3004
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3005
echo "${ECHO_T}$CC" >&6; }
 
3006
else
 
3007
  { echo "$as_me:$LINENO: result: no" >&5
 
3008
echo "${ECHO_T}no" >&6; }
 
3009
fi
 
3010
 
 
3011
 
 
3012
    test -n "$CC" && break
 
3013
  done
 
3014
fi
 
3015
if test -z "$CC"; then
 
3016
  ac_ct_CC=$CC
 
3017
  for ac_prog in cl.exe
 
3018
do
 
3019
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3020
set dummy $ac_prog; ac_word=$2
 
3021
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3023
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3025
else
 
3026
  if test -n "$ac_ct_CC"; then
 
3027
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3028
else
 
3029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3030
for as_dir in $PATH
 
3031
do
 
3032
  IFS=$as_save_IFS
 
3033
  test -z "$as_dir" && as_dir=.
 
3034
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3035
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3036
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3037
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3038
    break 2
 
3039
  fi
 
3040
done
 
3041
done
 
3042
IFS=$as_save_IFS
 
3043
 
 
3044
fi
 
3045
fi
 
3046
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3047
if test -n "$ac_ct_CC"; then
 
3048
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3049
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3050
else
 
3051
  { echo "$as_me:$LINENO: result: no" >&5
 
3052
echo "${ECHO_T}no" >&6; }
 
3053
fi
 
3054
 
 
3055
 
 
3056
  test -n "$ac_ct_CC" && break
 
3057
done
 
3058
 
 
3059
  if test "x$ac_ct_CC" = x; then
 
3060
    CC=""
 
3061
  else
 
3062
    case $cross_compiling:$ac_tool_warned in
 
3063
yes:)
 
3064
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3065
whose name does not start with the host triplet.  If you think this
 
3066
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3067
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3068
whose name does not start with the host triplet.  If you think this
 
3069
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3070
ac_tool_warned=yes ;;
 
3071
esac
 
3072
    CC=$ac_ct_CC
 
3073
  fi
 
3074
fi
 
3075
 
 
3076
fi
 
3077
 
 
3078
 
 
3079
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3080
See \`config.log' for more details." >&5
 
3081
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3082
See \`config.log' for more details." >&2;}
 
3083
   { (exit 1); exit 1; }; }
 
3084
 
 
3085
# Provide some information about the compiler.
 
3086
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3087
ac_compiler=`set X $ac_compile; echo $2`
 
3088
{ (ac_try="$ac_compiler --version >&5"
 
3089
case "(($ac_try" in
 
3090
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3091
  *) ac_try_echo=$ac_try;;
 
3092
esac
 
3093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3094
  (eval "$ac_compiler --version >&5") 2>&5
 
3095
  ac_status=$?
 
3096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3097
  (exit $ac_status); }
 
3098
{ (ac_try="$ac_compiler -v >&5"
 
3099
case "(($ac_try" in
 
3100
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3101
  *) ac_try_echo=$ac_try;;
 
3102
esac
 
3103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3104
  (eval "$ac_compiler -v >&5") 2>&5
 
3105
  ac_status=$?
 
3106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3107
  (exit $ac_status); }
 
3108
{ (ac_try="$ac_compiler -V >&5"
 
3109
case "(($ac_try" in
 
3110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3111
  *) ac_try_echo=$ac_try;;
 
3112
esac
 
3113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3114
  (eval "$ac_compiler -V >&5") 2>&5
 
3115
  ac_status=$?
 
3116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3117
  (exit $ac_status); }
 
3118
 
 
3119
cat >conftest.$ac_ext <<_ACEOF
 
3120
/* confdefs.h.  */
 
3121
_ACEOF
 
3122
cat confdefs.h >>conftest.$ac_ext
 
3123
cat >>conftest.$ac_ext <<_ACEOF
 
3124
/* end confdefs.h.  */
 
3125
 
 
3126
int
 
3127
main ()
 
3128
{
 
3129
 
 
3130
  ;
 
3131
  return 0;
 
3132
}
 
3133
_ACEOF
 
3134
ac_clean_files_save=$ac_clean_files
 
3135
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3136
# Try to create an executable without -o first, disregard a.out.
 
3137
# It will help us diagnose broken compilers, and finding out an intuition
 
3138
# of exeext.
 
3139
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3140
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
3141
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3142
#
 
3143
# List of possible output files, starting from the most likely.
 
3144
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3145
# only as a last resort.  b.out is created by i960 compilers.
 
3146
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3147
#
 
3148
# The IRIX 6 linker writes into existing files which may not be
 
3149
# executable, retaining their permissions.  Remove them first so a
 
3150
# subsequent execution test works.
 
3151
ac_rmfiles=
 
3152
for ac_file in $ac_files
 
3153
do
 
3154
  case $ac_file in
 
3155
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3156
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3157
  esac
 
3158
done
 
3159
rm -f $ac_rmfiles
 
3160
 
 
3161
if { (ac_try="$ac_link_default"
 
3162
case "(($ac_try" in
 
3163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3164
  *) ac_try_echo=$ac_try;;
 
3165
esac
 
3166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3167
  (eval "$ac_link_default") 2>&5
 
3168
  ac_status=$?
 
3169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3170
  (exit $ac_status); }; then
 
3171
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3172
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3173
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3174
# so that the user can short-circuit this test for compilers unknown to
 
3175
# Autoconf.
 
3176
for ac_file in $ac_files ''
 
3177
do
 
3178
  test -f "$ac_file" || continue
 
3179
  case $ac_file in
 
3180
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3181
        ;;
 
3182
    [ab].out )
 
3183
        # We found the default executable, but exeext='' is most
 
3184
        # certainly right.
 
3185
        break;;
 
3186
    *.* )
 
3187
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3188
        then :; else
 
3189
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3190
        fi
 
3191
        # We set ac_cv_exeext here because the later test for it is not
 
3192
        # safe: cross compilers may not add the suffix if given an `-o'
 
3193
        # argument, so we may need to know it at that point already.
 
3194
        # Even if this section looks crufty: it has the advantage of
 
3195
        # actually working.
 
3196
        break;;
 
3197
    * )
 
3198
        break;;
 
3199
  esac
 
3200
done
 
3201
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3202
 
 
3203
else
 
3204
  ac_file=''
 
3205
fi
 
3206
 
 
3207
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3208
echo "${ECHO_T}$ac_file" >&6; }
 
3209
if test -z "$ac_file"; then
 
3210
  echo "$as_me: failed program was:" >&5
 
3211
sed 's/^/| /' conftest.$ac_ext >&5
 
3212
 
 
3213
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3214
See \`config.log' for more details." >&5
 
3215
echo "$as_me: error: C compiler cannot create executables
 
3216
See \`config.log' for more details." >&2;}
 
3217
   { (exit 77); exit 77; }; }
 
3218
fi
 
3219
 
 
3220
ac_exeext=$ac_cv_exeext
 
3221
 
 
3222
# Check that the compiler produces executables we can run.  If not, either
 
3223
# the compiler is broken, or we cross compile.
 
3224
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3225
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3226
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3227
# If not cross compiling, check that we can run a simple program.
 
3228
if test "$cross_compiling" != yes; then
 
3229
  if { ac_try='./$ac_file'
 
3230
  { (case "(($ac_try" in
 
3231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3232
  *) ac_try_echo=$ac_try;;
 
3233
esac
 
3234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3235
  (eval "$ac_try") 2>&5
 
3236
  ac_status=$?
 
3237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3238
  (exit $ac_status); }; }; then
 
3239
    cross_compiling=no
 
3240
  else
 
3241
    if test "$cross_compiling" = maybe; then
 
3242
        cross_compiling=yes
 
3243
    else
 
3244
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3245
If you meant to cross compile, use \`--host'.
 
3246
See \`config.log' for more details." >&5
 
3247
echo "$as_me: error: cannot run C compiled programs.
 
3248
If you meant to cross compile, use \`--host'.
 
3249
See \`config.log' for more details." >&2;}
 
3250
   { (exit 1); exit 1; }; }
 
3251
    fi
 
3252
  fi
 
3253
fi
 
3254
{ echo "$as_me:$LINENO: result: yes" >&5
 
3255
echo "${ECHO_T}yes" >&6; }
 
3256
 
 
3257
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3258
ac_clean_files=$ac_clean_files_save
 
3259
# Check that the compiler produces executables we can run.  If not, either
 
3260
# the compiler is broken, or we cross compile.
 
3261
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3262
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3263
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3264
echo "${ECHO_T}$cross_compiling" >&6; }
 
3265
 
 
3266
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3267
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3268
if { (ac_try="$ac_link"
 
3269
case "(($ac_try" in
 
3270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3271
  *) ac_try_echo=$ac_try;;
 
3272
esac
 
3273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3274
  (eval "$ac_link") 2>&5
 
3275
  ac_status=$?
 
3276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3277
  (exit $ac_status); }; then
 
3278
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3279
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3280
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3281
# `rm'.
 
3282
for ac_file in conftest.exe conftest conftest.*; do
 
3283
  test -f "$ac_file" || continue
 
3284
  case $ac_file in
 
3285
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3286
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3287
          break;;
 
3288
    * ) break;;
 
3289
  esac
 
3290
done
 
3291
else
 
3292
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3293
See \`config.log' for more details." >&5
 
3294
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3295
See \`config.log' for more details." >&2;}
 
3296
   { (exit 1); exit 1; }; }
 
3297
fi
 
3298
 
 
3299
rm -f conftest$ac_cv_exeext
 
3300
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3301
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3302
 
 
3303
rm -f conftest.$ac_ext
 
3304
EXEEXT=$ac_cv_exeext
 
3305
ac_exeext=$EXEEXT
 
3306
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3307
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3308
if test "${ac_cv_objext+set}" = set; then
 
3309
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3310
else
 
3311
  cat >conftest.$ac_ext <<_ACEOF
 
3312
/* confdefs.h.  */
 
3313
_ACEOF
 
3314
cat confdefs.h >>conftest.$ac_ext
 
3315
cat >>conftest.$ac_ext <<_ACEOF
 
3316
/* end confdefs.h.  */
 
3317
 
 
3318
int
 
3319
main ()
 
3320
{
 
3321
 
 
3322
  ;
 
3323
  return 0;
 
3324
}
 
3325
_ACEOF
 
3326
rm -f conftest.o conftest.obj
 
3327
if { (ac_try="$ac_compile"
 
3328
case "(($ac_try" in
 
3329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3330
  *) ac_try_echo=$ac_try;;
 
3331
esac
 
3332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3333
  (eval "$ac_compile") 2>&5
 
3334
  ac_status=$?
 
3335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3336
  (exit $ac_status); }; then
 
3337
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3338
  test -f "$ac_file" || continue;
 
3339
  case $ac_file in
 
3340
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3341
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3342
       break;;
 
3343
  esac
 
3344
done
 
3345
else
 
3346
  echo "$as_me: failed program was:" >&5
 
3347
sed 's/^/| /' conftest.$ac_ext >&5
 
3348
 
 
3349
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3350
See \`config.log' for more details." >&5
 
3351
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3352
See \`config.log' for more details." >&2;}
 
3353
   { (exit 1); exit 1; }; }
 
3354
fi
 
3355
 
 
3356
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3357
fi
 
3358
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3359
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3360
OBJEXT=$ac_cv_objext
 
3361
ac_objext=$OBJEXT
 
3362
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3363
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3364
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3366
else
 
3367
  cat >conftest.$ac_ext <<_ACEOF
 
3368
/* confdefs.h.  */
 
3369
_ACEOF
 
3370
cat confdefs.h >>conftest.$ac_ext
 
3371
cat >>conftest.$ac_ext <<_ACEOF
 
3372
/* end confdefs.h.  */
 
3373
 
 
3374
int
 
3375
main ()
 
3376
{
 
3377
#ifndef __GNUC__
 
3378
       choke me
 
3379
#endif
 
3380
 
 
3381
  ;
 
3382
  return 0;
 
3383
}
 
3384
_ACEOF
 
3385
rm -f conftest.$ac_objext
 
3386
if { (ac_try="$ac_compile"
 
3387
case "(($ac_try" in
 
3388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3389
  *) ac_try_echo=$ac_try;;
 
3390
esac
 
3391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3392
  (eval "$ac_compile") 2>conftest.er1
 
3393
  ac_status=$?
 
3394
  grep -v '^ *+' conftest.er1 >conftest.err
 
3395
  rm -f conftest.er1
 
3396
  cat conftest.err >&5
 
3397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3398
  (exit $ac_status); } && {
 
3399
         test -z "$ac_c_werror_flag" ||
 
3400
         test ! -s conftest.err
 
3401
       } && test -s conftest.$ac_objext; then
 
3402
  ac_compiler_gnu=yes
 
3403
else
 
3404
  echo "$as_me: failed program was:" >&5
 
3405
sed 's/^/| /' conftest.$ac_ext >&5
 
3406
 
 
3407
        ac_compiler_gnu=no
 
3408
fi
 
3409
 
 
3410
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3411
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3412
 
 
3413
fi
 
3414
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3415
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3416
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3417
ac_test_CFLAGS=${CFLAGS+set}
 
3418
ac_save_CFLAGS=$CFLAGS
 
3419
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3420
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3421
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3422
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3423
else
 
3424
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3425
   ac_c_werror_flag=yes
 
3426
   ac_cv_prog_cc_g=no
 
3427
   CFLAGS="-g"
 
3428
   cat >conftest.$ac_ext <<_ACEOF
 
3429
/* confdefs.h.  */
 
3430
_ACEOF
 
3431
cat confdefs.h >>conftest.$ac_ext
 
3432
cat >>conftest.$ac_ext <<_ACEOF
 
3433
/* end confdefs.h.  */
 
3434
 
 
3435
int
 
3436
main ()
 
3437
{
 
3438
 
 
3439
  ;
 
3440
  return 0;
 
3441
}
 
3442
_ACEOF
 
3443
rm -f conftest.$ac_objext
 
3444
if { (ac_try="$ac_compile"
 
3445
case "(($ac_try" in
 
3446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3447
  *) ac_try_echo=$ac_try;;
 
3448
esac
 
3449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3450
  (eval "$ac_compile") 2>conftest.er1
 
3451
  ac_status=$?
 
3452
  grep -v '^ *+' conftest.er1 >conftest.err
 
3453
  rm -f conftest.er1
 
3454
  cat conftest.err >&5
 
3455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3456
  (exit $ac_status); } && {
 
3457
         test -z "$ac_c_werror_flag" ||
 
3458
         test ! -s conftest.err
 
3459
       } && test -s conftest.$ac_objext; then
 
3460
  ac_cv_prog_cc_g=yes
 
3461
else
 
3462
  echo "$as_me: failed program was:" >&5
 
3463
sed 's/^/| /' conftest.$ac_ext >&5
 
3464
 
 
3465
        CFLAGS=""
 
3466
      cat >conftest.$ac_ext <<_ACEOF
 
3467
/* confdefs.h.  */
 
3468
_ACEOF
 
3469
cat confdefs.h >>conftest.$ac_ext
 
3470
cat >>conftest.$ac_ext <<_ACEOF
 
3471
/* end confdefs.h.  */
 
3472
 
 
3473
int
 
3474
main ()
 
3475
{
 
3476
 
 
3477
  ;
 
3478
  return 0;
 
3479
}
 
3480
_ACEOF
 
3481
rm -f conftest.$ac_objext
 
3482
if { (ac_try="$ac_compile"
 
3483
case "(($ac_try" in
 
3484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3485
  *) ac_try_echo=$ac_try;;
 
3486
esac
 
3487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3488
  (eval "$ac_compile") 2>conftest.er1
 
3489
  ac_status=$?
 
3490
  grep -v '^ *+' conftest.er1 >conftest.err
 
3491
  rm -f conftest.er1
 
3492
  cat conftest.err >&5
 
3493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3494
  (exit $ac_status); } && {
 
3495
         test -z "$ac_c_werror_flag" ||
 
3496
         test ! -s conftest.err
 
3497
       } && test -s conftest.$ac_objext; then
 
3498
  :
 
3499
else
 
3500
  echo "$as_me: failed program was:" >&5
 
3501
sed 's/^/| /' conftest.$ac_ext >&5
 
3502
 
 
3503
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3504
         CFLAGS="-g"
 
3505
         cat >conftest.$ac_ext <<_ACEOF
 
3506
/* confdefs.h.  */
 
3507
_ACEOF
 
3508
cat confdefs.h >>conftest.$ac_ext
 
3509
cat >>conftest.$ac_ext <<_ACEOF
 
3510
/* end confdefs.h.  */
 
3511
 
 
3512
int
 
3513
main ()
 
3514
{
 
3515
 
 
3516
  ;
 
3517
  return 0;
 
3518
}
 
3519
_ACEOF
 
3520
rm -f conftest.$ac_objext
 
3521
if { (ac_try="$ac_compile"
 
3522
case "(($ac_try" in
 
3523
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3524
  *) ac_try_echo=$ac_try;;
 
3525
esac
 
3526
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3527
  (eval "$ac_compile") 2>conftest.er1
 
3528
  ac_status=$?
 
3529
  grep -v '^ *+' conftest.er1 >conftest.err
 
3530
  rm -f conftest.er1
 
3531
  cat conftest.err >&5
 
3532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3533
  (exit $ac_status); } && {
 
3534
         test -z "$ac_c_werror_flag" ||
 
3535
         test ! -s conftest.err
 
3536
       } && test -s conftest.$ac_objext; then
 
3537
  ac_cv_prog_cc_g=yes
 
3538
else
 
3539
  echo "$as_me: failed program was:" >&5
 
3540
sed 's/^/| /' conftest.$ac_ext >&5
 
3541
 
 
3542
 
 
3543
fi
 
3544
 
 
3545
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3546
fi
 
3547
 
 
3548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3549
fi
 
3550
 
 
3551
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3552
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3553
fi
 
3554
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3555
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3556
if test "$ac_test_CFLAGS" = set; then
 
3557
  CFLAGS=$ac_save_CFLAGS
 
3558
elif test $ac_cv_prog_cc_g = yes; then
 
3559
  if test "$GCC" = yes; then
 
3560
    CFLAGS="-g -O2"
 
3561
  else
 
3562
    CFLAGS="-g"
 
3563
  fi
 
3564
else
 
3565
  if test "$GCC" = yes; then
 
3566
    CFLAGS="-O2"
 
3567
  else
 
3568
    CFLAGS=
 
3569
  fi
 
3570
fi
 
3571
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3572
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3573
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3575
else
 
3576
  ac_cv_prog_cc_c89=no
 
3577
ac_save_CC=$CC
 
3578
cat >conftest.$ac_ext <<_ACEOF
 
3579
/* confdefs.h.  */
 
3580
_ACEOF
 
3581
cat confdefs.h >>conftest.$ac_ext
 
3582
cat >>conftest.$ac_ext <<_ACEOF
 
3583
/* end confdefs.h.  */
 
3584
#include <stdarg.h>
 
3585
#include <stdio.h>
 
3586
#include <sys/types.h>
 
3587
#include <sys/stat.h>
 
3588
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3589
struct buf { int x; };
 
3590
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3591
static char *e (p, i)
 
3592
     char **p;
 
3593
     int i;
 
3594
{
 
3595
  return p[i];
 
3596
}
 
3597
static char *f (char * (*g) (char **, int), char **p, ...)
 
3598
{
 
3599
  char *s;
 
3600
  va_list v;
 
3601
  va_start (v,p);
 
3602
  s = g (p, va_arg (v,int));
 
3603
  va_end (v);
 
3604
  return s;
 
3605
}
 
3606
 
 
3607
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3608
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3609
   These don't provoke an error unfortunately, instead are silently treated
 
3610
   as 'x'.  The following induces an error, until -std is added to get
 
3611
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3612
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3613
   that's true only with -std.  */
 
3614
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3615
 
 
3616
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3617
   inside strings and character constants.  */
 
3618
#define FOO(x) 'x'
 
3619
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3620
 
 
3621
int test (int i, double x);
 
3622
struct s1 {int (*f) (int a);};
 
3623
struct s2 {int (*f) (double a);};
 
3624
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3625
int argc;
 
3626
char **argv;
 
3627
int
 
3628
main ()
 
3629
{
 
3630
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3631
  ;
 
3632
  return 0;
 
3633
}
 
3634
_ACEOF
 
3635
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3636
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3637
do
 
3638
  CC="$ac_save_CC $ac_arg"
 
3639
  rm -f conftest.$ac_objext
 
3640
if { (ac_try="$ac_compile"
 
3641
case "(($ac_try" in
 
3642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3643
  *) ac_try_echo=$ac_try;;
 
3644
esac
 
3645
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3646
  (eval "$ac_compile") 2>conftest.er1
 
3647
  ac_status=$?
 
3648
  grep -v '^ *+' conftest.er1 >conftest.err
 
3649
  rm -f conftest.er1
 
3650
  cat conftest.err >&5
 
3651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3652
  (exit $ac_status); } && {
 
3653
         test -z "$ac_c_werror_flag" ||
 
3654
         test ! -s conftest.err
 
3655
       } && test -s conftest.$ac_objext; then
 
3656
  ac_cv_prog_cc_c89=$ac_arg
 
3657
else
 
3658
  echo "$as_me: failed program was:" >&5
 
3659
sed 's/^/| /' conftest.$ac_ext >&5
 
3660
 
 
3661
 
 
3662
fi
 
3663
 
 
3664
rm -f core conftest.err conftest.$ac_objext
 
3665
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3666
done
 
3667
rm -f conftest.$ac_ext
 
3668
CC=$ac_save_CC
 
3669
 
 
3670
fi
 
3671
# AC_CACHE_VAL
 
3672
case "x$ac_cv_prog_cc_c89" in
 
3673
  x)
 
3674
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3675
echo "${ECHO_T}none needed" >&6; } ;;
 
3676
  xno)
 
3677
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3678
echo "${ECHO_T}unsupported" >&6; } ;;
 
3679
  *)
 
3680
    CC="$CC $ac_cv_prog_cc_c89"
 
3681
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3682
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3683
esac
 
3684
 
 
3685
 
 
3686
ac_ext=c
 
3687
ac_cpp='$CPP $CPPFLAGS'
 
3688
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3689
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3690
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3691
 
 
3692
 
 
3693
ac_ext=c
 
3694
ac_cpp='$CPP $CPPFLAGS'
 
3695
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3696
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3697
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3698
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3699
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3700
# On Suns, sometimes $CPP names a directory.
 
3701
if test -n "$CPP" && test -d "$CPP"; then
 
3702
  CPP=
 
3703
fi
 
3704
if test -z "$CPP"; then
 
3705
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3707
else
 
3708
      # Double quotes because CPP needs to be expanded
 
3709
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3710
    do
 
3711
      ac_preproc_ok=false
 
3712
for ac_c_preproc_warn_flag in '' yes
 
3713
do
 
3714
  # Use a header file that comes with gcc, so configuring glibc
 
3715
  # with a fresh cross-compiler works.
 
3716
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3717
  # <limits.h> exists even on freestanding compilers.
 
3718
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3719
  # not just through cpp. "Syntax error" is here to catch this case.
 
3720
  cat >conftest.$ac_ext <<_ACEOF
 
3721
/* confdefs.h.  */
 
3722
_ACEOF
 
3723
cat confdefs.h >>conftest.$ac_ext
 
3724
cat >>conftest.$ac_ext <<_ACEOF
 
3725
/* end confdefs.h.  */
 
3726
#ifdef __STDC__
 
3727
# include <limits.h>
 
3728
#else
 
3729
# include <assert.h>
 
3730
#endif
 
3731
                     Syntax error
 
3732
_ACEOF
 
3733
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3734
case "(($ac_try" in
 
3735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3736
  *) ac_try_echo=$ac_try;;
 
3737
esac
 
3738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3739
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3740
  ac_status=$?
 
3741
  grep -v '^ *+' conftest.er1 >conftest.err
 
3742
  rm -f conftest.er1
 
3743
  cat conftest.err >&5
 
3744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3745
  (exit $ac_status); } >/dev/null && {
 
3746
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3747
         test ! -s conftest.err
 
3748
       }; then
 
3749
  :
 
3750
else
 
3751
  echo "$as_me: failed program was:" >&5
 
3752
sed 's/^/| /' conftest.$ac_ext >&5
 
3753
 
 
3754
  # Broken: fails on valid input.
 
3755
continue
 
3756
fi
 
3757
 
 
3758
rm -f conftest.err conftest.$ac_ext
 
3759
 
 
3760
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3761
  # can be detected and how.
 
3762
  cat >conftest.$ac_ext <<_ACEOF
 
3763
/* confdefs.h.  */
 
3764
_ACEOF
 
3765
cat confdefs.h >>conftest.$ac_ext
 
3766
cat >>conftest.$ac_ext <<_ACEOF
 
3767
/* end confdefs.h.  */
 
3768
#include <ac_nonexistent.h>
 
3769
_ACEOF
 
3770
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3771
case "(($ac_try" in
 
3772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3773
  *) ac_try_echo=$ac_try;;
 
3774
esac
 
3775
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3776
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3777
  ac_status=$?
 
3778
  grep -v '^ *+' conftest.er1 >conftest.err
 
3779
  rm -f conftest.er1
 
3780
  cat conftest.err >&5
 
3781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3782
  (exit $ac_status); } >/dev/null && {
 
3783
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3784
         test ! -s conftest.err
 
3785
       }; then
 
3786
  # Broken: success on invalid input.
 
3787
continue
 
3788
else
 
3789
  echo "$as_me: failed program was:" >&5
 
3790
sed 's/^/| /' conftest.$ac_ext >&5
 
3791
 
 
3792
  # Passes both tests.
 
3793
ac_preproc_ok=:
 
3794
break
 
3795
fi
 
3796
 
 
3797
rm -f conftest.err conftest.$ac_ext
 
3798
 
 
3799
done
 
3800
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3801
rm -f conftest.err conftest.$ac_ext
 
3802
if $ac_preproc_ok; then
 
3803
  break
 
3804
fi
 
3805
 
 
3806
    done
 
3807
    ac_cv_prog_CPP=$CPP
 
3808
 
 
3809
fi
 
3810
  CPP=$ac_cv_prog_CPP
 
3811
else
 
3812
  ac_cv_prog_CPP=$CPP
 
3813
fi
 
3814
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3815
echo "${ECHO_T}$CPP" >&6; }
 
3816
ac_preproc_ok=false
 
3817
for ac_c_preproc_warn_flag in '' yes
 
3818
do
 
3819
  # Use a header file that comes with gcc, so configuring glibc
 
3820
  # with a fresh cross-compiler works.
 
3821
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3822
  # <limits.h> exists even on freestanding compilers.
 
3823
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3824
  # not just through cpp. "Syntax error" is here to catch this case.
 
3825
  cat >conftest.$ac_ext <<_ACEOF
 
3826
/* confdefs.h.  */
 
3827
_ACEOF
 
3828
cat confdefs.h >>conftest.$ac_ext
 
3829
cat >>conftest.$ac_ext <<_ACEOF
 
3830
/* end confdefs.h.  */
 
3831
#ifdef __STDC__
 
3832
# include <limits.h>
 
3833
#else
 
3834
# include <assert.h>
 
3835
#endif
 
3836
                     Syntax error
 
3837
_ACEOF
 
3838
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3839
case "(($ac_try" in
 
3840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3841
  *) ac_try_echo=$ac_try;;
 
3842
esac
 
3843
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3844
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3845
  ac_status=$?
 
3846
  grep -v '^ *+' conftest.er1 >conftest.err
 
3847
  rm -f conftest.er1
 
3848
  cat conftest.err >&5
 
3849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3850
  (exit $ac_status); } >/dev/null && {
 
3851
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3852
         test ! -s conftest.err
 
3853
       }; then
 
3854
  :
 
3855
else
 
3856
  echo "$as_me: failed program was:" >&5
 
3857
sed 's/^/| /' conftest.$ac_ext >&5
 
3858
 
 
3859
  # Broken: fails on valid input.
 
3860
continue
 
3861
fi
 
3862
 
 
3863
rm -f conftest.err conftest.$ac_ext
 
3864
 
 
3865
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3866
  # can be detected and how.
 
3867
  cat >conftest.$ac_ext <<_ACEOF
 
3868
/* confdefs.h.  */
 
3869
_ACEOF
 
3870
cat confdefs.h >>conftest.$ac_ext
 
3871
cat >>conftest.$ac_ext <<_ACEOF
 
3872
/* end confdefs.h.  */
 
3873
#include <ac_nonexistent.h>
 
3874
_ACEOF
 
3875
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3876
case "(($ac_try" in
 
3877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3878
  *) ac_try_echo=$ac_try;;
 
3879
esac
 
3880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3881
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3882
  ac_status=$?
 
3883
  grep -v '^ *+' conftest.er1 >conftest.err
 
3884
  rm -f conftest.er1
 
3885
  cat conftest.err >&5
 
3886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3887
  (exit $ac_status); } >/dev/null && {
 
3888
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3889
         test ! -s conftest.err
 
3890
       }; then
 
3891
  # Broken: success on invalid input.
 
3892
continue
 
3893
else
 
3894
  echo "$as_me: failed program was:" >&5
 
3895
sed 's/^/| /' conftest.$ac_ext >&5
 
3896
 
 
3897
  # Passes both tests.
 
3898
ac_preproc_ok=:
 
3899
break
 
3900
fi
 
3901
 
 
3902
rm -f conftest.err conftest.$ac_ext
 
3903
 
 
3904
done
 
3905
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3906
rm -f conftest.err conftest.$ac_ext
 
3907
if $ac_preproc_ok; then
 
3908
  :
 
3909
else
 
3910
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3911
See \`config.log' for more details." >&5
 
3912
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3913
See \`config.log' for more details." >&2;}
 
3914
   { (exit 1); exit 1; }; }
 
3915
fi
 
3916
 
 
3917
ac_ext=c
 
3918
ac_cpp='$CPP $CPPFLAGS'
 
3919
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3920
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3921
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3922
 
 
3923
 
 
3924
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3925
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3926
if test "${ac_cv_path_GREP+set}" = set; then
 
3927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3928
else
 
3929
  # Extract the first word of "grep ggrep" to use in msg output
 
3930
if test -z "$GREP"; then
 
3931
set dummy grep ggrep; ac_prog_name=$2
 
3932
if test "${ac_cv_path_GREP+set}" = set; then
 
3933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3934
else
 
3935
  ac_path_GREP_found=false
 
3936
# Loop through the user's path and test for each of PROGNAME-LIST
 
3937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3938
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3939
do
 
3940
  IFS=$as_save_IFS
 
3941
  test -z "$as_dir" && as_dir=.
 
3942
  for ac_prog in grep ggrep; do
 
3943
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3944
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3945
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3946
    # Check for GNU ac_path_GREP and select it if it is found.
 
3947
  # Check for GNU $ac_path_GREP
 
3948
case `"$ac_path_GREP" --version 2>&1` in
 
3949
*GNU*)
 
3950
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3951
*)
 
3952
  ac_count=0
 
3953
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3954
  while :
 
3955
  do
 
3956
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3957
    mv "conftest.tmp" "conftest.in"
 
3958
    cp "conftest.in" "conftest.nl"
 
3959
    echo 'GREP' >> "conftest.nl"
 
3960
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3961
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3962
    ac_count=`expr $ac_count + 1`
 
3963
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3964
      # Best one so far, save it but keep looking for a better one
 
3965
      ac_cv_path_GREP="$ac_path_GREP"
 
3966
      ac_path_GREP_max=$ac_count
 
3967
    fi
 
3968
    # 10*(2^10) chars as input seems more than enough
 
3969
    test $ac_count -gt 10 && break
 
3970
  done
 
3971
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3972
esac
 
3973
 
 
3974
 
 
3975
    $ac_path_GREP_found && break 3
 
3976
  done
 
3977
done
 
3978
 
 
3979
done
 
3980
IFS=$as_save_IFS
 
3981
 
 
3982
 
 
3983
fi
 
3984
 
 
3985
GREP="$ac_cv_path_GREP"
 
3986
if test -z "$GREP"; then
 
3987
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3988
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3989
   { (exit 1); exit 1; }; }
 
3990
fi
 
3991
 
 
3992
else
 
3993
  ac_cv_path_GREP=$GREP
 
3994
fi
 
3995
 
 
3996
 
 
3997
fi
 
3998
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3999
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4000
 GREP="$ac_cv_path_GREP"
 
4001
 
 
4002
 
 
4003
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4004
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4005
if test "${ac_cv_path_EGREP+set}" = set; then
 
4006
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4007
else
 
4008
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4009
   then ac_cv_path_EGREP="$GREP -E"
 
4010
   else
 
4011
     # Extract the first word of "egrep" to use in msg output
 
4012
if test -z "$EGREP"; then
 
4013
set dummy egrep; ac_prog_name=$2
 
4014
if test "${ac_cv_path_EGREP+set}" = set; then
 
4015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4016
else
 
4017
  ac_path_EGREP_found=false
 
4018
# Loop through the user's path and test for each of PROGNAME-LIST
 
4019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4020
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4021
do
 
4022
  IFS=$as_save_IFS
 
4023
  test -z "$as_dir" && as_dir=.
 
4024
  for ac_prog in egrep; do
 
4025
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4026
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4027
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4028
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4029
  # Check for GNU $ac_path_EGREP
 
4030
case `"$ac_path_EGREP" --version 2>&1` in
 
4031
*GNU*)
 
4032
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4033
*)
 
4034
  ac_count=0
 
4035
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4036
  while :
 
4037
  do
 
4038
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4039
    mv "conftest.tmp" "conftest.in"
 
4040
    cp "conftest.in" "conftest.nl"
 
4041
    echo 'EGREP' >> "conftest.nl"
 
4042
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4043
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4044
    ac_count=`expr $ac_count + 1`
 
4045
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4046
      # Best one so far, save it but keep looking for a better one
 
4047
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4048
      ac_path_EGREP_max=$ac_count
 
4049
    fi
 
4050
    # 10*(2^10) chars as input seems more than enough
 
4051
    test $ac_count -gt 10 && break
 
4052
  done
 
4053
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4054
esac
 
4055
 
 
4056
 
 
4057
    $ac_path_EGREP_found && break 3
 
4058
  done
 
4059
done
 
4060
 
 
4061
done
 
4062
IFS=$as_save_IFS
 
4063
 
 
4064
 
 
4065
fi
 
4066
 
 
4067
EGREP="$ac_cv_path_EGREP"
 
4068
if test -z "$EGREP"; then
 
4069
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4070
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4071
   { (exit 1); exit 1; }; }
 
4072
fi
 
4073
 
 
4074
else
 
4075
  ac_cv_path_EGREP=$EGREP
 
4076
fi
 
4077
 
 
4078
 
 
4079
   fi
 
4080
fi
 
4081
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4082
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4083
 EGREP="$ac_cv_path_EGREP"
 
4084
 
 
4085
 
 
4086
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4087
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4088
if test "${ac_cv_header_stdc+set}" = set; then
 
4089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4090
else
 
4091
  cat >conftest.$ac_ext <<_ACEOF
 
4092
/* confdefs.h.  */
 
4093
_ACEOF
 
4094
cat confdefs.h >>conftest.$ac_ext
 
4095
cat >>conftest.$ac_ext <<_ACEOF
 
4096
/* end confdefs.h.  */
 
4097
#include <stdlib.h>
 
4098
#include <stdarg.h>
 
4099
#include <string.h>
 
4100
#include <float.h>
 
4101
 
 
4102
int
 
4103
main ()
 
4104
{
 
4105
 
 
4106
  ;
 
4107
  return 0;
 
4108
}
 
4109
_ACEOF
 
4110
rm -f conftest.$ac_objext
 
4111
if { (ac_try="$ac_compile"
 
4112
case "(($ac_try" in
 
4113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4114
  *) ac_try_echo=$ac_try;;
 
4115
esac
 
4116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4117
  (eval "$ac_compile") 2>conftest.er1
 
4118
  ac_status=$?
 
4119
  grep -v '^ *+' conftest.er1 >conftest.err
 
4120
  rm -f conftest.er1
 
4121
  cat conftest.err >&5
 
4122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4123
  (exit $ac_status); } && {
 
4124
         test -z "$ac_c_werror_flag" ||
 
4125
         test ! -s conftest.err
 
4126
       } && test -s conftest.$ac_objext; then
 
4127
  ac_cv_header_stdc=yes
 
4128
else
 
4129
  echo "$as_me: failed program was:" >&5
 
4130
sed 's/^/| /' conftest.$ac_ext >&5
 
4131
 
 
4132
        ac_cv_header_stdc=no
 
4133
fi
 
4134
 
 
4135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4136
 
 
4137
if test $ac_cv_header_stdc = yes; then
 
4138
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4139
  cat >conftest.$ac_ext <<_ACEOF
 
4140
/* confdefs.h.  */
 
4141
_ACEOF
 
4142
cat confdefs.h >>conftest.$ac_ext
 
4143
cat >>conftest.$ac_ext <<_ACEOF
 
4144
/* end confdefs.h.  */
 
4145
#include <string.h>
 
4146
 
 
4147
_ACEOF
 
4148
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4149
  $EGREP "memchr" >/dev/null 2>&1; then
 
4150
  :
 
4151
else
 
4152
  ac_cv_header_stdc=no
 
4153
fi
 
4154
rm -f conftest*
 
4155
 
 
4156
fi
 
4157
 
 
4158
if test $ac_cv_header_stdc = yes; then
 
4159
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4160
  cat >conftest.$ac_ext <<_ACEOF
 
4161
/* confdefs.h.  */
 
4162
_ACEOF
 
4163
cat confdefs.h >>conftest.$ac_ext
 
4164
cat >>conftest.$ac_ext <<_ACEOF
 
4165
/* end confdefs.h.  */
 
4166
#include <stdlib.h>
 
4167
 
 
4168
_ACEOF
 
4169
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4170
  $EGREP "free" >/dev/null 2>&1; then
 
4171
  :
 
4172
else
 
4173
  ac_cv_header_stdc=no
 
4174
fi
 
4175
rm -f conftest*
 
4176
 
 
4177
fi
 
4178
 
 
4179
if test $ac_cv_header_stdc = yes; then
 
4180
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4181
  if test "$cross_compiling" = yes; then
 
4182
  :
 
4183
else
 
4184
  cat >conftest.$ac_ext <<_ACEOF
 
4185
/* confdefs.h.  */
 
4186
_ACEOF
 
4187
cat confdefs.h >>conftest.$ac_ext
 
4188
cat >>conftest.$ac_ext <<_ACEOF
 
4189
/* end confdefs.h.  */
 
4190
#include <ctype.h>
 
4191
#include <stdlib.h>
 
4192
#if ((' ' & 0x0FF) == 0x020)
 
4193
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4194
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4195
#else
 
4196
# define ISLOWER(c) \
 
4197
                   (('a' <= (c) && (c) <= 'i') \
 
4198
                     || ('j' <= (c) && (c) <= 'r') \
 
4199
                     || ('s' <= (c) && (c) <= 'z'))
 
4200
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4201
#endif
 
4202
 
 
4203
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4204
int
 
4205
main ()
 
4206
{
 
4207
  int i;
 
4208
  for (i = 0; i < 256; i++)
 
4209
    if (XOR (islower (i), ISLOWER (i))
 
4210
        || toupper (i) != TOUPPER (i))
 
4211
      return 2;
 
4212
  return 0;
 
4213
}
 
4214
_ACEOF
 
4215
rm -f conftest$ac_exeext
 
4216
if { (ac_try="$ac_link"
 
4217
case "(($ac_try" in
 
4218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4219
  *) ac_try_echo=$ac_try;;
 
4220
esac
 
4221
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4222
  (eval "$ac_link") 2>&5
 
4223
  ac_status=$?
 
4224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4225
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4226
  { (case "(($ac_try" in
 
4227
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4228
  *) ac_try_echo=$ac_try;;
 
4229
esac
 
4230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4231
  (eval "$ac_try") 2>&5
 
4232
  ac_status=$?
 
4233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4234
  (exit $ac_status); }; }; then
 
4235
  :
 
4236
else
 
4237
  echo "$as_me: program exited with status $ac_status" >&5
 
4238
echo "$as_me: failed program was:" >&5
 
4239
sed 's/^/| /' conftest.$ac_ext >&5
 
4240
 
 
4241
( exit $ac_status )
 
4242
ac_cv_header_stdc=no
 
4243
fi
 
4244
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4245
fi
 
4246
 
 
4247
 
 
4248
fi
 
4249
fi
 
4250
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4251
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4252
if test $ac_cv_header_stdc = yes; then
 
4253
 
 
4254
cat >>confdefs.h <<\_ACEOF
 
4255
#define STDC_HEADERS 1
 
4256
_ACEOF
 
4257
 
 
4258
fi
 
4259
 
 
4260
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4261
 
 
4262
 
 
4263
 
 
4264
 
 
4265
 
 
4266
 
 
4267
 
 
4268
 
 
4269
 
 
4270
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4271
                  inttypes.h stdint.h unistd.h
 
4272
do
 
4273
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4274
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4275
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4276
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4278
else
 
4279
  cat >conftest.$ac_ext <<_ACEOF
 
4280
/* confdefs.h.  */
 
4281
_ACEOF
 
4282
cat confdefs.h >>conftest.$ac_ext
 
4283
cat >>conftest.$ac_ext <<_ACEOF
 
4284
/* end confdefs.h.  */
 
4285
$ac_includes_default
 
4286
 
 
4287
#include <$ac_header>
 
4288
_ACEOF
 
4289
rm -f conftest.$ac_objext
 
4290
if { (ac_try="$ac_compile"
 
4291
case "(($ac_try" in
 
4292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4293
  *) ac_try_echo=$ac_try;;
 
4294
esac
 
4295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4296
  (eval "$ac_compile") 2>conftest.er1
 
4297
  ac_status=$?
 
4298
  grep -v '^ *+' conftest.er1 >conftest.err
 
4299
  rm -f conftest.er1
 
4300
  cat conftest.err >&5
 
4301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4302
  (exit $ac_status); } && {
 
4303
         test -z "$ac_c_werror_flag" ||
 
4304
         test ! -s conftest.err
 
4305
       } && test -s conftest.$ac_objext; then
 
4306
  eval "$as_ac_Header=yes"
 
4307
else
 
4308
  echo "$as_me: failed program was:" >&5
 
4309
sed 's/^/| /' conftest.$ac_ext >&5
 
4310
 
 
4311
        eval "$as_ac_Header=no"
 
4312
fi
 
4313
 
 
4314
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4315
fi
 
4316
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4317
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4318
echo "${ECHO_T}$ac_res" >&6; }
 
4319
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4320
  cat >>confdefs.h <<_ACEOF
 
4321
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4322
_ACEOF
 
4323
 
 
4324
fi
 
4325
 
 
4326
done
 
4327
 
 
4328
 
 
4329
 
 
4330
for ac_header in stdlib.h
 
4331
do
 
4332
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4333
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4334
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4335
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4336
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4338
fi
 
4339
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4340
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4341
echo "${ECHO_T}$ac_res" >&6; }
 
4342
else
 
4343
  # Is the header compilable?
 
4344
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4345
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4346
cat >conftest.$ac_ext <<_ACEOF
 
4347
/* confdefs.h.  */
 
4348
_ACEOF
 
4349
cat confdefs.h >>conftest.$ac_ext
 
4350
cat >>conftest.$ac_ext <<_ACEOF
 
4351
/* end confdefs.h.  */
 
4352
$ac_includes_default
 
4353
#include <$ac_header>
 
4354
_ACEOF
 
4355
rm -f conftest.$ac_objext
 
4356
if { (ac_try="$ac_compile"
 
4357
case "(($ac_try" in
 
4358
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4359
  *) ac_try_echo=$ac_try;;
 
4360
esac
 
4361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4362
  (eval "$ac_compile") 2>conftest.er1
 
4363
  ac_status=$?
 
4364
  grep -v '^ *+' conftest.er1 >conftest.err
 
4365
  rm -f conftest.er1
 
4366
  cat conftest.err >&5
 
4367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4368
  (exit $ac_status); } && {
 
4369
         test -z "$ac_c_werror_flag" ||
 
4370
         test ! -s conftest.err
 
4371
       } && test -s conftest.$ac_objext; then
 
4372
  ac_header_compiler=yes
 
4373
else
 
4374
  echo "$as_me: failed program was:" >&5
 
4375
sed 's/^/| /' conftest.$ac_ext >&5
 
4376
 
 
4377
        ac_header_compiler=no
 
4378
fi
 
4379
 
 
4380
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4381
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4382
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4383
 
 
4384
# Is the header present?
 
4385
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4386
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4387
cat >conftest.$ac_ext <<_ACEOF
 
4388
/* confdefs.h.  */
 
4389
_ACEOF
 
4390
cat confdefs.h >>conftest.$ac_ext
 
4391
cat >>conftest.$ac_ext <<_ACEOF
 
4392
/* end confdefs.h.  */
 
4393
#include <$ac_header>
 
4394
_ACEOF
 
4395
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4396
case "(($ac_try" in
 
4397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4398
  *) ac_try_echo=$ac_try;;
 
4399
esac
 
4400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4401
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4402
  ac_status=$?
 
4403
  grep -v '^ *+' conftest.er1 >conftest.err
 
4404
  rm -f conftest.er1
 
4405
  cat conftest.err >&5
 
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4407
  (exit $ac_status); } >/dev/null && {
 
4408
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4409
         test ! -s conftest.err
 
4410
       }; then
 
4411
  ac_header_preproc=yes
 
4412
else
 
4413
  echo "$as_me: failed program was:" >&5
 
4414
sed 's/^/| /' conftest.$ac_ext >&5
 
4415
 
 
4416
  ac_header_preproc=no
 
4417
fi
 
4418
 
 
4419
rm -f conftest.err conftest.$ac_ext
 
4420
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4421
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4422
 
 
4423
# So?  What about this header?
 
4424
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4425
  yes:no: )
 
4426
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4427
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4428
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4429
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4430
    ac_header_preproc=yes
 
4431
    ;;
 
4432
  no:yes:* )
 
4433
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4434
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4435
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4436
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4437
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4438
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4439
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4440
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4441
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4442
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4443
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4444
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4445
 
 
4446
    ;;
 
4447
esac
 
4448
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4449
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4450
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4452
else
 
4453
  eval "$as_ac_Header=\$ac_header_preproc"
 
4454
fi
 
4455
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4456
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4457
echo "${ECHO_T}$ac_res" >&6; }
 
4458
 
 
4459
fi
 
4460
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4461
  cat >>confdefs.h <<_ACEOF
 
4462
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4463
_ACEOF
 
4464
 
 
4465
fi
 
4466
 
 
4467
done
 
4468
 
 
4469
 
 
4470
for ac_header in wchar.h
 
4471
do
 
4472
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4473
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4474
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4475
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4476
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4478
fi
 
4479
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4480
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4481
echo "${ECHO_T}$ac_res" >&6; }
 
4482
else
 
4483
  # Is the header compilable?
 
4484
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4485
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4486
cat >conftest.$ac_ext <<_ACEOF
 
4487
/* confdefs.h.  */
 
4488
_ACEOF
 
4489
cat confdefs.h >>conftest.$ac_ext
 
4490
cat >>conftest.$ac_ext <<_ACEOF
 
4491
/* end confdefs.h.  */
 
4492
$ac_includes_default
 
4493
#include <$ac_header>
 
4494
_ACEOF
 
4495
rm -f conftest.$ac_objext
 
4496
if { (ac_try="$ac_compile"
 
4497
case "(($ac_try" in
 
4498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4499
  *) ac_try_echo=$ac_try;;
 
4500
esac
 
4501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4502
  (eval "$ac_compile") 2>conftest.er1
 
4503
  ac_status=$?
 
4504
  grep -v '^ *+' conftest.er1 >conftest.err
 
4505
  rm -f conftest.er1
 
4506
  cat conftest.err >&5
 
4507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4508
  (exit $ac_status); } && {
 
4509
         test -z "$ac_c_werror_flag" ||
 
4510
         test ! -s conftest.err
 
4511
       } && test -s conftest.$ac_objext; then
 
4512
  ac_header_compiler=yes
 
4513
else
 
4514
  echo "$as_me: failed program was:" >&5
 
4515
sed 's/^/| /' conftest.$ac_ext >&5
 
4516
 
 
4517
        ac_header_compiler=no
 
4518
fi
 
4519
 
 
4520
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4521
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4522
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4523
 
 
4524
# Is the header present?
 
4525
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4526
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4527
cat >conftest.$ac_ext <<_ACEOF
 
4528
/* confdefs.h.  */
 
4529
_ACEOF
 
4530
cat confdefs.h >>conftest.$ac_ext
 
4531
cat >>conftest.$ac_ext <<_ACEOF
 
4532
/* end confdefs.h.  */
 
4533
#include <$ac_header>
 
4534
_ACEOF
 
4535
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4536
case "(($ac_try" in
 
4537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4538
  *) ac_try_echo=$ac_try;;
 
4539
esac
 
4540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4541
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4542
  ac_status=$?
 
4543
  grep -v '^ *+' conftest.er1 >conftest.err
 
4544
  rm -f conftest.er1
 
4545
  cat conftest.err >&5
 
4546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4547
  (exit $ac_status); } >/dev/null && {
 
4548
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4549
         test ! -s conftest.err
 
4550
       }; then
 
4551
  ac_header_preproc=yes
 
4552
else
 
4553
  echo "$as_me: failed program was:" >&5
 
4554
sed 's/^/| /' conftest.$ac_ext >&5
 
4555
 
 
4556
  ac_header_preproc=no
 
4557
fi
 
4558
 
 
4559
rm -f conftest.err conftest.$ac_ext
 
4560
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4561
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4562
 
 
4563
# So?  What about this header?
 
4564
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4565
  yes:no: )
 
4566
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4567
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4568
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4569
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4570
    ac_header_preproc=yes
 
4571
    ;;
 
4572
  no:yes:* )
 
4573
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4574
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4575
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4576
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4577
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4578
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4579
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4580
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4581
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4582
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4583
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4584
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4585
 
 
4586
    ;;
 
4587
esac
 
4588
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4589
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4590
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4592
else
 
4593
  eval "$as_ac_Header=\$ac_header_preproc"
 
4594
fi
 
4595
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4596
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4597
echo "${ECHO_T}$ac_res" >&6; }
 
4598
 
 
4599
fi
 
4600
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4601
  cat >>confdefs.h <<_ACEOF
 
4602
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4603
_ACEOF
 
4604
 
 
4605
fi
 
4606
 
 
4607
done
 
4608
 
 
4609
 
 
4610
 
 
4611
# Find out the true definitions of some integer types
 
4612
# checkIntegerype(size_t) will echo "int" or "long"
 
4613
checkIntegerType() {
 
4614
  fn="testtype.c"
 
4615
  fo="testtype.o"
 
4616
  for t in "int" "unsigned int" "long" "unsigned long" "short" "unsigned short" "char" "unsigned  char" ;do
 
4617
     echo "#include <stddef.h>" >$fn
 
4618
     echo "#include <wchar.h>" >>$fn
 
4619
     # We define a prototype with one type and the function with
 
4620
     # another type. This will result in compilation error
 
4621
     # unless the types are really identical
 
4622
     echo "$t foo($t x);"      >>$fn
 
4623
     echo "$1 foo($1 x) { return x;}" >>$fn
 
4624
     if gcc -c $fn 2>/dev/null ;then
 
4625
        # Found it
 
4626
        echo $t
 
4627
        rm -f $fn $fo
 
4628
        return
 
4629
     fi
 
4630
  done
 
4631
  rm -f $fn $fo
 
4632
}
 
4633
 
 
4634
{ echo "$as_me:$LINENO: checking definition of size_t" >&5
 
4635
echo $ECHO_N "checking definition of size_t... $ECHO_C" >&6; }
 
4636
TYPE_SIZE_T=`checkIntegerType "size_t"`
 
4637
if test "x$TYPE_SIZE_T" = "x" ;then
 
4638
  { { echo "$as_me:$LINENO: error: Cannot find definition of size_t" >&5
 
4639
echo "$as_me: error: Cannot find definition of size_t" >&2;}
 
4640
   { (exit 1); exit 1; }; }
 
4641
fi
 
4642
cat >>confdefs.h <<_ACEOF
 
4643
#define TYPE_SIZE_T "$TYPE_SIZE_T"
 
4644
_ACEOF
 
4645
 
 
4646
{ echo "$as_me:$LINENO: result: $TYPE_SIZE_T" >&5
 
4647
echo "${ECHO_T}$TYPE_SIZE_T" >&6; }
 
4648
 
 
4649
{ echo "$as_me:$LINENO: checking definition of wchar_t" >&5
 
4650
echo $ECHO_N "checking definition of wchar_t... $ECHO_C" >&6; }
 
4651
TYPE_WCHAR_T=`checkIntegerType "wchar_t"`
 
4652
if test "x$TYPE_WCHAR_T" = "x" ;then
 
4653
  { { echo "$as_me:$LINENO: error: Cannot find definition of wchar_t" >&5
 
4654
echo "$as_me: error: Cannot find definition of wchar_t" >&2;}
 
4655
   { (exit 1); exit 1; }; }
 
4656
fi
 
4657
cat >>confdefs.h <<_ACEOF
 
4658
#define TYPE_WCHAR_T "$TYPE_WCHAR_T"
 
4659
_ACEOF
 
4660
 
 
4661
{ echo "$as_me:$LINENO: result: $TYPE_WCHAR_T" >&5
 
4662
echo "${ECHO_T}$TYPE_WCHAR_T" >&6; }
 
4663
 
 
4664
{ echo "$as_me:$LINENO: checking definition of ptrdiff_t" >&5
 
4665
echo $ECHO_N "checking definition of ptrdiff_t... $ECHO_C" >&6; }
 
4666
TYPE_PTRDIFF_T=`checkIntegerType "ptrdiff_t"`
 
4667
if test "x$TYPE_PTRDIFF_T" = "x" ;then
 
4668
  { { echo "$as_me:$LINENO: error: Cannot find definition of ptrdiff_t" >&5
 
4669
echo "$as_me: error: Cannot find definition of ptrdiff_t" >&2;}
 
4670
   { (exit 1); exit 1; }; }
 
4671
fi
 
4672
cat >>confdefs.h <<_ACEOF
 
4673
#define TYPE_PTRDIFF_T "$TYPE_PTRDIFF_T"
 
4674
_ACEOF
 
4675
 
 
4676
{ echo "$as_me:$LINENO: result: $TYPE_PTRDIFF_T" >&5
 
4677
echo "${ECHO_T}$TYPE_PTRDIFF_T" >&6; }
 
4678
 
 
4679
{ echo "$as_me:$LINENO: checking for gcc version" >&5
 
4680
echo $ECHO_N "checking for gcc version... $ECHO_C" >&6; }
 
4681
{ echo "$as_me:$LINENO: checking for __builtin_va_list" >&5
 
4682
echo $ECHO_N "checking for __builtin_va_list... $ECHO_C" >&6; }
 
4683
if test "${ac_cv_type___builtin_va_list+set}" = set; then
 
4684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4685
else
 
4686
  cat >conftest.$ac_ext <<_ACEOF
 
4687
/* confdefs.h.  */
 
4688
_ACEOF
 
4689
cat confdefs.h >>conftest.$ac_ext
 
4690
cat >>conftest.$ac_ext <<_ACEOF
 
4691
/* end confdefs.h.  */
 
4692
$ac_includes_default
 
4693
typedef __builtin_va_list ac__type_new_;
 
4694
int
 
4695
main ()
 
4696
{
 
4697
if ((ac__type_new_ *) 0)
 
4698
  return 0;
 
4699
if (sizeof (ac__type_new_))
 
4700
  return 0;
 
4701
  ;
 
4702
  return 0;
 
4703
}
 
4704
_ACEOF
 
4705
rm -f conftest.$ac_objext
 
4706
if { (ac_try="$ac_compile"
 
4707
case "(($ac_try" in
 
4708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4709
  *) ac_try_echo=$ac_try;;
 
4710
esac
 
4711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4712
  (eval "$ac_compile") 2>conftest.er1
 
4713
  ac_status=$?
 
4714
  grep -v '^ *+' conftest.er1 >conftest.err
 
4715
  rm -f conftest.er1
 
4716
  cat conftest.err >&5
 
4717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4718
  (exit $ac_status); } && {
 
4719
         test -z "$ac_c_werror_flag" ||
 
4720
         test ! -s conftest.err
 
4721
       } && test -s conftest.$ac_objext; then
 
4722
  ac_cv_type___builtin_va_list=yes
 
4723
else
 
4724
  echo "$as_me: failed program was:" >&5
 
4725
sed 's/^/| /' conftest.$ac_ext >&5
 
4726
 
 
4727
        ac_cv_type___builtin_va_list=no
 
4728
fi
 
4729
 
 
4730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4731
fi
 
4732
{ echo "$as_me:$LINENO: result: $ac_cv_type___builtin_va_list" >&5
 
4733
echo "${ECHO_T}$ac_cv_type___builtin_va_list" >&6; }
 
4734
if test $ac_cv_type___builtin_va_list = yes; then
 
4735
  HAVE_BUILTIN_VA_LIST=true
 
4736
else
 
4737
  HAVE_BUILTIN_VA_LIST=false
 
4738
fi
 
4739
 
 
4740
{ echo "$as_me:$LINENO: checking if __thread is a keyword" >&5
 
4741
echo $ECHO_N "checking if __thread is a keyword... $ECHO_C" >&6; }
 
4742
cat >conftest.$ac_ext <<_ACEOF
 
4743
int main(int __thread) { return 0; }
 
4744
_ACEOF
 
4745
rm -f conftest.$ac_objext
 
4746
if { (ac_try="$ac_compile"
 
4747
case "(($ac_try" in
 
4748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4749
  *) ac_try_echo=$ac_try;;
 
4750
esac
 
4751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4752
  (eval "$ac_compile") 2>conftest.er1
 
4753
  ac_status=$?
 
4754
  grep -v '^ *+' conftest.er1 >conftest.err
 
4755
  rm -f conftest.er1
 
4756
  cat conftest.err >&5
 
4757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4758
  (exit $ac_status); } && {
 
4759
         test -z "$ac_c_werror_flag" ||
 
4760
         test ! -s conftest.err
 
4761
       } && test -s conftest.$ac_objext; then
 
4762
  THREAD_IS_KEYWORD=false
 
4763
else
 
4764
  echo "$as_me: failed program was:" >&5
 
4765
sed 's/^/| /' conftest.$ac_ext >&5
 
4766
 
 
4767
        THREAD_IS_KEYWORD=true
 
4768
fi
 
4769
 
 
4770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4771
{ echo "$as_me:$LINENO: result: $THREAD_IS_KEYWORD" >&5
 
4772
echo "${ECHO_T}$THREAD_IS_KEYWORD" >&6; }
 
4773
 
 
4774
# Does gcc add underscores to identifiers to make assembly labels?
 
4775
# (I think MSVC always does)
 
4776
{ echo "$as_me:$LINENO: checking if gcc adds underscores to assembly labels." >&5
 
4777
echo $ECHO_N "checking if gcc adds underscores to assembly labels.... $ECHO_C" >&6; }
 
4778
cat >conftest.$ac_ext <<_ACEOF
 
4779
int main() { __asm__("jmp _main"); }
 
4780
_ACEOF
 
4781
rm -f conftest.$ac_objext conftest$ac_exeext
 
4782
if { (ac_try="$ac_link"
 
4783
case "(($ac_try" in
 
4784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4785
  *) ac_try_echo=$ac_try;;
 
4786
esac
 
4787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4788
  (eval "$ac_link") 2>conftest.er1
 
4789
  ac_status=$?
 
4790
  grep -v '^ *+' conftest.er1 >conftest.err
 
4791
  rm -f conftest.er1
 
4792
  cat conftest.err >&5
 
4793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4794
  (exit $ac_status); } && {
 
4795
         test -z "$ac_c_werror_flag" ||
 
4796
         test ! -s conftest.err
 
4797
       } && test -s conftest$ac_exeext &&
 
4798
       $as_test_x conftest$ac_exeext; then
 
4799
  UNDERSCORE_NAME=true
 
4800
else
 
4801
  echo "$as_me: failed program was:" >&5
 
4802
sed 's/^/| /' conftest.$ac_ext >&5
 
4803
 
 
4804
        UNDERSCORE_NAME=false
 
4805
fi
 
4806
 
 
4807
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4808
      conftest$ac_exeext conftest.$ac_ext
 
4809
{ echo "$as_me:$LINENO: result: $UNDERSCORE_NAME" >&5
 
4810
echo "${ECHO_T}$UNDERSCORE_NAME" >&6; }
 
4811
 
 
4812
fi
 
4813
 
 
4814
{ echo "$as_me:$LINENO: checking if performance counters are usable" >&5
 
4815
echo $ECHO_N "checking if performance counters are usable... $ECHO_C" >&6; }
 
4816
# Create a C file from src/perfcount.c.in
 
4817
rm -f ./cycles.exe
 
4818
if gcc -DCONFIGURATION_ONLY \
 
4819
       -x c cil/ocamlutil/perfcount.c.in -lm -o bin/cycles.exe >/dev/null 2>&1; then
 
4820
 
 
4821
   if CYCLES_PER_USEC=`bin/cycles.exe 2>&1` ;then
 
4822
     { echo "$as_me:$LINENO: result: ok ($CYCLES_PER_USEC cycles per us)" >&5
 
4823
echo "${ECHO_T}ok ($CYCLES_PER_USEC cycles per us)" >&6; }
 
4824
   else
 
4825
     # Print what we got
 
4826
     { echo "$as_me:$LINENO: result: no ($CYCLES_PER_USEC)" >&5
 
4827
echo "${ECHO_T}no ($CYCLES_PER_USEC)" >&6; }
 
4828
     CYCLES_PER_USEC=0
 
4829
   fi
 
4830
else
 
4831
   CYCLES_PER_USEC=0
 
4832
   { echo "$as_me:$LINENO: result: no (cannot compile perfcount.c)" >&5
 
4833
echo "${ECHO_T}no (cannot compile perfcount.c)" >&6; }
 
4834
fi
 
4835
rm -f bin/cycles.exe
 
4836
 
 
4837
# If we are on Linux and we use performance counters try to get
 
4838
# the processor speed from /proc/cpuinfo
 
4839
if test "$CYCLES_PER_USEC" != "0" ;then
 
4840
     case "$target" in
 
4841
        # linux
 
4842
        *86*linux*)
 
4843
             { echo "$as_me:$LINENO: checking if /proc/cpuinfo has processor speed" >&5
 
4844
echo $ECHO_N "checking if /proc/cpuinfo has processor speed... $ECHO_C" >&6; }
 
4845
             cpuinfo=`cat /proc/cpuinfo 2>/dev/null | grep "cpu MHz"`
 
4846
             procspeed=`echo $cpuinfo | sed 's/^.*[^0-9]\([0-9]\+\.[0-9]\+\).*$/\1/g'`
 
4847
             if test "$procspeed"!="" ;then
 
4848
                CYCLES_PER_USEC=$procspeed
 
4849
                { echo "$as_me:$LINENO: result: got $CYCLES_PER_USEC cycles per us" >&5
 
4850
echo "${ECHO_T}got $CYCLES_PER_USEC cycles per us" >&6; }
 
4851
             else
 
4852
                { echo "$as_me:$LINENO: result: no" >&5
 
4853
echo "${ECHO_T}no" >&6; }
 
4854
             fi
 
4855
             ;;
 
4856
        *)
 
4857
             ;;
 
4858
      esac
 
4859
      # Now set HAS_PERFCOUNT
 
4860
      HAS_PERFCOUNT=1
 
4861
else
 
4862
      HAS_PERFCOUNT=0
 
4863
fi
 
4864
 
 
4865
#################
 
4866
# Plugin wished #
 
4867
#################
 
4868
 
 
4869
new_section "wished frama-c plugins"
 
4870
 
 
4871
# Library declarations
 
4872
######################
 
4873
 
 
4874
# REQUIRE_LIBRARY: library *must* be present in order to build plugins
 
4875
# USE_LIBRARY: better for plugins if library is present, but not required
 
4876
# HAS_LIBRARY: is the library available?
 
4877
 
 
4878
REQUIRE_ELSA=
 
4879
USE_ELSA=
 
4880
HAS_ELSA=
 
4881
 
 
4882
REQUIRE_LABLGTK=
 
4883
USE_LABLGTK=
 
4884
HAS_LABLGTK=
 
4885
 
 
4886
REQUIRE_WHYJC=
 
4887
USE_WHYJC=
 
4888
HAS_WHYJC=
 
4889
 
 
4890
REQUIRE_APRON=
 
4891
USE_APRON=
 
4892
HAS_APRON=no
 
4893
 
 
4894
 
 
4895
# Tool declarations
 
4896
####################
 
4897
 
 
4898
LABLGLADECC=
 
4899
REQUIRE_LABLGLADECC=
 
4900
USE_LABLGLADECC=
 
4901
HAS_LABLGLADECC=
 
4902
 
 
4903
CAMLP4O=
 
4904
REQUIRE_CAMLP4O=
 
4905
USE_CAMLP4O=
 
4906
HAS_CAMLP4O=
 
4907
 
 
4908
 
 
4909
LTLTOBA=
 
4910
REQUIRE_LTLTOBA=
 
4911
USE_LTLTOBA=
 
4912
HAS_LTLTOBA=
 
4913
 
 
4914
 
 
4915
### Now plugin declarations
 
4916
 
 
4917
PLUGINS_FORCE_LIST=
 
4918
 
 
4919
 
 
4920
 
 
4921
# syntactic callgraph
 
4922
#####################
 
4923
 
 
4924
 
 
4925
 
 
4926
 
 
4927
 
 
4928
 
 
4929
default=yes
 
4930
{ echo "$as_me:$LINENO: checking for src/syntactic_callgraph" >&5
 
4931
echo $ECHO_N "checking for src/syntactic_callgraph... $ECHO_C" >&6; }
 
4932
if test "${ac_cv_file_src_syntactic_callgraph+set}" = set; then
 
4933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4934
else
 
4935
  test "$cross_compiling" = yes &&
 
4936
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
4937
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
4938
   { (exit 1); exit 1; }; }
 
4939
if test -r "src/syntactic_callgraph"; then
 
4940
  ac_cv_file_src_syntactic_callgraph=yes
 
4941
else
 
4942
  ac_cv_file_src_syntactic_callgraph=no
 
4943
fi
 
4944
fi
 
4945
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_syntactic_callgraph" >&5
 
4946
echo "${ECHO_T}$ac_cv_file_src_syntactic_callgraph" >&6; }
 
4947
if test $ac_cv_file_src_syntactic_callgraph = yes; then
 
4948
  plugin_present=yes
 
4949
else
 
4950
  plugin_present=no;default=no
 
4951
fi
 
4952
 
 
4953
FORCE=no
 
4954
 
 
4955
# Check whether --enable-PLUGIN_NAME was given.
 
4956
if test "${enable_syntactic_callgraph+set}" = set; then
 
4957
  enableval=$enable_syntactic_callgraph; ENABLE=$enableval;
 
4958
  FORCE=$enableval
 
4959
else
 
4960
  ENABLE=$default
 
4961
 
 
4962
fi
 
4963
 
 
4964
# Test to change for static plugin, dynamic option
 
4965
#default_dyn=no
 
4966
#define([PLUGIN_HELP_DYN],
 
4967
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
4968
#                     [PLUGIN_MSG (default: static)])
 
4969
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
4970
#AC_ARG_ENABLE(
 
4971
# [PLUGIN_NAME_DYN],
 
4972
#  PLUGIN_HELP_DYN,
 
4973
#  ENABLE=$enableval;
 
4974
#  FORCE=$enableval
 
4975
#  ENABLE=$default_dyn
 
4976
#)
 
4977
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
4978
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
4979
then
 
4980
{ { echo "$as_me:$LINENO: error: syntactic_callgraph is not available" >&5
 
4981
echo "$as_me: error: syntactic_callgraph is not available" >&2;}
 
4982
   { (exit 1); exit 1; }; }
 
4983
fi
 
4984
up=`upper syntactic_callgraph`
 
4985
eval FORCE_$up=\$FORCE
 
4986
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
4987
eval ENABLE_$up=\$ENABLE
 
4988
 
 
4989
echo "syntactic_callgraph... $ENABLE"
 
4990
 
 
4991
 
 
4992
if test "$ENABLE_SYNTACTIC_CALLGRAPH" == "yes"; then
 
4993
  USE_GNOMECANVAS=${USE_GNOMECANVAS}" syntactic_callgraph"
 
4994
  USE_LABLGTK=${USE_LABLGTK}" syntactic_callgraph"
 
4995
fi
 
4996
 
 
4997
# constant propagation
 
4998
######################
 
4999
 
 
5000
 
 
5001
 
 
5002
 
 
5003
 
 
5004
 
 
5005
default=yes
 
5006
{ echo "$as_me:$LINENO: checking for src/constant_propagation" >&5
 
5007
echo $ECHO_N "checking for src/constant_propagation... $ECHO_C" >&6; }
 
5008
if test "${ac_cv_file_src_constant_propagation+set}" = set; then
 
5009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5010
else
 
5011
  test "$cross_compiling" = yes &&
 
5012
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5013
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5014
   { (exit 1); exit 1; }; }
 
5015
if test -r "src/constant_propagation"; then
 
5016
  ac_cv_file_src_constant_propagation=yes
 
5017
else
 
5018
  ac_cv_file_src_constant_propagation=no
 
5019
fi
 
5020
fi
 
5021
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_constant_propagation" >&5
 
5022
echo "${ECHO_T}$ac_cv_file_src_constant_propagation" >&6; }
 
5023
if test $ac_cv_file_src_constant_propagation = yes; then
 
5024
  plugin_present=yes
 
5025
else
 
5026
  plugin_present=no;default=no
 
5027
fi
 
5028
 
 
5029
FORCE=no
 
5030
 
 
5031
# Check whether --enable-PLUGIN_NAME was given.
 
5032
if test "${enable_constant_propagation+set}" = set; then
 
5033
  enableval=$enable_constant_propagation; ENABLE=$enableval;
 
5034
  FORCE=$enableval
 
5035
else
 
5036
  ENABLE=$default
 
5037
 
 
5038
fi
 
5039
 
 
5040
# Test to change for static plugin, dynamic option
 
5041
#default_dyn=no
 
5042
#define([PLUGIN_HELP_DYN],
 
5043
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5044
#                     [PLUGIN_MSG (default: static)])
 
5045
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5046
#AC_ARG_ENABLE(
 
5047
# [PLUGIN_NAME_DYN],
 
5048
#  PLUGIN_HELP_DYN,
 
5049
#  ENABLE=$enableval;
 
5050
#  FORCE=$enableval
 
5051
#  ENABLE=$default_dyn
 
5052
#)
 
5053
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5054
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5055
then
 
5056
{ { echo "$as_me:$LINENO: error: constant_propagation is not available" >&5
 
5057
echo "$as_me: error: constant_propagation is not available" >&2;}
 
5058
   { (exit 1); exit 1; }; }
 
5059
fi
 
5060
up=`upper constant_propagation`
 
5061
eval FORCE_$up=\$FORCE
 
5062
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5063
eval ENABLE_$up=\$ENABLE
 
5064
 
 
5065
echo "constant_propagation... $ENABLE"
 
5066
 
 
5067
 
 
5068
# cxx
 
5069
#####
 
5070
 
 
5071
 
 
5072
 
 
5073
 
 
5074
 
 
5075
 
 
5076
default=no
 
5077
{ echo "$as_me:$LINENO: checking for cxx_elsa" >&5
 
5078
echo $ECHO_N "checking for cxx_elsa... $ECHO_C" >&6; }
 
5079
if test "${ac_cv_file_cxx_elsa+set}" = set; then
 
5080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5081
else
 
5082
  test "$cross_compiling" = yes &&
 
5083
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5084
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5085
   { (exit 1); exit 1; }; }
 
5086
if test -r "cxx_elsa"; then
 
5087
  ac_cv_file_cxx_elsa=yes
 
5088
else
 
5089
  ac_cv_file_cxx_elsa=no
 
5090
fi
 
5091
fi
 
5092
{ echo "$as_me:$LINENO: result: $ac_cv_file_cxx_elsa" >&5
 
5093
echo "${ECHO_T}$ac_cv_file_cxx_elsa" >&6; }
 
5094
if test $ac_cv_file_cxx_elsa = yes; then
 
5095
  plugin_present=yes
 
5096
else
 
5097
  plugin_present=no;default=no
 
5098
fi
 
5099
 
 
5100
FORCE=no
 
5101
 
 
5102
# Check whether --enable-PLUGIN_NAME was given.
 
5103
if test "${enable_cxx+set}" = set; then
 
5104
  enableval=$enable_cxx; ENABLE=$enableval;
 
5105
  FORCE=$enableval
 
5106
else
 
5107
  ENABLE=$default
 
5108
 
 
5109
fi
 
5110
 
 
5111
# Test to change for static plugin, dynamic option
 
5112
#default_dyn=no
 
5113
#define([PLUGIN_HELP_DYN],
 
5114
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5115
#                     [PLUGIN_MSG (default: static)])
 
5116
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5117
#AC_ARG_ENABLE(
 
5118
# [PLUGIN_NAME_DYN],
 
5119
#  PLUGIN_HELP_DYN,
 
5120
#  ENABLE=$enableval;
 
5121
#  FORCE=$enableval
 
5122
#  ENABLE=$default_dyn
 
5123
#)
 
5124
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5125
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5126
then
 
5127
{ { echo "$as_me:$LINENO: error: cxx is not available" >&5
 
5128
echo "$as_me: error: cxx is not available" >&2;}
 
5129
   { (exit 1); exit 1; }; }
 
5130
fi
 
5131
up=`upper cxx`
 
5132
eval FORCE_$up=\$FORCE
 
5133
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5134
eval ENABLE_$up=\$ENABLE
 
5135
 
 
5136
echo "cxx... $ENABLE"
 
5137
 
 
5138
 
 
5139
if test "$ENABLE_CXX" == "yes"; then
 
5140
  REQUIRE_ELSA=${REQUIRE_ELSA}" cxx"
 
5141
  REQUIRE_CAMLP4O=${REQUIRE_CAMLP4O}" cxx"
 
5142
fi
 
5143
 
 
5144
# from
 
5145
######
 
5146
 
 
5147
 
 
5148
 
 
5149
 
 
5150
 
 
5151
 
 
5152
default=yes
 
5153
{ echo "$as_me:$LINENO: checking for src/from" >&5
 
5154
echo $ECHO_N "checking for src/from... $ECHO_C" >&6; }
 
5155
if test "${ac_cv_file_src_from+set}" = set; then
 
5156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5157
else
 
5158
  test "$cross_compiling" = yes &&
 
5159
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5160
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5161
   { (exit 1); exit 1; }; }
 
5162
if test -r "src/from"; then
 
5163
  ac_cv_file_src_from=yes
 
5164
else
 
5165
  ac_cv_file_src_from=no
 
5166
fi
 
5167
fi
 
5168
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_from" >&5
 
5169
echo "${ECHO_T}$ac_cv_file_src_from" >&6; }
 
5170
if test $ac_cv_file_src_from = yes; then
 
5171
  plugin_present=yes
 
5172
else
 
5173
  plugin_present=no;default=no
 
5174
fi
 
5175
 
 
5176
FORCE=no
 
5177
 
 
5178
# Check whether --enable-PLUGIN_NAME was given.
 
5179
if test "${enable_from+set}" = set; then
 
5180
  enableval=$enable_from; ENABLE=$enableval;
 
5181
  FORCE=$enableval
 
5182
else
 
5183
  ENABLE=$default
 
5184
 
 
5185
fi
 
5186
 
 
5187
# Test to change for static plugin, dynamic option
 
5188
#default_dyn=no
 
5189
#define([PLUGIN_HELP_DYN],
 
5190
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5191
#                     [PLUGIN_MSG (default: static)])
 
5192
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5193
#AC_ARG_ENABLE(
 
5194
# [PLUGIN_NAME_DYN],
 
5195
#  PLUGIN_HELP_DYN,
 
5196
#  ENABLE=$enableval;
 
5197
#  FORCE=$enableval
 
5198
#  ENABLE=$default_dyn
 
5199
#)
 
5200
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5201
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5202
then
 
5203
{ { echo "$as_me:$LINENO: error: from is not available" >&5
 
5204
echo "$as_me: error: from is not available" >&2;}
 
5205
   { (exit 1); exit 1; }; }
 
5206
fi
 
5207
up=`upper from`
 
5208
eval FORCE_$up=\$FORCE
 
5209
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5210
eval ENABLE_$up=\$ENABLE
 
5211
 
 
5212
echo "from... $ENABLE"
 
5213
 
 
5214
 
 
5215
# gui
 
5216
#####
 
5217
 
 
5218
 
 
5219
 
 
5220
 
 
5221
 
 
5222
 
 
5223
default=yes
 
5224
{ echo "$as_me:$LINENO: checking for src/gui" >&5
 
5225
echo $ECHO_N "checking for src/gui... $ECHO_C" >&6; }
 
5226
if test "${ac_cv_file_src_gui+set}" = set; then
 
5227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5228
else
 
5229
  test "$cross_compiling" = yes &&
 
5230
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5231
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5232
   { (exit 1); exit 1; }; }
 
5233
if test -r "src/gui"; then
 
5234
  ac_cv_file_src_gui=yes
 
5235
else
 
5236
  ac_cv_file_src_gui=no
 
5237
fi
 
5238
fi
 
5239
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_gui" >&5
 
5240
echo "${ECHO_T}$ac_cv_file_src_gui" >&6; }
 
5241
if test $ac_cv_file_src_gui = yes; then
 
5242
  plugin_present=yes
 
5243
else
 
5244
  plugin_present=no;default=no
 
5245
fi
 
5246
 
 
5247
FORCE=no
 
5248
 
 
5249
# Check whether --enable-PLUGIN_NAME was given.
 
5250
if test "${enable_gui+set}" = set; then
 
5251
  enableval=$enable_gui; ENABLE=$enableval;
 
5252
  FORCE=$enableval
 
5253
else
 
5254
  ENABLE=$default
 
5255
 
 
5256
fi
 
5257
 
 
5258
# Test to change for static plugin, dynamic option
 
5259
#default_dyn=no
 
5260
#define([PLUGIN_HELP_DYN],
 
5261
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5262
#                     [PLUGIN_MSG (default: static)])
 
5263
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5264
#AC_ARG_ENABLE(
 
5265
# [PLUGIN_NAME_DYN],
 
5266
#  PLUGIN_HELP_DYN,
 
5267
#  ENABLE=$enableval;
 
5268
#  FORCE=$enableval
 
5269
#  ENABLE=$default_dyn
 
5270
#)
 
5271
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5272
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5273
then
 
5274
{ { echo "$as_me:$LINENO: error: gui is not available" >&5
 
5275
echo "$as_me: error: gui is not available" >&2;}
 
5276
   { (exit 1); exit 1; }; }
 
5277
fi
 
5278
up=`upper gui`
 
5279
eval FORCE_$up=\$FORCE
 
5280
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5281
eval ENABLE_$up=\$ENABLE
 
5282
 
 
5283
echo "gui... $ENABLE"
 
5284
 
 
5285
 
 
5286
if test "$ENABLE_GUI" == "yes"; then
 
5287
  REQUIRE_LABLGTK=${REQUIRE_LABLGTK}" gui"
 
5288
fi
 
5289
 
 
5290
# impact
 
5291
########
 
5292
 
 
5293
 
 
5294
 
 
5295
 
 
5296
 
 
5297
 
 
5298
default=yes
 
5299
{ echo "$as_me:$LINENO: checking for src/impact" >&5
 
5300
echo $ECHO_N "checking for src/impact... $ECHO_C" >&6; }
 
5301
if test "${ac_cv_file_src_impact+set}" = set; then
 
5302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5303
else
 
5304
  test "$cross_compiling" = yes &&
 
5305
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5306
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5307
   { (exit 1); exit 1; }; }
 
5308
if test -r "src/impact"; then
 
5309
  ac_cv_file_src_impact=yes
 
5310
else
 
5311
  ac_cv_file_src_impact=no
 
5312
fi
 
5313
fi
 
5314
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_impact" >&5
 
5315
echo "${ECHO_T}$ac_cv_file_src_impact" >&6; }
 
5316
if test $ac_cv_file_src_impact = yes; then
 
5317
  plugin_present=yes
 
5318
else
 
5319
  plugin_present=no;default=no
 
5320
fi
 
5321
 
 
5322
FORCE=no
 
5323
 
 
5324
# Check whether --enable-PLUGIN_NAME was given.
 
5325
if test "${enable_impact+set}" = set; then
 
5326
  enableval=$enable_impact; ENABLE=$enableval;
 
5327
  FORCE=$enableval
 
5328
else
 
5329
  ENABLE=$default
 
5330
 
 
5331
fi
 
5332
 
 
5333
# Test to change for static plugin, dynamic option
 
5334
#default_dyn=no
 
5335
#define([PLUGIN_HELP_DYN],
 
5336
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5337
#                     [PLUGIN_MSG (default: static)])
 
5338
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5339
#AC_ARG_ENABLE(
 
5340
# [PLUGIN_NAME_DYN],
 
5341
#  PLUGIN_HELP_DYN,
 
5342
#  ENABLE=$enableval;
 
5343
#  FORCE=$enableval
 
5344
#  ENABLE=$default_dyn
 
5345
#)
 
5346
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5347
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5348
then
 
5349
{ { echo "$as_me:$LINENO: error: impact is not available" >&5
 
5350
echo "$as_me: error: impact is not available" >&2;}
 
5351
   { (exit 1); exit 1; }; }
 
5352
fi
 
5353
up=`upper impact`
 
5354
eval FORCE_$up=\$FORCE
 
5355
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5356
eval ENABLE_$up=\$ENABLE
 
5357
 
 
5358
echo "impact... $ENABLE"
 
5359
 
 
5360
 
 
5361
# inout
 
5362
#######
 
5363
 
 
5364
 
 
5365
 
 
5366
 
 
5367
 
 
5368
 
 
5369
default=yes
 
5370
{ echo "$as_me:$LINENO: checking for src/inout" >&5
 
5371
echo $ECHO_N "checking for src/inout... $ECHO_C" >&6; }
 
5372
if test "${ac_cv_file_src_inout+set}" = set; then
 
5373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5374
else
 
5375
  test "$cross_compiling" = yes &&
 
5376
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5377
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5378
   { (exit 1); exit 1; }; }
 
5379
if test -r "src/inout"; then
 
5380
  ac_cv_file_src_inout=yes
 
5381
else
 
5382
  ac_cv_file_src_inout=no
 
5383
fi
 
5384
fi
 
5385
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_inout" >&5
 
5386
echo "${ECHO_T}$ac_cv_file_src_inout" >&6; }
 
5387
if test $ac_cv_file_src_inout = yes; then
 
5388
  plugin_present=yes
 
5389
else
 
5390
  plugin_present=no;default=no
 
5391
fi
 
5392
 
 
5393
FORCE=no
 
5394
 
 
5395
# Check whether --enable-PLUGIN_NAME was given.
 
5396
if test "${enable_inout+set}" = set; then
 
5397
  enableval=$enable_inout; ENABLE=$enableval;
 
5398
  FORCE=$enableval
 
5399
else
 
5400
  ENABLE=$default
 
5401
 
 
5402
fi
 
5403
 
 
5404
# Test to change for static plugin, dynamic option
 
5405
#default_dyn=no
 
5406
#define([PLUGIN_HELP_DYN],
 
5407
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5408
#                     [PLUGIN_MSG (default: static)])
 
5409
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5410
#AC_ARG_ENABLE(
 
5411
# [PLUGIN_NAME_DYN],
 
5412
#  PLUGIN_HELP_DYN,
 
5413
#  ENABLE=$enableval;
 
5414
#  FORCE=$enableval
 
5415
#  ENABLE=$default_dyn
 
5416
#)
 
5417
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5418
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5419
then
 
5420
{ { echo "$as_me:$LINENO: error: inout is not available" >&5
 
5421
echo "$as_me: error: inout is not available" >&2;}
 
5422
   { (exit 1); exit 1; }; }
 
5423
fi
 
5424
up=`upper inout`
 
5425
eval FORCE_$up=\$FORCE
 
5426
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5427
eval ENABLE_$up=\$ENABLE
 
5428
 
 
5429
echo "inout... $ENABLE"
 
5430
 
 
5431
 
 
5432
# jessie
 
5433
########
 
5434
 
 
5435
 
 
5436
 
 
5437
 
 
5438
 
 
5439
 
 
5440
default=yes
 
5441
{ echo "$as_me:$LINENO: checking for src/jessie" >&5
 
5442
echo $ECHO_N "checking for src/jessie... $ECHO_C" >&6; }
 
5443
if test "${ac_cv_file_src_jessie+set}" = set; then
 
5444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5445
else
 
5446
  test "$cross_compiling" = yes &&
 
5447
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5448
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5449
   { (exit 1); exit 1; }; }
 
5450
if test -r "src/jessie"; then
 
5451
  ac_cv_file_src_jessie=yes
 
5452
else
 
5453
  ac_cv_file_src_jessie=no
 
5454
fi
 
5455
fi
 
5456
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_jessie" >&5
 
5457
echo "${ECHO_T}$ac_cv_file_src_jessie" >&6; }
 
5458
if test $ac_cv_file_src_jessie = yes; then
 
5459
  plugin_present=yes
 
5460
else
 
5461
  plugin_present=no;default=no
 
5462
fi
 
5463
 
 
5464
FORCE=no
 
5465
 
 
5466
# Check whether --enable-PLUGIN_NAME was given.
 
5467
if test "${enable_jessie+set}" = set; then
 
5468
  enableval=$enable_jessie; ENABLE=$enableval;
 
5469
  FORCE=$enableval
 
5470
else
 
5471
  ENABLE=$default
 
5472
 
 
5473
fi
 
5474
 
 
5475
# Test to change for static plugin, dynamic option
 
5476
#default_dyn=no
 
5477
#define([PLUGIN_HELP_DYN],
 
5478
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5479
#                     [PLUGIN_MSG (default: static)])
 
5480
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5481
#AC_ARG_ENABLE(
 
5482
# [PLUGIN_NAME_DYN],
 
5483
#  PLUGIN_HELP_DYN,
 
5484
#  ENABLE=$enableval;
 
5485
#  FORCE=$enableval
 
5486
#  ENABLE=$default_dyn
 
5487
#)
 
5488
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5489
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5490
then
 
5491
{ { echo "$as_me:$LINENO: error: jessie is not available" >&5
 
5492
echo "$as_me: error: jessie is not available" >&2;}
 
5493
   { (exit 1); exit 1; }; }
 
5494
fi
 
5495
up=`upper jessie`
 
5496
eval FORCE_$up=\$FORCE
 
5497
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5498
eval ENABLE_$up=\$ENABLE
 
5499
 
 
5500
echo "jessie... $ENABLE"
 
5501
 
 
5502
 
 
5503
if test "$ENABLE_JESSIE" == "yes"; then
 
5504
  REQUIRE_WHYJC=${REQUIRE_WHYJC}" jessie"
 
5505
  USE_APRON=${USE_APRON}" jessie"
 
5506
fi
 
5507
 
 
5508
# journal_loader
 
5509
#################
 
5510
 
 
5511
 
 
5512
 
 
5513
 
 
5514
 
 
5515
 
 
5516
default=yes
 
5517
{ echo "$as_me:$LINENO: checking for src/journal_loader" >&5
 
5518
echo $ECHO_N "checking for src/journal_loader... $ECHO_C" >&6; }
 
5519
if test "${ac_cv_file_src_journal_loader+set}" = set; then
 
5520
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5521
else
 
5522
  test "$cross_compiling" = yes &&
 
5523
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5524
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5525
   { (exit 1); exit 1; }; }
 
5526
if test -r "src/journal_loader"; then
 
5527
  ac_cv_file_src_journal_loader=yes
 
5528
else
 
5529
  ac_cv_file_src_journal_loader=no
 
5530
fi
 
5531
fi
 
5532
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_journal_loader" >&5
 
5533
echo "${ECHO_T}$ac_cv_file_src_journal_loader" >&6; }
 
5534
if test $ac_cv_file_src_journal_loader = yes; then
 
5535
  plugin_present=yes
 
5536
else
 
5537
  plugin_present=no;default=no
 
5538
fi
 
5539
 
 
5540
FORCE=no
 
5541
 
 
5542
# Check whether --enable-PLUGIN_NAME was given.
 
5543
if test "${enable_journal_loader+set}" = set; then
 
5544
  enableval=$enable_journal_loader; ENABLE=$enableval;
 
5545
  FORCE=$enableval
 
5546
else
 
5547
  ENABLE=$default
 
5548
 
 
5549
fi
 
5550
 
 
5551
# Test to change for static plugin, dynamic option
 
5552
#default_dyn=no
 
5553
#define([PLUGIN_HELP_DYN],
 
5554
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5555
#                     [PLUGIN_MSG (default: static)])
 
5556
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5557
#AC_ARG_ENABLE(
 
5558
# [PLUGIN_NAME_DYN],
 
5559
#  PLUGIN_HELP_DYN,
 
5560
#  ENABLE=$enableval;
 
5561
#  FORCE=$enableval
 
5562
#  ENABLE=$default_dyn
 
5563
#)
 
5564
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5565
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5566
then
 
5567
{ { echo "$as_me:$LINENO: error: journal_loader is not available" >&5
 
5568
echo "$as_me: error: journal_loader is not available" >&2;}
 
5569
   { (exit 1); exit 1; }; }
 
5570
fi
 
5571
up=`upper journal_loader`
 
5572
eval FORCE_$up=\$FORCE
 
5573
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5574
eval ENABLE_$up=\$ENABLE
 
5575
 
 
5576
echo "journal_loader... $ENABLE"
 
5577
 
 
5578
 
 
5579
# metrics
 
5580
#########
 
5581
 
 
5582
 
 
5583
 
 
5584
 
 
5585
 
 
5586
 
 
5587
default=yes
 
5588
{ echo "$as_me:$LINENO: checking for src/metrics" >&5
 
5589
echo $ECHO_N "checking for src/metrics... $ECHO_C" >&6; }
 
5590
if test "${ac_cv_file_src_metrics+set}" = set; then
 
5591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5592
else
 
5593
  test "$cross_compiling" = yes &&
 
5594
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5595
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5596
   { (exit 1); exit 1; }; }
 
5597
if test -r "src/metrics"; then
 
5598
  ac_cv_file_src_metrics=yes
 
5599
else
 
5600
  ac_cv_file_src_metrics=no
 
5601
fi
 
5602
fi
 
5603
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_metrics" >&5
 
5604
echo "${ECHO_T}$ac_cv_file_src_metrics" >&6; }
 
5605
if test $ac_cv_file_src_metrics = yes; then
 
5606
  plugin_present=yes
 
5607
else
 
5608
  plugin_present=no;default=no
 
5609
fi
 
5610
 
 
5611
FORCE=no
 
5612
 
 
5613
# Check whether --enable-PLUGIN_NAME was given.
 
5614
if test "${enable_metrics+set}" = set; then
 
5615
  enableval=$enable_metrics; ENABLE=$enableval;
 
5616
  FORCE=$enableval
 
5617
else
 
5618
  ENABLE=$default
 
5619
 
 
5620
fi
 
5621
 
 
5622
# Test to change for static plugin, dynamic option
 
5623
#default_dyn=no
 
5624
#define([PLUGIN_HELP_DYN],
 
5625
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5626
#                     [PLUGIN_MSG (default: static)])
 
5627
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5628
#AC_ARG_ENABLE(
 
5629
# [PLUGIN_NAME_DYN],
 
5630
#  PLUGIN_HELP_DYN,
 
5631
#  ENABLE=$enableval;
 
5632
#  FORCE=$enableval
 
5633
#  ENABLE=$default_dyn
 
5634
#)
 
5635
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5636
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5637
then
 
5638
{ { echo "$as_me:$LINENO: error: metrics is not available" >&5
 
5639
echo "$as_me: error: metrics is not available" >&2;}
 
5640
   { (exit 1); exit 1; }; }
 
5641
fi
 
5642
up=`upper metrics`
 
5643
eval FORCE_$up=\$FORCE
 
5644
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5645
eval ENABLE_$up=\$ENABLE
 
5646
 
 
5647
echo "metrics... $ENABLE"
 
5648
 
 
5649
 
 
5650
# miel
 
5651
######
 
5652
 
 
5653
 
 
5654
 
 
5655
 
 
5656
 
 
5657
 
 
5658
default=no
 
5659
{ echo "$as_me:$LINENO: checking for src/miel" >&5
 
5660
echo $ECHO_N "checking for src/miel... $ECHO_C" >&6; }
 
5661
if test "${ac_cv_file_src_miel+set}" = set; then
 
5662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5663
else
 
5664
  test "$cross_compiling" = yes &&
 
5665
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5666
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5667
   { (exit 1); exit 1; }; }
 
5668
if test -r "src/miel"; then
 
5669
  ac_cv_file_src_miel=yes
 
5670
else
 
5671
  ac_cv_file_src_miel=no
 
5672
fi
 
5673
fi
 
5674
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_miel" >&5
 
5675
echo "${ECHO_T}$ac_cv_file_src_miel" >&6; }
 
5676
if test $ac_cv_file_src_miel = yes; then
 
5677
  plugin_present=yes
 
5678
else
 
5679
  plugin_present=no;default=no
 
5680
fi
 
5681
 
 
5682
FORCE=no
 
5683
 
 
5684
# Check whether --enable-PLUGIN_NAME was given.
 
5685
if test "${enable_miel+set}" = set; then
 
5686
  enableval=$enable_miel; ENABLE=$enableval;
 
5687
  FORCE=$enableval
 
5688
else
 
5689
  ENABLE=$default
 
5690
 
 
5691
fi
 
5692
 
 
5693
# Test to change for static plugin, dynamic option
 
5694
#default_dyn=no
 
5695
#define([PLUGIN_HELP_DYN],
 
5696
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5697
#                     [PLUGIN_MSG (default: static)])
 
5698
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5699
#AC_ARG_ENABLE(
 
5700
# [PLUGIN_NAME_DYN],
 
5701
#  PLUGIN_HELP_DYN,
 
5702
#  ENABLE=$enableval;
 
5703
#  FORCE=$enableval
 
5704
#  ENABLE=$default_dyn
 
5705
#)
 
5706
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5707
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5708
then
 
5709
{ { echo "$as_me:$LINENO: error: miel is not available" >&5
 
5710
echo "$as_me: error: miel is not available" >&2;}
 
5711
   { (exit 1); exit 1; }; }
 
5712
fi
 
5713
up=`upper miel`
 
5714
eval FORCE_$up=\$FORCE
 
5715
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5716
eval ENABLE_$up=\$ENABLE
 
5717
 
 
5718
echo "miel... $ENABLE"
 
5719
 
 
5720
 
 
5721
if test "$ENABLE_MIEL" == "yes"; then
 
5722
  REQUIRE_LABLGTK=${REQUIRE_LABLGTK}" miel"
 
5723
  REQUIRE_LABLGLADECC=${REQUIRE_LABLGLADECC}" miel"
 
5724
fi
 
5725
 
 
5726
# occurrence
 
5727
############
 
5728
 
 
5729
 
 
5730
 
 
5731
 
 
5732
 
 
5733
 
 
5734
default=yes
 
5735
{ echo "$as_me:$LINENO: checking for src/occurrence" >&5
 
5736
echo $ECHO_N "checking for src/occurrence... $ECHO_C" >&6; }
 
5737
if test "${ac_cv_file_src_occurrence+set}" = set; then
 
5738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5739
else
 
5740
  test "$cross_compiling" = yes &&
 
5741
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5742
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5743
   { (exit 1); exit 1; }; }
 
5744
if test -r "src/occurrence"; then
 
5745
  ac_cv_file_src_occurrence=yes
 
5746
else
 
5747
  ac_cv_file_src_occurrence=no
 
5748
fi
 
5749
fi
 
5750
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_occurrence" >&5
 
5751
echo "${ECHO_T}$ac_cv_file_src_occurrence" >&6; }
 
5752
if test $ac_cv_file_src_occurrence = yes; then
 
5753
  plugin_present=yes
 
5754
else
 
5755
  plugin_present=no;default=no
 
5756
fi
 
5757
 
 
5758
FORCE=no
 
5759
 
 
5760
# Check whether --enable-PLUGIN_NAME was given.
 
5761
if test "${enable_occurrence+set}" = set; then
 
5762
  enableval=$enable_occurrence; ENABLE=$enableval;
 
5763
  FORCE=$enableval
 
5764
else
 
5765
  ENABLE=$default
 
5766
 
 
5767
fi
 
5768
 
 
5769
# Test to change for static plugin, dynamic option
 
5770
#default_dyn=no
 
5771
#define([PLUGIN_HELP_DYN],
 
5772
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5773
#                     [PLUGIN_MSG (default: static)])
 
5774
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5775
#AC_ARG_ENABLE(
 
5776
# [PLUGIN_NAME_DYN],
 
5777
#  PLUGIN_HELP_DYN,
 
5778
#  ENABLE=$enableval;
 
5779
#  FORCE=$enableval
 
5780
#  ENABLE=$default_dyn
 
5781
#)
 
5782
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5783
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5784
then
 
5785
{ { echo "$as_me:$LINENO: error: occurrence is not available" >&5
 
5786
echo "$as_me: error: occurrence is not available" >&2;}
 
5787
   { (exit 1); exit 1; }; }
 
5788
fi
 
5789
up=`upper occurrence`
 
5790
eval FORCE_$up=\$FORCE
 
5791
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5792
eval ENABLE_$up=\$ENABLE
 
5793
 
 
5794
echo "occurrence... $ENABLE"
 
5795
 
 
5796
 
 
5797
# occurrence_dyn
 
5798
#################
 
5799
 
 
5800
 
 
5801
# pdg
 
5802
#####
 
5803
 
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
 
 
5809
default=yes
 
5810
{ echo "$as_me:$LINENO: checking for src/pdg" >&5
 
5811
echo $ECHO_N "checking for src/pdg... $ECHO_C" >&6; }
 
5812
if test "${ac_cv_file_src_pdg+set}" = set; then
 
5813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5814
else
 
5815
  test "$cross_compiling" = yes &&
 
5816
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5817
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5818
   { (exit 1); exit 1; }; }
 
5819
if test -r "src/pdg"; then
 
5820
  ac_cv_file_src_pdg=yes
 
5821
else
 
5822
  ac_cv_file_src_pdg=no
 
5823
fi
 
5824
fi
 
5825
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_pdg" >&5
 
5826
echo "${ECHO_T}$ac_cv_file_src_pdg" >&6; }
 
5827
if test $ac_cv_file_src_pdg = yes; then
 
5828
  plugin_present=yes
 
5829
else
 
5830
  plugin_present=no;default=no
 
5831
fi
 
5832
 
 
5833
FORCE=no
 
5834
 
 
5835
# Check whether --enable-PLUGIN_NAME was given.
 
5836
if test "${enable_pdg+set}" = set; then
 
5837
  enableval=$enable_pdg; ENABLE=$enableval;
 
5838
  FORCE=$enableval
 
5839
else
 
5840
  ENABLE=$default
 
5841
 
 
5842
fi
 
5843
 
 
5844
# Test to change for static plugin, dynamic option
 
5845
#default_dyn=no
 
5846
#define([PLUGIN_HELP_DYN],
 
5847
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5848
#                     [PLUGIN_MSG (default: static)])
 
5849
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5850
#AC_ARG_ENABLE(
 
5851
# [PLUGIN_NAME_DYN],
 
5852
#  PLUGIN_HELP_DYN,
 
5853
#  ENABLE=$enableval;
 
5854
#  FORCE=$enableval
 
5855
#  ENABLE=$default_dyn
 
5856
#)
 
5857
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5858
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5859
then
 
5860
{ { echo "$as_me:$LINENO: error: pdg is not available" >&5
 
5861
echo "$as_me: error: pdg is not available" >&2;}
 
5862
   { (exit 1); exit 1; }; }
 
5863
fi
 
5864
up=`upper pdg`
 
5865
eval FORCE_$up=\$FORCE
 
5866
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5867
eval ENABLE_$up=\$ENABLE
 
5868
 
 
5869
echo "pdg... $ENABLE"
 
5870
 
 
5871
 
 
5872
# postdominators
 
5873
################
 
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
default=yes
 
5881
{ echo "$as_me:$LINENO: checking for src/postdominators" >&5
 
5882
echo $ECHO_N "checking for src/postdominators... $ECHO_C" >&6; }
 
5883
if test "${ac_cv_file_src_postdominators+set}" = set; then
 
5884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5885
else
 
5886
  test "$cross_compiling" = yes &&
 
5887
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5888
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5889
   { (exit 1); exit 1; }; }
 
5890
if test -r "src/postdominators"; then
 
5891
  ac_cv_file_src_postdominators=yes
 
5892
else
 
5893
  ac_cv_file_src_postdominators=no
 
5894
fi
 
5895
fi
 
5896
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_postdominators" >&5
 
5897
echo "${ECHO_T}$ac_cv_file_src_postdominators" >&6; }
 
5898
if test $ac_cv_file_src_postdominators = yes; then
 
5899
  plugin_present=yes
 
5900
else
 
5901
  plugin_present=no;default=no
 
5902
fi
 
5903
 
 
5904
FORCE=no
 
5905
 
 
5906
# Check whether --enable-PLUGIN_NAME was given.
 
5907
if test "${enable_postdominators+set}" = set; then
 
5908
  enableval=$enable_postdominators; ENABLE=$enableval;
 
5909
  FORCE=$enableval
 
5910
else
 
5911
  ENABLE=$default
 
5912
 
 
5913
fi
 
5914
 
 
5915
# Test to change for static plugin, dynamic option
 
5916
#default_dyn=no
 
5917
#define([PLUGIN_HELP_DYN],
 
5918
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5919
#                     [PLUGIN_MSG (default: static)])
 
5920
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5921
#AC_ARG_ENABLE(
 
5922
# [PLUGIN_NAME_DYN],
 
5923
#  PLUGIN_HELP_DYN,
 
5924
#  ENABLE=$enableval;
 
5925
#  FORCE=$enableval
 
5926
#  ENABLE=$default_dyn
 
5927
#)
 
5928
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
5929
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
5930
then
 
5931
{ { echo "$as_me:$LINENO: error: postdominators is not available" >&5
 
5932
echo "$as_me: error: postdominators is not available" >&2;}
 
5933
   { (exit 1); exit 1; }; }
 
5934
fi
 
5935
up=`upper postdominators`
 
5936
eval FORCE_$up=\$FORCE
 
5937
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
5938
eval ENABLE_$up=\$ENABLE
 
5939
 
 
5940
echo "postdominators... $ENABLE"
 
5941
 
 
5942
 
 
5943
# scope
 
5944
############
 
5945
 
 
5946
 
 
5947
 
 
5948
 
 
5949
 
 
5950
 
 
5951
default=yes
 
5952
{ echo "$as_me:$LINENO: checking for src/scope" >&5
 
5953
echo $ECHO_N "checking for src/scope... $ECHO_C" >&6; }
 
5954
if test "${ac_cv_file_src_scope+set}" = set; then
 
5955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5956
else
 
5957
  test "$cross_compiling" = yes &&
 
5958
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
5959
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
5960
   { (exit 1); exit 1; }; }
 
5961
if test -r "src/scope"; then
 
5962
  ac_cv_file_src_scope=yes
 
5963
else
 
5964
  ac_cv_file_src_scope=no
 
5965
fi
 
5966
fi
 
5967
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_scope" >&5
 
5968
echo "${ECHO_T}$ac_cv_file_src_scope" >&6; }
 
5969
if test $ac_cv_file_src_scope = yes; then
 
5970
  plugin_present=yes
 
5971
else
 
5972
  plugin_present=no;default=no
 
5973
fi
 
5974
 
 
5975
FORCE=no
 
5976
 
 
5977
# Check whether --enable-PLUGIN_NAME was given.
 
5978
if test "${enable_scope+set}" = set; then
 
5979
  enableval=$enable_scope; ENABLE=$enableval;
 
5980
  FORCE=$enableval
 
5981
else
 
5982
  ENABLE=$default
 
5983
 
 
5984
fi
 
5985
 
 
5986
# Test to change for static plugin, dynamic option
 
5987
#default_dyn=no
 
5988
#define([PLUGIN_HELP_DYN],
 
5989
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
5990
#                     [PLUGIN_MSG (default: static)])
 
5991
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
5992
#AC_ARG_ENABLE(
 
5993
# [PLUGIN_NAME_DYN],
 
5994
#  PLUGIN_HELP_DYN,
 
5995
#  ENABLE=$enableval;
 
5996
#  FORCE=$enableval
 
5997
#  ENABLE=$default_dyn
 
5998
#)
 
5999
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6000
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6001
then
 
6002
{ { echo "$as_me:$LINENO: error: scope is not available" >&5
 
6003
echo "$as_me: error: scope is not available" >&2;}
 
6004
   { (exit 1); exit 1; }; }
 
6005
fi
 
6006
up=`upper scope`
 
6007
eval FORCE_$up=\$FORCE
 
6008
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6009
eval ENABLE_$up=\$ENABLE
 
6010
 
 
6011
echo "scope... $ENABLE"
 
6012
 
 
6013
 
 
6014
# security
 
6015
##########
 
6016
 
 
6017
 
 
6018
 
 
6019
 
 
6020
 
 
6021
 
 
6022
default=yes
 
6023
{ echo "$as_me:$LINENO: checking for src/security" >&5
 
6024
echo $ECHO_N "checking for src/security... $ECHO_C" >&6; }
 
6025
if test "${ac_cv_file_src_security+set}" = set; then
 
6026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6027
else
 
6028
  test "$cross_compiling" = yes &&
 
6029
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
6030
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
6031
   { (exit 1); exit 1; }; }
 
6032
if test -r "src/security"; then
 
6033
  ac_cv_file_src_security=yes
 
6034
else
 
6035
  ac_cv_file_src_security=no
 
6036
fi
 
6037
fi
 
6038
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_security" >&5
 
6039
echo "${ECHO_T}$ac_cv_file_src_security" >&6; }
 
6040
if test $ac_cv_file_src_security = yes; then
 
6041
  plugin_present=yes
 
6042
else
 
6043
  plugin_present=no;default=no
 
6044
fi
 
6045
 
 
6046
FORCE=no
 
6047
 
 
6048
# Check whether --enable-PLUGIN_NAME was given.
 
6049
if test "${enable_security+set}" = set; then
 
6050
  enableval=$enable_security; ENABLE=$enableval;
 
6051
  FORCE=$enableval
 
6052
else
 
6053
  ENABLE=$default
 
6054
 
 
6055
fi
 
6056
 
 
6057
# Test to change for static plugin, dynamic option
 
6058
#default_dyn=no
 
6059
#define([PLUGIN_HELP_DYN],
 
6060
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
6061
#                     [PLUGIN_MSG (default: static)])
 
6062
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
6063
#AC_ARG_ENABLE(
 
6064
# [PLUGIN_NAME_DYN],
 
6065
#  PLUGIN_HELP_DYN,
 
6066
#  ENABLE=$enableval;
 
6067
#  FORCE=$enableval
 
6068
#  ENABLE=$default_dyn
 
6069
#)
 
6070
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6071
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6072
then
 
6073
{ { echo "$as_me:$LINENO: error: security is not available" >&5
 
6074
echo "$as_me: error: security is not available" >&2;}
 
6075
   { (exit 1); exit 1; }; }
 
6076
fi
 
6077
up=`upper security`
 
6078
eval FORCE_$up=\$FORCE
 
6079
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6080
eval ENABLE_$up=\$ENABLE
 
6081
 
 
6082
echo "security... $ENABLE"
 
6083
 
 
6084
 
 
6085
# semantic callgraph
 
6086
####################
 
6087
 
 
6088
 
 
6089
 
 
6090
 
 
6091
 
 
6092
 
 
6093
default=yes
 
6094
{ echo "$as_me:$LINENO: checking for src/semantic_callgraph" >&5
 
6095
echo $ECHO_N "checking for src/semantic_callgraph... $ECHO_C" >&6; }
 
6096
if test "${ac_cv_file_src_semantic_callgraph+set}" = set; then
 
6097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6098
else
 
6099
  test "$cross_compiling" = yes &&
 
6100
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
6101
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
6102
   { (exit 1); exit 1; }; }
 
6103
if test -r "src/semantic_callgraph"; then
 
6104
  ac_cv_file_src_semantic_callgraph=yes
 
6105
else
 
6106
  ac_cv_file_src_semantic_callgraph=no
 
6107
fi
 
6108
fi
 
6109
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_semantic_callgraph" >&5
 
6110
echo "${ECHO_T}$ac_cv_file_src_semantic_callgraph" >&6; }
 
6111
if test $ac_cv_file_src_semantic_callgraph = yes; then
 
6112
  plugin_present=yes
 
6113
else
 
6114
  plugin_present=no;default=no
 
6115
fi
 
6116
 
 
6117
FORCE=no
 
6118
 
 
6119
# Check whether --enable-PLUGIN_NAME was given.
 
6120
if test "${enable_semantic_callgraph+set}" = set; then
 
6121
  enableval=$enable_semantic_callgraph; ENABLE=$enableval;
 
6122
  FORCE=$enableval
 
6123
else
 
6124
  ENABLE=$default
 
6125
 
 
6126
fi
 
6127
 
 
6128
# Test to change for static plugin, dynamic option
 
6129
#default_dyn=no
 
6130
#define([PLUGIN_HELP_DYN],
 
6131
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
6132
#                     [PLUGIN_MSG (default: static)])
 
6133
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
6134
#AC_ARG_ENABLE(
 
6135
# [PLUGIN_NAME_DYN],
 
6136
#  PLUGIN_HELP_DYN,
 
6137
#  ENABLE=$enableval;
 
6138
#  FORCE=$enableval
 
6139
#  ENABLE=$default_dyn
 
6140
#)
 
6141
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6142
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6143
then
 
6144
{ { echo "$as_me:$LINENO: error: semantic_callgraph is not available" >&5
 
6145
echo "$as_me: error: semantic_callgraph is not available" >&2;}
 
6146
   { (exit 1); exit 1; }; }
 
6147
fi
 
6148
up=`upper semantic_callgraph`
 
6149
eval FORCE_$up=\$FORCE
 
6150
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6151
eval ENABLE_$up=\$ENABLE
 
6152
 
 
6153
echo "semantic_callgraph... $ENABLE"
 
6154
 
 
6155
 
 
6156
# slicing
 
6157
#########
 
6158
 
 
6159
 
 
6160
 
 
6161
 
 
6162
 
 
6163
 
 
6164
default=yes
 
6165
{ echo "$as_me:$LINENO: checking for src/slicing" >&5
 
6166
echo $ECHO_N "checking for src/slicing... $ECHO_C" >&6; }
 
6167
if test "${ac_cv_file_src_slicing+set}" = set; then
 
6168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6169
else
 
6170
  test "$cross_compiling" = yes &&
 
6171
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
6172
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
6173
   { (exit 1); exit 1; }; }
 
6174
if test -r "src/slicing"; then
 
6175
  ac_cv_file_src_slicing=yes
 
6176
else
 
6177
  ac_cv_file_src_slicing=no
 
6178
fi
 
6179
fi
 
6180
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_slicing" >&5
 
6181
echo "${ECHO_T}$ac_cv_file_src_slicing" >&6; }
 
6182
if test $ac_cv_file_src_slicing = yes; then
 
6183
  plugin_present=yes
 
6184
else
 
6185
  plugin_present=no;default=no
 
6186
fi
 
6187
 
 
6188
FORCE=no
 
6189
 
 
6190
# Check whether --enable-PLUGIN_NAME was given.
 
6191
if test "${enable_slicing+set}" = set; then
 
6192
  enableval=$enable_slicing; ENABLE=$enableval;
 
6193
  FORCE=$enableval
 
6194
else
 
6195
  ENABLE=$default
 
6196
 
 
6197
fi
 
6198
 
 
6199
# Test to change for static plugin, dynamic option
 
6200
#default_dyn=no
 
6201
#define([PLUGIN_HELP_DYN],
 
6202
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
6203
#                     [PLUGIN_MSG (default: static)])
 
6204
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
6205
#AC_ARG_ENABLE(
 
6206
# [PLUGIN_NAME_DYN],
 
6207
#  PLUGIN_HELP_DYN,
 
6208
#  ENABLE=$enableval;
 
6209
#  FORCE=$enableval
 
6210
#  ENABLE=$default_dyn
 
6211
#)
 
6212
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6213
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6214
then
 
6215
{ { echo "$as_me:$LINENO: error: slicing is not available" >&5
 
6216
echo "$as_me: error: slicing is not available" >&2;}
 
6217
   { (exit 1); exit 1; }; }
 
6218
fi
 
6219
up=`upper slicing`
 
6220
eval FORCE_$up=\$FORCE
 
6221
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6222
eval ENABLE_$up=\$ENABLE
 
6223
 
 
6224
echo "slicing... $ENABLE"
 
6225
 
 
6226
 
 
6227
# spare code
 
6228
############
 
6229
 
 
6230
 
 
6231
 
 
6232
 
 
6233
 
 
6234
 
 
6235
default=yes
 
6236
{ echo "$as_me:$LINENO: checking for src/sparecode" >&5
 
6237
echo $ECHO_N "checking for src/sparecode... $ECHO_C" >&6; }
 
6238
if test "${ac_cv_file_src_sparecode+set}" = set; then
 
6239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6240
else
 
6241
  test "$cross_compiling" = yes &&
 
6242
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
6243
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
6244
   { (exit 1); exit 1; }; }
 
6245
if test -r "src/sparecode"; then
 
6246
  ac_cv_file_src_sparecode=yes
 
6247
else
 
6248
  ac_cv_file_src_sparecode=no
 
6249
fi
 
6250
fi
 
6251
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_sparecode" >&5
 
6252
echo "${ECHO_T}$ac_cv_file_src_sparecode" >&6; }
 
6253
if test $ac_cv_file_src_sparecode = yes; then
 
6254
  plugin_present=yes
 
6255
else
 
6256
  plugin_present=no;default=no
 
6257
fi
 
6258
 
 
6259
FORCE=no
 
6260
 
 
6261
# Check whether --enable-PLUGIN_NAME was given.
 
6262
if test "${enable_sparecode+set}" = set; then
 
6263
  enableval=$enable_sparecode; ENABLE=$enableval;
 
6264
  FORCE=$enableval
 
6265
else
 
6266
  ENABLE=$default
 
6267
 
 
6268
fi
 
6269
 
 
6270
# Test to change for static plugin, dynamic option
 
6271
#default_dyn=no
 
6272
#define([PLUGIN_HELP_DYN],
 
6273
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
6274
#                     [PLUGIN_MSG (default: static)])
 
6275
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
6276
#AC_ARG_ENABLE(
 
6277
# [PLUGIN_NAME_DYN],
 
6278
#  PLUGIN_HELP_DYN,
 
6279
#  ENABLE=$enableval;
 
6280
#  FORCE=$enableval
 
6281
#  ENABLE=$default_dyn
 
6282
#)
 
6283
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6284
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6285
then
 
6286
{ { echo "$as_me:$LINENO: error: sparecode is not available" >&5
 
6287
echo "$as_me: error: sparecode is not available" >&2;}
 
6288
   { (exit 1); exit 1; }; }
 
6289
fi
 
6290
up=`upper sparecode`
 
6291
eval FORCE_$up=\$FORCE
 
6292
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6293
eval ENABLE_$up=\$ENABLE
 
6294
 
 
6295
echo "sparecode... $ENABLE"
 
6296
 
 
6297
 
 
6298
# users
 
6299
#######
 
6300
 
 
6301
 
 
6302
 
 
6303
 
 
6304
 
 
6305
 
 
6306
default=yes
 
6307
{ echo "$as_me:$LINENO: checking for src/users" >&5
 
6308
echo $ECHO_N "checking for src/users... $ECHO_C" >&6; }
 
6309
if test "${ac_cv_file_src_users+set}" = set; then
 
6310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6311
else
 
6312
  test "$cross_compiling" = yes &&
 
6313
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
6314
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
6315
   { (exit 1); exit 1; }; }
 
6316
if test -r "src/users"; then
 
6317
  ac_cv_file_src_users=yes
 
6318
else
 
6319
  ac_cv_file_src_users=no
 
6320
fi
 
6321
fi
 
6322
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_users" >&5
 
6323
echo "${ECHO_T}$ac_cv_file_src_users" >&6; }
 
6324
if test $ac_cv_file_src_users = yes; then
 
6325
  plugin_present=yes
 
6326
else
 
6327
  plugin_present=no;default=no
 
6328
fi
 
6329
 
 
6330
FORCE=no
 
6331
 
 
6332
# Check whether --enable-PLUGIN_NAME was given.
 
6333
if test "${enable_users+set}" = set; then
 
6334
  enableval=$enable_users; ENABLE=$enableval;
 
6335
  FORCE=$enableval
 
6336
else
 
6337
  ENABLE=$default
 
6338
 
 
6339
fi
 
6340
 
 
6341
# Test to change for static plugin, dynamic option
 
6342
#default_dyn=no
 
6343
#define([PLUGIN_HELP_DYN],
 
6344
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
6345
#                     [PLUGIN_MSG (default: static)])
 
6346
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
6347
#AC_ARG_ENABLE(
 
6348
# [PLUGIN_NAME_DYN],
 
6349
#  PLUGIN_HELP_DYN,
 
6350
#  ENABLE=$enableval;
 
6351
#  FORCE=$enableval
 
6352
#  ENABLE=$default_dyn
 
6353
#)
 
6354
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6355
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6356
then
 
6357
{ { echo "$as_me:$LINENO: error: users is not available" >&5
 
6358
echo "$as_me: error: users is not available" >&2;}
 
6359
   { (exit 1); exit 1; }; }
 
6360
fi
 
6361
up=`upper users`
 
6362
eval FORCE_$up=\$FORCE
 
6363
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6364
eval ENABLE_$up=\$ENABLE
 
6365
 
 
6366
echo "users... $ENABLE"
 
6367
 
 
6368
 
 
6369
# value
 
6370
#######
 
6371
 
 
6372
 
 
6373
 
 
6374
 
 
6375
 
 
6376
 
 
6377
default=yes
 
6378
{ echo "$as_me:$LINENO: checking for src/value" >&5
 
6379
echo $ECHO_N "checking for src/value... $ECHO_C" >&6; }
 
6380
if test "${ac_cv_file_src_value+set}" = set; then
 
6381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6382
else
 
6383
  test "$cross_compiling" = yes &&
 
6384
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
6385
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
6386
   { (exit 1); exit 1; }; }
 
6387
if test -r "src/value"; then
 
6388
  ac_cv_file_src_value=yes
 
6389
else
 
6390
  ac_cv_file_src_value=no
 
6391
fi
 
6392
fi
 
6393
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_value" >&5
 
6394
echo "${ECHO_T}$ac_cv_file_src_value" >&6; }
 
6395
if test $ac_cv_file_src_value = yes; then
 
6396
  plugin_present=yes
 
6397
else
 
6398
  plugin_present=no;default=no
 
6399
fi
 
6400
 
 
6401
FORCE=no
 
6402
 
 
6403
# Check whether --enable-PLUGIN_NAME was given.
 
6404
if test "${enable_value+set}" = set; then
 
6405
  enableval=$enable_value; ENABLE=$enableval;
 
6406
  FORCE=$enableval
 
6407
else
 
6408
  ENABLE=$default
 
6409
 
 
6410
fi
 
6411
 
 
6412
# Test to change for static plugin, dynamic option
 
6413
#default_dyn=no
 
6414
#define([PLUGIN_HELP_DYN],
 
6415
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
6416
#                     [PLUGIN_MSG (default: static)])
 
6417
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
6418
#AC_ARG_ENABLE(
 
6419
# [PLUGIN_NAME_DYN],
 
6420
#  PLUGIN_HELP_DYN,
 
6421
#  ENABLE=$enableval;
 
6422
#  FORCE=$enableval
 
6423
#  ENABLE=$default_dyn
 
6424
#)
 
6425
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6426
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6427
then
 
6428
{ { echo "$as_me:$LINENO: error: value is not available" >&5
 
6429
echo "$as_me: error: value is not available" >&2;}
 
6430
   { (exit 1); exit 1; }; }
 
6431
fi
 
6432
up=`upper value`
 
6433
eval FORCE_$up=\$FORCE
 
6434
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6435
eval ENABLE_$up=\$ENABLE
 
6436
 
 
6437
echo "value... $ENABLE"
 
6438
 
 
6439
 
 
6440
# wp
 
6441
####
 
6442
 
 
6443
 
 
6444
 
 
6445
 
 
6446
 
 
6447
 
 
6448
default=yes
 
6449
{ echo "$as_me:$LINENO: checking for src/wp" >&5
 
6450
echo $ECHO_N "checking for src/wp... $ECHO_C" >&6; }
 
6451
if test "${ac_cv_file_src_wp+set}" = set; then
 
6452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6453
else
 
6454
  test "$cross_compiling" = yes &&
 
6455
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
6456
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
6457
   { (exit 1); exit 1; }; }
 
6458
if test -r "src/wp"; then
 
6459
  ac_cv_file_src_wp=yes
 
6460
else
 
6461
  ac_cv_file_src_wp=no
 
6462
fi
 
6463
fi
 
6464
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_wp" >&5
 
6465
echo "${ECHO_T}$ac_cv_file_src_wp" >&6; }
 
6466
if test $ac_cv_file_src_wp = yes; then
 
6467
  plugin_present=yes
 
6468
else
 
6469
  plugin_present=no;default=no
 
6470
fi
 
6471
 
 
6472
FORCE=no
 
6473
 
 
6474
# Check whether --enable-PLUGIN_NAME was given.
 
6475
if test "${enable_wp+set}" = set; then
 
6476
  enableval=$enable_wp; ENABLE=$enableval;
 
6477
  FORCE=$enableval
 
6478
else
 
6479
  ENABLE=$default
 
6480
 
 
6481
fi
 
6482
 
 
6483
# Test to change for static plugin, dynamic option
 
6484
#default_dyn=no
 
6485
#define([PLUGIN_HELP_DYN],
 
6486
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
6487
#                     [PLUGIN_MSG (default: static)])
 
6488
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
6489
#AC_ARG_ENABLE(
 
6490
# [PLUGIN_NAME_DYN],
 
6491
#  PLUGIN_HELP_DYN,
 
6492
#  ENABLE=$enableval;
 
6493
#  FORCE=$enableval
 
6494
#  ENABLE=$default_dyn
 
6495
#)
 
6496
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6497
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6498
then
 
6499
{ { echo "$as_me:$LINENO: error: wp is not available" >&5
 
6500
echo "$as_me: error: wp is not available" >&2;}
 
6501
   { (exit 1); exit 1; }; }
 
6502
fi
 
6503
up=`upper wp`
 
6504
eval FORCE_$up=\$FORCE
 
6505
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6506
eval ENABLE_$up=\$ENABLE
 
6507
 
 
6508
echo "wp... $ENABLE"
 
6509
 
 
6510
 
 
6511
 
 
6512
# Aorai : ltl_to_acsl
 
6513
#####################
 
6514
 
 
6515
 
 
6516
 
 
6517
 
 
6518
 
 
6519
 
 
6520
default=yes
 
6521
{ echo "$as_me:$LINENO: checking for src/ltl_to_acsl" >&5
 
6522
echo $ECHO_N "checking for src/ltl_to_acsl... $ECHO_C" >&6; }
 
6523
if test "${ac_cv_file_src_ltl_to_acsl+set}" = set; then
 
6524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6525
else
 
6526
  test "$cross_compiling" = yes &&
 
6527
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
6528
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
6529
   { (exit 1); exit 1; }; }
 
6530
if test -r "src/ltl_to_acsl"; then
 
6531
  ac_cv_file_src_ltl_to_acsl=yes
 
6532
else
 
6533
  ac_cv_file_src_ltl_to_acsl=no
 
6534
fi
 
6535
fi
 
6536
{ echo "$as_me:$LINENO: result: $ac_cv_file_src_ltl_to_acsl" >&5
 
6537
echo "${ECHO_T}$ac_cv_file_src_ltl_to_acsl" >&6; }
 
6538
if test $ac_cv_file_src_ltl_to_acsl = yes; then
 
6539
  plugin_present=yes
 
6540
else
 
6541
  plugin_present=no;default=no
 
6542
fi
 
6543
 
 
6544
FORCE=no
 
6545
 
 
6546
# Check whether --enable-PLUGIN_NAME was given.
 
6547
if test "${enable_ltl_to_acsl+set}" = set; then
 
6548
  enableval=$enable_ltl_to_acsl; ENABLE=$enableval;
 
6549
  FORCE=$enableval
 
6550
else
 
6551
  ENABLE=$default
 
6552
 
 
6553
fi
 
6554
 
 
6555
# Test to change for static plugin, dynamic option
 
6556
#default_dyn=no
 
6557
#define([PLUGIN_HELP_DYN],
 
6558
#       AC_HELP_STRING([--enable-PLUGIN_NAME-dynamic],
 
6559
#                     [PLUGIN_MSG (default: static)])
 
6560
#define([PLUGIN_NAME_DYN],[PLUGIN_NAME]-dynamic)
 
6561
#AC_ARG_ENABLE(
 
6562
# [PLUGIN_NAME_DYN],
 
6563
#  PLUGIN_HELP_DYN,
 
6564
#  ENABLE=$enableval;
 
6565
#  FORCE=$enableval
 
6566
#  ENABLE=$default_dyn
 
6567
#)
 
6568
#eval ENABLE_DYNAMIC_$up=\$ENABLE
 
6569
if test "$plugin_present" == "no" -a "$FORCE" == "yes"; \
 
6570
then
 
6571
{ { echo "$as_me:$LINENO: error: ltl_to_acsl is not available" >&5
 
6572
echo "$as_me: error: ltl_to_acsl is not available" >&2;}
 
6573
   { (exit 1); exit 1; }; }
 
6574
fi
 
6575
up=`upper ltl_to_acsl`
 
6576
eval FORCE_$up=\$FORCE
 
6577
PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_$up
 
6578
eval ENABLE_$up=\$ENABLE
 
6579
 
 
6580
echo "ltl_to_acsl... $ENABLE"
 
6581
 
 
6582
#if test "$ENABLE_LTL_TO_ACSL" == "yes"; then
 
6583
#   REQUIRE_LTLTOBA=${REQUIRE_LTLTOBA}" ltl_to_acsl"
 
6584
#fi
 
6585
 
 
6586
 
 
6587
 
 
6588
#####################################################
 
6589
# Check for tools/libraries requirements of plugins #
 
6590
#####################################################
 
6591
 
 
6592
new_section "configure tools and libraries used by some plugins"
 
6593
 
 
6594
# 1st param: uppercase name of the library
 
6595
# 2nd param: file which must exist. This parameter can be a list of files.
 
6596
# In this case, they will be tried in turn until one of them exists. The
 
6597
# name of the file found will be put in the variable SELECTED_$1
 
6598
# 3d  param: warning to display if problem
 
6599
 
 
6600
 
 
6601
# 1st param: uppercase name of the program
 
6602
# 2nd param: program which must exist. See comment on configure_library()
 
6603
# on how to deal with multiple choices for a given program.
 
6604
# 3d  param: warning to display if problem
 
6605
 
 
6606
 
 
6607
# elsa
 
6608
######
 
6609
 
 
6610
 
 
6611
 
 
6612
 
 
6613
 
 
6614
 
 
6615
 
 
6616
 
 
6617
 
 
6618
  if test -n "$REQUIRE_ELSA" -o -n "$USE_ELSA"; then
 
6619
    HAS_ELSA=no
 
6620
    if test "$HAS_ELSA" != "yes"; then
 
6621
          { echo "$as_me:$LINENO: checking for cxx_elsa" >&5
 
6622
echo $ECHO_N "checking for cxx_elsa... $ECHO_C" >&6; }
 
6623
if test "${ac_cv_file_cxx_elsa+set}" = set; then
 
6624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6625
else
 
6626
  test "$cross_compiling" = yes &&
 
6627
  { { echo "$as_me:$LINENO: error: cannot check for cxx_elsa existence when cross compiling" >&5
 
6628
echo "$as_me: error: cannot check for cxx_elsa existence when cross compiling" >&2;}
 
6629
   { (exit 1); exit 1; }; }
 
6630
if test -r "cxx_elsa"; then
 
6631
  ac_cv_file_cxx_elsa=yes
 
6632
else
 
6633
  ac_cv_file_cxx_elsa=no
 
6634
fi
 
6635
fi
 
6636
{ echo "$as_me:$LINENO: result: $ac_cv_file_cxx_elsa" >&5
 
6637
echo "${ECHO_T}$ac_cv_file_cxx_elsa" >&6; }
 
6638
if test $ac_cv_file_cxx_elsa = yes; then
 
6639
  HAS_ELSA=yes
 
6640
else
 
6641
  HAS_ELSA=no
 
6642
fi
 
6643
 
 
6644
          if test "$HAS_ELSA" == "yes"; then SELECTED_ELSA=cxx_elsa
 
6645
          fi
 
6646
       fi
 
6647
 
 
6648
    if test "$HAS_ELSA" == "no"; then
 
6649
      { echo "$as_me:$LINENO: WARNING:
 
6650
  sources of cxx_elsa are not present in this directory.
 
6651
  Please check them out from the cvs repository." >&5
 
6652
echo "$as_me: WARNING:
 
6653
  sources of cxx_elsa are not present in this directory.
 
6654
  Please check them out from the cvs repository." >&2;}
 
6655
      if test "$REQUIRE_ELSA" != ""; then
 
6656
        echo "plugins disabled:
 
6657
 $REQUIRE_ELSA"
 
6658
        for p in $REQUIRE_ELSA; do
 
6659
          fp=FORCE_`upper "$p"`
 
6660
          if eval test "\$$fp" == "yes"; then
 
6661
            { { echo "$as_me:$LINENO: error: $p requested but cxx_elsa missing." >&5
 
6662
echo "$as_me: error: $p requested but cxx_elsa missing." >&2;}
 
6663
   { (exit 1); exit 1; }; }
 
6664
          fi
 
6665
          ep=ENABLE_`upper "$p"`
 
6666
          eval $ep="no\ \(see\ warning\ about\ cxx_elsa\)"
 
6667
        done
 
6668
      fi
 
6669
      if test "$USE_ELSA" != ""; then
 
6670
        echo "plugins not fully functional:
 
6671
 $USE_ELSA"
 
6672
        for p in $USE_ELSA; do
 
6673
          ep=ENABLE_`upper "$p"`
 
6674
          eval eep="\$$ep"
 
6675
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
6676
            eval $ep="partial\ \(see\ warning\ about\ cxx_elsa\)"
 
6677
          fi
 
6678
        done
 
6679
      fi
 
6680
      echo
 
6681
    fi
 
6682
  fi
 
6683
 
 
6684
 
 
6685
 
 
6686
 
 
6687
 
 
6688
 
 
6689
 
 
6690
 
 
6691
 
 
6692
REQUIRE_CCPARSE=
 
6693
USE_CCPARSE=
 
6694
HAS_CCPARSE=
 
6695
if test "$has" == "yes"; then
 
6696
  USE_CCPARSE="$REQUIRE_ELSA$USE_ELSA"
 
6697
fi
 
6698
 
 
6699
 
 
6700
 
 
6701
 
 
6702
 
 
6703
 
 
6704
 
 
6705
 
 
6706
 
 
6707
 
 
6708
  if test -n "$REQUIRE_CCPARSE" -o -n "$USE_CCPARSE"; then
 
6709
    HAS_CCPARSE=no
 
6710
    if test "$HAS_CCPARSE" != "yes"; then
 
6711
          { echo "$as_me:$LINENO: checking for cxx_elsa/elsa-2006.06.11/elsa/ccparse" >&5
 
6712
echo $ECHO_N "checking for cxx_elsa/elsa-2006.06.11/elsa/ccparse... $ECHO_C" >&6; }
 
6713
if test "${ac_cv_file_cxx_elsa_elsa_2006_06_11_elsa_ccparse+set}" = set; then
 
6714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6715
else
 
6716
  test "$cross_compiling" = yes &&
 
6717
  { { echo "$as_me:$LINENO: error: cannot check for cxx_elsa/elsa-2006.06.11/elsa/ccparse existence when cross compiling" >&5
 
6718
echo "$as_me: error: cannot check for cxx_elsa/elsa-2006.06.11/elsa/ccparse existence when cross compiling" >&2;}
 
6719
   { (exit 1); exit 1; }; }
 
6720
if test -r "cxx_elsa/elsa-2006.06.11/elsa/ccparse"; then
 
6721
  ac_cv_file_cxx_elsa_elsa_2006_06_11_elsa_ccparse=yes
 
6722
else
 
6723
  ac_cv_file_cxx_elsa_elsa_2006_06_11_elsa_ccparse=no
 
6724
fi
 
6725
fi
 
6726
{ echo "$as_me:$LINENO: result: $ac_cv_file_cxx_elsa_elsa_2006_06_11_elsa_ccparse" >&5
 
6727
echo "${ECHO_T}$ac_cv_file_cxx_elsa_elsa_2006_06_11_elsa_ccparse" >&6; }
 
6728
if test $ac_cv_file_cxx_elsa_elsa_2006_06_11_elsa_ccparse = yes; then
 
6729
  HAS_CCPARSE=yes
 
6730
else
 
6731
  HAS_CCPARSE=no
 
6732
fi
 
6733
 
 
6734
          if test "$HAS_CCPARSE" == "yes"; then SELECTED_CCPARSE=cxx_elsa/elsa-2006.06.11/elsa/ccparse
 
6735
          fi
 
6736
       fi
 
6737
 
 
6738
    if test "$HAS_CCPARSE" == "no"; then
 
6739
      { echo "$as_me:$LINENO: WARNING: elsa seems to be uncompiled. Please run 'make elsa'." >&5
 
6740
echo "$as_me: WARNING: elsa seems to be uncompiled. Please run 'make elsa'." >&2;}
 
6741
      if test "$REQUIRE_CCPARSE" != ""; then
 
6742
        echo "plugins disabled:
 
6743
 $REQUIRE_CCPARSE"
 
6744
        for p in $REQUIRE_CCPARSE; do
 
6745
          fp=FORCE_`upper "$p"`
 
6746
          if eval test "\$$fp" == "yes"; then
 
6747
            { { echo "$as_me:$LINENO: error: $p requested but cxx_elsa/elsa-2006.06.11/elsa/ccparse missing." >&5
 
6748
echo "$as_me: error: $p requested but cxx_elsa/elsa-2006.06.11/elsa/ccparse missing." >&2;}
 
6749
   { (exit 1); exit 1; }; }
 
6750
          fi
 
6751
          ep=ENABLE_`upper "$p"`
 
6752
          eval $ep="no\ \(see\ warning\ about\ cxx_elsa/elsa-2006.06.11/elsa/ccparse\)"
 
6753
        done
 
6754
      fi
 
6755
      if test "$USE_CCPARSE" != ""; then
 
6756
        echo "plugins not fully functional:
 
6757
 $USE_CCPARSE"
 
6758
        for p in $USE_CCPARSE; do
 
6759
          ep=ENABLE_`upper "$p"`
 
6760
          eval eep="\$$ep"
 
6761
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
6762
            eval $ep="partial\ \(see\ warning\ about\ cxx_elsa/elsa-2006.06.11/elsa/ccparse\)"
 
6763
          fi
 
6764
        done
 
6765
      fi
 
6766
      echo
 
6767
    fi
 
6768
  fi
 
6769
 
 
6770
 
 
6771
 
 
6772
 
 
6773
 
 
6774
 
 
6775
 
 
6776
 
 
6777
 
 
6778
# lablglade
 
6779
###########
 
6780
 
 
6781
 
 
6782
 
 
6783
 
 
6784
 
 
6785
 
 
6786
 
 
6787
 
 
6788
  if test -n "$REQUIRE_LABLGLADECC" -o -n "$USE_LABLGLADECC"; then
 
6789
    for FILE_CCPARSE in lablgladecc2; do
 
6790
     HAS_LABLGLADECC=
 
6791
    # Extract the first word of "$FILE_CCPARSE", so it can be a program name with args.
 
6792
set dummy $FILE_CCPARSE; ac_word=$2
 
6793
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6795
if test "${ac_cv_prog_HAS_LABLGLADECC+set}" = set; then
 
6796
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6797
else
 
6798
  if test -n "$HAS_LABLGLADECC"; then
 
6799
  ac_cv_prog_HAS_LABLGLADECC="$HAS_LABLGLADECC" # Let the user override the test.
 
6800
else
 
6801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6802
for as_dir in $PATH
 
6803
do
 
6804
  IFS=$as_save_IFS
 
6805
  test -z "$as_dir" && as_dir=.
 
6806
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6807
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6808
    ac_cv_prog_HAS_LABLGLADECC="yes"
 
6809
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6810
    break 2
 
6811
  fi
 
6812
done
 
6813
done
 
6814
IFS=$as_save_IFS
 
6815
 
 
6816
  test -z "$ac_cv_prog_HAS_LABLGLADECC" && ac_cv_prog_HAS_LABLGLADECC="no"
 
6817
fi
 
6818
fi
 
6819
HAS_LABLGLADECC=$ac_cv_prog_HAS_LABLGLADECC
 
6820
if test -n "$HAS_LABLGLADECC"; then
 
6821
  { echo "$as_me:$LINENO: result: $HAS_LABLGLADECC" >&5
 
6822
echo "${ECHO_T}$HAS_LABLGLADECC" >&6; }
 
6823
else
 
6824
  { echo "$as_me:$LINENO: result: no" >&5
 
6825
echo "${ECHO_T}no" >&6; }
 
6826
fi
 
6827
 
 
6828
 
 
6829
      if test "$HAS_LABLGLADECC" == "yes"; then SELECTED_VAR=$FILE_CCPARSE break; fi
 
6830
      done
 
6831
    if test "$HAS_LABLGLADECC" == "no"; then
 
6832
      { echo "$as_me:$LINENO: WARNING: lablgladecc2 not found." >&5
 
6833
echo "$as_me: WARNING: lablgladecc2 not found." >&2;}
 
6834
      if test "$REQUIRE_LABLGLADECC" != ""; then
 
6835
        echo "plugins disabled:
 
6836
 $REQUIRE_LABLGLADECC"
 
6837
        for p in $REQUIRE_LABLGLADECC; do
 
6838
          fp=FORCE_`upper "$p"`
 
6839
          if eval test "\$$fp" == "yes"; then
 
6840
            { { echo "$as_me:$LINENO: error: $p requested but lablgladecc2 missing." >&5
 
6841
echo "$as_me: error: $p requested but lablgladecc2 missing." >&2;}
 
6842
   { (exit 1); exit 1; }; }
 
6843
          fi
 
6844
          ep=ENABLE_`upper "$p"`
 
6845
          eval $ep="no\ \(see\ warning\ about\ lablgladecc2\)"
 
6846
        done
 
6847
      fi
 
6848
      if test "$USE_LABLGLADECC" != ""; then
 
6849
        echo "plugins not fully functional:
 
6850
 $USE_LABLGLADECC"
 
6851
        for p in $USE_LABLGLADECC; do
 
6852
          ep=ENABLE_`upper "$p"`
 
6853
          eval eep="\$$ep"
 
6854
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
6855
            eval $ep="partial\ \(see\ warning\ about\ lablgladecc2\)"
 
6856
          fi
 
6857
        done
 
6858
      fi
 
6859
      echo
 
6860
    else
 
6861
        LABLGLADECC=lablgladecc2
 
6862
    fi
 
6863
  fi
 
6864
 
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
# camlp4o
 
6873
###########
 
6874
 
 
6875
 
 
6876
 
 
6877
 
 
6878
 
 
6879
 
 
6880
 
 
6881
 
 
6882
  if test -n "$REQUIRE_CAMLP4O" -o -n "$USE_CAMLP4O"; then
 
6883
    for FILE_CCPARSE in camlp4o; do
 
6884
     HAS_CAMLP4O=
 
6885
    # Extract the first word of "$FILE_CCPARSE", so it can be a program name with args.
 
6886
set dummy $FILE_CCPARSE; ac_word=$2
 
6887
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6889
if test "${ac_cv_prog_HAS_CAMLP4O+set}" = set; then
 
6890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6891
else
 
6892
  if test -n "$HAS_CAMLP4O"; then
 
6893
  ac_cv_prog_HAS_CAMLP4O="$HAS_CAMLP4O" # Let the user override the test.
 
6894
else
 
6895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6896
for as_dir in $PATH
 
6897
do
 
6898
  IFS=$as_save_IFS
 
6899
  test -z "$as_dir" && as_dir=.
 
6900
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6901
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6902
    ac_cv_prog_HAS_CAMLP4O="yes"
 
6903
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6904
    break 2
 
6905
  fi
 
6906
done
 
6907
done
 
6908
IFS=$as_save_IFS
 
6909
 
 
6910
  test -z "$ac_cv_prog_HAS_CAMLP4O" && ac_cv_prog_HAS_CAMLP4O="no"
 
6911
fi
 
6912
fi
 
6913
HAS_CAMLP4O=$ac_cv_prog_HAS_CAMLP4O
 
6914
if test -n "$HAS_CAMLP4O"; then
 
6915
  { echo "$as_me:$LINENO: result: $HAS_CAMLP4O" >&5
 
6916
echo "${ECHO_T}$HAS_CAMLP4O" >&6; }
 
6917
else
 
6918
  { echo "$as_me:$LINENO: result: no" >&5
 
6919
echo "${ECHO_T}no" >&6; }
 
6920
fi
 
6921
 
 
6922
 
 
6923
      if test "$HAS_CAMLP4O" == "yes"; then SELECTED_VAR=$FILE_CCPARSE break; fi
 
6924
      done
 
6925
    if test "$HAS_CAMLP4O" == "no"; then
 
6926
      { echo "$as_me:$LINENO: WARNING: camlp4o not found." >&5
 
6927
echo "$as_me: WARNING: camlp4o not found." >&2;}
 
6928
      if test "$REQUIRE_CAMLP4O" != ""; then
 
6929
        echo "plugins disabled:
 
6930
 $REQUIRE_CAMLP4O"
 
6931
        for p in $REQUIRE_CAMLP4O; do
 
6932
          fp=FORCE_`upper "$p"`
 
6933
          if eval test "\$$fp" == "yes"; then
 
6934
            { { echo "$as_me:$LINENO: error: $p requested but camlp4o missing." >&5
 
6935
echo "$as_me: error: $p requested but camlp4o missing." >&2;}
 
6936
   { (exit 1); exit 1; }; }
 
6937
          fi
 
6938
          ep=ENABLE_`upper "$p"`
 
6939
          eval $ep="no\ \(see\ warning\ about\ camlp4o\)"
 
6940
        done
 
6941
      fi
 
6942
      if test "$USE_CAMLP4O" != ""; then
 
6943
        echo "plugins not fully functional:
 
6944
 $USE_CAMLP4O"
 
6945
        for p in $USE_CAMLP4O; do
 
6946
          ep=ENABLE_`upper "$p"`
 
6947
          eval eep="\$$ep"
 
6948
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
6949
            eval $ep="partial\ \(see\ warning\ about\ camlp4o\)"
 
6950
          fi
 
6951
        done
 
6952
      fi
 
6953
      echo
 
6954
    else
 
6955
        CAMLP4O=camlp4o
 
6956
    fi
 
6957
  fi
 
6958
 
 
6959
 
 
6960
 
 
6961
 
 
6962
 
 
6963
 
 
6964
 
 
6965
 
 
6966
# ltl2ba library
 
6967
################
 
6968
 
 
6969
 
 
6970
 
 
6971
 
 
6972
 
 
6973
 
 
6974
 
 
6975
 
 
6976
  if test -n "$REQUIRE_LTLTOBA" -o -n "$USE_LTLTOBA"; then
 
6977
    for FILE_CCPARSE in ltl2ba; do
 
6978
     HAS_LTLTOBA=
 
6979
    # Extract the first word of "$FILE_CCPARSE", so it can be a program name with args.
 
6980
set dummy $FILE_CCPARSE; ac_word=$2
 
6981
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6982
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6983
if test "${ac_cv_prog_HAS_LTLTOBA+set}" = set; then
 
6984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6985
else
 
6986
  if test -n "$HAS_LTLTOBA"; then
 
6987
  ac_cv_prog_HAS_LTLTOBA="$HAS_LTLTOBA" # Let the user override the test.
 
6988
else
 
6989
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6990
for as_dir in $PATH
 
6991
do
 
6992
  IFS=$as_save_IFS
 
6993
  test -z "$as_dir" && as_dir=.
 
6994
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6995
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6996
    ac_cv_prog_HAS_LTLTOBA="yes"
 
6997
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6998
    break 2
 
6999
  fi
 
7000
done
 
7001
done
 
7002
IFS=$as_save_IFS
 
7003
 
 
7004
  test -z "$ac_cv_prog_HAS_LTLTOBA" && ac_cv_prog_HAS_LTLTOBA="no"
 
7005
fi
 
7006
fi
 
7007
HAS_LTLTOBA=$ac_cv_prog_HAS_LTLTOBA
 
7008
if test -n "$HAS_LTLTOBA"; then
 
7009
  { echo "$as_me:$LINENO: result: $HAS_LTLTOBA" >&5
 
7010
echo "${ECHO_T}$HAS_LTLTOBA" >&6; }
 
7011
else
 
7012
  { echo "$as_me:$LINENO: result: no" >&5
 
7013
echo "${ECHO_T}no" >&6; }
 
7014
fi
 
7015
 
 
7016
 
 
7017
      if test "$HAS_LTLTOBA" == "yes"; then SELECTED_VAR=$FILE_CCPARSE break; fi
 
7018
      done
 
7019
    if test "$HAS_LTLTOBA" == "no"; then
 
7020
      { echo "$as_me:$LINENO: WARNING: ltl2ba not found." >&5
 
7021
echo "$as_me: WARNING: ltl2ba not found." >&2;}
 
7022
      if test "$REQUIRE_LTLTOBA" != ""; then
 
7023
        echo "plugins disabled:
 
7024
 $REQUIRE_LTLTOBA"
 
7025
        for p in $REQUIRE_LTLTOBA; do
 
7026
          fp=FORCE_`upper "$p"`
 
7027
          if eval test "\$$fp" == "yes"; then
 
7028
            { { echo "$as_me:$LINENO: error: $p requested but ltl2ba missing." >&5
 
7029
echo "$as_me: error: $p requested but ltl2ba missing." >&2;}
 
7030
   { (exit 1); exit 1; }; }
 
7031
          fi
 
7032
          ep=ENABLE_`upper "$p"`
 
7033
          eval $ep="no\ \(see\ warning\ about\ ltl2ba\)"
 
7034
        done
 
7035
      fi
 
7036
      if test "$USE_LTLTOBA" != ""; then
 
7037
        echo "plugins not fully functional:
 
7038
 $USE_LTLTOBA"
 
7039
        for p in $USE_LTLTOBA; do
 
7040
          ep=ENABLE_`upper "$p"`
 
7041
          eval eep="\$$ep"
 
7042
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
7043
            eval $ep="partial\ \(see\ warning\ about\ ltl2ba\)"
 
7044
          fi
 
7045
        done
 
7046
      fi
 
7047
      echo
 
7048
    else
 
7049
        LTLTOBA=ltl2ba
 
7050
    fi
 
7051
  fi
 
7052
 
 
7053
 
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
 
 
7060
# lablgtk2
 
7061
##########
 
7062
 
 
7063
 
 
7064
 
 
7065
 
 
7066
 
 
7067
 
 
7068
 
 
7069
 
 
7070
 
 
7071
  if test -n "$REQUIRE_LABLGTK" -o -n "$USE_LABLGTK"; then
 
7072
    HAS_LABLGTK=no
 
7073
    if test "$HAS_LABLGTK" != "yes"; then
 
7074
          as_ac_File=`echo "ac_cv_file_$OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX" | $as_tr_sh`
 
7075
{ echo "$as_me:$LINENO: checking for $OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX" >&5
 
7076
echo $ECHO_N "checking for $OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX... $ECHO_C" >&6; }
 
7077
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7078
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7079
else
 
7080
  test "$cross_compiling" = yes &&
 
7081
  { { echo "$as_me:$LINENO: error: cannot check for $OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX existence when cross compiling" >&5
 
7082
echo "$as_me: error: cannot check for $OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX existence when cross compiling" >&2;}
 
7083
   { (exit 1); exit 1; }; }
 
7084
if test -r "$OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX"; then
 
7085
  eval "$as_ac_File=yes"
 
7086
else
 
7087
  eval "$as_ac_File=no"
 
7088
fi
 
7089
fi
 
7090
ac_res=`eval echo '${'$as_ac_File'}'`
 
7091
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7092
echo "${ECHO_T}$ac_res" >&6; }
 
7093
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7094
  HAS_LABLGTK=yes
 
7095
else
 
7096
  HAS_LABLGTK=no
 
7097
fi
 
7098
 
 
7099
          if test "$HAS_LABLGTK" == "yes"; then SELECTED_LABLGTK=$OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX
 
7100
          fi
 
7101
       fi
 
7102
 
 
7103
    if test "$HAS_LABLGTK" == "no"; then
 
7104
      { echo "$as_me:$LINENO: WARNING: lablgtk2/lablgtk.$LIB_SUFFIX not found." >&5
 
7105
echo "$as_me: WARNING: lablgtk2/lablgtk.$LIB_SUFFIX not found." >&2;}
 
7106
      if test "$REQUIRE_LABLGTK" != ""; then
 
7107
        echo "plugins disabled:
 
7108
 $REQUIRE_LABLGTK"
 
7109
        for p in $REQUIRE_LABLGTK; do
 
7110
          fp=FORCE_`upper "$p"`
 
7111
          if eval test "\$$fp" == "yes"; then
 
7112
            { { echo "$as_me:$LINENO: error: $p requested but $OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX missing." >&5
 
7113
echo "$as_me: error: $p requested but $OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX missing." >&2;}
 
7114
   { (exit 1); exit 1; }; }
 
7115
          fi
 
7116
          ep=ENABLE_`upper "$p"`
 
7117
          eval $ep="no\ \(see\ warning\ about\ $OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX\)"
 
7118
        done
 
7119
      fi
 
7120
      if test "$USE_LABLGTK" != ""; then
 
7121
        echo "plugins not fully functional:
 
7122
 $USE_LABLGTK"
 
7123
        for p in $USE_LABLGTK; do
 
7124
          ep=ENABLE_`upper "$p"`
 
7125
          eval eep="\$$ep"
 
7126
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
7127
            eval $ep="partial\ \(see\ warning\ about\ $OCAMLLIB/lablgtk2/lablgtk.$LIB_SUFFIX\)"
 
7128
          fi
 
7129
        done
 
7130
      fi
 
7131
      echo
 
7132
    fi
 
7133
  fi
 
7134
 
 
7135
 
 
7136
 
 
7137
 
 
7138
 
 
7139
 
 
7140
 
 
7141
 
 
7142
 
 
7143
HAS_LABLGTK_CUSTOM_MODEL=no
 
7144
# Check whether --enable-custommodel was given.
 
7145
if test "${enable_custommodel+set}" = set; then
 
7146
  enableval=$enable_custommodel; HAS_LABLGTK_CUSTOM_MODEL=yes
 
7147
else
 
7148
  HAS_LABLGTK_CUSTOM_MODEL=no
 
7149
fi
 
7150
 
 
7151
 
 
7152
# Gtksourceview
 
7153
###############
 
7154
REQUIRE_GTKSOURCEVIEW=
 
7155
USE_GTKSOURCEVIEW=
 
7156
HAS_GTKSOURCEVIEW=
 
7157
FORCE_GTKSOURCEVIEW="yes"
 
7158
 
 
7159
if test "$FORCE_GTKSOURCEVIEW" == "yes"; then
 
7160
  REQUIRE_GTKSOURCEVIEW="$REQUIRE_LABLGTK"
 
7161
  USE_GTKSOURCEVIEW="$USE_LABLGTK"
 
7162
else
 
7163
  if test "$has" == "yes"; then
 
7164
    USE_GTKSOURCEVIEW="$REQUIRE_LABLGTK$USE_LABLGTK"
 
7165
  fi
 
7166
fi
 
7167
 
 
7168
 
 
7169
 
 
7170
 
 
7171
 
 
7172
 
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
  if test -n "$REQUIRE_GTKSOURCEVIEW" -o -n "$USE_GTKSOURCEVIEW"; then
 
7178
    HAS_GTKSOURCEVIEW=no
 
7179
    if test "$HAS_GTKSOURCEVIEW" != "yes"; then
 
7180
          as_ac_File=`echo "ac_cv_file_$OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX" | $as_tr_sh`
 
7181
{ echo "$as_me:$LINENO: checking for $OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX" >&5
 
7182
echo $ECHO_N "checking for $OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX... $ECHO_C" >&6; }
 
7183
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7185
else
 
7186
  test "$cross_compiling" = yes &&
 
7187
  { { echo "$as_me:$LINENO: error: cannot check for $OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX existence when cross compiling" >&5
 
7188
echo "$as_me: error: cannot check for $OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX existence when cross compiling" >&2;}
 
7189
   { (exit 1); exit 1; }; }
 
7190
if test -r "$OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX"; then
 
7191
  eval "$as_ac_File=yes"
 
7192
else
 
7193
  eval "$as_ac_File=no"
 
7194
fi
 
7195
fi
 
7196
ac_res=`eval echo '${'$as_ac_File'}'`
 
7197
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7198
echo "${ECHO_T}$ac_res" >&6; }
 
7199
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7200
  HAS_GTKSOURCEVIEW=yes
 
7201
else
 
7202
  HAS_GTKSOURCEVIEW=no
 
7203
fi
 
7204
 
 
7205
          if test "$HAS_GTKSOURCEVIEW" == "yes"; then SELECTED_GTKSOURCEVIEW=$OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX
 
7206
          fi
 
7207
       fi
 
7208
       if test "$HAS_GTKSOURCEVIEW" != "yes"; then
 
7209
          as_ac_File=`echo "ac_cv_file_$OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX" | $as_tr_sh`
 
7210
{ echo "$as_me:$LINENO: checking for $OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX" >&5
 
7211
echo $ECHO_N "checking for $OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX... $ECHO_C" >&6; }
 
7212
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7214
else
 
7215
  test "$cross_compiling" = yes &&
 
7216
  { { echo "$as_me:$LINENO: error: cannot check for $OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX existence when cross compiling" >&5
 
7217
echo "$as_me: error: cannot check for $OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX existence when cross compiling" >&2;}
 
7218
   { (exit 1); exit 1; }; }
 
7219
if test -r "$OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX"; then
 
7220
  eval "$as_ac_File=yes"
 
7221
else
 
7222
  eval "$as_ac_File=no"
 
7223
fi
 
7224
fi
 
7225
ac_res=`eval echo '${'$as_ac_File'}'`
 
7226
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7227
echo "${ECHO_T}$ac_res" >&6; }
 
7228
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7229
  HAS_GTKSOURCEVIEW=yes
 
7230
else
 
7231
  HAS_GTKSOURCEVIEW=no
 
7232
fi
 
7233
 
 
7234
          if test "$HAS_GTKSOURCEVIEW" == "yes"; then SELECTED_GTKSOURCEVIEW=$OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX
 
7235
          fi
 
7236
       fi
 
7237
 
 
7238
    if test "$HAS_GTKSOURCEVIEW" == "no"; then
 
7239
      { echo "$as_me:$LINENO: WARNING: lablgtksourceview.$LIB_SUFFIX not found" >&5
 
7240
echo "$as_me: WARNING: lablgtksourceview.$LIB_SUFFIX not found" >&2;}
 
7241
      if test "$REQUIRE_GTKSOURCEVIEW" != ""; then
 
7242
        echo "plugins disabled:
 
7243
 $REQUIRE_GTKSOURCEVIEW"
 
7244
        for p in $REQUIRE_GTKSOURCEVIEW; do
 
7245
          fp=FORCE_`upper "$p"`
 
7246
          if eval test "\$$fp" == "yes"; then
 
7247
            { { echo "$as_me:$LINENO: error: $p requested but $OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX" >&5
 
7248
echo "$as_me: error: $p requested but $OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX" >&2;}
 
7249
   { (exit $OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX missing.); exit $OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX missing.; }; }
 
7250
          fi
 
7251
          ep=ENABLE_`upper "$p"`
 
7252
          eval $ep="no\ \(see\ warning\ about\ $OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX,$OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX\)"
 
7253
        done
 
7254
      fi
 
7255
      if test "$USE_GTKSOURCEVIEW" != ""; then
 
7256
        echo "plugins not fully functional:
 
7257
 $USE_GTKSOURCEVIEW"
 
7258
        for p in $USE_GTKSOURCEVIEW; do
 
7259
          ep=ENABLE_`upper "$p"`
 
7260
          eval eep="\$$ep"
 
7261
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
7262
            eval $ep="partial\ \(see\ warning\ about\ $OCAMLLIB/lablgtk2/lablgtksourceview.$LIB_SUFFIX,$OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX\)"
 
7263
          fi
 
7264
        done
 
7265
      fi
 
7266
      echo
 
7267
    fi
 
7268
  fi
 
7269
 
 
7270
 
 
7271
 
 
7272
 
 
7273
 
 
7274
 
 
7275
 
 
7276
 
 
7277
 
 
7278
case $SELECTED_GTKSOURCEVIEW in
 
7279
$OCAMLLIB/lablgtksourceview/lablgtksourceview.$LIB_SUFFIX)
 
7280
  HAS_LEGACY_GTKSOURCEVIEW=yes
 
7281
  ;;
 
7282
esac
 
7283
 
 
7284
# Gnomecanvas
 
7285
#############
 
7286
 
 
7287
 
 
7288
 
 
7289
 
 
7290
 
 
7291
 
 
7292
 
 
7293
 
 
7294
 
 
7295
  if test -n "$REQUIRE_GNOMECANVAS" -o -n "$USE_GNOMECANVAS"; then
 
7296
    HAS_GNOMECANVAS=no
 
7297
    if test "$HAS_GNOMECANVAS" != "yes"; then
 
7298
          as_ac_File=`echo "ac_cv_file_$OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX" | $as_tr_sh`
 
7299
{ echo "$as_me:$LINENO: checking for $OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX" >&5
 
7300
echo $ECHO_N "checking for $OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX... $ECHO_C" >&6; }
 
7301
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7303
else
 
7304
  test "$cross_compiling" = yes &&
 
7305
  { { echo "$as_me:$LINENO: error: cannot check for $OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX existence when cross compiling" >&5
 
7306
echo "$as_me: error: cannot check for $OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX existence when cross compiling" >&2;}
 
7307
   { (exit 1); exit 1; }; }
 
7308
if test -r "$OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX"; then
 
7309
  eval "$as_ac_File=yes"
 
7310
else
 
7311
  eval "$as_ac_File=no"
 
7312
fi
 
7313
fi
 
7314
ac_res=`eval echo '${'$as_ac_File'}'`
 
7315
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7316
echo "${ECHO_T}$ac_res" >&6; }
 
7317
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7318
  HAS_GNOMECANVAS=yes
 
7319
else
 
7320
  HAS_GNOMECANVAS=no
 
7321
fi
 
7322
 
 
7323
          if test "$HAS_GNOMECANVAS" == "yes"; then SELECTED_GNOMECANVAS=$OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX
 
7324
          fi
 
7325
       fi
 
7326
 
 
7327
    if test "$HAS_GNOMECANVAS" == "no"; then
 
7328
      { echo "$as_me:$LINENO: WARNING: lablgnomecanvas.$LIB_SUFFIX not found" >&5
 
7329
echo "$as_me: WARNING: lablgnomecanvas.$LIB_SUFFIX not found" >&2;}
 
7330
      if test "$REQUIRE_GNOMECANVAS" != ""; then
 
7331
        echo "plugins disabled:
 
7332
 $REQUIRE_GNOMECANVAS"
 
7333
        for p in $REQUIRE_GNOMECANVAS; do
 
7334
          fp=FORCE_`upper "$p"`
 
7335
          if eval test "\$$fp" == "yes"; then
 
7336
            { { echo "$as_me:$LINENO: error: $p requested but $OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX missing." >&5
 
7337
echo "$as_me: error: $p requested but $OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX missing." >&2;}
 
7338
   { (exit 1); exit 1; }; }
 
7339
          fi
 
7340
          ep=ENABLE_`upper "$p"`
 
7341
          eval $ep="no\ \(see\ warning\ about\ $OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX\)"
 
7342
        done
 
7343
      fi
 
7344
      if test "$USE_GNOMECANVAS" != ""; then
 
7345
        echo "plugins not fully functional:
 
7346
 $USE_GNOMECANVAS"
 
7347
        for p in $USE_GNOMECANVAS; do
 
7348
          ep=ENABLE_`upper "$p"`
 
7349
          eval eep="\$$ep"
 
7350
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
7351
            eval $ep="partial\ \(see\ warning\ about\ $OCAMLLIB/lablgtk2/lablgnomecanvas.$LIB_SUFFIX\)"
 
7352
          fi
 
7353
        done
 
7354
      fi
 
7355
      echo
 
7356
    fi
 
7357
  fi
 
7358
 
 
7359
 
 
7360
 
 
7361
 
 
7362
 
 
7363
 
 
7364
 
 
7365
 
 
7366
 
 
7367
# why/jc library
 
7368
################
 
7369
 
 
7370
 
 
7371
 
 
7372
# Check whether --with-whydir was given.
 
7373
if test "${with_whydir+set}" = set; then
 
7374
  withval=$with_whydir; WHYDISTRIB=$with_whydir
 
7375
else
 
7376
  WHYDISTRIB=why
 
7377
 
 
7378
fi
 
7379
 
 
7380
 
 
7381
 
 
7382
 
 
7383
 
 
7384
 
 
7385
 
 
7386
 
 
7387
 
 
7388
 
 
7389
 
 
7390
  if test -n "$REQUIRE_WHYJC" -o -n "$USE_WHYJC"; then
 
7391
    HAS_WHYJC=no
 
7392
    if test "$HAS_WHYJC" != "yes"; then
 
7393
          as_ac_File=`echo "ac_cv_file_$WHYDISTRIB/jc" | $as_tr_sh`
 
7394
{ echo "$as_me:$LINENO: checking for $WHYDISTRIB/jc" >&5
 
7395
echo $ECHO_N "checking for $WHYDISTRIB/jc... $ECHO_C" >&6; }
 
7396
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7398
else
 
7399
  test "$cross_compiling" = yes &&
 
7400
  { { echo "$as_me:$LINENO: error: cannot check for $WHYDISTRIB/jc existence when cross compiling" >&5
 
7401
echo "$as_me: error: cannot check for $WHYDISTRIB/jc existence when cross compiling" >&2;}
 
7402
   { (exit 1); exit 1; }; }
 
7403
if test -r "$WHYDISTRIB/jc"; then
 
7404
  eval "$as_ac_File=yes"
 
7405
else
 
7406
  eval "$as_ac_File=no"
 
7407
fi
 
7408
fi
 
7409
ac_res=`eval echo '${'$as_ac_File'}'`
 
7410
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7411
echo "${ECHO_T}$ac_res" >&6; }
 
7412
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7413
  HAS_WHYJC=yes
 
7414
else
 
7415
  HAS_WHYJC=no
 
7416
fi
 
7417
 
 
7418
          if test "$HAS_WHYJC" == "yes"; then SELECTED_WHYJC=$WHYDISTRIB/jc
 
7419
          fi
 
7420
       fi
 
7421
       if test "$HAS_WHYJC" != "yes"; then
 
7422
          as_ac_File=`echo "ac_cv_file_$OCAMLLIB/jessie/jc.$OBJ_SUFFIX" | $as_tr_sh`
 
7423
{ echo "$as_me:$LINENO: checking for $OCAMLLIB/jessie/jc.$OBJ_SUFFIX" >&5
 
7424
echo $ECHO_N "checking for $OCAMLLIB/jessie/jc.$OBJ_SUFFIX... $ECHO_C" >&6; }
 
7425
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7427
else
 
7428
  test "$cross_compiling" = yes &&
 
7429
  { { echo "$as_me:$LINENO: error: cannot check for $OCAMLLIB/jessie/jc.$OBJ_SUFFIX existence when cross compiling" >&5
 
7430
echo "$as_me: error: cannot check for $OCAMLLIB/jessie/jc.$OBJ_SUFFIX existence when cross compiling" >&2;}
 
7431
   { (exit 1); exit 1; }; }
 
7432
if test -r "$OCAMLLIB/jessie/jc.$OBJ_SUFFIX"; then
 
7433
  eval "$as_ac_File=yes"
 
7434
else
 
7435
  eval "$as_ac_File=no"
 
7436
fi
 
7437
fi
 
7438
ac_res=`eval echo '${'$as_ac_File'}'`
 
7439
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7440
echo "${ECHO_T}$ac_res" >&6; }
 
7441
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7442
  HAS_WHYJC=yes
 
7443
else
 
7444
  HAS_WHYJC=no
 
7445
fi
 
7446
 
 
7447
          if test "$HAS_WHYJC" == "yes"; then SELECTED_WHYJC=$OCAMLLIB/jessie/jc.$OBJ_SUFFIX
 
7448
          fi
 
7449
       fi
 
7450
 
 
7451
    if test "$HAS_WHYJC" == "no"; then
 
7452
      { echo "$as_me:$LINENO: WARNING: why not found" >&5
 
7453
echo "$as_me: WARNING: why not found" >&2;}
 
7454
      if test "$REQUIRE_WHYJC" != ""; then
 
7455
        echo "plugins disabled:
 
7456
 $REQUIRE_WHYJC"
 
7457
        for p in $REQUIRE_WHYJC; do
 
7458
          fp=FORCE_`upper "$p"`
 
7459
          if eval test "\$$fp" == "yes"; then
 
7460
            { { echo "$as_me:$LINENO: error: $p requested but $WHYDISTRIB/jc" >&5
 
7461
echo "$as_me: error: $p requested but $WHYDISTRIB/jc" >&2;}
 
7462
   { (exit $OCAMLLIB/jessie/jc.$OBJ_SUFFIX missing.); exit $OCAMLLIB/jessie/jc.$OBJ_SUFFIX missing.; }; }
 
7463
          fi
 
7464
          ep=ENABLE_`upper "$p"`
 
7465
          eval $ep="no\ \(see\ warning\ about\ $WHYDISTRIB/jc,$OCAMLLIB/jessie/jc.$OBJ_SUFFIX\)"
 
7466
        done
 
7467
      fi
 
7468
      if test "$USE_WHYJC" != ""; then
 
7469
        echo "plugins not fully functional:
 
7470
 $USE_WHYJC"
 
7471
        for p in $USE_WHYJC; do
 
7472
          ep=ENABLE_`upper "$p"`
 
7473
          eval eep="\$$ep"
 
7474
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
7475
            eval $ep="partial\ \(see\ warning\ about\ $WHYDISTRIB/jc,$OCAMLLIB/jessie/jc.$OBJ_SUFFIX\)"
 
7476
          fi
 
7477
        done
 
7478
      fi
 
7479
      echo
 
7480
    fi
 
7481
  fi
 
7482
 
 
7483
 
 
7484
 
 
7485
 
 
7486
 
 
7487
 
 
7488
 
 
7489
 
 
7490
 
 
7491
 
 
7492
 
 
7493
 
 
7494
 
 
7495
 
 
7496
 
 
7497
 
 
7498
 
 
7499
 
 
7500
  if test -n "$REQUIRE_APRON" -o -n "$USE_APRON"; then
 
7501
    HAS_APRON=no
 
7502
    if test "$HAS_APRON" != "yes"; then
 
7503
          { echo "$as_me:$LINENO: checking for /usr/local/lib/apron.a" >&5
 
7504
echo $ECHO_N "checking for /usr/local/lib/apron.a... $ECHO_C" >&6; }
 
7505
if test "${ac_cv_file__usr_local_lib_apron_a+set}" = set; then
 
7506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7507
else
 
7508
  test "$cross_compiling" = yes &&
 
7509
  { { echo "$as_me:$LINENO: error: cannot check for /usr/local/lib/apron.a existence when cross compiling" >&5
 
7510
echo "$as_me: error: cannot check for /usr/local/lib/apron.a existence when cross compiling" >&2;}
 
7511
   { (exit 1); exit 1; }; }
 
7512
if test -r "/usr/local/lib/apron.a"; then
 
7513
  ac_cv_file__usr_local_lib_apron_a=yes
 
7514
else
 
7515
  ac_cv_file__usr_local_lib_apron_a=no
 
7516
fi
 
7517
fi
 
7518
{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_apron_a" >&5
 
7519
echo "${ECHO_T}$ac_cv_file__usr_local_lib_apron_a" >&6; }
 
7520
if test $ac_cv_file__usr_local_lib_apron_a = yes; then
 
7521
  HAS_APRON=yes
 
7522
else
 
7523
  HAS_APRON=no
 
7524
fi
 
7525
 
 
7526
          if test "$HAS_APRON" == "yes"; then SELECTED_APRON=/usr/local/lib/apron.a
 
7527
          fi
 
7528
       fi
 
7529
       if test "$HAS_APRON" != "yes"; then
 
7530
          { echo "$as_me:$LINENO: checking for /usr/lib/apron.a" >&5
 
7531
echo $ECHO_N "checking for /usr/lib/apron.a... $ECHO_C" >&6; }
 
7532
if test "${ac_cv_file__usr_lib_apron_a+set}" = set; then
 
7533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7534
else
 
7535
  test "$cross_compiling" = yes &&
 
7536
  { { echo "$as_me:$LINENO: error: cannot check for /usr/lib/apron.a existence when cross compiling" >&5
 
7537
echo "$as_me: error: cannot check for /usr/lib/apron.a existence when cross compiling" >&2;}
 
7538
   { (exit 1); exit 1; }; }
 
7539
if test -r "/usr/lib/apron.a"; then
 
7540
  ac_cv_file__usr_lib_apron_a=yes
 
7541
else
 
7542
  ac_cv_file__usr_lib_apron_a=no
 
7543
fi
 
7544
fi
 
7545
{ echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_apron_a" >&5
 
7546
echo "${ECHO_T}$ac_cv_file__usr_lib_apron_a" >&6; }
 
7547
if test $ac_cv_file__usr_lib_apron_a = yes; then
 
7548
  HAS_APRON=yes
 
7549
else
 
7550
  HAS_APRON=no
 
7551
fi
 
7552
 
 
7553
          if test "$HAS_APRON" == "yes"; then SELECTED_APRON=/usr/lib/apron.a
 
7554
          fi
 
7555
       fi
 
7556
 
 
7557
    if test "$HAS_APRON" == "no"; then
 
7558
      { echo "$as_me:$LINENO: WARNING: apron not found" >&5
 
7559
echo "$as_me: WARNING: apron not found" >&2;}
 
7560
      if test "$REQUIRE_APRON" != ""; then
 
7561
        echo "plugins disabled:
 
7562
 $REQUIRE_APRON"
 
7563
        for p in $REQUIRE_APRON; do
 
7564
          fp=FORCE_`upper "$p"`
 
7565
          if eval test "\$$fp" == "yes"; then
 
7566
            { { echo "$as_me:$LINENO: error: $p requested but /usr/local/lib/apron.a" >&5
 
7567
echo "$as_me: error: $p requested but /usr/local/lib/apron.a" >&2;}
 
7568
   { (exit /usr/lib/apron.a missing.); exit /usr/lib/apron.a missing.; }; }
 
7569
          fi
 
7570
          ep=ENABLE_`upper "$p"`
 
7571
          eval $ep="no\ \(see\ warning\ about\ /usr/local/lib/apron.a,/usr/lib/apron.a\)"
 
7572
        done
 
7573
      fi
 
7574
      if test "$USE_APRON" != ""; then
 
7575
        echo "plugins not fully functional:
 
7576
 $USE_APRON"
 
7577
        for p in $USE_APRON; do
 
7578
          ep=ENABLE_`upper "$p"`
 
7579
          eval eep="\$$ep"
 
7580
          if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
 
7581
            eval $ep="partial\ \(see\ warning\ about\ /usr/local/lib/apron.a,/usr/lib/apron.a\)"
 
7582
          fi
 
7583
        done
 
7584
      fi
 
7585
      echo
 
7586
    fi
 
7587
  fi
 
7588
 
 
7589
 
 
7590
 
 
7591
 
 
7592
 
 
7593
 
 
7594
 
 
7595
 
 
7596
 
 
7597
if test "$HAS_WHYJC" == "yes" -a "$REQUIRE_WHYJC" != ""; then
 
7598
  case $SELECTED_WHYJC in
 
7599
  $WHYDISTRIB/jc)
 
7600
    JCCMO=$WHYDISTRIB/jc/jc.cmo
 
7601
    JCCMX=$WHYDISTRIB/jc/jc.cmx
 
7602
    JESSIE_LOCAL=yes
 
7603
    JESSIE_INCLUDES="-I $WHYDISTRIB/src -I $WHYDISTRIB/jc"
 
7604
    (cd $WHYDISTRIB && ./configure --prefix=$prefix --datarootdir=$datarootdir \
 
7605
      --exec_prefix=$exec_prefix --bindir=$bindir --libdir=$datadir/frama-c \
 
7606
      --mandir=$mandir --enable-apron=$HAS_APRON) || ENABLE_JESSIE=no
 
7607
    if test "$ENABLE_JESSIE" == "no"; then
 
7608
       INFO_JESSIE=" (configuration of Why failed)"
 
7609
    fi
 
7610
    ;;
 
7611
  $OCAMLLIB/jessie)
 
7612
    JCCMO=$SELECTED_WHYJC/jc.cmo
 
7613
    JCCMX=$SELECTED_WHYJC/jc.cmx
 
7614
    JESSIE_LOCAL=no
 
7615
    JESSIE_INCLUDES="-I $SELECTED_WHYJC"
 
7616
    ;;
 
7617
  *)
 
7618
    { echo "$as_me:$LINENO: WARNING: Unexpected location for why tool: $SELECTED_WHYJC" >&5
 
7619
echo "$as_me: WARNING: Unexpected location for why tool: $SELECTED_WHYJC" >&2;}
 
7620
    JESSIE_LOCAL=no
 
7621
    ;;
 
7622
  esac
 
7623
else
 
7624
  JESSIE_LOCAL=no
 
7625
fi
 
7626
 
 
7627
#######################
 
7628
# Plugin dependencies #
 
7629
#######################
 
7630
 
 
7631
new_section "checking for plugin dependencies"
 
7632
 
 
7633
# What are the dependencies?
 
7634
############################
 
7635
# Each plugin has to update these lists
 
7636
 
 
7637
REQUIRE_FROM="value inout pdg slicing"
 
7638
 
 
7639
#USE_GUI="occurrence security slicing value impact"
 
7640
 
 
7641
REQUIRE_PDG="slicing security"
 
7642
 
 
7643
REQUIRE_SECURITY="impact"
 
7644
 
 
7645
USE_SLICING="security miel"
 
7646
 
 
7647
REQUIRE_VALUE="constant_propagation from inout occurrence pdg scope security \
 
7648
  slicing sparecode users semantic_callgraph miel"
 
7649
 
 
7650
### Now compute the dependencies
 
7651
# a bit ugly... Probably optimizable
 
7652
 
 
7653
# First, initialize some variables
 
7654
for fp in ${PLUGINS_FORCE_LIST}; do
 
7655
  if test "$fp" != "FORCE_GTKSOURCEVIEW"; then
 
7656
    plugin=`echo $fp | sed -e "s/FORCE_\(.*\)/\1/" `
 
7657
    TODOLIST=$TODOLIST" "$plugin
 
7658
    eval MARK_$plugin=
 
7659
    eval REMEMBER_$plugin=
 
7660
  fi
 
7661
done
 
7662
 
 
7663
# Implementation of an ordering $1 < $2: "" < yes < partial < no
 
7664
lt_mark () {
 
7665
  first=`echo "$1" | sed -e 's/ .*//' `
 
7666
  second=`echo "$2" | sed -e 's/ .*//' `
 
7667
  case $first in
 
7668
    "") echo "true";;
 
7669
    "yes"*)
 
7670
      case $second in
 
7671
        "yes") echo "";;
 
7672
        "partial" | "no") echo "true";;
 
7673
      esac;;
 
7674
    "partial"*)
 
7675
      case $second in
 
7676
        "yes" | "partial") echo "";;
 
7677
        "no") echo "true";;
 
7678
      esac;;
 
7679
    "no"*) echo "";;
 
7680
  esac
 
7681
}
 
7682
 
 
7683
# Check and propagate marks to requires and users.
 
7684
# $1: parent plugin
 
7685
# $2: mark to propagate to requires
 
7686
# $3: mark to propagate to users
 
7687
check_and_propagate () {
 
7688
  # for each requiers
 
7689
  r=REQUIRE_$1
 
7690
  eval require="\$$r"
 
7691
  for p in $require; do
 
7692
    up=`upper "$p"`
 
7693
    m=MARK_"$up"
 
7694
    eval mark="\$$m"
 
7695
    if test `lt_mark "$mark" "$2" `; then
 
7696
      # update marks
 
7697
      eval MARK_$up=\"$2\";
 
7698
      TODOLIST=$TODOLIST" "$p
 
7699
      # display a warning or an error if required
 
7700
      short_mark=`echo $2 | sed -e 's/ .*//'`
 
7701
      lp=`lower $p`
 
7702
      reason=`echo $2 | sed -e 's/no (\(.*\))/\1/' `
 
7703
      if test "$short_mark" == "no"; then
 
7704
        fp=FORCE_"$up"
 
7705
        if eval test "\$$fp" == "yes"; then
 
7706
          { { echo "$as_me:$LINENO: error: $lp requested but $reason." >&5
 
7707
echo "$as_me: error: $lp requested but $reason." >&2;}
 
7708
   { (exit 1); exit 1; }; }
 
7709
        else
 
7710
          { echo "$as_me:$LINENO: WARNING: $lp disable because $reason." >&5
 
7711
echo "$as_me: WARNING: $lp disable because $reason." >&2;}
 
7712
        fi
 
7713
      else
 
7714
        if test "$short_mark" == "partial"; then
 
7715
          reason=`echo $2 | sed -e 's/partial (\(.*\))/\1/' `
 
7716
          { echo "$as_me:$LINENO: WARNING: $lp only partially enable because $reason." >&5
 
7717
echo "$as_me: WARNING: $lp only partially enable because $reason." >&2;}
 
7718
        fi
 
7719
      fi
 
7720
    fi
 
7721
  done
 
7722
  # for each users
 
7723
  u=USE_$1
 
7724
  eval use="\$$u"
 
7725
  for p in $use; do
 
7726
    up=`upper "$p"`
 
7727
    m=MARK_$up
 
7728
    eval mark="\$$m"
 
7729
    if test `lt_mark "$mark" "$3" `; then
 
7730
      # update marks
 
7731
      eval MARK_$up=\"$3\";
 
7732
      TODOLIST=$TODOLIST" "$p
 
7733
      # display a warning if required
 
7734
      lp=`lower $p`
 
7735
      reason=`echo $3 | sed -e 's/partial (\(.*\))/\1/' `
 
7736
      if test "$reason" != "$3"; then
 
7737
        { echo "$as_me:$LINENO: WARNING: $lp only partially enable because $reason." >&5
 
7738
echo "$as_me: WARNING: $lp only partially enable because $reason." >&2;}
 
7739
      fi
 
7740
    fi
 
7741
  done
 
7742
}
 
7743
 
 
7744
# Recursively check the plugin dependencies using the plugin dependency graph
 
7745
compute_dependency () {
 
7746
  plugin=`echo $TODOLIST | sed -e 's/ .*//' `
 
7747
  TODOLIST=`echo $TODOLIST | sed -e 's/[^ ]* *\(.*\)/\1/' `
 
7748
 
 
7749
  lplugin=`lower "$plugin"`
 
7750
  uplugin=`upper "$plugin"`
 
7751
  # new mark to consider
 
7752
  m=MARK_$uplugin
 
7753
  eval mark="\$$m"
 
7754
  # old mark to consider
 
7755
  r=REMEMBER_$uplugin
 
7756
  eval remember="\$$r"
 
7757
  # the exact mark (final result),
 
7758
  # also the old mark if plugin already visited
 
7759
  e=ENABLE_$uplugin
 
7760
  eval enable="\$$e"
 
7761
 
 
7762
#  echo "plugin $lplugin (mark=$mark, remember=$remember, enable=$enable)"
 
7763
  if test `lt_mark "$remember" "$mark"`; then
 
7764
    # visit the current plugin:
 
7765
    # mark <- max(mark, enable)
 
7766
    case `echo "$mark" | sed -e 's/ .*//' ` in
 
7767
      "" | "yes")
 
7768
       if test -n "$enable"; then mark="$enable"; else mark="yes"; fi;;
 
7769
      "partial") if test "$enable" == "no"; then mark="no"; fi;;
 
7770
      "no")      ;;
 
7771
    esac
 
7772
    # update plugin attributes with the new mark
 
7773
#    echo "update attributes with $mark"
 
7774
    eval $m=\"$mark\"
 
7775
    eval $e=\"$mark\"
 
7776
    enable="$mark"
 
7777
    eval $r=\"$mark\"
 
7778
    # compute and propagate a new mark to requieres and users
 
7779
    case `echo "$enable" | sed -e 's/ .*//' ` in
 
7780
      "")        echo "problem?"; exit 3;;
 
7781
      "yes")     check_and_propagate $uplugin "yes" "yes";;
 
7782
      "partial")
 
7783
        check_and_propagate \
 
7784
          "$uplugin" \
 
7785
          "partial ($lplugin partially enable)" \
 
7786
          "yes";;
 
7787
      "no")
 
7788
        check_and_propagate \
 
7789
          "$uplugin" \
 
7790
          "no ($lplugin not enable)" \
 
7791
          "partial ($lplugin not enable)";;
 
7792
    esac
 
7793
  fi
 
7794
 
 
7795
  # recursively consider the next plugins
 
7796
  if test -n "$TODOLIST"; then
 
7797
    compute_dependency;
 
7798
  fi
 
7799
}
 
7800
 
 
7801
# main call
 
7802
compute_dependency
 
7803
 
 
7804
# Compute INFO_* and exported ENABLE_* from previously computed ENABLE_*
 
7805
for fp in ${PLUGINS_FORCE_LIST}; do
 
7806
  if test "$fp" != "FORCE_GTKSOURCEVIEW"; then
 
7807
    plugin=`echo $fp | sed -e "s/FORCE_\(.*\)/\1/" `
 
7808
    ep=ENABLE_$plugin
 
7809
    eval v=\$$ep
 
7810
    eval ep_v=`echo $v | sed -e 's/ .*//' `
 
7811
    eval ENABLE_$plugin=$ep_v
 
7812
    reason=`echo $v | sed -e 's/[a-z]*\( .*\)/\1/' `
 
7813
    if test "$reason" != "$ep_v"; then
 
7814
      eval INFO_$plugin="\$reason"
 
7815
    fi
 
7816
  fi
 
7817
done
 
7818
 
 
7819
############################
 
7820
# Substitutions to perform #
 
7821
############################
 
7822
 
 
7823
 
 
7824
 
 
7825
 
 
7826
 
 
7827
 
 
7828
 
 
7829
 
 
7830
 
 
7831
 
 
7832
 
 
7833
 
 
7834
 
 
7835
 
 
7836
 
 
7837
 
 
7838
 
 
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
 
 
7844
 
 
7845
 
 
7846
 
 
7847
 
 
7848
 
 
7849
 
 
7850
 
 
7851
 
 
7852
 
 
7853
 
 
7854
 
 
7855
 
 
7856
 
 
7857
 
 
7858
 
 
7859
 
 
7860
 
 
7861
 
 
7862
 
 
7863
 
 
7864
 
 
7865
 
 
7866
 
 
7867
 
 
7868
 
 
7869
 
 
7870
 
 
7871
 
 
7872
 
 
7873
 
 
7874
 
 
7875
 
 
7876
 
 
7877
 
 
7878
 
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
 
 
7884
################################################
 
7885
# Finally create the Makefile from Makefile.in #
 
7886
################################################
 
7887
 
 
7888
new_section "creating makefile"
 
7889
 
 
7890
ac_config_files="$ac_config_files cil/ocamlutil/perfcount.c Makefile"
 
7891
 
 
7892
cat >confcache <<\_ACEOF
 
7893
# This file is a shell script that caches the results of configure
 
7894
# tests run on this system so they can be shared between configure
 
7895
# scripts and configure runs, see configure's option --config-cache.
 
7896
# It is not useful on other systems.  If it contains results you don't
 
7897
# want to keep, you may remove or edit it.
 
7898
#
 
7899
# config.status only pays attention to the cache file if you give it
 
7900
# the --recheck option to rerun configure.
 
7901
#
 
7902
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
7903
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
7904
# following values.
 
7905
 
 
7906
_ACEOF
 
7907
 
 
7908
# The following way of writing the cache mishandles newlines in values,
 
7909
# but we know of no workaround that is simple, portable, and efficient.
 
7910
# So, we kill variables containing newlines.
 
7911
# Ultrix sh set writes to stderr and can't be redirected directly,
 
7912
# and sets the high bit in the cache file unless we assign to the vars.
 
7913
(
 
7914
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
7915
    eval ac_val=\$$ac_var
 
7916
    case $ac_val in #(
 
7917
    *${as_nl}*)
 
7918
      case $ac_var in #(
 
7919
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
7920
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
7921
      esac
 
7922
      case $ac_var in #(
 
7923
      _ | IFS | as_nl) ;; #(
 
7924
      *) $as_unset $ac_var ;;
 
7925
      esac ;;
 
7926
    esac
 
7927
  done
 
7928
 
 
7929
  (set) 2>&1 |
 
7930
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
7931
    *${as_nl}ac_space=\ *)
 
7932
      # `set' does not quote correctly, so add quotes (double-quote
 
7933
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
7934
      sed -n \
 
7935
        "s/'/'\\\\''/g;
 
7936
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
7937
      ;; #(
 
7938
    *)
 
7939
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
7940
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
7941
      ;;
 
7942
    esac |
 
7943
    sort
 
7944
) |
 
7945
  sed '
 
7946
     /^ac_cv_env_/b end
 
7947
     t clear
 
7948
     :clear
 
7949
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
7950
     t end
 
7951
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
7952
     :end' >>confcache
 
7953
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
7954
  if test -w "$cache_file"; then
 
7955
    test "x$cache_file" != "x/dev/null" &&
 
7956
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
7957
echo "$as_me: updating cache $cache_file" >&6;}
 
7958
    cat confcache >$cache_file
 
7959
  else
 
7960
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
7961
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
7962
  fi
 
7963
fi
 
7964
rm -f confcache
 
7965
 
 
7966
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
7967
# Let make expand exec_prefix.
 
7968
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
7969
 
 
7970
DEFS=-DHAVE_CONFIG_H
 
7971
 
 
7972
ac_libobjs=
 
7973
ac_ltlibobjs=
 
7974
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
7975
  # 1. Remove the extension, and $U if already installed.
 
7976
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
7977
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
7978
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
7979
  #    will be set to the directory where LIBOBJS objects are built.
 
7980
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
7981
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
7982
done
 
7983
LIBOBJS=$ac_libobjs
 
7984
 
 
7985
LTLIBOBJS=$ac_ltlibobjs
 
7986
 
 
7987
 
 
7988
 
 
7989
: ${CONFIG_STATUS=./config.status}
 
7990
ac_clean_files_save=$ac_clean_files
 
7991
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
7992
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
7993
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
7994
cat >$CONFIG_STATUS <<_ACEOF
 
7995
#! $SHELL
 
7996
# Generated by $as_me.
 
7997
# Run this file to recreate the current configuration.
 
7998
# Compiler output produced by configure, useful for debugging
 
7999
# configure, is in config.log if it exists.
 
8000
 
 
8001
debug=false
 
8002
ac_cs_recheck=false
 
8003
ac_cs_silent=false
 
8004
SHELL=\${CONFIG_SHELL-$SHELL}
 
8005
_ACEOF
 
8006
 
 
8007
cat >>$CONFIG_STATUS <<\_ACEOF
 
8008
## --------------------- ##
 
8009
## M4sh Initialization.  ##
 
8010
## --------------------- ##
 
8011
 
 
8012
# Be more Bourne compatible
 
8013
DUALCASE=1; export DUALCASE # for MKS sh
 
8014
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
8015
  emulate sh
 
8016
  NULLCMD=:
 
8017
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
8018
  # is contrary to our usage.  Disable this feature.
 
8019
  alias -g '${1+"$@"}'='"$@"'
 
8020
  setopt NO_GLOB_SUBST
 
8021
else
 
8022
  case `(set -o) 2>/dev/null` in
 
8023
  *posix*) set -o posix ;;
 
8024
esac
 
8025
 
 
8026
fi
 
8027
 
 
8028
 
 
8029
 
 
8030
 
 
8031
# PATH needs CR
 
8032
# Avoid depending upon Character Ranges.
 
8033
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
8034
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
8035
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
8036
as_cr_digits='0123456789'
 
8037
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
8038
 
 
8039
# The user is always right.
 
8040
if test "${PATH_SEPARATOR+set}" != set; then
 
8041
  echo "#! /bin/sh" >conf$$.sh
 
8042
  echo  "exit 0"   >>conf$$.sh
 
8043
  chmod +x conf$$.sh
 
8044
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
8045
    PATH_SEPARATOR=';'
 
8046
  else
 
8047
    PATH_SEPARATOR=:
 
8048
  fi
 
8049
  rm -f conf$$.sh
 
8050
fi
 
8051
 
 
8052
# Support unset when possible.
 
8053
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8054
  as_unset=unset
 
8055
else
 
8056
  as_unset=false
 
8057
fi
 
8058
 
 
8059
 
 
8060
# IFS
 
8061
# We need space, tab and new line, in precisely that order.  Quoting is
 
8062
# there to prevent editors from complaining about space-tab.
 
8063
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
8064
# splitting by setting IFS to empty value.)
 
8065
as_nl='
 
8066
'
 
8067
IFS=" ""        $as_nl"
 
8068
 
 
8069
# Find who we are.  Look in the path if we contain no directory separator.
 
8070
case $0 in
 
8071
  *[\\/]* ) as_myself=$0 ;;
 
8072
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8073
for as_dir in $PATH
 
8074
do
 
8075
  IFS=$as_save_IFS
 
8076
  test -z "$as_dir" && as_dir=.
 
8077
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
8078
done
 
8079
IFS=$as_save_IFS
 
8080
 
 
8081
     ;;
 
8082
esac
 
8083
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
8084
# in which case we are not to be found in the path.
 
8085
if test "x$as_myself" = x; then
 
8086
  as_myself=$0
 
8087
fi
 
8088
if test ! -f "$as_myself"; then
 
8089
  echo "$as_myself: error: cannot find myself; rerun with an absolute FILE_APRON name" >&2
 
8090
  { (exit 1); exit 1; }
 
8091
fi
 
8092
 
 
8093
# Work around bugs in pre-3.0 UWIN ksh.
 
8094
for as_var in ENV MAIL MAILPATH
 
8095
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
8096
done
 
8097
PS1='$ '
 
8098
PS2='> '
 
8099
PS4='+ '
 
8100
 
 
8101
# NLS nuisances.
 
8102
for as_var in \
 
8103
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
8104
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
8105
  LC_TELEPHONE LC_TIME
 
8106
do
 
8107
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
8108
    eval $as_var=C; export $as_var
 
8109
  else
 
8110
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
8111
  fi
 
8112
done
 
8113
 
 
8114
# Required to use basename.
 
8115
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
8116
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
8117
  as_expr=expr
 
8118
else
 
8119
  as_expr=false
 
8120
fi
 
8121
 
 
8122
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
8123
  as_basename=basename
 
8124
else
 
8125
  as_basename=false
 
8126
fi
 
8127
 
 
8128
 
 
8129
# Name of the executable.
 
8130
as_me=`$as_basename -- "$0" ||
 
8131
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
8132
         X"$0" : 'X\(//\)$' \| \
 
8133
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
8134
echo X/"$0" |
 
8135
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
8136
            s//\1/
 
8137
            q
 
8138
          }
 
8139
          /^X\/\(\/\/\)$/{
 
8140
            s//\1/
 
8141
            q
 
8142
          }
 
8143
          /^X\/\(\/\).*/{
 
8144
            s//\1/
 
8145
            q
 
8146
          }
 
8147
          s/.*/./; q'`
 
8148
 
 
8149
# CDPATH.
 
8150
$as_unset CDPATH
 
8151
 
 
8152
 
 
8153
 
 
8154
  as_lineno_1=$LINENO
 
8155
  as_lineno_2=$LINENO
 
8156
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8157
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
8158
 
 
8159
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
8160
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
8161
  # line-number line after each line using $LINENO; the second 'sed'
 
8162
  # does the real work.  The second script uses 'N' to pair each
 
8163
  # line-number line with the line containing $LINENO, and appends
 
8164
  # trailing '-' during substitution so that $LINENO is not a special
 
8165
  # case at line end.
 
8166
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
8167
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
8168
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
8169
  sed -n '
 
8170
    p
 
8171
    /[$]LINENO/=
 
8172
  ' <$as_myself |
 
8173
    sed '
 
8174
      s/[$]LINENO.*/&-/
 
8175
      t lineno
 
8176
      b
 
8177
      :lineno
 
8178
      N
 
8179
      :loop
 
8180
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
8181
      t loop
 
8182
      s/-\n.*//
 
8183
    ' >$as_me.lineno &&
 
8184
  chmod +x "$as_me.lineno" ||
 
8185
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
8186
   { (exit 1); exit 1; }; }
 
8187
 
 
8188
  # Don't try to exec as it changes $[0], causing all sort of problems
 
8189
  # (the dirname of $[0] is not the place where we might find the
 
8190
  # original and so on.  Autoconf is especially sensitive to this).
 
8191
  . "./$as_me.lineno"
 
8192
  # Exit status is that of the last command.
 
8193
  exit
 
8194
}
 
8195
 
 
8196
 
 
8197
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
8198
  as_dirname=dirname
 
8199
else
 
8200
  as_dirname=false
 
8201
fi
 
8202
 
 
8203
ECHO_C= ECHO_N= ECHO_T=
 
8204
case `echo -n x` in
 
8205
-n*)
 
8206
  case `echo 'x\c'` in
 
8207
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
8208
  *)   ECHO_C='\c';;
 
8209
  esac;;
 
8210
*)
 
8211
  ECHO_N='-n';;
 
8212
esac
 
8213
 
 
8214
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
8215
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
8216
  as_expr=expr
 
8217
else
 
8218
  as_expr=false
 
8219
fi
 
8220
 
 
8221
rm -f conf$$ conf$$.exe conf$$.FILE_APRON
 
8222
if test -d conf$$.dir; then
 
8223
  rm -f conf$$.dir/conf$$.FILE_APRON
 
8224
else
 
8225
  rm -f conf$$.dir
 
8226
  mkdir conf$$.dir
 
8227
fi
 
8228
echo >conf$$.FILE_APRON
 
8229
if ln -s conf$$.FILE_APRON conf$$ 2>/dev/null; then
 
8230
  as_ln_s='ln -s'
 
8231
  # ... but there are two gotchas:
 
8232
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
8233
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
8234
  # In both cases, we have to default to `cp -p'.
 
8235
  ln -s conf$$.FILE_APRON conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
8236
    as_ln_s='cp -p'
 
8237
elif ln conf$$.FILE_APRON conf$$ 2>/dev/null; then
 
8238
  as_ln_s=ln
 
8239
else
 
8240
  as_ln_s='cp -p'
 
8241
fi
 
8242
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.FILE_APRON conf$$.FILE_APRON
 
8243
rmdir conf$$.dir 2>/dev/null
 
8244
 
 
8245
if mkdir -p . 2>/dev/null; then
 
8246
  as_mkdir_p=:
 
8247
else
 
8248
  test -d ./-p && rmdir ./-p
 
8249
  as_mkdir_p=false
 
8250
fi
 
8251
 
 
8252
if test -x / >/dev/null 2>&1; then
 
8253
  as_test_x='test -x'
 
8254
else
 
8255
  if ls -dL / >/dev/null 2>&1; then
 
8256
    as_ls_L_option=L
 
8257
  else
 
8258
    as_ls_L_option=
 
8259
  fi
 
8260
  as_test_x='
 
8261
    eval sh -c '\''
 
8262
      if test -d "$1"; then
 
8263
        test -d "$1/.";
 
8264
      else
 
8265
        case $1 in
 
8266
        -*)set "./$1";;
 
8267
        esac;
 
8268
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
8269
        ???[sx]*):;;*)false;;esac;fi
 
8270
    '\'' sh
 
8271
  '
 
8272
fi
 
8273
as_executable_p=$as_test_x
 
8274
 
 
8275
# Sed expression to map a string onto a valid CPP name.
 
8276
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
8277
 
 
8278
# Sed expression to map a string onto a valid variable name.
 
8279
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
8280
 
 
8281
 
 
8282
exec 6>&1
 
8283
 
 
8284
# Save the log message, to keep $[0] and so on meaningful, and to
 
8285
# report actual input values of CONFIG_FILES etc. instead of their
 
8286
# values after options handling.
 
8287
ac_log="
 
8288
This FILE_APRON was extended by $as_me, which was
 
8289
generated by GNU Autoconf 2.61.  Invocation command line was
 
8290
 
 
8291
  CONFIG_FILES    = $CONFIG_FILES
 
8292
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
8293
  CONFIG_LINKS    = $CONFIG_LINKS
 
8294
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
8295
  $ $0 $@
 
8296
 
 
8297
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
8298
"
 
8299
 
 
8300
_ACEOF
 
8301
 
 
8302
cat >>$CONFIG_STATUS <<_ACEOF
 
8303
# Files that config.status was made for.
 
8304
config_files="$ac_config_files"
 
8305
config_headers="$ac_config_headers"
 
8306
 
 
8307
_ACEOF
 
8308
 
 
8309
cat >>$CONFIG_STATUS <<\_ACEOF
 
8310
ac_cs_usage="\
 
8311
\`$as_me' instantiates files from templates according to the
 
8312
current configuration.
 
8313
 
 
8314
Usage: $0 [OPTIONS] [FILE]...
 
8315
 
 
8316
  -h, --help       print this help, then exit
 
8317
  -V, --version    print version number and configuration settings, then exit
 
8318
  -q, --quiet      do not print progress messages
 
8319
  -d, --debug      don't remove temporary files
 
8320
      --recheck    update $as_me by reconfiguring in the same conditions
 
8321
  --file=FILE[:TEMPLATE]
 
8322
                   instantiate the configuration file FILE
 
8323
  --header=FILE[:TEMPLATE]
 
8324
                   instantiate the configuration header FILE
 
8325
 
 
8326
Configuration files:
 
8327
$config_files
 
8328
 
 
8329
Configuration headers:
 
8330
$config_headers
 
8331
 
 
8332
Report bugs to <bug-autoconf@gnu.org>."
 
8333
 
 
8334
_ACEOF
 
8335
cat >>$CONFIG_STATUS <<_ACEOF
 
8336
ac_cs_version="\\
 
8337
config.status
 
8338
configured by $0, generated by GNU Autoconf 2.61,
 
8339
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
8340
 
 
8341
Copyright (C) 2006 Free Software Foundation, Inc.
 
8342
This config.status script is free software; the Free Software Foundation
 
8343
gives unlimited permission to copy, distribute and modify it."
 
8344
 
 
8345
ac_pwd='$ac_pwd'
 
8346
srcdir='$srcdir'
 
8347
_ACEOF
 
8348
 
 
8349
cat >>$CONFIG_STATUS <<\_ACEOF
 
8350
# If no file are specified by the user, then we need to provide default
 
8351
# value.  By we need to know if files were specified by the user.
 
8352
ac_need_defaults=:
 
8353
while test $# != 0
 
8354
do
 
8355
  case $1 in
 
8356
  --*=*)
 
8357
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
8358
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
8359
    ac_shift=:
 
8360
    ;;
 
8361
  *)
 
8362
    ac_option=$1
 
8363
    ac_optarg=$2
 
8364
    ac_shift=shift
 
8365
    ;;
 
8366
  esac
 
8367
 
 
8368
  case $ac_option in
 
8369
  # Handling of the options.
 
8370
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
8371
    ac_cs_recheck=: ;;
 
8372
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
8373
    echo "$ac_cs_version"; exit ;;
 
8374
  --debug | --debu | --deb | --de | --d | -d )
 
8375
    debug=: ;;
 
8376
  --FILE_APRON | --fil | --fi | --f )
 
8377
    $ac_shift
 
8378
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
8379
    ac_need_defaults=false;;
 
8380
  --header | --heade | --head | --hea )
 
8381
    $ac_shift
 
8382
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
8383
    ac_need_defaults=false;;
 
8384
  --he | --h)
 
8385
    # Conflict between --help and --header
 
8386
    { echo "$as_me: error: ambiguous option: $1
 
8387
Try \`$0 --help' for more information." >&2
 
8388
   { (exit 1); exit 1; }; };;
 
8389
  --help | --hel | -h )
 
8390
    echo "$ac_cs_usage"; exit ;;
 
8391
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
8392
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
8393
    ac_cs_silent=: ;;
 
8394
 
 
8395
  # This is an error.
 
8396
  -*) { echo "$as_me: error: unrecognized option: $1
 
8397
Try \`$0 --help' for more information." >&2
 
8398
   { (exit 1); exit 1; }; } ;;
 
8399
 
 
8400
  *) ac_config_targets="$ac_config_targets $1"
 
8401
     ac_need_defaults=false ;;
 
8402
 
 
8403
  esac
 
8404
  shift
 
8405
done
 
8406
 
 
8407
ac_configure_extra_args=
 
8408
 
 
8409
if $ac_cs_silent; then
 
8410
  exec 6>/dev/null
 
8411
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
8412
fi
 
8413
 
 
8414
_ACEOF
 
8415
cat >>$CONFIG_STATUS <<_ACEOF
 
8416
if \$ac_cs_recheck; then
 
8417
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
8418
  CONFIG_SHELL=$SHELL
 
8419
  export CONFIG_SHELL
 
8420
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
8421
fi
 
8422
 
 
8423
_ACEOF
 
8424
cat >>$CONFIG_STATUS <<\_ACEOF
 
8425
exec 5>>config.log
 
8426
{
 
8427
  echo
 
8428
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
8429
## Running $as_me. ##
 
8430
_ASBOX
 
8431
  echo "$ac_log"
 
8432
} >&5
 
8433
 
 
8434
_ACEOF
 
8435
cat >>$CONFIG_STATUS <<_ACEOF
 
8436
_ACEOF
 
8437
 
 
8438
cat >>$CONFIG_STATUS <<\_ACEOF
 
8439
 
 
8440
# Handling of arguments.
 
8441
for ac_config_target in $ac_config_targets
 
8442
do
 
8443
  case $ac_config_target in
 
8444
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
8445
    "cil/ocamlutil/perfcount.c") CONFIG_FILES="$CONFIG_FILES cil/ocamlutil/perfcount.c" ;;
 
8446
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
8447
 
 
8448
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
8449
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
8450
   { (exit 1); exit 1; }; };;
 
8451
  esac
 
8452
done
 
8453
 
 
8454
 
 
8455
# If the user did not use the arguments to specify the items to instantiate,
 
8456
# then the envvar interface is used.  Set only those that are not.
 
8457
# We use the long form for the default assignment because of an extremely
 
8458
# bizarre bug on SunOS 4.1.3.
 
8459
if $ac_need_defaults; then
 
8460
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
8461
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
8462
fi
 
8463
 
 
8464
# Have a temporary directory for convenience.  Make it in the build tree
 
8465
# simply because there is no reason against having it here, and in addition,
 
8466
# creating and moving files from /tmp can sometimes cause problems.
 
8467
# Hook for its removal unless debugging.
 
8468
# Note that there is a small window in which the directory will not be cleaned:
 
8469
# after its creation but before its name has been assigned to `$tmp'.
 
8470
$debug ||
 
8471
{
 
8472
  tmp=
 
8473
  trap 'exit_status=$?
 
8474
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
8475
' 0
 
8476
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
8477
}
 
8478
# Create a (secure) tmp directory for tmp files.
 
8479
 
 
8480
{
 
8481
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
8482
  test -n "$tmp" && test -d "$tmp"
 
8483
}  ||
 
8484
{
 
8485
  tmp=./conf$$-$RANDOM
 
8486
  (umask 077 && mkdir "$tmp")
 
8487
} ||
 
8488
{
 
8489
   echo "$me: cannot create a temporary directory in ." >&2
 
8490
   { (exit 1); exit 1; }
 
8491
}
 
8492
 
 
8493
#
 
8494
# Set up the sed scripts for CONFIG_FILES section.
 
8495
#
 
8496
 
 
8497
# No need to generate the scripts if there are no CONFIG_FILES.
 
8498
# This happens for instance when ./config.status config.h
 
8499
if test -n "$CONFIG_FILES"; then
 
8500
 
 
8501
_ACEOF
 
8502
 
 
8503
 
 
8504
 
 
8505
ac_delim='%!_!# '
 
8506
for ac_last_try in false false false false false :; do
 
8507
  cat >conf$$subs.sed <<_ACEOF
 
8508
SHELL!$SHELL$ac_delim
 
8509
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
8510
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
8511
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
8512
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
8513
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
8514
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
8515
exec_prefix!$exec_prefix$ac_delim
 
8516
prefix!$prefix$ac_delim
 
8517
program_transform_name!$program_transform_name$ac_delim
 
8518
bindir!$bindir$ac_delim
 
8519
sbindir!$sbindir$ac_delim
 
8520
libexecdir!$libexecdir$ac_delim
 
8521
datarootdir!$datarootdir$ac_delim
 
8522
datadir!$datadir$ac_delim
 
8523
sysconfdir!$sysconfdir$ac_delim
 
8524
sharedstatedir!$sharedstatedir$ac_delim
 
8525
localstatedir!$localstatedir$ac_delim
 
8526
includedir!$includedir$ac_delim
 
8527
oldincludedir!$oldincludedir$ac_delim
 
8528
docdir!$docdir$ac_delim
 
8529
infodir!$infodir$ac_delim
 
8530
htmldir!$htmldir$ac_delim
 
8531
dvidir!$dvidir$ac_delim
 
8532
pdfdir!$pdfdir$ac_delim
 
8533
psdir!$psdir$ac_delim
 
8534
libdir!$libdir$ac_delim
 
8535
localedir!$localedir$ac_delim
 
8536
mandir!$mandir$ac_delim
 
8537
DEFS!$DEFS$ac_delim
 
8538
ECHO_C!$ECHO_C$ac_delim
 
8539
ECHO_N!$ECHO_N$ac_delim
 
8540
ECHO_T!$ECHO_T$ac_delim
 
8541
LIBS!$LIBS$ac_delim
 
8542
build_alias!$build_alias$ac_delim
 
8543
host_alias!$host_alias$ac_delim
 
8544
target_alias!$target_alias$ac_delim
 
8545
MAKE!$MAKE$ac_delim
 
8546
OCAMLC!$OCAMLC$ac_delim
 
8547
OCAMLOPT!$OCAMLOPT$ac_delim
 
8548
OCAMLCDOTOPT!$OCAMLCDOTOPT$ac_delim
 
8549
OCAMLOPTDOTOPT!$OCAMLOPTDOTOPT$ac_delim
 
8550
OCAMLDEP!$OCAMLDEP$ac_delim
 
8551
OCAMLDEPDOTOPT!$OCAMLDEPDOTOPT$ac_delim
 
8552
OCAMLLEX!$OCAMLLEX$ac_delim
 
8553
OCAMLLEXDOTOPT!$OCAMLLEXDOTOPT$ac_delim
 
8554
OCAMLYACC!$OCAMLYACC$ac_delim
 
8555
OCAMLDOC!$OCAMLDOC$ac_delim
 
8556
OCAMLMKTOP!$OCAMLMKTOP$ac_delim
 
8557
OTAGS!$OTAGS$ac_delim
 
8558
DOT!$DOT$ac_delim
 
8559
CC!$CC$ac_delim
 
8560
CFLAGS!$CFLAGS$ac_delim
 
8561
LDFLAGS!$LDFLAGS$ac_delim
 
8562
CPPFLAGS!$CPPFLAGS$ac_delim
 
8563
ac_ct_CC!$ac_ct_CC$ac_delim
 
8564
EXEEXT!$EXEEXT$ac_delim
 
8565
OBJEXT!$OBJEXT$ac_delim
 
8566
CPP!$CPP$ac_delim
 
8567
GREP!$GREP$ac_delim
 
8568
EGREP!$EGREP$ac_delim
 
8569
HAS_LABLGLADECC!$HAS_LABLGLADECC$ac_delim
 
8570
HAS_CAMLP4O!$HAS_CAMLP4O$ac_delim
 
8571
HAS_LTLTOBA!$HAS_LTLTOBA$ac_delim
 
8572
VERBOSEMAKE!$VERBOSEMAKE$ac_delim
 
8573
OCAMLGRAPH!$OCAMLGRAPH$ac_delim
 
8574
OCAMLGRAPH_LOCAL!$OCAMLGRAPH_LOCAL$ac_delim
 
8575
OCAMLBEST!$OCAMLBEST$ac_delim
 
8576
OCAMLVERSION!$OCAMLVERSION$ac_delim
 
8577
LOWER_THAN_311!$LOWER_THAN_311$ac_delim
 
8578
OCAMLLIB!$OCAMLLIB$ac_delim
 
8579
OCAMLWIN32!$OCAMLWIN32$ac_delim
 
8580
CAMLP4O!$CAMLP4O$ac_delim
 
8581
EXE!$EXE$ac_delim
 
8582
HAVE_STDLIB_H!$HAVE_STDLIB_H$ac_delim
 
8583
HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
 
8584
HAVE_PTRDIFF_H!$HAVE_PTRDIFF_H$ac_delim
 
8585
HAVE_BUILTIN_VA_LIST!$HAVE_BUILTIN_VA_LIST$ac_delim
 
8586
THREAD_IS_KEYWORD!$THREAD_IS_KEYWORD$ac_delim
 
8587
UNDERSCORE_NAME!$UNDERSCORE_NAME$ac_delim
 
8588
HAS_PERFCOUNT!$HAS_PERFCOUNT$ac_delim
 
8589
CYCLES_PER_USEC!$CYCLES_PER_USEC$ac_delim
 
8590
LOCAL_MACHDEP!$LOCAL_MACHDEP$ac_delim
 
8591
HAS_LABLGTK!$HAS_LABLGTK$ac_delim
 
8592
HAS_GTKSOURCEVIEW!$HAS_GTKSOURCEVIEW$ac_delim
 
8593
HAS_LEGACY_GTKSOURCEVIEW!$HAS_LEGACY_GTKSOURCEVIEW$ac_delim
 
8594
HAS_GNOMECANVAS!$HAS_GNOMECANVAS$ac_delim
 
8595
HAS_LABLGTK_CUSTOM_MODEL!$HAS_LABLGTK_CUSTOM_MODEL$ac_delim
 
8596
LABLGLADECC!$LABLGLADECC$ac_delim
 
8597
JCCMO!$JCCMO$ac_delim
 
8598
JCCMX!$JCCMX$ac_delim
 
8599
JESSIE_LOCAL!$JESSIE_LOCAL$ac_delim
 
8600
JESSIE_INCLUDES!$JESSIE_INCLUDES$ac_delim
 
8601
ENABLE_SYNTACTIC_CALLGRAPH!$ENABLE_SYNTACTIC_CALLGRAPH$ac_delim
 
8602
ENABLE_CONSTANT_PROPAGATION!$ENABLE_CONSTANT_PROPAGATION$ac_delim
 
8603
ENABLE_CXX!$ENABLE_CXX$ac_delim
 
8604
ENABLE_FROM!$ENABLE_FROM$ac_delim
 
8605
_ACEOF
 
8606
 
 
8607
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
8608
    break
 
8609
  elif $ac_last_try; then
 
8610
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
8611
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
8612
   { (exit 1); exit 1; }; }
 
8613
  else
 
8614
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
8615
  fi
 
8616
done
 
8617
 
 
8618
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
8619
if test -n "$ac_eof"; then
 
8620
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
8621
  ac_eof=`expr $ac_eof + 1`
 
8622
fi
 
8623
 
 
8624
cat >>$CONFIG_STATUS <<_ACEOF
 
8625
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
8626
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
8627
_ACEOF
 
8628
sed '
 
8629
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
8630
s/^/s,@/; s/!/@,|#_!!_#|/
 
8631
:n
 
8632
t n
 
8633
s/'"$ac_delim"'$/,g/; t
 
8634
s/$/\\/; p
 
8635
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
8636
' >>$CONFIG_STATUS <conf$$subs.sed
 
8637
rm -f conf$$subs.sed
 
8638
cat >>$CONFIG_STATUS <<_ACEOF
 
8639
CEOF$ac_eof
 
8640
_ACEOF
 
8641
 
 
8642
 
 
8643
ac_delim='%!_!# '
 
8644
for ac_last_try in false false false false false :; do
 
8645
  cat >conf$$subs.sed <<_ACEOF
 
8646
ENABLE_GUI!$ENABLE_GUI$ac_delim
 
8647
ENABLE_IMPACT!$ENABLE_IMPACT$ac_delim
 
8648
ENABLE_INOUT!$ENABLE_INOUT$ac_delim
 
8649
ENABLE_JESSIE!$ENABLE_JESSIE$ac_delim
 
8650
ENABLE_JOURNAL_LOADER!$ENABLE_JOURNAL_LOADER$ac_delim
 
8651
WHYDISTRIB!$WHYDISTRIB$ac_delim
 
8652
ENABLE_METRICS!$ENABLE_METRICS$ac_delim
 
8653
ENABLE_MIEL!$ENABLE_MIEL$ac_delim
 
8654
ENABLE_OCCURRENCE!$ENABLE_OCCURRENCE$ac_delim
 
8655
ENABLE_PDG!$ENABLE_PDG$ac_delim
 
8656
ENABLE_POSTDOMINATORS!$ENABLE_POSTDOMINATORS$ac_delim
 
8657
ENABLE_SCOPE!$ENABLE_SCOPE$ac_delim
 
8658
ENABLE_SECURITY!$ENABLE_SECURITY$ac_delim
 
8659
ENABLE_SEMANTIC_CALLGRAPH!$ENABLE_SEMANTIC_CALLGRAPH$ac_delim
 
8660
ENABLE_SLICING!$ENABLE_SLICING$ac_delim
 
8661
ENABLE_SPARECODE!$ENABLE_SPARECODE$ac_delim
 
8662
ENABLE_USERS!$ENABLE_USERS$ac_delim
 
8663
ENABLE_VALUE!$ENABLE_VALUE$ac_delim
 
8664
ENABLE_WP!$ENABLE_WP$ac_delim
 
8665
ENABLE_LTL_TO_ACSL!$ENABLE_LTL_TO_ACSL$ac_delim
 
8666
LIBOBJS!$LIBOBJS$ac_delim
 
8667
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
8668
_ACEOF
 
8669
 
 
8670
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
 
8671
    break
 
8672
  elif $ac_last_try; then
 
8673
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
8674
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
8675
   { (exit 1); exit 1; }; }
 
8676
  else
 
8677
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
8678
  fi
 
8679
done
 
8680
 
 
8681
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
8682
if test -n "$ac_eof"; then
 
8683
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
8684
  ac_eof=`expr $ac_eof + 1`
 
8685
fi
 
8686
 
 
8687
cat >>$CONFIG_STATUS <<_ACEOF
 
8688
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
8689
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
8690
_ACEOF
 
8691
sed '
 
8692
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
8693
s/^/s,@/; s/!/@,|#_!!_#|/
 
8694
:n
 
8695
t n
 
8696
s/'"$ac_delim"'$/,g/; t
 
8697
s/$/\\/; p
 
8698
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
8699
' >>$CONFIG_STATUS <conf$$subs.sed
 
8700
rm -f conf$$subs.sed
 
8701
cat >>$CONFIG_STATUS <<_ACEOF
 
8702
:end
 
8703
s/|#_!!_#|//g
 
8704
CEOF$ac_eof
 
8705
_ACEOF
 
8706
 
 
8707
 
 
8708
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
8709
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
8710
# trailing colons and then remove the whole line if VPATH becomes empty
 
8711
# (actually we leave an empty line to preserve line numbers).
 
8712
if test "x$srcdir" = x.; then
 
8713
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
8714
s/:*\$(srcdir):*/:/
 
8715
s/:*\${srcdir}:*/:/
 
8716
s/:*@srcdir@:*/:/
 
8717
s/^\([^=]*=[     ]*\):*/\1/
 
8718
s/:*$//
 
8719
s/^[^=]*=[       ]*$//
 
8720
}'
 
8721
fi
 
8722
 
 
8723
cat >>$CONFIG_STATUS <<\_ACEOF
 
8724
fi # test -n "$CONFIG_FILES"
 
8725
 
 
8726
 
 
8727
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
 
8728
do
 
8729
  case $ac_tag in
 
8730
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
8731
  esac
 
8732
  case $ac_mode$ac_tag in
 
8733
  :[FHL]*:*);;
 
8734
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
8735
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
8736
   { (exit 1); exit 1; }; };;
 
8737
  :[FH]-) ac_tag=-:-;;
 
8738
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
8739
  esac
 
8740
  ac_save_IFS=$IFS
 
8741
  IFS=:
 
8742
  set x $ac_tag
 
8743
  IFS=$ac_save_IFS
 
8744
  shift
 
8745
  ac_file=$1
 
8746
  shift
 
8747
 
 
8748
  case $ac_mode in
 
8749
  :L) ac_source=$1;;
 
8750
  :[FH])
 
8751
    ac_file_inputs=
 
8752
    for ac_f
 
8753
    do
 
8754
      case $ac_f in
 
8755
      -) ac_f="$tmp/stdin";;
 
8756
      *) # Look for the file first in the build tree, then in the source tree
 
8757
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
8758
         # because $ac_f cannot contain `:'.
 
8759
         test -f "$ac_f" ||
 
8760
           case $ac_f in
 
8761
           [\\/$]*) false;;
 
8762
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
8763
           esac ||
 
8764
           { { echo "$as_me:$LINENO: error: cannot find input FILE_APRON: $ac_f" >&5
 
8765
echo "$as_me: error: cannot find input FILE_APRON: $ac_f" >&2;}
 
8766
   { (exit 1); exit 1; }; };;
 
8767
      esac
 
8768
      ac_file_inputs="$ac_file_inputs $ac_f"
 
8769
    done
 
8770
 
 
8771
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
8772
    # use $as_me), people would be surprised to read:
 
8773
    #    /* config.h.  Generated by config.status.  */
 
8774
    configure_input="Generated from "`IFS=:
 
8775
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
8776
    if test x"$ac_file" != x-; then
 
8777
      configure_input="$ac_file.  $configure_input"
 
8778
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
8779
echo "$as_me: creating $ac_file" >&6;}
 
8780
    fi
 
8781
 
 
8782
    case $ac_tag in
 
8783
    *:-:* | *:-) cat >"$tmp/stdin";;
 
8784
    esac
 
8785
    ;;
 
8786
  esac
 
8787
 
 
8788
  ac_dir=`$as_dirname -- "$ac_file" ||
 
8789
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8790
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
8791
         X"$ac_file" : 'X\(//\)$' \| \
 
8792
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
8793
echo X"$ac_file" |
 
8794
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8795
            s//\1/
 
8796
            q
 
8797
          }
 
8798
          /^X\(\/\/\)[^/].*/{
 
8799
            s//\1/
 
8800
            q
 
8801
          }
 
8802
          /^X\(\/\/\)$/{
 
8803
            s//\1/
 
8804
            q
 
8805
          }
 
8806
          /^X\(\/\).*/{
 
8807
            s//\1/
 
8808
            q
 
8809
          }
 
8810
          s/.*/./; q'`
 
8811
  { as_dir="$ac_dir"
 
8812
  case $as_dir in #(
 
8813
  -*) as_dir=./$as_dir;;
 
8814
  esac
 
8815
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
8816
    as_dirs=
 
8817
    while :; do
 
8818
      case $as_dir in #(
 
8819
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
8820
      *) as_qdir=$as_dir;;
 
8821
      esac
 
8822
      as_dirs="'$as_qdir' $as_dirs"
 
8823
      as_dir=`$as_dirname -- "$as_dir" ||
 
8824
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8825
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
8826
         X"$as_dir" : 'X\(//\)$' \| \
 
8827
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
8828
echo X"$as_dir" |
 
8829
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8830
            s//\1/
 
8831
            q
 
8832
          }
 
8833
          /^X\(\/\/\)[^/].*/{
 
8834
            s//\1/
 
8835
            q
 
8836
          }
 
8837
          /^X\(\/\/\)$/{
 
8838
            s//\1/
 
8839
            q
 
8840
          }
 
8841
          /^X\(\/\).*/{
 
8842
            s//\1/
 
8843
            q
 
8844
          }
 
8845
          s/.*/./; q'`
 
8846
      test -d "$as_dir" && break
 
8847
    done
 
8848
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
8849
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
8850
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
8851
   { (exit 1); exit 1; }; }; }
 
8852
  ac_builddir=.
 
8853
 
 
8854
case "$ac_dir" in
 
8855
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
8856
*)
 
8857
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
8858
  # A ".." for each directory in $ac_dir_suffix.
 
8859
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
8860
  case $ac_top_builddir_sub in
 
8861
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
8862
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
8863
  esac ;;
 
8864
esac
 
8865
ac_abs_top_builddir=$ac_pwd
 
8866
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
8867
# for backward compatibility:
 
8868
ac_top_builddir=$ac_top_build_prefix
 
8869
 
 
8870
case $srcdir in
 
8871
  .)  # We are building in place.
 
8872
    ac_srcdir=.
 
8873
    ac_top_srcdir=$ac_top_builddir_sub
 
8874
    ac_abs_top_srcdir=$ac_pwd ;;
 
8875
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
8876
    ac_srcdir=$srcdir$ac_dir_suffix;
 
8877
    ac_top_srcdir=$srcdir
 
8878
    ac_abs_top_srcdir=$srcdir ;;
 
8879
  *) # Relative name.
 
8880
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
8881
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
8882
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
8883
esac
 
8884
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
8885
 
 
8886
 
 
8887
  case $ac_mode in
 
8888
  :F)
 
8889
  #
 
8890
  # CONFIG_FILE
 
8891
  #
 
8892
 
 
8893
_ACEOF
 
8894
 
 
8895
cat >>$CONFIG_STATUS <<\_ACEOF
 
8896
# If the template does not know about datarootdir, expand it.
 
8897
# FIXME: This hack should be removed a few years after 2.60.
 
8898
ac_datarootdir_hack=; ac_datarootdir_seen=
 
8899
 
 
8900
case `sed -n '/datarootdir/ {
 
8901
  p
 
8902
  q
 
8903
}
 
8904
/@datadir@/p
 
8905
/@docdir@/p
 
8906
/@infodir@/p
 
8907
/@localedir@/p
 
8908
/@mandir@/p
 
8909
' $ac_file_inputs` in
 
8910
*datarootdir*) ac_datarootdir_seen=yes;;
 
8911
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
8912
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
8913
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
8914
_ACEOF
 
8915
cat >>$CONFIG_STATUS <<_ACEOF
 
8916
  ac_datarootdir_hack='
 
8917
  s&@datadir@&$datadir&g
 
8918
  s&@docdir@&$docdir&g
 
8919
  s&@infodir@&$infodir&g
 
8920
  s&@localedir@&$localedir&g
 
8921
  s&@mandir@&$mandir&g
 
8922
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
8923
esac
 
8924
_ACEOF
 
8925
 
 
8926
# Neutralize VPATH when `$srcdir' = `.'.
 
8927
# Shell code in configure.ac might set extrasub.
 
8928
# FIXME: do we really want to maintain this feature?
 
8929
cat >>$CONFIG_STATUS <<_ACEOF
 
8930
  sed "$ac_vpsub
 
8931
$extrasub
 
8932
_ACEOF
 
8933
cat >>$CONFIG_STATUS <<\_ACEOF
 
8934
:t
 
8935
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
8936
s&@configure_input@&$configure_input&;t t
 
8937
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
8938
s&@srcdir@&$ac_srcdir&;t t
 
8939
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
8940
s&@top_srcdir@&$ac_top_srcdir&;t t
 
8941
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
8942
s&@builddir@&$ac_builddir&;t t
 
8943
s&@abs_builddir@&$ac_abs_builddir&;t t
 
8944
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
8945
$ac_datarootdir_hack
 
8946
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
8947
 
 
8948
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
8949
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
8950
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
8951
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8952
which seems to be undefined.  Please make sure it is defined." >&5
 
8953
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8954
which seems to be undefined.  Please make sure it is defined." >&2;}
 
8955
 
 
8956
  rm -f "$tmp/stdin"
 
8957
  case $ac_file in
 
8958
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
8959
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
8960
  esac
 
8961
 ;;
 
8962
  :H)
 
8963
  #
 
8964
  # CONFIG_HEADER
 
8965
  #
 
8966
_ACEOF
 
8967
 
 
8968
# Transform confdefs.h into a sed script `conftest.defines', that
 
8969
# substitutes the proper values into config.h.in to produce config.h.
 
8970
rm -f conftest.defines conftest.tail
 
8971
# First, append a space to every undef/define line, to ease matching.
 
8972
echo 's/$/ /' >conftest.defines
 
8973
# Then, protect against being on the right side of a sed subst, or in
 
8974
# an unquoted here document, in config.status.  If some macros were
 
8975
# called several times there might be several #defines for the same
 
8976
# symbol, which is useless.  But do not sort them, since the last
 
8977
# AC_DEFINE must be honored.
 
8978
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
8979
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
8980
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
8981
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
8982
# just an empty string.
 
8983
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
8984
ac_dB='\\)[      (].*,\\1define\\2'
 
8985
ac_dC=' '
 
8986
ac_dD=' ,'
 
8987
 
 
8988
uniq confdefs.h |
 
8989
  sed -n '
 
8990
        t rset
 
8991
        :rset
 
8992
        s/^[     ]*#[    ]*define[       ][      ]*//
 
8993
        t ok
 
8994
        d
 
8995
        :ok
 
8996
        s/[\\&,]/\\&/g
 
8997
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
8998
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
8999
  ' >>conftest.defines
 
9000
 
 
9001
# Remove the space that was appended to ease matching.
 
9002
# Then replace #undef with comments.  This is necessary, for
 
9003
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
9004
# on some systems where configure will not decide to define it.
 
9005
# (The regexp can be short, since the line contains either #define or #undef.)
 
9006
echo 's/ $//
 
9007
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
9008
 
 
9009
# Break up conftest.defines:
 
9010
ac_max_sed_lines=50
 
9011
 
 
9012
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
9013
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
9014
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
9015
# et cetera.
 
9016
ac_in='$ac_file_inputs'
 
9017
ac_out='"$tmp/out1"'
 
9018
ac_nxt='"$tmp/out2"'
 
9019
 
 
9020
while :
 
9021
do
 
9022
  # Write a here document:
 
9023
    cat >>$CONFIG_STATUS <<_ACEOF
 
9024
    # First, check the format of the line:
 
9025
    cat >"\$tmp/defines.sed" <<\\CEOF
 
9026
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
9027
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
9028
b
 
9029
:def
 
9030
_ACEOF
 
9031
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
9032
  echo 'CEOF
 
9033
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
9034
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
9035
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
9036
  grep . conftest.tail >/dev/null || break
 
9037
  rm -f conftest.defines
 
9038
  mv conftest.tail conftest.defines
 
9039
done
 
9040
rm -f conftest.defines conftest.tail
 
9041
 
 
9042
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
9043
cat >>$CONFIG_STATUS <<\_ACEOF
 
9044
  if test x"$ac_file" != x-; then
 
9045
    echo "/* $configure_input  */" >"$tmp/config.h"
 
9046
    cat "$ac_result" >>"$tmp/config.h"
 
9047
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
9048
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
9049
echo "$as_me: $ac_file is unchanged" >&6;}
 
9050
    else
 
9051
      rm -f $ac_file
 
9052
      mv "$tmp/config.h" $ac_file
 
9053
    fi
 
9054
  else
 
9055
    echo "/* $configure_input  */"
 
9056
    cat "$ac_result"
 
9057
  fi
 
9058
  rm -f "$tmp/out12"
 
9059
 ;;
 
9060
 
 
9061
 
 
9062
  esac
 
9063
 
 
9064
done # for ac_tag
 
9065
 
 
9066
 
 
9067
{ (exit 0); exit 0; }
 
9068
_ACEOF
 
9069
chmod +x $CONFIG_STATUS
 
9070
ac_clean_files=$ac_clean_files_save
 
9071
 
 
9072
 
 
9073
# configure is writing to config.log, and then calls config.status.
 
9074
# config.status does its own redirection, appending to config.log.
 
9075
# Unfortunately, on DOS this fails, as config.log is still kept open
 
9076
# by configure, so config.status won't be able to write to it; its
 
9077
# output is simply discarded.  So we exec the FD to /dev/null,
 
9078
# effectively closing config.log, so it can be properly (re)opened and
 
9079
# appended to by config.status.  When coming back to configure, we
 
9080
# need to make the FD available again.
 
9081
if test "$no_create" != yes; then
 
9082
  ac_cs_success=:
 
9083
  ac_config_status_args=
 
9084
  test "$silent" = yes &&
 
9085
    ac_config_status_args="$ac_config_status_args --quiet"
 
9086
  exec 5>/dev/null
 
9087
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
9088
  exec 5>>config.log
 
9089
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
9090
  # would make configure fail if this is the last instruction.
 
9091
  $ac_cs_success || { (exit 1); exit 1; }
 
9092
fi
 
9093
 
 
9094
chmod a-w cil/ocamlutil/perfcount.c
 
9095
chmod a-w Makefile
 
9096
 
 
9097
###########
 
9098
# Summary #
 
9099
###########
 
9100
 
 
9101
new_section "summary: plugins available"
 
9102
 
 
9103
if test "$LOWER_THAN_311" == yes ; then
 
9104
  { echo "$as_me:$LINENO: WARNING: Dynamic plugins in native mode are disabled." >&5
 
9105
echo "$as_me: WARNING: Dynamic plugins in native mode are disabled." >&2;}
 
9106
fi
 
9107
 
 
9108
{ echo "$as_me:$LINENO: syntactic callgraph  : $ENABLE_SYNTACTIC_CALLGRAPH$INFO_SYNTACTIC_CALLGRAPH" >&5
 
9109
echo "$as_me: syntactic callgraph  : $ENABLE_SYNTACTIC_CALLGRAPH$INFO_SYNTACTIC_CALLGRAPH" >&6;}
 
9110
{ echo "$as_me:$LINENO: constant propagation : $ENABLE_CONSTANT_PROPAGATION$INFO_CONSTANT_PROPAGATION" >&5
 
9111
echo "$as_me: constant propagation : $ENABLE_CONSTANT_PROPAGATION$INFO_CONSTANT_PROPAGATION" >&6;}
 
9112
{ echo "$as_me:$LINENO: cxx                  : $ENABLE_CXX$INFO_CXX" >&5
 
9113
echo "$as_me: cxx                  : $ENABLE_CXX$INFO_CXX" >&6;}
 
9114
{ echo "$as_me:$LINENO: from                 : $ENABLE_FROM$INFO_FROM" >&5
 
9115
echo "$as_me: from                 : $ENABLE_FROM$INFO_FROM" >&6;}
 
9116
{ echo "$as_me:$LINENO: gui                  : $ENABLE_GUI$INFO_GUI" >&5
 
9117
echo "$as_me: gui                  : $ENABLE_GUI$INFO_GUI" >&6;}
 
9118
{ echo "$as_me:$LINENO: impact               : $ENABLE_IMPACT$INFO_IMPACT" >&5
 
9119
echo "$as_me: impact               : $ENABLE_IMPACT$INFO_IMPACT" >&6;}
 
9120
{ echo "$as_me:$LINENO: inout                : $ENABLE_INOUT$INFO_INOUT" >&5
 
9121
echo "$as_me: inout                : $ENABLE_INOUT$INFO_INOUT" >&6;}
 
9122
{ echo "$as_me:$LINENO: jessie               : $ENABLE_JESSIE$INFO_JESSIE" >&5
 
9123
echo "$as_me: jessie               : $ENABLE_JESSIE$INFO_JESSIE" >&6;}
 
9124
{ echo "$as_me:$LINENO: journal loader       : $ENABLE_JOURNAL_LOADER$INFO_JOURNAL_LOADER" >&5
 
9125
echo "$as_me: journal loader       : $ENABLE_JOURNAL_LOADER$INFO_JOURNAL_LOADER" >&6;}
 
9126
{ echo "$as_me:$LINENO: metrics              : $ENABLE_METRICS$INFO_METRICS" >&5
 
9127
echo "$as_me: metrics              : $ENABLE_METRICS$INFO_METRICS" >&6;}
 
9128
{ echo "$as_me:$LINENO: miel                 : $ENABLE_MIEL$INFO_MIEL" >&5
 
9129
echo "$as_me: miel                 : $ENABLE_MIEL$INFO_MIEL" >&6;}
 
9130
{ echo "$as_me:$LINENO: occurrence           : $ENABLE_OCCURRENCE$INFO_OCCURRENCE" >&5
 
9131
echo "$as_me: occurrence           : $ENABLE_OCCURRENCE$INFO_OCCURRENCE" >&6;}
 
9132
{ echo "$as_me:$LINENO: pdg                  : $ENABLE_PDG$INFO_PDG" >&5
 
9133
echo "$as_me: pdg                  : $ENABLE_PDG$INFO_PDG" >&6;}
 
9134
{ echo "$as_me:$LINENO: postdominators       : $ENABLE_POSTDOMINATORS$INFO_POSTDOMINATORS" >&5
 
9135
echo "$as_me: postdominators       : $ENABLE_POSTDOMINATORS$INFO_POSTDOMINATORS" >&6;}
 
9136
{ echo "$as_me:$LINENO: scope                : $ENABLE_SCOPE$INFO_SCOPE" >&5
 
9137
echo "$as_me: scope                : $ENABLE_SCOPE$INFO_SCOPE" >&6;}
 
9138
{ echo "$as_me:$LINENO: security             : $ENABLE_SECURITY$INFO_SECURITY" >&5
 
9139
echo "$as_me: security             : $ENABLE_SECURITY$INFO_SECURITY" >&6;}
 
9140
{ echo "$as_me:$LINENO: semantic callgraph   : $ENABLE_SEMANTIC_CALLGRAPH$INFO_SEMANTIC_CALLGRAPH" >&5
 
9141
echo "$as_me: semantic callgraph   : $ENABLE_SEMANTIC_CALLGRAPH$INFO_SEMANTIC_CALLGRAPH" >&6;}
 
9142
{ echo "$as_me:$LINENO: slicing              : $ENABLE_SLICING$INFO_SLICING" >&5
 
9143
echo "$as_me: slicing              : $ENABLE_SLICING$INFO_SLICING" >&6;}
 
9144
{ echo "$as_me:$LINENO: spare code           : $ENABLE_SPARECODE$INFO_SPARECODE" >&5
 
9145
echo "$as_me: spare code           : $ENABLE_SPARECODE$INFO_SPARECODE" >&6;}
 
9146
{ echo "$as_me:$LINENO: users                : $ENABLE_USERS$INFO_USERS" >&5
 
9147
echo "$as_me: users                : $ENABLE_USERS$INFO_USERS" >&6;}
 
9148
{ echo "$as_me:$LINENO: value                : $ENABLE_VALUE$INFO_VALUE" >&5
 
9149
echo "$as_me: value                : $ENABLE_VALUE$INFO_VALUE" >&6;}
 
9150
{ echo "$as_me:$LINENO: wp                   : $ENABLE_WP$INFO_WP" >&5
 
9151
echo "$as_me: wp                   : $ENABLE_WP$INFO_WP" >&6;}
 
9152
{ echo "$as_me:$LINENO: ltl to acsl          : $ENABLE_LTL_TO_ACSL$INFO_LTL_TO_ACSL" >&5
 
9153
echo "$as_me: ltl to acsl          : $ENABLE_LTL_TO_ACSL$INFO_LTL_TO_ACSL" >&6;}