public software.scamp

[/] [trunk/] [configure] - Blame information for rev 334

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 bertin
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3 334 bertin
# Generated by GNU Autoconf 2.69 for scamp 2.2.1.
4 2 bertin
#
5
# Report bugs to .
6
#
7 256 bertin
#
8 308 bertin
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 256 bertin
#
10
#
11 2 bertin
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13 256 bertin
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16 2 bertin
 
17 177 bertin
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19 256 bertin
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 2 bertin
  emulate sh
21
  NULLCMD=:
22 211 bertin
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 2 bertin
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25 177 bertin
  setopt NO_GLOB_SUBST
26
else
27 256 bertin
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
32 177 bertin
esac
33 2 bertin
fi
34
 
35 177 bertin
 
36 211 bertin
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 256 bertin
# 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 211 bertin
  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 177 bertin
  else
57 211 bertin
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60 256 bertin
      case $arg in #(
61 211 bertin
      *"$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 177 bertin
  fi
70 211 bertin
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72 177 bertin
fi
73
 
74 211 bertin
# 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 2 bertin
 
84 177 bertin
# 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 256 bertin
as_myself=
93
case $0 in #((
94 177 bertin
  *[\\/]* ) 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 256 bertin
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
102 177 bertin
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 211 bertin
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 256 bertin
  exit 1
114 177 bertin
fi
115
 
116 256 bertin
# 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 177 bertin
done
124 2 bertin
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129 211 bertin
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133 2 bertin
 
134 177 bertin
# CDPATH.
135 256 bertin
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 2 bertin
 
137 308 bertin
# 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 177 bertin
if test "x$CONFIG_SHELL" = x; then
163 256 bertin
  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 177 bertin
else
171 256 bertin
  case \`(set -o) 2>/dev/null\` in #(
172
  *posix*) :
173
    set -o posix ;; #(
174
  *) :
175
     ;;
176
esac
177 2 bertin
fi
178 256 bertin
"
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 2 bertin
 
185 177 bertin
exitcode=0
186 256 bertin
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 2 bertin
 
192 177 bertin
else
193 256 bertin
  exitcode=1; echo positional parameters were not saved.
194 177 bertin
fi
195 308 bertin
test x\$exitcode = x0 || exit 1
196
test -x / || exit 1"
197 256 bertin
  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 177 bertin
 
202 256 bertin
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
    PATH=/empty FPATH=/empty; export PATH FPATH
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
  if (eval "$as_required") 2>/dev/null; then :
211
  as_have_required=yes
212 177 bertin
else
213 256 bertin
  as_have_required=no
214 177 bertin
fi
215 256 bertin
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 177 bertin
 
217
else
218 256 bertin
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219
as_found=false
220 2 bertin
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
do
222
  IFS=$as_save_IFS
223
  test -z "$as_dir" && as_dir=.
224 256 bertin
  as_found=:
225
  case $as_dir in #(
226 2 bertin
         /*)
227 177 bertin
           for as_base in sh bash ksh sh5; do
228 256 bertin
             # Try only shells that exist, to save several forks.
229
             as_shell=$as_dir/$as_base
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
  CONFIG_SHELL=$as_shell as_have_required=yes
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234
  break 2
235
fi
236
fi
237 177 bertin
           done;;
238
       esac
239 256 bertin
  as_found=false
240 177 bertin
done
241 256 bertin
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
  CONFIG_SHELL=$SHELL as_have_required=yes
244
fi; }
245 177 bertin
IFS=$as_save_IFS
246
 
247
 
248 256 bertin
      if test "x$CONFIG_SHELL" != x; then :
249 308 bertin
  export CONFIG_SHELL
250
             # We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
254
BASH_ENV=/dev/null
255
ENV=/dev/null
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257
case $- in # ((((
258
  *v*x* | *x*v* ) as_opts=-vx ;;
259
  *v* ) as_opts=-v ;;
260
  *x* ) as_opts=-x ;;
261
  * ) as_opts= ;;
262
esac
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267
exit 255
268 177 bertin
fi
269
 
270 256 bertin
    if test x$as_have_required = xno; then :
271
  $as_echo "$0: This script requires a shell more modern than all"
272
  $as_echo "$0: the shells that I found on your system."
273
  if test x${ZSH_VERSION+set} = xset ; then
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276
  else
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and bertin@iap.fr
278
$0: about your system, including any error possibly output
279
$0: before this message. Then install a modern shell, or
280
$0: manually run the script under such a shell if you do
281
$0: have one."
282
  fi
283
  exit 1
284 177 bertin
fi
285
fi
286
fi
287 256 bertin
SHELL=${CONFIG_SHELL-/bin/sh}
288
export SHELL
289
# Unset more variables known to interfere with behavior of common tools.
290
CLICOLOR_FORCE= GREP_OPTIONS=
291
unset CLICOLOR_FORCE GREP_OPTIONS
292 177 bertin
 
293 256 bertin
## --------------------- ##
294
## M4sh Shell Functions. ##
295
## --------------------- ##
296
# as_fn_unset VAR
297
# ---------------
298
# Portably unset VAR.
299
as_fn_unset ()
300
{
301
  { eval $1=; unset $1;}
302
}
303
as_unset=as_fn_unset
304 177 bertin
 
305 256 bertin
# as_fn_set_status STATUS
306
# -----------------------
307
# Set $? to STATUS, without forking.
308
as_fn_set_status ()
309
{
310
  return $1
311
} # as_fn_set_status
312 177 bertin
 
313 256 bertin
# as_fn_exit STATUS
314
# -----------------
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316
as_fn_exit ()
317
{
318
  set +e
319
  as_fn_set_status $1
320
  exit $1
321
} # as_fn_exit
322 177 bertin
 
323 256 bertin
# as_fn_mkdir_p
324
# -------------
325
# Create "$as_dir" as a directory, including parents if necessary.
326
as_fn_mkdir_p ()
327
{
328 177 bertin
 
329 256 bertin
  case $as_dir in #(
330
  -*) as_dir=./$as_dir;;
331
  esac
332
  test -d "$as_dir" || eval $as_mkdir_p || {
333
    as_dirs=
334
    while :; do
335
      case $as_dir in #(
336
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337
      *) as_qdir=$as_dir;;
338
      esac
339
      as_dirs="'$as_qdir' $as_dirs"
340
      as_dir=`$as_dirname -- "$as_dir" ||
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342
         X"$as_dir" : 'X\(//\)[^/]' \| \
343
         X"$as_dir" : 'X\(//\)$' \| \
344
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345
$as_echo X"$as_dir" |
346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347
            s//\1/
348
            q
349
          }
350
          /^X\(\/\/\)[^/].*/{
351
            s//\1/
352
            q
353
          }
354
          /^X\(\/\/\)$/{
355
            s//\1/
356
            q
357
          }
358
          /^X\(\/\).*/{
359
            s//\1/
360
            q
361
          }
362
          s/.*/./; q'`
363
      test -d "$as_dir" && break
364
    done
365
    test -z "$as_dirs" || eval "mkdir $as_dirs"
366
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367 2 bertin
 
368 177 bertin
 
369 256 bertin
} # as_fn_mkdir_p
370 308 bertin
 
371
# as_fn_executable_p FILE
372
# -----------------------
373
# Test if FILE is an executable regular file.
374
as_fn_executable_p ()
375
{
376
  test -f "$1" && test -x "$1"
377
} # as_fn_executable_p
378 256 bertin
# as_fn_append VAR VALUE
379
# ----------------------
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
381
# advantage of any shell optimizations that allow amortized linear growth over
382
# repeated appends, instead of the typical quadratic growth present in naive
383
# implementations.
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385
  eval 'as_fn_append ()
386
  {
387
    eval $1+=\$2
388
  }'
389
else
390
  as_fn_append ()
391
  {
392
    eval $1=\$$1\$2
393
  }
394
fi # as_fn_append
395 177 bertin
 
396 256 bertin
# as_fn_arith ARG...
397
# ------------------
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
400
# must be portable across $(()) and expr.
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402
  eval 'as_fn_arith ()
403
  {
404
    as_val=$(( $* ))
405
  }'
406
else
407
  as_fn_arith ()
408
  {
409
    as_val=`expr "$@" || test $? -eq 1`
410
  }
411
fi # as_fn_arith
412 177 bertin
 
413
 
414 256 bertin
# as_fn_error STATUS ERROR [LINENO LOG_FD]
415
# ----------------------------------------
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418
# script with STATUS, using 1 if that was 0.
419
as_fn_error ()
420
{
421
  as_status=$1; test $as_status -eq 0 && as_status=1
422
  if test "$4"; then
423
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425
  fi
426
  $as_echo "$as_me: error: $2" >&2
427
  as_fn_exit $as_status
428
} # as_fn_error
429 177 bertin
 
430 256 bertin
if expr a : '\(a\)' >/dev/null 2>&1 &&
431
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432
  as_expr=expr
433 177 bertin
else
434 256 bertin
  as_expr=false
435 177 bertin
fi
436
 
437 256 bertin
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438
  as_basename=basename
439 177 bertin
else
440 256 bertin
  as_basename=false
441 177 bertin
fi
442
 
443 256 bertin
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444
  as_dirname=dirname
445 177 bertin
else
446 256 bertin
  as_dirname=false
447 177 bertin
fi
448
 
449 256 bertin
as_me=`$as_basename -- "$0" ||
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451
         X"$0" : 'X\(//\)$' \| \
452
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453
$as_echo X/"$0" |
454
    sed '/^.*\/\([^/][^/]*\)\/*$/{
455
            s//\1/
456
            q
457
          }
458
          /^X\/\(\/\/\)$/{
459
            s//\1/
460
            q
461
          }
462
          /^X\/\(\/\).*/{
463
            s//\1/
464
            q
465
          }
466
          s/.*/./; q'`
467 177 bertin
 
468 256 bertin
# Avoid depending upon Character Ranges.
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472
as_cr_digits='0123456789'
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
474 177 bertin
 
475
 
476 256 bertin
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481 177 bertin
  sed -n '
482
    p
483
    /[$]LINENO/=
484
  ' <$as_myself |
485 2 bertin
    sed '
486 177 bertin
      s/[$]LINENO.*/&-/
487
      t lineno
488
      b
489
      :lineno
490 2 bertin
      N
491 177 bertin
      :loop
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 2 bertin
      t loop
494 177 bertin
      s/-\n.*//
495 2 bertin
    ' >$as_me.lineno &&
496 177 bertin
  chmod +x "$as_me.lineno" ||
497 256 bertin
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498 2 bertin
 
499 308 bertin
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500
  # already done that, so ensure we don't try to do so again and fall
501
  # in an infinite loop.  This has already happened in practice.
502
  _as_can_reexec=no; export _as_can_reexec
503 2 bertin
  # Don't try to exec as it changes $[0], causing all sort of problems
504
  # (the dirname of $[0] is not the place where we might find the
505 177 bertin
  # original and so on.  Autoconf is especially sensitive to this).
506
  . "./$as_me.lineno"
507 2 bertin
  # Exit status is that of the last command.
508
  exit
509
}
510
 
511 177 bertin
ECHO_C= ECHO_N= ECHO_T=
512 256 bertin
case `echo -n x` in #(((((
513 177 bertin
-n*)
514 256 bertin
  case `echo 'xy\c'` in
515 177 bertin
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516 256 bertin
  xy)  ECHO_C='\c';;
517
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518
       ECHO_T=' ';;
519 177 bertin
  esac;;
520
*)
521
  ECHO_N='-n';;
522 2 bertin
esac
523
 
524
rm -f conf$$ conf$$.exe conf$$.file
525 177 bertin
if test -d conf$$.dir; then
526
  rm -f conf$$.dir/conf$$.file
527
else
528
  rm -f conf$$.dir
529 211 bertin
  mkdir conf$$.dir 2>/dev/null
530 177 bertin
fi
531 211 bertin
if (echo >conf$$.file) 2>/dev/null; then
532
  if ln -s conf$$.file conf$$ 2>/dev/null; then
533
    as_ln_s='ln -s'
534
    # ... but there are two gotchas:
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 308 bertin
    # In both cases, we have to default to `cp -pR'.
538 211 bertin
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 308 bertin
      as_ln_s='cp -pR'
540 211 bertin
  elif ln conf$$.file conf$$ 2>/dev/null; then
541
    as_ln_s=ln
542
  else
543 308 bertin
    as_ln_s='cp -pR'
544 211 bertin
  fi
545 2 bertin
else
546 308 bertin
  as_ln_s='cp -pR'
547 2 bertin
fi
548 177 bertin
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549
rmdir conf$$.dir 2>/dev/null
550 2 bertin
 
551
if mkdir -p . 2>/dev/null; then
552 256 bertin
  as_mkdir_p='mkdir -p "$as_dir"'
553 2 bertin
else
554
  test -d ./-p && rmdir ./-p
555
  as_mkdir_p=false
556
fi
557
 
558 308 bertin
as_test_x='test -x'
559
as_executable_p=as_fn_executable_p
560 2 bertin
 
561
# Sed expression to map a string onto a valid CPP name.
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
 
564
# Sed expression to map a string onto a valid variable name.
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
 
567
SHELL=${CONFIG_SHELL-/bin/sh}
568
 
569
 
570 256 bertin
test -n "$DJDIR" || exec 7<&0 
571
exec 6>&1
572 2 bertin
 
573
# Name of the host.
574 256 bertin
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 2 bertin
# so uname gets run too.
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
 
578
#
579
# Initializations.
580
#
581
ac_default_prefix=/usr/local
582 177 bertin
ac_clean_files=
583 2 bertin
ac_config_libobj_dir=.
584 177 bertin
LIBOBJS=
585 2 bertin
cross_compiling=no
586
subdirs=
587
MFLAGS=
588
MAKEFLAGS=
589
 
590
# Identity of this package.
591
PACKAGE_NAME='scamp'
592
PACKAGE_TARNAME='scamp'
593 334 bertin
PACKAGE_VERSION='2.2.1'
594
PACKAGE_STRING='scamp 2.2.1'
595 2 bertin
PACKAGE_BUGREPORT='bertin@iap.fr'
596 256 bertin
PACKAGE_URL=''
597 2 bertin
 
598
ac_unique_file="src/makeit.c"
599
# Factoring default headers for most tests.
600
ac_includes_default="\
601
#include 
602 177 bertin
#ifdef HAVE_SYS_TYPES_H
603 2 bertin
# include 
604
#endif
605 177 bertin
#ifdef HAVE_SYS_STAT_H
606 2 bertin
# include 
607
#endif
608 177 bertin
#ifdef STDC_HEADERS
609 2 bertin
# include 
610
# include 
611
#else
612 177 bertin
# ifdef HAVE_STDLIB_H
613 2 bertin
#  include 
614
# endif
615
#endif
616 177 bertin
#ifdef HAVE_STRING_H
617
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 2 bertin
#  include 
619
# endif
620
# include 
621
#endif
622 177 bertin
#ifdef HAVE_STRINGS_H
623 2 bertin
# include 
624
#endif
625 177 bertin
#ifdef HAVE_INTTYPES_H
626 2 bertin
# include 
627
#endif
628 177 bertin
#ifdef HAVE_STDINT_H
629
# include 
630
#endif
631
#ifdef HAVE_UNISTD_H
632 2 bertin
# include 
633
#endif"
634
 
635 256 bertin
ac_header_list=
636
ac_subst_vars='am__EXEEXT_FALSE
637
am__EXEEXT_TRUE
638
LTLIBOBJS
639 216 bertin
AM_LDFLAGS
640
AM_CPPFLAGS
641
AM_CFLAGS
642 331 bertin
CURL_LIBS
643
CURL_CFLAGS
644
acx_curlconfig_ok
645 211 bertin
USE_PLPLOT_FALSE
646
USE_PLPLOT_TRUE
647
PLPLOT_LIBS
648
PLPLOT_CFLAGS
649
ATLAS_ERROR
650
ATLAS_WARN
651 268 bertin
ATLAS_LIBS
652 211 bertin
ATLAS_CFLAGS
653
ATLAS_LIBPATH
654
FFTW_ERROR
655
FFTW_LIBS
656
FFTW_WARN
657 294 bertin
MKL_WARN
658 309 bertin
MKL_LIBS
659 308 bertin
MKL_LDFLAGS
660 294 bertin
MKL_CFLAGS
661 211 bertin
USE_THREADS_FALSE
662
USE_THREADS_TRUE
663
PTHREAD_CFLAGS
664
PTHREAD_LIBS
665
PTHREAD_CC
666
LIBOBJS
667
CPP
668 256 bertin
OTOOL64
669
OTOOL
670
LIPO
671
NMEDIT
672
DSYMUTIL
673
MANIFEST_TOOL
674 211 bertin
RANLIB
675 256 bertin
ac_ct_AR
676 211 bertin
AR
677 256 bertin
DLLTOOL
678
OBJDUMP
679 211 bertin
LN_S
680 256 bertin
NM
681
ac_ct_DUMPBIN
682
DUMPBIN
683
LD
684
FGREP
685 211 bertin
EGREP
686
GREP
687
SED
688
host_os
689
host_vendor
690
host_cpu
691
host
692
build_os
693
build_vendor
694
build_cpu
695
build
696 256 bertin
LIBTOOL
697 211 bertin
am__fastdepCC_FALSE
698
am__fastdepCC_TRUE
699
CCDEPMODE
700 308 bertin
am__nodep
701 211 bertin
AMDEPBACKSLASH
702
AMDEP_FALSE
703
AMDEP_TRUE
704
am__quote
705
am__include
706
DEPDIR
707
OBJEXT
708
EXEEXT
709
ac_ct_CC
710
CPPFLAGS
711
LDFLAGS
712
CFLAGS
713
CC
714
DATE3
715
DATE2
716
PACKAGER
717
am__untar
718
am__tar
719
AMTAR
720
am__leading_dot
721
SET_MAKE
722
AWK
723
mkdir_p
724
MKDIR_P
725
INSTALL_STRIP_PROGRAM
726
STRIP
727
install_sh
728
MAKEINFO
729
AUTOHEADER
730
AUTOMAKE
731
AUTOCONF
732
ACLOCAL
733
VERSION
734
PACKAGE
735
CYGPATH_W
736
am__isrc
737
INSTALL_DATA
738
INSTALL_SCRIPT
739
INSTALL_PROGRAM
740
target_alias
741
host_alias
742
build_alias
743
LIBS
744
ECHO_T
745
ECHO_N
746
ECHO_C
747
DEFS
748
mandir
749
localedir
750
libdir
751
psdir
752
pdfdir
753
dvidir
754
htmldir
755
infodir
756
docdir
757
oldincludedir
758
includedir
759
localstatedir
760
sharedstatedir
761
sysconfdir
762
datadir
763
datarootdir
764
libexecdir
765
sbindir
766
bindir
767
program_transform_name
768
prefix
769
exec_prefix
770 256 bertin
PACKAGE_URL
771 211 bertin
PACKAGE_BUGREPORT
772
PACKAGE_STRING
773
PACKAGE_VERSION
774
PACKAGE_TARNAME
775
PACKAGE_NAME
776 177 bertin
PATH_SEPARATOR
777 211 bertin
SHELL'
778 2 bertin
ac_subst_files=''
779 211 bertin
ac_user_opts='
780
enable_option_checking
781 216 bertin
enable_auto_flags
782 211 bertin
enable_icc
783 268 bertin
enable_mkl
784 211 bertin
enable_dependency_tracking
785 216 bertin
enable_shared
786 211 bertin
enable_static
787 256 bertin
with_pic
788 211 bertin
enable_fast_install
789
with_gnu_ld
790 256 bertin
with_sysroot
791 211 bertin
enable_libtool_lock
792
enable_largefile
793 331 bertin
with_mkl_dir
794 268 bertin
with_atlas_libdir
795 211 bertin
with_atlas_incdir
796 268 bertin
with_fftw_libdir
797 211 bertin
with_fftw_incdir
798 331 bertin
with_curl_libdir
799
with_curl_incdir
800
enable_plplot
801
with_plplot_libdir
802
with_plplot_incdir
803 211 bertin
with_xsl_url
804
enable_threads
805 268 bertin
enable_profiling
806 216 bertin
enable_best_link
807 211 bertin
'
808 177 bertin
      ac_precious_vars='build_alias
809
host_alias
810
target_alias
811
CC
812
CFLAGS
813
LDFLAGS
814
LIBS
815
CPPFLAGS
816 256 bertin
CPP'
817 2 bertin
 
818 177 bertin
 
819 2 bertin
# Initialize some variables set by options.
820
ac_init_help=
821
ac_init_version=false
822 211 bertin
ac_unrecognized_opts=
823
ac_unrecognized_sep=
824 2 bertin
# The variables have the same names as the options, with
825
# dashes changed to underlines.
826
cache_file=/dev/null
827
exec_prefix=NONE
828
no_create=
829
no_recursion=
830
prefix=NONE
831
program_prefix=NONE
832
program_suffix=NONE
833
program_transform_name=s,x,x,
834
silent=
835
site=
836
srcdir=
837
verbose=
838
x_includes=NONE
839
x_libraries=NONE
840
 
841
# Installation directory options.
842
# These are left unexpanded so users can "make install exec_prefix=/foo"
843
# and all the variables that are supposed to be based on exec_prefix
844
# by default will actually change.
845
# Use braces instead of parens because sh, perl, etc. also accept them.
846 177 bertin
# (The list follows the same order as the GNU Coding Standards.)
847 2 bertin
bindir='${exec_prefix}/bin'
848
sbindir='${exec_prefix}/sbin'
849
libexecdir='${exec_prefix}/libexec'
850 177 bertin
datarootdir='${prefix}/share'
851
datadir='${datarootdir}'
852 2 bertin
sysconfdir='${prefix}/etc'
853
sharedstatedir='${prefix}/com'
854
localstatedir='${prefix}/var'
855
includedir='${prefix}/include'
856
oldincludedir='/usr/include'
857 177 bertin
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858
infodir='${datarootdir}/info'
859
htmldir='${docdir}'
860
dvidir='${docdir}'
861
pdfdir='${docdir}'
862
psdir='${docdir}'
863
libdir='${exec_prefix}/lib'
864
localedir='${datarootdir}/locale'
865
mandir='${datarootdir}/man'
866 2 bertin
 
867
ac_prev=
868 177 bertin
ac_dashdash=
869 2 bertin
for ac_option
870
do
871
  # If the previous option needs an argument, assign it.
872
  if test -n "$ac_prev"; then
873 177 bertin
    eval $ac_prev=\$ac_option
874 2 bertin
    ac_prev=
875
    continue
876
  fi
877
 
878 177 bertin
  case $ac_option in
879 256 bertin
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880
  *=)   ac_optarg= ;;
881
  *)    ac_optarg=yes ;;
882 177 bertin
  esac
883 2 bertin
 
884
  # Accept the important Cygnus configure options, so we can diagnose typos.
885
 
886 177 bertin
  case $ac_dashdash$ac_option in
887
  --)
888
    ac_dashdash=yes ;;
889 2 bertin
 
890
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
891
    ac_prev=bindir ;;
892
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893
    bindir=$ac_optarg ;;
894
 
895
  -build | --build | --buil | --bui | --bu)
896
    ac_prev=build_alias ;;
897
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898
    build_alias=$ac_optarg ;;
899
 
900
  -cache-file | --cache-file | --cache-fil | --cache-fi \
901
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902
    ac_prev=cache_file ;;
903
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905
    cache_file=$ac_optarg ;;
906
 
907
  --config-cache | -C)
908
    cache_file=config.cache ;;
909
 
910 177 bertin
  -datadir | --datadir | --datadi | --datad)
911 2 bertin
    ac_prev=datadir ;;
912 177 bertin
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 2 bertin
    datadir=$ac_optarg ;;
914
 
915 177 bertin
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916
  | --dataroo | --dataro | --datar)
917
    ac_prev=datarootdir ;;
918
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920
    datarootdir=$ac_optarg ;;
921
 
922 2 bertin
  -disable-* | --disable-*)
923 211 bertin
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 2 bertin
    # Reject names that are not valid shell variable names.
925 211 bertin
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 256 bertin
      as_fn_error $? "invalid feature name: $ac_useropt"
927 211 bertin
    ac_useropt_orig=$ac_useropt
928
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929
    case $ac_user_opts in
930
      *"
931
"enable_$ac_useropt"
932
"*) ;;
933
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934
         ac_unrecognized_sep=', ';;
935
    esac
936
    eval enable_$ac_useropt=no ;;
937 2 bertin
 
938 177 bertin
  -docdir | --docdir | --docdi | --doc | --do)
939
    ac_prev=docdir ;;
940
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941
    docdir=$ac_optarg ;;
942
 
943
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944
    ac_prev=dvidir ;;
945
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946
    dvidir=$ac_optarg ;;
947
 
948 2 bertin
  -enable-* | --enable-*)
949 211 bertin
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 2 bertin
    # Reject names that are not valid shell variable names.
951 211 bertin
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 256 bertin
      as_fn_error $? "invalid feature name: $ac_useropt"
953 211 bertin
    ac_useropt_orig=$ac_useropt
954
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955
    case $ac_user_opts in
956
      *"
957
"enable_$ac_useropt"
958
"*) ;;
959
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960
         ac_unrecognized_sep=', ';;
961
    esac
962
    eval enable_$ac_useropt=\$ac_optarg ;;
963 2 bertin
 
964
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966
  | --exec | --exe | --ex)
967
    ac_prev=exec_prefix ;;
968
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970
  | --exec=* | --exe=* | --ex=*)
971
    exec_prefix=$ac_optarg ;;
972
 
973
  -gas | --gas | --ga | --g)
974
    # Obsolete; use --with-gas.
975
    with_gas=yes ;;
976
 
977
  -help | --help | --hel | --he | -h)
978
    ac_init_help=long ;;
979
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980
    ac_init_help=recursive ;;
981
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982
    ac_init_help=short ;;
983
 
984
  -host | --host | --hos | --ho)
985
    ac_prev=host_alias ;;
986
  -host=* | --host=* | --hos=* | --ho=*)
987
    host_alias=$ac_optarg ;;
988
 
989 177 bertin
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990
    ac_prev=htmldir ;;
991
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992
  | --ht=*)
993
    htmldir=$ac_optarg ;;
994
 
995 2 bertin
  -includedir | --includedir | --includedi | --included | --include \
996
  | --includ | --inclu | --incl | --inc)
997
    ac_prev=includedir ;;
998
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1000
    includedir=$ac_optarg ;;
1001
 
1002
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1003
    ac_prev=infodir ;;
1004
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005
    infodir=$ac_optarg ;;
1006
 
1007
  -libdir | --libdir | --libdi | --libd)
1008
    ac_prev=libdir ;;
1009
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010
    libdir=$ac_optarg ;;
1011
 
1012
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013
  | --libexe | --libex | --libe)
1014
    ac_prev=libexecdir ;;
1015
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016
  | --libexe=* | --libex=* | --libe=*)
1017
    libexecdir=$ac_optarg ;;
1018
 
1019 177 bertin
  -localedir | --localedir | --localedi | --localed | --locale)
1020
    ac_prev=localedir ;;
1021
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022
    localedir=$ac_optarg ;;
1023
 
1024 2 bertin
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 177 bertin
  | --localstate | --localstat | --localsta | --localst | --locals)
1026 2 bertin
    ac_prev=localstatedir ;;
1027
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 177 bertin
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 2 bertin
    localstatedir=$ac_optarg ;;
1030
 
1031
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032
    ac_prev=mandir ;;
1033
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034
    mandir=$ac_optarg ;;
1035
 
1036
  -nfp | --nfp | --nf)
1037
    # Obsolete; use --without-fp.
1038
    with_fp=no ;;
1039
 
1040
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041
  | --no-cr | --no-c | -n)
1042
    no_create=yes ;;
1043
 
1044
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046
    no_recursion=yes ;;
1047
 
1048
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050
  | --oldin | --oldi | --old | --ol | --o)
1051
    ac_prev=oldincludedir ;;
1052
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055
    oldincludedir=$ac_optarg ;;
1056
 
1057
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058
    ac_prev=prefix ;;
1059
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060
    prefix=$ac_optarg ;;
1061
 
1062
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063
  | --program-pre | --program-pr | --program-p)
1064
    ac_prev=program_prefix ;;
1065
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067
    program_prefix=$ac_optarg ;;
1068
 
1069
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070
  | --program-suf | --program-su | --program-s)
1071
    ac_prev=program_suffix ;;
1072
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074
    program_suffix=$ac_optarg ;;
1075
 
1076
  -program-transform-name | --program-transform-name \
1077
  | --program-transform-nam | --program-transform-na \
1078
  | --program-transform-n | --program-transform- \
1079
  | --program-transform | --program-transfor \
1080
  | --program-transfo | --program-transf \
1081
  | --program-trans | --program-tran \
1082
  | --progr-tra | --program-tr | --program-t)
1083
    ac_prev=program_transform_name ;;
1084
  -program-transform-name=* | --program-transform-name=* \
1085
  | --program-transform-nam=* | --program-transform-na=* \
1086
  | --program-transform-n=* | --program-transform-=* \
1087
  | --program-transform=* | --program-transfor=* \
1088
  | --program-transfo=* | --program-transf=* \
1089
  | --program-trans=* | --program-tran=* \
1090
  | --progr-tra=* | --program-tr=* | --program-t=*)
1091
    program_transform_name=$ac_optarg ;;
1092
 
1093 177 bertin
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094
    ac_prev=pdfdir ;;
1095
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096
    pdfdir=$ac_optarg ;;
1097
 
1098
  -psdir | --psdir | --psdi | --psd | --ps)
1099
    ac_prev=psdir ;;
1100
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101
    psdir=$ac_optarg ;;
1102
 
1103 2 bertin
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104
  | -silent | --silent | --silen | --sile | --sil)
1105
    silent=yes ;;
1106
 
1107
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108
    ac_prev=sbindir ;;
1109
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110
  | --sbi=* | --sb=*)
1111
    sbindir=$ac_optarg ;;
1112
 
1113
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115
  | --sharedst | --shareds | --shared | --share | --shar \
1116
  | --sha | --sh)
1117
    ac_prev=sharedstatedir ;;
1118
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121
  | --sha=* | --sh=*)
1122
    sharedstatedir=$ac_optarg ;;
1123
 
1124
  -site | --site | --sit)
1125
    ac_prev=site ;;
1126
  -site=* | --site=* | --sit=*)
1127
    site=$ac_optarg ;;
1128
 
1129
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130
    ac_prev=srcdir ;;
1131
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132
    srcdir=$ac_optarg ;;
1133
 
1134
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135
  | --syscon | --sysco | --sysc | --sys | --sy)
1136
    ac_prev=sysconfdir ;;
1137
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139
    sysconfdir=$ac_optarg ;;
1140
 
1141
  -target | --target | --targe | --targ | --tar | --ta | --t)
1142
    ac_prev=target_alias ;;
1143
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144
    target_alias=$ac_optarg ;;
1145
 
1146
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147
    verbose=yes ;;
1148
 
1149
  -version | --version | --versio | --versi | --vers | -V)
1150
    ac_init_version=: ;;
1151
 
1152
  -with-* | --with-*)
1153 211 bertin
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 2 bertin
    # Reject names that are not valid shell variable names.
1155 211 bertin
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 256 bertin
      as_fn_error $? "invalid package name: $ac_useropt"
1157 211 bertin
    ac_useropt_orig=$ac_useropt
1158
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159
    case $ac_user_opts in
1160
      *"
1161
"with_$ac_useropt"
1162
"*) ;;
1163
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164
         ac_unrecognized_sep=', ';;
1165
    esac
1166
    eval with_$ac_useropt=\$ac_optarg ;;
1167 2 bertin
 
1168
  -without-* | --without-*)
1169 211 bertin
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 2 bertin
    # Reject names that are not valid shell variable names.
1171 211 bertin
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 256 bertin
      as_fn_error $? "invalid package name: $ac_useropt"
1173 211 bertin
    ac_useropt_orig=$ac_useropt
1174
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175
    case $ac_user_opts in
1176
      *"
1177
"with_$ac_useropt"
1178
"*) ;;
1179
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180
         ac_unrecognized_sep=', ';;
1181
    esac
1182
    eval with_$ac_useropt=no ;;
1183 2 bertin
 
1184
  --x)
1185
    # Obsolete; use --with-x.
1186
    with_x=yes ;;
1187
 
1188
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189
  | --x-incl | --x-inc | --x-in | --x-i)
1190
    ac_prev=x_includes ;;
1191
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193
    x_includes=$ac_optarg ;;
1194
 
1195
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197
    ac_prev=x_libraries ;;
1198
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200
    x_libraries=$ac_optarg ;;
1201
 
1202 256 bertin
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203
Try \`$0 --help' for more information"
1204 2 bertin
    ;;
1205
 
1206
  *=*)
1207
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208
    # Reject names that are not valid shell variable names.
1209 256 bertin
    case $ac_envvar in #(
1210
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1211
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212
    esac
1213 177 bertin
    eval $ac_envvar=\$ac_optarg
1214 2 bertin
    export $ac_envvar ;;
1215
 
1216
  *)
1217
    # FIXME: should be removed in autoconf 3.0.
1218 211 bertin
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 2 bertin
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 211 bertin
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 256 bertin
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 2 bertin
    ;;
1223
 
1224
  esac
1225
done
1226
 
1227
if test -n "$ac_prev"; then
1228
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 256 bertin
  as_fn_error $? "missing argument to $ac_option"
1230 2 bertin
fi
1231
 
1232 211 bertin
if test -n "$ac_unrecognized_opts"; then
1233
  case $enable_option_checking in
1234
    no) ;;
1235 256 bertin
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 211 bertin
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237
  esac
1238
fi
1239
 
1240
# Check all directory arguments for consistency.
1241 177 bertin
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242
                datadir sysconfdir sharedstatedir localstatedir includedir \
1243
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244
                libdir localedir mandir
1245 2 bertin
do
1246 177 bertin
  eval ac_val=\$$ac_var
1247 211 bertin
  # Remove trailing slashes.
1248 2 bertin
  case $ac_val in
1249 211 bertin
    */ )
1250
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251
      eval $ac_var=\$ac_val;;
1252
  esac
1253
  # Be sure to have absolute directory names.
1254
  case $ac_val in
1255 177 bertin
    [\\/$]* | ?:[\\/]* )  continue;;
1256
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 2 bertin
  esac
1258 256 bertin
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 2 bertin
done
1260
 
1261
# There might be people who depend on the old broken behavior: `$host'
1262
# used to hold the argument of --host etc.
1263
# FIXME: To remove some day.
1264
build=$build_alias
1265
host=$host_alias
1266
target=$target_alias
1267
 
1268
# FIXME: To remove some day.
1269
if test "x$host_alias" != x; then
1270
  if test "x$build_alias" = x; then
1271
    cross_compiling=maybe
1272
  elif test "x$build_alias" != "x$host_alias"; then
1273
    cross_compiling=yes
1274
  fi
1275
fi
1276
 
1277
ac_tool_prefix=
1278
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
 
1280
test "$silent" = yes && exec 6>/dev/null
1281
 
1282
 
1283 177 bertin
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284
ac_ls_di=`ls -di .` &&
1285
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 256 bertin
  as_fn_error $? "working directory cannot be determined"
1287 177 bertin
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 256 bertin
  as_fn_error $? "pwd does not report name of working directory"
1289 177 bertin
 
1290
 
1291 2 bertin
# Find the source files, if location was not specified.
1292
if test -z "$srcdir"; then
1293
  ac_srcdir_defaulted=yes
1294 177 bertin
  # Try the directory containing this script, then the parent directory.
1295 211 bertin
  ac_confdir=`$as_dirname -- "$as_myself" ||
1296
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297
         X"$as_myself" : 'X\(//\)[^/]' \| \
1298
         X"$as_myself" : 'X\(//\)$' \| \
1299
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300
$as_echo X"$as_myself" |
1301 177 bertin
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302
            s//\1/
1303
            q
1304
          }
1305
          /^X\(\/\/\)[^/].*/{
1306
            s//\1/
1307
            q
1308
          }
1309
          /^X\(\/\/\)$/{
1310
            s//\1/
1311
            q
1312
          }
1313
          /^X\(\/\).*/{
1314
            s//\1/
1315
            q
1316
          }
1317
          s/.*/./; q'`
1318 2 bertin
  srcdir=$ac_confdir
1319 177 bertin
  if test ! -r "$srcdir/$ac_unique_file"; then
1320 2 bertin
    srcdir=..
1321
  fi
1322
else
1323
  ac_srcdir_defaulted=no
1324
fi
1325 177 bertin
if test ! -r "$srcdir/$ac_unique_file"; then
1326
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 256 bertin
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 2 bertin
fi
1329 177 bertin
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330
ac_abs_confdir=`(
1331 256 bertin
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 177 bertin
        pwd)`
1333
# When building in place, set srcdir=.
1334
if test "$ac_abs_confdir" = "$ac_pwd"; then
1335
  srcdir=.
1336
fi
1337
# Remove unnecessary trailing slashes from srcdir.
1338
# Double slashes in file names in object file debugging info
1339
# mess up M-x gdb in Emacs.
1340
case $srcdir in
1341
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342
esac
1343
for ac_var in $ac_precious_vars; do
1344
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345
  eval ac_env_${ac_var}_value=\$${ac_var}
1346
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348
done
1349 2 bertin
 
1350
#
1351
# Report the --help message.
1352
#
1353
if test "$ac_init_help" = "long"; then
1354
  # Omit some internal or obsolete options to make the list less imposing.
1355
  # This message is too long to be a string in the A/UX 3.1 sh.
1356
  cat <<_ACEOF
1357 334 bertin
\`configure' configures scamp 2.2.1 to adapt to many kinds of systems.
1358 2 bertin
 
1359
Usage: $0 [OPTION]... [VAR=VALUE]...
1360
 
1361
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362
VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
 
1364
Defaults for the options are specified in brackets.
1365
 
1366
Configuration:
1367
  -h, --help              display this help and exit
1368
      --help=short        display options specific to this package
1369
      --help=recursive    display the short help of all the included packages
1370
  -V, --version           display version information and exit
1371 256 bertin
  -q, --quiet, --silent   do not print \`checking ...' messages
1372 2 bertin
      --cache-file=FILE   cache test results in FILE [disabled]
1373
  -C, --config-cache      alias for \`--cache-file=config.cache'
1374
  -n, --no-create         do not create output files
1375
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
 
1377
Installation directories:
1378
  --prefix=PREFIX         install architecture-independent files in PREFIX
1379 211 bertin
                          [$ac_default_prefix]
1380 2 bertin
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381 211 bertin
                          [PREFIX]
1382 2 bertin
 
1383
By default, \`make install' will install all the files in
1384
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386
for instance \`--prefix=\$HOME'.
1387
 
1388
For better control, use the options below.
1389
 
1390
Fine tuning of the installation directories:
1391 211 bertin
  --bindir=DIR            user executables [EPREFIX/bin]
1392
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1393
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1394
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1395
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1396
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1397
  --libdir=DIR            object code libraries [EPREFIX/lib]
1398
  --includedir=DIR        C header files [PREFIX/include]
1399
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1400
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1401
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1402
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1403
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1404
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1405
  --docdir=DIR            documentation root [DATAROOTDIR/doc/scamp]
1406
  --htmldir=DIR           html documentation [DOCDIR]
1407
  --dvidir=DIR            dvi documentation [DOCDIR]
1408
  --pdfdir=DIR            pdf documentation [DOCDIR]
1409
  --psdir=DIR             ps documentation [DOCDIR]
1410 2 bertin
_ACEOF
1411
 
1412
  cat <<\_ACEOF
1413
 
1414
Program names:
1415
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1416
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1417
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1418
 
1419
System types:
1420
  --build=BUILD     configure for building on BUILD [guessed]
1421
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422
_ACEOF
1423
fi
1424
 
1425
if test -n "$ac_init_help"; then
1426
  case $ac_init_help in
1427 334 bertin
     short | recursive ) echo "Configuration of scamp 2.2.1:";;
1428 2 bertin
   esac
1429
  cat <<\_ACEOF
1430
 
1431
Optional Features:
1432 211 bertin
  --disable-option-checking  ignore unrecognized --enable/--with options
1433 2 bertin
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435 216 bertin
  --enable-auto-flags     Let the configure script choose the compilation
1436
                          flags (off by default)
1437 268 bertin
  --enable-icc            Use the Intel compiler (off by default)
1438
  --enable-mkl            Use INTEL's MKL for solvers and FFTs (off by
1439
                          default)
1440 308 bertin
  --enable-dependency-tracking
1441
                          do not reject slow dependency extractors
1442
  --disable-dependency-tracking
1443
                          speeds up one-time build
1444 177 bertin
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1445 216 bertin
  --enable-static[=PKGS]  build static libraries [default=yes]
1446 2 bertin
  --enable-fast-install[=PKGS]
1447
                          optimize for fast installation [default=yes]
1448
  --disable-libtool-lock  avoid locking (might break parallel builds)
1449 183 bertin
  --disable-largefile     omit support for large files
1450 295 bertin
  --enable-plplot         Activate PLPlot library (default = yes)
1451 2 bertin
  --enable-threads[=]
1452 283 bertin
                          Enable multhreading (on with up to 1024 threads by
1453 195 bertin
                          default)
1454 268 bertin
  --enable-profiling      Enable special mode for profiling (off by default)
1455 295 bertin
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1456
$as_echo "yes" >&6; }
1457 216 bertin
  --enable-best-link      Choose the right combination of static and dynamic
1458
                          linking to make the executable as portable as
1459
                          possible (off by default)
1460 2 bertin
 
1461
Optional Packages:
1462
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464 308 bertin
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1465 2 bertin
                          both]
1466 256 bertin
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1467
  --with-sysroot=DIR Search for dependent libraries within DIR
1468
                        (or the compiler's sysroot if not specified).
1469 331 bertin
  --with-mkl-dir=
1470
                          Provide an alternative path to the MKL library
1471 268 bertin
  --with-atlas-libdir=
1472
                          Alternative directory for the ATLAS library
1473 161 bertin
  --with-atlas-incdir=
1474 269 bertin
                          Alternative directory for ATLAS include files
1475 268 bertin
  --with-fftw-libdir=
1476
                          Alternative directory for the FFTW library
1477 161 bertin
  --with-fftw-incdir=
1478 269 bertin
                          Alternative directory for FFTW include files
1479 331 bertin
  --with-curl-libdir=
1480
                          Alternative directory for the cURL library
1481
  --with-atlas-incdir=
1482
                          Alternative directory for cURL include files
1483
  --with-plplot-libdir=
1484
                          Provide an alternative path to the PLPlot library
1485
  --with-plplot-incdir=
1486
                          Provide an alternative path to the PLPlot include
1487
                          directory
1488 127 bertin
  --with-xsl_url=
1489 295 bertin
                          Provide an alternative default URL of the XSLT
1490
                          filter
1491 2 bertin
 
1492
Some influential environment variables:
1493
  CC          C compiler command
1494
  CFLAGS      C compiler flags
1495
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1496
              nonstandard directory 
1497 177 bertin
  LIBS        libraries to pass to the linker, e.g. -l
1498 256 bertin
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1499 177 bertin
              you have headers in a nonstandard directory 
1500 2 bertin
  CPP         C preprocessor
1501
 
1502
Use these variables to override the choices made by `configure' or to help
1503
it to find libraries and programs with nonstandard names/locations.
1504
 
1505
Report bugs to .
1506
_ACEOF
1507 177 bertin
ac_status=$?
1508 2 bertin
fi
1509
 
1510
if test "$ac_init_help" = "recursive"; then
1511
  # If there are subdirs, report their specific --help.
1512
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 211 bertin
    test -d "$ac_dir" ||
1514
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515
      continue
1516 2 bertin
    ac_builddir=.
1517
 
1518 177 bertin
case "$ac_dir" in
1519
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520
*)
1521 211 bertin
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 177 bertin
  # A ".." for each directory in $ac_dir_suffix.
1523 211 bertin
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 177 bertin
  case $ac_top_builddir_sub in
1525
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527
  esac ;;
1528
esac
1529
ac_abs_top_builddir=$ac_pwd
1530
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531
# for backward compatibility:
1532
ac_top_builddir=$ac_top_build_prefix
1533 2 bertin
 
1534
case $srcdir in
1535 177 bertin
  .)  # We are building in place.
1536 2 bertin
    ac_srcdir=.
1537 177 bertin
    ac_top_srcdir=$ac_top_builddir_sub
1538
    ac_abs_top_srcdir=$ac_pwd ;;
1539
  [\\/]* | ?:[\\/]* )  # Absolute name.
1540 2 bertin
    ac_srcdir=$srcdir$ac_dir_suffix;
1541 177 bertin
    ac_top_srcdir=$srcdir
1542
    ac_abs_top_srcdir=$srcdir ;;
1543
  *) # Relative name.
1544
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1546
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 2 bertin
esac
1548 177 bertin
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 2 bertin
 
1550 177 bertin
    cd "$ac_dir" || { ac_status=$?; continue; }
1551
    # Check for guested configure.
1552
    if test -f "$ac_srcdir/configure.gnu"; then
1553
      echo &&
1554
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555
    elif test -f "$ac_srcdir/configure"; then
1556
      echo &&
1557
      $SHELL "$ac_srcdir/configure" --help=recursive
1558 2 bertin
    else
1559 211 bertin
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 177 bertin
    fi || ac_status=$?
1561
    cd "$ac_pwd" || { ac_status=$?; break; }
1562 2 bertin
  done
1563
fi
1564
 
1565 177 bertin
test -n "$ac_init_help" && exit $ac_status
1566 2 bertin
if $ac_init_version; then
1567
  cat <<\_ACEOF
1568 334 bertin
scamp configure 2.2.1
1569 308 bertin
generated by GNU Autoconf 2.69
1570 2 bertin
 
1571 308 bertin
Copyright (C) 2012 Free Software Foundation, Inc.
1572 2 bertin
This configure script is free software; the Free Software Foundation
1573
gives unlimited permission to copy, distribute and modify it.
1574
_ACEOF
1575 177 bertin
  exit
1576 2 bertin
fi
1577 256 bertin
 
1578
## ------------------------ ##
1579
## Autoconf initialization. ##
1580
## ------------------------ ##
1581
 
1582
# ac_fn_c_try_compile LINENO
1583
# --------------------------
1584
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585
ac_fn_c_try_compile ()
1586
{
1587
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588
  rm -f conftest.$ac_objext
1589
  if { { ac_try="$ac_compile"
1590
case "(($ac_try" in
1591
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592
  *) ac_try_echo=$ac_try;;
1593
esac
1594
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595
$as_echo "$ac_try_echo"; } >&5
1596
  (eval "$ac_compile") 2>conftest.err
1597
  ac_status=$?
1598
  if test -s conftest.err; then
1599
    grep -v '^ *+' conftest.err >conftest.er1
1600
    cat conftest.er1 >&5
1601
    mv -f conftest.er1 conftest.err
1602
  fi
1603
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604
  test $ac_status = 0; } && {
1605
         test -z "$ac_c_werror_flag" ||
1606
         test ! -s conftest.err
1607
       } && test -s conftest.$ac_objext; then :
1608
  ac_retval=0
1609
else
1610
  $as_echo "$as_me: failed program was:" >&5
1611
sed 's/^/| /' conftest.$ac_ext >&5
1612
 
1613
        ac_retval=1
1614
fi
1615
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616
  as_fn_set_status $ac_retval
1617
 
1618
} # ac_fn_c_try_compile
1619
 
1620
# ac_fn_c_try_link LINENO
1621
# -----------------------
1622
# Try to link conftest.$ac_ext, and return whether this succeeded.
1623
ac_fn_c_try_link ()
1624
{
1625
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626
  rm -f conftest.$ac_objext conftest$ac_exeext
1627
  if { { ac_try="$ac_link"
1628
case "(($ac_try" in
1629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630
  *) ac_try_echo=$ac_try;;
1631
esac
1632
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633
$as_echo "$ac_try_echo"; } >&5
1634
  (eval "$ac_link") 2>conftest.err
1635
  ac_status=$?
1636
  if test -s conftest.err; then
1637
    grep -v '^ *+' conftest.err >conftest.er1
1638
    cat conftest.er1 >&5
1639
    mv -f conftest.er1 conftest.err
1640
  fi
1641
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642
  test $ac_status = 0; } && {
1643
         test -z "$ac_c_werror_flag" ||
1644
         test ! -s conftest.err
1645
       } && test -s conftest$ac_exeext && {
1646
         test "$cross_compiling" = yes ||
1647 308 bertin
         test -x conftest$ac_exeext
1648 256 bertin
       }; then :
1649
  ac_retval=0
1650
else
1651
  $as_echo "$as_me: failed program was:" >&5
1652
sed 's/^/| /' conftest.$ac_ext >&5
1653
 
1654
        ac_retval=1
1655
fi
1656
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1657
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1658
  # interfere with the next link command; also delete a directory that is
1659
  # left behind by Apple's compiler.  We do this before executing the actions.
1660
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
  as_fn_set_status $ac_retval
1663
 
1664
} # ac_fn_c_try_link
1665
 
1666
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667
# -------------------------------------------------------
1668
# Tests whether HEADER exists and can be compiled using the include files in
1669
# INCLUDES, setting the cache variable VAR accordingly.
1670
ac_fn_c_check_header_compile ()
1671
{
1672
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674
$as_echo_n "checking for $2... " >&6; }
1675
if eval \${$3+:} false; then :
1676
  $as_echo_n "(cached) " >&6
1677
else
1678
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679
/* end confdefs.h.  */
1680
$4
1681
#include <$2>
1682
_ACEOF
1683
if ac_fn_c_try_compile "$LINENO"; then :
1684
  eval "$3=yes"
1685
else
1686
  eval "$3=no"
1687
fi
1688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689
fi
1690
eval ac_res=\$$3
1691
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692
$as_echo "$ac_res" >&6; }
1693
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694
 
1695
} # ac_fn_c_check_header_compile
1696
 
1697
# ac_fn_c_try_cpp LINENO
1698
# ----------------------
1699
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1700
ac_fn_c_try_cpp ()
1701
{
1702
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1704
case "(($ac_try" in
1705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706
  *) ac_try_echo=$ac_try;;
1707
esac
1708
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709
$as_echo "$ac_try_echo"; } >&5
1710
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1711
  ac_status=$?
1712
  if test -s conftest.err; then
1713
    grep -v '^ *+' conftest.err >conftest.er1
1714
    cat conftest.er1 >&5
1715
    mv -f conftest.er1 conftest.err
1716
  fi
1717
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718
  test $ac_status = 0; } > conftest.i && {
1719
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720
         test ! -s conftest.err
1721
       }; then :
1722
  ac_retval=0
1723
else
1724
  $as_echo "$as_me: failed program was:" >&5
1725
sed 's/^/| /' conftest.$ac_ext >&5
1726
 
1727
    ac_retval=1
1728
fi
1729
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
  as_fn_set_status $ac_retval
1731
 
1732
} # ac_fn_c_try_cpp
1733
 
1734
# ac_fn_c_try_run LINENO
1735
# ----------------------
1736
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737
# that executables *can* be run.
1738
ac_fn_c_try_run ()
1739
{
1740
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741
  if { { ac_try="$ac_link"
1742
case "(($ac_try" in
1743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744
  *) ac_try_echo=$ac_try;;
1745
esac
1746
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747
$as_echo "$ac_try_echo"; } >&5
1748
  (eval "$ac_link") 2>&5
1749
  ac_status=$?
1750
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752
  { { case "(($ac_try" in
1753
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754
  *) ac_try_echo=$ac_try;;
1755
esac
1756
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757
$as_echo "$ac_try_echo"; } >&5
1758
  (eval "$ac_try") 2>&5
1759
  ac_status=$?
1760
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761
  test $ac_status = 0; }; }; then :
1762
  ac_retval=0
1763
else
1764
  $as_echo "$as_me: program exited with status $ac_status" >&5
1765
       $as_echo "$as_me: failed program was:" >&5
1766
sed 's/^/| /' conftest.$ac_ext >&5
1767
 
1768
       ac_retval=$ac_status
1769
fi
1770
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
  as_fn_set_status $ac_retval
1773
 
1774
} # ac_fn_c_try_run
1775
 
1776
# ac_fn_c_check_func LINENO FUNC VAR
1777
# ----------------------------------
1778
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1779
ac_fn_c_check_func ()
1780
{
1781
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783
$as_echo_n "checking for $2... " >&6; }
1784
if eval \${$3+:} false; then :
1785
  $as_echo_n "(cached) " >&6
1786
else
1787
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788
/* end confdefs.h.  */
1789
/* Define $2 to an innocuous variant, in case  declares $2.
1790
   For example, HP-UX 11i  declares gettimeofday.  */
1791
#define $2 innocuous_$2
1792
 
1793
/* System header to define __stub macros and hopefully few prototypes,
1794
    which can conflict with char $2 (); below.
1795
    Prefer  to  if __STDC__ is defined, since
1796
     exists even on freestanding compilers.  */
1797
 
1798
#ifdef __STDC__
1799
# include 
1800
#else
1801
# include 
1802
#endif
1803
 
1804
#undef $2
1805
 
1806
/* Override any GCC internal prototype to avoid an error.
1807
   Use char because int might match the return type of a GCC
1808
   builtin and then its argument prototype would still apply.  */
1809
#ifdef __cplusplus
1810
extern "C"
1811
#endif
1812
char $2 ();
1813
/* The GNU C library defines this for functions which it implements
1814
    to always fail with ENOSYS.  Some functions are actually named
1815
    something starting with __ and the normal name is an alias.  */
1816
#if defined __stub_$2 || defined __stub___$2
1817
choke me
1818
#endif
1819
 
1820
int
1821
main ()
1822
{
1823
return $2 ();
1824
  ;
1825
  return 0;
1826
}
1827
_ACEOF
1828
if ac_fn_c_try_link "$LINENO"; then :
1829
  eval "$3=yes"
1830
else
1831
  eval "$3=no"
1832
fi
1833
rm -f core conftest.err conftest.$ac_objext \
1834
    conftest$ac_exeext conftest.$ac_ext
1835
fi
1836
eval ac_res=\$$3
1837
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838
$as_echo "$ac_res" >&6; }
1839
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
 
1841
} # ac_fn_c_check_func
1842
 
1843
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844
# -------------------------------------------------------
1845
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846
# the include files in INCLUDES and setting the cache variable VAR
1847
# accordingly.
1848
ac_fn_c_check_header_mongrel ()
1849
{
1850
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851
  if eval \${$3+:} false; then :
1852
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853
$as_echo_n "checking for $2... " >&6; }
1854
if eval \${$3+:} false; then :
1855
  $as_echo_n "(cached) " >&6
1856
fi
1857
eval ac_res=\$$3
1858
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859
$as_echo "$ac_res" >&6; }
1860
else
1861
  # Is the header compilable?
1862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863
$as_echo_n "checking $2 usability... " >&6; }
1864
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865
/* end confdefs.h.  */
1866
$4
1867
#include <$2>
1868
_ACEOF
1869
if ac_fn_c_try_compile "$LINENO"; then :
1870
  ac_header_compiler=yes
1871
else
1872
  ac_header_compiler=no
1873
fi
1874
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876
$as_echo "$ac_header_compiler" >&6; }
1877
 
1878
# Is the header present?
1879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880
$as_echo_n "checking $2 presence... " >&6; }
1881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882
/* end confdefs.h.  */
1883
#include <$2>
1884
_ACEOF
1885
if ac_fn_c_try_cpp "$LINENO"; then :
1886
  ac_header_preproc=yes
1887
else
1888
  ac_header_preproc=no
1889
fi
1890
rm -f conftest.err conftest.i conftest.$ac_ext
1891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892
$as_echo "$ac_header_preproc" >&6; }
1893
 
1894
# So?  What about this header?
1895
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896
  yes:no: )
1897
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901
    ;;
1902
  no:yes:* )
1903
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1906
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1907
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1910
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1911
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913
( $as_echo "## ---------------------------- ##
1914
## Report this to bertin@iap.fr ##
1915
## ---------------------------- ##"
1916
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1917
    ;;
1918
esac
1919
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920
$as_echo_n "checking for $2... " >&6; }
1921
if eval \${$3+:} false; then :
1922
  $as_echo_n "(cached) " >&6
1923
else
1924
  eval "$3=\$ac_header_compiler"
1925
fi
1926
eval ac_res=\$$3
1927
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928
$as_echo "$ac_res" >&6; }
1929
fi
1930
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
 
1932
} # ac_fn_c_check_header_mongrel
1933
 
1934
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1935
# -------------------------------------------
1936
# Tests whether TYPE exists after having included INCLUDES, setting cache
1937
# variable VAR accordingly.
1938
ac_fn_c_check_type ()
1939
{
1940
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942
$as_echo_n "checking for $2... " >&6; }
1943
if eval \${$3+:} false; then :
1944
  $as_echo_n "(cached) " >&6
1945
else
1946
  eval "$3=no"
1947
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948
/* end confdefs.h.  */
1949
$4
1950
int
1951
main ()
1952
{
1953
if (sizeof ($2))
1954
         return 0;
1955
  ;
1956
  return 0;
1957
}
1958
_ACEOF
1959
if ac_fn_c_try_compile "$LINENO"; then :
1960
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961
/* end confdefs.h.  */
1962
$4
1963
int
1964
main ()
1965
{
1966
if (sizeof (($2)))
1967
            return 0;
1968
  ;
1969
  return 0;
1970
}
1971
_ACEOF
1972
if ac_fn_c_try_compile "$LINENO"; then :
1973
 
1974
else
1975
  eval "$3=yes"
1976
fi
1977
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978
fi
1979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980
fi
1981
eval ac_res=\$$3
1982
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983
$as_echo "$ac_res" >&6; }
1984
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
 
1986
} # ac_fn_c_check_type
1987 177 bertin
cat >config.log <<_ACEOF
1988 2 bertin
This file contains any messages produced by compilers while
1989
running configure, to aid debugging if configure makes a mistake.
1990
 
1991 334 bertin
It was created by scamp $as_me 2.2.1, which was
1992 308 bertin
generated by GNU Autoconf 2.69.  Invocation command line was
1993 2 bertin
 
1994
  $ $0 $@
1995
 
1996
_ACEOF
1997 177 bertin
exec 5>>config.log
1998 2 bertin
{
1999
cat <<_ASUNAME
2000
## --------- ##
2001
## Platform. ##
2002
## --------- ##
2003
 
2004
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2005
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2006
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2007
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2008
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2009
 
2010
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2011
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2012
 
2013
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2014
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2015
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2016 177 bertin
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2017 2 bertin
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2018
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2019
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2020
 
2021
_ASUNAME
2022
 
2023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024
for as_dir in $PATH
2025
do
2026
  IFS=$as_save_IFS
2027
  test -z "$as_dir" && as_dir=.
2028 256 bertin
    $as_echo "PATH: $as_dir"
2029
  done
2030 177 bertin
IFS=$as_save_IFS
2031 2 bertin
 
2032
} >&5
2033
 
2034
cat >&5 <<_ACEOF
2035
 
2036
 
2037
## ----------- ##
2038
## Core tests. ##
2039
## ----------- ##
2040
 
2041
_ACEOF
2042
 
2043
 
2044
# Keep a trace of the command line.
2045
# Strip out --no-create and --no-recursion so they do not pile up.
2046
# Strip out --silent because we don't want to record it for future runs.
2047
# Also quote any args containing shell meta-characters.
2048
# Make two passes to allow for proper duplicate-argument suppression.
2049
ac_configure_args=
2050
ac_configure_args0=
2051
ac_configure_args1=
2052
ac_must_keep_next=false
2053
for ac_pass in 1 2
2054
do
2055
  for ac_arg
2056
  do
2057
    case $ac_arg in
2058
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2059
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2060
    | -silent | --silent | --silen | --sile | --sil)
2061
      continue ;;
2062 177 bertin
    *\'*)
2063 211 bertin
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 2 bertin
    esac
2065
    case $ac_pass in
2066 256 bertin
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2067 2 bertin
    2)
2068 256 bertin
      as_fn_append ac_configure_args1 " '$ac_arg'"
2069 2 bertin
      if test $ac_must_keep_next = true; then
2070
        ac_must_keep_next=false # Got value, back to normal.
2071
      else
2072
        case $ac_arg in
2073
          *=* | --config-cache | -C | -disable-* | --disable-* \
2074
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2075
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2076
          | -with-* | --with-* | -without-* | --without-* | --x)
2077
            case "$ac_configure_args0 " in
2078
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2079
            esac
2080
            ;;
2081
          -* ) ac_must_keep_next=true ;;
2082
        esac
2083
      fi
2084 256 bertin
      as_fn_append ac_configure_args " '$ac_arg'"
2085 2 bertin
      ;;
2086
    esac
2087
  done
2088
done
2089 256 bertin
{ ac_configure_args0=; unset ac_configure_args0;}
2090
{ ac_configure_args1=; unset ac_configure_args1;}
2091 2 bertin
 
2092
# When interrupted or exit'd, cleanup temporary files, and complete
2093
# config.log.  We remove comments because anyway the quotes in there
2094
# would cause problems or look ugly.
2095 177 bertin
# WARNING: Use '\'' to represent an apostrophe within the trap.
2096
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2097 2 bertin
trap 'exit_status=$?
2098
  # Save into config.log some information that might help in debugging.
2099
  {
2100
    echo
2101
 
2102 256 bertin
    $as_echo "## ---------------- ##
2103 2 bertin
## Cache variables. ##
2104 256 bertin
## ---------------- ##"
2105 2 bertin
    echo
2106
    # The following way of writing the cache mishandles newlines in values,
2107 177 bertin
(
2108
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2109
    eval ac_val=\$$ac_var
2110
    case $ac_val in #(
2111
    *${as_nl}*)
2112
      case $ac_var in #(
2113 256 bertin
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2114 211 bertin
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2115 177 bertin
      esac
2116
      case $ac_var in #(
2117
      _ | IFS | as_nl) ;; #(
2118 211 bertin
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2119 256 bertin
      *) { eval $ac_var=; unset $ac_var;} ;;
2120 177 bertin
      esac ;;
2121
    esac
2122
  done
2123 2 bertin
  (set) 2>&1 |
2124 177 bertin
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2125
    *${as_nl}ac_space=\ *)
2126 2 bertin
      sed -n \
2127 177 bertin
        "s/'\''/'\''\\\\'\'''\''/g;
2128
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2129
      ;; #(
2130 2 bertin
    *)
2131 177 bertin
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2132 2 bertin
      ;;
2133 177 bertin
    esac |
2134
    sort
2135
)
2136 2 bertin
    echo
2137
 
2138 256 bertin
    $as_echo "## ----------------- ##
2139 2 bertin
## Output variables. ##
2140 256 bertin
## ----------------- ##"
2141 2 bertin
    echo
2142
    for ac_var in $ac_subst_vars
2143
    do
2144 177 bertin
      eval ac_val=\$$ac_var
2145
      case $ac_val in
2146 211 bertin
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 177 bertin
      esac
2148 211 bertin
      $as_echo "$ac_var='\''$ac_val'\''"
2149 2 bertin
    done | sort
2150
    echo
2151
 
2152
    if test -n "$ac_subst_files"; then
2153 256 bertin
      $as_echo "## ------------------- ##
2154 177 bertin
## File substitutions. ##
2155 256 bertin
## ------------------- ##"
2156 2 bertin
      echo
2157
      for ac_var in $ac_subst_files
2158
      do
2159 177 bertin
        eval ac_val=\$$ac_var
2160
        case $ac_val in
2161 211 bertin
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162 177 bertin
        esac
2163 211 bertin
        $as_echo "$ac_var='\''$ac_val'\''"
2164 2 bertin
      done | sort
2165
      echo
2166
    fi
2167
 
2168
    if test -s confdefs.h; then
2169 256 bertin
      $as_echo "## ----------- ##
2170 2 bertin
## confdefs.h. ##
2171 256 bertin
## ----------- ##"
2172 2 bertin
      echo
2173 177 bertin
      cat confdefs.h
2174 2 bertin
      echo
2175
    fi
2176
    test "$ac_signal" != 0 &&
2177 211 bertin
      $as_echo "$as_me: caught signal $ac_signal"
2178
    $as_echo "$as_me: exit $exit_status"
2179 2 bertin
  } >&5
2180 177 bertin
  rm -f core *.core core.conftest.* &&
2181
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2182 2 bertin
    exit $exit_status
2183 177 bertin
' 0
2184 2 bertin
for ac_signal in 1 2 13 15; do
2185 256 bertin
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2186 2 bertin
done
2187
ac_signal=0
2188
 
2189
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2190 177 bertin
rm -f -r conftest* confdefs.h
2191 2 bertin
 
2192 256 bertin
$as_echo "/* confdefs.h */" > confdefs.h
2193
 
2194 2 bertin
# Predefined preprocessor variables.
2195
 
2196
cat >>confdefs.h <<_ACEOF
2197
#define PACKAGE_NAME "$PACKAGE_NAME"
2198
_ACEOF
2199
 
2200
cat >>confdefs.h <<_ACEOF
2201
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2202
_ACEOF
2203
 
2204
cat >>confdefs.h <<_ACEOF
2205
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2206
_ACEOF
2207
 
2208
cat >>confdefs.h <<_ACEOF
2209
#define PACKAGE_STRING "$PACKAGE_STRING"
2210
_ACEOF
2211
 
2212
cat >>confdefs.h <<_ACEOF
2213
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2214
_ACEOF
2215
 
2216 256 bertin
cat >>confdefs.h <<_ACEOF
2217
#define PACKAGE_URL "$PACKAGE_URL"
2218
_ACEOF
2219 2 bertin
 
2220 256 bertin
 
2221 2 bertin
# Let the site file select an alternate cache file if it wants to.
2222 211 bertin
# Prefer an explicitly selected file to automatically selected ones.
2223
ac_site_file1=NONE
2224
ac_site_file2=NONE
2225 177 bertin
if test -n "$CONFIG_SITE"; then
2226 256 bertin
  # We do not want a PATH search for config.site.
2227
  case $CONFIG_SITE in #((
2228
    -*)  ac_site_file1=./$CONFIG_SITE;;
2229
    */*) ac_site_file1=$CONFIG_SITE;;
2230
    *)   ac_site_file1=./$CONFIG_SITE;;
2231
  esac
2232 177 bertin
elif test "x$prefix" != xNONE; then
2233 211 bertin
  ac_site_file1=$prefix/share/config.site
2234
  ac_site_file2=$prefix/etc/config.site
2235 177 bertin
else
2236 211 bertin
  ac_site_file1=$ac_default_prefix/share/config.site
2237
  ac_site_file2=$ac_default_prefix/etc/config.site
2238 2 bertin
fi
2239 211 bertin
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2240 177 bertin
do
2241 211 bertin
  test "x$ac_site_file" = xNONE && continue
2242 256 bertin
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2243
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2244 211 bertin
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2245 2 bertin
    sed 's/^/| /' "$ac_site_file" >&5
2246 256 bertin
    . "$ac_site_file" \
2247
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2248
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2249
as_fn_error $? "failed to load site script $ac_site_file
2250
See \`config.log' for more details" "$LINENO" 5; }
2251 2 bertin
  fi
2252
done
2253
 
2254
 
2255 256 bertin
as_fn_append ac_header_list " stdlib.h"
2256
as_fn_append ac_header_list " unistd.h"
2257
as_fn_append ac_header_list " sys/param.h"
2258 2 bertin
# Check that the precious variables saved in the cache have kept the same
2259
# value.
2260
ac_cache_corrupted=false
2261 177 bertin
for ac_var in $ac_precious_vars; do
2262 2 bertin
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2263
  eval ac_new_set=\$ac_env_${ac_var}_set
2264 177 bertin
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2265
  eval ac_new_val=\$ac_env_${ac_var}_value
2266 2 bertin
  case $ac_old_set,$ac_new_set in
2267
    set,)
2268 256 bertin
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2269 211 bertin
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2270 2 bertin
      ac_cache_corrupted=: ;;
2271
    ,set)
2272 256 bertin
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2273 211 bertin
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2274 2 bertin
      ac_cache_corrupted=: ;;
2275
    ,);;
2276
    *)
2277
      if test "x$ac_old_val" != "x$ac_new_val"; then
2278 211 bertin
        # differences in whitespace do not lead to failure.
2279
        ac_old_val_w=`echo x $ac_old_val`
2280
        ac_new_val_w=`echo x $ac_new_val`
2281
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2282 256 bertin
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2283 211 bertin
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2284
          ac_cache_corrupted=:
2285
        else
2286 256 bertin
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2287 211 bertin
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2288
          eval $ac_var=\$ac_old_val
2289
        fi
2290 256 bertin
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2291 211 bertin
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2292 256 bertin
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2293 211 bertin
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2294 2 bertin
      fi;;
2295
  esac
2296
  # Pass precious variables to config.status.
2297
  if test "$ac_new_set" = set; then
2298
    case $ac_new_val in
2299 211 bertin
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2300 2 bertin
    *) ac_arg=$ac_var=$ac_new_val ;;
2301
    esac
2302
    case " $ac_configure_args " in
2303
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2304 256 bertin
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2305 2 bertin
    esac
2306
  fi
2307
done
2308
if $ac_cache_corrupted; then
2309 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310 211 bertin
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2312 211 bertin
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2313 256 bertin
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2314 2 bertin
fi
2315 256 bertin
## -------------------- ##
2316
## Main body of script. ##
2317
## -------------------- ##
2318 2 bertin
 
2319 177 bertin
ac_ext=c
2320
ac_cpp='$CPP $CPPFLAGS'
2321
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324 2 bertin
 
2325
 
2326
 
2327 331 bertin
 
2328 2 bertin
ac_aux_dir=
2329 177 bertin
for ac_dir in autoconf "$srcdir"/autoconf; do
2330
  if test -f "$ac_dir/install-sh"; then
2331 2 bertin
    ac_aux_dir=$ac_dir
2332
    ac_install_sh="$ac_aux_dir/install-sh -c"
2333
    break
2334 177 bertin
  elif test -f "$ac_dir/install.sh"; then
2335 2 bertin
    ac_aux_dir=$ac_dir
2336
    ac_install_sh="$ac_aux_dir/install.sh -c"
2337
    break
2338 177 bertin
  elif test -f "$ac_dir/shtool"; then
2339 2 bertin
    ac_aux_dir=$ac_dir
2340
    ac_install_sh="$ac_aux_dir/shtool install -c"
2341
    break
2342
  fi
2343
done
2344
if test -z "$ac_aux_dir"; then
2345 256 bertin
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2346 2 bertin
fi
2347
 
2348 177 bertin
# These three variables are undocumented and unsupported,
2349
# and are intended to be withdrawn in a future Autoconf release.
2350
# They can cause serious problems if a builder's source tree is in a directory
2351
# whose full name contains unusual characters.
2352
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2353
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2354
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2355 2 bertin
 
2356 177 bertin
 
2357
ac_config_headers="$ac_config_headers config.h"
2358
 
2359 308 bertin
am__api_version='1.12'
2360 177 bertin
 
2361 2 bertin
# Find a good install program.  We prefer a C program (faster),
2362
# so one script is as good as another.  But avoid the broken or
2363
# incompatible versions:
2364
# SysV /etc/install, /usr/sbin/install
2365
# SunOS /usr/etc/install
2366
# IRIX /sbin/install
2367
# AIX /bin/install
2368
# AmigaOS /C/install, which installs bootblocks on floppy discs
2369
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2370
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2371
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2372
# OS/2's system install, which has a completely different semantic
2373
# ./install, which can be erroneously created by make from ./install.sh.
2374 211 bertin
# Reject install programs that cannot install multiple files.
2375 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2376 211 bertin
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2377 2 bertin
if test -z "$INSTALL"; then
2378 256 bertin
if ${ac_cv_path_install+:} false; then :
2379 211 bertin
  $as_echo_n "(cached) " >&6
2380 2 bertin
else
2381
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382
for as_dir in $PATH
2383
do
2384
  IFS=$as_save_IFS
2385
  test -z "$as_dir" && as_dir=.
2386 256 bertin
    # Account for people who put trailing slashes in PATH elements.
2387
case $as_dir/ in #((
2388
  ./ | .// | /[cC]/* | \
2389 2 bertin
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2390 256 bertin
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2391 2 bertin
  /usr/ucb/* ) ;;
2392
  *)
2393
    # OSF1 and SCO ODT 3.0 have their own names for install.
2394
    # Don't use installbsd from OSF since it installs stuff as root
2395
    # by default.
2396
    for ac_prog in ginstall scoinst install; do
2397
      for ac_exec_ext in '' $ac_executable_extensions; do
2398 308 bertin
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2399 2 bertin
          if test $ac_prog = install &&
2400
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401
            # AIX install.  It has an incompatible calling convention.
2402
            :
2403
          elif test $ac_prog = install &&
2404
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2405
            # program-specific install script used by HP pwplus--don't use.
2406
            :
2407
          else
2408 211 bertin
            rm -rf conftest.one conftest.two conftest.dir
2409
            echo one > conftest.one
2410
            echo two > conftest.two
2411
            mkdir conftest.dir
2412
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2413
              test -s conftest.one && test -s conftest.two &&
2414
              test -s conftest.dir/conftest.one &&
2415
              test -s conftest.dir/conftest.two
2416
            then
2417
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2418
              break 3
2419
            fi
2420 2 bertin
          fi
2421
        fi
2422
      done
2423
    done
2424
    ;;
2425
esac
2426 211 bertin
 
2427 256 bertin
  done
2428 177 bertin
IFS=$as_save_IFS
2429 2 bertin
 
2430 211 bertin
rm -rf conftest.one conftest.two conftest.dir
2431 2 bertin
 
2432
fi
2433
  if test "${ac_cv_path_install+set}" = set; then
2434
    INSTALL=$ac_cv_path_install
2435
  else
2436 177 bertin
    # As a last resort, use the slow shell script.  Don't cache a
2437
    # value for INSTALL within a source directory, because that will
2438 2 bertin
    # break other packages using the cache if that directory is
2439 177 bertin
    # removed, or if the value is a relative name.
2440 2 bertin
    INSTALL=$ac_install_sh
2441
  fi
2442
fi
2443 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2444 211 bertin
$as_echo "$INSTALL" >&6; }
2445 2 bertin
 
2446
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2447
# It thinks the first close brace ends the variable substitution.
2448
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2449
 
2450
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2451
 
2452
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2453
 
2454 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2455 211 bertin
$as_echo_n "checking whether build environment is sane... " >&6; }
2456 256 bertin
# Reject unsafe characters in $srcdir or the absolute working directory
2457
# name.  Accept space and tab only in the latter.
2458
am_lf='
2459
'
2460
case `pwd` in
2461
  *[\\\"\#\$\&\'\`$am_lf]*)
2462
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463
esac
2464
case $srcdir in
2465
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2466 308 bertin
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2467 256 bertin
esac
2468
 
2469 308 bertin
# Do 'set' in a subshell so we don't clobber the current shell's
2470 2 bertin
# arguments.  Must try -L first in case configure is actually a
2471
# symlink; some systems play weird games with the mod time of symlinks
2472
# (eg FreeBSD returns the mod time of the symlink's containing
2473
# directory).
2474
if (
2475 308 bertin
   am_has_slept=no
2476
   for am_try in 1 2; do
2477
     echo "timestamp, slept: $am_has_slept" > conftest.file
2478
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2479
     if test "$*" = "X"; then
2480
        # -L didn't work.
2481
        set X `ls -t "$srcdir/configure" conftest.file`
2482
     fi
2483
     if test "$*" != "X $srcdir/configure conftest.file" \
2484
        && test "$*" != "X conftest.file $srcdir/configure"; then
2485 2 bertin
 
2486 308 bertin
        # If neither matched, then we have a broken ls.  This can happen
2487
        # if, for instance, CONFIG_SHELL is bash and it inherits a
2488
        # broken ls alias from the environment.  This has actually
2489
        # happened.  Such a system could not be considered "sane".
2490
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2491
  alias in your environment" "$LINENO" 5
2492
     fi
2493
     if test "$2" = conftest.file || test $am_try -eq 2; then
2494
       break
2495
     fi
2496
     # Just in case.
2497
     sleep 1
2498
     am_has_slept=yes
2499
   done
2500 2 bertin
   test "$2" = conftest.file
2501
   )
2502
then
2503
   # Ok.
2504
   :
2505
else
2506 256 bertin
   as_fn_error $? "newly created file is older than distributed files!
2507
Check your system clock" "$LINENO" 5
2508 2 bertin
fi
2509 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2510 211 bertin
$as_echo "yes" >&6; }
2511 308 bertin
# If we didn't sleep, we still need to ensure time stamps of config.status and
2512
# generated files are strictly newer.
2513
am_sleep_pid=
2514
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2515
  ( sleep 1 ) &
2516
  am_sleep_pid=$!
2517
fi
2518
 
2519
rm -f conftest.file
2520
 
2521 2 bertin
test "$program_prefix" != NONE &&
2522 177 bertin
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2523 2 bertin
# Use a double $ so make ignores it.
2524
test "$program_suffix" != NONE &&
2525 177 bertin
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2526 211 bertin
# Double any \ or $.
2527 2 bertin
# By default was `s,x,x', remove it if useless.
2528 211 bertin
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2529
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530 2 bertin
 
2531
# expand $ac_aux_dir to an absolute path
2532
am_aux_dir=`cd $ac_aux_dir && pwd`
2533
 
2534 256 bertin
if test x"${MISSING+set}" != xset; then
2535
  case $am_aux_dir in
2536
  *\ * | *\     *)
2537
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2538
  *)
2539
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2540
  esac
2541
fi
2542 2 bertin
# Use eval to expand $SHELL
2543
if eval "$MISSING --run true"; then
2544
  am_missing_run="$MISSING --run "
2545
else
2546
  am_missing_run=
2547 308 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2548
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2549 2 bertin
fi
2550
 
2551 256 bertin
if test x"${install_sh}" != xset; then
2552
  case $am_aux_dir in
2553
  *\ * | *\     *)
2554
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2555
  *)
2556
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2557
  esac
2558
fi
2559
 
2560 308 bertin
# Installed binaries are usually stripped using 'strip' when the user
2561
# run "make install-strip".  However 'strip' might not be the right
2562 256 bertin
# tool to use in cross-compilation environments, therefore Automake
2563 308 bertin
# will honor the 'STRIP' environment variable to overrule this program.
2564 256 bertin
if test "$cross_compiling" != no; then
2565
  if test -n "$ac_tool_prefix"; then
2566
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2567
set dummy ${ac_tool_prefix}strip; ac_word=$2
2568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569
$as_echo_n "checking for $ac_word... " >&6; }
2570
if ${ac_cv_prog_STRIP+:} false; then :
2571
  $as_echo_n "(cached) " >&6
2572
else
2573
  if test -n "$STRIP"; then
2574
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2575
else
2576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577
for as_dir in $PATH
2578
do
2579
  IFS=$as_save_IFS
2580
  test -z "$as_dir" && as_dir=.
2581
    for ac_exec_ext in '' $ac_executable_extensions; do
2582 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 256 bertin
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2584
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585
    break 2
2586
  fi
2587
done
2588
  done
2589
IFS=$as_save_IFS
2590
 
2591
fi
2592
fi
2593
STRIP=$ac_cv_prog_STRIP
2594
if test -n "$STRIP"; then
2595
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2596
$as_echo "$STRIP" >&6; }
2597
else
2598
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599
$as_echo "no" >&6; }
2600
fi
2601
 
2602
 
2603
fi
2604
if test -z "$ac_cv_prog_STRIP"; then
2605
  ac_ct_STRIP=$STRIP
2606
  # Extract the first word of "strip", so it can be a program name with args.
2607
set dummy strip; ac_word=$2
2608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609
$as_echo_n "checking for $ac_word... " >&6; }
2610
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2611
  $as_echo_n "(cached) " >&6
2612
else
2613
  if test -n "$ac_ct_STRIP"; then
2614
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2615
else
2616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617
for as_dir in $PATH
2618
do
2619
  IFS=$as_save_IFS
2620
  test -z "$as_dir" && as_dir=.
2621
    for ac_exec_ext in '' $ac_executable_extensions; do
2622 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 256 bertin
    ac_cv_prog_ac_ct_STRIP="strip"
2624
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625
    break 2
2626
  fi
2627
done
2628
  done
2629
IFS=$as_save_IFS
2630
 
2631
fi
2632
fi
2633
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2634
if test -n "$ac_ct_STRIP"; then
2635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2636
$as_echo "$ac_ct_STRIP" >&6; }
2637
else
2638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639
$as_echo "no" >&6; }
2640
fi
2641
 
2642
  if test "x$ac_ct_STRIP" = x; then
2643
    STRIP=":"
2644
  else
2645
    case $cross_compiling:$ac_tool_warned in
2646
yes:)
2647
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649
ac_tool_warned=yes ;;
2650
esac
2651
    STRIP=$ac_ct_STRIP
2652
  fi
2653
else
2654
  STRIP="$ac_cv_prog_STRIP"
2655
fi
2656
 
2657
fi
2658
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2659
 
2660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2661 211 bertin
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2662 177 bertin
if test -z "$MKDIR_P"; then
2663 256 bertin
  if ${ac_cv_path_mkdir+:} false; then :
2664 211 bertin
  $as_echo_n "(cached) " >&6
2665 2 bertin
else
2666 177 bertin
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2668
do
2669
  IFS=$as_save_IFS
2670
  test -z "$as_dir" && as_dir=.
2671 256 bertin
    for ac_prog in mkdir gmkdir; do
2672 177 bertin
         for ac_exec_ext in '' $ac_executable_extensions; do
2673 308 bertin
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2674 177 bertin
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2675
             'mkdir (GNU coreutils) '* | \
2676
             'mkdir (coreutils) '* | \
2677
             'mkdir (fileutils) '4.1*)
2678
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2679
               break 3;;
2680
           esac
2681
         done
2682
       done
2683 256 bertin
  done
2684 177 bertin
IFS=$as_save_IFS
2685
 
2686
fi
2687
 
2688 256 bertin
  test -d ./--version && rmdir ./--version
2689 177 bertin
  if test "${ac_cv_path_mkdir+set}" = set; then
2690
    MKDIR_P="$ac_cv_path_mkdir -p"
2691 2 bertin
  else
2692 177 bertin
    # As a last resort, use the slow shell script.  Don't cache a
2693
    # value for MKDIR_P within a source directory, because that will
2694
    # break other packages using the cache if that directory is
2695
    # removed, or if the value is a relative name.
2696
    MKDIR_P="$ac_install_sh -d"
2697 2 bertin
  fi
2698
fi
2699 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2700 211 bertin
$as_echo "$MKDIR_P" >&6; }
2701 2 bertin
 
2702
for ac_prog in gawk mawk nawk awk
2703
do
2704
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2705
set dummy $ac_prog; ac_word=$2
2706 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 211 bertin
$as_echo_n "checking for $ac_word... " >&6; }
2708 256 bertin
if ${ac_cv_prog_AWK+:} false; then :
2709 211 bertin
  $as_echo_n "(cached) " >&6
2710 2 bertin
else
2711
  if test -n "$AWK"; then
2712
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713
else
2714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715
for as_dir in $PATH
2716
do
2717
  IFS=$as_save_IFS
2718
  test -z "$as_dir" && as_dir=.
2719 256 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
2720 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 2 bertin
    ac_cv_prog_AWK="$ac_prog"
2722 256 bertin
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 2 bertin
    break 2
2724
  fi
2725
done
2726 256 bertin
  done
2727 177 bertin
IFS=$as_save_IFS
2728 2 bertin
 
2729
fi
2730
fi
2731
AWK=$ac_cv_prog_AWK
2732
if test -n "$AWK"; then
2733 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734 211 bertin
$as_echo "$AWK" >&6; }
2735 2 bertin
else
2736 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 211 bertin
$as_echo "no" >&6; }
2738 2 bertin
fi
2739
 
2740 177 bertin
 
2741 2 bertin
  test -n "$AWK" && break
2742
done
2743
 
2744 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2745 211 bertin
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2746
set x ${MAKE-make}
2747
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2748 256 bertin
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2749 211 bertin
  $as_echo_n "(cached) " >&6
2750 2 bertin
else
2751
  cat >conftest.make <<\_ACEOF
2752 177 bertin
SHELL = /bin/sh
2753 2 bertin
all:
2754 177 bertin
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2755 2 bertin
_ACEOF
2756 256 bertin
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2757 177 bertin
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2758
  *@@@%%%=?*=@@@%%%*)
2759
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2760
  *)
2761
    eval ac_cv_prog_make_${ac_make}_set=no;;
2762
esac
2763 2 bertin
rm -f conftest.make
2764
fi
2765 177 bertin
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2766 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 211 bertin
$as_echo "yes" >&6; }
2768 2 bertin
  SET_MAKE=
2769
else
2770 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 211 bertin
$as_echo "no" >&6; }
2772 2 bertin
  SET_MAKE="MAKE=${MAKE-make}"
2773
fi
2774
 
2775
rm -rf .tst 2>/dev/null
2776
mkdir .tst 2>/dev/null
2777
if test -d .tst; then
2778
  am__leading_dot=.
2779
else
2780
  am__leading_dot=_
2781
fi
2782
rmdir .tst 2>/dev/null
2783
 
2784 177 bertin
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2785
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2786
  # is not polluted with repeated "-I."
2787
  am__isrc=' -I$(srcdir)'
2788
  # test to see if srcdir already configured
2789
  if test -f $srcdir/config.status; then
2790 256 bertin
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791 177 bertin
  fi
2792 2 bertin
fi
2793
 
2794
# test whether we have cygpath
2795
if test -z "$CYGPATH_W"; then
2796
  if (cygpath --version) >/dev/null 2>/dev/null; then
2797
    CYGPATH_W='cygpath -w'
2798
  else
2799
    CYGPATH_W=echo
2800
  fi
2801
fi
2802
 
2803
 
2804
# Define the identity of the package.
2805
 PACKAGE='scamp'
2806 334 bertin
 VERSION='2.2.1'
2807 2 bertin
 
2808
 
2809
cat >>confdefs.h <<_ACEOF
2810
#define PACKAGE "$PACKAGE"
2811
_ACEOF
2812
 
2813
 
2814
cat >>confdefs.h <<_ACEOF
2815
#define VERSION "$VERSION"
2816
_ACEOF
2817
 
2818
# Some tools Automake needs.
2819
 
2820
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2821
 
2822
 
2823
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2824
 
2825
 
2826
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2827
 
2828
 
2829
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2830
 
2831
 
2832
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2833
 
2834 308 bertin
# For better backward compatibility.  To be removed once Automake 1.9.x
2835
# dies out for good.  For more background, see:
2836
# 
2837
# 
2838
mkdir_p='$(MKDIR_P)'
2839
 
2840 2 bertin
# We need awk for the "check" target.  The system "awk" is bad on
2841
# some platforms.
2842 308 bertin
# Always define AMTAR for backward compatibility.  Yes, it's still used
2843
# in the wild :-(  We should find a proper way to deprecate it ...
2844
AMTAR='$${TAR-tar}'
2845 2 bertin
 
2846 308 bertin
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2847 2 bertin
 
2848
 
2849 10 bertin
 
2850
 
2851
 
2852 2 bertin
date=`date +%Y-%m-%d`
2853
date2=`date +"%a %b %d %Y"`
2854
date3=`date +"%B %Y"`
2855
 
2856
cat >>confdefs.h <<_ACEOF
2857
#define DATE "$date"
2858
_ACEOF
2859
 
2860
PACKAGER="Emmanuel Bertin"
2861
 
2862
DATE2="$date2"
2863
 
2864
DATE3="$date3"
2865
 
2866
 
2867
# Include macros
2868
 
2869 10 bertin
 
2870
 
2871
 
2872
 
2873
 
2874
 
2875
 
2876
 
2877
 
2878
 
2879
 
2880 133 bertin
 
2881 181 bertin
 
2882 184 bertin
 
2883 247 bertin
 
2884 268 bertin
 
2885
 
2886 133 bertin
# URBI_RESOLVE_DIR_PREPARE
2887
# ------------------------
2888
# Define urbi_resolve_dir.
2889
 
2890
 
2891
 
2892
# PATH URBI_RESOLVE_DIR(DIR)
2893
# --------------------------
2894
# Return the DIR with all inner variables expanded.
2895
 
2896
 
2897
 
2898
## Local Variables:
2899
## mode: autoconf
2900
## End:
2901
 
2902
 
2903 2 bertin
# Display pakage and version number
2904 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ******** Configuring:  $PACKAGE_NAME $VERSION ($date) ********" >&5
2905 211 bertin
$as_echo "******** Configuring:  $PACKAGE_NAME $VERSION ($date) ********" >&6; }
2906 2 bertin
 
2907 268 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compilation flags should be set automatically" >&5
2908
$as_echo_n "checking if compilation flags should be set automatically... " >&6; }
2909 216 bertin
# Check whether --enable-auto-flags was given.
2910 256 bertin
if test "${enable_auto_flags+set}" = set; then :
2911 295 bertin
  enableval=$enable_auto_flags;
2912 216 bertin
fi
2913
 
2914
 
2915 2 bertin
# Provide special option for the Linux Intel C compiler
2916 268 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should use the INTEL compiler" >&5
2917
$as_echo_n "checking whether we should use the INTEL compiler... " >&6; }
2918 177 bertin
# Check whether --enable-icc was given.
2919 256 bertin
if test "${enable_icc+set}" = set; then :
2920 295 bertin
  enableval=$enable_icc; CC="icc"
2921 256 bertin
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 211 bertin
$as_echo "yes" >&6; }
2923 2 bertin
else
2924 295 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 211 bertin
$as_echo "no" >&6; }
2926 177 bertin
fi
2927 2 bertin
 
2928 177 bertin
 
2929 268 bertin
# Provide special options for INTEL MKL
2930
# We force the use of icc
2931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should use INTEL's MKL" >&5
2932
$as_echo_n "checking whether we should use INTEL's MKL... " >&6; }
2933
# Check whether --enable-mkl was given.
2934
if test "${enable_mkl+set}" = set; then :
2935 295 bertin
  enableval=$enable_mkl; enable_icc="yes"
2936 268 bertin
        CC="icc"
2937
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938
$as_echo "yes" >&6; }
2939 2 bertin
else
2940 295 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 211 bertin
$as_echo "no" >&6; }
2942 2 bertin
fi
2943
 
2944 177 bertin
 
2945 268 bertin
# Checks for programs.
2946 2 bertin
ac_ext=c
2947
ac_cpp='$CPP $CPPFLAGS'
2948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 268 bertin
 
2952
 
2953 2 bertin
DEPDIR="${am__leading_dot}deps"
2954
 
2955 177 bertin
ac_config_commands="$ac_config_commands depfiles"
2956 2 bertin
 
2957
 
2958
am_make=${MAKE-make}
2959
cat > confinc << 'END'
2960
am__doit:
2961 256 bertin
        @echo this is the am__doit target
2962 2 bertin
.PHONY: am__doit
2963
END
2964
# If we don't find an include directive, just comment out the code.
2965 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2966 211 bertin
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2967 2 bertin
am__include="#"
2968
am__quote=
2969
_am_result=none
2970
# First try GNU make style include.
2971
echo "include confinc" > confmf
2972 308 bertin
# Ignore all kinds of additional output from 'make'.
2973 256 bertin
case `$am_make -s -f confmf 2> /dev/null` in #(
2974
*the\ am__doit\ target*)
2975
  am__include=include
2976
  am__quote=
2977
  _am_result=GNU
2978
  ;;
2979
esac
2980 2 bertin
# Now try BSD make style include.
2981
if test "$am__include" = "#"; then
2982
   echo '.include "confinc"' > confmf
2983 256 bertin
   case `$am_make -s -f confmf 2> /dev/null` in #(
2984
   *the\ am__doit\ target*)
2985
     am__include=.include
2986
     am__quote="\""
2987
     _am_result=BSD
2988
     ;;
2989
   esac
2990 2 bertin
fi
2991
 
2992
 
2993 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2994 211 bertin
$as_echo "$_am_result" >&6; }
2995 2 bertin
rm -f confinc confmf
2996
 
2997 177 bertin
# Check whether --enable-dependency-tracking was given.
2998 256 bertin
if test "${enable_dependency_tracking+set}" = set; then :
2999 177 bertin
  enableval=$enable_dependency_tracking;
3000
fi
3001 2 bertin
 
3002
if test "x$enable_dependency_tracking" != xno; then
3003
  am_depcomp="$ac_aux_dir/depcomp"
3004
  AMDEPBACKSLASH='\'
3005 308 bertin
  am__nodep='_no'
3006 2 bertin
fi
3007 177 bertin
 if test "x$enable_dependency_tracking" != xno; then
3008 2 bertin
  AMDEP_TRUE=
3009
  AMDEP_FALSE='#'
3010
else
3011
  AMDEP_TRUE='#'
3012
  AMDEP_FALSE=
3013
fi
3014
 
3015
 
3016
ac_ext=c
3017
ac_cpp='$CPP $CPPFLAGS'
3018
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021
if test -n "$ac_tool_prefix"; then
3022
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3023
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3024 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 211 bertin
$as_echo_n "checking for $ac_word... " >&6; }
3026 256 bertin
if ${ac_cv_prog_CC+:} false; then :
3027 211 bertin
  $as_echo_n "(cached) " >&6
3028 2 bertin
else
3029
  if test -n "$CC"; then
3030
  ac_cv_prog_CC="$CC" # Let the user override the test.
3031
else
3032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033
for as_dir in $PATH
3034
do
3035
  IFS=$as_save_IFS
3036
  test -z "$as_dir" && as_dir=.
3037 256 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
3038 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 2 bertin
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3040 256 bertin
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 2 bertin
    break 2
3042
  fi
3043
done
3044 256 bertin
  done
3045 177 bertin
IFS=$as_save_IFS
3046 2 bertin
 
3047
fi
3048
fi
3049
CC=$ac_cv_prog_CC
3050
if test -n "$CC"; then
3051 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 211 bertin
$as_echo "$CC" >&6; }
3053 2 bertin
else
3054 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 211 bertin
$as_echo "no" >&6; }
3056 2 bertin
fi
3057
 
3058 177 bertin
 
3059 2 bertin
fi
3060
if test -z "$ac_cv_prog_CC"; then
3061
  ac_ct_CC=$CC
3062
  # Extract the first word of "gcc", so it can be a program name with args.
3063
set dummy gcc; ac_word=$2
3064 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 211 bertin
$as_echo_n "checking for $ac_word... " >&6; }
3066 256 bertin
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3067 211 bertin
  $as_echo_n "(cached) " >&6
3068 2 bertin
else
3069
  if test -n "$ac_ct_CC"; then
3070
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071
else
3072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073
for as_dir in $PATH
3074
do
3075
  IFS=$as_save_IFS
3076
  test -z "$as_dir" && as_dir=.
3077 256 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
3078 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 2 bertin
    ac_cv_prog_ac_ct_CC="gcc"
3080 256 bertin
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 2 bertin
    break 2
3082
  fi
3083
done
3084 256 bertin
  done
3085 177 bertin
IFS=$as_save_IFS
3086 2 bertin
 
3087
fi
3088
fi
3089
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090
if test -n "$ac_ct_CC"; then
3091 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3092 211 bertin
$as_echo "$ac_ct_CC" >&6; }
3093 2 bertin
else
3094 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 211 bertin
$as_echo "no" >&6; }
3096 2 bertin
fi
3097
 
3098 177 bertin
  if test "x$ac_ct_CC" = x; then
3099
    CC=""
3100
  else
3101
    case $cross_compiling:$ac_tool_warned in
3102
yes:)
3103 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104 211 bertin
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 177 bertin
ac_tool_warned=yes ;;
3106
esac
3107
    CC=$ac_ct_CC
3108
  fi
3109 2 bertin
else
3110
  CC="$ac_cv_prog_CC"
3111
fi
3112
 
3113
if test -z "$CC"; then
3114 177 bertin
          if test -n "$ac_tool_prefix"; then
3115
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3116 2 bertin
set dummy ${ac_tool_prefix}cc; ac_word=$2
3117 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 211 bertin
$as_echo_n "checking for $ac_word... " >&6; }
3119 256 bertin
if ${ac_cv_prog_CC+:} false; then :
3120 211 bertin
  $as_echo_n "(cached) " >&6
3121 2 bertin
else
3122
  if test -n "$CC"; then
3123
  ac_cv_prog_CC="$CC" # Let the user override the test.
3124
else
3125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126
for as_dir in $PATH
3127
do
3128
  IFS=$as_save_IFS
3129
  test -z "$as_dir" && as_dir=.
3130 256 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
3131 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 2 bertin
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3133 256 bertin
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 2 bertin
    break 2
3135
  fi
3136
done
3137 256 bertin
  done
3138 177 bertin
IFS=$as_save_IFS
3139 2 bertin
 
3140
fi
3141
fi
3142
CC=$ac_cv_prog_CC
3143
if test -n "$CC"; then
3144 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 211 bertin
$as_echo "$CC" >&6; }
3146 2 bertin
else
3147 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 211 bertin
$as_echo "no" >&6; }
3149 2 bertin
fi
3150
 
3151
 
3152 177 bertin
  fi
3153 2 bertin
fi
3154
if test -z "$CC"; then
3155
  # Extract the first word of "cc", so it can be a program name with args.
3156
set dummy cc; ac_word=$2
3157 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 211 bertin
$as_echo_n "checking for $ac_word... " >&6; }
3159 256 bertin
if ${ac_cv_prog_CC+:} false; then :
3160 211 bertin
  $as_echo_n "(cached) " >&6
3161 2 bertin
else
3162
  if test -n "$CC"; then
3163
  ac_cv_prog_CC="$CC" # Let the user override the test.
3164
else
3165
  ac_prog_rejected=no
3166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167
for as_dir in $PATH
3168
do
3169
  IFS=$as_save_IFS
3170
  test -z "$as_dir" && as_dir=.
3171 256 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
3172 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 2 bertin
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3174
       ac_prog_rejected=yes
3175
       continue
3176
     fi
3177
    ac_cv_prog_CC="cc"
3178 256 bertin
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 2 bertin
    break 2
3180
  fi
3181
done
3182 256 bertin
  done
3183 177 bertin
IFS=$as_save_IFS
3184 2 bertin
 
3185
if test $ac_prog_rejected = yes; then
3186
  # We found a bogon in the path, so make sure we never use it.
3187
  set dummy $ac_cv_prog_CC
3188
  shift
3189
  if test $# != 0; then
3190
    # We chose a different compiler from the bogus one.
3191
    # However, it has the same basename, so the bogon will be chosen
3192
    # first if we set CC to just the basename; use the full file name.
3193
    shift
3194
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3195
  fi
3196
fi
3197
fi
3198
fi
3199
CC=$ac_cv_prog_CC
3200
if test -n "$CC"; then
3201 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 211 bertin
$as_echo "$CC" >&6; }
3203 2 bertin
else
3204 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 211 bertin
$as_echo "no" >&6; }
3206 2 bertin
fi
3207
 
3208 177 bertin
 
3209 2 bertin
fi
3210
if test -z "$CC"; then
3211
  if test -n "$ac_tool_prefix"; then
3212 177 bertin
  for ac_prog in cl.exe
3213 2 bertin
  do
3214
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 211 bertin
$as_echo_n "checking for $ac_word... " >&6; }
3218 256 bertin
if ${ac_cv_prog_CC+:} false; then :
3219 211 bertin
  $as_echo_n "(cached) " >&6
3220 2 bertin
else
3221
  if test -n "$CC"; then
3222
  ac_cv_prog_CC="$CC" # Let the user override the test.
3223
else
3224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225
for as_dir in $PATH
3226
do
3227
  IFS=$as_save_IFS
3228
  test -z "$as_dir" && as_dir=.
3229 256 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
3230 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 2 bertin
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3232 256 bertin
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 2 bertin
    break 2
3234
  fi
3235
done
3236 256 bertin
  done
3237 177 bertin
IFS=$as_save_IFS
3238 2 bertin
 
3239
fi
3240
fi
3241
CC=$ac_cv_prog_CC
3242
if test -n "$CC"; then
3243 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 211 bertin
$as_echo "$CC" >&6; }
3245 2 bertin
else
3246 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 211 bertin
$as_echo "no" >&6; }
3248 2 bertin
fi
3249
 
3250 177 bertin
 
3251 2 bertin
    test -n "$CC" && break
3252
  done
3253
fi
3254
if test -z "$CC"; then
3255
  ac_ct_CC=$CC
3256 177 bertin
  for ac_prog in cl.exe
3257 2 bertin
do
3258
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3259
set dummy $ac_prog; ac_word=$2
3260 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 211 bertin
$as_echo_n "checking for $ac_word... " >&6; }
3262 256 bertin
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3263 211 bertin
  $as_echo_n "(cached) " >&6
3264 2 bertin
else
3265
  if test -n "$ac_ct_CC"; then
3266
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267
else
3268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269
for as_dir in $PATH
3270
do
3271
  IFS=$as_save_IFS
3272
  test -z "$as_dir" && as_dir=.
3273 256 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
3274 308 bertin
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 2 bertin
    ac_cv_prog_ac_ct_CC="$ac_prog"
3276 256 bertin
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 2 bertin
    break 2
3278
  fi
3279
done
3280 256 bertin
  done
3281 177 bertin
IFS=$as_save_IFS
3282 2 bertin
 
3283
fi
3284
fi
3285
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286
if test -n "$ac_ct_CC"; then
3287 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3288 211 bertin
$as_echo "$ac_ct_CC" >&6; }
3289 2 bertin
else
3290 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 211 bertin
$as_echo "no" >&6; }
3292 2 bertin
fi
3293
 
3294 177 bertin
 
3295 2 bertin
  test -n "$ac_ct_CC" && break
3296
done
3297
 
3298 177 bertin
  if test "x$ac_ct_CC" = x; then
3299
    CC=""
3300
  else
3301
    case $cross_compiling:$ac_tool_warned in
3302
yes:)
3303 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3304 211 bertin
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3305 177 bertin
ac_tool_warned=yes ;;
3306
esac
3307
    CC=$ac_ct_CC
3308
  fi
3309 2 bertin
fi
3310
 
3311
fi
3312
 
3313
 
3314 256 bertin
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 211 bertin
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 256 bertin
as_fn_error $? "no acceptable C compiler found in \$PATH
3317
See \`config.log' for more details" "$LINENO" 5; }
3318 2 bertin
 
3319
# Provide some information about the compiler.
3320 256 bertin
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3321 211 bertin
set X $ac_compile
3322
ac_compiler=$2
3323 256 bertin
for ac_option in --version -v -V -qversion; do
3324
  { { ac_try="$ac_compiler $ac_option >&5"
3325 177 bertin
case "(($ac_try" in
3326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327
  *) ac_try_echo=$ac_try;;
3328
esac
3329 256 bertin
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330
$as_echo "$ac_try_echo"; } >&5
3331
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3332 2 bertin
  ac_status=$?
3333 256 bertin
  if test -s conftest.err; then
3334
    sed '10a\
3335
... rest of stderr output deleted ...
3336
         10q' conftest.err >conftest.er1
3337
    cat conftest.er1 >&5
3338
  fi
3339
  rm -f conftest.er1 conftest.err
3340
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341
  test $ac_status = 0; }
3342
done
3343 2 bertin
 
3344 268 bertin
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345
/* end confdefs.h.  */
3346
 
3347
int
3348
main ()
3349
{
3350
 
3351
  ;
3352
  return 0;
3353
}
3354
_ACEOF
3355
ac_clean_files_save=$ac_clean_files
3356
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3357
# Try to create an executable without -o first, disregard a.out.
3358
# It will help us diagnose broken compilers, and finding out an intuition
3359
# of exeext.
3360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3361
$as_echo_n "checking whether the C compiler works... " >&6; }
3362
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3363
 
3364
# The possible output files:
3365
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3366
 
3367
ac_rmfiles=
3368
for ac_file in $ac_files
3369
do
3370
  case $ac_file in
3371
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3373
  esac
3374
done
3375
rm -f $ac_rmfiles
3376
 
3377
if { { ac_try="$ac_link_default"
3378
case "(($ac_try" in
3379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380
  *) ac_try_echo=$ac_try;;
3381
esac
3382
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383
$as_echo "$ac_try_echo"; } >&5
3384
  (eval "$ac_link_default") 2>&5
3385
  ac_status=$?
3386
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387
  test $ac_status = 0; }; then :
3388
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3389
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3390
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3391
# so that the user can short-circuit this test for compilers unknown to
3392
# Autoconf.
3393
for ac_file in $ac_files ''
3394
do
3395
  test -f "$ac_file" || continue
3396
  case $ac_file in
3397
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3398
        ;;
3399
    [ab].out )
3400
        # We found the default executable, but exeext='' is most
3401
        # certainly right.
3402
        break;;
3403
    *.* )
3404
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3405
        then :; else
3406
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407
        fi
3408
        # We set ac_cv_exeext here because the later test for it is not
3409
        # safe: cross compilers may not add the suffix if given an `-o'
3410
        # argument, so we may need to know it at that point already.
3411
        # Even if this section looks crufty: it has the advantage of
3412
        # actually working.
3413
        break;;
3414
    * )
3415
        break;;
3416
  esac
3417
done
3418
test "$ac_cv_exeext" = no && ac_cv_exeext=
3419
 
3420
else
3421
  ac_file=''
3422
fi
3423
if test -z "$ac_file"; then :
3424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425
$as_echo "no" >&6; }
3426
$as_echo "$as_me: failed program was:" >&5
3427
sed 's/^/| /' conftest.$ac_ext >&5
3428
 
3429
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431
as_fn_error 77 "C compiler cannot create executables
3432
See \`config.log' for more details" "$LINENO" 5; }
3433
else
3434
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3435
$as_echo "yes" >&6; }
3436
fi
3437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3438
$as_echo_n "checking for C compiler default output file name... " >&6; }
3439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3440
$as_echo "$ac_file" >&6; }
3441
ac_exeext=$ac_cv_exeext
3442
 
3443
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3444
ac_clean_files=$ac_clean_files_save
3445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3446
$as_echo_n "checking for suffix of executables... " >&6; }
3447
if { { ac_try="$ac_link"
3448
case "(($ac_try" in
3449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450
  *) ac_try_echo=$ac_try;;
3451
esac
3452
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453
$as_echo "$ac_try_echo"; } >&5
3454
  (eval "$ac_link") 2>&5
3455
  ac_status=$?
3456
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457
  test $ac_status = 0; }; then :
3458
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3459
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3460
# work properly (i.e., refer to `conftest.exe'), while it won't with
3461
# `rm'.
3462
for ac_file in conftest.exe conftest conftest.*; do
3463
  test -f "$ac_file" || continue
3464
  case $ac_file in
3465
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3466
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3467
          break;;
3468
    * ) break;;
3469
  esac
3470
done
3471
else
3472
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3475
See \`config.log' for more details" "$LINENO" 5; }
3476
fi
3477
rm -f conftest conftest$ac_cv_exeext
3478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3479
$as_echo "$ac_cv_exeext" >&6; }
3480
 
3481
rm -f conftest.$ac_ext
3482
EXEEXT=$ac_cv_exeext
3483
ac_exeext=$EXEEXT
3484
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485
/* end confdefs.h.  */
3486
#include 
3487
int
3488
main ()
3489
{
3490
FILE *f = fopen ("conftest.out", "w");
3491
 return ferror (f) || fclose (f) != 0;
3492
 
3493
  ;
3494
  return 0;
3495
}
3496
_ACEOF
3497
ac_clean_files="$ac_clean_files conftest.out"
3498
# Check that the compiler produces executables we can run.  If not, either
3499
# the compiler is broken, or we cross compile.
3500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3501
$as_echo_n "checking whether we are cross compiling... " >&6; }
3502
if test "$cross_compiling" != yes; then
3503
  { { ac_try="$ac_link"
3504
case "(($ac_try" in
3505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506
  *) ac_try_echo=$ac_try;;
3507
esac
3508
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509
$as_echo "$ac_try_echo"; } >&5
3510
  (eval "$ac_link") 2>&5
3511
  ac_status=$?
3512
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513
  test $ac_status = 0; }
3514
  if { ac_try='./conftest$ac_cv_exeext'
3515
  { { case "(($ac_try" in
3516
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517
  *) ac_try_echo=$ac_try;;
3518
esac
3519
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520
$as_echo "$ac_try_echo"; } >&5
3521
  (eval "$ac_try") 2>&5
3522
  ac_status=$?
3523
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524
  test $ac_status = 0; }; }; then
3525
    cross_compiling=no
3526
  else
3527
    if test "$cross_compiling" = maybe; then
3528
        cross_compiling=yes
3529
    else
3530
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532
as_fn_error $? "cannot run C compiled programs.
3533
If you meant to cross compile, use \`--host'.
3534
See \`config.log' for more details" "$LINENO" 5; }
3535
    fi
3536
  fi
3537
fi
3538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3539
$as_echo "$cross_compiling" >&6; }
3540
 
3541
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3542
ac_clean_files=$ac_clean_files_save
3543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3544
$as_echo_n "checking for suffix of object files... " >&6; }
3545
if ${ac_cv_objext+:} false; then :
3546
  $as_echo_n "(cached) " >&6
3547
else
3548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549
/* end confdefs.h.  */
3550
 
3551
int
3552
main ()
3553
{
3554
 
3555
  ;
3556
  return 0;
3557
}
3558
_ACEOF
3559
rm -f conftest.o conftest.obj
3560
if { { ac_try="$ac_compile"
3561
case "(($ac_try" in
3562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563
  *) ac_try_echo=$ac_try;;
3564
esac
3565
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566
$as_echo "$ac_try_echo"; } >&5
3567
  (eval "$ac_compile") 2>&5
3568
  ac_status=$?
3569
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570
  test $ac_status = 0; }; then :
3571
  for ac_file in conftest.o conftest.obj conftest.*; do
3572
  test -f "$ac_file" || continue;
3573
  case $ac_file in
3574
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3575
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3576
       break;;
3577
  esac
3578
done
3579
else
3580
  $as_echo "$as_me: failed program was:" >&5
3581
sed 's/^/| /' conftest.$ac_ext >&5
3582
 
3583
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585
as_fn_error $? "cannot compute suffix of object files: cannot compile
3586
See \`config.log' for more details" "$LINENO" 5; }
3587
fi
3588
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3589
fi
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3591
$as_echo "$ac_cv_objext" >&6; }
3592
OBJEXT=$ac_cv_objext
3593
ac_objext=$OBJEXT
3594 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3595 211 bertin
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3596 256 bertin
if ${ac_cv_c_compiler_gnu+:} false; then :
3597 211 bertin
  $as_echo_n "(cached) " >&6
3598 2 bertin
else
3599 256 bertin
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 2 bertin
/* end confdefs.h.  */
3601
 
3602
int
3603
main ()
3604
{
3605
#ifndef __GNUC__
3606
       choke me
3607
#endif
3608
 
3609
  ;
3610
  return 0;
3611
}
3612
_ACEOF
3613 256 bertin
if ac_fn_c_try_compile "$LINENO"; then :
3614 2 bertin
  ac_compiler_gnu=yes
3615
else
3616 256 bertin
  ac_compiler_gnu=no
3617 2 bertin
fi
3618 177 bertin
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 2 bertin
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3620
 
3621
fi
3622 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3623 211 bertin
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3624
if test $ac_compiler_gnu = yes; then
3625
  GCC=yes
3626
else
3627
  GCC=
3628
fi
3629 2 bertin
ac_test_CFLAGS=${CFLAGS+set}
3630
ac_save_CFLAGS=$CFLAGS
3631 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3632 211 bertin
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3633 256 bertin
if ${ac_cv_prog_cc_g+:} false; then :
3634 211 bertin
  $as_echo_n "(cached) " >&6
3635 2 bertin
else
3636 177 bertin
  ac_save_c_werror_flag=$ac_c_werror_flag
3637
   ac_c_werror_flag=yes
3638
   ac_cv_prog_cc_g=no
3639
   CFLAGS="-g"
3640 256 bertin
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 2 bertin
/* end confdefs.h.  */
3642
 
3643
int
3644
main ()
3645
{
3646
 
3647
  ;
3648
  return 0;
3649
}
3650
_ACEOF
3651 256 bertin
if ac_fn_c_try_compile "$LINENO"; then :
3652 177 bertin
  ac_cv_prog_cc_g=yes
3653
else
3654 256 bertin
  CFLAGS=""
3655
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 177 bertin
/* end confdefs.h.  */
3657
 
3658
int
3659
main ()
3660
{
3661
 
3662
  ;
3663
  return 0;
3664
}
3665
_ACEOF
3666 256 bertin
if ac_fn_c_try_compile "$LINENO"; then :
3667 177 bertin
 
3668 256 bertin
else
3669
  ac_c_werror_flag=$ac_save_c_werror_flag
3670 177 bertin
         CFLAGS="-g"
3671 256 bertin
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 177 bertin
/* end confdefs.h.  */
3673
 
3674
int
3675
main ()
3676
{
3677
 
3678
  ;
3679
  return 0;
3680
}
3681
_ACEOF
3682 256 bertin
if ac_fn_c_try_compile "$LINENO"; then :
3683 2 bertin
  ac_cv_prog_cc_g=yes
3684
fi
3685 177 bertin
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 2 bertin
fi
3687 177 bertin
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688
fi
3689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690
   ac_c_werror_flag=$ac_save_c_werror_flag
3691
fi
3692 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3693 211 bertin
$as_echo "$ac_cv_prog_cc_g" >&6; }
3694 2 bertin
if test "$ac_test_CFLAGS" = set; then
3695
  CFLAGS=$ac_save_CFLAGS
3696
elif test $ac_cv_prog_cc_g = yes; then
3697
  if test "$GCC" = yes; then
3698
    CFLAGS="-g -O2"
3699
  else
3700
    CFLAGS="-g"
3701
  fi
3702
else
3703
  if test "$GCC" = yes; then
3704
    CFLAGS="-O2"
3705
  else
3706
    CFLAGS=
3707
  fi
3708
fi
3709 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3710 211 bertin
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3711 256 bertin
if ${ac_cv_prog_cc_c89+:} false; then :
3712 211 bertin
  $as_echo_n "(cached) " >&6
3713 2 bertin
else
3714 177 bertin
  ac_cv_prog_cc_c89=no
3715 2 bertin
ac_save_CC=$CC
3716 256 bertin
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 2 bertin
/* end confdefs.h.  */
3718
#include 
3719
#include 
3720 308 bertin
struct stat;
3721 2 bertin
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3722
struct buf { int x; };
3723
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724
static char *e (p, i)
3725
     char **p;
3726
     int i;
3727
{
3728
  return p[i];
3729
}
3730
static char *f (char * (*g) (char **, int), char **p, ...)
3731
{
3732
  char *s;
3733
  va_list v;
3734
  va_start (v,p);
3735
  s = g (p, va_arg (v,int));
3736
  va_end (v);
3737
  return s;
3738
}
3739
 
3740
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3741
   function prototypes and stuff, but not '\xHH' hex character constants.
3742
   These don't provoke an error unfortunately, instead are silently treated
3743 177 bertin
   as 'x'.  The following induces an error, until -std is added to get
3744 2 bertin
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3745
   array size at least.  It's necessary to write '\x00'==0 to get something
3746 177 bertin
   that's true only with -std.  */
3747 2 bertin
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748
 
3749 177 bertin
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750
   inside strings and character constants.  */
3751
#define FOO(x) 'x'
3752
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753
 
3754 2 bertin
int test (int i, double x);
3755
struct s1 {int (*f) (int a);};
3756
struct s2 {int (*f) (double a);};
3757
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758
int argc;
3759
char **argv;
3760
int
3761
main ()
3762
{
3763
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3764
  ;
3765
  return 0;
3766
}
3767
_ACEOF
3768 177 bertin
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770 2 bertin
do
3771
  CC="$ac_save_CC $ac_arg"
3772 256 bertin
  if ac_fn_c_try_compile "$LINENO"; then :
3773 177 bertin
  ac_cv_prog_cc_c89=$ac_arg
3774 2 bertin
fi
3775 177 bertin
rm -f core conftest.err conftest.$ac_objext
3776
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3777 2 bertin
done
3778 177 bertin
rm -f conftest.$ac_ext
3779 2 bertin
CC=$ac_save_CC
3780
 
3781
fi
3782 177 bertin
# AC_CACHE_VAL
3783
case "x$ac_cv_prog_cc_c89" in
3784
  x)
3785 256 bertin
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3786 211 bertin
$as_echo "none needed" >&6; } ;;
3787 177 bertin
  xno)
3788 256 bertin
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3789 211 bertin
$as_echo "unsupported" >&6; } ;;
3790 2 bertin
  *)
3791 177 bertin
    CC="$CC $ac_cv_prog_cc_c89"
3792 256 bertin
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3793 211 bertin
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3794 2 bertin
esac
3795 256 bertin
if test "x$ac_cv_prog_cc_c89" != xno; then :
3796 2 bertin
 
3797 256 bertin
fi
3798 2 bertin
 
3799
ac_ext=c
3800
ac_cpp='$CPP $CPPFLAGS'
3801
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804
 
3805
depcc="$CC"   am_compiler_list=
3806
 
3807 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3808 211 bertin
$as_echo_n "checking dependency style of $depcc... " >&6; }
3809 256 bertin
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3810 211 bertin
  $as_echo_n "(cached) " >&6
3811 2 bertin
else
3812
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3813
  # We make a subdir and do the tests there.  Otherwise we can end up
3814
  # making bogus files that we don't know about and never remove.  For
3815
  # instance it was reported that on HP-UX the gcc test will end up
3816 308 bertin
  # making a dummy file named 'D' -- because '-MD' means "put the output
3817
  # in D".
3818
  rm -rf conftest.dir
3819 2 bertin
  mkdir conftest.dir
3820
  # Copy depcomp to subdir because otherwise we won't find it if we're
3821
  # using a relative directory.
3822
  cp "$am_depcomp" conftest.dir
3823
  cd conftest.dir
3824
  # We will build objects and dependencies in a subdirectory because
3825
  # it helps to detect inapplicable dependency modes.  For instance
3826
  # both Tru64's cc and ICC support -MD to output dependencies as a
3827
  # side effect of compilation, but ICC will put the dependencies in
3828
  # the current directory while Tru64 will put them in the object
3829
  # directory.
3830
  mkdir sub
3831
 
3832
  am_cv_CC_dependencies_compiler_type=none
3833
  if test "$am_compiler_list" = ""; then
3834
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3835
  fi
3836 256 bertin
  am__universal=false
3837
  case " $depcc " in #(
3838
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3839
     esac
3840
 
3841 2 bertin
  for depmode in $am_compiler_list; do
3842
    # Setup a source with many dependencies, because some compilers
3843
    # like to wrap large dependency lists on column 80 (with \), and
3844
    # we should not choose a depcomp mode which is confused by this.
3845
    #
3846
    # We need to recreate these files for each test, as the compiler may
3847
    # overwrite some of them when testing with obscure command lines.
3848
    # This happens at least with the AIX C compiler.
3849
    : > sub/conftest.c
3850
    for i in 1 2 3 4 5 6; do
3851
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3852 308 bertin
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3853
      # Solaris 10 /bin/sh.
3854
      echo '/* dummy */' > sub/conftst$i.h
3855 2 bertin
    done
3856
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3857
 
3858 308 bertin
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3859 256 bertin
    # mode.  It turns out that the SunPro C++ compiler does not properly
3860 308 bertin
    # handle '-M -o', and we need to detect this.  Also, some Intel
3861
    # versions had trouble with output in subdirs.
3862 256 bertin
    am__obj=sub/conftest.${OBJEXT-o}
3863
    am__minus_obj="-o $am__obj"
3864 2 bertin
    case $depmode in
3865 256 bertin
    gcc)
3866
      # This depmode causes a compiler race in universal mode.
3867
      test "$am__universal" = false || continue
3868
      ;;
3869 2 bertin
    nosideeffect)
3870 308 bertin
      # After this tag, mechanisms are not by side-effect, so they'll
3871
      # only be used when explicitly requested.
3872 2 bertin
      if test "x$enable_dependency_tracking" = xyes; then
3873
        continue
3874
      else
3875
        break
3876
      fi
3877
      ;;
3878 308 bertin
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3879
      # This compiler won't grok '-c -o', but also, the minuso test has
3880 256 bertin
      # not run yet.  These depmodes are late enough in the game, and
3881
      # so weak that their functioning should not be impacted.
3882
      am__obj=conftest.${OBJEXT-o}
3883
      am__minus_obj=
3884
      ;;
3885 2 bertin
    none) break ;;
3886
    esac
3887
    if depmode=$depmode \
3888 256 bertin
       source=sub/conftest.c object=$am__obj \
3889 2 bertin
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3890 256 bertin
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3891 2 bertin
         >/dev/null 2>conftest.err &&
3892 177 bertin
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3893 2 bertin
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3894 256 bertin
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3895 2 bertin
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3896
      # icc doesn't choke on unknown options, it will just issue warnings
3897
      # or remarks (even with -Werror).  So we grep stderr for any message
3898
      # that says an option was ignored or not supported.
3899
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3900
      #   icc: Command line warning: ignoring option '-M'; no argument required
3901
      # The diagnosis changed in icc 8.0:
3902
      #   icc: Command line remark: option '-MP' not supported
3903
      if (grep 'ignoring option' conftest.err ||
3904
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3905
        am_cv_CC_dependencies_compiler_type=$depmode
3906
        break
3907
      fi
3908
    fi
3909
  done
3910
 
3911
  cd ..
3912
  rm -rf conftest.dir
3913
else
3914
  am_cv_CC_dependencies_compiler_type=none
3915
fi
3916
 
3917
fi
3918 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3919 211 bertin
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3920 2 bertin
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3921
 
3922 177 bertin
 if
3923 2 bertin
  test "x$enable_dependency_tracking" != xno \
3924
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3925
  am__fastdepCC_TRUE=
3926
  am__fastdepCC_FALSE='#'
3927
else
3928
  am__fastdepCC_TRUE='#'
3929
  am__fastdepCC_FALSE=
3930
fi
3931
 
3932
 
3933
 
3934 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3935 211 bertin
$as_echo_n "checking for library containing strerror... " >&6; }
3936 256 bertin
if ${ac_cv_search_strerror+:} false; then :
3937 211 bertin
  $as_echo_n "(cached) " >&6
3938 183 bertin
else
3939
  ac_func_search_save_LIBS=$LIBS
3940 256 bertin
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 183 bertin
/* end confdefs.h.  */
3942
 
3943
/* Override any GCC internal prototype to avoid an error.
3944
   Use char because int might match the return type of a GCC
3945
   builtin and then its argument prototype would still apply.  */
3946
#ifdef __cplusplus
3947
extern "C"
3948
#endif
3949
char strerror ();
3950
int
3951
main ()
3952
{
3953
return strerror ();
3954
  ;
3955
  return 0;
3956
}
3957
_ACEOF
3958
for ac_lib in '' cposix; do
3959
  if test -z "$ac_lib"; then
3960
    ac_res="none required"
3961
  else
3962
    ac_res=-l$ac_lib
3963
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3964
  fi
3965 256 bertin
  if ac_fn_c_try_link "$LINENO"; then :
3966 183 bertin
  ac_cv_search_strerror=$ac_res
3967
fi
3968 256 bertin
rm -f core conftest.err conftest.$ac_objext \
3969
    conftest$ac_exeext
3970
  if ${ac_cv_search_strerror+:} false; then :
3971 183 bertin
  break
3972
fi
3973
done
3974 256 bertin
if ${ac_cv_search_strerror+:} false; then :
3975
 
3976 183 bertin
else
3977
  ac_cv_search_strerror=no
3978
fi
3979
rm conftest.$ac_ext
3980
LIBS=$ac_func_search_save_LIBS
3981
fi
3982 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3983 211 bertin
$as_echo "$ac_cv_search_strerror" >&6; }
3984 183 bertin
ac_res=$ac_cv_search_strerror
3985 256 bertin
if test "$ac_res" != no; then :
3986 183 bertin
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3987
 
3988
fi
3989
 
3990 295 bertin
if test "$enable_auto_flags" = "yes"; then
3991 216 bertin
  CFLAGS=""
3992 273 bertin
  LDFLAGS=""
3993 183 bertin
 
3994
  msg="for C compiler optimization flags"
3995 256 bertin
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
3996 211 bertin
$as_echo_n "checking $msg... " >&6; }
3997 256 bertin
if ${prog_cc_optim_cv_flags+:} false; then :
3998 211 bertin
  $as_echo_n "(cached) " >&6
3999 183 bertin
else
4000
 
4001
    if test -n "$CC"; then
4002
      cat > conftest.c <
4003
int main(int argc, char **argv) { return 0; }
4004
EOF
4005
 
4006 184 bertin
 
4007
            if $CC -V 2>&1 | grep -i "Intel(R) 64" > /dev/null 2>&1 &&
4008
           $CC -c -O conftest.c > /dev/null 2>&1 &&
4009
           test -f conftest.o; then
4010 307 bertin
        prog_cc_optim_cv_flags="-O3 -axSSSE3,SSE4.1,SSE4.2,AVX,CORE-AVX2,CORE-AVX-I -no-prec-div -unroll"
4011 308 bertin
        prog_ld_optim_cv_flags=""
4012 186 bertin
 
4013 184 bertin
            elif $CC -V 2>&1 | grep -i "Intel(R)" > /dev/null 2>&1 &&
4014
           $CC -c -O conftest.c > /dev/null 2>&1 &&
4015
           test -f conftest.o; then
4016 298 bertin
        prog_cc_optim_cv_flags="-O3 -axSSE2,SSE3,SSE4.1,SSE4.2,AVX,CORE-AVX2,CORE-AVX-I -no-prec-div -unroll"
4017 308 bertin
        prog_ld_optim_cv_flags=""
4018 186 bertin
 
4019 184 bertin
            elif test "$GCC" = "yes"; then
4020 218 bertin
        prog_cc_optim_cv_flags="-O3 -g -funroll-loops -fomit-frame-pointer -Wall"
4021
        prog_ld_optim_cv_flags=""
4022 186 bertin
 
4023 183 bertin
            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4024
           $CC -c -O conftest.c > /dev/null 2>&1 &&
4025
           test -f conftest.o; then
4026 218 bertin
        prog_cc_optim_cv_flags="-O"
4027
        prog_ld_optim_cv_flags=""
4028 183 bertin
 
4029
            elif ($CC -V 2>&1 | grep -i "Digital UNIX Compiler"> /dev/null 2>&1 ||
4030
           $CC -V 2>&1 | grep -i "Compaq C"> /dev/null 2>&1) &&
4031
           $CC -c -fast conftest.c > /dev/null 2>&1 &&
4032
           test -f conftest.o; then
4033 218 bertin
        prog_cc_optim_cv_flags="-fast -tune host"
4034
        prog_ld_optim_cv_flags=""
4035 183 bertin
 
4036
            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4037
           $CC -c -qinfo=all -O2 conftest.c > /dev/null 2>&1 &&
4038
           test -f conftest.o; then
4039 218 bertin
        prog_cc_optim_cv_flags="-O2"
4040
        prog_ld_optim_cv_flags=""
4041 183 bertin
 
4042
            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4043
           $CC -c -fullwarn -O3 conftest.c > /dev/null 2>&1 &&
4044
           test -f conftest.o; then
4045 218 bertin
        prog_cc_optim_cv_flags="-O3"
4046
        prog_ld_optim_cv_flags=""
4047 183 bertin
 
4048
            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4049
           $CC -c -Aa +O3 conftest.c > /dev/null 2>&1 &&
4050
           test -f conftest.o; then
4051 218 bertin
        prog_cc_optim_cv_flags="+O3"
4052
        prog_ld_optim_cv_flags=""
4053 183 bertin
 
4054
            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4055
           $CC -c -Xc -O conftest.c > /dev/null 2>&1 &&
4056
           test -f conftest.o; then
4057 218 bertin
        prog_cc_optim_cv_flags="-O"
4058
        prog_ld_optim_cv_flags=""
4059 183 bertin
 
4060
            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4061
           $CC -c -h conform -O3 conftest.c > /dev/null 2>&1 &&
4062
           test -f conftest.o; then
4063 218 bertin
        prog_cc_optim_cv_flags="-O3"
4064
        prog_ld_optim_cv_flags=""
4065 183 bertin
 
4066
      fi
4067
      rm -f conftest.*
4068
    fi
4069 218 bertin
    if test -n "$prog_cc_optim_cv_flags"; then
4070 298 bertin
      AM_CFLAGS="$CFLAGS $prog_cc_optim_cv_flags"
4071
      AM_LDFLAGS="$LDFLAGS $prog_ld_optim_cv_flags"
4072 183 bertin
    else
4073 218 bertin
      prog_cc_optim_cv_flags=""
4074
      prog_ld_optim_cv_flags=""
4075 183 bertin
    fi
4076
 
4077
fi
4078 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $prog_cc_optim_cv_flags" >&5
4079 218 bertin
$as_echo "$prog_cc_optim_cv_flags" >&6; }
4080 183 bertin
 
4081 216 bertin
fi
4082 256 bertin
case `pwd` in
4083
  *\ * | *\     *)
4084
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4085
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4086
esac
4087 2 bertin
 
4088 35 bertin
 
4089 2 bertin
 
4090 308 bertin
macro_version='2.4.2'
4091
macro_revision='1.3337'
4092 177 bertin
 
4093 2 bertin
 
4094 177 bertin
 
4095 256 bertin
 
4096
 
4097
 
4098
 
4099
 
4100
 
4101
 
4102
 
4103
 
4104
 
4105
ltmain="$ac_aux_dir/ltmain.sh"
4106
 
4107 2 bertin
# Make sure we can run config.sub.
4108 177 bertin
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4109 256 bertin
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4110 2 bertin
 
4111 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4112 211 bertin
$as_echo_n "checking build system type... " >&6; }
4113 256 bertin
if ${ac_cv_build+:} false; then :
4114 211 bertin
  $as_echo_n "(cached) " >&6
4115 2 bertin
else
4116 177 bertin
  ac_build_alias=$build_alias
4117
test "x$ac_build_alias" = x &&
4118
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4119
test "x$ac_build_alias" = x &&
4120 256 bertin
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4121 177 bertin
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4122 256 bertin
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4123 2 bertin
 
4124
fi
4125 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4126 211 bertin
$as_echo "$ac_cv_build" >&6; }
4127 177 bertin
case $ac_cv_build in
4128
*-*-*) ;;
4129 256 bertin
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4130 177 bertin
esac
4131 2 bertin
build=$ac_cv_build
4132 177 bertin
ac_save_IFS=$IFS; IFS='-'
4133
set x $ac_cv_build
4134
shift
4135
build_cpu=$1
4136
build_vendor=$2
4137
shift; shift
4138
# Remember, the first character of IFS is used to create $*,
4139
# except with old shells:
4140
build_os=$*
4141
IFS=$ac_save_IFS
4142
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4143 2 bertin
 
4144
 
4145 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4146 211 bertin
$as_echo_n "checking host system type... " >&6; }
4147 256 bertin
if ${ac_cv_host+:} false; then :
4148 211 bertin
  $as_echo_n "(cached) " >&6
4149 2 bertin
else
4150 177 bertin
  if test "x$host_alias" = x; then
4151
  ac_cv_host=$ac_cv_build
4152
else
4153
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4154 256 bertin
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4155 177 bertin
fi
4156 2 bertin
 
4157
fi
4158 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4159 211 bertin
$as_echo "$ac_cv_host" >&6; }
4160 177 bertin
case $ac_cv_host in
4161
*-*-*) ;;
4162 256 bertin
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4163 177 bertin
esac
4164 2 bertin
host=$ac_cv_host
4165 177 bertin
ac_save_IFS=$IFS; IFS='-'
4166
set x $ac_cv_host
4167
shift
4168
host_cpu=$1
4169
host_vendor=$2
4170
shift; shift
4171
# Remember, the first character of IFS is used to create $*,
4172
# except with old shells:
4173
host_os=$*
4174
IFS=$ac_save_IFS
4175
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4176 2 bertin
 
4177
 
4178 256 bertin
# Backslashify metacharacters that are still active within
4179
# double-quoted strings.
4180
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4181
 
4182
# Same as above, but do not quote variable references.
4183
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4184
 
4185
# Sed substitution to delay expansion of an escaped shell variable in a
4186
# double_quote_subst'ed string.
4187
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4188
 
4189
# Sed substitution to delay expansion of an escaped single quote.
4190
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4191
 
4192
# Sed substitution to avoid accidental globbing in evaled expressions
4193
no_glob_subst='s/\*/\\\*/g'
4194
 
4195
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4196
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4197
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4198
 
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4200
$as_echo_n "checking how to print strings... " >&6; }
4201
# Test print first, because it will be a builtin if present.
4202
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4203
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4204
  ECHO='print -r --'
4205
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4206
  ECHO='printf %s\n'
4207
else
4208
  # Use this function as a fallback that always works.
4209
  func_fallback_echo ()
4210
  {
4211
    eval 'cat <<_LTECHO_EOF
4212
$1
4213
_LTECHO_EOF'
4214
  }
4215
  ECHO='func_fallback_echo'
4216
fi
4217
 
4218
# func_echo_all arg...
4219
# Invoke $ECHO with all args, space-separated.
4220
func_echo_all ()
4221
{
4222
    $ECHO ""
4223
}
4224
 
4225
case "$ECHO" in
4226
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4227
$as_echo "printf" >&6; } ;;
4228
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4229
$as_echo "print -r" >&6; } ;;
4230
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4231
$as_echo "cat" >&6; } ;;
4232
esac
4233
 
4234
 
4235
 
4236
 
4237
 
4238
 
4239
 
4240
 
4241
 
4242
 
4243
 
4244
 
4245
 
4246
 
4247
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4248 211 bertin
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4249 256 bertin
if ${ac_cv_path_SED+:} false; then :
4250 211 bertin
  $as_echo_n "(cached) " >&6
4251 2 bertin
else
4252 256 bertin
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4253
     for ac_i in 1 2 3 4 5 6 7; do
4254
       ac_script="$ac_script$as_nl$ac_script"
4255
     done
4256
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4257
     { ac_script=; unset ac_script;}
4258
     if test -z "$SED"; then
4259
  ac_path_SED_found=false
4260
  # Loop through the user's path and test for each of PROGNAME-LIST
4261
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 2 bertin
for as_dir in $PATH
4263
do
4264
  IFS=$as_save_IFS
4265
  test -z "$as_dir" && as_dir=.
4266 256 bertin
    for ac_prog in sed gsed; do
4267 2 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
4268 256 bertin
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4269 308 bertin
      as_fn_executable_p "$ac_path_SED" || continue
4270 256 bertin
# Check for GNU ac_path_SED and select it if it is found.
4271
  # Check for GNU $ac_path_SED
4272
case `"$ac_path_SED" --version 2>&1` in
4273
*GNU*)
4274
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4275
*)
4276
  ac_count=0
4277
  $as_echo_n 0123456789 >"conftest.in"
4278
  while :
4279
  do
4280
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4281
    mv "conftest.tmp" "conftest.in"
4282
    cp "conftest.in" "conftest.nl"
4283
    $as_echo '' >> "conftest.nl"
4284
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4287
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4288
      # Best one so far, save it but keep looking for a better one
4289
      ac_cv_path_SED="$ac_path_SED"
4290
      ac_path_SED_max=$ac_count
4291
    fi
4292
    # 10*(2^10) chars as input seems more than enough
4293
    test $ac_count -gt 10 && break
4294
  done
4295
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296
esac
4297
 
4298
      $ac_path_SED_found && break 3
4299 2 bertin
    done
4300
  done
4301 256 bertin
  done
4302 177 bertin
IFS=$as_save_IFS
4303 256 bertin
  if test -z "$ac_cv_path_SED"; then
4304
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4305 2 bertin
  fi
4306 256 bertin
else
4307
  ac_cv_path_SED=$SED
4308
fi
4309 2 bertin
 
4310
fi
4311 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4312
$as_echo "$ac_cv_path_SED" >&6; }
4313
 SED="$ac_cv_path_SED"
4314
  rm -f conftest.sed
4315 2 bertin
 
4316 256 bertin
test -z "$SED" && SED=sed
4317
Xsed="$SED -e 1s/^X//"
4318 2 bertin
 
4319 177 bertin
 
4320 256 bertin
 
4321
 
4322
 
4323
 
4324
 
4325
 
4326
 
4327
 
4328
 
4329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4330 211 bertin
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4331 256 bertin
if ${ac_cv_path_GREP+:} false; then :
4332 211 bertin
  $as_echo_n "(cached) " >&6
4333 2 bertin
else
4334 211 bertin
  if test -z "$GREP"; then
4335 177 bertin
  ac_path_GREP_found=false
4336 211 bertin
  # Loop through the user's path and test for each of PROGNAME-LIST
4337
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 177 bertin
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4339
do
4340
  IFS=$as_save_IFS
4341
  test -z "$as_dir" && as_dir=.
4342 256 bertin
    for ac_prog in grep ggrep; do
4343 211 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
4344
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4345 308 bertin
      as_fn_executable_p "$ac_path_GREP" || continue
4346 211 bertin
# Check for GNU ac_path_GREP and select it if it is found.
4347 177 bertin
  # Check for GNU $ac_path_GREP
4348
case `"$ac_path_GREP" --version 2>&1` in
4349
*GNU*)
4350
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4351
*)
4352
  ac_count=0
4353 211 bertin
  $as_echo_n 0123456789 >"conftest.in"
4354 177 bertin
  while :
4355
  do
4356
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4357
    mv "conftest.tmp" "conftest.in"
4358
    cp "conftest.in" "conftest.nl"
4359 211 bertin
    $as_echo 'GREP' >> "conftest.nl"
4360 177 bertin
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362 256 bertin
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4363 177 bertin
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4364
      # Best one so far, save it but keep looking for a better one
4365
      ac_cv_path_GREP="$ac_path_GREP"
4366
      ac_path_GREP_max=$ac_count
4367 2 bertin
    fi
4368 177 bertin
    # 10*(2^10) chars as input seems more than enough
4369
    test $ac_count -gt 10 && break
4370
  done
4371
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372
esac
4373
 
4374 211 bertin
      $ac_path_GREP_found && break 3
4375
    done
4376 177 bertin
  done
4377 256 bertin
  done
4378 177 bertin
IFS=$as_save_IFS
4379 211 bertin
  if test -z "$ac_cv_path_GREP"; then
4380 256 bertin
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4381 211 bertin
  fi
4382 177 bertin
else
4383
  ac_cv_path_GREP=$GREP
4384
fi
4385 2 bertin
 
4386 177 bertin
fi
4387 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4388 211 bertin
$as_echo "$ac_cv_path_GREP" >&6; }
4389 177 bertin
 GREP="$ac_cv_path_GREP"
4390
 
4391
 
4392 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4393 211 bertin
$as_echo_n "checking for egrep... " >&6; }
4394 256 bertin
if ${ac_cv_path_EGREP+:} false; then :
4395 211 bertin
  $as_echo_n "(cached) " >&6
4396 177 bertin
else
4397
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4398
   then ac_cv_path_EGREP="$GREP -E"
4399
   else
4400 211 bertin
     if test -z "$EGREP"; then
4401 177 bertin
  ac_path_EGREP_found=false
4402 211 bertin
  # Loop through the user's path and test for each of PROGNAME-LIST
4403
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 177 bertin
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405
do
4406
  IFS=$as_save_IFS
4407
  test -z "$as_dir" && as_dir=.
4408 256 bertin
    for ac_prog in egrep; do
4409 211 bertin
    for ac_exec_ext in '' $ac_executable_extensions; do
4410
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4411 308 bertin
      as_fn_executable_p "$ac_path_EGREP" || continue
4412 211 bertin
# Check for GNU ac_path_EGREP and select it if it is found.
4413 177 bertin
  # Check for GNU $ac_path_EGREP
4414
case `"$ac_path_EGREP" --version 2>&1` in
4415
*GNU*)
4416
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4417
*)
4418
  ac_count=0
4419 211 bertin
  $as_echo_n 0123456789 >"conftest.in"
4420 177 bertin
  while :
4421
  do
4422
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4423
    mv "conftest.tmp" "conftest.in"
4424
    cp "conftest.in" "conftest.nl"
4425 211 bertin
    $as_echo 'EGREP' >> "conftest.nl"
4426 177 bertin
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428 256 bertin
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4429 177 bertin
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4430
      # Best one so far, save it but keep looking for a better one
4431
      ac_cv_path_EGREP="$ac_path_EGREP"
4432
      ac_path_EGREP_max=$ac_count
4433
    fi
4434
    # 10*(2^10) chars as input seems more than enough
4435
    test $ac_count -gt 10 && break
4436
  done
4437
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438
esac
4439
 
4440 211 bertin
      $ac_path_EGREP_found && break 3
4441
    done
4442 177 bertin
  done
4443 256 bertin
  done
4444 177 bertin
IFS=$as_save_IFS
4445 211 bertin
  if test -z "$ac_cv_path_EGREP"; then
4446 256 bertin
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4447 211 bertin
  fi
4448 177 bertin
else
4449
  ac_cv_path_EGREP=$EGREP
4450
fi
4451
 
4452
   fi
4453
fi
4454 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4455 211 bertin
$as_echo "$ac_cv_path_EGREP" >&6; }
4456 177 bertin
 EGREP="$ac_cv_path_EGREP"
4457
 
4458
 
4459 256 bertin
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4460
$as_echo_n "checking for fgrep... " >&6; }
4461
if ${ac_cv_path_FGREP+:} false; then :
4462
  $as_echo_n "(cached) " >&6
4463
else
4464
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4465
   then ac_cv_path_FGREP="$GREP -F"
4466
   else
4467
     if test -z "$FGREP"; then
4468
  ac_path_FGREP_found=false
4469
  # Loop through the user's path and test for each of PROGNAME-LIST
4470
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472
do
4473
  IFS=$as_save_IFS
4474
  test -z "$as_dir" && as_dir=.
4475
    for ac_prog in fgrep; do
4476
    for ac_exec_ext in '' $ac_executable_extensions; do
4477
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4478 308 bertin
      as_fn_executable_p "$ac_path_FGREP" || continue
4479 256 bertin
# Check for GNU ac_path_FGREP and select it if it is found.
4480
  # Check for GNU $ac_path_FGREP
4481
case `"$ac_path_FGREP" --version 2>&1` in
4482
*GNU*)
4483
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4484
*)
4485
  ac_count=0
4486
  $as_echo_n 0123456789 >"conftest.in"
4487
  while :
4488
  do
4489
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4490
    mv "conftest.tmp" "conftest.in"
4491
    cp "conftest.in" "conftest.nl"
4492
    $as_echo 'FGREP' >> "conftest.nl"
4493
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4496
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4497
      # Best one so far, save it but keep looking for a better one
4498
      ac_cv_path_FGREP="$ac_path_FGREP"
4499
      ac_path_FGREP_max=$ac_count
4500
    fi
4501
    # 10*(2^10) chars as input seems more than enough
4502
    test $ac_count -gt 10 && break
4503
  done
4504
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505
esac
4506 177 bertin
 
4507 256 bertin
      $ac_path_FGREP_found && break 3
4508
    done
4509
  done
4510
  done
4511
IFS=$as_save_IFS
4512
  if test -z "$ac_cv_path_FGREP"; then
4513
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4514
  fi
4515
else
4516
  ac_cv_path_FGREP=$FGREP
4517
fi
4518
 
4519
   fi
4520
fi
4521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4522
$as_echo "$ac_cv_path_FGREP" >&6; }
4523
 FGREP="$ac_cv_path_FGREP"
4524
 
4525
 
4526
test -z "$GREP" && GREP=grep
4527
 
4528
 
4529
 
4530
 
4531
 
4532
 
4533
 
4534
 
4535
 
4536
 
4537
 
4538
 
4539
 
4540
 
4541
 
4542
 
4543
 
4544
 
4545
 
4546 177 bertin
# Check whether --with-gnu-ld was given.
4547 256 bertin
if test "${with_gnu_ld+set}" = set; then :
4548 177 bertin
  withval=$with_gnu_l