Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / autom4te.cache / output.0 @ 9f77bff7

History | View | Annotate | Download (116 KB)

1
@%:@! /bin/sh
2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.69 for lustrec 1.3-      55.
4
@%:@
5
@%:@ Report bugs to <ploc@garoche.net>.
6
@%:@ 
7
@%:@ 
8
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
@%:@ 
10
@%:@ 
11
@%:@ This configure script is free software; the Free Software Foundation
12
@%:@ gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16

    
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27
  case `(set -o) 2>/dev/null` in @%:@(
28
  *posix*) :
29
    set -o posix ;; @%:@(
30
  *) :
31
     ;;
32
esac
33
fi
34

    
35

    
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in @%:@(
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73

    
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82

    
83

    
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""	$as_nl"
90

    
91
# Find who we are.  Look in the path if we contain no directory separator.
92
as_myself=
93
case $0 in @%:@((
94
  *[\\/]* ) as_myself=$0 ;;
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
for as_dir in $PATH
97
do
98
  IFS=$as_save_IFS
99
  test -z "$as_dir" && as_dir=.
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
102
IFS=$as_save_IFS
103

    
104
     ;;
105
esac
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
109
  as_myself=$0
110
fi
111
if test ! -f "$as_myself"; then
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
  exit 1
114
fi
115

    
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there.  '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127

    
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133

    
134
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136

    
137
# Use a proper internal environment variable to ensure we don't fall
138
  # into an infinite loop, continuously re-executing ourselves.
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
    _as_can_reexec=no; export _as_can_reexec;
141
    # We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
145
BASH_ENV=/dev/null
146
ENV=/dev/null
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
case $- in @%:@ ((((
149
  *v*x* | *x*v* ) as_opts=-vx ;;
150
  *v* ) as_opts=-v ;;
151
  *x* ) as_opts=-x ;;
152
  * ) as_opts= ;;
153
esac
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
as_fn_exit 255
159
  fi
160
  # We don't want this to propagate to other subprocesses.
161
          { _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
  emulate sh
165
  NULLCMD=:
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
  # is contrary to our usage.  Disable this feature.
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
  setopt NO_GLOB_SUBST
170
else
171
  case \`(set -o) 2>/dev/null\` in @%:@(
172
  *posix*) :
173
    set -o posix ;; @%:@(
174
  *) :
175
     ;;
176
esac
177
fi
178
"
179
  as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
184

    
185
exitcode=0
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
  
192
else
193
  exitcode=1; echo positional parameters were not saved.
194
fi
195
test x\$exitcode = x0 || exit 1
196
test -x / || exit 1"
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201
  if (eval "$as_required") 2>/dev/null; then :
202
  as_have_required=yes
203
else
204
  as_have_required=no
205
fi
206
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
  
208
else
209
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210
as_found=false
211
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212
do
213
  IFS=$as_save_IFS
214
  test -z "$as_dir" && as_dir=.
215
  as_found=:
216
  case $as_dir in @%:@(
217
	 /*)
218
	   for as_base in sh bash ksh sh5; do
219
	     # Try only shells that exist, to save several forks.
220
	     as_shell=$as_dir/$as_base
221
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223
  CONFIG_SHELL=$as_shell as_have_required=yes
224
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225
  break 2
226
fi
227
fi
228
	   done;;
229
       esac
230
  as_found=false
231
done
232
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234
  CONFIG_SHELL=$SHELL as_have_required=yes
235
fi; }
236
IFS=$as_save_IFS
237

    
238

    
239
      if test "x$CONFIG_SHELL" != x; then :
240
  export CONFIG_SHELL
241
             # We cannot yet assume a decent shell, so we have to provide a
242
# neutralization value for shells without unset; and this also
243
# works around shells that cannot unset nonexistent variables.
244
# Preserve -v and -x to the replacement shell.
245
BASH_ENV=/dev/null
246
ENV=/dev/null
247
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248
case $- in @%:@ ((((
249
  *v*x* | *x*v* ) as_opts=-vx ;;
250
  *v* ) as_opts=-v ;;
251
  *x* ) as_opts=-x ;;
252
  * ) as_opts= ;;
253
esac
254
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255
# Admittedly, this is quite paranoid, since all the known shells bail
256
# out after a failed `exec'.
257
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258
exit 255
259
fi
260

    
261
    if test x$as_have_required = xno; then :
262
  $as_echo "$0: This script requires a shell more modern than all"
263
  $as_echo "$0: the shells that I found on your system."
264
  if test x${ZSH_VERSION+set} = xset ; then
265
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267
  else
268
    $as_echo "$0: Please tell bug-autoconf@gnu.org and ploc@garoche.net
269
$0: about your system, including any error possibly output
270
$0: before this message. Then install a modern shell, or
271
$0: manually run the script under such a shell if you do
272
$0: have one."
273
  fi
274
  exit 1
275
fi
276
fi
277
fi
278
SHELL=${CONFIG_SHELL-/bin/sh}
279
export SHELL
280
# Unset more variables known to interfere with behavior of common tools.
281
CLICOLOR_FORCE= GREP_OPTIONS=
282
unset CLICOLOR_FORCE GREP_OPTIONS
283

    
284
## --------------------- ##
285
## M4sh Shell Functions. ##
286
## --------------------- ##
287
@%:@ as_fn_unset VAR
288
@%:@ ---------------
289
@%:@ Portably unset VAR.
290
as_fn_unset ()
291
{
292
  { eval $1=; unset $1;}
293
}
294
as_unset=as_fn_unset
295

    
296
@%:@ as_fn_set_status STATUS
297
@%:@ -----------------------
298
@%:@ Set @S|@? to STATUS, without forking.
299
as_fn_set_status ()
300
{
301
  return $1
302
} @%:@ as_fn_set_status
303

    
304
@%:@ as_fn_exit STATUS
305
@%:@ -----------------
306
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307
as_fn_exit ()
308
{
309
  set +e
310
  as_fn_set_status $1
311
  exit $1
312
} @%:@ as_fn_exit
313

    
314
@%:@ as_fn_mkdir_p
315
@%:@ -------------
316
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
317
as_fn_mkdir_p ()
318
{
319

    
320
  case $as_dir in #(
321
  -*) as_dir=./$as_dir;;
322
  esac
323
  test -d "$as_dir" || eval $as_mkdir_p || {
324
    as_dirs=
325
    while :; do
326
      case $as_dir in #(
327
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328
      *) as_qdir=$as_dir;;
329
      esac
330
      as_dirs="'$as_qdir' $as_dirs"
331
      as_dir=`$as_dirname -- "$as_dir" ||
332
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333
	 X"$as_dir" : 'X\(//\)[^/]' \| \
334
	 X"$as_dir" : 'X\(//\)$' \| \
335
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336
$as_echo X"$as_dir" |
337
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338
	    s//\1/
339
	    q
340
	  }
341
	  /^X\(\/\/\)[^/].*/{
342
	    s//\1/
343
	    q
344
	  }
345
	  /^X\(\/\/\)$/{
346
	    s//\1/
347
	    q
348
	  }
349
	  /^X\(\/\).*/{
350
	    s//\1/
351
	    q
352
	  }
353
	  s/.*/./; q'`
354
      test -d "$as_dir" && break
355
    done
356
    test -z "$as_dirs" || eval "mkdir $as_dirs"
357
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358

    
359

    
360
} @%:@ as_fn_mkdir_p
361

    
362
@%:@ as_fn_executable_p FILE
363
@%:@ -----------------------
364
@%:@ Test if FILE is an executable regular file.
365
as_fn_executable_p ()
366
{
367
  test -f "$1" && test -x "$1"
368
} @%:@ as_fn_executable_p
369
@%:@ as_fn_append VAR VALUE
370
@%:@ ----------------------
371
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
372
@%:@ advantage of any shell optimizations that allow amortized linear growth over
373
@%:@ repeated appends, instead of the typical quadratic growth present in naive
374
@%:@ implementations.
375
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376
  eval 'as_fn_append ()
377
  {
378
    eval $1+=\$2
379
  }'
380
else
381
  as_fn_append ()
382
  {
383
    eval $1=\$$1\$2
384
  }
385
fi # as_fn_append
386

    
387
@%:@ as_fn_arith ARG...
388
@%:@ ------------------
389
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
390
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
391
@%:@ must be portable across @S|@(()) and expr.
392
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393
  eval 'as_fn_arith ()
394
  {
395
    as_val=$(( $* ))
396
  }'
397
else
398
  as_fn_arith ()
399
  {
400
    as_val=`expr "$@" || test $? -eq 1`
401
  }
402
fi # as_fn_arith
403

    
404

    
405
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
406
@%:@ ----------------------------------------
407
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409
@%:@ script with STATUS, using 1 if that was 0.
410
as_fn_error ()
411
{
412
  as_status=$1; test $as_status -eq 0 && as_status=1
413
  if test "$4"; then
414
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416
  fi
417
  $as_echo "$as_me: error: $2" >&2
418
  as_fn_exit $as_status
419
} @%:@ as_fn_error
420

    
421
if expr a : '\(a\)' >/dev/null 2>&1 &&
422
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
423
  as_expr=expr
424
else
425
  as_expr=false
426
fi
427

    
428
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429
  as_basename=basename
430
else
431
  as_basename=false
432
fi
433

    
434
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435
  as_dirname=dirname
436
else
437
  as_dirname=false
438
fi
439

    
440
as_me=`$as_basename -- "$0" ||
441
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442
	 X"$0" : 'X\(//\)$' \| \
443
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444
$as_echo X/"$0" |
445
    sed '/^.*\/\([^/][^/]*\)\/*$/{
446
	    s//\1/
447
	    q
448
	  }
449
	  /^X\/\(\/\/\)$/{
450
	    s//\1/
451
	    q
452
	  }
453
	  /^X\/\(\/\).*/{
454
	    s//\1/
455
	    q
456
	  }
457
	  s/.*/./; q'`
458

    
459
# Avoid depending upon Character Ranges.
460
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463
as_cr_digits='0123456789'
464
as_cr_alnum=$as_cr_Letters$as_cr_digits
465

    
466

    
467
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
468
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
469
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
472
  sed -n '
473
    p
474
    /[$]LINENO/=
475
  ' <$as_myself |
476
    sed '
477
      s/[$]LINENO.*/&-/
478
      t lineno
479
      b
480
      :lineno
481
      N
482
      :loop
483
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484
      t loop
485
      s/-\n.*//
486
    ' >$as_me.lineno &&
487
  chmod +x "$as_me.lineno" ||
488
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489

    
490
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491
  # already done that, so ensure we don't try to do so again and fall
492
  # in an infinite loop.  This has already happened in practice.
493
  _as_can_reexec=no; export _as_can_reexec
494
  # Don't try to exec as it changes $[0], causing all sort of problems
495
  # (the dirname of $[0] is not the place where we might find the
496
  # original and so on.  Autoconf is especially sensitive to this).
497
  . "./$as_me.lineno"
498
  # Exit status is that of the last command.
499
  exit
500
}
501

    
502
ECHO_C= ECHO_N= ECHO_T=
503
case `echo -n x` in @%:@(((((
504
-n*)
505
  case `echo 'xy\c'` in
506
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
507
  xy)  ECHO_C='\c';;
508
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
509
       ECHO_T='	';;
510
  esac;;
511
*)
512
  ECHO_N='-n';;
513
esac
514

    
515
rm -f conf$$ conf$$.exe conf$$.file
516
if test -d conf$$.dir; then
517
  rm -f conf$$.dir/conf$$.file
518
else
519
  rm -f conf$$.dir
520
  mkdir conf$$.dir 2>/dev/null
521
fi
522
if (echo >conf$$.file) 2>/dev/null; then
523
  if ln -s conf$$.file conf$$ 2>/dev/null; then
524
    as_ln_s='ln -s'
525
    # ... but there are two gotchas:
526
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528
    # In both cases, we have to default to `cp -pR'.
529
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530
      as_ln_s='cp -pR'
531
  elif ln conf$$.file conf$$ 2>/dev/null; then
532
    as_ln_s=ln
533
  else
534
    as_ln_s='cp -pR'
535
  fi
536
else
537
  as_ln_s='cp -pR'
538
fi
539
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540
rmdir conf$$.dir 2>/dev/null
541

    
542
if mkdir -p . 2>/dev/null; then
543
  as_mkdir_p='mkdir -p "$as_dir"'
544
else
545
  test -d ./-p && rmdir ./-p
546
  as_mkdir_p=false
547
fi
548

    
549
as_test_x='test -x'
550
as_executable_p=as_fn_executable_p
551

    
552
# Sed expression to map a string onto a valid CPP name.
553
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554

    
555
# Sed expression to map a string onto a valid variable name.
556
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557

    
558

    
559
test -n "$DJDIR" || exec 7<&0 </dev/null
560
exec 6>&1
561

    
562
# Name of the host.
563
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564
# so uname gets run too.
565
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566

    
567
#
568
# Initializations.
569
#
570
ac_default_prefix=/usr/local
571
ac_clean_files=
572
ac_config_libobj_dir=.
573
LIB@&t@OBJS=
574
cross_compiling=no
575
subdirs=
576
MFLAGS=
577
MAKEFLAGS=
578

    
579
# Identity of this package.
580
PACKAGE_NAME='lustrec'
581
PACKAGE_TARNAME='lustrec'
582
PACKAGE_VERSION='1.3-      55'
583
PACKAGE_STRING='lustrec 1.3-      55'
584
PACKAGE_BUGREPORT='ploc@garoche.net'
585
PACKAGE_URL=''
586

    
587
ac_unique_file="src/main_lustre_compiler.ml"
588
ac_default_prefix=/usr/local
589
ac_subst_vars='LTLIBOBJS
590
LIB@&t@OBJS
591
abs_datadir
592
OBJEXT
593
EXEEXT
594
ac_ct_CC
595
CPPFLAGS
596
LDFLAGS
597
CFLAGS
598
CC
599
OCAMLBUILD
600
OCAMLC
601
SRC_PATH
602
OCAMLGRAPH_PATH
603
VERSION_CODENAME
604
target_alias
605
host_alias
606
build_alias
607
LIBS
608
ECHO_T
609
ECHO_N
610
ECHO_C
611
DEFS
612
mandir
613
localedir
614
libdir
615
psdir
616
pdfdir
617
dvidir
618
htmldir
619
infodir
620
docdir
621
oldincludedir
622
includedir
623
localstatedir
624
sharedstatedir
625
sysconfdir
626
datadir
627
datarootdir
628
libexecdir
629
sbindir
630
bindir
631
program_transform_name
632
prefix
633
exec_prefix
634
PACKAGE_URL
635
PACKAGE_BUGREPORT
636
PACKAGE_STRING
637
PACKAGE_VERSION
638
PACKAGE_TARNAME
639
PACKAGE_NAME
640
PATH_SEPARATOR
641
SHELL'
642
ac_subst_files=''
643
ac_user_opts='
644
enable_option_checking
645
with_ocamlgraph_path
646
'
647
      ac_precious_vars='build_alias
648
host_alias
649
target_alias
650
CC
651
CFLAGS
652
LDFLAGS
653
LIBS
654
CPPFLAGS'
655

    
656

    
657
# Initialize some variables set by options.
658
ac_init_help=
659
ac_init_version=false
660
ac_unrecognized_opts=
661
ac_unrecognized_sep=
662
# The variables have the same names as the options, with
663
# dashes changed to underlines.
664
cache_file=/dev/null
665
exec_prefix=NONE
666
no_create=
667
no_recursion=
668
prefix=NONE
669
program_prefix=NONE
670
program_suffix=NONE
671
program_transform_name=s,x,x,
672
silent=
673
site=
674
srcdir=
675
verbose=
676
x_includes=NONE
677
x_libraries=NONE
678

    
679
# Installation directory options.
680
# These are left unexpanded so users can "make install exec_prefix=/foo"
681
# and all the variables that are supposed to be based on exec_prefix
682
# by default will actually change.
683
# Use braces instead of parens because sh, perl, etc. also accept them.
684
# (The list follows the same order as the GNU Coding Standards.)
685
bindir='${exec_prefix}/bin'
686
sbindir='${exec_prefix}/sbin'
687
libexecdir='${exec_prefix}/libexec'
688
datarootdir='${prefix}/share'
689
datadir='${datarootdir}'
690
sysconfdir='${prefix}/etc'
691
sharedstatedir='${prefix}/com'
692
localstatedir='${prefix}/var'
693
includedir='${prefix}/include'
694
oldincludedir='/usr/include'
695
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
696
infodir='${datarootdir}/info'
697
htmldir='${docdir}'
698
dvidir='${docdir}'
699
pdfdir='${docdir}'
700
psdir='${docdir}'
701
libdir='${exec_prefix}/lib'
702
localedir='${datarootdir}/locale'
703
mandir='${datarootdir}/man'
704

    
705
ac_prev=
706
ac_dashdash=
707
for ac_option
708
do
709
  # If the previous option needs an argument, assign it.
710
  if test -n "$ac_prev"; then
711
    eval $ac_prev=\$ac_option
712
    ac_prev=
713
    continue
714
  fi
715

    
716
  case $ac_option in
717
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
718
  *=)   ac_optarg= ;;
719
  *)    ac_optarg=yes ;;
720
  esac
721

    
722
  # Accept the important Cygnus configure options, so we can diagnose typos.
723

    
724
  case $ac_dashdash$ac_option in
725
  --)
726
    ac_dashdash=yes ;;
727

    
728
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
729
    ac_prev=bindir ;;
730
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
731
    bindir=$ac_optarg ;;
732

    
733
  -build | --build | --buil | --bui | --bu)
734
    ac_prev=build_alias ;;
735
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
736
    build_alias=$ac_optarg ;;
737

    
738
  -cache-file | --cache-file | --cache-fil | --cache-fi \
739
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
740
    ac_prev=cache_file ;;
741
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
742
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
743
    cache_file=$ac_optarg ;;
744

    
745
  --config-cache | -C)
746
    cache_file=config.cache ;;
747

    
748
  -datadir | --datadir | --datadi | --datad)
749
    ac_prev=datadir ;;
750
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
751
    datadir=$ac_optarg ;;
752

    
753
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
754
  | --dataroo | --dataro | --datar)
755
    ac_prev=datarootdir ;;
756
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
757
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
758
    datarootdir=$ac_optarg ;;
759

    
760
  -disable-* | --disable-*)
761
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
762
    # Reject names that are not valid shell variable names.
763
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
764
      as_fn_error $? "invalid feature name: $ac_useropt"
765
    ac_useropt_orig=$ac_useropt
766
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
767
    case $ac_user_opts in
768
      *"
769
"enable_$ac_useropt"
770
"*) ;;
771
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
772
	 ac_unrecognized_sep=', ';;
773
    esac
774
    eval enable_$ac_useropt=no ;;
775

    
776
  -docdir | --docdir | --docdi | --doc | --do)
777
    ac_prev=docdir ;;
778
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
779
    docdir=$ac_optarg ;;
780

    
781
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
782
    ac_prev=dvidir ;;
783
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
784
    dvidir=$ac_optarg ;;
785

    
786
  -enable-* | --enable-*)
787
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
788
    # Reject names that are not valid shell variable names.
789
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
790
      as_fn_error $? "invalid feature name: $ac_useropt"
791
    ac_useropt_orig=$ac_useropt
792
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
793
    case $ac_user_opts in
794
      *"
795
"enable_$ac_useropt"
796
"*) ;;
797
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
798
	 ac_unrecognized_sep=', ';;
799
    esac
800
    eval enable_$ac_useropt=\$ac_optarg ;;
801

    
802
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
803
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
804
  | --exec | --exe | --ex)
805
    ac_prev=exec_prefix ;;
806
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
807
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
808
  | --exec=* | --exe=* | --ex=*)
809
    exec_prefix=$ac_optarg ;;
810

    
811
  -gas | --gas | --ga | --g)
812
    # Obsolete; use --with-gas.
813
    with_gas=yes ;;
814

    
815
  -help | --help | --hel | --he | -h)
816
    ac_init_help=long ;;
817
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
818
    ac_init_help=recursive ;;
819
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
820
    ac_init_help=short ;;
821

    
822
  -host | --host | --hos | --ho)
823
    ac_prev=host_alias ;;
824
  -host=* | --host=* | --hos=* | --ho=*)
825
    host_alias=$ac_optarg ;;
826

    
827
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
828
    ac_prev=htmldir ;;
829
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
830
  | --ht=*)
831
    htmldir=$ac_optarg ;;
832

    
833
  -includedir | --includedir | --includedi | --included | --include \
834
  | --includ | --inclu | --incl | --inc)
835
    ac_prev=includedir ;;
836
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
837
  | --includ=* | --inclu=* | --incl=* | --inc=*)
838
    includedir=$ac_optarg ;;
839

    
840
  -infodir | --infodir | --infodi | --infod | --info | --inf)
841
    ac_prev=infodir ;;
842
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
843
    infodir=$ac_optarg ;;
844

    
845
  -libdir | --libdir | --libdi | --libd)
846
    ac_prev=libdir ;;
847
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
848
    libdir=$ac_optarg ;;
849

    
850
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
851
  | --libexe | --libex | --libe)
852
    ac_prev=libexecdir ;;
853
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
854
  | --libexe=* | --libex=* | --libe=*)
855
    libexecdir=$ac_optarg ;;
856

    
857
  -localedir | --localedir | --localedi | --localed | --locale)
858
    ac_prev=localedir ;;
859
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
860
    localedir=$ac_optarg ;;
861

    
862
  -localstatedir | --localstatedir | --localstatedi | --localstated \
863
  | --localstate | --localstat | --localsta | --localst | --locals)
864
    ac_prev=localstatedir ;;
865
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
866
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
867
    localstatedir=$ac_optarg ;;
868

    
869
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
870
    ac_prev=mandir ;;
871
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
872
    mandir=$ac_optarg ;;
873

    
874
  -nfp | --nfp | --nf)
875
    # Obsolete; use --without-fp.
876
    with_fp=no ;;
877

    
878
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
879
  | --no-cr | --no-c | -n)
880
    no_create=yes ;;
881

    
882
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
883
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
884
    no_recursion=yes ;;
885

    
886
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
887
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
888
  | --oldin | --oldi | --old | --ol | --o)
889
    ac_prev=oldincludedir ;;
890
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
891
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
892
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
893
    oldincludedir=$ac_optarg ;;
894

    
895
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
896
    ac_prev=prefix ;;
897
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
898
    prefix=$ac_optarg ;;
899

    
900
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
901
  | --program-pre | --program-pr | --program-p)
902
    ac_prev=program_prefix ;;
903
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
904
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
905
    program_prefix=$ac_optarg ;;
906

    
907
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
908
  | --program-suf | --program-su | --program-s)
909
    ac_prev=program_suffix ;;
910
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
911
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
912
    program_suffix=$ac_optarg ;;
913

    
914
  -program-transform-name | --program-transform-name \
915
  | --program-transform-nam | --program-transform-na \
916
  | --program-transform-n | --program-transform- \
917
  | --program-transform | --program-transfor \
918
  | --program-transfo | --program-transf \
919
  | --program-trans | --program-tran \
920
  | --progr-tra | --program-tr | --program-t)
921
    ac_prev=program_transform_name ;;
922
  -program-transform-name=* | --program-transform-name=* \
923
  | --program-transform-nam=* | --program-transform-na=* \
924
  | --program-transform-n=* | --program-transform-=* \
925
  | --program-transform=* | --program-transfor=* \
926
  | --program-transfo=* | --program-transf=* \
927
  | --program-trans=* | --program-tran=* \
928
  | --progr-tra=* | --program-tr=* | --program-t=*)
929
    program_transform_name=$ac_optarg ;;
930

    
931
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
932
    ac_prev=pdfdir ;;
933
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
934
    pdfdir=$ac_optarg ;;
935

    
936
  -psdir | --psdir | --psdi | --psd | --ps)
937
    ac_prev=psdir ;;
938
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
939
    psdir=$ac_optarg ;;
940

    
941
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
942
  | -silent | --silent | --silen | --sile | --sil)
943
    silent=yes ;;
944

    
945
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
946
    ac_prev=sbindir ;;
947
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
948
  | --sbi=* | --sb=*)
949
    sbindir=$ac_optarg ;;
950

    
951
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
952
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
953
  | --sharedst | --shareds | --shared | --share | --shar \
954
  | --sha | --sh)
955
    ac_prev=sharedstatedir ;;
956
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
957
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
958
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
959
  | --sha=* | --sh=*)
960
    sharedstatedir=$ac_optarg ;;
961

    
962
  -site | --site | --sit)
963
    ac_prev=site ;;
964
  -site=* | --site=* | --sit=*)
965
    site=$ac_optarg ;;
966

    
967
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
968
    ac_prev=srcdir ;;
969
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
970
    srcdir=$ac_optarg ;;
971

    
972
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
973
  | --syscon | --sysco | --sysc | --sys | --sy)
974
    ac_prev=sysconfdir ;;
975
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
976
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
977
    sysconfdir=$ac_optarg ;;
978

    
979
  -target | --target | --targe | --targ | --tar | --ta | --t)
980
    ac_prev=target_alias ;;
981
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
982
    target_alias=$ac_optarg ;;
983

    
984
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
985
    verbose=yes ;;
986

    
987
  -version | --version | --versio | --versi | --vers | -V)
988
    ac_init_version=: ;;
989

    
990
  -with-* | --with-*)
991
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
992
    # Reject names that are not valid shell variable names.
993
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994
      as_fn_error $? "invalid package name: $ac_useropt"
995
    ac_useropt_orig=$ac_useropt
996
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997
    case $ac_user_opts in
998
      *"
999
"with_$ac_useropt"
1000
"*) ;;
1001
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1002
	 ac_unrecognized_sep=', ';;
1003
    esac
1004
    eval with_$ac_useropt=\$ac_optarg ;;
1005

    
1006
  -without-* | --without-*)
1007
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1008
    # Reject names that are not valid shell variable names.
1009
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010
      as_fn_error $? "invalid package name: $ac_useropt"
1011
    ac_useropt_orig=$ac_useropt
1012
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013
    case $ac_user_opts in
1014
      *"
1015
"with_$ac_useropt"
1016
"*) ;;
1017
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1018
	 ac_unrecognized_sep=', ';;
1019
    esac
1020
    eval with_$ac_useropt=no ;;
1021

    
1022
  --x)
1023
    # Obsolete; use --with-x.
1024
    with_x=yes ;;
1025

    
1026
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1027
  | --x-incl | --x-inc | --x-in | --x-i)
1028
    ac_prev=x_includes ;;
1029
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1030
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1031
    x_includes=$ac_optarg ;;
1032

    
1033
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1034
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1035
    ac_prev=x_libraries ;;
1036
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1037
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1038
    x_libraries=$ac_optarg ;;
1039

    
1040
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1041
Try \`$0 --help' for more information"
1042
    ;;
1043

    
1044
  *=*)
1045
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1046
    # Reject names that are not valid shell variable names.
1047
    case $ac_envvar in #(
1048
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1049
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1050
    esac
1051
    eval $ac_envvar=\$ac_optarg
1052
    export $ac_envvar ;;
1053

    
1054
  *)
1055
    # FIXME: should be removed in autoconf 3.0.
1056
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1057
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1059
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1060
    ;;
1061

    
1062
  esac
1063
done
1064

    
1065
if test -n "$ac_prev"; then
1066
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1067
  as_fn_error $? "missing argument to $ac_option"
1068
fi
1069

    
1070
if test -n "$ac_unrecognized_opts"; then
1071
  case $enable_option_checking in
1072
    no) ;;
1073
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1074
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1075
  esac
1076
fi
1077

    
1078
# Check all directory arguments for consistency.
1079
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1080
		datadir sysconfdir sharedstatedir localstatedir includedir \
1081
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1082
		libdir localedir mandir
1083
do
1084
  eval ac_val=\$$ac_var
1085
  # Remove trailing slashes.
1086
  case $ac_val in
1087
    */ )
1088
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1089
      eval $ac_var=\$ac_val;;
1090
  esac
1091
  # Be sure to have absolute directory names.
1092
  case $ac_val in
1093
    [\\/$]* | ?:[\\/]* )  continue;;
1094
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1095
  esac
1096
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1097
done
1098

    
1099
# There might be people who depend on the old broken behavior: `$host'
1100
# used to hold the argument of --host etc.
1101
# FIXME: To remove some day.
1102
build=$build_alias
1103
host=$host_alias
1104
target=$target_alias
1105

    
1106
# FIXME: To remove some day.
1107
if test "x$host_alias" != x; then
1108
  if test "x$build_alias" = x; then
1109
    cross_compiling=maybe
1110
  elif test "x$build_alias" != "x$host_alias"; then
1111
    cross_compiling=yes
1112
  fi
1113
fi
1114

    
1115
ac_tool_prefix=
1116
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1117

    
1118
test "$silent" = yes && exec 6>/dev/null
1119

    
1120

    
1121
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1122
ac_ls_di=`ls -di .` &&
1123
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1124
  as_fn_error $? "working directory cannot be determined"
1125
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1126
  as_fn_error $? "pwd does not report name of working directory"
1127

    
1128

    
1129
# Find the source files, if location was not specified.
1130
if test -z "$srcdir"; then
1131
  ac_srcdir_defaulted=yes
1132
  # Try the directory containing this script, then the parent directory.
1133
  ac_confdir=`$as_dirname -- "$as_myself" ||
1134
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1135
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1136
	 X"$as_myself" : 'X\(//\)$' \| \
1137
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1138
$as_echo X"$as_myself" |
1139
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1140
	    s//\1/
1141
	    q
1142
	  }
1143
	  /^X\(\/\/\)[^/].*/{
1144
	    s//\1/
1145
	    q
1146
	  }
1147
	  /^X\(\/\/\)$/{
1148
	    s//\1/
1149
	    q
1150
	  }
1151
	  /^X\(\/\).*/{
1152
	    s//\1/
1153
	    q
1154
	  }
1155
	  s/.*/./; q'`
1156
  srcdir=$ac_confdir
1157
  if test ! -r "$srcdir/$ac_unique_file"; then
1158
    srcdir=..
1159
  fi
1160
else
1161
  ac_srcdir_defaulted=no
1162
fi
1163
if test ! -r "$srcdir/$ac_unique_file"; then
1164
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1165
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1166
fi
1167
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1168
ac_abs_confdir=`(
1169
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1170
	pwd)`
1171
# When building in place, set srcdir=.
1172
if test "$ac_abs_confdir" = "$ac_pwd"; then
1173
  srcdir=.
1174
fi
1175
# Remove unnecessary trailing slashes from srcdir.
1176
# Double slashes in file names in object file debugging info
1177
# mess up M-x gdb in Emacs.
1178
case $srcdir in
1179
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1180
esac
1181
for ac_var in $ac_precious_vars; do
1182
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1183
  eval ac_env_${ac_var}_value=\$${ac_var}
1184
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1185
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1186
done
1187

    
1188
#
1189
# Report the --help message.
1190
#
1191
if test "$ac_init_help" = "long"; then
1192
  # Omit some internal or obsolete options to make the list less imposing.
1193
  # This message is too long to be a string in the A/UX 3.1 sh.
1194
  cat <<_ACEOF
1195
\`configure' configures lustrec 1.3-      55 to adapt to many kinds of systems.
1196

    
1197
Usage: $0 [OPTION]... [VAR=VALUE]...
1198

    
1199
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1200
VAR=VALUE.  See below for descriptions of some of the useful variables.
1201

    
1202
Defaults for the options are specified in brackets.
1203

    
1204
Configuration:
1205
  -h, --help              display this help and exit
1206
      --help=short        display options specific to this package
1207
      --help=recursive    display the short help of all the included packages
1208
  -V, --version           display version information and exit
1209
  -q, --quiet, --silent   do not print \`checking ...' messages
1210
      --cache-file=FILE   cache test results in FILE [disabled]
1211
  -C, --config-cache      alias for \`--cache-file=config.cache'
1212
  -n, --no-create         do not create output files
1213
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1214

    
1215
Installation directories:
1216
  --prefix=PREFIX         install architecture-independent files in PREFIX
1217
                          @<:@@S|@ac_default_prefix@:>@
1218
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1219
                          @<:@PREFIX@:>@
1220

    
1221
By default, \`make install' will install all the files in
1222
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1223
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1224
for instance \`--prefix=\$HOME'.
1225

    
1226
For better control, use the options below.
1227

    
1228
Fine tuning of the installation directories:
1229
  --bindir=DIR            user executables [EPREFIX/bin]
1230
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1231
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1232
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1233
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1234
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1235
  --libdir=DIR            object code libraries [EPREFIX/lib]
1236
  --includedir=DIR        C header files [PREFIX/include]
1237
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1238
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1239
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1240
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1241
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1242
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1243
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/lustrec@:>@
1244
  --htmldir=DIR           html documentation [DOCDIR]
1245
  --dvidir=DIR            dvi documentation [DOCDIR]
1246
  --pdfdir=DIR            pdf documentation [DOCDIR]
1247
  --psdir=DIR             ps documentation [DOCDIR]
1248
_ACEOF
1249

    
1250
  cat <<\_ACEOF
1251
_ACEOF
1252
fi
1253

    
1254
if test -n "$ac_init_help"; then
1255
  case $ac_init_help in
1256
     short | recursive ) echo "Configuration of lustrec 1.3-      55:";;
1257
   esac
1258
  cat <<\_ACEOF
1259

    
1260
Optional Packages:
1261
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1262
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1263
  --ocamlgraph-path       specify the path of ocamlgraph library. graph.cmxa
1264
                          should be in ocamlgraph-path @<:@default=@S|@(ocamlfind
1265
                          query ocamlgraph)@:>@
1266

    
1267
Some influential environment variables:
1268
  CC          C compiler command
1269
  CFLAGS      C compiler flags
1270
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1271
              nonstandard directory <lib dir>
1272
  LIBS        libraries to pass to the linker, e.g. -l<library>
1273
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1274
              you have headers in a nonstandard directory <include dir>
1275

    
1276
Use these variables to override the choices made by `configure' or to help
1277
it to find libraries and programs with nonstandard names/locations.
1278

    
1279
Report bugs to <ploc@garoche.net>.
1280
_ACEOF
1281
ac_status=$?
1282
fi
1283

    
1284
if test "$ac_init_help" = "recursive"; then
1285
  # If there are subdirs, report their specific --help.
1286
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1287
    test -d "$ac_dir" ||
1288
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1289
      continue
1290
    ac_builddir=.
1291

    
1292
case "$ac_dir" in
1293
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1294
*)
1295
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1296
  # A ".." for each directory in $ac_dir_suffix.
1297
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1298
  case $ac_top_builddir_sub in
1299
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1301
  esac ;;
1302
esac
1303
ac_abs_top_builddir=$ac_pwd
1304
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1305
# for backward compatibility:
1306
ac_top_builddir=$ac_top_build_prefix
1307

    
1308
case $srcdir in
1309
  .)  # We are building in place.
1310
    ac_srcdir=.
1311
    ac_top_srcdir=$ac_top_builddir_sub
1312
    ac_abs_top_srcdir=$ac_pwd ;;
1313
  [\\/]* | ?:[\\/]* )  # Absolute name.
1314
    ac_srcdir=$srcdir$ac_dir_suffix;
1315
    ac_top_srcdir=$srcdir
1316
    ac_abs_top_srcdir=$srcdir ;;
1317
  *) # Relative name.
1318
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1319
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1320
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1321
esac
1322
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1323

    
1324
    cd "$ac_dir" || { ac_status=$?; continue; }
1325
    # Check for guested configure.
1326
    if test -f "$ac_srcdir/configure.gnu"; then
1327
      echo &&
1328
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1329
    elif test -f "$ac_srcdir/configure"; then
1330
      echo &&
1331
      $SHELL "$ac_srcdir/configure" --help=recursive
1332
    else
1333
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1334
    fi || ac_status=$?
1335
    cd "$ac_pwd" || { ac_status=$?; break; }
1336
  done
1337
fi
1338

    
1339
test -n "$ac_init_help" && exit $ac_status
1340
if $ac_init_version; then
1341
  cat <<\_ACEOF
1342
lustrec configure 1.3-      55
1343
generated by GNU Autoconf 2.69
1344

    
1345
Copyright (C) 2012 Free Software Foundation, Inc.
1346
This configure script is free software; the Free Software Foundation
1347
gives unlimited permission to copy, distribute and modify it.
1348
_ACEOF
1349
  exit
1350
fi
1351

    
1352
## ------------------------ ##
1353
## Autoconf initialization. ##
1354
## ------------------------ ##
1355

    
1356
@%:@ ac_fn_c_try_compile LINENO
1357
@%:@ --------------------------
1358
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1359
ac_fn_c_try_compile ()
1360
{
1361
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1362
  rm -f conftest.$ac_objext
1363
  if { { ac_try="$ac_compile"
1364
case "(($ac_try" in
1365
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1366
  *) ac_try_echo=$ac_try;;
1367
esac
1368
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1369
$as_echo "$ac_try_echo"; } >&5
1370
  (eval "$ac_compile") 2>conftest.err
1371
  ac_status=$?
1372
  if test -s conftest.err; then
1373
    grep -v '^ *+' conftest.err >conftest.er1
1374
    cat conftest.er1 >&5
1375
    mv -f conftest.er1 conftest.err
1376
  fi
1377
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1378
  test $ac_status = 0; } && {
1379
	 test -z "$ac_c_werror_flag" ||
1380
	 test ! -s conftest.err
1381
       } && test -s conftest.$ac_objext; then :
1382
  ac_retval=0
1383
else
1384
  $as_echo "$as_me: failed program was:" >&5
1385
sed 's/^/| /' conftest.$ac_ext >&5
1386

    
1387
	ac_retval=1
1388
fi
1389
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1390
  as_fn_set_status $ac_retval
1391

    
1392
} @%:@ ac_fn_c_try_compile
1393

    
1394
@%:@ ac_fn_c_try_link LINENO
1395
@%:@ -----------------------
1396
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1397
ac_fn_c_try_link ()
1398
{
1399
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1400
  rm -f conftest.$ac_objext conftest$ac_exeext
1401
  if { { ac_try="$ac_link"
1402
case "(($ac_try" in
1403
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1404
  *) ac_try_echo=$ac_try;;
1405
esac
1406
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1407
$as_echo "$ac_try_echo"; } >&5
1408
  (eval "$ac_link") 2>conftest.err
1409
  ac_status=$?
1410
  if test -s conftest.err; then
1411
    grep -v '^ *+' conftest.err >conftest.er1
1412
    cat conftest.er1 >&5
1413
    mv -f conftest.er1 conftest.err
1414
  fi
1415
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1416
  test $ac_status = 0; } && {
1417
	 test -z "$ac_c_werror_flag" ||
1418
	 test ! -s conftest.err
1419
       } && test -s conftest$ac_exeext && {
1420
	 test "$cross_compiling" = yes ||
1421
	 test -x conftest$ac_exeext
1422
       }; then :
1423
  ac_retval=0
1424
else
1425
  $as_echo "$as_me: failed program was:" >&5
1426
sed 's/^/| /' conftest.$ac_ext >&5
1427

    
1428
	ac_retval=1
1429
fi
1430
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1431
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1432
  # interfere with the next link command; also delete a directory that is
1433
  # left behind by Apple's compiler.  We do this before executing the actions.
1434
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1435
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1436
  as_fn_set_status $ac_retval
1437

    
1438
} @%:@ ac_fn_c_try_link
1439
cat >config.log <<_ACEOF
1440
This file contains any messages produced by compilers while
1441
running configure, to aid debugging if configure makes a mistake.
1442

    
1443
It was created by lustrec $as_me 1.3-      55, which was
1444
generated by GNU Autoconf 2.69.  Invocation command line was
1445

    
1446
  $ $0 $@
1447

    
1448
_ACEOF
1449
exec 5>>config.log
1450
{
1451
cat <<_ASUNAME
1452
## --------- ##
1453
## Platform. ##
1454
## --------- ##
1455

    
1456
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1457
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1458
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1459
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1460
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1461

    
1462
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1463
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1464

    
1465
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1466
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1467
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1468
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1469
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1470
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1471
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1472

    
1473
_ASUNAME
1474

    
1475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476
for as_dir in $PATH
1477
do
1478
  IFS=$as_save_IFS
1479
  test -z "$as_dir" && as_dir=.
1480
    $as_echo "PATH: $as_dir"
1481
  done
1482
IFS=$as_save_IFS
1483

    
1484
} >&5
1485

    
1486
cat >&5 <<_ACEOF
1487

    
1488

    
1489
## ----------- ##
1490
## Core tests. ##
1491
## ----------- ##
1492

    
1493
_ACEOF
1494

    
1495

    
1496
# Keep a trace of the command line.
1497
# Strip out --no-create and --no-recursion so they do not pile up.
1498
# Strip out --silent because we don't want to record it for future runs.
1499
# Also quote any args containing shell meta-characters.
1500
# Make two passes to allow for proper duplicate-argument suppression.
1501
ac_configure_args=
1502
ac_configure_args0=
1503
ac_configure_args1=
1504
ac_must_keep_next=false
1505
for ac_pass in 1 2
1506
do
1507
  for ac_arg
1508
  do
1509
    case $ac_arg in
1510
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1511
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512
    | -silent | --silent | --silen | --sile | --sil)
1513
      continue ;;
1514
    *\'*)
1515
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1516
    esac
1517
    case $ac_pass in
1518
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1519
    2)
1520
      as_fn_append ac_configure_args1 " '$ac_arg'"
1521
      if test $ac_must_keep_next = true; then
1522
	ac_must_keep_next=false # Got value, back to normal.
1523
      else
1524
	case $ac_arg in
1525
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1526
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1527
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1528
	  | -with-* | --with-* | -without-* | --without-* | --x)
1529
	    case "$ac_configure_args0 " in
1530
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1531
	    esac
1532
	    ;;
1533
	  -* ) ac_must_keep_next=true ;;
1534
	esac
1535
      fi
1536
      as_fn_append ac_configure_args " '$ac_arg'"
1537
      ;;
1538
    esac
1539
  done
1540
done
1541
{ ac_configure_args0=; unset ac_configure_args0;}
1542
{ ac_configure_args1=; unset ac_configure_args1;}
1543

    
1544
# When interrupted or exit'd, cleanup temporary files, and complete
1545
# config.log.  We remove comments because anyway the quotes in there
1546
# would cause problems or look ugly.
1547
# WARNING: Use '\'' to represent an apostrophe within the trap.
1548
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1549
trap 'exit_status=$?
1550
  # Save into config.log some information that might help in debugging.
1551
  {
1552
    echo
1553

    
1554
    $as_echo "## ---------------- ##
1555
## Cache variables. ##
1556
## ---------------- ##"
1557
    echo
1558
    # The following way of writing the cache mishandles newlines in values,
1559
(
1560
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1561
    eval ac_val=\$$ac_var
1562
    case $ac_val in #(
1563
    *${as_nl}*)
1564
      case $ac_var in #(
1565
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1566
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1567
      esac
1568
      case $ac_var in #(
1569
      _ | IFS | as_nl) ;; #(
1570
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1571
      *) { eval $ac_var=; unset $ac_var;} ;;
1572
      esac ;;
1573
    esac
1574
  done
1575
  (set) 2>&1 |
1576
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1577
    *${as_nl}ac_space=\ *)
1578
      sed -n \
1579
	"s/'\''/'\''\\\\'\'''\''/g;
1580
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1581
      ;; #(
1582
    *)
1583
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1584
      ;;
1585
    esac |
1586
    sort
1587
)
1588
    echo
1589

    
1590
    $as_echo "## ----------------- ##
1591
## Output variables. ##
1592
## ----------------- ##"
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=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599
      esac
1600
      $as_echo "$ac_var='\''$ac_val'\''"
1601
    done | sort
1602
    echo
1603

    
1604
    if test -n "$ac_subst_files"; then
1605
      $as_echo "## ------------------- ##
1606
## File substitutions. ##
1607
## ------------------- ##"
1608
      echo
1609
      for ac_var in $ac_subst_files
1610
      do
1611
	eval ac_val=\$$ac_var
1612
	case $ac_val in
1613
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614
	esac
1615
	$as_echo "$ac_var='\''$ac_val'\''"
1616
      done | sort
1617
      echo
1618
    fi
1619

    
1620
    if test -s confdefs.h; then
1621
      $as_echo "## ----------- ##
1622
## confdefs.h. ##
1623
## ----------- ##"
1624
      echo
1625
      cat confdefs.h
1626
      echo
1627
    fi
1628
    test "$ac_signal" != 0 &&
1629
      $as_echo "$as_me: caught signal $ac_signal"
1630
    $as_echo "$as_me: exit $exit_status"
1631
  } >&5
1632
  rm -f core *.core core.conftest.* &&
1633
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1634
    exit $exit_status
1635
' 0
1636
for ac_signal in 1 2 13 15; do
1637
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1638
done
1639
ac_signal=0
1640

    
1641
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1642
rm -f -r conftest* confdefs.h
1643

    
1644
$as_echo "/* confdefs.h */" > confdefs.h
1645

    
1646
# Predefined preprocessor variables.
1647

    
1648
cat >>confdefs.h <<_ACEOF
1649
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1650
_ACEOF
1651

    
1652
cat >>confdefs.h <<_ACEOF
1653
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1654
_ACEOF
1655

    
1656
cat >>confdefs.h <<_ACEOF
1657
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1658
_ACEOF
1659

    
1660
cat >>confdefs.h <<_ACEOF
1661
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1662
_ACEOF
1663

    
1664
cat >>confdefs.h <<_ACEOF
1665
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1666
_ACEOF
1667

    
1668
cat >>confdefs.h <<_ACEOF
1669
@%:@define PACKAGE_URL "$PACKAGE_URL"
1670
_ACEOF
1671

    
1672

    
1673
# Let the site file select an alternate cache file if it wants to.
1674
# Prefer an explicitly selected file to automatically selected ones.
1675
ac_site_file1=NONE
1676
ac_site_file2=NONE
1677
if test -n "$CONFIG_SITE"; then
1678
  # We do not want a PATH search for config.site.
1679
  case $CONFIG_SITE in @%:@((
1680
    -*)  ac_site_file1=./$CONFIG_SITE;;
1681
    */*) ac_site_file1=$CONFIG_SITE;;
1682
    *)   ac_site_file1=./$CONFIG_SITE;;
1683
  esac
1684
elif test "x$prefix" != xNONE; then
1685
  ac_site_file1=$prefix/share/config.site
1686
  ac_site_file2=$prefix/etc/config.site
1687
else
1688
  ac_site_file1=$ac_default_prefix/share/config.site
1689
  ac_site_file2=$ac_default_prefix/etc/config.site
1690
fi
1691
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1692
do
1693
  test "x$ac_site_file" = xNONE && continue
1694
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1695
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1696
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1697
    sed 's/^/| /' "$ac_site_file" >&5
1698
    . "$ac_site_file" \
1699
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1700
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1701
as_fn_error $? "failed to load site script $ac_site_file
1702
See \`config.log' for more details" "$LINENO" 5; }
1703
  fi
1704
done
1705

    
1706
if test -r "$cache_file"; then
1707
  # Some versions of bash will fail to source /dev/null (special files
1708
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1709
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1710
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1711
$as_echo "$as_me: loading cache $cache_file" >&6;}
1712
    case $cache_file in
1713
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714
      *)                      . "./$cache_file";;
1715
    esac
1716
  fi
1717
else
1718
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1719
$as_echo "$as_me: creating cache $cache_file" >&6;}
1720
  >$cache_file
1721
fi
1722

    
1723
# Check that the precious variables saved in the cache have kept the same
1724
# value.
1725
ac_cache_corrupted=false
1726
for ac_var in $ac_precious_vars; do
1727
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728
  eval ac_new_set=\$ac_env_${ac_var}_set
1729
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730
  eval ac_new_val=\$ac_env_${ac_var}_value
1731
  case $ac_old_set,$ac_new_set in
1732
    set,)
1733
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735
      ac_cache_corrupted=: ;;
1736
    ,set)
1737
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1738
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739
      ac_cache_corrupted=: ;;
1740
    ,);;
1741
    *)
1742
      if test "x$ac_old_val" != "x$ac_new_val"; then
1743
	# differences in whitespace do not lead to failure.
1744
	ac_old_val_w=`echo x $ac_old_val`
1745
	ac_new_val_w=`echo x $ac_new_val`
1746
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1747
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1748
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749
	  ac_cache_corrupted=:
1750
	else
1751
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1752
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1753
	  eval $ac_var=\$ac_old_val
1754
	fi
1755
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1756
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1757
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1758
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1759
      fi;;
1760
  esac
1761
  # Pass precious variables to config.status.
1762
  if test "$ac_new_set" = set; then
1763
    case $ac_new_val in
1764
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765
    *) ac_arg=$ac_var=$ac_new_val ;;
1766
    esac
1767
    case " $ac_configure_args " in
1768
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1769
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1770
    esac
1771
  fi
1772
done
1773
if $ac_cache_corrupted; then
1774
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1775
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1776
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1777
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1778
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1779
fi
1780
## -------------------- ##
1781
## Main body of script. ##
1782
## -------------------- ##
1783

    
1784
ac_ext=c
1785
ac_cpp='$CPP $CPPFLAGS'
1786
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789

    
1790

    
1791
VERSION_CODENAME="Xia/Zhong-Kang-dev"
1792

    
1793
# Next release will be
1794
#AC_INIT([lustrec], [1.3], [ploc@garoche.net])
1795
#AC_SUBST(VERSION_CODENAME, "Xia/Zhong-Kang")
1796

    
1797
#AC_DEFINE(SVN_REVISION, "svnversion", [SVN Revision])
1798
#AC_SUBST(SVN_REVISION)
1799

    
1800

    
1801

    
1802
# default prefix is /usr/local
1803

    
1804

    
1805

    
1806
@%:@ Check whether --with-ocamlgraph-path was given.
1807
if test "${with_ocamlgraph_path+set}" = set; then :
1808
  withval=$with_ocamlgraph_path; if test "x$ocamlgraph_path" = xno; then :
1809
  as_fn_error $? "ocamlgraph library is needed" "$LINENO" 5
1810
elif test "x$ocamlgraph_path" = xyes; then :
1811
  OCAMLGRAPH_PATH=$(ocamlfind query ocamlgraph)
1812
else
1813
  OCAMLGRAPH_PATH=$ocamlgraph_path
1814
        
1815
fi
1816
else
1817
  OCAMLGRAPH_PATH=$(ocamlfind query ocamlgraph)
1818

    
1819
fi
1820

    
1821

    
1822

    
1823
SRC_PATH=/Users/Teme/Documents/GitHub/lustrec
1824

    
1825

    
1826
# Extract the first word of "ocamlc", so it can be a program name with args.
1827
set dummy ocamlc; ac_word=$2
1828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1829
$as_echo_n "checking for $ac_word... " >&6; }
1830
if ${ac_cv_path_OCAMLC+:} false; then :
1831
  $as_echo_n "(cached) " >&6
1832
else
1833
  case $OCAMLC in
1834
  [\\/]* | ?:[\\/]*)
1835
  ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
1836
  ;;
1837
  *)
1838
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839
for as_dir in $PATH
1840
do
1841
  IFS=$as_save_IFS
1842
  test -z "$as_dir" && as_dir=.
1843
    for ac_exec_ext in '' $ac_executable_extensions; do
1844
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845
    ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
1846
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1847
    break 2
1848
  fi
1849
done
1850
  done
1851
IFS=$as_save_IFS
1852

    
1853
  test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC=":"
1854
  ;;
1855
esac
1856
fi
1857
OCAMLC=$ac_cv_path_OCAMLC
1858
if test -n "$OCAMLC"; then
1859
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
1860
$as_echo "$OCAMLC" >&6; }
1861
else
1862
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1863
$as_echo "no" >&6; }
1864
fi
1865

    
1866

    
1867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OCaml version" >&5
1868
$as_echo_n "checking OCaml version... " >&6; }
1869
ocamlc_version=`$OCAMLC -v | grep version | rev| cut -d \  -f 1 | rev`
1870
major=`echo $ocamlc_version | cut -d . -f 1`
1871
minor=`echo $ocamlc_version | cut -d . -f 2`
1872
if (test "$major" -lt 4 -a "$minor" -lt 0 ); then
1873
  as_fn_error $? "Ocaml version must be at least 4.0. You have version $ocamlc_version" "$LINENO" 5
1874
fi
1875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: valid ocaml version detected: $ocamlc_version" >&5
1876
$as_echo "valid ocaml version detected: $ocamlc_version" >&6; }
1877

    
1878
# Extract the first word of "ocamlbuild", so it can be a program name with args.
1879
set dummy ocamlbuild; ac_word=$2
1880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1881
$as_echo_n "checking for $ac_word... " >&6; }
1882
if ${ac_cv_path_OCAMLBUILD+:} false; then :
1883
  $as_echo_n "(cached) " >&6
1884
else
1885
  case $OCAMLBUILD in
1886
  [\\/]* | ?:[\\/]*)
1887
  ac_cv_path_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test with a path.
1888
  ;;
1889
  *)
1890
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891
for as_dir in $PATH
1892
do
1893
  IFS=$as_save_IFS
1894
  test -z "$as_dir" && as_dir=.
1895
    for ac_exec_ext in '' $ac_executable_extensions; do
1896
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897
    ac_cv_path_OCAMLBUILD="$as_dir/$ac_word$ac_exec_ext"
1898
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1899
    break 2
1900
  fi
1901
done
1902
  done
1903
IFS=$as_save_IFS
1904

    
1905
  test -z "$ac_cv_path_OCAMLBUILD" && ac_cv_path_OCAMLBUILD=":"
1906
  ;;
1907
esac
1908
fi
1909
OCAMLBUILD=$ac_cv_path_OCAMLBUILD
1910
if test -n "$OCAMLBUILD"; then
1911
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
1912
$as_echo "$OCAMLBUILD" >&6; }
1913
else
1914
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1915
$as_echo "no" >&6; }
1916
fi
1917

    
1918

    
1919

    
1920

    
1921
# Checking libs
1922

    
1923
# Checks for libraries. OCamlgraph
1924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ocamlgraph library" >&5
1925
$as_echo_n "checking ocamlgraph library... " >&6; }
1926
   ocamlgraph_lib=`find $OCAMLGRAPH_PATH -iname graph.cmxa | grep -m 1 -o "graph.cmxa"`
1927
   if (test "x$ocamlgraph_lib" = xgraph.cmxa ); then
1928
	ocamlgraph_lib_full=`find $OCAMLGRAPH_PATH -iname graph.cmxa | grep -m 1 "graph.cmxa"`
1929
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: library detected: $ocamlgraph_lib_full " >&5
1930
$as_echo "library detected: $ocamlgraph_lib_full " >&6; }
1931
   else
1932
      as_fn_error $? "ocamlgraph library not installed in $OCAMLGRAPH_PATH" "$LINENO" 5
1933
   fi
1934

    
1935
ac_ext=c
1936
ac_cpp='$CPP $CPPFLAGS'
1937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
if test -n "$ac_tool_prefix"; then
1941
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1942
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1944
$as_echo_n "checking for $ac_word... " >&6; }
1945
if ${ac_cv_prog_CC+:} false; then :
1946
  $as_echo_n "(cached) " >&6
1947
else
1948
  if test -n "$CC"; then
1949
  ac_cv_prog_CC="$CC" # Let the user override the test.
1950
else
1951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952
for as_dir in $PATH
1953
do
1954
  IFS=$as_save_IFS
1955
  test -z "$as_dir" && as_dir=.
1956
    for ac_exec_ext in '' $ac_executable_extensions; do
1957
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1959
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1960
    break 2
1961
  fi
1962
done
1963
  done
1964
IFS=$as_save_IFS
1965

    
1966
fi
1967
fi
1968
CC=$ac_cv_prog_CC
1969
if test -n "$CC"; then
1970
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1971
$as_echo "$CC" >&6; }
1972
else
1973
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1974
$as_echo "no" >&6; }
1975
fi
1976

    
1977

    
1978
fi
1979
if test -z "$ac_cv_prog_CC"; then
1980
  ac_ct_CC=$CC
1981
  # Extract the first word of "gcc", so it can be a program name with args.
1982
set dummy gcc; ac_word=$2
1983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1984
$as_echo_n "checking for $ac_word... " >&6; }
1985
if ${ac_cv_prog_ac_ct_CC+:} false; then :
1986
  $as_echo_n "(cached) " >&6
1987
else
1988
  if test -n "$ac_ct_CC"; then
1989
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1990
else
1991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992
for as_dir in $PATH
1993
do
1994
  IFS=$as_save_IFS
1995
  test -z "$as_dir" && as_dir=.
1996
    for ac_exec_ext in '' $ac_executable_extensions; do
1997
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998
    ac_cv_prog_ac_ct_CC="gcc"
1999
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2000
    break 2
2001
  fi
2002
done
2003
  done
2004
IFS=$as_save_IFS
2005

    
2006
fi
2007
fi
2008
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2009
if test -n "$ac_ct_CC"; then
2010
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2011
$as_echo "$ac_ct_CC" >&6; }
2012
else
2013
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2014
$as_echo "no" >&6; }
2015
fi
2016

    
2017
  if test "x$ac_ct_CC" = x; then
2018
    CC=""
2019
  else
2020
    case $cross_compiling:$ac_tool_warned in
2021
yes:)
2022
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2023
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2024
ac_tool_warned=yes ;;
2025
esac
2026
    CC=$ac_ct_CC
2027
  fi
2028
else
2029
  CC="$ac_cv_prog_CC"
2030
fi
2031

    
2032
if test -z "$CC"; then
2033
          if test -n "$ac_tool_prefix"; then
2034
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2035
set dummy ${ac_tool_prefix}cc; ac_word=$2
2036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2037
$as_echo_n "checking for $ac_word... " >&6; }
2038
if ${ac_cv_prog_CC+:} false; then :
2039
  $as_echo_n "(cached) " >&6
2040
else
2041
  if test -n "$CC"; then
2042
  ac_cv_prog_CC="$CC" # Let the user override the test.
2043
else
2044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045
for as_dir in $PATH
2046
do
2047
  IFS=$as_save_IFS
2048
  test -z "$as_dir" && as_dir=.
2049
    for ac_exec_ext in '' $ac_executable_extensions; do
2050
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2052
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2053
    break 2
2054
  fi
2055
done
2056
  done
2057
IFS=$as_save_IFS
2058

    
2059
fi
2060
fi
2061
CC=$ac_cv_prog_CC
2062
if test -n "$CC"; then
2063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2064
$as_echo "$CC" >&6; }
2065
else
2066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2067
$as_echo "no" >&6; }
2068
fi
2069

    
2070

    
2071
  fi
2072
fi
2073
if test -z "$CC"; then
2074
  # Extract the first word of "cc", so it can be a program name with args.
2075
set dummy cc; ac_word=$2
2076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2077
$as_echo_n "checking for $ac_word... " >&6; }
2078
if ${ac_cv_prog_CC+:} false; then :
2079
  $as_echo_n "(cached) " >&6
2080
else
2081
  if test -n "$CC"; then
2082
  ac_cv_prog_CC="$CC" # Let the user override the test.
2083
else
2084
  ac_prog_rejected=no
2085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086
for as_dir in $PATH
2087
do
2088
  IFS=$as_save_IFS
2089
  test -z "$as_dir" && as_dir=.
2090
    for ac_exec_ext in '' $ac_executable_extensions; do
2091
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2093
       ac_prog_rejected=yes
2094
       continue
2095
     fi
2096
    ac_cv_prog_CC="cc"
2097
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2098
    break 2
2099
  fi
2100
done
2101
  done
2102
IFS=$as_save_IFS
2103

    
2104
if test $ac_prog_rejected = yes; then
2105
  # We found a bogon in the path, so make sure we never use it.
2106
  set dummy $ac_cv_prog_CC
2107
  shift
2108
  if test $@%:@ != 0; then
2109
    # We chose a different compiler from the bogus one.
2110
    # However, it has the same basename, so the bogon will be chosen
2111
    # first if we set CC to just the basename; use the full file name.
2112
    shift
2113
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2114
  fi
2115
fi
2116
fi
2117
fi
2118
CC=$ac_cv_prog_CC
2119
if test -n "$CC"; then
2120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2121
$as_echo "$CC" >&6; }
2122
else
2123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2124
$as_echo "no" >&6; }
2125
fi
2126

    
2127

    
2128
fi
2129
if test -z "$CC"; then
2130
  if test -n "$ac_tool_prefix"; then
2131
  for ac_prog in cl.exe
2132
  do
2133
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2136
$as_echo_n "checking for $ac_word... " >&6; }
2137
if ${ac_cv_prog_CC+:} false; then :
2138
  $as_echo_n "(cached) " >&6
2139
else
2140
  if test -n "$CC"; then
2141
  ac_cv_prog_CC="$CC" # Let the user override the test.
2142
else
2143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144
for as_dir in $PATH
2145
do
2146
  IFS=$as_save_IFS
2147
  test -z "$as_dir" && as_dir=.
2148
    for ac_exec_ext in '' $ac_executable_extensions; do
2149
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2152
    break 2
2153
  fi
2154
done
2155
  done
2156
IFS=$as_save_IFS
2157

    
2158
fi
2159
fi
2160
CC=$ac_cv_prog_CC
2161
if test -n "$CC"; then
2162
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2163
$as_echo "$CC" >&6; }
2164
else
2165
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2166
$as_echo "no" >&6; }
2167
fi
2168

    
2169

    
2170
    test -n "$CC" && break
2171
  done
2172
fi
2173
if test -z "$CC"; then
2174
  ac_ct_CC=$CC
2175
  for ac_prog in cl.exe
2176
do
2177
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2178
set dummy $ac_prog; ac_word=$2
2179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2180
$as_echo_n "checking for $ac_word... " >&6; }
2181
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2182
  $as_echo_n "(cached) " >&6
2183
else
2184
  if test -n "$ac_ct_CC"; then
2185
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186
else
2187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188
for as_dir in $PATH
2189
do
2190
  IFS=$as_save_IFS
2191
  test -z "$as_dir" && as_dir=.
2192
    for ac_exec_ext in '' $ac_executable_extensions; do
2193
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2194
    ac_cv_prog_ac_ct_CC="$ac_prog"
2195
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2196
    break 2
2197
  fi
2198
done
2199
  done
2200
IFS=$as_save_IFS
2201

    
2202
fi
2203
fi
2204
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205
if test -n "$ac_ct_CC"; then
2206
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2207
$as_echo "$ac_ct_CC" >&6; }
2208
else
2209
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2210
$as_echo "no" >&6; }
2211
fi
2212

    
2213

    
2214
  test -n "$ac_ct_CC" && break
2215
done
2216

    
2217
  if test "x$ac_ct_CC" = x; then
2218
    CC=""
2219
  else
2220
    case $cross_compiling:$ac_tool_warned in
2221
yes:)
2222
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2223
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2224
ac_tool_warned=yes ;;
2225
esac
2226
    CC=$ac_ct_CC
2227
  fi
2228
fi
2229

    
2230
fi
2231

    
2232

    
2233
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2234
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235
as_fn_error $? "no acceptable C compiler found in \$PATH
2236
See \`config.log' for more details" "$LINENO" 5; }
2237

    
2238
# Provide some information about the compiler.
2239
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2240
set X $ac_compile
2241
ac_compiler=$2
2242
for ac_option in --version -v -V -qversion; do
2243
  { { ac_try="$ac_compiler $ac_option >&5"
2244
case "(($ac_try" in
2245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246
  *) ac_try_echo=$ac_try;;
2247
esac
2248
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249
$as_echo "$ac_try_echo"; } >&5
2250
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2251
  ac_status=$?
2252
  if test -s conftest.err; then
2253
    sed '10a\
2254
... rest of stderr output deleted ...
2255
         10q' conftest.err >conftest.er1
2256
    cat conftest.er1 >&5
2257
  fi
2258
  rm -f conftest.er1 conftest.err
2259
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260
  test $ac_status = 0; }
2261
done
2262

    
2263
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264
/* end confdefs.h.  */
2265

    
2266
int
2267
main ()
2268
{
2269

    
2270
  ;
2271
  return 0;
2272
}
2273
_ACEOF
2274
ac_clean_files_save=$ac_clean_files
2275
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2276
# Try to create an executable without -o first, disregard a.out.
2277
# It will help us diagnose broken compilers, and finding out an intuition
2278
# of exeext.
2279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2280
$as_echo_n "checking whether the C compiler works... " >&6; }
2281
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2282

    
2283
# The possible output files:
2284
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2285

    
2286
ac_rmfiles=
2287
for ac_file in $ac_files
2288
do
2289
  case $ac_file in
2290
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2291
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2292
  esac
2293
done
2294
rm -f $ac_rmfiles
2295

    
2296
if { { ac_try="$ac_link_default"
2297
case "(($ac_try" in
2298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299
  *) ac_try_echo=$ac_try;;
2300
esac
2301
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302
$as_echo "$ac_try_echo"; } >&5
2303
  (eval "$ac_link_default") 2>&5
2304
  ac_status=$?
2305
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306
  test $ac_status = 0; }; then :
2307
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2308
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2309
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2310
# so that the user can short-circuit this test for compilers unknown to
2311
# Autoconf.
2312
for ac_file in $ac_files ''
2313
do
2314
  test -f "$ac_file" || continue
2315
  case $ac_file in
2316
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2317
	;;
2318
    [ab].out )
2319
	# We found the default executable, but exeext='' is most
2320
	# certainly right.
2321
	break;;
2322
    *.* )
2323
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2324
	then :; else
2325
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326
	fi
2327
	# We set ac_cv_exeext here because the later test for it is not
2328
	# safe: cross compilers may not add the suffix if given an `-o'
2329
	# argument, so we may need to know it at that point already.
2330
	# Even if this section looks crufty: it has the advantage of
2331
	# actually working.
2332
	break;;
2333
    * )
2334
	break;;
2335
  esac
2336
done
2337
test "$ac_cv_exeext" = no && ac_cv_exeext=
2338

    
2339
else
2340
  ac_file=''
2341
fi
2342
if test -z "$ac_file"; then :
2343
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344
$as_echo "no" >&6; }
2345
$as_echo "$as_me: failed program was:" >&5
2346
sed 's/^/| /' conftest.$ac_ext >&5
2347

    
2348
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350
as_fn_error 77 "C compiler cannot create executables
2351
See \`config.log' for more details" "$LINENO" 5; }
2352
else
2353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2354
$as_echo "yes" >&6; }
2355
fi
2356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2357
$as_echo_n "checking for C compiler default output file name... " >&6; }
2358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2359
$as_echo "$ac_file" >&6; }
2360
ac_exeext=$ac_cv_exeext
2361

    
2362
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2363
ac_clean_files=$ac_clean_files_save
2364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2365
$as_echo_n "checking for suffix of executables... " >&6; }
2366
if { { ac_try="$ac_link"
2367
case "(($ac_try" in
2368
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369
  *) ac_try_echo=$ac_try;;
2370
esac
2371
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372
$as_echo "$ac_try_echo"; } >&5
2373
  (eval "$ac_link") 2>&5
2374
  ac_status=$?
2375
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376
  test $ac_status = 0; }; then :
2377
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2378
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2379
# work properly (i.e., refer to `conftest.exe'), while it won't with
2380
# `rm'.
2381
for ac_file in conftest.exe conftest conftest.*; do
2382
  test -f "$ac_file" || continue
2383
  case $ac_file in
2384
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2385
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2386
	  break;;
2387
    * ) break;;
2388
  esac
2389
done
2390
else
2391
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2392
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2393
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2394
See \`config.log' for more details" "$LINENO" 5; }
2395
fi
2396
rm -f conftest conftest$ac_cv_exeext
2397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2398
$as_echo "$ac_cv_exeext" >&6; }
2399

    
2400
rm -f conftest.$ac_ext
2401
EXEEXT=$ac_cv_exeext
2402
ac_exeext=$EXEEXT
2403
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404
/* end confdefs.h.  */
2405
@%:@include <stdio.h>
2406
int
2407
main ()
2408
{
2409
FILE *f = fopen ("conftest.out", "w");
2410
 return ferror (f) || fclose (f) != 0;
2411

    
2412
  ;
2413
  return 0;
2414
}
2415
_ACEOF
2416
ac_clean_files="$ac_clean_files conftest.out"
2417
# Check that the compiler produces executables we can run.  If not, either
2418
# the compiler is broken, or we cross compile.
2419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2420
$as_echo_n "checking whether we are cross compiling... " >&6; }
2421
if test "$cross_compiling" != yes; then
2422
  { { ac_try="$ac_link"
2423
case "(($ac_try" in
2424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425
  *) ac_try_echo=$ac_try;;
2426
esac
2427
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428
$as_echo "$ac_try_echo"; } >&5
2429
  (eval "$ac_link") 2>&5
2430
  ac_status=$?
2431
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2432
  test $ac_status = 0; }
2433
  if { ac_try='./conftest$ac_cv_exeext'
2434
  { { case "(($ac_try" in
2435
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436
  *) ac_try_echo=$ac_try;;
2437
esac
2438
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2439
$as_echo "$ac_try_echo"; } >&5
2440
  (eval "$ac_try") 2>&5
2441
  ac_status=$?
2442
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2443
  test $ac_status = 0; }; }; then
2444
    cross_compiling=no
2445
  else
2446
    if test "$cross_compiling" = maybe; then
2447
	cross_compiling=yes
2448
    else
2449
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451
as_fn_error $? "cannot run C compiled programs.
2452
If you meant to cross compile, use \`--host'.
2453
See \`config.log' for more details" "$LINENO" 5; }
2454
    fi
2455
  fi
2456
fi
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2458
$as_echo "$cross_compiling" >&6; }
2459

    
2460
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2461
ac_clean_files=$ac_clean_files_save
2462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2463
$as_echo_n "checking for suffix of object files... " >&6; }
2464
if ${ac_cv_objext+:} false; then :
2465
  $as_echo_n "(cached) " >&6
2466
else
2467
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468
/* end confdefs.h.  */
2469

    
2470
int
2471
main ()
2472
{
2473

    
2474
  ;
2475
  return 0;
2476
}
2477
_ACEOF
2478
rm -f conftest.o conftest.obj
2479
if { { ac_try="$ac_compile"
2480
case "(($ac_try" in
2481
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482
  *) ac_try_echo=$ac_try;;
2483
esac
2484
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485
$as_echo "$ac_try_echo"; } >&5
2486
  (eval "$ac_compile") 2>&5
2487
  ac_status=$?
2488
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2489
  test $ac_status = 0; }; then :
2490
  for ac_file in conftest.o conftest.obj conftest.*; do
2491
  test -f "$ac_file" || continue;
2492
  case $ac_file in
2493
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2494
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2495
       break;;
2496
  esac
2497
done
2498
else
2499
  $as_echo "$as_me: failed program was:" >&5
2500
sed 's/^/| /' conftest.$ac_ext >&5
2501

    
2502
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504
as_fn_error $? "cannot compute suffix of object files: cannot compile
2505
See \`config.log' for more details" "$LINENO" 5; }
2506
fi
2507
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2508
fi
2509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2510
$as_echo "$ac_cv_objext" >&6; }
2511
OBJEXT=$ac_cv_objext
2512
ac_objext=$OBJEXT
2513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2514
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2515
if ${ac_cv_c_compiler_gnu+:} false; then :
2516
  $as_echo_n "(cached) " >&6
2517
else
2518
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519
/* end confdefs.h.  */
2520

    
2521
int
2522
main ()
2523
{
2524
#ifndef __GNUC__
2525
       choke me
2526
#endif
2527

    
2528
  ;
2529
  return 0;
2530
}
2531
_ACEOF
2532
if ac_fn_c_try_compile "$LINENO"; then :
2533
  ac_compiler_gnu=yes
2534
else
2535
  ac_compiler_gnu=no
2536
fi
2537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2539

    
2540
fi
2541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2542
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2543
if test $ac_compiler_gnu = yes; then
2544
  GCC=yes
2545
else
2546
  GCC=
2547
fi
2548
ac_test_CFLAGS=${CFLAGS+set}
2549
ac_save_CFLAGS=$CFLAGS
2550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2551
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2552
if ${ac_cv_prog_cc_g+:} false; then :
2553
  $as_echo_n "(cached) " >&6
2554
else
2555
  ac_save_c_werror_flag=$ac_c_werror_flag
2556
   ac_c_werror_flag=yes
2557
   ac_cv_prog_cc_g=no
2558
   CFLAGS="-g"
2559
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560
/* end confdefs.h.  */
2561

    
2562
int
2563
main ()
2564
{
2565

    
2566
  ;
2567
  return 0;
2568
}
2569
_ACEOF
2570
if ac_fn_c_try_compile "$LINENO"; then :
2571
  ac_cv_prog_cc_g=yes
2572
else
2573
  CFLAGS=""
2574
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575
/* end confdefs.h.  */
2576

    
2577
int
2578
main ()
2579
{
2580

    
2581
  ;
2582
  return 0;
2583
}
2584
_ACEOF
2585
if ac_fn_c_try_compile "$LINENO"; then :
2586
  
2587
else
2588
  ac_c_werror_flag=$ac_save_c_werror_flag
2589
	 CFLAGS="-g"
2590
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591
/* end confdefs.h.  */
2592

    
2593
int
2594
main ()
2595
{
2596

    
2597
  ;
2598
  return 0;
2599
}
2600
_ACEOF
2601
if ac_fn_c_try_compile "$LINENO"; then :
2602
  ac_cv_prog_cc_g=yes
2603
fi
2604
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605
fi
2606
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607
fi
2608
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609
   ac_c_werror_flag=$ac_save_c_werror_flag
2610
fi
2611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2612
$as_echo "$ac_cv_prog_cc_g" >&6; }
2613
if test "$ac_test_CFLAGS" = set; then
2614
  CFLAGS=$ac_save_CFLAGS
2615
elif test $ac_cv_prog_cc_g = yes; then
2616
  if test "$GCC" = yes; then
2617
    CFLAGS="-g -O2"
2618
  else
2619
    CFLAGS="-g"
2620
  fi
2621
else
2622
  if test "$GCC" = yes; then
2623
    CFLAGS="-O2"
2624
  else
2625
    CFLAGS=
2626
  fi
2627
fi
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2629
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2630
if ${ac_cv_prog_cc_c89+:} false; then :
2631
  $as_echo_n "(cached) " >&6
2632
else
2633
  ac_cv_prog_cc_c89=no
2634
ac_save_CC=$CC
2635
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636
/* end confdefs.h.  */
2637
#include <stdarg.h>
2638
#include <stdio.h>
2639
struct stat;
2640
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2641
struct buf { int x; };
2642
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2643
static char *e (p, i)
2644
     char **p;
2645
     int i;
2646
{
2647
  return p[i];
2648
}
2649
static char *f (char * (*g) (char **, int), char **p, ...)
2650
{
2651
  char *s;
2652
  va_list v;
2653
  va_start (v,p);
2654
  s = g (p, va_arg (v,int));
2655
  va_end (v);
2656
  return s;
2657
}
2658

    
2659
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2660
   function prototypes and stuff, but not '\xHH' hex character constants.
2661
   These don't provoke an error unfortunately, instead are silently treated
2662
   as 'x'.  The following induces an error, until -std is added to get
2663
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2664
   array size at least.  It's necessary to write '\x00'==0 to get something
2665
   that's true only with -std.  */
2666
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2667

    
2668
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2669
   inside strings and character constants.  */
2670
#define FOO(x) 'x'
2671
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2672

    
2673
int test (int i, double x);
2674
struct s1 {int (*f) (int a);};
2675
struct s2 {int (*f) (double a);};
2676
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2677
int argc;
2678
char **argv;
2679
int
2680
main ()
2681
{
2682
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2683
  ;
2684
  return 0;
2685
}
2686
_ACEOF
2687
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2688
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2689
do
2690
  CC="$ac_save_CC $ac_arg"
2691
  if ac_fn_c_try_compile "$LINENO"; then :
2692
  ac_cv_prog_cc_c89=$ac_arg
2693
fi
2694
rm -f core conftest.err conftest.$ac_objext
2695
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2696
done
2697
rm -f conftest.$ac_ext
2698
CC=$ac_save_CC
2699

    
2700
fi
2701
# AC_CACHE_VAL
2702
case "x$ac_cv_prog_cc_c89" in
2703
  x)
2704
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2705
$as_echo "none needed" >&6; } ;;
2706
  xno)
2707
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2708
$as_echo "unsupported" >&6; } ;;
2709
  *)
2710
    CC="$CC $ac_cv_prog_cc_c89"
2711
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2712
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2713
esac
2714
if test "x$ac_cv_prog_cc_c89" != xno; then :
2715
  
2716
fi
2717

    
2718
ac_ext=c
2719
ac_cpp='$CPP $CPPFLAGS'
2720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723

    
2724

    
2725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
2726
$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
2727
if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
2728
  $as_echo_n "(cached) " >&6
2729
else
2730
  ac_check_lib_save_LIBS=$LIBS
2731
LIBS="-lgmp  $LIBS"
2732
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733
/* end confdefs.h.  */
2734

    
2735
/* Override any GCC internal prototype to avoid an error.
2736
   Use char because int might match the return type of a GCC
2737
   builtin and then its argument prototype would still apply.  */
2738
#ifdef __cplusplus
2739
extern "C"
2740
#endif
2741
char __gmpz_init ();
2742
int
2743
main ()
2744
{
2745
return __gmpz_init ();
2746
  ;
2747
  return 0;
2748
}
2749
_ACEOF
2750
if ac_fn_c_try_link "$LINENO"; then :
2751
  ac_cv_lib_gmp___gmpz_init=yes
2752
else
2753
  ac_cv_lib_gmp___gmpz_init=no
2754
fi
2755
rm -f core conftest.err conftest.$ac_objext \
2756
    conftest$ac_exeext conftest.$ac_ext
2757
LIBS=$ac_check_lib_save_LIBS
2758
fi
2759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
2760
$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
2761
if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
2762
  gmp=yes
2763
else
2764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU MP not found" >&5
2765
$as_echo "GNU MP not found" >&6; }
2766
      gmp=no
2767
fi
2768

    
2769

    
2770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_add in -lmpfr" >&5
2771
$as_echo_n "checking for mpfr_add in -lmpfr... " >&6; }
2772
if ${ac_cv_lib_mpfr_mpfr_add+:} false; then :
2773
  $as_echo_n "(cached) " >&6
2774
else
2775
  ac_check_lib_save_LIBS=$LIBS
2776
LIBS="-lmpfr  $LIBS"
2777
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778
/* end confdefs.h.  */
2779

    
2780
/* Override any GCC internal prototype to avoid an error.
2781
   Use char because int might match the return type of a GCC
2782
   builtin and then its argument prototype would still apply.  */
2783
#ifdef __cplusplus
2784
extern "C"
2785
#endif
2786
char mpfr_add ();
2787
int
2788
main ()
2789
{
2790
return mpfr_add ();
2791
  ;
2792
  return 0;
2793
}
2794
_ACEOF
2795
if ac_fn_c_try_link "$LINENO"; then :
2796
  ac_cv_lib_mpfr_mpfr_add=yes
2797
else
2798
  ac_cv_lib_mpfr_mpfr_add=no
2799
fi
2800
rm -f core conftest.err conftest.$ac_objext \
2801
    conftest$ac_exeext conftest.$ac_ext
2802
LIBS=$ac_check_lib_save_LIBS
2803
fi
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_add" >&5
2805
$as_echo "$ac_cv_lib_mpfr_mpfr_add" >&6; }
2806
if test "x$ac_cv_lib_mpfr_mpfr_add" = xyes; then :
2807
  mpfr=yes
2808
else
2809
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: MPFR not found" >&5
2810
$as_echo "MPFR not found" >&6; }
2811
mpfr=no
2812
fi
2813

    
2814

    
2815

    
2816
# Workaround to solve an issue with ocamlbuild and C libraries.
2817
# oCFLAGS="$CFLAGS"
2818
# CFLAGS="$FLAGS -Wl,--no-as-needed"
2819
# AC_MSG_CHECKING([whether we need to add --no-as-needed linking option])
2820
# AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
2821
#                                      [[
2822
#                                         int main(){ return 0; }
2823
#                                     ]])],
2824
#                   [AC_MSG_RESULT([yes]); CC_NOASNEEDED="true"],
2825
#                   [AC_MSG_RESULT([no]); CC_NOASNEEDED="false"])
2826
# CFLAGS=$oCFLAGS
2827
# AC_SUBST(CC_NOASNEEDED)
2828

    
2829

    
2830
# End of config
2831

    
2832

    
2833

    
2834

    
2835
  prefix_NONE=
2836
  exec_prefix_NONE=
2837
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
2838
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
2839
  eval ac_define_dir="\"$datadir\""
2840
  eval ac_define_dir="\"$ac_define_dir\""
2841
  abs_datadir="$ac_define_dir"
2842

    
2843
  cat >>confdefs.h <<_ACEOF
2844
@%:@define abs_datadir "$ac_define_dir"
2845
_ACEOF
2846

    
2847
  test "$prefix_NONE" && prefix=NONE
2848
  test "$exec_prefix_NONE" && exec_prefix=NONE
2849

    
2850

    
2851
# Instanciation
2852
ac_config_files="$ac_config_files Makefile src/Makefile src/version.ml test/test-compile.sh"
2853

    
2854

    
2855
cat >confcache <<\_ACEOF
2856
# This file is a shell script that caches the results of configure
2857
# tests run on this system so they can be shared between configure
2858
# scripts and configure runs, see configure's option --config-cache.
2859
# It is not useful on other systems.  If it contains results you don't
2860
# want to keep, you may remove or edit it.
2861
#
2862
# config.status only pays attention to the cache file if you give it
2863
# the --recheck option to rerun configure.
2864
#
2865
# `ac_cv_env_foo' variables (set or unset) will be overridden when
2866
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2867
# following values.
2868

    
2869
_ACEOF
2870

    
2871
# The following way of writing the cache mishandles newlines in values,
2872
# but we know of no workaround that is simple, portable, and efficient.
2873
# So, we kill variables containing newlines.
2874
# Ultrix sh set writes to stderr and can't be redirected directly,
2875
# and sets the high bit in the cache file unless we assign to the vars.
2876
(
2877
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2878
    eval ac_val=\$$ac_var
2879
    case $ac_val in #(
2880
    *${as_nl}*)
2881
      case $ac_var in #(
2882
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2883
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2884
      esac
2885
      case $ac_var in #(
2886
      _ | IFS | as_nl) ;; #(
2887
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2888
      *) { eval $ac_var=; unset $ac_var;} ;;
2889
      esac ;;
2890
    esac
2891
  done
2892

    
2893
  (set) 2>&1 |
2894
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
2895
    *${as_nl}ac_space=\ *)
2896
      # `set' does not quote correctly, so add quotes: double-quote
2897
      # substitution turns \\\\ into \\, and sed turns \\ into \.
2898
      sed -n \
2899
	"s/'/'\\\\''/g;
2900
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2901
      ;; #(
2902
    *)
2903
      # `set' quotes correctly as required by POSIX, so do not add quotes.
2904
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2905
      ;;
2906
    esac |
2907
    sort
2908
) |
2909
  sed '
2910
     /^ac_cv_env_/b end
2911
     t clear
2912
     :clear
2913
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2914
     t end
2915
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2916
     :end' >>confcache
2917
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2918
  if test -w "$cache_file"; then
2919
    if test "x$cache_file" != "x/dev/null"; then
2920
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2921
$as_echo "$as_me: updating cache $cache_file" >&6;}
2922
      if test ! -f "$cache_file" || test -h "$cache_file"; then
2923
	cat confcache >"$cache_file"
2924
      else
2925
        case $cache_file in #(
2926
        */* | ?:*)
2927
	  mv -f confcache "$cache_file"$$ &&
2928
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
2929
        *)
2930
	  mv -f confcache "$cache_file" ;;
2931
	esac
2932
      fi
2933
    fi
2934
  else
2935
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2936
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2937
  fi
2938
fi
2939
rm -f confcache
2940

    
2941
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2942
# Let make expand exec_prefix.
2943
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2944

    
2945
# Transform confdefs.h into DEFS.
2946
# Protect against shell expansion while executing Makefile rules.
2947
# Protect against Makefile macro expansion.
2948
#
2949
# If the first sed substitution is executed (which looks for macros that
2950
# take arguments), then branch to the quote section.  Otherwise,
2951
# look for a macro that doesn't take arguments.
2952
ac_script='
2953
:mline
2954
/\\$/{
2955
 N
2956
 s,\\\n,,
2957
 b mline
2958
}
2959
t clear
2960
:clear
2961
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
2962
t quote
2963
s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
2964
t quote
2965
b any
2966
:quote
2967
s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2968
s/\[/\\&/g
2969
s/\]/\\&/g
2970
s/\$/$$/g
2971
H
2972
:any
2973
${
2974
	g
2975
	s/^\n//
2976
	s/\n/ /g
2977
	p
2978
}
2979
'
2980
DEFS=`sed -n "$ac_script" confdefs.h`
2981

    
2982

    
2983
ac_libobjs=
2984
ac_ltlibobjs=
2985
U=
2986
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
2987
  # 1. Remove the extension, and $U if already installed.
2988
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2989
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2990
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2991
  #    will be set to the directory where LIBOBJS objects are built.
2992
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2993
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2994
done
2995
LIB@&t@OBJS=$ac_libobjs
2996

    
2997
LTLIBOBJS=$ac_ltlibobjs
2998

    
2999

    
3000

    
3001
: "${CONFIG_STATUS=./config.status}"
3002
ac_write_fail=0
3003
ac_clean_files_save=$ac_clean_files
3004
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3005
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3006
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3007
as_write_fail=0
3008
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3009
#! $SHELL
3010
# Generated by $as_me.
3011
# Run this file to recreate the current configuration.
3012
# Compiler output produced by configure, useful for debugging
3013
# configure, is in config.log if it exists.
3014

    
3015
debug=false
3016
ac_cs_recheck=false
3017
ac_cs_silent=false
3018

    
3019
SHELL=\${CONFIG_SHELL-$SHELL}
3020
export SHELL
3021
_ASEOF
3022
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3023
## -------------------- ##
3024
## M4sh Initialization. ##
3025
## -------------------- ##
3026

    
3027
# Be more Bourne compatible
3028
DUALCASE=1; export DUALCASE # for MKS sh
3029
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3030
  emulate sh
3031
  NULLCMD=:
3032
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3033
  # is contrary to our usage.  Disable this feature.
3034
  alias -g '${1+"$@"}'='"$@"'
3035
  setopt NO_GLOB_SUBST
3036
else
3037
  case `(set -o) 2>/dev/null` in @%:@(
3038
  *posix*) :
3039
    set -o posix ;; @%:@(
3040
  *) :
3041
     ;;
3042
esac
3043
fi
3044

    
3045

    
3046
as_nl='
3047
'
3048
export as_nl
3049
# Printing a long string crashes Solaris 7 /usr/bin/printf.
3050
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3051
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3052
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3053
# Prefer a ksh shell builtin over an external printf program on Solaris,
3054
# but without wasting forks for bash or zsh.
3055
if test -z "$BASH_VERSION$ZSH_VERSION" \
3056
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3057
  as_echo='print -r --'
3058
  as_echo_n='print -rn --'
3059
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3060
  as_echo='printf %s\n'
3061
  as_echo_n='printf %s'
3062
else
3063
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3064
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3065
    as_echo_n='/usr/ucb/echo -n'
3066
  else
3067
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3068
    as_echo_n_body='eval
3069
      arg=$1;
3070
      case $arg in @%:@(
3071
      *"$as_nl"*)
3072
	expr "X$arg" : "X\\(.*\\)$as_nl";
3073
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3074
      esac;
3075
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3076
    '
3077
    export as_echo_n_body
3078
    as_echo_n='sh -c $as_echo_n_body as_echo'
3079
  fi
3080
  export as_echo_body
3081
  as_echo='sh -c $as_echo_body as_echo'
3082
fi
3083

    
3084
# The user is always right.
3085
if test "${PATH_SEPARATOR+set}" != set; then
3086
  PATH_SEPARATOR=:
3087
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3088
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3089
      PATH_SEPARATOR=';'
3090
  }
3091
fi
3092

    
3093

    
3094
# IFS
3095
# We need space, tab and new line, in precisely that order.  Quoting is
3096
# there to prevent editors from complaining about space-tab.
3097
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3098
# splitting by setting IFS to empty value.)
3099
IFS=" ""	$as_nl"
3100

    
3101
# Find who we are.  Look in the path if we contain no directory separator.
3102
as_myself=
3103
case $0 in @%:@((
3104
  *[\\/]* ) as_myself=$0 ;;
3105
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106
for as_dir in $PATH
3107
do
3108
  IFS=$as_save_IFS
3109
  test -z "$as_dir" && as_dir=.
3110
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3111
  done
3112
IFS=$as_save_IFS
3113

    
3114
     ;;
3115
esac
3116
# We did not find ourselves, most probably we were run as `sh COMMAND'
3117
# in which case we are not to be found in the path.
3118
if test "x$as_myself" = x; then
3119
  as_myself=$0
3120
fi
3121
if test ! -f "$as_myself"; then
3122
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3123
  exit 1
3124
fi
3125

    
3126
# Unset variables that we do not need and which cause bugs (e.g. in
3127
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3128
# suppresses any "Segmentation fault" message there.  '((' could
3129
# trigger a bug in pdksh 5.2.14.
3130
for as_var in BASH_ENV ENV MAIL MAILPATH
3131
do eval test x\${$as_var+set} = xset \
3132
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3133
done
3134
PS1='$ '
3135
PS2='> '
3136
PS4='+ '
3137

    
3138
# NLS nuisances.
3139
LC_ALL=C
3140
export LC_ALL
3141
LANGUAGE=C
3142
export LANGUAGE
3143

    
3144
# CDPATH.
3145
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3146

    
3147

    
3148
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
3149
@%:@ ----------------------------------------
3150
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3151
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3152
@%:@ script with STATUS, using 1 if that was 0.
3153
as_fn_error ()
3154
{
3155
  as_status=$1; test $as_status -eq 0 && as_status=1
3156
  if test "$4"; then
3157
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3158
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3159
  fi
3160
  $as_echo "$as_me: error: $2" >&2
3161
  as_fn_exit $as_status
3162
} @%:@ as_fn_error
3163

    
3164

    
3165
@%:@ as_fn_set_status STATUS
3166
@%:@ -----------------------
3167
@%:@ Set @S|@? to STATUS, without forking.
3168
as_fn_set_status ()
3169
{
3170
  return $1
3171
} @%:@ as_fn_set_status
3172

    
3173
@%:@ as_fn_exit STATUS
3174
@%:@ -----------------
3175
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3176
as_fn_exit ()
3177
{
3178
  set +e
3179
  as_fn_set_status $1
3180
  exit $1
3181
} @%:@ as_fn_exit
3182

    
3183
@%:@ as_fn_unset VAR
3184
@%:@ ---------------
3185
@%:@ Portably unset VAR.
3186
as_fn_unset ()
3187
{
3188
  { eval $1=; unset $1;}
3189
}
3190
as_unset=as_fn_unset
3191
@%:@ as_fn_append VAR VALUE
3192
@%:@ ----------------------
3193
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
3194
@%:@ advantage of any shell optimizations that allow amortized linear growth over
3195
@%:@ repeated appends, instead of the typical quadratic growth present in naive
3196
@%:@ implementations.
3197
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3198
  eval 'as_fn_append ()
3199
  {
3200
    eval $1+=\$2
3201
  }'
3202
else
3203
  as_fn_append ()
3204
  {
3205
    eval $1=\$$1\$2
3206
  }
3207
fi # as_fn_append
3208

    
3209
@%:@ as_fn_arith ARG...
3210
@%:@ ------------------
3211
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
3212
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
3213
@%:@ must be portable across @S|@(()) and expr.
3214
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3215
  eval 'as_fn_arith ()
3216
  {
3217
    as_val=$(( $* ))
3218
  }'
3219
else
3220
  as_fn_arith ()
3221
  {
3222
    as_val=`expr "$@" || test $? -eq 1`
3223
  }
3224
fi # as_fn_arith
3225

    
3226

    
3227
if expr a : '\(a\)' >/dev/null 2>&1 &&
3228
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3229
  as_expr=expr
3230
else
3231
  as_expr=false
3232
fi
3233

    
3234
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3235
  as_basename=basename
3236
else
3237
  as_basename=false
3238
fi
3239

    
3240
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3241
  as_dirname=dirname
3242
else
3243
  as_dirname=false
3244
fi
3245

    
3246
as_me=`$as_basename -- "$0" ||
3247
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3248
	 X"$0" : 'X\(//\)$' \| \
3249
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3250
$as_echo X/"$0" |
3251
    sed '/^.*\/\([^/][^/]*\)\/*$/{
3252
	    s//\1/
3253
	    q
3254
	  }
3255
	  /^X\/\(\/\/\)$/{
3256
	    s//\1/
3257
	    q
3258
	  }
3259
	  /^X\/\(\/\).*/{
3260
	    s//\1/
3261
	    q
3262
	  }
3263
	  s/.*/./; q'`
3264

    
3265
# Avoid depending upon Character Ranges.
3266
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3267
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3268
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3269
as_cr_digits='0123456789'
3270
as_cr_alnum=$as_cr_Letters$as_cr_digits
3271

    
3272
ECHO_C= ECHO_N= ECHO_T=
3273
case `echo -n x` in @%:@(((((
3274
-n*)
3275
  case `echo 'xy\c'` in
3276
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3277
  xy)  ECHO_C='\c';;
3278
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3279
       ECHO_T='	';;
3280
  esac;;
3281
*)
3282
  ECHO_N='-n';;
3283
esac
3284

    
3285
rm -f conf$$ conf$$.exe conf$$.file
3286
if test -d conf$$.dir; then
3287
  rm -f conf$$.dir/conf$$.file
3288
else
3289
  rm -f conf$$.dir
3290
  mkdir conf$$.dir 2>/dev/null
3291
fi
3292
if (echo >conf$$.file) 2>/dev/null; then
3293
  if ln -s conf$$.file conf$$ 2>/dev/null; then
3294
    as_ln_s='ln -s'
3295
    # ... but there are two gotchas:
3296
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3297
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3298
    # In both cases, we have to default to `cp -pR'.
3299
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3300
      as_ln_s='cp -pR'
3301
  elif ln conf$$.file conf$$ 2>/dev/null; then
3302
    as_ln_s=ln
3303
  else
3304
    as_ln_s='cp -pR'
3305
  fi
3306
else
3307
  as_ln_s='cp -pR'
3308
fi
3309
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3310
rmdir conf$$.dir 2>/dev/null
3311

    
3312

    
3313
@%:@ as_fn_mkdir_p
3314
@%:@ -------------
3315
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
3316
as_fn_mkdir_p ()
3317
{
3318

    
3319
  case $as_dir in #(
3320
  -*) as_dir=./$as_dir;;
3321
  esac
3322
  test -d "$as_dir" || eval $as_mkdir_p || {
3323
    as_dirs=
3324
    while :; do
3325
      case $as_dir in #(
3326
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3327
      *) as_qdir=$as_dir;;
3328
      esac
3329
      as_dirs="'$as_qdir' $as_dirs"
3330
      as_dir=`$as_dirname -- "$as_dir" ||
3331
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3332
	 X"$as_dir" : 'X\(//\)[^/]' \| \
3333
	 X"$as_dir" : 'X\(//\)$' \| \
3334
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3335
$as_echo X"$as_dir" |
3336
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3337
	    s//\1/
3338
	    q
3339
	  }
3340
	  /^X\(\/\/\)[^/].*/{
3341
	    s//\1/
3342
	    q
3343
	  }
3344
	  /^X\(\/\/\)$/{
3345
	    s//\1/
3346
	    q
3347
	  }
3348
	  /^X\(\/\).*/{
3349
	    s//\1/
3350
	    q
3351
	  }
3352
	  s/.*/./; q'`
3353
      test -d "$as_dir" && break
3354
    done
3355
    test -z "$as_dirs" || eval "mkdir $as_dirs"
3356
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3357

    
3358

    
3359
} @%:@ as_fn_mkdir_p
3360
if mkdir -p . 2>/dev/null; then
3361
  as_mkdir_p='mkdir -p "$as_dir"'
3362
else
3363
  test -d ./-p && rmdir ./-p
3364
  as_mkdir_p=false
3365
fi
3366

    
3367

    
3368
@%:@ as_fn_executable_p FILE
3369
@%:@ -----------------------
3370
@%:@ Test if FILE is an executable regular file.
3371
as_fn_executable_p ()
3372
{
3373
  test -f "$1" && test -x "$1"
3374
} @%:@ as_fn_executable_p
3375
as_test_x='test -x'
3376
as_executable_p=as_fn_executable_p
3377

    
3378
# Sed expression to map a string onto a valid CPP name.
3379
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3380

    
3381
# Sed expression to map a string onto a valid variable name.
3382
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3383

    
3384

    
3385
exec 6>&1
3386
## ----------------------------------- ##
3387
## Main body of $CONFIG_STATUS script. ##
3388
## ----------------------------------- ##
3389
_ASEOF
3390
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3391

    
3392
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3393
# Save the log message, to keep $0 and so on meaningful, and to
3394
# report actual input values of CONFIG_FILES etc. instead of their
3395
# values after options handling.
3396
ac_log="
3397
This file was extended by lustrec $as_me 1.3-      55, which was
3398
generated by GNU Autoconf 2.69.  Invocation command line was
3399

    
3400
  CONFIG_FILES    = $CONFIG_FILES
3401
  CONFIG_HEADERS  = $CONFIG_HEADERS
3402
  CONFIG_LINKS    = $CONFIG_LINKS
3403
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3404
  $ $0 $@
3405

    
3406
on `(hostname || uname -n) 2>/dev/null | sed 1q`
3407
"
3408

    
3409
_ACEOF
3410

    
3411
case $ac_config_files in *"
3412
"*) set x $ac_config_files; shift; ac_config_files=$*;;
3413
esac
3414

    
3415

    
3416

    
3417
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3418
# Files that config.status was made for.
3419
config_files="$ac_config_files"
3420

    
3421
_ACEOF
3422

    
3423
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3424
ac_cs_usage="\
3425
\`$as_me' instantiates files and other configuration actions
3426
from templates according to the current configuration.  Unless the files
3427
and actions are specified as TAGs, all are instantiated by default.
3428

    
3429
Usage: $0 [OPTION]... [TAG]...
3430

    
3431
  -h, --help       print this help, then exit
3432
  -V, --version    print version number and configuration settings, then exit
3433
      --config     print configuration, then exit
3434
  -q, --quiet, --silent
3435
                   do not print progress messages
3436
  -d, --debug      don't remove temporary files
3437
      --recheck    update $as_me by reconfiguring in the same conditions
3438
      --file=FILE[:TEMPLATE] 
3439
                   instantiate the configuration file FILE
3440

    
3441
Configuration files:
3442
$config_files
3443

    
3444
Report bugs to <ploc@garoche.net>."
3445

    
3446
_ACEOF
3447
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3448
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3449
ac_cs_version="\\
3450
lustrec config.status 1.3-      55
3451
configured by $0, generated by GNU Autoconf 2.69,
3452
  with options \\"\$ac_cs_config\\"
3453

    
3454
Copyright (C) 2012 Free Software Foundation, Inc.
3455
This config.status script is free software; the Free Software Foundation
3456
gives unlimited permission to copy, distribute and modify it."
3457

    
3458
ac_pwd='$ac_pwd'
3459
srcdir='$srcdir'
3460
test -n "\$AWK" || AWK=awk
3461
_ACEOF
3462

    
3463
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3464
# The default lists apply if the user does not specify any file.
3465
ac_need_defaults=:
3466
while test $# != 0
3467
do
3468
  case $1 in
3469
  --*=?*)
3470
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3471
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3472
    ac_shift=:
3473
    ;;
3474
  --*=)
3475
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3476
    ac_optarg=
3477
    ac_shift=:
3478
    ;;
3479
  *)
3480
    ac_option=$1
3481
    ac_optarg=$2
3482
    ac_shift=shift
3483
    ;;
3484
  esac
3485

    
3486
  case $ac_option in
3487
  # Handling of the options.
3488
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3489
    ac_cs_recheck=: ;;
3490
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3491
    $as_echo "$ac_cs_version"; exit ;;
3492
  --config | --confi | --conf | --con | --co | --c )
3493
    $as_echo "$ac_cs_config"; exit ;;
3494
  --debug | --debu | --deb | --de | --d | -d )
3495
    debug=: ;;
3496
  --file | --fil | --fi | --f )
3497
    $ac_shift
3498
    case $ac_optarg in
3499
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3500
    '') as_fn_error $? "missing file argument" ;;
3501
    esac
3502
    as_fn_append CONFIG_FILES " '$ac_optarg'"
3503
    ac_need_defaults=false;;
3504
  --he | --h |  --help | --hel | -h )
3505
    $as_echo "$ac_cs_usage"; exit ;;
3506
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3507
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3508
    ac_cs_silent=: ;;
3509

    
3510
  # This is an error.
3511
  -*) as_fn_error $? "unrecognized option: \`$1'
3512
Try \`$0 --help' for more information." ;;
3513

    
3514
  *) as_fn_append ac_config_targets " $1"
3515
     ac_need_defaults=false ;;
3516

    
3517
  esac
3518
  shift
3519
done
3520

    
3521
ac_configure_extra_args=
3522

    
3523
if $ac_cs_silent; then
3524
  exec 6>/dev/null
3525
  ac_configure_extra_args="$ac_configure_extra_args --silent"
3526
fi
3527

    
3528
_ACEOF
3529
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3530
if \$ac_cs_recheck; then
3531
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3532
  shift
3533
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3534
  CONFIG_SHELL='$SHELL'
3535
  export CONFIG_SHELL
3536
  exec "\$@"
3537
fi
3538

    
3539
_ACEOF
3540
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3541
exec 5>>config.log
3542
{
3543
  echo
3544
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
3545
@%:@@%:@ Running $as_me. @%:@@%:@
3546
_ASBOX
3547
  $as_echo "$ac_log"
3548
} >&5
3549

    
3550
_ACEOF
3551
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3552
_ACEOF
3553

    
3554
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3555

    
3556
# Handling of arguments.
3557
for ac_config_target in $ac_config_targets
3558
do
3559
  case $ac_config_target in
3560
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3561
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3562
    "src/version.ml") CONFIG_FILES="$CONFIG_FILES src/version.ml" ;;
3563
    "test/test-compile.sh") CONFIG_FILES="$CONFIG_FILES test/test-compile.sh" ;;
3564

    
3565
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3566
  esac
3567
done
3568

    
3569

    
3570
# If the user did not use the arguments to specify the items to instantiate,
3571
# then the envvar interface is used.  Set only those that are not.
3572
# We use the long form for the default assignment because of an extremely
3573
# bizarre bug on SunOS 4.1.3.
3574
if $ac_need_defaults; then
3575
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3576
fi
3577

    
3578
# Have a temporary directory for convenience.  Make it in the build tree
3579
# simply because there is no reason against having it here, and in addition,
3580
# creating and moving files from /tmp can sometimes cause problems.
3581
# Hook for its removal unless debugging.
3582
# Note that there is a small window in which the directory will not be cleaned:
3583
# after its creation but before its name has been assigned to `$tmp'.
3584
$debug ||
3585
{
3586
  tmp= ac_tmp=
3587
  trap 'exit_status=$?
3588
  : "${ac_tmp:=$tmp}"
3589
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3590
' 0
3591
  trap 'as_fn_exit 1' 1 2 13 15
3592
}
3593
# Create a (secure) tmp directory for tmp files.
3594

    
3595
{
3596
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3597
  test -d "$tmp"
3598
}  ||
3599
{
3600
  tmp=./conf$$-$RANDOM
3601
  (umask 077 && mkdir "$tmp")
3602
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3603
ac_tmp=$tmp
3604

    
3605
# Set up the scripts for CONFIG_FILES section.
3606
# No need to generate them if there are no CONFIG_FILES.
3607
# This happens for instance with `./config.status config.h'.
3608
if test -n "$CONFIG_FILES"; then
3609

    
3610

    
3611
ac_cr=`echo X | tr X '\015'`
3612
# On cygwin, bash can eat \r inside `` if the user requested igncr.
3613
# But we know of no other shell where ac_cr would be empty at this
3614
# point, so we can use a bashism as a fallback.
3615
if test "x$ac_cr" = x; then
3616
  eval ac_cr=\$\'\\r\'
3617
fi
3618
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3619
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3620
  ac_cs_awk_cr='\\r'
3621
else
3622
  ac_cs_awk_cr=$ac_cr
3623
fi
3624

    
3625
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3626
_ACEOF
3627

    
3628

    
3629
{
3630
  echo "cat >conf$$subs.awk <<_ACEOF" &&
3631
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3632
  echo "_ACEOF"
3633
} >conf$$subs.sh ||
3634
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3635
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3636
ac_delim='%!_!# '
3637
for ac_last_try in false false false false false :; do
3638
  . ./conf$$subs.sh ||
3639
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3640

    
3641
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3642
  if test $ac_delim_n = $ac_delim_num; then
3643
    break
3644
  elif $ac_last_try; then
3645
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3646
  else
3647
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3648
  fi
3649
done
3650
rm -f conf$$subs.sh
3651

    
3652
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3653
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3654
_ACEOF
3655
sed -n '
3656
h
3657
s/^/S["/; s/!.*/"]=/
3658
p
3659
g
3660
s/^[^!]*!//
3661
:repl
3662
t repl
3663
s/'"$ac_delim"'$//
3664
t delim
3665
:nl
3666
h
3667
s/\(.\{148\}\)..*/\1/
3668
t more1
3669
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3670
p
3671
n
3672
b repl
3673
:more1
3674
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3675
p
3676
g
3677
s/.\{148\}//
3678
t nl
3679
:delim
3680
h
3681
s/\(.\{148\}\)..*/\1/
3682
t more2
3683
s/["\\]/\\&/g; s/^/"/; s/$/"/
3684
p
3685
b
3686
:more2
3687
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3688
p
3689
g
3690
s/.\{148\}//
3691
t delim
3692
' <conf$$subs.awk | sed '
3693
/^[^""]/{
3694
  N
3695
  s/\n//
3696
}
3697
' >>$CONFIG_STATUS || ac_write_fail=1
3698
rm -f conf$$subs.awk
3699
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3700
_ACAWK
3701
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3702
  for (key in S) S_is_set[key] = 1
3703
  FS = ""
3704

    
3705
}
3706
{
3707
  line = $ 0
3708
  nfields = split(line, field, "@")
3709
  substed = 0
3710
  len = length(field[1])
3711
  for (i = 2; i < nfields; i++) {
3712
    key = field[i]
3713
    keylen = length(key)
3714
    if (S_is_set[key]) {
3715
      value = S[key]
3716
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3717
      len += length(value) + length(field[++i])
3718
      substed = 1
3719
    } else
3720
      len += 1 + keylen
3721
  }
3722

    
3723
  print line
3724
}
3725

    
3726
_ACAWK
3727
_ACEOF
3728
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3729
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3730
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3731
else
3732
  cat
3733
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3734
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3735
_ACEOF
3736

    
3737
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3738
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3739
# trailing colons and then remove the whole line if VPATH becomes empty
3740
# (actually we leave an empty line to preserve line numbers).
3741
if test "x$srcdir" = x.; then
3742
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
3743
h
3744
s///
3745
s/^/:/
3746
s/[	 ]*$/:/
3747
s/:\$(srcdir):/:/g
3748
s/:\${srcdir}:/:/g
3749
s/:@srcdir@:/:/g
3750
s/^:*//
3751
s/:*$//
3752
x
3753
s/\(=[	 ]*\).*/\1/
3754
G
3755
s/\n//
3756
s/^[^=]*=[	 ]*$//
3757
}'
3758
fi
3759

    
3760
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3761
fi # test -n "$CONFIG_FILES"
3762

    
3763

    
3764
eval set X "  :F $CONFIG_FILES      "
3765
shift
3766
for ac_tag
3767
do
3768
  case $ac_tag in
3769
  :[FHLC]) ac_mode=$ac_tag; continue;;
3770
  esac
3771
  case $ac_mode$ac_tag in
3772
  :[FHL]*:*);;
3773
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3774
  :[FH]-) ac_tag=-:-;;
3775
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3776
  esac
3777
  ac_save_IFS=$IFS
3778
  IFS=:
3779
  set x $ac_tag
3780
  IFS=$ac_save_IFS
3781
  shift
3782
  ac_file=$1
3783
  shift
3784

    
3785
  case $ac_mode in
3786
  :L) ac_source=$1;;
3787
  :[FH])
3788
    ac_file_inputs=
3789
    for ac_f
3790
    do
3791
      case $ac_f in
3792
      -) ac_f="$ac_tmp/stdin";;
3793
      *) # Look for the file first in the build tree, then in the source tree
3794
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
3795
	 # because $ac_f cannot contain `:'.
3796
	 test -f "$ac_f" ||
3797
	   case $ac_f in
3798
	   [\\/$]*) false;;
3799
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3800
	   esac ||
3801
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3802
      esac
3803
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3804
      as_fn_append ac_file_inputs " '$ac_f'"
3805
    done
3806

    
3807
    # Let's still pretend it is `configure' which instantiates (i.e., don't
3808
    # use $as_me), people would be surprised to read:
3809
    #    /* config.h.  Generated by config.status.  */
3810
    configure_input='Generated from '`
3811
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3812
	`' by configure.'
3813
    if test x"$ac_file" != x-; then
3814
      configure_input="$ac_file.  $configure_input"
3815
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3816
$as_echo "$as_me: creating $ac_file" >&6;}
3817
    fi
3818
    # Neutralize special characters interpreted by sed in replacement strings.
3819
    case $configure_input in #(
3820
    *\&* | *\|* | *\\* )
3821
       ac_sed_conf_input=`$as_echo "$configure_input" |
3822
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
3823
    *) ac_sed_conf_input=$configure_input;;
3824
    esac
3825

    
3826
    case $ac_tag in
3827
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
3828
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3829
    esac
3830
    ;;
3831
  esac
3832

    
3833
  ac_dir=`$as_dirname -- "$ac_file" ||
3834
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3835
	 X"$ac_file" : 'X\(//\)[^/]' \| \
3836
	 X"$ac_file" : 'X\(//\)$' \| \
3837
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3838
$as_echo X"$ac_file" |
3839
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3840
	    s//\1/
3841
	    q
3842
	  }
3843
	  /^X\(\/\/\)[^/].*/{
3844
	    s//\1/
3845
	    q
3846
	  }
3847
	  /^X\(\/\/\)$/{
3848
	    s//\1/
3849
	    q
3850
	  }
3851
	  /^X\(\/\).*/{
3852
	    s//\1/
3853
	    q
3854
	  }
3855
	  s/.*/./; q'`
3856
  as_dir="$ac_dir"; as_fn_mkdir_p
3857
  ac_builddir=.
3858

    
3859
case "$ac_dir" in
3860
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3861
*)
3862
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3863
  # A ".." for each directory in $ac_dir_suffix.
3864
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3865
  case $ac_top_builddir_sub in
3866
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3867
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3868
  esac ;;
3869
esac
3870
ac_abs_top_builddir=$ac_pwd
3871
ac_abs_builddir=$ac_pwd$ac_dir_suffix
3872
# for backward compatibility:
3873
ac_top_builddir=$ac_top_build_prefix
3874

    
3875
case $srcdir in
3876
  .)  # We are building in place.
3877
    ac_srcdir=.
3878
    ac_top_srcdir=$ac_top_builddir_sub
3879
    ac_abs_top_srcdir=$ac_pwd ;;
3880
  [\\/]* | ?:[\\/]* )  # Absolute name.
3881
    ac_srcdir=$srcdir$ac_dir_suffix;
3882
    ac_top_srcdir=$srcdir
3883
    ac_abs_top_srcdir=$srcdir ;;
3884
  *) # Relative name.
3885
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3886
    ac_top_srcdir=$ac_top_build_prefix$srcdir
3887
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3888
esac
3889
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3890

    
3891

    
3892
  case $ac_mode in
3893
  :F)
3894
  #
3895
  # CONFIG_FILE
3896
  #
3897

    
3898
_ACEOF
3899

    
3900
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3901
# If the template does not know about datarootdir, expand it.
3902
# FIXME: This hack should be removed a few years after 2.60.
3903
ac_datarootdir_hack=; ac_datarootdir_seen=
3904
ac_sed_dataroot='
3905
/datarootdir/ {
3906
  p
3907
  q
3908
}
3909
/@datadir@/p
3910
/@docdir@/p
3911
/@infodir@/p
3912
/@localedir@/p
3913
/@mandir@/p'
3914
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3915
*datarootdir*) ac_datarootdir_seen=yes;;
3916
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3917
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3918
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3919
_ACEOF
3920
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3921
  ac_datarootdir_hack='
3922
  s&@datadir@&$datadir&g
3923
  s&@docdir@&$docdir&g
3924
  s&@infodir@&$infodir&g
3925
  s&@localedir@&$localedir&g
3926
  s&@mandir@&$mandir&g
3927
  s&\\\${datarootdir}&$datarootdir&g' ;;
3928
esac
3929
_ACEOF
3930

    
3931
# Neutralize VPATH when `$srcdir' = `.'.
3932
# Shell code in configure.ac might set extrasub.
3933
# FIXME: do we really want to maintain this feature?
3934
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3935
ac_sed_extra="$ac_vpsub
3936
$extrasub
3937
_ACEOF
3938
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3939
:t
3940
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3941
s|@configure_input@|$ac_sed_conf_input|;t t
3942
s&@top_builddir@&$ac_top_builddir_sub&;t t
3943
s&@top_build_prefix@&$ac_top_build_prefix&;t t
3944
s&@srcdir@&$ac_srcdir&;t t
3945
s&@abs_srcdir@&$ac_abs_srcdir&;t t
3946
s&@top_srcdir@&$ac_top_srcdir&;t t
3947
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3948
s&@builddir@&$ac_builddir&;t t
3949
s&@abs_builddir@&$ac_abs_builddir&;t t
3950
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3951
$ac_datarootdir_hack
3952
"
3953
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3954
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3955

    
3956
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3957
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3958
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
3959
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
3960
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3961
which seems to be undefined.  Please make sure it is defined" >&5
3962
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3963
which seems to be undefined.  Please make sure it is defined" >&2;}
3964

    
3965
  rm -f "$ac_tmp/stdin"
3966
  case $ac_file in
3967
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3968
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3969
  esac \
3970
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3971
 ;;
3972
  
3973
  
3974
  
3975
  esac
3976

    
3977
done # for ac_tag
3978

    
3979

    
3980
as_fn_exit 0
3981
_ACEOF
3982
ac_clean_files=$ac_clean_files_save
3983

    
3984
test $ac_write_fail = 0 ||
3985
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3986

    
3987

    
3988
# configure is writing to config.log, and then calls config.status.
3989
# config.status does its own redirection, appending to config.log.
3990
# Unfortunately, on DOS this fails, as config.log is still kept open
3991
# by configure, so config.status won't be able to write to it; its
3992
# output is simply discarded.  So we exec the FD to /dev/null,
3993
# effectively closing config.log, so it can be properly (re)opened and
3994
# appended to by config.status.  When coming back to configure, we
3995
# need to make the FD available again.
3996
if test "$no_create" != yes; then
3997
  ac_cs_success=:
3998
  ac_config_status_args=
3999
  test "$silent" = yes &&
4000
    ac_config_status_args="$ac_config_status_args --quiet"
4001
  exec 5>/dev/null
4002
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4003
  exec 5>>config.log
4004
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4005
  # would make configure fail if this is the last instruction.
4006
  $ac_cs_success || as_fn_exit 1
4007
fi
4008
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4009
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4010
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4011
fi
4012

    
4013

    
4014

    
4015
# summary
4016
{ $as_echo "$as_me:${as_lineno-$LINENO}: ******** Configuration ********" >&5
4017
$as_echo "$as_me: ******** Configuration ********" >&6;}
4018
{ $as_echo "$as_me:${as_lineno-$LINENO}: bin path:     $prefix/bin" >&5
4019
$as_echo "$as_me: bin path:     $prefix/bin" >&6;}
4020
{ $as_echo "$as_me:${as_lineno-$LINENO}: include path: $prefix/include" >&5
4021
$as_echo "$as_me: include path: $prefix/include" >&6;}
4022
{ $as_echo "$as_me:${as_lineno-$LINENO}: ********    Plugins    ********" >&5
4023
$as_echo "$as_me: ********    Plugins    ********" >&6;}
4024

    
4025
  if (test "x$gmp" = xyes -a "x$mpfr" = xyes ); then
4026
       { $as_echo "$as_me:${as_lineno-$LINENO}: -mpfr option enable" >&5
4027
$as_echo "$as_me: -mpfr option enable" >&6;}
4028

    
4029
   else 
4030
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR option cannot be activated. Requires GMP and MPFR libs" >&5
4031
$as_echo "$as_me: WARNING: MPFR option cannot be activated. Requires GMP and MPFR libs" >&2;}
4032
      
4033
   fi
4034
 
4035
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
4036
$as_echo "$as_me: " >&6;}
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: ******** Configuration ********" >&5
4038
$as_echo "$as_me: ******** Configuration ********" >&6;}
4039