~pefarrell/spud/fluidity-plugin

« back to all changes in this revision

Viewing changes to configure

  • Committer: gormo
  • Date: 2008-05-08 23:48:54 UTC
  • Revision ID: svn-v4:18f9825f-b44c-0410-b6f0-d2c50de112f6:trunk:27
Added autoconf support. Some tuning to the build is still needed.

Show diffs side-by-side

added added

removed removed

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